vuefinder 1.0.12 → 1.0.13

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.
package/dist/style.css CHANGED
@@ -6,4 +6,4 @@
6
6
  * Released under the MIT license
7
7
  *
8
8
  * Date: 2021-06-12T08:00:11.623Z
9
- */.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-wrap-box,.cropper-canvas,.cropper-drag-box,.cropper-crop-box,.cropper-modal{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-wrap-box,.cropper-canvas{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:#3399ffbf;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:calc(100% / 3);left:0;top:calc(100% / 3);width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:calc(100% / 3);top:0;width:calc(100% / 3)}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:before,.cropper-center:after{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width: 768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width: 992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width: 1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.vf-explorer-selected{border-width:1px!important;--tw-border-opacity: 1 !important;border-color:rgb(212 212 212 / var(--tw-border-opacity))!important;--tw-bg-opacity: 1 !important;background-color:rgb(245 245 245 / var(--tw-bg-opacity))!important}.dark .vf-explorer-selected{border-color:rgb(17 24 39 / var(--tw-border-opacity))!important;--tw-border-opacity: 1 !important;border-color:rgb(30 41 59 / var(--tw-border-opacity))!important;--tw-bg-opacity: 1 !important;background-color:rgb(51 65 85 / var(--tw-bg-opacity))!important}.vf-explorer-selector{border-width:1px!important;--tw-border-opacity: 1 !important;border-color:rgb(100 116 139 / var(--tw-border-opacity))!important;--tw-bg-opacity: 1 !important;background-color:rgb(203 213 225 / var(--tw-bg-opacity))!important;opacity:.5!important}.dark{color-scheme:dark}.vf-selector-area::-webkit-scrollbar{width:10px}.vf-selector-area::-webkit-scrollbar-track-piece{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.dark .vf-selector-area::-webkit-scrollbar-track-piece{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}.vf-selector-area::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.dark .vf-selector-area::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}.vf-selector-area::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.dark .vf-selector-area::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.vf-selector-area::-webkit-scrollbar-corner{background-color:transparent}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.-top-96{top:-24rem}.top-4{top:1rem}.right-\[-2rem\]{right:-2rem}.top-1\/2{top:50%}.bottom-0{bottom:0px}.left-1\/2{left:50%}.z-30{z-index:30}.-z-50{z-index:-50}.z-10{z-index:10}.z-20{z-index:20}.z-0{z-index:0}.col-span-7{grid-column:span 7 / span 7}.col-span-2{grid-column:span 2 / span 2}.col-span-3{grid-column:span 3 / span 3}.col-span-5{grid-column:span 5 / span 5}.m-auto{margin:auto}.m-0\.5{margin:.125rem}.m-0{margin:0}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-0{margin-left:0;margin-right:0}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-0{margin-top:0;margin-bottom:0}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.ml-2{margin-left:.5rem}.mt-1{margin-top:.25rem}.ml-auto{margin-left:auto}.ml-3{margin-left:.75rem}.ml-1{margin-left:.25rem}.mr-3{margin-right:.75rem}.mt-3{margin-top:.75rem}.mt-2{margin-top:.5rem}.ml-1\.5{margin-left:.375rem}.-ml-1{margin-left:-.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.\!hidden{display:none!important}.h-6{height:1.5rem}.h-full{height:100%}.h-5{height:1.25rem}.h-20{height:5rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-\[60vh\]{height:60vh}.h-4{height:1rem}.max-h-\[60vh\]{max-height:60vh}.min-h-\[150px\]{min-height:150px}.min-h-full{min-height:100%}.min-h-\[200px\]{min-height:200px}.w-6{width:1.5rem}.w-full{width:100%}.w-5{width:1.25rem}.w-\[5\.5rem\]{width:5.5rem}.w-10{width:2.5rem}.w-screen{width:100vw}.w-12{width:3rem}.w-4{width:1rem}.min-w-max{min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content}.max-w-fit{max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content}.max-w-\[60vh\]{max-width:60vh}.flex-auto{flex:1 1 auto}.flex-shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes spin{to{transform:rotate(360deg)}}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-y{resize:vertical}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border-0{border-width:0px}.border{border-width:1px}.border-t{border-top-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-neutral-300{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity))}.border-lime-600{--tw-border-opacity: 1;border-color:rgb(101 163 13 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-neutral-50{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity))}.bg-blue-700\/75{background-color:#1d4ed8bf}.bg-opacity-75{--tw-bg-opacity: .75}.fill-gray-100{fill:#f3f4f6}.fill-white{fill:#fff}.fill-sky-500{fill:#0ea5e9}.fill-sky-100{fill:#e0f2fe}.stroke-gray-400{stroke:#9ca3af}.stroke-neutral-500{stroke:#737373}.stroke-sky-500{stroke:#0ea5e9}.stroke-slate-500{stroke:#64748b}.stroke-gray-500{stroke:#6b7280}.stroke-gray-200{stroke:#e5e7eb}.stroke-blue-600{stroke:#2563eb}.stroke-red-600{stroke:#dc2626}.stroke-blue-900{stroke:#1e3a8a}.p-1\.5{padding:.375rem}.p-1{padding:.25rem}.p-0\.5{padding:.125rem}.p-0{padding:0}.p-4{padding:1rem}.p-2{padding:.5rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-0{padding-top:0;padding-bottom:0}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pr-8{padding-right:2rem}.pt-5{padding-top:1.25rem}.pb-4{padding-bottom:1rem}.pb-1{padding-bottom:.25rem}.pt-3{padding-top:.75rem}.text-left{text-align:left}.text-center{text-align:center}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-base{font-size:1rem;line-height:1.5rem}.font-medium{font-weight:500}.font-bold{font-weight:700}.font-normal{font-weight:400}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-neutral-300{--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-lime-600{--tw-text-opacity: 1;color:rgb(101 163 13 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-0{outline-width:0px}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-1000{transition-duration:1s}.hover\:bg-neutral-300:hover{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.hover\:bg-neutral-100:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.hover\:bg-neutral-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity))}.hover\:bg-neutral-50:hover{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.hover\:stroke-cyan-700:hover{stroke:#0e7490}.hover\:stroke-sky-600:hover{stroke:#0284c7}.focus\:border-transparent:focus{border-color:transparent}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-transparent:focus{--tw-ring-color: transparent}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.dark .dark\:border-t{border-top-width:1px}.dark .dark\:border-gray-700\/50{border-color:#37415180}.dark .dark\:border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark .dark\:border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.dark .dark\:border-gray-900{--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}.dark .dark\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark .dark\:bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark .dark\:bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark .dark\:fill-gray-400\/20{fill:#9ca3af33}.dark .dark\:fill-gray-700{fill:#374151}.dark .dark\:fill-slate-500{fill:#64748b}.dark .dark\:stroke-gray-400{stroke:#9ca3af}.dark .dark\:stroke-gray-600{stroke:#4b5563}.dark .dark\:stroke-slate-500{stroke:#64748b}.dark .dark\:stroke-gray-700{stroke:#374151}.dark .dark\:stroke-blue-100{stroke:#dbeafe}.dark .dark\:stroke-red-200{stroke:#fecaca}.dark .dark\:text-neutral-200{--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity))}.dark .dark\:text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.dark .dark\:text-neutral-300{--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.dark .dark\:text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.dark .dark\:text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.dark .dark\:text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.dark .dark\:text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.dark .dark\:text-neutral-50{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity))}.dark .dark\:text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.dark .dark\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark .dark\:text-gray-100{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.dark .dark\:text-red-200{--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity))}.dark .dark\:selection\:bg-gray-500 *::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark .dark\:selection\:bg-gray-500 *::selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark .dark\:selection\:bg-gray-500::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark .dark\:selection\:bg-gray-500::selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark .dark\:hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark .dark\:hover\:bg-gray-800:hover{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark .dark\:hover\:bg-gray-700\/10:hover{background-color:#3741511a}.dark .dark\:hover\:bg-gray-700\/50:hover{background-color:#37415180}.dark .dark\:hover\:stroke-gray-300:hover{stroke:#d1d5db}.dark .dark\:focus\:border-transparent:focus{border-color:transparent}.dark .dark\:focus\:border-gray-600:focus{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark .dark\:focus\:ring-transparent:focus{--tw-ring-color: transparent}.dark .dark\:focus\:ring-gray-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}@media (min-width: 640px){.sm\:mx-0{margin-left:0;margin-right:0}.sm\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\:mt-0{margin-top:0}.sm\:ml-4{margin-left:1rem}.sm\:ml-3{margin-left:.75rem}.sm\:flex{display:flex}.sm\:h-10{height:2.5rem}.sm\:w-10{width:2.5rem}.sm\:w-auto{width:auto}.sm\:w-full{width:100%}.sm\:max-w-4xl{max-width:56rem}.sm\:flex-row-reverse{flex-direction:row-reverse}.sm\:items-start{align-items:flex-start}.sm\:items-center{align-items:center}.sm\:p-0{padding:0}.sm\:p-6{padding:1.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:pb-4{padding-bottom:1rem}.sm\:text-left{text-align:left}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\:top-5{top:1.25rem}.md\:right-\[-2\.4rem\]{right:-2.4rem}.md\:block{display:block}.md\:h-12{height:3rem}.md\:h-24{height:6rem}.md\:h-8{height:2rem}.md\:w-12{width:3rem}.md\:w-24{width:6rem}.md\:w-8{width:2rem}.md\:max-w-2xl{max-width:42rem}}@media (min-width: 1024px){.lg\:max-w-3xl{max-width:48rem}}@media (min-width: 1280px){.xl\:max-w-5xl{max-width:64rem}}[aria-label][role~=tooltip]{position:relative}[aria-label][role~=tooltip]:before,[aria-label][role~=tooltip]:after{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;will-change:transform;opacity:0;pointer-events:none;transition:all var(--microtip-transition-duration, .18s) var(--microtip-transition-easing, ease-in-out) var(--microtip-transition-delay, 0s);position:absolute;box-sizing:border-box;z-index:10;transform-origin:top}[aria-label][role~=tooltip]:before{background-size:100% auto!important;content:""}[aria-label][role~=tooltip]:after{background:rgba(17,17,17,.9);border-radius:4px;color:#fff;content:attr(aria-label);font-size:var(--microtip-font-size, 13px);font-weight:var(--microtip-font-weight, normal);text-transform:var(--microtip-text-transform, none);padding:.5em 1em;white-space:nowrap;box-sizing:content-box}[aria-label][role~=tooltip]:hover:before,[aria-label][role~=tooltip]:hover:after,[aria-label][role~=tooltip]:focus:before,[aria-label][role~=tooltip]:focus:after{opacity:1;pointer-events:auto}[role~=tooltip][data-microtip-position|=top]:before{background:url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;height:6px;width:18px;margin-bottom:5px}[role~=tooltip][data-microtip-position|=top]:after{margin-bottom:11px}[role~=tooltip][data-microtip-position|=top]:before{transform:translate3d(-50%,0,0);bottom:100%;left:50%}[role~=tooltip][data-microtip-position|=top]:hover:before{transform:translate3d(-50%,-5px,0)}[role~=tooltip][data-microtip-position|=top]:after{transform:translate3d(-50%,0,0);bottom:100%;left:50%}[role~=tooltip][data-microtip-position=top]:hover:after{transform:translate3d(-50%,-5px,0)}[role~=tooltip][data-microtip-position=top-left]:after{transform:translate3d(calc(-100% + 16px),0,0);bottom:100%}[role~=tooltip][data-microtip-position=top-left]:hover:after{transform:translate3d(calc(-100% + 16px),-5px,0)}[role~=tooltip][data-microtip-position=top-right]:after{transform:translate3d(calc(0% - 16px),0,0);bottom:100%}[role~=tooltip][data-microtip-position=top-right]:hover:after{transform:translate3d(calc(0% - 16px),-5px,0)}[role~=tooltip][data-microtip-position|=bottom]:before{background:url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;height:6px;width:18px;margin-top:5px;margin-bottom:0}[role~=tooltip][data-microtip-position|=bottom]:after{margin-top:11px}[role~=tooltip][data-microtip-position|=bottom]:before{transform:translate3d(-50%,-10px,0);bottom:auto;left:50%;top:100%}[role~=tooltip][data-microtip-position|=bottom]:hover:before{transform:translate3d(-50%,0,0)}[role~=tooltip][data-microtip-position|=bottom]:after{transform:translate3d(-50%,-10px,0);top:100%;left:50%}[role~=tooltip][data-microtip-position=bottom]:hover:after{transform:translate3d(-50%,0,0)}[role~=tooltip][data-microtip-position=bottom-left]:after{transform:translate3d(calc(-100% + 16px),-10px,0);top:100%}[role~=tooltip][data-microtip-position=bottom-left]:hover:after{transform:translate3d(calc(-100% + 16px),0,0)}[role~=tooltip][data-microtip-position=bottom-right]:after{transform:translate3d(calc(0% - 16px),-10px,0);top:100%}[role~=tooltip][data-microtip-position=bottom-right]:hover:after{transform:translate3d(calc(0% - 16px),0,0)}[role~=tooltip][data-microtip-position=left]:before,[role~=tooltip][data-microtip-position=left]:after{bottom:auto;left:auto;right:100%;top:50%;transform:translate3d(10px,-50%,0)}[role~=tooltip][data-microtip-position=left]:before{background:url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;height:18px;width:6px;margin-right:5px;margin-bottom:0}[role~=tooltip][data-microtip-position=left]:after{margin-right:11px}[role~=tooltip][data-microtip-position=left]:hover:before,[role~=tooltip][data-microtip-position=left]:hover:after{transform:translate3d(0,-50%,0)}[role~=tooltip][data-microtip-position=right]:before,[role~=tooltip][data-microtip-position=right]:after{bottom:auto;left:100%;top:50%;transform:translate3d(-10px,-50%,0)}[role~=tooltip][data-microtip-position=right]:before{background:url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;height:18px;width:6px;margin-bottom:0;margin-left:5px}[role~=tooltip][data-microtip-position=right]:after{margin-left:11px}[role~=tooltip][data-microtip-position=right]:hover:before,[role~=tooltip][data-microtip-position=right]:hover:after{transform:translate3d(0,-50%,0)}[role~=tooltip][data-microtip-size=small]:after{white-space:initial;width:80px}[role~=tooltip][data-microtip-size=medium]:after{white-space:initial;width:150px}[role~=tooltip][data-microtip-size=large]:after{white-space:initial;width:260px}
9
+ */.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-wrap-box,.cropper-canvas,.cropper-drag-box,.cropper-crop-box,.cropper-modal{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-wrap-box,.cropper-canvas{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:#3399ffbf;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:calc(100% / 3);left:0;top:calc(100% / 3);width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:calc(100% / 3);top:0;width:calc(100% / 3)}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:before,.cropper-center:after{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width: 768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width: 992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width: 1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.vf-explorer-selected{border-width:1px!important;--tw-border-opacity: 1 !important;border-color:rgb(212 212 212 / var(--tw-border-opacity))!important;--tw-bg-opacity: 1 !important;background-color:rgb(245 245 245 / var(--tw-bg-opacity))!important}.dark .vf-explorer-selected{border-color:rgb(17 24 39 / var(--tw-border-opacity))!important;--tw-border-opacity: 1 !important;border-color:rgb(30 41 59 / var(--tw-border-opacity))!important;--tw-bg-opacity: 1 !important;background-color:rgb(51 65 85 / var(--tw-bg-opacity))!important}.vf-explorer-selector{border-width:1px!important;--tw-border-opacity: 1 !important;border-color:rgb(100 116 139 / var(--tw-border-opacity))!important;--tw-bg-opacity: 1 !important;background-color:rgb(203 213 225 / var(--tw-bg-opacity))!important;opacity:.5!important}.dark{color-scheme:dark}.vf-selector-area::-webkit-scrollbar{width:10px}.vf-selector-area::-webkit-scrollbar-track-piece{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.dark .vf-selector-area::-webkit-scrollbar-track-piece{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}.vf-selector-area::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.dark .vf-selector-area::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}.vf-selector-area::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.dark .vf-selector-area::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.vf-selector-area::-webkit-scrollbar-corner{background-color:transparent}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.-top-96{top:-24rem}.top-4{top:1rem}.right-\[-2rem\]{right:-2rem}.top-1\/2{top:50%}.bottom-0{bottom:0px}.left-1\/2{left:50%}.z-30{z-index:30}.-z-50{z-index:-50}.z-10{z-index:10}.z-20{z-index:20}.z-0{z-index:0}.col-span-7{grid-column:span 7 / span 7}.col-span-2{grid-column:span 2 / span 2}.col-span-3{grid-column:span 3 / span 3}.col-span-5{grid-column:span 5 / span 5}.m-auto{margin:auto}.m-0\.5{margin:.125rem}.m-0{margin:0}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-0{margin-left:0;margin-right:0}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-0{margin-top:0;margin-bottom:0}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.ml-2{margin-left:.5rem}.mt-1{margin-top:.25rem}.ml-auto{margin-left:auto}.ml-3{margin-left:.75rem}.ml-1{margin-left:.25rem}.mr-3{margin-right:.75rem}.mt-3{margin-top:.75rem}.mt-2{margin-top:.5rem}.ml-1\.5{margin-left:.375rem}.-ml-1{margin-left:-.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.\!hidden{display:none!important}.h-6{height:1.5rem}.h-full{height:100%}.h-5{height:1.25rem}.h-20{height:5rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-\[60vh\]{height:60vh}.h-4{height:1rem}.max-h-\[60vh\]{max-height:60vh}.min-h-\[150px\]{min-height:150px}.min-h-full{min-height:100%}.min-h-\[200px\]{min-height:200px}.w-6{width:1.5rem}.w-full{width:100%}.w-5{width:1.25rem}.w-\[5\.5rem\]{width:5.5rem}.w-10{width:2.5rem}.w-screen{width:100vw}.w-12{width:3rem}.w-4{width:1rem}.min-w-max{min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content}.max-w-fit{max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content}.max-w-\[60vh\]{max-width:60vh}.flex-auto{flex:1 1 auto}.flex-shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes spin{to{transform:rotate(360deg)}}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-y{resize:vertical}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border-0{border-width:0px}.border{border-width:1px}.border-t{border-top-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-neutral-300{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity))}.border-lime-600{--tw-border-opacity: 1;border-color:rgb(101 163 13 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-neutral-50{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity))}.bg-blue-700\/75{background-color:#1d4ed8bf}.bg-opacity-75{--tw-bg-opacity: .75}.fill-gray-100{fill:#f3f4f6}.fill-white{fill:#fff}.fill-sky-500{fill:#0ea5e9}.fill-sky-100{fill:#e0f2fe}.stroke-gray-400{stroke:#9ca3af}.stroke-neutral-500{stroke:#737373}.stroke-sky-500{stroke:#0ea5e9}.stroke-slate-500{stroke:#64748b}.stroke-gray-500{stroke:#6b7280}.stroke-gray-200{stroke:#e5e7eb}.stroke-blue-600{stroke:#2563eb}.stroke-red-600{stroke:#dc2626}.stroke-blue-900{stroke:#1e3a8a}.p-1\.5{padding:.375rem}.p-1{padding:.25rem}.p-0\.5{padding:.125rem}.p-0{padding:0}.p-4{padding:1rem}.p-2{padding:.5rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-0{padding-top:0;padding-bottom:0}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pr-8{padding-right:2rem}.pt-5{padding-top:1.25rem}.pb-4{padding-bottom:1rem}.pb-1{padding-bottom:.25rem}.pt-3{padding-top:.75rem}.text-left{text-align:left}.text-center{text-align:center}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-base{font-size:1rem;line-height:1.5rem}.font-medium{font-weight:500}.font-bold{font-weight:700}.font-normal{font-weight:400}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-neutral-300{--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-lime-600{--tw-text-opacity: 1;color:rgb(101 163 13 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-0{outline-width:0px}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-1000{transition-duration:1s}.hover\:bg-neutral-300:hover{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.hover\:bg-neutral-100:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.hover\:bg-neutral-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity))}.hover\:bg-neutral-50:hover{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.hover\:stroke-cyan-700:hover{stroke:#0e7490}.hover\:stroke-sky-600:hover{stroke:#0284c7}.focus\:border-transparent:focus{border-color:transparent}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-transparent:focus{--tw-ring-color: transparent}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.dark .dark\:border-t{border-top-width:1px}.dark .dark\:border-gray-700\/50{border-color:#37415180}.dark .dark\:border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark .dark\:border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.dark .dark\:border-gray-900{--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}.dark .dark\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark .dark\:bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark .dark\:bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark .dark\:fill-gray-400\/20{fill:#9ca3af33}.dark .dark\:fill-gray-700{fill:#374151}.dark .dark\:fill-slate-500{fill:#64748b}.dark .dark\:stroke-gray-400{stroke:#9ca3af}.dark .dark\:stroke-gray-600{stroke:#4b5563}.dark .dark\:stroke-slate-500{stroke:#64748b}.dark .dark\:stroke-gray-700{stroke:#374151}.dark .dark\:stroke-blue-100{stroke:#dbeafe}.dark .dark\:stroke-red-200{stroke:#fecaca}.dark .dark\:text-neutral-200{--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity))}.dark .dark\:text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.dark .dark\:text-neutral-300{--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.dark .dark\:text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.dark .dark\:text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.dark .dark\:text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.dark .dark\:text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.dark .dark\:text-neutral-50{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity))}.dark .dark\:text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.dark .dark\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark .dark\:text-gray-100{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.dark .dark\:text-red-200{--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity))}.dark .dark\:selection\:bg-gray-500 *::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark .dark\:selection\:bg-gray-500 *::selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark .dark\:selection\:bg-gray-500::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark .dark\:selection\:bg-gray-500::selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark .dark\:hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark .dark\:hover\:bg-gray-800:hover{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark .dark\:hover\:bg-gray-700\/10:hover{background-color:#3741511a}.dark .dark\:hover\:bg-gray-700\/50:hover{background-color:#37415180}.dark .dark\:hover\:stroke-gray-300:hover{stroke:#d1d5db}.dark .dark\:focus\:border-transparent:focus{border-color:transparent}.dark .dark\:focus\:border-gray-600:focus{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark .dark\:focus\:ring-transparent:focus{--tw-ring-color: transparent}.dark .dark\:focus\:ring-gray-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}@media (min-width: 640px){.sm\:mx-0{margin-left:0;margin-right:0}.sm\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\:mt-0{margin-top:0}.sm\:ml-4{margin-left:1rem}.sm\:ml-3{margin-left:.75rem}.sm\:flex{display:flex}.sm\:h-10{height:2.5rem}.sm\:w-10{width:2.5rem}.sm\:w-auto{width:auto}.sm\:w-full{width:100%}.sm\:max-w-4xl{max-width:56rem}.sm\:flex-row-reverse{flex-direction:row-reverse}.sm\:items-start{align-items:flex-start}.sm\:items-center{align-items:center}.sm\:p-0{padding:0}.sm\:p-6{padding:1.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:pb-4{padding-bottom:1rem}.sm\:text-left{text-align:left}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\:top-5{top:1.25rem}.md\:right-\[-2\.4rem\]{right:-2.4rem}.md\:block{display:block}.md\:h-12{height:3rem}.md\:h-24{height:6rem}.md\:h-8{height:2rem}.md\:w-12{width:3rem}.md\:w-24{width:6rem}.md\:w-8{width:2rem}.md\:max-w-2xl{max-width:42rem}}@media (min-width: 1024px){.lg\:max-w-3xl{max-width:48rem}}@media (min-width: 1280px){.xl\:max-w-5xl{max-width:64rem}}[aria-label][role~=tooltip]{position:relative}[aria-label][role~=tooltip]:before,[aria-label][role~=tooltip]:after{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;will-change:transform;opacity:0;pointer-events:none;transition:all var(--microtip-transition-duration, .18s) var(--microtip-transition-easing, ease-in-out) var(--microtip-transition-delay, 0s);position:absolute;box-sizing:border-box;z-index:10;transform-origin:top}[aria-label][role~=tooltip]:before{background-size:100% auto!important;content:""}[aria-label][role~=tooltip]:after{background:rgba(17,17,17,.9);border-radius:4px;color:#fff;content:attr(aria-label);font-size:var(--microtip-font-size, 13px);font-weight:var(--microtip-font-weight, normal);text-transform:var(--microtip-text-transform, none);padding:.5em 1em;white-space:nowrap;box-sizing:content-box}[aria-label][role~=tooltip]:hover:before,[aria-label][role~=tooltip]:hover:after,[aria-label][role~=tooltip]:focus:before,[aria-label][role~=tooltip]:focus:after{opacity:1;pointer-events:auto}[role~=tooltip][data-microtip-position|=top]:before{background:url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;height:6px;width:18px;margin-bottom:5px}[role~=tooltip][data-microtip-position|=top]:after{margin-bottom:11px}[role~=tooltip][data-microtip-position|=top]:before{transform:translate3d(-50%,0,0);bottom:100%;left:50%}[role~=tooltip][data-microtip-position|=top]:hover:before{transform:translate3d(-50%,-5px,0)}[role~=tooltip][data-microtip-position|=top]:after{transform:translate3d(-50%,0,0);bottom:100%;left:50%}[role~=tooltip][data-microtip-position=top]:hover:after{transform:translate3d(-50%,-5px,0)}[role~=tooltip][data-microtip-position=top-left]:after{transform:translate3d(calc(-100% + 16px),0,0);bottom:100%}[role~=tooltip][data-microtip-position=top-left]:hover:after{transform:translate3d(calc(-100% + 16px),-5px,0)}[role~=tooltip][data-microtip-position=top-right]:after{transform:translate3d(calc(0% - 16px),0,0);bottom:100%}[role~=tooltip][data-microtip-position=top-right]:hover:after{transform:translate3d(calc(0% - 16px),-5px,0)}[role~=tooltip][data-microtip-position|=bottom]:before{background:url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;height:6px;width:18px;margin-top:5px;margin-bottom:0}[role~=tooltip][data-microtip-position|=bottom]:after{margin-top:11px}[role~=tooltip][data-microtip-position|=bottom]:before{transform:translate3d(-50%,-10px,0);bottom:auto;left:50%;top:100%}[role~=tooltip][data-microtip-position|=bottom]:hover:before{transform:translate3d(-50%,0,0)}[role~=tooltip][data-microtip-position|=bottom]:after{transform:translate3d(-50%,-10px,0);top:100%;left:50%}[role~=tooltip][data-microtip-position=bottom]:hover:after{transform:translate3d(-50%,0,0)}[role~=tooltip][data-microtip-position=bottom-left]:after{transform:translate3d(calc(-100% + 16px),-10px,0);top:100%}[role~=tooltip][data-microtip-position=bottom-left]:hover:after{transform:translate3d(calc(-100% + 16px),0,0)}[role~=tooltip][data-microtip-position=bottom-right]:after{transform:translate3d(calc(0% - 16px),-10px,0);top:100%}[role~=tooltip][data-microtip-position=bottom-right]:hover:after{transform:translate3d(calc(0% - 16px),0,0)}[role~=tooltip][data-microtip-position=left]:before,[role~=tooltip][data-microtip-position=left]:after{bottom:auto;left:auto;right:100%;top:50%;transform:translate3d(10px,-50%,0)}[role~=tooltip][data-microtip-position=left]:before{background:url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;height:18px;width:6px;margin-right:5px;margin-bottom:0}[role~=tooltip][data-microtip-position=left]:after{margin-right:11px}[role~=tooltip][data-microtip-position=left]:hover:before,[role~=tooltip][data-microtip-position=left]:hover:after{transform:translate3d(0,-50%,0)}[role~=tooltip][data-microtip-position=right]:before,[role~=tooltip][data-microtip-position=right]:after{bottom:auto;left:100%;top:50%;transform:translate3d(-10px,-50%,0)}[role~=tooltip][data-microtip-position=right]:before{background:url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;height:18px;width:6px;margin-bottom:0;margin-left:5px}[role~=tooltip][data-microtip-position=right]:after{margin-left:11px}[role~=tooltip][data-microtip-position=right]:hover:before,[role~=tooltip][data-microtip-position=right]:hover:after{transform:translate3d(0,-50%,0)}[role~=tooltip][data-microtip-size=small]:after{white-space:initial;width:80px}[role~=tooltip][data-microtip-size=medium]:after{white-space:initial;width:150px}[role~=tooltip][data-microtip-size=large]:after{white-space:initial;width:260px}
package/dist/vuefinder.js CHANGED
@@ -1831,7 +1831,7 @@ const $o = $r.exports, Eo = (a, e, t, i, n) => (e = Math, t = e.log, i = 1024, n
1831
1831
  }
1832
1832
  }), Le = (a) => Object.entries(a).map((e) => e.map(encodeURIComponent).join("=")).join("&"), { apiUrl: Ro } = Se(), $t = (a, e) => Ro.value + "?" + Le({ q: "preview", adapter: a, path: e }), Ho = { class: "relative flex-auto flex flex-col overflow-hidden" }, Uo = {
1833
1833
  key: 0,
1834
- class: "grid grid-cols-12 border-b border-neutral-300 dark:border-gray-700 text-xs select-none"
1834
+ class: "grid grid-cols-12 border-b border-neutral-300 border-gray-200 dark:border-gray-700 text-xs select-none"
1835
1835
  }, Ko = { class: "absolute" }, Yo = /* @__PURE__ */ d("svg", {
1836
1836
  xmlns: "http://www.w3.org/2000/svg",
1837
1837
  class: "absolute h-6 w-6 md:h-12 md:w-12 m-auto stroke-neutral-500 fill-white dark:fill-gray-700 dark:stroke-gray-600 z-10",
@@ -2583,7 +2583,7 @@ const $o = $r.exports, Eo = (a, e, t, i, n) => (e = Math, t = e.log, i = 1024, n
2583
2583
  };
2584
2584
  return (b, E) => o.active ? (y(), D("ul", {
2585
2585
  key: 0,
2586
- class: "z-30 absolute text-xs bg-neutral-50 dark:bg-gray-800 dark:text-gray-200 border border-neutral-300 dark:border-gray-600 shadow rounded select-none",
2586
+ class: "z-30 absolute text-xs bg-neutral-50 dark:bg-gray-800 text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600 shadow rounded select-none",
2587
2587
  ref_key: "contextmenu",
2588
2588
  ref: i,
2589
2589
  style: Mr(o.positions)
@@ -1,6 +1,6 @@
1
1
  (function(e,Ve){typeof exports=="object"&&typeof module<"u"?module.exports=Ve(require("vue"),require("plupload")):typeof define=="function"&&define.amd?define(["vue","plupload"],Ve):(e=typeof globalThis<"u"?globalThis:e||self,e.VueFinder=Ve(e.Vue,e.plupload))})(this,function(e,Ve){"use strict";const Ge=(i=>i&&typeof i=="object"&&"default"in i?i:{default:i})(Ve),Ie=(i,{method:t="get",params:r={},json:o=!0,signal:s=null})=>{var l;const a={method:t};if(a.signal=s,t=="get")i+="?"+new URLSearchParams(r);else{a.headers={};const m=(l=document.querySelector('meta[name="csrf-token"]'))==null?void 0:l.getAttribute("content");m&&(a.headers["X-CSRF-Token"]=m);let p=new FormData;for(const[f,u]of Object.entries(r))p.append(f,u);a.body=p}return fetch(i,a).then(m=>m.ok?o?m.json():m.text():m.json().then(Promise.reject.bind(Promise)))};function br(i){return{all:i=i||new Map,on:function(t,r){var o=i.get(t);o?o.push(r):i.set(t,[r])},off:function(t,r){var o=i.get(t);o&&(r?o.splice(o.indexOf(r)>>>0,1):i.set(t,[]))},emit:function(t,r){var o=i.get(t);o&&o.slice().map(function(s){s(r)}),(o=i.get("*"))&&o.slice().map(function(s){s(t,r)})}}}function Je(i){let t=localStorage.getItem(i+"_storage");const r=e.ref(JSON.parse(t));e.watch(r,o);function o(){r.value===null||r.value===""?localStorage.removeItem(i+"_storage"):localStorage.setItem(i+"_storage",JSON.stringify(r.value))}function s(m,p){r.value=Object.assign({...r.value},{[m]:p})}function a(){r.value=null}return{getStore:(m,p=null)=>r.value===null||r.value===""?p:r.value.hasOwnProperty(m)?r.value[m]:p,setStore:s,clearStore:a}}const wt=e.ref("");function ie(){function i(t){wt.value=t}return{apiUrl:wt,setApiUrl:i}}const wr={class:"border-neutral-300 flex justify-between items-center py-1 text-sm"},vr={key:0,class:"flex text-center"},kr=["aria-label"],_r=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 10.5v6m3-3H9m4.06-7.19l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})],-1)],xr=["aria-label"],Sr=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m3.75 9v6m3-3H9m1.5-12H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})],-1)],Dr=["aria-label"],Er=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"},null,-1)],Nr=["aria-label"],Vr=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"},null,-1)],Cr=["aria-label"],$r=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"})],-1)],Mr=["aria-label"],Br=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5m6 4.125l2.25 2.25m0 0l2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"},null,-1)],Tr=["aria-label"],Ar=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"},null,-1)],Or={key:1,class:"flex text-center"},jr={class:"pl-2"},Pr={class:"dark:bg-gray-700 bg-gray-200 text-xs px-2 py-1 rounded"},Lr={key:0,class:"animate-spin p-0.5 h-5 w-5 text-white ml-auto",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Ir=[e.createElementVNode("circle",{class:"opacity-25 stroke-blue-900 dark:stroke-blue-100",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)],zr={class:"flex text-center items-center justify-end"},Rr=["aria-label"],Hr=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"},null,-1)],Ur=["aria-label"],Fr={xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},Kr={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25"},Yr={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"},Wr=["aria-label"],Xr={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z"},qr={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 010 3.75H5.625a1.875 1.875 0 010-3.75z"},Gr=Object.assign({name:"VFToolbar"},{props:{data:Object},setup(i){const t=e.inject("emitter"),{getStore:r,setStore:o}=e.inject("storage"),{t:s}=e.inject("i18n"),a=e.ref(r("viewport","grid")),l=e.ref([]),m=e.ref(r("full-screen",!1)),p=e.ref("");t.on("vf-search-query",({newQuery:b})=>{p.value=b});const f=e.inject("loadingState"),u=()=>f.value,y=()=>{m.value=!m.value,t.emit("vf-fullscreen-toggle")};return t.on("vf-nodes-selected",b=>{l.value=b}),t.on("vf-view-toggle",b=>{o("viewport",b),a.value=b}),(b,E)=>(e.openBlock(),e.createElementBlock("div",wr,[p.value.length?(e.openBlock(),e.createElementBlock("div",Or,[e.createElementVNode("div",jr,[e.createTextVNode(e.toDisplayString(e.unref(s)("Search results for"))+" ",1),e.createElementVNode("span",Pr,e.toDisplayString(p.value),1)]),u()?(e.openBlock(),e.createElementBlock("svg",Lr,Ir)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",vr,[e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(s)("New Folder"),"data-microtip-position":"bottom-right",role:"tooltip",onClick:E[0]||(E[0]=k=>e.unref(t).emit("vf-modal-show",{type:"new-folder",items:l.value}))},_r,8,kr),e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(s)("New File"),"data-microtip-position":"bottom",role:"tooltip",onClick:E[1]||(E[1]=k=>e.unref(t).emit("vf-modal-show",{type:"new-file",items:l.value}))},Sr,8,xr),e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(s)("Rename"),"data-microtip-position":"bottom",role:"tooltip",onClick:E[2]||(E[2]=k=>l.value.length!=1||e.unref(t).emit("vf-modal-show",{type:"rename",items:l.value}))},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([l.value.length==1?"cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300":"stroke-gray-200 dark:stroke-gray-700","h-6 w-6 md:h-8 md:w-8 m-auto"]),fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},Er,2))],8,Dr),e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(s)("Delete"),"data-microtip-position":"bottom",role:"tooltip",onClick:E[3]||(E[3]=k=>!l.value.length||e.unref(t).emit("vf-modal-show",{type:"delete",items:l.value}))},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([l.value.length?"cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300":"stroke-gray-200 dark:stroke-gray-700","h-6 w-6 md:h-8 md:w-8 m-auto"]),fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},Vr,2))],8,Nr),e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(s)("Upload"),"data-microtip-position":"bottom",role:"tooltip",onClick:E[4]||(E[4]=k=>e.unref(t).emit("vf-modal-show",{type:"upload",items:l.value}))},$r,8,Cr),l.value.length==1&&l.value[0].mime_type=="application/zip"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mx-1.5","aria-label":e.unref(s)("Unrchive"),"data-microtip-position":"bottom",role:"tooltip",onClick:E[5]||(E[5]=k=>!l.value.length||e.unref(t).emit("vf-modal-show",{type:"unarchive",items:l.value}))},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([l.value.length?"cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300":"stroke-gray-200 dark:stroke-gray-700","h-6 w-6 md:h-8 md:w-8 m-auto"]),fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},Br,2))],8,Mr)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"mx-1.5","aria-label":e.unref(s)("Archive"),"data-microtip-position":"bottom",role:"tooltip",onClick:E[6]||(E[6]=k=>!l.value.length||e.unref(t).emit("vf-modal-show",{type:"archive",items:l.value}))},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([l.value.length?"cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300":"stroke-gray-200 dark:stroke-gray-700","h-6 w-6 md:h-8 md:w-8 m-auto"]),fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},Ar,2))],8,Tr))])),e.createElementVNode("div",zr,[e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(s)("Dark Mode"),"data-microtip-position":"bottom",role:"tooltip"},[(e.openBlock(),e.createElementBlock("svg",{onClick:E[7]||(E[7]=k=>e.unref(t).emit("vf-darkMode-toggle")),viewBox:"0 0 24 24","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"h-6 w-6 m-auto cursor-pointer stroke-sky-500 fill-sky-100 hover:stroke-sky-600 dark:stroke-gray-400 dark:fill-gray-400/20 dark:hover:stroke-gray-300"},Hr))],8,Rr),e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(s)("Toggle Full Screen"),"data-microtip-position":"bottom",role:"tooltip",onClick:y},[(e.openBlock(),e.createElementBlock("svg",Fr,[m.value?(e.openBlock(),e.createElementBlock("path",Kr)):(e.openBlock(),e.createElementBlock("path",Yr))]))],8,Ur),e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(s)("Change View"),"data-microtip-position":"bottom-left",role:"tooltip",onClick:E[8]||(E[8]=k=>p.value.length||e.unref(t).emit("vf-view-toggle",a.value=="list"?"grid":"list"))},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([p.value.length?"stroke-gray-200 dark:stroke-gray-700":"cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300","h-6 w-6 md:h-8 md:w-8 m-auto"]),fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[a.value=="grid"?(e.openBlock(),e.createElementBlock("path",Xr)):e.createCommentVNode("",!0),a.value=="list"?(e.openBlock(),e.createElementBlock("path",qr)):e.createCommentVNode("",!0)],2))],8,Wr)])]))}});var Jr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vt={exports:{}};(function(i,t){(function(r,o){i.exports=o()})(Jr,function(){function r(h,c){if(!(h instanceof c))throw new TypeError("Cannot call a class as a function")}function o(h,c){for(var n=0;n<c.length;n++){var g=c[n];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function s(h,c,n){return c&&o(h.prototype,c),n&&o(h,n),h}function a(h,c,n){return c in h?Object.defineProperty(h,c,{value:n,enumerable:!0,configurable:!0,writable:!0}):h[c]=n,h}function l(h,c){var n=Object.keys(h);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(h);c&&(g=g.filter(function(d){return Object.getOwnPropertyDescriptor(h,d).enumerable})),n.push.apply(n,g)}return n}function m(h){for(var c=1;c<arguments.length;c++){var n=arguments[c]!=null?arguments[c]:{};c%2?l(Object(n),!0).forEach(function(g){a(h,g,n[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(g){Object.defineProperty(h,g,Object.getOwnPropertyDescriptor(n,g))})}return h}function p(h,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(c&&c.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),c&&u(h,c)}function f(h){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},f(h)}function u(h,c){return u=Object.setPrototypeOf||function(g,d){return g.__proto__=d,g},u(h,c)}function y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function b(h,c,n){return y()?b=Reflect.construct:b=function(d,w,v){var _=[null];_.push.apply(_,w);var D=Function.bind.apply(d,_),C=new D;return v&&u(C,v.prototype),C},b.apply(null,arguments)}function E(h){return Function.toString.call(h).indexOf("[native code]")!==-1}function k(h){var c=typeof Map=="function"?new Map:void 0;return k=function(g){if(g===null||!E(g))return g;if(typeof g!="function")throw new TypeError("Super expression must either be null or a function");if(typeof c<"u"){if(c.has(g))return c.get(g);c.set(g,d)}function d(){return b(g,arguments,f(this).constructor)}return d.prototype=Object.create(g.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),u(d,g)},k(h)}function S(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function M(h,c){return c&&(typeof c=="object"||typeof c=="function")?c:S(h)}function R(h){var c=y();return function(){var g=f(h),d;if(c){var w=f(this).constructor;d=Reflect.construct(g,arguments,w)}else d=g.apply(this,arguments);return M(this,d)}}function A(h,c){for(;!Object.prototype.hasOwnProperty.call(h,c)&&(h=f(h),h!==null););return h}function N(h,c,n){return typeof Reflect<"u"&&Reflect.get?N=Reflect.get:N=function(d,w,v){var _=A(d,w);if(!!_){var D=Object.getOwnPropertyDescriptor(_,w);return D.get?D.get.call(v):D.value}},N(h,c,n||h)}function P(h,c){return U(h)||Q(h,c)||re(h,c)||$()}function H(h){return x(h)||Y(h)||re(h)||O()}function x(h){if(Array.isArray(h))return B(h)}function U(h){if(Array.isArray(h))return h}function Y(h){if(typeof Symbol<"u"&&Symbol.iterator in Object(h))return Array.from(h)}function Q(h,c){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(h)))){var n=[],g=!0,d=!1,w=void 0;try{for(var v=h[Symbol.iterator](),_;!(g=(_=v.next()).done)&&(n.push(_.value),!(c&&n.length===c));g=!0);}catch(D){d=!0,w=D}finally{try{!g&&v.return!=null&&v.return()}finally{if(d)throw w}}return n}}function re(h,c){if(!!h){if(typeof h=="string")return B(h,c);var n=Object.prototype.toString.call(h).slice(8,-1);if(n==="Object"&&h.constructor&&(n=h.constructor.name),n==="Map"||n==="Set")return Array.from(h);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B(h,c)}}function B(h,c){(c==null||c>h.length)&&(c=h.length);for(var n=0,g=new Array(c);n<c;n++)g[n]=h[n];return g}function O(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var I=function(c,n,g){var d=c.x,w=c.y,v=g.x,_=g.y,D={"+":{x:d+v,y:w+_},"-":{x:d-v,y:w-_},"*":{x:d*v,y:w*_},"/":{x:d/v,y:w/_}};return D[n]},j=function(c){return{x:c.left,y:c.top}},G=function(c){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return{left:c.x,top:c.y,right:c.x,bottom:c.y,width:n,height:n}},W=function(c){return{x:c,y:c}},je=function(h,c,n){window.addEventListener("resize",c),window.addEventListener("scroll",c),h.forEach(function(g,d){n.observe(g,{childList:d!==0,attributes:!0})})},Pe=function(h){var c=De(h);return c.x||c.y?!0:h instanceof HTMLDocument?h.body?!!(h.body.scrollTop=1):!!(h.documentElement.scrollTop=1):!!(h.scrollTop=1)},Ye=function(h){var c=document.createElement("div");return c.style.position="fixed",c.style.overflow="hidden",c.style.pointerEvents="none",c.style.zIndex="999999999999999999",c.classList.add(h),c},We=function(h){var c=document.createElement("div");return c.style.position="absolute",h||(c.style.background="rgba(0, 0, 255, 0.1)",c.style.border="1px solid rgba(0, 0, 255, 0.45)",c.style.display="none",c.style.pointerEvents="none"),c},Xe=function(h,c){var n;return function(){for(var g=arguments.length,d=new Array(g),w=0;w<g;w++)d[w]=arguments[w];var v=function(){n=null,h.apply(void 0,d)};clearTimeout(n),n=setTimeout(v,c)}},Se=function(){var h,c,n,g;return{y:((h=document.body)===null||h===void 0?void 0:h.scrollTop)||((c=document.documentElement)===null||c===void 0?void 0:c.scrollTop)||0,x:((n=document.body)===null||n===void 0?void 0:n.scrollLeft)||((g=document.documentElement)===null||g===void 0?void 0:g.scrollLeft)||0}},gt=function(h,c){if(h instanceof Document)return{top:0,left:0,bottom:0,right:0,width:window.innerWidth,height:window.innerHeight};var n=h.getBoundingClientRect();return{top:n.top,left:n.left,bottom:n.bottom,right:n.right,width:(h.clientWidth||n.width)*c,height:(h.clientHeight||n.height)*c}},De=function(h){return!h||h instanceof Document?Se():{x:h.scrollLeft>=0?h.scrollLeft:Se().x,y:h.scrollTop>=0?h.scrollTop:Se().y}},Zt=function(h){var c=h.elementRect,n=h.containerRect,g=h.tolerance,d=g===void 0?{x:0,y:0}:g,w=[];return c.top-d.y<n.top&&w.push("top"),c.left-d.x<n.left&&w.push("left"),c.bottom+d.y>n.bottom&&w.push("bottom"),c.right+d.y>n.right&&w.push("right"),w},sl=function(h){var c=h.event;return{x:c.clientX,y:c.clientY}},ll=function(h){var c=h.scrollAmount,n=h.initialPointerPos,g=h.pointerPos,d={};return g.x>n.x-c.x?(d.left=n.x-c.x,d.width=g.x-n.x+c.x):(d.left=g.x,d.width=n.x-g.x-c.x),g.y>n.y-c.y?(d.top=n.y-c.y,d.height=g.y-n.y+c.y):(d.top=g.y,d.height=n.y-g.y-c.y),d},Qt=function(c){var n={x:0,y:0},g=window.getComputedStyle(c);if(!g.transform||g.transform==="none")return n;if(g.transform.indexOf("3d")>=0){var d=g.transform.trim().match(/matrix3d\((.*?)\)/);if(d&&d.length){var w,v=(w=d[1])===null||w===void 0?void 0:w.split(",");n.x=parseInt(v[12])||0,n.y=parseInt(v[13])||0}return n}else{var _=g.transform.trim().match(/matrix\((.*?)\)/);if(_&&_.length){var D,C=(D=_[1])===null||D===void 0?void 0:D.split(",");n.x=parseInt(C[4])||0,n.y=parseInt(C[5])||0}return n}},cl=function(c){var n=c.style.transform;if(!n||n.indexOf("translate")<0)return Qt(c);var g={x:0,y:0},d=n.trim().match(/translate[3dD]*?\(.*?\)/);if(d){var w,v=(w=d[0])===null||w===void 0?void 0:w.split("(");if(v){var _,D=(_=v[1])===null||_===void 0?void 0:_.split(",");g.x=parseInt(D[0])||0,g.y=parseInt(D[1])||0}}return!g.x&&!g.x?Qt(c):g},dl=function(c){var n=c.style,g={x:parseInt(n.left)||0,y:parseInt(n.top)||0};if(!g.x&&!g.x){var d=window.getComputedStyle(c);return{x:parseInt(d.left)||0,y:parseInt(d.top)||0}}return g},hl=function(h,c){return c?cl(h):dl(h)},ul=function(h){var c=h.element,n=h.edges,g=h.elementRect,d=h.containerRect,w=h.elementPos,v=h.useTransform;n.includes("top")&&Le(c,{y:w.y+d.top-g.top,x:w.x},v),n.includes("left")&&Le(c,{y:w.y,x:w.x+d.left-g.left},v),n.includes("bottom")&&Le(c,{y:w.y+d.bottom-g.bottom,x:w.x},v),n.includes("right")&&Le(c,{y:w.y,x:w.x+d.right-g.right},v)},er=function(h){var c=h.computedStyle,n=h.node,g=c.position,d=g==="absolute"||g==="relative"||g==="fixed";!(n instanceof HTMLDocument)&&!d&&(n.style.position="relative")},ml=function(h){var c=h.shiftKey,n=h.keyboardDragSpeed,g=h.zoom,d=h.key,w=h.dragKeys,v=h.scrollDiff,_=h.canScroll,D=h.scrollCallback,C={x:0,y:0},V=c?n*4*g:n*g;return w.left.includes(d)&&(C.x=v.x||-V,!c&&!v.x&&_&&D(["left"],n)),w.right.includes(d)&&(C.x=v.x||V,!c&&!v.x&&_&&D(["right"],n)),w.up.includes(d)&&(C.y=v.y||-V,!c&&!v.y&&_&&D(["top"],n)),w.down.includes(d)&&(C.y=v.y||V,!c&&!v.y&&_&&D(["bottom"],n)),C},fl=function(h){var c=h.element,n=h.force,g=h.multiSelectionToggle,d=h.SelectedSet,w=h.hoverClassName;c.classList.contains(w)&&!n||(d.has(c)?g&&d.delete(c):d.add(c),c.classList.add(w))},pl=function(h){var c=h.element,n=h.force,g=h.SelectedSet,d=h.PrevSelectedSet,w=h.hoverClassName;if(!c.classList.contains(w)&&!n)return!1;var v=g.has(c),_=d.has(c);v&&!_?g.delete(c):!v&&_&&g.add(c),c.classList.remove(w)},yt=function(h,c){return h.left<c.right&&h.right>c.left&&h.top<c.bottom&&h.bottom>c.top},tr=function(h){var c=h.element,n=h.posDirection,g=h.containerRect,d=h.useTransform,w=hl(c,d),v=I(w,"+",n);Le(c,v,d);var _=c.getBoundingClientRect(),D=Zt({elementRect:_,containerRect:g});ul({element:c,edges:D,elementRect:_,containerRect:g,elementPos:v,useTransform:d})},gl=function(h,c){window.removeEventListener("resize",c),window.removeEventListener("scroll",c),h.disconnect()},yl=function(h,c,n){if(!!c.length){var g=document&&document.documentElement&&document.documentElement.scrollTop&&document.documentElement,d=h instanceof HTMLDocument?g||document.body:h,w=c.includes("top")&&d.scrollTop>0,v=c.includes("bottom")&&d.scrollTop<d.scrollHeight,_=c.includes("left")&&d.scrollLeft>0,D=c.includes("right")&&d.scrollLeft<d.scrollWidth;w&&(d.scrollTop-=1*n),v&&(d.scrollTop+=1*n),_&&(d.scrollLeft-=1*n),D&&(d.scrollLeft+=1*n)}},Le=function(h,c,n){if(n){var g=h.style.transform;h.style.transform="translate3d(".concat(c.x,"px,").concat(c.y,"px,1px) ").concat(g.replace(/translate.*?\)/g,""))}else h.style.left="".concat(c.x,"px"),h.style.top="".concat(c.y,"px");return h},bl=function(h){for(var c=h.subscribe,n=h.publish,g=h.Interaction,d=h.SelectedSet,w={"Selected:added":[{name:"elementselect"}],"Selected:removed":[{name:"elementunselect"}],"Area:scroll":[{name:"autoscroll"}],"Interaction:start":[{name:"dragstart"}],"Interaction:update":[{name:"dragmove",condition:function(V){return V.event}}],"Interaction:end":[{name:"callback"}]},v=function(){var V=P(D[_],2),T=V[0],L=V[1];["pre",!1].forEach(function(X){return c(X?"".concat(T,":").concat(X):T,function(ne){return L.forEach(function(J){return(!J.condition||J.condition(ne))&&n(X?"".concat(X).concat(J.name):J.name,m({items:d.elements,isDragging:g.isDragging},ne))})})})},_=0,D=Object.entries(w);_<D.length;_++)v()},Ee=function(h){return h?!Array.isArray(h)&&(h instanceof HTMLElement||h instanceof SVGElement)?[h]:H(h):[]},rr=function(h,c){h.style.left="".concat(c.left,"px"),h.style.top="".concat(c.top,"px"),h.style.width="".concat(c.width,"px"),h.style.height="".concat(c.height,"px")},wl=function(){function h(c){var n=this,g=c.area,d=c.PS,w=c.zoom;r(this,h),a(this,"_modificationCallback",void 0),a(this,"_modificationObserver",void 0),a(this,"_zoom",void 0),a(this,"_node",void 0),a(this,"_parentNodes",void 0),a(this,"_computedStyle",void 0),a(this,"_computedBorder",void 0),a(this,"_rect",void 0),a(this,"setArea",function(v){n._node=v,er({computedStyle:n.computedStyle,node:n._node}),setTimeout(function(){n.PubSub.publish("Area:modified:pre",{item:n}),n.reset(),n.PubSub.publish("Area:modified",{item:n})})}),a(this,"start",function(){je(n.parentNodes,n._modificationCallback,n._modificationObserver)}),a(this,"reset",function(){n._computedStyle=void 0,n._rect=void 0,n._computedBorder=void 0,n._parentNodes=void 0}),a(this,"stop",function(){gl(n._modificationObserver,n._modificationCallback),n.reset()}),a(this,"scroll",function(v,_){var D={scroll_directions:v,scroll_multiplier:_};n.PubSub.publish("Area:scroll:pre",D),yl(n._node,v,_),n.PubSub.publish("Area:scroll",D)}),this._zoom=w,this.PubSub=d,this.setArea(g),this._modificationCallback=Xe(function(v){n.PubSub.publish("Area:modified:pre",{event:v,item:n}),n.reset(),n.PubSub.publish("Area:modified",{event:v,item:n})},60),this._modificationObserver=new MutationObserver(this._modificationCallback),this.PubSub.subscribe("Interaction:init",this.start),this.PubSub.subscribe("Interaction:end",this.reset)}return s(h,[{key:"HTMLNode",get:function(){return this._node}},{key:"computedBorder",get:function(){return this._computedBorder?this._computedBorder:{top:parseInt(this.computedStyle.borderTopWidth),bottom:parseInt(this.computedStyle.borderBottomWidth),left:parseInt(this.computedStyle.borderLeftWidth),right:parseInt(this.computedStyle.borderRightWidth)}}},{key:"computedStyle",get:function(){return this._computedStyle?this._computedStyle:this.HTMLNode instanceof HTMLDocument?this._computedStyle=window.getComputedStyle(this.HTMLNode.body||this.HTMLNode.documentElement):this._computedStyle=window.getComputedStyle(this.HTMLNode)}},{key:"rect",get:function(){return this._rect?this._rect:this._rect=gt(this.HTMLNode,this._zoom)}},{key:"parentNodes",get:function(){if(this._parentNodes)return this._parentNodes;var n=function g(d){var w,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=(w=d[v])===null||w===void 0?void 0:w.parentNode;return _?(d.push(_),v++,g(d,v)):d};return this._parentNodes=n([this.HTMLNode]),this._parentNodes}}]),h}(),vl=function(){function h(c){var n=this,g=c.DS,d=c.dragKeys,w=c.draggability,v=c.keyboardDrag,_=c.keyboardDragSpeed,D=c.useTransform,C=c.zoom;r(this,h),a(this,"_useTransform",void 0),a(this,"_prevCursorPos",void 0),a(this,"_prevScrollPos",void 0),a(this,"_elements",[]),a(this,"_draggability",void 0),a(this,"_dragKeys",void 0),a(this,"_dragKeysFlat",void 0),a(this,"_keyboardDrag",void 0),a(this,"_keyboardDragSpeed",void 0),a(this,"_zoom",void 0),a(this,"keyboardDrag",function(V){var T=V.event,L=V.key;if(!(!n._keyboardDrag||!n._dragKeysFlat.includes(L)||!n.DS.SelectedSet.size||!n._draggability||n.DS.continue)){var X={event:T,isDragging:!0,isDraggingKeyboard:!0};n.DS.publish(["Interaction:start:pre","Interaction:start"],X),n._elements=n.DS.getSelection(),n.handleZIndex(!0);var ne=ml({shiftKey:n.DS.stores.KeyStore.currentValues.includes("shift"),keyboardDragSpeed:n._keyboardDragSpeed,zoom:n._zoom,key:L,scrollCallback:n.DS.Area.scroll,scrollDiff:n._scrollDiff,canScroll:n.DS.stores.ScrollStore.canScroll,dragKeys:n._dragKeys});n._elements.forEach(function(J){return tr({element:J,posDirection:ne,containerRect:n.DS.SelectorArea.rect,useTransform:n._useTransform})}),n.DS.publish(["Interaction:update:pre","Interaction:update"],X)}}),a(this,"keyboardEnd",function(V){var T=V.event,L=V.key;if(!(!n._keyboardDrag||!n._dragKeysFlat.includes(L)||!n.DS.SelectedSet.size||!n._draggability)){var X={event:T,isDragging:n._draggability,isDraggingKeyboard:!0};n.DS.publish(["Interaction:end:pre","Interaction:end"],X)}}),a(this,"start",function(V){var T=V.isDragging,L=V.isDraggingKeyboard;!T||L||(n._prevCursorPos=null,n._prevScrollPos=null,n._elements=n.DS.getSelection(),n.handleZIndex(!0))}),a(this,"stop",function(V){V!=null&&V.isKeyboard||(n._prevCursorPos=null,n._prevScrollPos=null,n.handleZIndex(!1),n._elements=[])}),a(this,"update",function(V){var T=V.isDragging,L=V.isDraggingKeyboard;if(!(!T||!n._elements.length||L||n.DS.continue)){var X=I(n._cursorDiff,"+",n._scrollDiff);n._elements.forEach(function(ne){return tr({element:ne,posDirection:X,containerRect:n.DS.SelectorArea.rect,useTransform:n._useTransform})})}}),a(this,"handleZIndex",function(V){n._elements.forEach(function(T){return T.style.zIndex="".concat((parseInt(T.style.zIndex)||0)+V?9999:-9998)})}),this.DS=g,this._useTransform=D,this._keyboardDragSpeed=_,this._keyboardDrag=v,this._zoom=C,this._draggability=w,this._dragKeys={up:d.up.map(function(V){return V.toLowerCase()}),down:d.down.map(function(V){return V.toLowerCase()}),left:d.left.map(function(V){return V.toLowerCase()}),right:d.right.map(function(V){return V.toLowerCase()})},this._dragKeysFlat=[].concat(H(this._dragKeys.up),H(this._dragKeys.down),H(this._dragKeys.left),H(this._dragKeys.right)),this.DS.subscribe("Interaction:start",this.start),this.DS.subscribe("Interaction:end",this.stop),this.DS.subscribe("Interaction:update",this.update),this.DS.subscribe("KeyStore:down",this.keyboardDrag),this.DS.subscribe("KeyStore:up",this.keyboardEnd)}return s(h,[{key:"_cursorDiff",get:function(){var n=this.DS.stores.PointerStore.currentVal,g=this._prevCursorPos?I(n,"-",this._prevCursorPos):{x:0,y:0};return this._prevCursorPos=n,g}},{key:"_scrollDiff",get:function(){var n=this.DS.stores.ScrollStore.currentVal,g=this._prevScrollPos?I(n,"-",this._prevScrollPos):{x:0,y:0};return this._prevScrollPos=n,g}}]),h}(),kl=function(){function h(c){var n=this,g=c.DS,d=c.areaElement,w=c.draggability,v=c.immediateDrag,_=c.selectableClass;r(this,h),a(this,"_areaElement",void 0),a(this,"_draggability",void 0),a(this,"_immediateDrag",void 0),a(this,"_selectableClass",void 0),a(this,"isInteracting",void 0),a(this,"isDragging",void 0),a(this,"init",function(){return n.DS.publish("Interaction:init:pre",{})}),a(this,"_init",function(){n.stop(),n._areaElement.addEventListener("mousedown",n.start),n._areaElement.addEventListener("touchstart",n.start,{passive:!1}),n.DS.publish("Interaction:init",{})}),a(this,"start",function(D){return n.DS.publish("Interaction:start:pre",{event:D,isDragging:n.isDragging})}),a(this,"_start",function(D){D.type==="touchstart"&&D.preventDefault(),n._canInteract(D)&&(n.isInteracting=!0,n.isDragging=n.isDragEvent(D),n.DS.publish("Interaction:start",{event:D,isDragging:n.isDragging}),document.addEventListener("mouseup",n.reset),document.addEventListener("touchend",n.reset))}),a(this,"isDragEvent",function(D){var C=D.target.closest(".".concat(n._selectableClass));return!n._draggability||n.DS.stores.KeyStore.isMultiSelectKeyPressed(D)||!C?!1:(n._immediateDrag&&(n.DS.SelectedSet.size?n.DS.SelectedSet.has(C)||(n.DS.SelectedSet.clear(),n.DS.SelectedSet.add(C)):n.DS.SelectedSet.add(C)),!!n.DS.SelectedSet.has(C))}),a(this,"onClick",function(D){var C=D.event;if(!!n._canInteract(C)&&!(C.detail>0)){var V=n.DS,T=V.stores,L=T.PointerStore,X=T.KeyStore,ne=V.SelectableSet,J=V.SelectedSet;L.start(C);var Ne=C.target;!ne.has(Ne)||(X.isMultiSelectKeyPressed(C)||J.clear(),J.toggle(Ne),n.reset())}}),a(this,"stop",function(){n.isInteracting=!1,n.isDragging=!1,n._areaElement.removeEventListener("mousedown",n.start),n._areaElement.removeEventListener("touchstart",n.start,{passive:!1}),document.removeEventListener("mouseup",n.reset),document.removeEventListener("touchend",n.reset)}),a(this,"update",function(D){var C=D.event,V=D.scroll_directions,T=D.scroll_multiplier;n.isInteracting&&n.DS.publish(["Interaction:update:pre","Interaction:update"],{event:C,scroll_directions:V,scroll_multiplier:T,isDragging:n.isDragging})}),a(this,"reset",function(D){return n.DS.publish("Interaction:end:pre",{event:D,isDragging:n.isDragging})}),a(this,"_reset",function(D){var C=n.isDragging;n.stop(),n.init(),n.DS.publish("Interaction:end",{event:D,isDragging:C})}),this._areaElement=d,this._draggability=w,this._immediateDrag=v,this._selectableClass=_,this.DS=g,this.DS.subscribe("PointerStore:updated",this.update),this.DS.subscribe("Selectable:click",this.onClick),this.DS.subscribe("Selectable:pointer",function(D){var C=D.event;return n.start(C)}),this.DS.subscribe("Interaction:start:pre",function(D){var C=D.event;return n._start(C)}),this.DS.subscribe("Interaction:init:pre",this._init),this.DS.subscribe("Interaction:end:pre",function(D){var C=D.event;return n._reset(C)}),this.DS.subscribe("Area:scroll",this.update)}return s(h,[{key:"_canInteract",value:function(n){var g=n.clientX===0&&n.clientY===0&&n.detail===0&&n.target;return!(n.button===2||this.isInteracting||n.target&&!this.DS.SelectorArea.isInside(n.target)||!g&&!this.DS.SelectorArea.isClicked(n))}}]),h}(),_l=function h(c){var n=this,g=c.DS;r(this,h),a(this,"subscribers",{}),a(this,"subscribe",function(d,w){return Array.isArray(n.subscribers[d])||(n.subscribers[d]=[]),n.subscribers[d].push(w),n.subscribers[d].length-1}),a(this,"unsubscribe",function(d,w,v){v>=0?n.subscribers[d].splice(v,1):w&&(n.subscribers[d]=n.subscribers[d].filter(function(_){return _!==w}))}),a(this,"publish",function(d,w){Array.isArray(d)?d.forEach(function(v){return n._publish(v,w)}):n._publish(d,w)}),a(this,"_publish",function(d,w){var v=n.subscribers[d];!Array.isArray(v)||(d.includes(":pre")?n._handlePrePublish(v,w):n._handlePublish(v,w))}),a(this,"_handlePublish",function(d,w){for(var v=0,_=d.length;v<_;v++){if(n.DS.stopped)return;d[v](w)}}),a(this,"_handlePrePublish",function(d,w){for(var v=d.length;v--;){if(n.DS.stopped)return;d[v](w)}}),this.DS=g},xl=function(h){p(n,h);var c=R(n);function n(g){var d,w=g.elements,v=g.className,_=g.hoverClassName,D=g.draggability,C=g.useTransform,V=g.DS;return r(this,n),d=c.call(this),a(S(d),"_initElements",void 0),a(S(d),"_className",void 0),a(S(d),"_hoverClassName",void 0),a(S(d),"_useTransform",void 0),a(S(d),"_draggability",void 0),a(S(d),"init",function(){return d._initElements.forEach(function(T){return d.add(T)})}),a(S(d),"clear",function(){return d.forEach(function(T){return d.delete(T)})}),a(S(d),"_onClick",function(T){return d.DS.publish(["Selectable:click:pre","Selectable:click"],{event:T})}),a(S(d),"_onPointer",function(T){return d.DS.publish(["Selectable:pointer:pre","Selectable:pointer"],{event:T})}),a(S(d),"addAll",function(T){return T.forEach(function(L){return d.add(L)})}),a(S(d),"deleteAll",function(T){return T.forEach(function(L){return d.delete(L)})}),d.DS=V,d._initElements=Ee(w),d._className=v,d._hoverClassName=_,d._useTransform=C,d._draggability=D,d.DS.subscribe("Interaction:init",d.init),d}return s(n,[{key:"add",value:function(d){return d.classList.add(this._className),d.addEventListener("click",this._onClick),d.addEventListener("mousedown",this._onPointer),d.addEventListener("touchstart",this._onPointer,{passive:!1}),this._draggability&&!this._useTransform&&er({computedStyle:window.getComputedStyle(d),node:d}),N(f(n.prototype),"add",this).call(this,d)}},{key:"delete",value:function(d){return d.classList.remove(this._className),d.classList.remove(this._hoverClassName),d.removeEventListener("click",this._onClick),d.removeEventListener("mousedown",this._onPointer),d.removeEventListener("touchstart",this._onPointer,{passive:!1}),N(f(n.prototype),"delete",this).call(this,d)}},{key:"elements",get:function(){return Array.from(this.values())}}]),n}(k(Set)),Sl=function(h){p(n,h);var c=R(n);function n(g){var d,w=g.className,v=g.DS;return r(this,n),d=c.call(this),a(S(d),"_className",void 0),a(S(d),"clear",function(){return d.forEach(function(_){return d.delete(_)})}),a(S(d),"addAll",function(_){return _.forEach(function(D){return d.add(D)})}),a(S(d),"deleteAll",function(_){return _.forEach(function(D){return d.delete(D)})}),d.DS=v,d._className=w,d}return s(n,[{key:"add",value:function(d){if(!N(f(n.prototype),"has",this).call(this,d)){var w={items:this.elements,item:d};return this.DS.publish("Selected:added:pre",w),N(f(n.prototype),"add",this).call(this,d),d.classList.add(this._className),d.style.zIndex="".concat((parseInt(d.style.zIndex)||0)+1),this.DS.publish("Selected:added",w),this}}},{key:"delete",value:function(d){if(!!N(f(n.prototype),"has",this).call(this,d)){var w={items:this.elements,item:d};this.DS.publish("Selected:removed:pre",w);var v=N(f(n.prototype),"delete",this).call(this,d);return d.classList.remove(this._className),d.style.zIndex="".concat((parseInt(d.style.zIndex)||0)-1),this.DS.publish("Selected:removed",w),v}}},{key:"toggle",value:function(d){return this.has(d)?this.delete(d):this.add(d),d}},{key:"elements",get:function(){return Array.from(this.values())}}]),n}(k(Set)),Dl=function(){function h(c){var n=this,g=c.DS,d=c.hoverClassName,w=c.multiSelectToggling;r(this,h),a(this,"_prevSelectedSet",void 0),a(this,"_hoverClassName",void 0),a(this,"_multiSelectToggling",void 0),a(this,"start",function(v){var _=v.event,D=v.isDragging;D||(n._storePrevious(_),n._handleInsideSelection(!0,_))}),a(this,"update",function(v){var _=v.isDragging;_||n.DS.continue||n._handleInsideSelection()}),a(this,"_handleInsideSelection",function(v,_){for(var D=n.DS,C=D.SelectableSet,V=D.SelectorArea,T=D.Selector,L=C.elements.map(function(fe){return[fe,fe.getBoundingClientRect()]}),X=[],ne=[],J=0,Ne=L.length;J<Ne;J++)!V.isInside(L[J][0],L[J][1])||(yt(L[J][1],T.rect)?X.push(L[J][0]):ne.push(L[J][0]));var qe=n.DS.stores.KeyStore.isMultiSelectKeyPressed(_)&&n._multiSelectToggling;n.DS.continue||(X.forEach(function(fe){return fl({element:fe,force:v,multiSelectionToggle:qe,SelectedSet:n.DS.SelectedSet,hoverClassName:n._hoverClassName})}),ne.forEach(function(fe){return pl({element:fe,force:v,SelectedSet:n.DS.SelectedSet,hoverClassName:n._hoverClassName,PrevSelectedSet:n._prevSelectedSet})}))}),this._hoverClassName=d,this._multiSelectToggling=w,this.DS=g,this.DS.subscribe("Interaction:start",this.start),this.DS.subscribe("Interaction:update",this.update)}return s(h,[{key:"_storePrevious",value:function(n){var g=this.DS,d=g.stores.KeyStore,w=g.SelectedSet;d.isMultiSelectKeyPressed(n)?this._prevSelectedSet=new Set(w):this._prevSelectedSet=new Set}}]),h}(),El=function(){function h(c){var n=this,g=c.DS,d=c.selector,w=c.selectorClass,v=c.customStyles;r(this,h),a(this,"_rect",void 0),a(this,"start",function(_){var D=_.isDragging;if(!D){var C=n.DS.stores.PointerStore,V=C.initialValArea;rr(n.HTMLNode,G(V,1)),n.HTMLNode.style.display="block",n._rect=null}}),a(this,"stop",function(){n.HTMLNode.style.width="0",n.HTMLNode.style.height="0",n.HTMLNode.style.display="none"}),a(this,"update",function(_){var D=_.isDragging;if(!(D||n.DS.continue)){var C=n.DS.stores,V=C.ScrollStore,T=C.PointerStore,L=ll({scrollAmount:V.scrollAmount,initialPointerPos:T.initialValArea,pointerPos:T.currentValArea});rr(n.HTMLNode,L),n._rect=null}}),this.DS=g,this.HTMLNode=d||We(v),this.HTMLNode.classList.add(w),this.DS.subscribe("Interaction:start",this.start),this.DS.subscribe("Interaction:update",this.update),this.DS.subscribe("Interaction:end",this.stop)}return s(h,[{key:"rect",get:function(){return this._rect?this._rect:this._rect=this.HTMLNode.getBoundingClientRect()}}]),h}(),Nl=function(){function h(c){var n=this,g=c.DS,d=c.selectorAreaClass,w=c.autoScrollSpeed,v=c.overflowTolerance;r(this,h),a(this,"_autoScrollSpeed",void 0),a(this,"_scrollInterval",void 0),a(this,"_rect",void 0),a(this,"currentEdges",[]),a(this,"_overflowTolerance",void 0),a(this,"start",function(){return n.applyElements("append")}),a(this,"applyElements",function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"append",D=document.body?"body":"documentElement",C="".concat(_,"Child");n.HTMLNode[C](n.DS.Selector.HTMLNode),document[D][C](n.HTMLNode)}),a(this,"updatePos",function(){n._rect=null;var _=n.DS.Area.rect,D=n.DS.Area.computedBorder,C=n.HTMLNode.style,V="".concat(_.top+D.top,"px"),T="".concat(_.left+D.left,"px"),L="".concat(_.width,"px"),X="".concat(_.height,"px");C.top!==V&&(C.top=V),C.left!==T&&(C.left=T),C.width!==L&&(C.width=L),C.height!==X&&(C.height=X)}),a(this,"stop",function(_){n.stopAutoScroll(),_&&n.applyElements("remove")}),a(this,"startAutoScroll",function(){n.currentEdges=[],n._scrollInterval=setInterval(function(){return n.handleAutoScroll()},16)}),a(this,"handleAutoScroll",function(){if(!n.DS.continue){var _=n.DS,D=_.stores.PointerStore,C=_.Area;n.currentEdges=Zt({elementRect:G(D.currentVal),containerRect:n.rect,tolerance:n._overflowTolerance}),n.currentEdges.length&&C.scroll(n.currentEdges,n._autoScrollSpeed)}}),a(this,"stopAutoScroll",function(){n.currentEdges=[],clearInterval(n._scrollInterval)}),a(this,"isInside",function(_,D){return n.DS.Area.HTMLNode.contains(_)&&n.DS.stores.ScrollStore.canScroll?!0:yt(n.rect,D||_.getBoundingClientRect())}),this._autoScrollSpeed=w,this._overflowTolerance=v,this.DS=g,this.HTMLNode=Ye(d),this.DS.subscribe("Area:modified",this.updatePos),this.DS.subscribe("Interaction:init",this.start),this.DS.subscribe("Interaction:start",this.startAutoScroll),this.DS.subscribe("Interaction:end",function(){n.updatePos(),n.stopAutoScroll()})}return s(h,[{key:"isClicked",value:function(n){var g=this.DS.stores.PointerStore,d=n?g.getPointerPosition(n):g.initialVal;return yt({left:d.x,top:d.y,right:d.x,bottom:d.y},this.rect)}},{key:"rect",get:function(){return this._rect?this._rect:this._rect=this.HTMLNode.getBoundingClientRect()}}]),h}(),Vl=function(){function h(c){var n=this,g=c.DS,d=c.multiSelectKeys,w=c.multiSelectMode;r(this,h),a(this,"_multiSelectMode",void 0),a(this,"_multiSelectKeys",void 0),a(this,"_currentValues",new Set),a(this,"_keyMapping",{control:"ctrlKey",shift:"shiftKey",meta:"metaKey"}),a(this,"init",function(){document.addEventListener("keydown",n.keydown),document.addEventListener("keyup",n.keyup),window.addEventListener("blur",n.reset)}),a(this,"keydown",function(v){var _=v.key.toLowerCase();n.DS.publish("KeyStore:down:pre",{event:v,key:_}),n._currentValues.add(_),n.DS.publish("KeyStore:down",{event:v,key:_})}),a(this,"keyup",function(v){var _=v.key.toLowerCase();n.DS.publish("KeyStore:up:pre",{event:v,key:_}),n._currentValues.delete(_),n.DS.publish("KeyStore:up",{event:v,key:_})}),a(this,"stop",function(){document.removeEventListener("keydown",n.keydown),document.removeEventListener("keyup",n.reset),window.removeEventListener("blur",n.reset),n.reset()}),a(this,"reset",function(){return n._currentValues.clear()}),this.DS=g,this._multiSelectMode=w,this._multiSelectKeys=d.map(function(v){var _={ctrlKey:"Control",shiftKey:"Shift",metaKey:"Meta"},D=_[v];return D?(console.warn("[DragSelect] ".concat(v,' is deprecated. Use "').concat(D,'" instead. Act Now!. See docs for more info')),D.toLowerCase()):v.toLowerCase()}),this.DS.subscribe("Interaction:init",this.init)}return s(h,[{key:"isMultiSelectKeyPressed",value:function(n){var g=this;return!!(this._multiSelectMode||this.currentValues.some(function(d){return g._multiSelectKeys.includes(d)})||n&&this._multiSelectKeys.some(function(d){return n[g._keyMapping[d]]}))}},{key:"currentValues",get:function(){return Array.from(this._currentValues.values())}}]),h}(),Cl=function(){function h(c){var n=this,g=c.DS;r(this,h),a(this,"_isMouseInteraction",!1),a(this,"_initialValArea",void 0),a(this,"_currentValArea",void 0),a(this,"_lastValArea",void 0),a(this,"_initialVal",void 0),a(this,"_currentVal",void 0),a(this,"_lastVal",void 0),a(this,"_lastTouch",void 0),a(this,"init",function(){document.addEventListener("mousemove",n.update),document.addEventListener("touchmove",n.update,{passive:!1})}),a(this,"getPointerPosition",function(d){return sl({event:n._normalizedEvent(d)})}),a(this,"update",function(d){!d||(n.DS.publish("PointerStore:updated:pre",{event:d}),n.currentVal=n.getPointerPosition(d),n._isMouseInteraction&&n.DS.publish("PointerStore:updated",{event:d}))}),a(this,"stop",function(){document.removeEventListener("mousemove",n.update),document.removeEventListener("touchmove",n.update,{passive:!1}),setTimeout(function(){return n._isMouseInteraction=!1},100)}),a(this,"reset",function(d){!d||(n.currentVal=n.lastVal=n.getPointerPosition(d),n.stop(),n.init())}),this.DS=g,this.DS.subscribe("Interaction:init",this.init),this.DS.subscribe("Interaction:start",function(d){var w=d.event;return n.start(w)}),this.DS.subscribe("Interaction:end",function(d){var w=d.event;return n.reset(w)})}return s(h,[{key:"start",value:function(n){!n||(this._isMouseInteraction=!0,this.currentVal=this.initialVal=this.getPointerPosition(n))}},{key:"_normalizedEvent",value:function(n){return"touches"in n&&n.type!=="touchend"&&(this._lastTouch=n),"touches"in n?this._lastTouch.touches[0]:n}},{key:"initialValArea",get:function(){return this._initialValArea?this._initialValArea:{x:0,y:0}}},{key:"currentValArea",get:function(){return this._currentValArea?this._currentValArea:{x:0,y:0}}},{key:"lastValArea",get:function(){return this._lastValArea?this._lastValArea:{x:0,y:0}}},{key:"initialVal",get:function(){return this._initialVal?this._initialVal:{x:0,y:0}},set:function(n){this._initialVal=n,this._initialValArea=n&&I(n,"-",I(j(this.DS.Area.rect),"+",j(this.DS.Area.computedBorder)))}},{key:"currentVal",get:function(){return this._currentVal?this._currentVal:{x:0,y:0}},set:function(n){this._currentVal=n,this._currentValArea=n&&I(n,"-",I(j(this.DS.Area.rect),"+",j(this.DS.Area.computedBorder)))}},{key:"lastVal",get:function(){return this._lastVal?this._lastVal:{x:0,y:0}},set:function(n){this._lastVal=n,this._lastValArea=n&&I(n,"-",I(j(this.DS.Area.rect),"+",j(this.DS.Area.computedBorder)))}}]),h}(),$l=function(){function h(c){var n=this,g=c.DS,d=c.areaElement,w=c.zoom;r(this,h),a(this,"_initialVal",void 0),a(this,"_currentVal",void 0),a(this,"_areaElement",void 0),a(this,"_canScroll",void 0),a(this,"init",function(){return n._areaElement.addEventListener("scroll",n.update)}),a(this,"start",function(){n._currentVal=n._initialVal=De(n._areaElement),n._areaElement.addEventListener("scroll",n.update)}),a(this,"update",function(){return n._currentVal=De(n._areaElement)}),a(this,"stop",function(){n._areaElement.removeEventListener("scroll",n.update),n._initialVal={x:0,y:0},n._canScroll=null}),a(this,"reset",function(){n.stop(),n.start()}),this._areaElement=d,this.DS=g,this.zoom=w,this.DS.subscribe("Interaction:init",this.init),this.DS.subscribe("Interaction:start",function(){return n.start()}),this.DS.subscribe("Interaction:end",function(){return n.reset()})}return s(h,[{key:"canScroll",get:function(){return typeof this._canScroll=="boolean"?this._canScroll:this._canScroll=Pe(this._areaElement)}},{key:"scrollAmount",get:function(){var n=I(this.currentVal,"-",this.initialVal),g=W(this.zoom),d=I(I(n,"*",g),"-",n);return{x:n.x+d.x,y:n.y+d.y}}},{key:"initialVal",get:function(){return this._initialVal?this._initialVal:{x:0,y:0}}},{key:"currentVal",get:function(){return this._currentVal||(this._currentVal=De(this._areaElement)),this._currentVal}}]),h}(),Ml=function(){function h(c){var n=this,g=c.area,d=g===void 0?document:g,w=c.selectables,v=w===void 0?[]:w,_=c.autoScrollSpeed,D=_===void 0?5:_,C=c.overflowTolerance,V=C===void 0?{x:25,y:25}:C,T=c.zoom,L=T===void 0?1:T,X=c.customStyles,ne=X===void 0?!1:X,J=c.multiSelectMode,Ne=J===void 0?!1:J,qe=c.multiSelectToggling,fe=qe===void 0?!0:qe,nr=c.multiSelectKeys,Bl=nr===void 0?["Control","Shift","Meta"]:nr,or=c.selector,Tl=or===void 0?void 0:or,ar=c.draggability,bt=ar===void 0?!0:ar,ir=c.immediateDrag,Al=ir===void 0?!0:ir,sr=c.keyboardDrag,Ol=sr===void 0?!0:sr,jl=c.dragKeys,lr=c.keyboardDragSpeed,Pl=lr===void 0?10:lr,cr=c.useTransform,dr=cr===void 0?!0:cr,hr=c.hoverClass,ur=hr===void 0?"ds-hover":hr,mr=c.selectableClass,fr=mr===void 0?"ds-selectable":mr,pr=c.selectedClass,Ll=pr===void 0?"ds-selected":pr,gr=c.selectorClass,Il=gr===void 0?"ds-selector":gr,yr=c.selectorAreaClass,zl=yr===void 0?"ds-selector-area":yr,Rl=c.callback,Hl=c.onDragMove,Ul=c.onDragStartBegin,Fl=c.onDragStart,Kl=c.onElementSelect,Yl=c.onElementUnselect;r(this,h),a(this,"continue",!1),a(this,"start",function(){n.stopped=!1,n.Interaction.init()}),a(this,"break",function(){return n.continue=!0}),a(this,"getSelection",function(){return n.SelectedSet.elements}),a(this,"getSelectables",function(){return n.SelectableSet.elements}),a(this,"getInitialCursorPosition",function(){return n.stores.PointerStore.initialVal}),a(this,"getCurrentCursorPosition",function(){return n.stores.PointerStore.currentVal}),a(this,"getPreviousCursorPosition",function(){return n.stores.PointerStore.lastVal}),a(this,"getInitialCursorPositionArea",function(){return n.stores.PointerStore.initialValArea}),a(this,"getCurrentCursorPositionArea",function(){return n.stores.PointerStore.currentValArea}),a(this,"getPreviousCursorPositionArea",function(){return n.stores.PointerStore.lastValArea}),a(this,"isMultiSelect",function(Wl){return n.stores.KeyStore.isMultiSelectKeyPressed(Wl)}),a(this,"isDragging",function(){return n.Interaction.isDragging}),this.PubSub=new _l({DS:this}),this.subscribe=this.PubSub.subscribe,this.unsubscribe=this.PubSub.unsubscribe,this.publish=this.PubSub.publish,this._callbacksTemp({callback:Rl,onDragMove:Hl,onDragStart:Fl,onDragStartBegin:Ul,onElementSelect:Kl,onElementUnselect:Yl}),this.stores={PointerStore:new Cl({DS:this}),ScrollStore:new $l({DS:this,areaElement:d,zoom:L}),KeyStore:new Vl({DS:this,multiSelectKeys:Bl,multiSelectMode:Ne})},this.Area=new wl({area:d,PS:this.PubSub,zoom:L}),this.Selector=new El({DS:this,selector:Tl,selectorClass:Il,customStyles:ne}),this.SelectorArea=new Nl({DS:this,selectorAreaClass:zl,autoScrollSpeed:D,overflowTolerance:V}),this.SelectableSet=new xl({elements:v,DS:this,className:fr,hoverClassName:ur,useTransform:dr,draggability:bt}),this.SelectedSet=new Sl({DS:this,className:Ll}),this.Selection=new Dl({DS:this,hoverClassName:ur,multiSelectToggling:fe}),this.Drag=new vl({DS:this,draggability:bt,useTransform:dr,keyboardDrag:Ol,dragKeys:Object.assign({up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},jl),zoom:L,keyboardDragSpeed:Pl}),this.Interaction=new kl({areaElement:d,DS:this,draggability:bt,immediateDrag:Al,selectableClass:fr}),bl({subscribe:this.subscribe,publish:this.publish,SelectedSet:this.SelectedSet,Interaction:this.Interaction}),this.subscribe("Interaction:end",function(){return n.continue=!1}),this.start()}return s(h,[{key:"_callbacksTemp",value:function(n){var g=n.callback,d=n.onDragMove,w=n.onDragStart,v=n.onDragStartBegin,_=n.onElementSelect,D=n.onElementUnselect,C=function(T,L){return console.warn("[DragSelect] ".concat(T,' is deprecated. Use DragSelect.subscribe("').concat(L,'", (callbackObject) => {}) instead. Act Now! See docs for more info'))};g&&(C("callback","callback"),this.subscribe("callback",function(V){var T=V.items;V.item;var L=V.event;return g(T,L)})),d&&(C("onDragMove","dragmove"),this.subscribe("dragmove",function(V){V.items,V.item;var T=V.event;return d(T)})),w&&(C("onDragStart","dragstart"),this.subscribe("dragstart",function(V){V.items,V.item;var T=V.event;return w(T)})),v&&(C("onDragStartBegin","dragstart"),this.subscribe("dragstart",function(V){V.items,V.item;var T=V.event;return v(T)})),_&&(C("onElementSelect","elementselect"),this.subscribe("elementselect",function(V){V.items;var T=V.item,L=V.event;return _(T,L)})),D&&(C("onElementUnselect","elementunselect"),this.subscribe("elementunselect",function(V){V.items;var T=V.item,L=V.event;return D(T,L)}))}},{key:"stop",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;d&&this.publish("callback",{items:this.getSelection()}),this.Interaction.stop(),this.Area.stop(),this.Drag.stop(),this.Selector.stop(),this.SelectorArea.stop(n),this.stores.KeyStore.stop(),this.stores.PointerStore.stop(),this.stores.ScrollStore.stop(),n&&this.SelectableSet.clear(),g&&this.SelectedSet.clear(),this.stopped=!0}},{key:"addSelection",value:function(n){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.SelectedSet.addAll(Ee(n)),d||this.addSelectables(n),g&&this.PubSub.publish("callback",{items:this.getSelection()}),this.getSelection()}},{key:"removeSelection",value:function(n){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.SelectedSet.deleteAll(Ee(n)),d&&this.removeSelectables(n),g&&this.PubSub.publish("callback",{items:this.getSelection()}),this.getSelection()}},{key:"toggleSelection",value:function(n){var g=this,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Ee(n).forEach(function(v){return g.SelectedSet.has(v)?g.removeSelection(n,d,w):g.addSelection(n,d,w)}),d&&this.PubSub.publish("callback",{items:this.getSelection()}),this.getSelection()}},{key:"setSelection",value:function(n){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.clearSelection(),this.addSelection(n,g,d),this.getSelection()}},{key:"clearSelection",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.SelectedSet.clear(),n&&this.PubSub.publish("callback",{items:this.getSelection()}),this.getSelection()}},{key:"addSelectables",value:function(n){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=Ee(n);return this.SelectableSet.addAll(d),g&&this.SelectedSet.addAll(d),n}},{key:"setSelectables",value:function(n){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.removeSelectables(n,g),this.addSelectables(n,d)}},{key:"removeSelectables",value:function(n){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.SelectableSet.deleteAll(Ee(n)),g&&this.removeSelection(n),n}},{key:"getCursorPositionDifference",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;console.warn("[DragSelect] Using .getCursorPositionDifference is deprecated. Calculate yourself instead. i.e. `.getCurrentCursorPosition().x - .getInitialCursorPosition().x`");var d=g?this.getCurrentCursorPositionArea():this.getCurrentCursorPosition(),w=n?g?this.getPreviousCursorPositionArea():this.getPreviousCursorPosition():g?this.getInitialCursorPositionArea():this.getInitialCursorPosition();return I(d,"-",w)}}]),h}();return Ml})})(vt);const Zr=vt.exports,Qr=(i,t,r,o,s)=>(t=Math,r=t.log,o=1024,s=r(i)/r(o)|0,i/t.pow(o,s)).toFixed(0)+" "+(s?"KMGTPEZY"[--s]+"iB":"B"),en=(i,t="en-US")=>new Date(i*1e3).toLocaleString(t),tn={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},rn=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1)],nn={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},on=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"},null,-1)],ze=Object.assign({name:"VFSortIcon"},{props:{direction:String},setup(i){return(t,r)=>(e.openBlock(),e.createElementBlock("div",null,[i.direction=="down"?(e.openBlock(),e.createElementBlock("svg",tn,rn)):e.createCommentVNode("",!0),i.direction=="up"?(e.openBlock(),e.createElementBlock("svg",nn,on)):e.createCommentVNode("",!0)]))}}),an=["onClick"],sn=Object.assign({name:"VFToast.vue"},{setup(i){const t=e.inject("emitter"),{getStore:r}=e.inject("storage"),o=e.ref(r("full-screen",!1)),s=p=>p=="error"?"text-red-400 border-red-400":"text-lime-600 border-lime-600",a=e.ref([]),l=p=>{a.value.splice(p,1)},m=p=>{let f=a.value.findIndex(u=>u.id===p);f!==-1&&l(f)};return t.on("vf-toast-clear",()=>{a.value=[]}),t.on("vf-toast-push",p=>{let f=new Date().getTime().toString(36).concat(performance.now().toString(),Math.random().toString()).replace(/\./g,"");p.id=f,a.value.push(p),setTimeout(()=>{m(f)},5e3)}),(p,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([o.value.value?"fixed":"absolute","bottom-0 max-w-fit flex flex-col bottom-0 left-1/2 -translate-x-1/2"])},[e.createVNode(e.TransitionGroup,{name:"vf-toast-item","leave-active-class":"transition-all duration-1000","leave-to-class":"opacity-0"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(u,y)=>(e.openBlock(),e.createElementBlock("div",{onClick:b=>l(y),key:u,class:e.normalizeClass([s(u.type),"inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 border text-xs rounded cursor-pointer"])},e.toDisplayString(u.label),11,an))),128))]),_:1})],2))}}),pe=i=>Object.entries(i).map(t=>t.map(encodeURIComponent).join("=")).join("&"),{apiUrl:ln}=ie(),Ze=(i,t)=>ln.value+"?"+pe({q:"preview",adapter:i,path:t}),cn={class:"relative flex-auto flex flex-col overflow-hidden"},dn={key:0,class:"grid grid-cols-12 border-b border-neutral-300 dark:border-gray-700 text-xs select-none"},hn={class:"absolute"},un=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"absolute h-6 w-6 md:h-12 md:w-12 m-auto stroke-neutral-500 fill-white dark:fill-gray-700 dark:stroke-gray-600 z-10",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})],-1),mn={class:"text-neutral-700 dark:text-neutral-300 p-1 absolute text-center top-4 right-[-2rem] md:top-5 md:right-[-2.4rem] z-20 text-xs"},fn=["onDblclick","onTouchstart","onContextmenu","data-type","data-item","data-index"],pn={class:"grid grid-cols-12 items-center"},gn={class:"flex col-span-7 items-center"},yn={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},bn=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1)],wn={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},vn=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1)],kn={class:"overflow-ellipsis overflow-hidden whitespace-nowrap"},_n={class:"col-span-5 overflow-ellipsis overflow-hidden whitespace-nowrap"},xn=["onDblclick","onTouchstart","onContextmenu","onDragstart","onDragover","onDrop","data-type","data-item","data-index"],Sn={class:"grid grid-cols-12 items-center"},Dn={class:"flex col-span-7 items-center"},En={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Nn=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1)],Vn={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Cn=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1)],$n={class:"overflow-ellipsis overflow-hidden whitespace-nowrap"},Mn={class:"col-span-2 text-center"},Bn={class:"col-span-3 overflow-ellipsis overflow-hidden whitespace-nowrap"},Tn=["onDblclick","onTouchstart","onContextmenu","onDragstart","onDragover","onDrop","data-type","data-item","data-index"],An={class:"relative"},On={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-10 w-10 md:h-12 md:w-12 m-auto fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},jn=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1)],Pn=["src"],Ln={key:2,xmlns:"http://www.w3.org/2000/svg",class:"h-10 w-10 md:h-12 md:w-12 m-auto text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},In=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1)],zn={key:3,class:"absolute hidden md:block top-1/2 w-full text-center text-neutral-500"},Rn={class:"break-all"},Hn=Object.assign({name:"VFExplorer"},{props:{view:String,data:Object,search:Object},setup(i){const t=i,r=e.inject("emitter"),{setStore:o,getStore:s}=e.inject("storage"),a=B=>B==null?void 0:B.substring(0,3),l=B=>B.replace(/((?=([\w\W]{0,14}))([\w\W]{8,})([\w\W]{8,}))/,"$2..$4"),m=e.ref(null),p=e.ref(null),f=e.ref(0),u=e.ref(null),{t:y}=e.inject("i18n"),b=Math.floor(Math.random()*2**32),E=e.ref(s("full-screen",!1));r.on("vf-fullscreen-toggle",()=>{E.value=!E.value,o("full-screen",E.value)});const k=e.ref("");r.on("vf-search-query",({newQuery:B})=>{k.value=B,B?r.emit("vf-fetch",{params:{q:"search",adapter:t.data.adapter,path:t.data.dirname,filter:B},onSuccess:O=>{O.files.length||r.emit("vf-toast-push",{label:y("No search result found.")})}}):r.emit("vf-fetch",{params:{q:"index",adapter:t.data.adapter,path:t.data.dirname}})});let S=null;const M=()=>{S&&clearTimeout(S)},R=B=>{S=setTimeout(()=>{A(B)},500)},A=B=>{B.type=="dir"?(r.emit("vf-search-exit"),r.emit("vf-fetch",{params:{q:"index",adapter:t.data.adapter,path:B.path}})):r.emit("vf-modal-show",{type:"preview",adapter:t.data.adapter,item:B})},N=e.reactive({active:!1,column:"",order:""}),P=(B=!0)=>{let O=[...t.data.files],$=N.column,I=N.order=="asc"?1:-1;if(!B)return O;const j=(G,W)=>typeof G=="string"&&typeof W=="string"?G.toLowerCase().localeCompare(W.toLowerCase()):G<W?-1:G>W?1:0;return N.active&&(O=O.slice().sort((G,W)=>j(G[$],W[$])*I)),O},H=B=>{N.active&&N.column==B?(N.active=N.order=="asc",N.column=B,N.order="desc"):(N.active=!0,N.column=B,N.order="asc")},x=()=>u.value.getSelection().map(B=>JSON.parse(B.dataset.item)),U=(B,O)=>{if(B.altKey||B.ctrlKey||B.metaKey)return B.preventDefault(),!1;B.dataTransfer.setDragImage(p.value,0,15),B.dataTransfer.effectAllowed="all",B.dataTransfer.dropEffect="copy",B.dataTransfer.setData("items",JSON.stringify(x()))},Y=(B,O)=>{B.preventDefault();let $=JSON.parse(B.dataTransfer.getData("items"));if($.find(I=>I.storage!=s("adapter","local"))){alert("Moving items between different storages is not supported yet.");return}r.emit("vf-modal-show",{type:"move",items:{from:$,to:O}})},Q=(B,O)=>{B.preventDefault(),!O||O.type!=="dir"||u.value.getSelection().find($=>$==B.currentTarget)?(B.dataTransfer.dropEffect="none",B.dataTransfer.effectAllowed="none"):B.dataTransfer.dropEffect="copy"},re=()=>{u.value=new Zr({area:m.value,keyboardDrag:!1,selectedClass:"vf-explorer-selected",selectorClass:"vf-explorer-selector"}),r.on("vf-explorer-update",()=>e.nextTick(()=>{u.value.clearSelection(),u.value.setSelectables(document.getElementsByClassName("vf-item-"+b))})),u.value.subscribe("predragstart",({event:B,isDragging:O})=>{if(O)f.value=u.value.getSelection().length,u.value.break();else{const $=B.target.offsetWidth-B.offsetX,I=B.target.offsetHeight-B.offsetY;$<15&&I<15&&(u.value.clearSelection(),u.value.break())}}),u.value.subscribe("predragmove",({isDragging:B})=>{B&&u.value.break()}),u.value.subscribe("callback",({items:B,event:O,isDragging:$})=>{r.emit("vf-nodes-selected",x()),f.value=u.value.getSelection().length})};return e.onMounted(re),e.onUpdated(()=>{u.value.setSelection(u.value.getSelection())}),e.onMounted(()=>{e.watch(()=>t.view,()=>r.emit("vf-explorer-update"))}),(B,O)=>(e.openBlock(),e.createElementBlock("div",cn,[i.view=="list"||k.value.length?(e.openBlock(),e.createElementBlock("div",dn,[e.createElementVNode("div",{onClick:O[0]||(O[0]=$=>H("basename")),class:"col-span-7 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center pl-1"},[e.createTextVNode(e.toDisplayString(e.unref(y)("Name"))+" ",1),e.withDirectives(e.createVNode(ze,{direction:N.order=="asc"?"down":"up"},null,8,["direction"]),[[e.vShow,N.active&&N.column=="basename"]])]),k.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:O[1]||(O[1]=$=>H("file_size")),class:"col-span-2 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center border-l border-r dark:border-gray-700"},[e.createTextVNode(e.toDisplayString(e.unref(y)("Size"))+" ",1),e.withDirectives(e.createVNode(ze,{direction:N.order=="asc"?"down":"up"},null,8,["direction"]),[[e.vShow,N.active&&N.column=="file_size"]])])),k.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:O[2]||(O[2]=$=>H("last_modified")),class:"col-span-3 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center"},[e.createTextVNode(e.toDisplayString(e.unref(y)("Date"))+" ",1),e.withDirectives(e.createVNode(ze,{direction:N.order=="asc"?"down":"up"},null,8,["direction"]),[[e.vShow,N.active&&N.column=="last_modified"]])])),k.value.length?(e.openBlock(),e.createElementBlock("div",{key:2,onClick:O[3]||(O[3]=$=>H("path")),class:"col-span-5 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center border-l dark:border-gray-700"},[e.createTextVNode(e.toDisplayString(e.unref(y)("Filepath"))+" ",1),e.withDirectives(e.createVNode(ze,{direction:N.order=="asc"?"down":"up"},null,8,["direction"]),[[e.vShow,N.active&&N.column=="path"]])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",hn,[e.createElementVNode("div",{ref_key:"dragImage",ref:p,class:"absolute -z-50 -top-96"},[un,e.createElementVNode("div",mn,e.toDisplayString(f.value),1)],512)]),e.createElementVNode("div",{class:e.normalizeClass([E.value?"":"resize-y","h-full w-full text-xs vf-selector-area min-h-[150px] overflow-auto p-1 z-0"]),ref_key:"selectorArea",ref:m,onContextmenu:O[7]||(O[7]=e.withModifiers($=>e.unref(r).emit("vf-contextmenu-show",{event:$,area:m.value,items:x()}),["self","prevent"]))},[k.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(P(),($,I)=>(e.openBlock(),e.createElementBlock("div",{onDblclick:j=>A($),onTouchstart:j=>R($),onTouchend:O[4]||(O[4]=j=>M()),onContextmenu:e.withModifiers(j=>e.unref(r).emit("vf-contextmenu-show",{event:j,area:m.value,items:x(),target:$}),["prevent"]),class:e.normalizeClass(["vf-item-"+e.unref(b),"grid grid-cols-1 border hover:bg-neutral-50 dark:hover:bg-gray-700 border-transparent my-0.5 w-full select-none"]),"data-type":$.type,"data-item":JSON.stringify($),"data-index":I},[e.createElementVNode("div",pn,[e.createElementVNode("div",gn,[$.type=="dir"?(e.openBlock(),e.createElementBlock("svg",yn,bn)):(e.openBlock(),e.createElementBlock("svg",wn,vn)),e.createElementVNode("span",kn,e.toDisplayString($.basename),1)]),e.createElementVNode("div",_n,e.toDisplayString($.path),1)])],42,fn))),256)):e.createCommentVNode("",!0),i.view=="list"&&!k.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(P(),($,I)=>(e.openBlock(),e.createElementBlock("div",{draggable:"true",onDblclick:j=>A($),onTouchstart:j=>R($),onTouchend:O[5]||(O[5]=j=>M()),onContextmenu:e.withModifiers(j=>e.unref(r).emit("vf-contextmenu-show",{event:j,area:m.value,items:x(),target:$}),["prevent"]),onDragstart:j=>U(j),onDragover:j=>Q(j,$),onDrop:j=>Y(j,$),class:e.normalizeClass(["vf-item-"+e.unref(b),"grid grid-cols-1 border hover:bg-neutral-50 dark:hover:bg-gray-700 border-transparent my-0.5 w-full select-none"]),"data-type":$.type,"data-item":JSON.stringify($),"data-index":I},[e.createElementVNode("div",Sn,[e.createElementVNode("div",Dn,[$.type=="dir"?(e.openBlock(),e.createElementBlock("svg",En,Nn)):(e.openBlock(),e.createElementBlock("svg",Vn,Cn)),e.createElementVNode("span",$n,e.toDisplayString($.basename),1)]),e.createElementVNode("div",Mn,e.toDisplayString($.file_size?e.unref(Qr)($.file_size):""),1),e.createElementVNode("div",Bn,e.toDisplayString(e.unref(en)($.last_modified)),1)])],42,xn))),256)):e.createCommentVNode("",!0),i.view=="grid"&&!k.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(P(!1),($,I)=>{var j,G;return e.openBlock(),e.createElementBlock("div",{draggable:"true",onDblclick:W=>A($),onTouchstart:W=>R($),onTouchend:O[6]||(O[6]=W=>M()),onContextmenu:e.withModifiers(W=>e.unref(r).emit("vf-contextmenu-show",{event:W,area:m.value,items:x(),target:$}),["prevent"]),onDragstart:W=>U(W),onDragover:W=>Q(W,$),onDrop:W=>Y(W,$),class:e.normalizeClass(["vf-item-"+e.unref(b),"border border-transparent hover:bg-neutral-50 m-0.5 dark:hover:bg-gray-700 inline-flex w-[5.5rem] h-20 md:w-24 md:h-24 text-center justify-center select-none"]),"data-type":$.type,"data-item":JSON.stringify($),"data-index":I},[e.createElementVNode("div",null,[e.createElementVNode("div",An,[$.type=="dir"?(e.openBlock(),e.createElementBlock("svg",On,jn)):((j=$.mime_type)!=null?j:"").startsWith("image")?(e.openBlock(),e.createElementBlock("img",{key:1,class:"h-10 md:h-12 m-auto",src:e.unref(Ze)(e.unref(s)("adapter",t.data.adapter),$.path),alt:""},null,8,Pn)):(e.openBlock(),e.createElementBlock("svg",Ln,In)),((G=$.mime_type)!=null?G:"").startsWith("image")?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",zn,e.toDisplayString(a($.extension)),1))]),e.createElementVNode("span",Rn,e.toDisplayString(l($.basename)),1)])],42,Tn)}),256)):e.createCommentVNode("",!0)],34),e.createVNode(sn)]))}}),Un={class:"p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none"},Fn={class:"flex leading-5 items-center"},Kn=["aria-label"],Yn=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"})],-1)],Wn=["value"],Xn={class:"ml-3"},qn={key:0},Gn={class:"ml-1"},Jn={class:"flex leading-5 items-center"},Zn={value:"",disabled:""},Qn=e.createElementVNode("option",{value:"tr"},"Turkish",-1),eo=e.createElementVNode("option",{value:"en"},"English",-1),to=e.createElementVNode("option",{value:"fr"},"French",-1),ro=["aria-label"],no=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 stroke-slate-500 cursor-pointer",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)],oo=Object.assign({name:"VFStatusbar"},{props:{data:Object},setup(i){var b;const t=i,r=e.inject("emitter"),{getStore:o,setStore:s}=e.inject("storage"),a=e.ref(0),l=e.ref((b=o("adapter"))!=null?b:t.data.adapter),{t:m,changeLocale:p}=e.inject("i18n"),f=e.ref(o("locale","")),u=()=>{r.emit("vf-search-exit"),r.emit("vf-fetch",{params:{q:"index",adapter:l.value}}),s("adapter",l.value)};r.on("vf-nodes-selected",E=>{a.value=E.length});const y=e.ref("");return r.on("vf-search-query",({newQuery:E})=>{y.value=E}),(E,k)=>(e.openBlock(),e.createElementBlock("div",Un,[e.createElementVNode("div",Fn,[e.createElementVNode("div",{class:"mx-2","aria-label":e.unref(m)("Storage"),"data-microtip-position":"top-right",role:"tooltip"},Yn,8,Kn),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":k[0]||(k[0]=S=>l.value=S),onChange:u,class:"py-0.5 text-sm text-slate-500 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.data.storages,S=>(e.openBlock(),e.createElementBlock("option",{value:S},e.toDisplayString(S),9,Wn))),256))],544),[[e.vModelSelect,l.value]]),e.createElementVNode("div",Xn,[y.value.length?(e.openBlock(),e.createElementBlock("span",qn,e.toDisplayString(i.data.files.length)+" items found. ",1)):e.createCommentVNode("",!0),e.createElementVNode("span",Gn,e.toDisplayString(a.value>0?a.value+" "+e.unref(m)("item(s) selected."):""),1)])]),e.createElementVNode("div",Jn,[e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":k[1]||(k[1]=S=>f.value=S),onChange:k[2]||(k[2]=S=>e.unref(p)(S.target.value)),class:"py-0.5 text-sm text-slate-500 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8 mr-3"},[e.createElementVNode("option",Zn,e.toDisplayString(e.unref(m)("Language")),1),Qn,eo,to],544),[[e.vModelSelect,f.value]]),e.createElementVNode("span",{"aria-label":e.unref(m)("About"),"data-microtip-position":"top-left",role:"tooltip",onClick:k[3]||(k[3]=S=>e.unref(r).emit("vf-modal-show",{type:"message",title:"Vuefinder 1.0",message:e.unref(m)("Vuefinder is a file manager component for vue 3.")}))},no,8,ro)])]))}}),ao=(i,t=0,r=!1)=>{let o;return(...s)=>{r&&!o&&i(...s),clearTimeout(o),o=setTimeout(()=>{i(...s)},t)}},io=(i,t,r)=>{const o=e.ref(i);return e.customRef((a,l)=>({get(){return a(),o.value},set:ao(m=>{o.value=m,l()},t,r)}))},so={class:"flex p-1.5 bg-neutral-100 dark:bg-gray-800 border-t border-b border-neutral-300 dark:border-gray-700/50 items-center select-none text-xs"},lo=["aria-label"],co=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 9.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 7.414V15a1 1 0 11-2 0V7.414L6.707 9.707a1 1 0 01-1.414 0z","clip-rule":"evenodd"},null,-1)],ho={key:0,"aria-label":"Refresh","data-microtip-position":"bottom-right",role:"tooltip"},uo=[e.createElementVNode("path",{d:"M463.5 224H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5z"},null,-1)],mo={key:1,"aria-label":"Cancel","data-microtip-position":"bottom-right",role:"tooltip"},fo=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"},null,-1)],po=["onClick"],go=[e.createElementVNode("path",{d:"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"},null,-1)],yo={class:"flex leading-5"},bo=e.createElementVNode("span",{class:"text-neutral-300 dark:text-gray-600 mx-0.5"},"/",-1),wo=["title","onClick"],vo={key:0,class:"animate-spin p-1 h-6 w-6 text-white ml-auto",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},ko=[e.createElementVNode("circle",{class:"opacity-25 stroke-blue-900 dark:stroke-blue-100",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)],_o={key:3,class:"flex bg-white dark:bg-gray-700 items-center rounded p-1 ml-2 w-full"},xo=e.createElementVNode("svg",{class:"h-6 w-6 p-1 m-auto stroke-gray-400 fill-gray-100 dark:stroke-gray-400 dark:fill-gray-400/20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})],-1),So=["onKeydown","placeholder"],Do=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"},null,-1)],Eo=Object.assign({name:"VFBreadcrumb"},{props:{data:Object},setup(i){const t=i,r=e.inject("emitter"),{getStore:o}=e.inject("storage"),s=e.ref(null),a=e.ref([]),l=e.ref(!1),m=e.ref(null),{t:p}=e.inject("i18n"),f=e.inject("loadingState");r.on("vf-explorer-update",()=>{var P;let A=[],N=[];s.value=(P=t.data.dirname)!=null?P:o("adapter","local")+"://",s.value.length==0&&(a.value=[]),s.value.replace(o("adapter","local")+"://","").split("/").forEach(function(H){A.push(H),A.join("/")!=""&&N.push({basename:H,name:H,path:o("adapter","local")+"://"+A.join("/"),type:"dir"})}),N.length>4&&(N=N.slice(-5),N[0].name=".."),a.value=N});const u=()=>{l.value=!1,b.value=""};r.on("vf-search-exit",()=>{u()});const y=()=>{l.value=!0,e.nextTick(()=>m.value.focus())},b=io("",400),E=()=>f.value;e.watch(b,A=>{r.emit("vf-toast-clear"),r.emit("vf-search-query",{newQuery:A})});const k=()=>a.value.length&&!l.value,S=A=>{var P;A.preventDefault();let N=JSON.parse(A.dataTransfer.getData("items"));if(N.find(H=>H.storage!=o("adapter","local"))){alert("Moving items between different storages is not supported yet.");return}r.emit("vf-modal-show",{type:"move",items:{from:N,to:(P=a.value[a.value.length-2])!=null?P:{path:o("adapter","local")+"://"}}})},M=A=>{A.preventDefault(),k()?A.dataTransfer.dropEffect="copy":(A.dataTransfer.dropEffect="none",A.dataTransfer.effectAllowed="none")},R=()=>{b.value==""&&u()};return(A,N)=>(e.openBlock(),e.createElementBlock("div",so,[e.createElementVNode("span",{"aria-label":e.unref(p)("Go up a directory"),"data-microtip-position":"bottom-right",role:"tooltip"},[(e.openBlock(),e.createElementBlock("svg",{onDragover:N[0]||(N[0]=P=>M(P)),onDrop:N[1]||(N[1]=P=>S(P)),onClick:N[2]||(N[2]=P=>{var H,x;return!k()||e.unref(r).emit("vf-fetch",{params:{q:"index",adapter:i.data.adapter,path:(x=(H=a.value[a.value.length-2])==null?void 0:H.path)!=null?x:e.unref(o)("adapter","local")+"://"}})}),class:e.normalizeClass(["h-6 w-6 p-0.5 rounded",k()?"text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer":"text-gray-400 dark:text-neutral-500"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},co,34))],8,lo),E()?(e.openBlock(),e.createElementBlock("span",mo,[(e.openBlock(),e.createElementBlock("svg",{onClick:N[4]||(N[4]=P=>e.unref(r).emit("vf-fetch-abort")),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer"},fo))])):(e.openBlock(),e.createElementBlock("span",ho,[(e.openBlock(),e.createElementBlock("svg",{onClick:N[3]||(N[3]=P=>{e.unref(r).emit("vf-fetch",{params:{q:"index",adapter:i.data.adapter,path:i.data.dirname}})}),class:"h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer",xmlns:"http://www.w3.org/2000/svg",viewBox:"-40 -40 580 580",fill:"currentColor"},uo))])),l.value?(e.openBlock(),e.createElementBlock("div",_o,[xo,e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:m,onKeydown:e.withKeys(u,["esc"]),onBlur:R,"onUpdate:modelValue":N[6]||(N[6]=P=>e.isRef(b)?b.value=P:null),placeholder:e.unref(p)("Search anything.."),class:"py-0 px-2 w-full border-0 ring-0 outline-0 text-sm text-gray-600 focus:ring-transparent focus:border-transparent dark:focus:ring-transparent dark:focus:border-transparent dark:text-gray-300 bg-transparent",type:"text"},null,40,So),[[e.vModelText,e.unref(b)]]),(e.openBlock(),e.createElementBlock("svg",{class:"w-6 h-6 cursor-pointer",onClick:u,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Do))])):(e.openBlock(),e.createElementBlock("div",{key:2,class:"group flex bg-white dark:bg-gray-700 items-center rounded p-1 ml-2 w-full",onClick:e.withModifiers(y,["self"])},[(e.openBlock(),e.createElementBlock("svg",{onClick:N[5]||(N[5]=P=>e.unref(r).emit("vf-fetch",{params:{q:"index",adapter:i.data.adapter}})),class:"h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-gray-800 cursor-pointer",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},go)),e.createElementVNode("div",yo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(P,H)=>(e.openBlock(),e.createElementBlock("div",{key:H},[bo,e.createElementVNode("span",{class:"px-1.5 py-1 text-slate-700 dark:text-slate-200 hover:bg-neutral-100 dark:hover:bg-gray-800 rounded cursor-pointer",title:P.basename,onClick:x=>e.unref(r).emit("vf-fetch",{params:{q:"index",adapter:i.data.adapter,path:P.path}})},e.toDisplayString(P.name),9,wo)]))),128))]),E()?(e.openBlock(),e.createElementBlock("svg",vo,ko)):e.createCommentVNode("",!0)],8,po))]))}}),No=["onClick"],Vo=e.createElementVNode("span",{class:"px-1"},null,-1),Co=Object.assign({name:"VFContextMenu"},{props:{current:Object},setup(i){const t=i,r=e.inject("emitter"),o=e.ref(null),{apiUrl:s}=ie(),a=e.reactive({active:!1,items:[],positions:{left:0,top:0}}),l=e.ref([]);r.on("vf-context-selected",b=>{l.value=b});const{t:m}=e.inject("i18n"),p={newfolder:{title:()=>m("New Folder"),action:()=>{r.emit("vf-modal-show",{type:"new-folder"})}},delete:{title:()=>m("Delete"),action:()=>{r.emit("vf-modal-show",{type:"delete",items:l})}},refresh:{title:()=>m("Refresh"),action:()=>{r.emit("vf-fetch",{params:{q:"index",adapter:t.current.adapter,path:t.current.dirname}})}},preview:{title:()=>m("Preview"),action:()=>{r.emit("vf-modal-show",{type:"preview",adapter:t.current.adapter,item:l.value[0]})}},open:{title:()=>m("Open"),action:()=>{r.emit("vf-search-exit"),r.emit("vf-fetch",{params:{q:"index",adapter:t.current.adapter,path:l.value[0].path}})}},openDir:{title:()=>m("Open containing folder"),action:()=>{r.emit("vf-search-exit"),r.emit("vf-fetch",{params:{q:"index",adapter:t.current.adapter,path:l.value[0].dir}})}},download:{title:()=>m("Download"),action:()=>{const b=s.value+"?"+pe({q:"download",adapter:l.value[0].adapter,path:l.value[0].path});r.emit("vf-download",b)}},archive:{title:()=>m("Archive"),action:()=>{r.emit("vf-modal-show",{type:"archive",items:l})}},unarchive:{title:()=>m("Unarchive"),action:()=>{r.emit("vf-modal-show",{type:"unarchive",items:l})}},rename:{title:()=>m("Rename"),action:()=>{r.emit("vf-modal-show",{type:"rename",items:l})}}},f=b=>{r.emit("vf-contextmenu-hide"),b.action()},u=e.ref("");r.on("vf-search-query",({newQuery:b})=>{u.value=b}),r.on("vf-contextmenu-show",({event:b,area:E,items:k,target:S=null})=>{if(a.items=[],u.value)if(S)a.items.push(p.openDir),r.emit("vf-context-selected",[S]),console.log("search item selected");else return;else!S&&!u.value?(a.items.push(p.refresh),a.items.push(p.newfolder),r.emit("vf-context-selected",[]),console.log("no files selected")):k.length>1&&k.some(M=>M.path===S.path)?(a.items.push(p.refresh),a.items.push(p.archive),a.items.push(p.delete),r.emit("vf-context-selected",k),console.log(k.length+" selected (more than 1 item.)")):(S.type=="dir"?a.items.push(p.open):(a.items.push(p.preview),a.items.push(p.download)),a.items.push(p.rename),S.mime_type=="application/zip"?a.items.push(p.unarchive):a.items.push(p.archive),a.items.push(p.delete),r.emit("vf-context-selected",[S]),console.log(S.type+" is selected"));y(b,E)}),r.on("vf-contextmenu-hide",()=>{a.active=!1});const y=(b,E)=>{a.active=!0,e.nextTick(()=>{let k=E.getBoundingClientRect(),S=b.pageX,M=b.pageY,R=o.value.offsetHeight,A=o.value.offsetWidth;S=k.right-b.pageX+window.scrollX<A?S-A:S,M=k.bottom-b.pageY+window.scrollY<R?M-R:M,a.positions={left:S+"px",top:M+"px"}})};return(b,E)=>a.active?(e.openBlock(),e.createElementBlock("ul",{key:0,class:"z-30 absolute text-xs bg-neutral-50 dark:bg-gray-800 dark:text-gray-200 border border-neutral-300 dark:border-gray-600 shadow rounded select-none",ref_key:"contextmenu",ref:o,style:e.normalizeStyle(a.positions)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,k=>(e.openBlock(),e.createElementBlock("li",{class:"px-2 py-1.5 cursor-pointer hover:bg-neutral-200 dark:hover:bg-gray-700",key:k.title,onClick:S=>f(k)},[Vo,e.createElementVNode("span",null,e.toDisplayString(k.title()),1)],8,No))),128))],4)):e.createCommentVNode("",!0)}}),$o=(i,t)=>{const r=i[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((o,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+t)))})};async function Mo(i){const t=await $o(Object.assign({"../locales/en.json":()=>Promise.resolve().then(()=>al),"../locales/tr.json":()=>Promise.resolve().then(()=>il)}),`../locales/${i}.json`);return JSON.parse(t.default)}function Bo(i,t){const{getStore:r,setStore:o}=Je(i),s=["en","tr"],a=e.ref({}),l=f=>{s.includes(f)||(console.log("The selected locale is not yet supported. The fallback language is set as 'en'"),f="en"),Mo(f).then(u=>{a.value=u,o("locale",f),o("translations",u),console.log(f+" is loaded.")})};r("locale")?a.value=r("translations"):l(t);const m=(f,...u)=>u.length?m(f=f.replace("%s",u.shift()),...u):f;function p(f,...u){return a.value.hasOwnProperty(f)?m(a.value[f],...u):f}return{t:p,support_locales:s,changeLocale:l}}const To=e.createElementVNode("iframe",{id:"download_frame",style:{display:"none"}},null,-1),Ao=Object.assign({name:"VueFinder"},{props:{url:{type:[String]},id:{type:String,default:"vf"},dark:{type:Boolean,default:!1},locale:{type:String,default:"en"},maxHeight:{type:String,default:"600px"},postData:{type:Object,default:{}}},setup(i){const t=i,r=br(),{setStore:o,getStore:s}=Je(t.id);e.provide("emitter",r),e.provide("storage",Je(t.id)),e.provide("postData",t.postData);const a=Bo(t.id,t.locale);e.provide("i18n",a);const{apiUrl:l,setApiUrl:m}=ie();m(t.url);const p=e.reactive({adapter:"local",storages:[],dirname:".",files:[]}),f=e.ref(s("viewport","grid")),u=e.ref(s("darkMode",t.dark));r.on("vf-darkMode-toggle",()=>{u.value=!u.value,o("darkMode",u.value)});const y=e.ref(!1);e.provide("loadingState",y);const b=e.ref(s("full-screen",!1));r.on("vf-fullscreen-toggle",()=>{b.value=!b.value,o("full-screen",b.value)}),r.on("vf-view-toggle",M=>{f.value=M});const E=e.reactive({active:!1,type:"delete",data:{}});r.on("vf-modal-close",()=>{E.active=!1}),r.on("vf-modal-show",M=>{E.active=!0,E.type=M.type,E.data=M});const k=M=>{Object.assign(p,M),r.emit("vf-nodes-selected",{}),r.emit("vf-explorer-update")};let S;return r.on("vf-fetch-abort",()=>{S.abort(),y.value=!1}),r.on("vf-fetch",({params:M,onSuccess:R=null,onError:A=null})=>{["index","search"].includes(M.q)&&(S&&S.abort(),y.value=!0),S=new AbortController;const N=S.signal;Ie(l.value,{params:M,signal:N}).then(P=>{["index","search"].includes(M.q)&&(y.value=!1),r.emit("vf-modal-close"),k(P),R(P)}).catch(P=>{A&&A(P)}).finally(()=>{})}),r.on("vf-download",M=>{document.getElementById("download_frame").src=M,r.emit("vf-modal-close")}),e.onMounted(()=>{r.emit("vf-fetch",{params:{q:"index",adapter:s("adapter",p.adapter)}})}),(M,R)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(u.value?"dark":"")},[e.createElementVNode("div",{class:e.normalizeClass([b.value?"fixed w-screen inset-0 z-20":"relative rounded-md","border flex flex-col bg-white dark:bg-gray-800 text-gray-700 dark:text-neutral-400 border-neutral-300 dark:border-gray-900 min-w-min select-none"]),style:e.normalizeStyle(b.value?"":"max-height: "+i.maxHeight),onMousedown:R[0]||(R[0]=A=>e.unref(r).emit("vf-contextmenu-hide"))},[e.createVNode(Gr,{data:p},null,8,["data"]),e.createVNode(Eo,{data:p},null,8,["data"]),e.createVNode(Hn,{view:f.value,data:p},null,8,["view","data"]),e.createVNode(oo,{data:p},null,8,["data"])],38),E.active?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("v-f-modal-"+E.type),{key:0,selection:E.data,current:p},null,8,["selection","current"])):e.createCommentVNode("",!0),e.createVNode(Co,{current:p},null,8,["current"]),To],2))}}),Oo=e.createElementVNode("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"},null,-1),jo={class:"fixed z-10 inset-0 overflow-y-auto"},Po={class:"relative bg-white dark:bg-gray-800 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl md:max-w-2xl lg:max-w-3xl xl:max-w-5xl sm:w-full"},Lo={class:"bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},Io={class:"bg-gray-50 dark:bg-gray-800 dark:border-t dark:border-gray-700 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},se={__name:"ModalLayout",setup(i){const t=e.inject("emitter");return e.onMounted(()=>{const r=document.querySelector(".v-f-modal input");r&&r.focus()}),(r,o)=>(e.openBlock(),e.createElementBlock("div",{class:"v-f-modal relative z-30","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",onKeyup:o[1]||(o[1]=e.withKeys(s=>e.unref(t).emit("vf-modal-close"),["esc"])),tabindex:"0"},[Oo,e.createElementVNode("div",jo,[e.createElementVNode("div",{class:"flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0",onMousedown:o[0]||(o[0]=e.withModifiers(s=>e.unref(t).emit("vf-modal-close"),["self"]))},[e.createElementVNode("div",Po,[e.createElementVNode("div",Lo,[e.renderSlot(r.$slots,"default")]),e.createElementVNode("div",Io,[e.renderSlot(r.$slots,"buttons")])])],32)])],32))}},zo=["aria-label"],Ro=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5 h-5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)],le=Object.assign({name:"Message"},{props:{error:{type:Boolean,default:!1}},setup(i){var l;const{t}=e.inject("i18n"),r=e.ref(!1),o=e.ref(null),s=e.ref((l=o.value)==null?void 0:l.strMessage);e.watch(s,()=>r.value=!1);const a=()=>r.value=!0;return(m,p)=>(e.openBlock(),e.createElementBlock("div",null,[r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"strMessage",ref:o,class:e.normalizeClass(["flex mt-1 p-1 px-2 rounded text-sm",i.error?"bg-red-100 text-red-600":"bg-emerald-100 text-emerald-600"])},[e.renderSlot(m.$slots,"default"),e.createElementVNode("div",{class:"ml-auto cursor-pointer",onClick:a,"aria-label":e.unref(t)("Close"),"data-microtip-position":"top-left",role:"tooltip"},Ro,8,zo)],2))]))}}),Ho={class:"sm:flex sm:items-start"},Uo=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-red-600 dark:stroke-red-200",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})])],-1),Fo={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},Ko={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},Yo={class:"mt-2"},Wo={class:"text-sm text-gray-500"},Xo={class:"flex text-sm text-gray-800 dark:text-gray-400"},qo={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Go=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1)],Jo={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Zo=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1)],Qo={class:"ml-1.5"},ea={class:"m-auto font-bold text-red-500 text-sm dark:text-red-200 text-center"},ta=Object.assign({name:"VFModalDelete"},{props:{selection:Object,current:Object},setup(i){const t=i,r=e.inject("emitter"),{getStore:o}=e.inject("storage"),{t:s}=e.inject("i18n"),a=e.ref(t.selection.items),l=e.ref(""),m=()=>{a.value.length&&r.emit("vf-fetch",{params:{q:"delete",adapter:o("adapter","local"),path:t.current.dirname,items:JSON.stringify(a.value.map(({path:p,type:f})=>({path:p,type:f})))},onSuccess:()=>{r.emit("vf-toast-push",{label:s("Files deleted.")})},onError:p=>{l.value=s(p.message)}})};return(p,f)=>(e.openBlock(),e.createBlock(se,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:m,class:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(s)("Yes, Delete!")),1),e.createElementVNode("button",{type:"button",onClick:f[0]||(f[0]=u=>e.unref(r).emit("vf-modal-close")),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(s)("Cancel")),1),e.createElementVNode("div",ea,e.toDisplayString(e.unref(s)("This action cannot be undone.")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",Ho,[Uo,e.createElementVNode("div",Fo,[e.createElementVNode("h3",Ko,e.toDisplayString(e.unref(s)("Delete files")),1),e.createElementVNode("div",Yo,[e.createElementVNode("p",Wo,e.toDisplayString(e.unref(s)("Are you sure you want to delete these files?")),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,u=>(e.openBlock(),e.createElementBlock("p",Xo,[u.type=="dir"?(e.openBlock(),e.createElementBlock("svg",qo,Go)):(e.openBlock(),e.createElementBlock("svg",Jo,Zo)),e.createElementVNode("span",Qo,e.toDisplayString(u.basename),1)]))),256)),l.value.length?(e.openBlock(),e.createBlock(le,{key:0,error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),ra={class:"sm:flex sm:items-start"},na=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1),oa={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},aa={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},ia={class:"mt-2"},sa={class:"text-sm text-gray-500"},la=Object.assign({name:"VFModalMessage"},{props:{selection:Object},setup(i){const t=e.inject("emitter"),{t:r}=e.inject("i18n");return(o,s)=>(e.openBlock(),e.createBlock(se,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:s[0]||(s[0]=a=>e.unref(t).emit("vf-modal-close")),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(r)("Close")),1)]),default:e.withCtx(()=>{var a,l,m,p;return[e.createElementVNode("div",ra,[na,e.createElementVNode("div",oa,[e.createElementVNode("h3",aa,e.toDisplayString((l=(a=i.selection)==null?void 0:a.title)!=null?l:"Title"),1),e.createElementVNode("div",ia,[e.createElementVNode("p",sa,e.toDisplayString((p=(m=i.selection)==null?void 0:m.message)!=null?p:"Message")+".",1)])])])]}),_:1}))}}),ca={class:"sm:flex sm:items-start"},da=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"})])],-1),ha={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},ua={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},ma={class:"mt-2"},fa={class:"text-sm text-gray-500"},pa=["onKeyup","placeholder"],ga=Object.assign({name:"VFModalNewFolder"},{props:{selection:Object,current:Object},setup(i){const t=i,r=e.inject("emitter"),{getStore:o}=e.inject("storage"),{t:s}=e.inject("i18n"),a=e.ref(""),l=e.ref(""),m=()=>{a.value!=""&&r.emit("vf-fetch",{params:{q:"newfolder",adapter:o("adapter","local"),path:t.current.dirname,name:a.value},onSuccess:()=>{r.emit("vf-toast-push",{label:s("%s is created.",a.value)})},onError:p=>{l.value=s(p.message)}})};return(p,f)=>(e.openBlock(),e.createBlock(se,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:m,class:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(s)("Create")),1),e.createElementVNode("button",{type:"button",onClick:f[1]||(f[1]=u=>e.unref(r).emit("vf-modal-close")),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(s)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",ca,[da,e.createElementVNode("div",ha,[e.createElementVNode("h3",ua,e.toDisplayString(e.unref(s)("New Folder")),1),e.createElementVNode("div",ma,[e.createElementVNode("p",fa,e.toDisplayString(e.unref(s)("Create a new folder")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=u=>a.value=u),onKeyup:e.withKeys(m,["enter"]),class:"px-2 py-1 border rounded dark:bg-gray-500 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",placeholder:e.unref(s)("Folder Name"),type:"text"},null,40,pa),[[e.vModelText,a.value]]),l.value.length?(e.openBlock(),e.createBlock(le,{key:0,error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),ya={class:"sm:flex sm:items-start"},ba=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})])],-1),wa={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},va={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},ka={class:"mt-2"},_a={class:"text-sm text-gray-500"},xa=["onKeyup","placeholder"],Sa=Object.assign({name:"VFModalNewFile"},{props:{selection:Object,current:Object},setup(i){const t=i,r=e.inject("emitter"),{getStore:o}=e.inject("storage"),{t:s}=e.inject("i18n"),a=e.ref(""),l=e.ref(""),m=()=>{a.value!=""&&r.emit("vf-fetch",{params:{q:"newfile",adapter:o("adapter","local"),path:t.current.dirname,name:a.value},onSuccess:()=>{r.emit("vf-toast-push",{label:s("%s is created.",a.value)})},onError:p=>{l.value=s(p.message)}})};return(p,f)=>(e.openBlock(),e.createBlock(se,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:m,class:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"},"Create!"),e.createElementVNode("button",{type:"button",onClick:f[1]||(f[1]=u=>e.unref(r).emit("vf-modal-close")),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},"Cancel")]),default:e.withCtx(()=>[e.createElementVNode("div",ya,[ba,e.createElementVNode("div",wa,[e.createElementVNode("h3",va,e.toDisplayString(e.unref(s)("New File")),1),e.createElementVNode("div",ka,[e.createElementVNode("p",_a,e.toDisplayString(e.unref(s)("Create a new file")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=u=>a.value=u),onKeyup:e.withKeys(m,["enter"]),class:"px-2 py-1 border rounded dark:bg-gray-500 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",placeholder:e.unref(s)("File Name"),type:"text"},null,40,xa),[[e.vModelText,a.value]]),l.value.length?(e.openBlock(),e.createBlock(le,{key:0,error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),Da={class:"flex"},Ea={class:"mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},Na={class:"ml-auto mb-2"},Va={key:0,class:"p-2 border font-normal whitespace-pre-wrap border-gray-200 dark:border-gray-700/50 dark:text-gray-200 rounded min-h-[200px] max-h-[60vh] text-xs overflow-auto"},Ca={key:1},$a={__name:"Text",props:{selection:Object},emits:["load"],setup(i,{emit:t}){const r=i,o=e.ref(""),s=e.ref(""),a=e.ref(null),l=e.ref(!1),{apiUrl:m}=ie(),p=e.ref(""),f=e.ref(!1),{t:u}=e.inject("i18n");e.onMounted(()=>{Ie(m.value,{params:{q:"preview",adapter:r.selection.adapter,path:r.selection.item.path},json:!1}).then(k=>{o.value=k,t("load")})});const y=()=>{l.value=!l.value,s.value=o.value,l.value==!0&&e.nextTick(()=>{a.value.focus()})},b=e.inject("postData"),E=()=>{p.value="",f.value=!1,Ie(m.value,{method:"POST",params:Object.assign(b,{q:"save",adapter:r.selection.adapter,path:r.selection.item.path,content:s.value}),json:!1}).then(k=>{p.value=u("Updated."),o.value=k,t("load"),l.value=!l.value}).catch(k=>{p.value=u(k.message),f.value=!0})};return(k,S)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Da,[e.createElementVNode("div",Ea,e.toDisplayString(i.selection.item.basename),1),e.createElementVNode("div",Na,[l.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:E,class:"ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(u)("Save")),1)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"ml-1 px-2 py-1 text-blue-500",onClick:S[0]||(S[0]=M=>y())},e.toDisplayString(l.value?e.unref(u)("Cancel"):e.unref(u)("Edit")),1)])]),e.createElementVNode("div",null,[l.value?(e.openBlock(),e.createElementBlock("div",Ca,[e.withDirectives(e.createElementVNode("textarea",{ref_key:"editInput",ref:a,"onUpdate:modelValue":S[1]||(S[1]=M=>s.value=M),class:"w-full p-2 rounded dark:bg-gray-700 dark:text-gray-200 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:selection:bg-gray-500 min-h-[200px] text-xs",name:"text",id:"",cols:"30",rows:"10"},null,512),[[e.vModelText,s.value]])])):(e.openBlock(),e.createElementBlock("pre",Va,e.toDisplayString(o.value),1)),p.value.length?(e.openBlock(),e.createBlock(le,{key:2,error:f.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value),1)]),_:1},8,["error"])):e.createCommentVNode("",!0)])],64))}},Lc="";/*!
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var I=function(c,n,g){var d=c.x,w=c.y,v=g.x,_=g.y,D={"+":{x:d+v,y:w+_},"-":{x:d-v,y:w-_},"*":{x:d*v,y:w*_},"/":{x:d/v,y:w/_}};return D[n]},j=function(c){return{x:c.left,y:c.top}},G=function(c){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return{left:c.x,top:c.y,right:c.x,bottom:c.y,width:n,height:n}},W=function(c){return{x:c,y:c}},je=function(h,c,n){window.addEventListener("resize",c),window.addEventListener("scroll",c),h.forEach(function(g,d){n.observe(g,{childList:d!==0,attributes:!0})})},Pe=function(h){var c=De(h);return c.x||c.y?!0:h instanceof HTMLDocument?h.body?!!(h.body.scrollTop=1):!!(h.documentElement.scrollTop=1):!!(h.scrollTop=1)},Ye=function(h){var c=document.createElement("div");return c.style.position="fixed",c.style.overflow="hidden",c.style.pointerEvents="none",c.style.zIndex="999999999999999999",c.classList.add(h),c},We=function(h){var c=document.createElement("div");return c.style.position="absolute",h||(c.style.background="rgba(0, 0, 255, 0.1)",c.style.border="1px solid rgba(0, 0, 255, 0.45)",c.style.display="none",c.style.pointerEvents="none"),c},Xe=function(h,c){var n;return function(){for(var g=arguments.length,d=new Array(g),w=0;w<g;w++)d[w]=arguments[w];var v=function(){n=null,h.apply(void 0,d)};clearTimeout(n),n=setTimeout(v,c)}},Se=function(){var h,c,n,g;return{y:((h=document.body)===null||h===void 0?void 0:h.scrollTop)||((c=document.documentElement)===null||c===void 0?void 0:c.scrollTop)||0,x:((n=document.body)===null||n===void 0?void 0:n.scrollLeft)||((g=document.documentElement)===null||g===void 0?void 0:g.scrollLeft)||0}},gt=function(h,c){if(h instanceof Document)return{top:0,left:0,bottom:0,right:0,width:window.innerWidth,height:window.innerHeight};var n=h.getBoundingClientRect();return{top:n.top,left:n.left,bottom:n.bottom,right:n.right,width:(h.clientWidth||n.width)*c,height:(h.clientHeight||n.height)*c}},De=function(h){return!h||h instanceof Document?Se():{x:h.scrollLeft>=0?h.scrollLeft:Se().x,y:h.scrollTop>=0?h.scrollTop:Se().y}},Zt=function(h){var c=h.elementRect,n=h.containerRect,g=h.tolerance,d=g===void 0?{x:0,y:0}:g,w=[];return c.top-d.y<n.top&&w.push("top"),c.left-d.x<n.left&&w.push("left"),c.bottom+d.y>n.bottom&&w.push("bottom"),c.right+d.y>n.right&&w.push("right"),w},sl=function(h){var c=h.event;return{x:c.clientX,y:c.clientY}},ll=function(h){var c=h.scrollAmount,n=h.initialPointerPos,g=h.pointerPos,d={};return g.x>n.x-c.x?(d.left=n.x-c.x,d.width=g.x-n.x+c.x):(d.left=g.x,d.width=n.x-g.x-c.x),g.y>n.y-c.y?(d.top=n.y-c.y,d.height=g.y-n.y+c.y):(d.top=g.y,d.height=n.y-g.y-c.y),d},Qt=function(c){var n={x:0,y:0},g=window.getComputedStyle(c);if(!g.transform||g.transform==="none")return n;if(g.transform.indexOf("3d")>=0){var d=g.transform.trim().match(/matrix3d\((.*?)\)/);if(d&&d.length){var w,v=(w=d[1])===null||w===void 0?void 0:w.split(",");n.x=parseInt(v[12])||0,n.y=parseInt(v[13])||0}return n}else{var _=g.transform.trim().match(/matrix\((.*?)\)/);if(_&&_.length){var D,C=(D=_[1])===null||D===void 0?void 0:D.split(",");n.x=parseInt(C[4])||0,n.y=parseInt(C[5])||0}return n}},cl=function(c){var n=c.style.transform;if(!n||n.indexOf("translate")<0)return Qt(c);var g={x:0,y:0},d=n.trim().match(/translate[3dD]*?\(.*?\)/);if(d){var w,v=(w=d[0])===null||w===void 0?void 0:w.split("(");if(v){var _,D=(_=v[1])===null||_===void 0?void 0:_.split(",");g.x=parseInt(D[0])||0,g.y=parseInt(D[1])||0}}return!g.x&&!g.x?Qt(c):g},dl=function(c){var n=c.style,g={x:parseInt(n.left)||0,y:parseInt(n.top)||0};if(!g.x&&!g.x){var d=window.getComputedStyle(c);return{x:parseInt(d.left)||0,y:parseInt(d.top)||0}}return g},hl=function(h,c){return c?cl(h):dl(h)},ul=function(h){var c=h.element,n=h.edges,g=h.elementRect,d=h.containerRect,w=h.elementPos,v=h.useTransform;n.includes("top")&&Le(c,{y:w.y+d.top-g.top,x:w.x},v),n.includes("left")&&Le(c,{y:w.y,x:w.x+d.left-g.left},v),n.includes("bottom")&&Le(c,{y:w.y+d.bottom-g.bottom,x:w.x},v),n.includes("right")&&Le(c,{y:w.y,x:w.x+d.right-g.right},v)},er=function(h){var c=h.computedStyle,n=h.node,g=c.position,d=g==="absolute"||g==="relative"||g==="fixed";!(n instanceof HTMLDocument)&&!d&&(n.style.position="relative")},ml=function(h){var c=h.shiftKey,n=h.keyboardDragSpeed,g=h.zoom,d=h.key,w=h.dragKeys,v=h.scrollDiff,_=h.canScroll,D=h.scrollCallback,C={x:0,y:0},V=c?n*4*g:n*g;return w.left.includes(d)&&(C.x=v.x||-V,!c&&!v.x&&_&&D(["left"],n)),w.right.includes(d)&&(C.x=v.x||V,!c&&!v.x&&_&&D(["right"],n)),w.up.includes(d)&&(C.y=v.y||-V,!c&&!v.y&&_&&D(["top"],n)),w.down.includes(d)&&(C.y=v.y||V,!c&&!v.y&&_&&D(["bottom"],n)),C},fl=function(h){var c=h.element,n=h.force,g=h.multiSelectionToggle,d=h.SelectedSet,w=h.hoverClassName;c.classList.contains(w)&&!n||(d.has(c)?g&&d.delete(c):d.add(c),c.classList.add(w))},pl=function(h){var c=h.element,n=h.force,g=h.SelectedSet,d=h.PrevSelectedSet,w=h.hoverClassName;if(!c.classList.contains(w)&&!n)return!1;var v=g.has(c),_=d.has(c);v&&!_?g.delete(c):!v&&_&&g.add(c),c.classList.remove(w)},yt=function(h,c){return h.left<c.right&&h.right>c.left&&h.top<c.bottom&&h.bottom>c.top},tr=function(h){var c=h.element,n=h.posDirection,g=h.containerRect,d=h.useTransform,w=hl(c,d),v=I(w,"+",n);Le(c,v,d);var _=c.getBoundingClientRect(),D=Zt({elementRect:_,containerRect:g});ul({element:c,edges:D,elementRect:_,containerRect:g,elementPos:v,useTransform:d})},gl=function(h,c){window.removeEventListener("resize",c),window.removeEventListener("scroll",c),h.disconnect()},yl=function(h,c,n){if(!!c.length){var g=document&&document.documentElement&&document.documentElement.scrollTop&&document.documentElement,d=h instanceof HTMLDocument?g||document.body:h,w=c.includes("top")&&d.scrollTop>0,v=c.includes("bottom")&&d.scrollTop<d.scrollHeight,_=c.includes("left")&&d.scrollLeft>0,D=c.includes("right")&&d.scrollLeft<d.scrollWidth;w&&(d.scrollTop-=1*n),v&&(d.scrollTop+=1*n),_&&(d.scrollLeft-=1*n),D&&(d.scrollLeft+=1*n)}},Le=function(h,c,n){if(n){var g=h.style.transform;h.style.transform="translate3d(".concat(c.x,"px,").concat(c.y,"px,1px) ").concat(g.replace(/translate.*?\)/g,""))}else h.style.left="".concat(c.x,"px"),h.style.top="".concat(c.y,"px");return h},bl=function(h){for(var c=h.subscribe,n=h.publish,g=h.Interaction,d=h.SelectedSet,w={"Selected:added":[{name:"elementselect"}],"Selected:removed":[{name:"elementunselect"}],"Area:scroll":[{name:"autoscroll"}],"Interaction:start":[{name:"dragstart"}],"Interaction:update":[{name:"dragmove",condition:function(V){return V.event}}],"Interaction:end":[{name:"callback"}]},v=function(){var V=P(D[_],2),T=V[0],L=V[1];["pre",!1].forEach(function(X){return c(X?"".concat(T,":").concat(X):T,function(ne){return L.forEach(function(J){return(!J.condition||J.condition(ne))&&n(X?"".concat(X).concat(J.name):J.name,m({items:d.elements,isDragging:g.isDragging},ne))})})})},_=0,D=Object.entries(w);_<D.length;_++)v()},Ee=function(h){return h?!Array.isArray(h)&&(h instanceof HTMLElement||h instanceof SVGElement)?[h]:H(h):[]},rr=function(h,c){h.style.left="".concat(c.left,"px"),h.style.top="".concat(c.top,"px"),h.style.width="".concat(c.width,"px"),h.style.height="".concat(c.height,"px")},wl=function(){function h(c){var n=this,g=c.area,d=c.PS,w=c.zoom;r(this,h),a(this,"_modificationCallback",void 0),a(this,"_modificationObserver",void 0),a(this,"_zoom",void 0),a(this,"_node",void 0),a(this,"_parentNodes",void 0),a(this,"_computedStyle",void 0),a(this,"_computedBorder",void 0),a(this,"_rect",void 0),a(this,"setArea",function(v){n._node=v,er({computedStyle:n.computedStyle,node:n._node}),setTimeout(function(){n.PubSub.publish("Area:modified:pre",{item:n}),n.reset(),n.PubSub.publish("Area:modified",{item:n})})}),a(this,"start",function(){je(n.parentNodes,n._modificationCallback,n._modificationObserver)}),a(this,"reset",function(){n._computedStyle=void 0,n._rect=void 0,n._computedBorder=void 0,n._parentNodes=void 0}),a(this,"stop",function(){gl(n._modificationObserver,n._modificationCallback),n.reset()}),a(this,"scroll",function(v,_){var D={scroll_directions:v,scroll_multiplier:_};n.PubSub.publish("Area:scroll:pre",D),yl(n._node,v,_),n.PubSub.publish("Area:scroll",D)}),this._zoom=w,this.PubSub=d,this.setArea(g),this._modificationCallback=Xe(function(v){n.PubSub.publish("Area:modified:pre",{event:v,item:n}),n.reset(),n.PubSub.publish("Area:modified",{event:v,item:n})},60),this._modificationObserver=new MutationObserver(this._modificationCallback),this.PubSub.subscribe("Interaction:init",this.start),this.PubSub.subscribe("Interaction:end",this.reset)}return s(h,[{key:"HTMLNode",get:function(){return this._node}},{key:"computedBorder",get:function(){return this._computedBorder?this._computedBorder:{top:parseInt(this.computedStyle.borderTopWidth),bottom:parseInt(this.computedStyle.borderBottomWidth),left:parseInt(this.computedStyle.borderLeftWidth),right:parseInt(this.computedStyle.borderRightWidth)}}},{key:"computedStyle",get:function(){return this._computedStyle?this._computedStyle:this.HTMLNode instanceof HTMLDocument?this._computedStyle=window.getComputedStyle(this.HTMLNode.body||this.HTMLNode.documentElement):this._computedStyle=window.getComputedStyle(this.HTMLNode)}},{key:"rect",get:function(){return this._rect?this._rect:this._rect=gt(this.HTMLNode,this._zoom)}},{key:"parentNodes",get:function(){if(this._parentNodes)return this._parentNodes;var n=function g(d){var w,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=(w=d[v])===null||w===void 0?void 0:w.parentNode;return _?(d.push(_),v++,g(d,v)):d};return this._parentNodes=n([this.HTMLNode]),this._parentNodes}}]),h}(),vl=function(){function h(c){var n=this,g=c.DS,d=c.dragKeys,w=c.draggability,v=c.keyboardDrag,_=c.keyboardDragSpeed,D=c.useTransform,C=c.zoom;r(this,h),a(this,"_useTransform",void 0),a(this,"_prevCursorPos",void 0),a(this,"_prevScrollPos",void 0),a(this,"_elements",[]),a(this,"_draggability",void 0),a(this,"_dragKeys",void 0),a(this,"_dragKeysFlat",void 0),a(this,"_keyboardDrag",void 0),a(this,"_keyboardDragSpeed",void 0),a(this,"_zoom",void 0),a(this,"keyboardDrag",function(V){var T=V.event,L=V.key;if(!(!n._keyboardDrag||!n._dragKeysFlat.includes(L)||!n.DS.SelectedSet.size||!n._draggability||n.DS.continue)){var X={event:T,isDragging:!0,isDraggingKeyboard:!0};n.DS.publish(["Interaction:start:pre","Interaction:start"],X),n._elements=n.DS.getSelection(),n.handleZIndex(!0);var ne=ml({shiftKey:n.DS.stores.KeyStore.currentValues.includes("shift"),keyboardDragSpeed:n._keyboardDragSpeed,zoom:n._zoom,key:L,scrollCallback:n.DS.Area.scroll,scrollDiff:n._scrollDiff,canScroll:n.DS.stores.ScrollStore.canScroll,dragKeys:n._dragKeys});n._elements.forEach(function(J){return tr({element:J,posDirection:ne,containerRect:n.DS.SelectorArea.rect,useTransform:n._useTransform})}),n.DS.publish(["Interaction:update:pre","Interaction:update"],X)}}),a(this,"keyboardEnd",function(V){var T=V.event,L=V.key;if(!(!n._keyboardDrag||!n._dragKeysFlat.includes(L)||!n.DS.SelectedSet.size||!n._draggability)){var X={event:T,isDragging:n._draggability,isDraggingKeyboard:!0};n.DS.publish(["Interaction:end:pre","Interaction:end"],X)}}),a(this,"start",function(V){var T=V.isDragging,L=V.isDraggingKeyboard;!T||L||(n._prevCursorPos=null,n._prevScrollPos=null,n._elements=n.DS.getSelection(),n.handleZIndex(!0))}),a(this,"stop",function(V){V!=null&&V.isKeyboard||(n._prevCursorPos=null,n._prevScrollPos=null,n.handleZIndex(!1),n._elements=[])}),a(this,"update",function(V){var T=V.isDragging,L=V.isDraggingKeyboard;if(!(!T||!n._elements.length||L||n.DS.continue)){var X=I(n._cursorDiff,"+",n._scrollDiff);n._elements.forEach(function(ne){return tr({element:ne,posDirection:X,containerRect:n.DS.SelectorArea.rect,useTransform:n._useTransform})})}}),a(this,"handleZIndex",function(V){n._elements.forEach(function(T){return T.style.zIndex="".concat((parseInt(T.style.zIndex)||0)+V?9999:-9998)})}),this.DS=g,this._useTransform=D,this._keyboardDragSpeed=_,this._keyboardDrag=v,this._zoom=C,this._draggability=w,this._dragKeys={up:d.up.map(function(V){return V.toLowerCase()}),down:d.down.map(function(V){return V.toLowerCase()}),left:d.left.map(function(V){return V.toLowerCase()}),right:d.right.map(function(V){return V.toLowerCase()})},this._dragKeysFlat=[].concat(H(this._dragKeys.up),H(this._dragKeys.down),H(this._dragKeys.left),H(this._dragKeys.right)),this.DS.subscribe("Interaction:start",this.start),this.DS.subscribe("Interaction:end",this.stop),this.DS.subscribe("Interaction:update",this.update),this.DS.subscribe("KeyStore:down",this.keyboardDrag),this.DS.subscribe("KeyStore:up",this.keyboardEnd)}return s(h,[{key:"_cursorDiff",get:function(){var n=this.DS.stores.PointerStore.currentVal,g=this._prevCursorPos?I(n,"-",this._prevCursorPos):{x:0,y:0};return this._prevCursorPos=n,g}},{key:"_scrollDiff",get:function(){var n=this.DS.stores.ScrollStore.currentVal,g=this._prevScrollPos?I(n,"-",this._prevScrollPos):{x:0,y:0};return this._prevScrollPos=n,g}}]),h}(),kl=function(){function h(c){var n=this,g=c.DS,d=c.areaElement,w=c.draggability,v=c.immediateDrag,_=c.selectableClass;r(this,h),a(this,"_areaElement",void 0),a(this,"_draggability",void 0),a(this,"_immediateDrag",void 0),a(this,"_selectableClass",void 0),a(this,"isInteracting",void 0),a(this,"isDragging",void 0),a(this,"init",function(){return n.DS.publish("Interaction:init:pre",{})}),a(this,"_init",function(){n.stop(),n._areaElement.addEventListener("mousedown",n.start),n._areaElement.addEventListener("touchstart",n.start,{passive:!1}),n.DS.publish("Interaction:init",{})}),a(this,"start",function(D){return n.DS.publish("Interaction:start:pre",{event:D,isDragging:n.isDragging})}),a(this,"_start",function(D){D.type==="touchstart"&&D.preventDefault(),n._canInteract(D)&&(n.isInteracting=!0,n.isDragging=n.isDragEvent(D),n.DS.publish("Interaction:start",{event:D,isDragging:n.isDragging}),document.addEventListener("mouseup",n.reset),document.addEventListener("touchend",n.reset))}),a(this,"isDragEvent",function(D){var C=D.target.closest(".".concat(n._selectableClass));return!n._draggability||n.DS.stores.KeyStore.isMultiSelectKeyPressed(D)||!C?!1:(n._immediateDrag&&(n.DS.SelectedSet.size?n.DS.SelectedSet.has(C)||(n.DS.SelectedSet.clear(),n.DS.SelectedSet.add(C)):n.DS.SelectedSet.add(C)),!!n.DS.SelectedSet.has(C))}),a(this,"onClick",function(D){var C=D.event;if(!!n._canInteract(C)&&!(C.detail>0)){var V=n.DS,T=V.stores,L=T.PointerStore,X=T.KeyStore,ne=V.SelectableSet,J=V.SelectedSet;L.start(C);var Ne=C.target;!ne.has(Ne)||(X.isMultiSelectKeyPressed(C)||J.clear(),J.toggle(Ne),n.reset())}}),a(this,"stop",function(){n.isInteracting=!1,n.isDragging=!1,n._areaElement.removeEventListener("mousedown",n.start),n._areaElement.removeEventListener("touchstart",n.start,{passive:!1}),document.removeEventListener("mouseup",n.reset),document.removeEventListener("touchend",n.reset)}),a(this,"update",function(D){var C=D.event,V=D.scroll_directions,T=D.scroll_multiplier;n.isInteracting&&n.DS.publish(["Interaction:update:pre","Interaction:update"],{event:C,scroll_directions:V,scroll_multiplier:T,isDragging:n.isDragging})}),a(this,"reset",function(D){return n.DS.publish("Interaction:end:pre",{event:D,isDragging:n.isDragging})}),a(this,"_reset",function(D){var C=n.isDragging;n.stop(),n.init(),n.DS.publish("Interaction:end",{event:D,isDragging:C})}),this._areaElement=d,this._draggability=w,this._immediateDrag=v,this._selectableClass=_,this.DS=g,this.DS.subscribe("PointerStore:updated",this.update),this.DS.subscribe("Selectable:click",this.onClick),this.DS.subscribe("Selectable:pointer",function(D){var C=D.event;return n.start(C)}),this.DS.subscribe("Interaction:start:pre",function(D){var C=D.event;return n._start(C)}),this.DS.subscribe("Interaction:init:pre",this._init),this.DS.subscribe("Interaction:end:pre",function(D){var C=D.event;return n._reset(C)}),this.DS.subscribe("Area:scroll",this.update)}return s(h,[{key:"_canInteract",value:function(n){var g=n.clientX===0&&n.clientY===0&&n.detail===0&&n.target;return!(n.button===2||this.isInteracting||n.target&&!this.DS.SelectorArea.isInside(n.target)||!g&&!this.DS.SelectorArea.isClicked(n))}}]),h}(),_l=function h(c){var n=this,g=c.DS;r(this,h),a(this,"subscribers",{}),a(this,"subscribe",function(d,w){return Array.isArray(n.subscribers[d])||(n.subscribers[d]=[]),n.subscribers[d].push(w),n.subscribers[d].length-1}),a(this,"unsubscribe",function(d,w,v){v>=0?n.subscribers[d].splice(v,1):w&&(n.subscribers[d]=n.subscribers[d].filter(function(_){return _!==w}))}),a(this,"publish",function(d,w){Array.isArray(d)?d.forEach(function(v){return n._publish(v,w)}):n._publish(d,w)}),a(this,"_publish",function(d,w){var v=n.subscribers[d];!Array.isArray(v)||(d.includes(":pre")?n._handlePrePublish(v,w):n._handlePublish(v,w))}),a(this,"_handlePublish",function(d,w){for(var v=0,_=d.length;v<_;v++){if(n.DS.stopped)return;d[v](w)}}),a(this,"_handlePrePublish",function(d,w){for(var v=d.length;v--;){if(n.DS.stopped)return;d[v](w)}}),this.DS=g},xl=function(h){p(n,h);var c=R(n);function n(g){var d,w=g.elements,v=g.className,_=g.hoverClassName,D=g.draggability,C=g.useTransform,V=g.DS;return r(this,n),d=c.call(this),a(S(d),"_initElements",void 0),a(S(d),"_className",void 0),a(S(d),"_hoverClassName",void 0),a(S(d),"_useTransform",void 0),a(S(d),"_draggability",void 0),a(S(d),"init",function(){return d._initElements.forEach(function(T){return d.add(T)})}),a(S(d),"clear",function(){return d.forEach(function(T){return d.delete(T)})}),a(S(d),"_onClick",function(T){return d.DS.publish(["Selectable:click:pre","Selectable:click"],{event:T})}),a(S(d),"_onPointer",function(T){return d.DS.publish(["Selectable:pointer:pre","Selectable:pointer"],{event:T})}),a(S(d),"addAll",function(T){return T.forEach(function(L){return d.add(L)})}),a(S(d),"deleteAll",function(T){return T.forEach(function(L){return d.delete(L)})}),d.DS=V,d._initElements=Ee(w),d._className=v,d._hoverClassName=_,d._useTransform=C,d._draggability=D,d.DS.subscribe("Interaction:init",d.init),d}return s(n,[{key:"add",value:function(d){return d.classList.add(this._className),d.addEventListener("click",this._onClick),d.addEventListener("mousedown",this._onPointer),d.addEventListener("touchstart",this._onPointer,{passive:!1}),this._draggability&&!this._useTransform&&er({computedStyle:window.getComputedStyle(d),node:d}),N(f(n.prototype),"add",this).call(this,d)}},{key:"delete",value:function(d){return d.classList.remove(this._className),d.classList.remove(this._hoverClassName),d.removeEventListener("click",this._onClick),d.removeEventListener("mousedown",this._onPointer),d.removeEventListener("touchstart",this._onPointer,{passive:!1}),N(f(n.prototype),"delete",this).call(this,d)}},{key:"elements",get:function(){return Array.from(this.values())}}]),n}(k(Set)),Sl=function(h){p(n,h);var c=R(n);function n(g){var d,w=g.className,v=g.DS;return r(this,n),d=c.call(this),a(S(d),"_className",void 0),a(S(d),"clear",function(){return d.forEach(function(_){return d.delete(_)})}),a(S(d),"addAll",function(_){return _.forEach(function(D){return d.add(D)})}),a(S(d),"deleteAll",function(_){return _.forEach(function(D){return d.delete(D)})}),d.DS=v,d._className=w,d}return s(n,[{key:"add",value:function(d){if(!N(f(n.prototype),"has",this).call(this,d)){var w={items:this.elements,item:d};return this.DS.publish("Selected:added:pre",w),N(f(n.prototype),"add",this).call(this,d),d.classList.add(this._className),d.style.zIndex="".concat((parseInt(d.style.zIndex)||0)+1),this.DS.publish("Selected:added",w),this}}},{key:"delete",value:function(d){if(!!N(f(n.prototype),"has",this).call(this,d)){var w={items:this.elements,item:d};this.DS.publish("Selected:removed:pre",w);var v=N(f(n.prototype),"delete",this).call(this,d);return d.classList.remove(this._className),d.style.zIndex="".concat((parseInt(d.style.zIndex)||0)-1),this.DS.publish("Selected:removed",w),v}}},{key:"toggle",value:function(d){return this.has(d)?this.delete(d):this.add(d),d}},{key:"elements",get:function(){return Array.from(this.values())}}]),n}(k(Set)),Dl=function(){function h(c){var n=this,g=c.DS,d=c.hoverClassName,w=c.multiSelectToggling;r(this,h),a(this,"_prevSelectedSet",void 0),a(this,"_hoverClassName",void 0),a(this,"_multiSelectToggling",void 0),a(this,"start",function(v){var _=v.event,D=v.isDragging;D||(n._storePrevious(_),n._handleInsideSelection(!0,_))}),a(this,"update",function(v){var _=v.isDragging;_||n.DS.continue||n._handleInsideSelection()}),a(this,"_handleInsideSelection",function(v,_){for(var D=n.DS,C=D.SelectableSet,V=D.SelectorArea,T=D.Selector,L=C.elements.map(function(fe){return[fe,fe.getBoundingClientRect()]}),X=[],ne=[],J=0,Ne=L.length;J<Ne;J++)!V.isInside(L[J][0],L[J][1])||(yt(L[J][1],T.rect)?X.push(L[J][0]):ne.push(L[J][0]));var qe=n.DS.stores.KeyStore.isMultiSelectKeyPressed(_)&&n._multiSelectToggling;n.DS.continue||(X.forEach(function(fe){return fl({element:fe,force:v,multiSelectionToggle:qe,SelectedSet:n.DS.SelectedSet,hoverClassName:n._hoverClassName})}),ne.forEach(function(fe){return pl({element:fe,force:v,SelectedSet:n.DS.SelectedSet,hoverClassName:n._hoverClassName,PrevSelectedSet:n._prevSelectedSet})}))}),this._hoverClassName=d,this._multiSelectToggling=w,this.DS=g,this.DS.subscribe("Interaction:start",this.start),this.DS.subscribe("Interaction:update",this.update)}return s(h,[{key:"_storePrevious",value:function(n){var g=this.DS,d=g.stores.KeyStore,w=g.SelectedSet;d.isMultiSelectKeyPressed(n)?this._prevSelectedSet=new Set(w):this._prevSelectedSet=new Set}}]),h}(),El=function(){function h(c){var n=this,g=c.DS,d=c.selector,w=c.selectorClass,v=c.customStyles;r(this,h),a(this,"_rect",void 0),a(this,"start",function(_){var D=_.isDragging;if(!D){var C=n.DS.stores.PointerStore,V=C.initialValArea;rr(n.HTMLNode,G(V,1)),n.HTMLNode.style.display="block",n._rect=null}}),a(this,"stop",function(){n.HTMLNode.style.width="0",n.HTMLNode.style.height="0",n.HTMLNode.style.display="none"}),a(this,"update",function(_){var D=_.isDragging;if(!(D||n.DS.continue)){var C=n.DS.stores,V=C.ScrollStore,T=C.PointerStore,L=ll({scrollAmount:V.scrollAmount,initialPointerPos:T.initialValArea,pointerPos:T.currentValArea});rr(n.HTMLNode,L),n._rect=null}}),this.DS=g,this.HTMLNode=d||We(v),this.HTMLNode.classList.add(w),this.DS.subscribe("Interaction:start",this.start),this.DS.subscribe("Interaction:update",this.update),this.DS.subscribe("Interaction:end",this.stop)}return s(h,[{key:"rect",get:function(){return this._rect?this._rect:this._rect=this.HTMLNode.getBoundingClientRect()}}]),h}(),Nl=function(){function h(c){var n=this,g=c.DS,d=c.selectorAreaClass,w=c.autoScrollSpeed,v=c.overflowTolerance;r(this,h),a(this,"_autoScrollSpeed",void 0),a(this,"_scrollInterval",void 0),a(this,"_rect",void 0),a(this,"currentEdges",[]),a(this,"_overflowTolerance",void 0),a(this,"start",function(){return n.applyElements("append")}),a(this,"applyElements",function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"append",D=document.body?"body":"documentElement",C="".concat(_,"Child");n.HTMLNode[C](n.DS.Selector.HTMLNode),document[D][C](n.HTMLNode)}),a(this,"updatePos",function(){n._rect=null;var _=n.DS.Area.rect,D=n.DS.Area.computedBorder,C=n.HTMLNode.style,V="".concat(_.top+D.top,"px"),T="".concat(_.left+D.left,"px"),L="".concat(_.width,"px"),X="".concat(_.height,"px");C.top!==V&&(C.top=V),C.left!==T&&(C.left=T),C.width!==L&&(C.width=L),C.height!==X&&(C.height=X)}),a(this,"stop",function(_){n.stopAutoScroll(),_&&n.applyElements("remove")}),a(this,"startAutoScroll",function(){n.currentEdges=[],n._scrollInterval=setInterval(function(){return n.handleAutoScroll()},16)}),a(this,"handleAutoScroll",function(){if(!n.DS.continue){var _=n.DS,D=_.stores.PointerStore,C=_.Area;n.currentEdges=Zt({elementRect:G(D.currentVal),containerRect:n.rect,tolerance:n._overflowTolerance}),n.currentEdges.length&&C.scroll(n.currentEdges,n._autoScrollSpeed)}}),a(this,"stopAutoScroll",function(){n.currentEdges=[],clearInterval(n._scrollInterval)}),a(this,"isInside",function(_,D){return n.DS.Area.HTMLNode.contains(_)&&n.DS.stores.ScrollStore.canScroll?!0:yt(n.rect,D||_.getBoundingClientRect())}),this._autoScrollSpeed=w,this._overflowTolerance=v,this.DS=g,this.HTMLNode=Ye(d),this.DS.subscribe("Area:modified",this.updatePos),this.DS.subscribe("Interaction:init",this.start),this.DS.subscribe("Interaction:start",this.startAutoScroll),this.DS.subscribe("Interaction:end",function(){n.updatePos(),n.stopAutoScroll()})}return s(h,[{key:"isClicked",value:function(n){var g=this.DS.stores.PointerStore,d=n?g.getPointerPosition(n):g.initialVal;return yt({left:d.x,top:d.y,right:d.x,bottom:d.y},this.rect)}},{key:"rect",get:function(){return this._rect?this._rect:this._rect=this.HTMLNode.getBoundingClientRect()}}]),h}(),Vl=function(){function h(c){var n=this,g=c.DS,d=c.multiSelectKeys,w=c.multiSelectMode;r(this,h),a(this,"_multiSelectMode",void 0),a(this,"_multiSelectKeys",void 0),a(this,"_currentValues",new Set),a(this,"_keyMapping",{control:"ctrlKey",shift:"shiftKey",meta:"metaKey"}),a(this,"init",function(){document.addEventListener("keydown",n.keydown),document.addEventListener("keyup",n.keyup),window.addEventListener("blur",n.reset)}),a(this,"keydown",function(v){var _=v.key.toLowerCase();n.DS.publish("KeyStore:down:pre",{event:v,key:_}),n._currentValues.add(_),n.DS.publish("KeyStore:down",{event:v,key:_})}),a(this,"keyup",function(v){var _=v.key.toLowerCase();n.DS.publish("KeyStore:up:pre",{event:v,key:_}),n._currentValues.delete(_),n.DS.publish("KeyStore:up",{event:v,key:_})}),a(this,"stop",function(){document.removeEventListener("keydown",n.keydown),document.removeEventListener("keyup",n.reset),window.removeEventListener("blur",n.reset),n.reset()}),a(this,"reset",function(){return n._currentValues.clear()}),this.DS=g,this._multiSelectMode=w,this._multiSelectKeys=d.map(function(v){var _={ctrlKey:"Control",shiftKey:"Shift",metaKey:"Meta"},D=_[v];return D?(console.warn("[DragSelect] ".concat(v,' is deprecated. Use "').concat(D,'" instead. Act Now!. See docs for more info')),D.toLowerCase()):v.toLowerCase()}),this.DS.subscribe("Interaction:init",this.init)}return s(h,[{key:"isMultiSelectKeyPressed",value:function(n){var g=this;return!!(this._multiSelectMode||this.currentValues.some(function(d){return g._multiSelectKeys.includes(d)})||n&&this._multiSelectKeys.some(function(d){return n[g._keyMapping[d]]}))}},{key:"currentValues",get:function(){return Array.from(this._currentValues.values())}}]),h}(),Cl=function(){function h(c){var n=this,g=c.DS;r(this,h),a(this,"_isMouseInteraction",!1),a(this,"_initialValArea",void 0),a(this,"_currentValArea",void 0),a(this,"_lastValArea",void 0),a(this,"_initialVal",void 0),a(this,"_currentVal",void 0),a(this,"_lastVal",void 0),a(this,"_lastTouch",void 0),a(this,"init",function(){document.addEventListener("mousemove",n.update),document.addEventListener("touchmove",n.update,{passive:!1})}),a(this,"getPointerPosition",function(d){return sl({event:n._normalizedEvent(d)})}),a(this,"update",function(d){!d||(n.DS.publish("PointerStore:updated:pre",{event:d}),n.currentVal=n.getPointerPosition(d),n._isMouseInteraction&&n.DS.publish("PointerStore:updated",{event:d}))}),a(this,"stop",function(){document.removeEventListener("mousemove",n.update),document.removeEventListener("touchmove",n.update,{passive:!1}),setTimeout(function(){return n._isMouseInteraction=!1},100)}),a(this,"reset",function(d){!d||(n.currentVal=n.lastVal=n.getPointerPosition(d),n.stop(),n.init())}),this.DS=g,this.DS.subscribe("Interaction:init",this.init),this.DS.subscribe("Interaction:start",function(d){var w=d.event;return n.start(w)}),this.DS.subscribe("Interaction:end",function(d){var w=d.event;return n.reset(w)})}return s(h,[{key:"start",value:function(n){!n||(this._isMouseInteraction=!0,this.currentVal=this.initialVal=this.getPointerPosition(n))}},{key:"_normalizedEvent",value:function(n){return"touches"in n&&n.type!=="touchend"&&(this._lastTouch=n),"touches"in n?this._lastTouch.touches[0]:n}},{key:"initialValArea",get:function(){return this._initialValArea?this._initialValArea:{x:0,y:0}}},{key:"currentValArea",get:function(){return this._currentValArea?this._currentValArea:{x:0,y:0}}},{key:"lastValArea",get:function(){return this._lastValArea?this._lastValArea:{x:0,y:0}}},{key:"initialVal",get:function(){return this._initialVal?this._initialVal:{x:0,y:0}},set:function(n){this._initialVal=n,this._initialValArea=n&&I(n,"-",I(j(this.DS.Area.rect),"+",j(this.DS.Area.computedBorder)))}},{key:"currentVal",get:function(){return this._currentVal?this._currentVal:{x:0,y:0}},set:function(n){this._currentVal=n,this._currentValArea=n&&I(n,"-",I(j(this.DS.Area.rect),"+",j(this.DS.Area.computedBorder)))}},{key:"lastVal",get:function(){return this._lastVal?this._lastVal:{x:0,y:0}},set:function(n){this._lastVal=n,this._lastValArea=n&&I(n,"-",I(j(this.DS.Area.rect),"+",j(this.DS.Area.computedBorder)))}}]),h}(),$l=function(){function h(c){var n=this,g=c.DS,d=c.areaElement,w=c.zoom;r(this,h),a(this,"_initialVal",void 0),a(this,"_currentVal",void 0),a(this,"_areaElement",void 0),a(this,"_canScroll",void 0),a(this,"init",function(){return n._areaElement.addEventListener("scroll",n.update)}),a(this,"start",function(){n._currentVal=n._initialVal=De(n._areaElement),n._areaElement.addEventListener("scroll",n.update)}),a(this,"update",function(){return n._currentVal=De(n._areaElement)}),a(this,"stop",function(){n._areaElement.removeEventListener("scroll",n.update),n._initialVal={x:0,y:0},n._canScroll=null}),a(this,"reset",function(){n.stop(),n.start()}),this._areaElement=d,this.DS=g,this.zoom=w,this.DS.subscribe("Interaction:init",this.init),this.DS.subscribe("Interaction:start",function(){return n.start()}),this.DS.subscribe("Interaction:end",function(){return n.reset()})}return s(h,[{key:"canScroll",get:function(){return typeof this._canScroll=="boolean"?this._canScroll:this._canScroll=Pe(this._areaElement)}},{key:"scrollAmount",get:function(){var n=I(this.currentVal,"-",this.initialVal),g=W(this.zoom),d=I(I(n,"*",g),"-",n);return{x:n.x+d.x,y:n.y+d.y}}},{key:"initialVal",get:function(){return this._initialVal?this._initialVal:{x:0,y:0}}},{key:"currentVal",get:function(){return this._currentVal||(this._currentVal=De(this._areaElement)),this._currentVal}}]),h}(),Ml=function(){function h(c){var n=this,g=c.area,d=g===void 0?document:g,w=c.selectables,v=w===void 0?[]:w,_=c.autoScrollSpeed,D=_===void 0?5:_,C=c.overflowTolerance,V=C===void 0?{x:25,y:25}:C,T=c.zoom,L=T===void 0?1:T,X=c.customStyles,ne=X===void 0?!1:X,J=c.multiSelectMode,Ne=J===void 0?!1:J,qe=c.multiSelectToggling,fe=qe===void 0?!0:qe,nr=c.multiSelectKeys,Bl=nr===void 0?["Control","Shift","Meta"]:nr,or=c.selector,Tl=or===void 0?void 0:or,ar=c.draggability,bt=ar===void 0?!0:ar,ir=c.immediateDrag,Al=ir===void 0?!0:ir,sr=c.keyboardDrag,Ol=sr===void 0?!0:sr,jl=c.dragKeys,lr=c.keyboardDragSpeed,Pl=lr===void 0?10:lr,cr=c.useTransform,dr=cr===void 0?!0:cr,hr=c.hoverClass,ur=hr===void 0?"ds-hover":hr,mr=c.selectableClass,fr=mr===void 0?"ds-selectable":mr,pr=c.selectedClass,Ll=pr===void 0?"ds-selected":pr,gr=c.selectorClass,Il=gr===void 0?"ds-selector":gr,yr=c.selectorAreaClass,zl=yr===void 0?"ds-selector-area":yr,Rl=c.callback,Hl=c.onDragMove,Ul=c.onDragStartBegin,Fl=c.onDragStart,Kl=c.onElementSelect,Yl=c.onElementUnselect;r(this,h),a(this,"continue",!1),a(this,"start",function(){n.stopped=!1,n.Interaction.init()}),a(this,"break",function(){return n.continue=!0}),a(this,"getSelection",function(){return n.SelectedSet.elements}),a(this,"getSelectables",function(){return n.SelectableSet.elements}),a(this,"getInitialCursorPosition",function(){return n.stores.PointerStore.initialVal}),a(this,"getCurrentCursorPosition",function(){return n.stores.PointerStore.currentVal}),a(this,"getPreviousCursorPosition",function(){return n.stores.PointerStore.lastVal}),a(this,"getInitialCursorPositionArea",function(){return n.stores.PointerStore.initialValArea}),a(this,"getCurrentCursorPositionArea",function(){return n.stores.PointerStore.currentValArea}),a(this,"getPreviousCursorPositionArea",function(){return n.stores.PointerStore.lastValArea}),a(this,"isMultiSelect",function(Wl){return n.stores.KeyStore.isMultiSelectKeyPressed(Wl)}),a(this,"isDragging",function(){return n.Interaction.isDragging}),this.PubSub=new _l({DS:this}),this.subscribe=this.PubSub.subscribe,this.unsubscribe=this.PubSub.unsubscribe,this.publish=this.PubSub.publish,this._callbacksTemp({callback:Rl,onDragMove:Hl,onDragStart:Fl,onDragStartBegin:Ul,onElementSelect:Kl,onElementUnselect:Yl}),this.stores={PointerStore:new Cl({DS:this}),ScrollStore:new $l({DS:this,areaElement:d,zoom:L}),KeyStore:new Vl({DS:this,multiSelectKeys:Bl,multiSelectMode:Ne})},this.Area=new wl({area:d,PS:this.PubSub,zoom:L}),this.Selector=new El({DS:this,selector:Tl,selectorClass:Il,customStyles:ne}),this.SelectorArea=new Nl({DS:this,selectorAreaClass:zl,autoScrollSpeed:D,overflowTolerance:V}),this.SelectableSet=new xl({elements:v,DS:this,className:fr,hoverClassName:ur,useTransform:dr,draggability:bt}),this.SelectedSet=new Sl({DS:this,className:Ll}),this.Selection=new Dl({DS:this,hoverClassName:ur,multiSelectToggling:fe}),this.Drag=new vl({DS:this,draggability:bt,useTransform:dr,keyboardDrag:Ol,dragKeys:Object.assign({up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},jl),zoom:L,keyboardDragSpeed:Pl}),this.Interaction=new kl({areaElement:d,DS:this,draggability:bt,immediateDrag:Al,selectableClass:fr}),bl({subscribe:this.subscribe,publish:this.publish,SelectedSet:this.SelectedSet,Interaction:this.Interaction}),this.subscribe("Interaction:end",function(){return n.continue=!1}),this.start()}return s(h,[{key:"_callbacksTemp",value:function(n){var g=n.callback,d=n.onDragMove,w=n.onDragStart,v=n.onDragStartBegin,_=n.onElementSelect,D=n.onElementUnselect,C=function(T,L){return console.warn("[DragSelect] ".concat(T,' is deprecated. Use DragSelect.subscribe("').concat(L,'", (callbackObject) => {}) instead. Act Now! See docs for more info'))};g&&(C("callback","callback"),this.subscribe("callback",function(V){var T=V.items;V.item;var L=V.event;return g(T,L)})),d&&(C("onDragMove","dragmove"),this.subscribe("dragmove",function(V){V.items,V.item;var T=V.event;return d(T)})),w&&(C("onDragStart","dragstart"),this.subscribe("dragstart",function(V){V.items,V.item;var T=V.event;return w(T)})),v&&(C("onDragStartBegin","dragstart"),this.subscribe("dragstart",function(V){V.items,V.item;var T=V.event;return v(T)})),_&&(C("onElementSelect","elementselect"),this.subscribe("elementselect",function(V){V.items;var T=V.item,L=V.event;return _(T,L)})),D&&(C("onElementUnselect","elementunselect"),this.subscribe("elementunselect",function(V){V.items;var T=V.item,L=V.event;return D(T,L)}))}},{key:"stop",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;d&&this.publish("callback",{items:this.getSelection()}),this.Interaction.stop(),this.Area.stop(),this.Drag.stop(),this.Selector.stop(),this.SelectorArea.stop(n),this.stores.KeyStore.stop(),this.stores.PointerStore.stop(),this.stores.ScrollStore.stop(),n&&this.SelectableSet.clear(),g&&this.SelectedSet.clear(),this.stopped=!0}},{key:"addSelection",value:function(n){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.SelectedSet.addAll(Ee(n)),d||this.addSelectables(n),g&&this.PubSub.publish("callback",{items:this.getSelection()}),this.getSelection()}},{key:"removeSelection",value:function(n){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.SelectedSet.deleteAll(Ee(n)),d&&this.removeSelectables(n),g&&this.PubSub.publish("callback",{items:this.getSelection()}),this.getSelection()}},{key:"toggleSelection",value:function(n){var g=this,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Ee(n).forEach(function(v){return g.SelectedSet.has(v)?g.removeSelection(n,d,w):g.addSelection(n,d,w)}),d&&this.PubSub.publish("callback",{items:this.getSelection()}),this.getSelection()}},{key:"setSelection",value:function(n){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.clearSelection(),this.addSelection(n,g,d),this.getSelection()}},{key:"clearSelection",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.SelectedSet.clear(),n&&this.PubSub.publish("callback",{items:this.getSelection()}),this.getSelection()}},{key:"addSelectables",value:function(n){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=Ee(n);return this.SelectableSet.addAll(d),g&&this.SelectedSet.addAll(d),n}},{key:"setSelectables",value:function(n){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.removeSelectables(n,g),this.addSelectables(n,d)}},{key:"removeSelectables",value:function(n){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.SelectableSet.deleteAll(Ee(n)),g&&this.removeSelection(n),n}},{key:"getCursorPositionDifference",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;console.warn("[DragSelect] Using .getCursorPositionDifference is deprecated. Calculate yourself instead. i.e. `.getCurrentCursorPosition().x - .getInitialCursorPosition().x`");var d=g?this.getCurrentCursorPositionArea():this.getCurrentCursorPosition(),w=n?g?this.getPreviousCursorPositionArea():this.getPreviousCursorPosition():g?this.getInitialCursorPositionArea():this.getInitialCursorPosition();return I(d,"-",w)}}]),h}();return Ml})})(vt);const Zr=vt.exports,Qr=(i,t,r,o,s)=>(t=Math,r=t.log,o=1024,s=r(i)/r(o)|0,i/t.pow(o,s)).toFixed(0)+" "+(s?"KMGTPEZY"[--s]+"iB":"B"),en=(i,t="en-US")=>new Date(i*1e3).toLocaleString(t),tn={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},rn=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1)],nn={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},on=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"},null,-1)],ze=Object.assign({name:"VFSortIcon"},{props:{direction:String},setup(i){return(t,r)=>(e.openBlock(),e.createElementBlock("div",null,[i.direction=="down"?(e.openBlock(),e.createElementBlock("svg",tn,rn)):e.createCommentVNode("",!0),i.direction=="up"?(e.openBlock(),e.createElementBlock("svg",nn,on)):e.createCommentVNode("",!0)]))}}),an=["onClick"],sn=Object.assign({name:"VFToast.vue"},{setup(i){const t=e.inject("emitter"),{getStore:r}=e.inject("storage"),o=e.ref(r("full-screen",!1)),s=p=>p=="error"?"text-red-400 border-red-400":"text-lime-600 border-lime-600",a=e.ref([]),l=p=>{a.value.splice(p,1)},m=p=>{let f=a.value.findIndex(u=>u.id===p);f!==-1&&l(f)};return t.on("vf-toast-clear",()=>{a.value=[]}),t.on("vf-toast-push",p=>{let f=new Date().getTime().toString(36).concat(performance.now().toString(),Math.random().toString()).replace(/\./g,"");p.id=f,a.value.push(p),setTimeout(()=>{m(f)},5e3)}),(p,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([o.value.value?"fixed":"absolute","bottom-0 max-w-fit flex flex-col bottom-0 left-1/2 -translate-x-1/2"])},[e.createVNode(e.TransitionGroup,{name:"vf-toast-item","leave-active-class":"transition-all duration-1000","leave-to-class":"opacity-0"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(u,y)=>(e.openBlock(),e.createElementBlock("div",{onClick:b=>l(y),key:u,class:e.normalizeClass([s(u.type),"inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 border text-xs rounded cursor-pointer"])},e.toDisplayString(u.label),11,an))),128))]),_:1})],2))}}),pe=i=>Object.entries(i).map(t=>t.map(encodeURIComponent).join("=")).join("&"),{apiUrl:ln}=ie(),Ze=(i,t)=>ln.value+"?"+pe({q:"preview",adapter:i,path:t}),cn={class:"relative flex-auto flex flex-col overflow-hidden"},dn={key:0,class:"grid grid-cols-12 border-b border-neutral-300 border-gray-200 dark:border-gray-700 text-xs select-none"},hn={class:"absolute"},un=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"absolute h-6 w-6 md:h-12 md:w-12 m-auto stroke-neutral-500 fill-white dark:fill-gray-700 dark:stroke-gray-600 z-10",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})],-1),mn={class:"text-neutral-700 dark:text-neutral-300 p-1 absolute text-center top-4 right-[-2rem] md:top-5 md:right-[-2.4rem] z-20 text-xs"},fn=["onDblclick","onTouchstart","onContextmenu","data-type","data-item","data-index"],pn={class:"grid grid-cols-12 items-center"},gn={class:"flex col-span-7 items-center"},yn={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},bn=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1)],wn={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},vn=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1)],kn={class:"overflow-ellipsis overflow-hidden whitespace-nowrap"},_n={class:"col-span-5 overflow-ellipsis overflow-hidden whitespace-nowrap"},xn=["onDblclick","onTouchstart","onContextmenu","onDragstart","onDragover","onDrop","data-type","data-item","data-index"],Sn={class:"grid grid-cols-12 items-center"},Dn={class:"flex col-span-7 items-center"},En={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Nn=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1)],Vn={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Cn=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1)],$n={class:"overflow-ellipsis overflow-hidden whitespace-nowrap"},Mn={class:"col-span-2 text-center"},Bn={class:"col-span-3 overflow-ellipsis overflow-hidden whitespace-nowrap"},Tn=["onDblclick","onTouchstart","onContextmenu","onDragstart","onDragover","onDrop","data-type","data-item","data-index"],An={class:"relative"},On={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-10 w-10 md:h-12 md:w-12 m-auto fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},jn=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1)],Pn=["src"],Ln={key:2,xmlns:"http://www.w3.org/2000/svg",class:"h-10 w-10 md:h-12 md:w-12 m-auto text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},In=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1)],zn={key:3,class:"absolute hidden md:block top-1/2 w-full text-center text-neutral-500"},Rn={class:"break-all"},Hn=Object.assign({name:"VFExplorer"},{props:{view:String,data:Object,search:Object},setup(i){const t=i,r=e.inject("emitter"),{setStore:o,getStore:s}=e.inject("storage"),a=B=>B==null?void 0:B.substring(0,3),l=B=>B.replace(/((?=([\w\W]{0,14}))([\w\W]{8,})([\w\W]{8,}))/,"$2..$4"),m=e.ref(null),p=e.ref(null),f=e.ref(0),u=e.ref(null),{t:y}=e.inject("i18n"),b=Math.floor(Math.random()*2**32),E=e.ref(s("full-screen",!1));r.on("vf-fullscreen-toggle",()=>{E.value=!E.value,o("full-screen",E.value)});const k=e.ref("");r.on("vf-search-query",({newQuery:B})=>{k.value=B,B?r.emit("vf-fetch",{params:{q:"search",adapter:t.data.adapter,path:t.data.dirname,filter:B},onSuccess:O=>{O.files.length||r.emit("vf-toast-push",{label:y("No search result found.")})}}):r.emit("vf-fetch",{params:{q:"index",adapter:t.data.adapter,path:t.data.dirname}})});let S=null;const M=()=>{S&&clearTimeout(S)},R=B=>{S=setTimeout(()=>{A(B)},500)},A=B=>{B.type=="dir"?(r.emit("vf-search-exit"),r.emit("vf-fetch",{params:{q:"index",adapter:t.data.adapter,path:B.path}})):r.emit("vf-modal-show",{type:"preview",adapter:t.data.adapter,item:B})},N=e.reactive({active:!1,column:"",order:""}),P=(B=!0)=>{let O=[...t.data.files],$=N.column,I=N.order=="asc"?1:-1;if(!B)return O;const j=(G,W)=>typeof G=="string"&&typeof W=="string"?G.toLowerCase().localeCompare(W.toLowerCase()):G<W?-1:G>W?1:0;return N.active&&(O=O.slice().sort((G,W)=>j(G[$],W[$])*I)),O},H=B=>{N.active&&N.column==B?(N.active=N.order=="asc",N.column=B,N.order="desc"):(N.active=!0,N.column=B,N.order="asc")},x=()=>u.value.getSelection().map(B=>JSON.parse(B.dataset.item)),U=(B,O)=>{if(B.altKey||B.ctrlKey||B.metaKey)return B.preventDefault(),!1;B.dataTransfer.setDragImage(p.value,0,15),B.dataTransfer.effectAllowed="all",B.dataTransfer.dropEffect="copy",B.dataTransfer.setData("items",JSON.stringify(x()))},Y=(B,O)=>{B.preventDefault();let $=JSON.parse(B.dataTransfer.getData("items"));if($.find(I=>I.storage!=s("adapter","local"))){alert("Moving items between different storages is not supported yet.");return}r.emit("vf-modal-show",{type:"move",items:{from:$,to:O}})},Q=(B,O)=>{B.preventDefault(),!O||O.type!=="dir"||u.value.getSelection().find($=>$==B.currentTarget)?(B.dataTransfer.dropEffect="none",B.dataTransfer.effectAllowed="none"):B.dataTransfer.dropEffect="copy"},re=()=>{u.value=new Zr({area:m.value,keyboardDrag:!1,selectedClass:"vf-explorer-selected",selectorClass:"vf-explorer-selector"}),r.on("vf-explorer-update",()=>e.nextTick(()=>{u.value.clearSelection(),u.value.setSelectables(document.getElementsByClassName("vf-item-"+b))})),u.value.subscribe("predragstart",({event:B,isDragging:O})=>{if(O)f.value=u.value.getSelection().length,u.value.break();else{const $=B.target.offsetWidth-B.offsetX,I=B.target.offsetHeight-B.offsetY;$<15&&I<15&&(u.value.clearSelection(),u.value.break())}}),u.value.subscribe("predragmove",({isDragging:B})=>{B&&u.value.break()}),u.value.subscribe("callback",({items:B,event:O,isDragging:$})=>{r.emit("vf-nodes-selected",x()),f.value=u.value.getSelection().length})};return e.onMounted(re),e.onUpdated(()=>{u.value.setSelection(u.value.getSelection())}),e.onMounted(()=>{e.watch(()=>t.view,()=>r.emit("vf-explorer-update"))}),(B,O)=>(e.openBlock(),e.createElementBlock("div",cn,[i.view=="list"||k.value.length?(e.openBlock(),e.createElementBlock("div",dn,[e.createElementVNode("div",{onClick:O[0]||(O[0]=$=>H("basename")),class:"col-span-7 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center pl-1"},[e.createTextVNode(e.toDisplayString(e.unref(y)("Name"))+" ",1),e.withDirectives(e.createVNode(ze,{direction:N.order=="asc"?"down":"up"},null,8,["direction"]),[[e.vShow,N.active&&N.column=="basename"]])]),k.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:O[1]||(O[1]=$=>H("file_size")),class:"col-span-2 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center border-l border-r dark:border-gray-700"},[e.createTextVNode(e.toDisplayString(e.unref(y)("Size"))+" ",1),e.withDirectives(e.createVNode(ze,{direction:N.order=="asc"?"down":"up"},null,8,["direction"]),[[e.vShow,N.active&&N.column=="file_size"]])])),k.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:O[2]||(O[2]=$=>H("last_modified")),class:"col-span-3 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center"},[e.createTextVNode(e.toDisplayString(e.unref(y)("Date"))+" ",1),e.withDirectives(e.createVNode(ze,{direction:N.order=="asc"?"down":"up"},null,8,["direction"]),[[e.vShow,N.active&&N.column=="last_modified"]])])),k.value.length?(e.openBlock(),e.createElementBlock("div",{key:2,onClick:O[3]||(O[3]=$=>H("path")),class:"col-span-5 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center border-l dark:border-gray-700"},[e.createTextVNode(e.toDisplayString(e.unref(y)("Filepath"))+" ",1),e.withDirectives(e.createVNode(ze,{direction:N.order=="asc"?"down":"up"},null,8,["direction"]),[[e.vShow,N.active&&N.column=="path"]])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",hn,[e.createElementVNode("div",{ref_key:"dragImage",ref:p,class:"absolute -z-50 -top-96"},[un,e.createElementVNode("div",mn,e.toDisplayString(f.value),1)],512)]),e.createElementVNode("div",{class:e.normalizeClass([E.value?"":"resize-y","h-full w-full text-xs vf-selector-area min-h-[150px] overflow-auto p-1 z-0"]),ref_key:"selectorArea",ref:m,onContextmenu:O[7]||(O[7]=e.withModifiers($=>e.unref(r).emit("vf-contextmenu-show",{event:$,area:m.value,items:x()}),["self","prevent"]))},[k.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(P(),($,I)=>(e.openBlock(),e.createElementBlock("div",{onDblclick:j=>A($),onTouchstart:j=>R($),onTouchend:O[4]||(O[4]=j=>M()),onContextmenu:e.withModifiers(j=>e.unref(r).emit("vf-contextmenu-show",{event:j,area:m.value,items:x(),target:$}),["prevent"]),class:e.normalizeClass(["vf-item-"+e.unref(b),"grid grid-cols-1 border hover:bg-neutral-50 dark:hover:bg-gray-700 border-transparent my-0.5 w-full select-none"]),"data-type":$.type,"data-item":JSON.stringify($),"data-index":I},[e.createElementVNode("div",pn,[e.createElementVNode("div",gn,[$.type=="dir"?(e.openBlock(),e.createElementBlock("svg",yn,bn)):(e.openBlock(),e.createElementBlock("svg",wn,vn)),e.createElementVNode("span",kn,e.toDisplayString($.basename),1)]),e.createElementVNode("div",_n,e.toDisplayString($.path),1)])],42,fn))),256)):e.createCommentVNode("",!0),i.view=="list"&&!k.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(P(),($,I)=>(e.openBlock(),e.createElementBlock("div",{draggable:"true",onDblclick:j=>A($),onTouchstart:j=>R($),onTouchend:O[5]||(O[5]=j=>M()),onContextmenu:e.withModifiers(j=>e.unref(r).emit("vf-contextmenu-show",{event:j,area:m.value,items:x(),target:$}),["prevent"]),onDragstart:j=>U(j),onDragover:j=>Q(j,$),onDrop:j=>Y(j,$),class:e.normalizeClass(["vf-item-"+e.unref(b),"grid grid-cols-1 border hover:bg-neutral-50 dark:hover:bg-gray-700 border-transparent my-0.5 w-full select-none"]),"data-type":$.type,"data-item":JSON.stringify($),"data-index":I},[e.createElementVNode("div",Sn,[e.createElementVNode("div",Dn,[$.type=="dir"?(e.openBlock(),e.createElementBlock("svg",En,Nn)):(e.openBlock(),e.createElementBlock("svg",Vn,Cn)),e.createElementVNode("span",$n,e.toDisplayString($.basename),1)]),e.createElementVNode("div",Mn,e.toDisplayString($.file_size?e.unref(Qr)($.file_size):""),1),e.createElementVNode("div",Bn,e.toDisplayString(e.unref(en)($.last_modified)),1)])],42,xn))),256)):e.createCommentVNode("",!0),i.view=="grid"&&!k.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(P(!1),($,I)=>{var j,G;return e.openBlock(),e.createElementBlock("div",{draggable:"true",onDblclick:W=>A($),onTouchstart:W=>R($),onTouchend:O[6]||(O[6]=W=>M()),onContextmenu:e.withModifiers(W=>e.unref(r).emit("vf-contextmenu-show",{event:W,area:m.value,items:x(),target:$}),["prevent"]),onDragstart:W=>U(W),onDragover:W=>Q(W,$),onDrop:W=>Y(W,$),class:e.normalizeClass(["vf-item-"+e.unref(b),"border border-transparent hover:bg-neutral-50 m-0.5 dark:hover:bg-gray-700 inline-flex w-[5.5rem] h-20 md:w-24 md:h-24 text-center justify-center select-none"]),"data-type":$.type,"data-item":JSON.stringify($),"data-index":I},[e.createElementVNode("div",null,[e.createElementVNode("div",An,[$.type=="dir"?(e.openBlock(),e.createElementBlock("svg",On,jn)):((j=$.mime_type)!=null?j:"").startsWith("image")?(e.openBlock(),e.createElementBlock("img",{key:1,class:"h-10 md:h-12 m-auto",src:e.unref(Ze)(e.unref(s)("adapter",t.data.adapter),$.path),alt:""},null,8,Pn)):(e.openBlock(),e.createElementBlock("svg",Ln,In)),((G=$.mime_type)!=null?G:"").startsWith("image")?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",zn,e.toDisplayString(a($.extension)),1))]),e.createElementVNode("span",Rn,e.toDisplayString(l($.basename)),1)])],42,Tn)}),256)):e.createCommentVNode("",!0)],34),e.createVNode(sn)]))}}),Un={class:"p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none"},Fn={class:"flex leading-5 items-center"},Kn=["aria-label"],Yn=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"})],-1)],Wn=["value"],Xn={class:"ml-3"},qn={key:0},Gn={class:"ml-1"},Jn={class:"flex leading-5 items-center"},Zn={value:"",disabled:""},Qn=e.createElementVNode("option",{value:"tr"},"Turkish",-1),eo=e.createElementVNode("option",{value:"en"},"English",-1),to=e.createElementVNode("option",{value:"fr"},"French",-1),ro=["aria-label"],no=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 stroke-slate-500 cursor-pointer",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)],oo=Object.assign({name:"VFStatusbar"},{props:{data:Object},setup(i){var b;const t=i,r=e.inject("emitter"),{getStore:o,setStore:s}=e.inject("storage"),a=e.ref(0),l=e.ref((b=o("adapter"))!=null?b:t.data.adapter),{t:m,changeLocale:p}=e.inject("i18n"),f=e.ref(o("locale","")),u=()=>{r.emit("vf-search-exit"),r.emit("vf-fetch",{params:{q:"index",adapter:l.value}}),s("adapter",l.value)};r.on("vf-nodes-selected",E=>{a.value=E.length});const y=e.ref("");return r.on("vf-search-query",({newQuery:E})=>{y.value=E}),(E,k)=>(e.openBlock(),e.createElementBlock("div",Un,[e.createElementVNode("div",Fn,[e.createElementVNode("div",{class:"mx-2","aria-label":e.unref(m)("Storage"),"data-microtip-position":"top-right",role:"tooltip"},Yn,8,Kn),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":k[0]||(k[0]=S=>l.value=S),onChange:u,class:"py-0.5 text-sm text-slate-500 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.data.storages,S=>(e.openBlock(),e.createElementBlock("option",{value:S},e.toDisplayString(S),9,Wn))),256))],544),[[e.vModelSelect,l.value]]),e.createElementVNode("div",Xn,[y.value.length?(e.openBlock(),e.createElementBlock("span",qn,e.toDisplayString(i.data.files.length)+" items found. ",1)):e.createCommentVNode("",!0),e.createElementVNode("span",Gn,e.toDisplayString(a.value>0?a.value+" "+e.unref(m)("item(s) selected."):""),1)])]),e.createElementVNode("div",Jn,[e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":k[1]||(k[1]=S=>f.value=S),onChange:k[2]||(k[2]=S=>e.unref(p)(S.target.value)),class:"py-0.5 text-sm text-slate-500 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8 mr-3"},[e.createElementVNode("option",Zn,e.toDisplayString(e.unref(m)("Language")),1),Qn,eo,to],544),[[e.vModelSelect,f.value]]),e.createElementVNode("span",{"aria-label":e.unref(m)("About"),"data-microtip-position":"top-left",role:"tooltip",onClick:k[3]||(k[3]=S=>e.unref(r).emit("vf-modal-show",{type:"message",title:"Vuefinder 1.0",message:e.unref(m)("Vuefinder is a file manager component for vue 3.")}))},no,8,ro)])]))}}),ao=(i,t=0,r=!1)=>{let o;return(...s)=>{r&&!o&&i(...s),clearTimeout(o),o=setTimeout(()=>{i(...s)},t)}},io=(i,t,r)=>{const o=e.ref(i);return e.customRef((a,l)=>({get(){return a(),o.value},set:ao(m=>{o.value=m,l()},t,r)}))},so={class:"flex p-1.5 bg-neutral-100 dark:bg-gray-800 border-t border-b border-neutral-300 dark:border-gray-700/50 items-center select-none text-xs"},lo=["aria-label"],co=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 9.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 7.414V15a1 1 0 11-2 0V7.414L6.707 9.707a1 1 0 01-1.414 0z","clip-rule":"evenodd"},null,-1)],ho={key:0,"aria-label":"Refresh","data-microtip-position":"bottom-right",role:"tooltip"},uo=[e.createElementVNode("path",{d:"M463.5 224H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5z"},null,-1)],mo={key:1,"aria-label":"Cancel","data-microtip-position":"bottom-right",role:"tooltip"},fo=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"},null,-1)],po=["onClick"],go=[e.createElementVNode("path",{d:"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"},null,-1)],yo={class:"flex leading-5"},bo=e.createElementVNode("span",{class:"text-neutral-300 dark:text-gray-600 mx-0.5"},"/",-1),wo=["title","onClick"],vo={key:0,class:"animate-spin p-1 h-6 w-6 text-white ml-auto",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},ko=[e.createElementVNode("circle",{class:"opacity-25 stroke-blue-900 dark:stroke-blue-100",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)],_o={key:3,class:"flex bg-white dark:bg-gray-700 items-center rounded p-1 ml-2 w-full"},xo=e.createElementVNode("svg",{class:"h-6 w-6 p-1 m-auto stroke-gray-400 fill-gray-100 dark:stroke-gray-400 dark:fill-gray-400/20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})],-1),So=["onKeydown","placeholder"],Do=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"},null,-1)],Eo=Object.assign({name:"VFBreadcrumb"},{props:{data:Object},setup(i){const t=i,r=e.inject("emitter"),{getStore:o}=e.inject("storage"),s=e.ref(null),a=e.ref([]),l=e.ref(!1),m=e.ref(null),{t:p}=e.inject("i18n"),f=e.inject("loadingState");r.on("vf-explorer-update",()=>{var P;let A=[],N=[];s.value=(P=t.data.dirname)!=null?P:o("adapter","local")+"://",s.value.length==0&&(a.value=[]),s.value.replace(o("adapter","local")+"://","").split("/").forEach(function(H){A.push(H),A.join("/")!=""&&N.push({basename:H,name:H,path:o("adapter","local")+"://"+A.join("/"),type:"dir"})}),N.length>4&&(N=N.slice(-5),N[0].name=".."),a.value=N});const u=()=>{l.value=!1,b.value=""};r.on("vf-search-exit",()=>{u()});const y=()=>{l.value=!0,e.nextTick(()=>m.value.focus())},b=io("",400),E=()=>f.value;e.watch(b,A=>{r.emit("vf-toast-clear"),r.emit("vf-search-query",{newQuery:A})});const k=()=>a.value.length&&!l.value,S=A=>{var P;A.preventDefault();let N=JSON.parse(A.dataTransfer.getData("items"));if(N.find(H=>H.storage!=o("adapter","local"))){alert("Moving items between different storages is not supported yet.");return}r.emit("vf-modal-show",{type:"move",items:{from:N,to:(P=a.value[a.value.length-2])!=null?P:{path:o("adapter","local")+"://"}}})},M=A=>{A.preventDefault(),k()?A.dataTransfer.dropEffect="copy":(A.dataTransfer.dropEffect="none",A.dataTransfer.effectAllowed="none")},R=()=>{b.value==""&&u()};return(A,N)=>(e.openBlock(),e.createElementBlock("div",so,[e.createElementVNode("span",{"aria-label":e.unref(p)("Go up a directory"),"data-microtip-position":"bottom-right",role:"tooltip"},[(e.openBlock(),e.createElementBlock("svg",{onDragover:N[0]||(N[0]=P=>M(P)),onDrop:N[1]||(N[1]=P=>S(P)),onClick:N[2]||(N[2]=P=>{var H,x;return!k()||e.unref(r).emit("vf-fetch",{params:{q:"index",adapter:i.data.adapter,path:(x=(H=a.value[a.value.length-2])==null?void 0:H.path)!=null?x:e.unref(o)("adapter","local")+"://"}})}),class:e.normalizeClass(["h-6 w-6 p-0.5 rounded",k()?"text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer":"text-gray-400 dark:text-neutral-500"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},co,34))],8,lo),E()?(e.openBlock(),e.createElementBlock("span",mo,[(e.openBlock(),e.createElementBlock("svg",{onClick:N[4]||(N[4]=P=>e.unref(r).emit("vf-fetch-abort")),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer"},fo))])):(e.openBlock(),e.createElementBlock("span",ho,[(e.openBlock(),e.createElementBlock("svg",{onClick:N[3]||(N[3]=P=>{e.unref(r).emit("vf-fetch",{params:{q:"index",adapter:i.data.adapter,path:i.data.dirname}})}),class:"h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer",xmlns:"http://www.w3.org/2000/svg",viewBox:"-40 -40 580 580",fill:"currentColor"},uo))])),l.value?(e.openBlock(),e.createElementBlock("div",_o,[xo,e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:m,onKeydown:e.withKeys(u,["esc"]),onBlur:R,"onUpdate:modelValue":N[6]||(N[6]=P=>e.isRef(b)?b.value=P:null),placeholder:e.unref(p)("Search anything.."),class:"py-0 px-2 w-full border-0 ring-0 outline-0 text-sm text-gray-600 focus:ring-transparent focus:border-transparent dark:focus:ring-transparent dark:focus:border-transparent dark:text-gray-300 bg-transparent",type:"text"},null,40,So),[[e.vModelText,e.unref(b)]]),(e.openBlock(),e.createElementBlock("svg",{class:"w-6 h-6 cursor-pointer",onClick:u,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Do))])):(e.openBlock(),e.createElementBlock("div",{key:2,class:"group flex bg-white dark:bg-gray-700 items-center rounded p-1 ml-2 w-full",onClick:e.withModifiers(y,["self"])},[(e.openBlock(),e.createElementBlock("svg",{onClick:N[5]||(N[5]=P=>e.unref(r).emit("vf-fetch",{params:{q:"index",adapter:i.data.adapter}})),class:"h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-gray-800 cursor-pointer",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},go)),e.createElementVNode("div",yo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(P,H)=>(e.openBlock(),e.createElementBlock("div",{key:H},[bo,e.createElementVNode("span",{class:"px-1.5 py-1 text-slate-700 dark:text-slate-200 hover:bg-neutral-100 dark:hover:bg-gray-800 rounded cursor-pointer",title:P.basename,onClick:x=>e.unref(r).emit("vf-fetch",{params:{q:"index",adapter:i.data.adapter,path:P.path}})},e.toDisplayString(P.name),9,wo)]))),128))]),E()?(e.openBlock(),e.createElementBlock("svg",vo,ko)):e.createCommentVNode("",!0)],8,po))]))}}),No=["onClick"],Vo=e.createElementVNode("span",{class:"px-1"},null,-1),Co=Object.assign({name:"VFContextMenu"},{props:{current:Object},setup(i){const t=i,r=e.inject("emitter"),o=e.ref(null),{apiUrl:s}=ie(),a=e.reactive({active:!1,items:[],positions:{left:0,top:0}}),l=e.ref([]);r.on("vf-context-selected",b=>{l.value=b});const{t:m}=e.inject("i18n"),p={newfolder:{title:()=>m("New Folder"),action:()=>{r.emit("vf-modal-show",{type:"new-folder"})}},delete:{title:()=>m("Delete"),action:()=>{r.emit("vf-modal-show",{type:"delete",items:l})}},refresh:{title:()=>m("Refresh"),action:()=>{r.emit("vf-fetch",{params:{q:"index",adapter:t.current.adapter,path:t.current.dirname}})}},preview:{title:()=>m("Preview"),action:()=>{r.emit("vf-modal-show",{type:"preview",adapter:t.current.adapter,item:l.value[0]})}},open:{title:()=>m("Open"),action:()=>{r.emit("vf-search-exit"),r.emit("vf-fetch",{params:{q:"index",adapter:t.current.adapter,path:l.value[0].path}})}},openDir:{title:()=>m("Open containing folder"),action:()=>{r.emit("vf-search-exit"),r.emit("vf-fetch",{params:{q:"index",adapter:t.current.adapter,path:l.value[0].dir}})}},download:{title:()=>m("Download"),action:()=>{const b=s.value+"?"+pe({q:"download",adapter:l.value[0].adapter,path:l.value[0].path});r.emit("vf-download",b)}},archive:{title:()=>m("Archive"),action:()=>{r.emit("vf-modal-show",{type:"archive",items:l})}},unarchive:{title:()=>m("Unarchive"),action:()=>{r.emit("vf-modal-show",{type:"unarchive",items:l})}},rename:{title:()=>m("Rename"),action:()=>{r.emit("vf-modal-show",{type:"rename",items:l})}}},f=b=>{r.emit("vf-contextmenu-hide"),b.action()},u=e.ref("");r.on("vf-search-query",({newQuery:b})=>{u.value=b}),r.on("vf-contextmenu-show",({event:b,area:E,items:k,target:S=null})=>{if(a.items=[],u.value)if(S)a.items.push(p.openDir),r.emit("vf-context-selected",[S]),console.log("search item selected");else return;else!S&&!u.value?(a.items.push(p.refresh),a.items.push(p.newfolder),r.emit("vf-context-selected",[]),console.log("no files selected")):k.length>1&&k.some(M=>M.path===S.path)?(a.items.push(p.refresh),a.items.push(p.archive),a.items.push(p.delete),r.emit("vf-context-selected",k),console.log(k.length+" selected (more than 1 item.)")):(S.type=="dir"?a.items.push(p.open):(a.items.push(p.preview),a.items.push(p.download)),a.items.push(p.rename),S.mime_type=="application/zip"?a.items.push(p.unarchive):a.items.push(p.archive),a.items.push(p.delete),r.emit("vf-context-selected",[S]),console.log(S.type+" is selected"));y(b,E)}),r.on("vf-contextmenu-hide",()=>{a.active=!1});const y=(b,E)=>{a.active=!0,e.nextTick(()=>{let k=E.getBoundingClientRect(),S=b.pageX,M=b.pageY,R=o.value.offsetHeight,A=o.value.offsetWidth;S=k.right-b.pageX+window.scrollX<A?S-A:S,M=k.bottom-b.pageY+window.scrollY<R?M-R:M,a.positions={left:S+"px",top:M+"px"}})};return(b,E)=>a.active?(e.openBlock(),e.createElementBlock("ul",{key:0,class:"z-30 absolute text-xs bg-neutral-50 dark:bg-gray-800 text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600 shadow rounded select-none",ref_key:"contextmenu",ref:o,style:e.normalizeStyle(a.positions)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,k=>(e.openBlock(),e.createElementBlock("li",{class:"px-2 py-1.5 cursor-pointer hover:bg-neutral-200 dark:hover:bg-gray-700",key:k.title,onClick:S=>f(k)},[Vo,e.createElementVNode("span",null,e.toDisplayString(k.title()),1)],8,No))),128))],4)):e.createCommentVNode("",!0)}}),$o=(i,t)=>{const r=i[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((o,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+t)))})};async function Mo(i){const t=await $o(Object.assign({"../locales/en.json":()=>Promise.resolve().then(()=>al),"../locales/tr.json":()=>Promise.resolve().then(()=>il)}),`../locales/${i}.json`);return JSON.parse(t.default)}function Bo(i,t){const{getStore:r,setStore:o}=Je(i),s=["en","tr"],a=e.ref({}),l=f=>{s.includes(f)||(console.log("The selected locale is not yet supported. The fallback language is set as 'en'"),f="en"),Mo(f).then(u=>{a.value=u,o("locale",f),o("translations",u),console.log(f+" is loaded.")})};r("locale")?a.value=r("translations"):l(t);const m=(f,...u)=>u.length?m(f=f.replace("%s",u.shift()),...u):f;function p(f,...u){return a.value.hasOwnProperty(f)?m(a.value[f],...u):f}return{t:p,support_locales:s,changeLocale:l}}const To=e.createElementVNode("iframe",{id:"download_frame",style:{display:"none"}},null,-1),Ao=Object.assign({name:"VueFinder"},{props:{url:{type:[String]},id:{type:String,default:"vf"},dark:{type:Boolean,default:!1},locale:{type:String,default:"en"},maxHeight:{type:String,default:"600px"},postData:{type:Object,default:{}}},setup(i){const t=i,r=br(),{setStore:o,getStore:s}=Je(t.id);e.provide("emitter",r),e.provide("storage",Je(t.id)),e.provide("postData",t.postData);const a=Bo(t.id,t.locale);e.provide("i18n",a);const{apiUrl:l,setApiUrl:m}=ie();m(t.url);const p=e.reactive({adapter:"local",storages:[],dirname:".",files:[]}),f=e.ref(s("viewport","grid")),u=e.ref(s("darkMode",t.dark));r.on("vf-darkMode-toggle",()=>{u.value=!u.value,o("darkMode",u.value)});const y=e.ref(!1);e.provide("loadingState",y);const b=e.ref(s("full-screen",!1));r.on("vf-fullscreen-toggle",()=>{b.value=!b.value,o("full-screen",b.value)}),r.on("vf-view-toggle",M=>{f.value=M});const E=e.reactive({active:!1,type:"delete",data:{}});r.on("vf-modal-close",()=>{E.active=!1}),r.on("vf-modal-show",M=>{E.active=!0,E.type=M.type,E.data=M});const k=M=>{Object.assign(p,M),r.emit("vf-nodes-selected",{}),r.emit("vf-explorer-update")};let S;return r.on("vf-fetch-abort",()=>{S.abort(),y.value=!1}),r.on("vf-fetch",({params:M,onSuccess:R=null,onError:A=null})=>{["index","search"].includes(M.q)&&(S&&S.abort(),y.value=!0),S=new AbortController;const N=S.signal;Ie(l.value,{params:M,signal:N}).then(P=>{["index","search"].includes(M.q)&&(y.value=!1),r.emit("vf-modal-close"),k(P),R(P)}).catch(P=>{A&&A(P)}).finally(()=>{})}),r.on("vf-download",M=>{document.getElementById("download_frame").src=M,r.emit("vf-modal-close")}),e.onMounted(()=>{r.emit("vf-fetch",{params:{q:"index",adapter:s("adapter",p.adapter)}})}),(M,R)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(u.value?"dark":"")},[e.createElementVNode("div",{class:e.normalizeClass([b.value?"fixed w-screen inset-0 z-20":"relative rounded-md","border flex flex-col bg-white dark:bg-gray-800 text-gray-700 dark:text-neutral-400 border-neutral-300 dark:border-gray-900 min-w-min select-none"]),style:e.normalizeStyle(b.value?"":"max-height: "+i.maxHeight),onMousedown:R[0]||(R[0]=A=>e.unref(r).emit("vf-contextmenu-hide"))},[e.createVNode(Gr,{data:p},null,8,["data"]),e.createVNode(Eo,{data:p},null,8,["data"]),e.createVNode(Hn,{view:f.value,data:p},null,8,["view","data"]),e.createVNode(oo,{data:p},null,8,["data"])],38),E.active?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("v-f-modal-"+E.type),{key:0,selection:E.data,current:p},null,8,["selection","current"])):e.createCommentVNode("",!0),e.createVNode(Co,{current:p},null,8,["current"]),To],2))}}),Oo=e.createElementVNode("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"},null,-1),jo={class:"fixed z-10 inset-0 overflow-y-auto"},Po={class:"relative bg-white dark:bg-gray-800 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl md:max-w-2xl lg:max-w-3xl xl:max-w-5xl sm:w-full"},Lo={class:"bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},Io={class:"bg-gray-50 dark:bg-gray-800 dark:border-t dark:border-gray-700 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},se={__name:"ModalLayout",setup(i){const t=e.inject("emitter");return e.onMounted(()=>{const r=document.querySelector(".v-f-modal input");r&&r.focus()}),(r,o)=>(e.openBlock(),e.createElementBlock("div",{class:"v-f-modal relative z-30","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",onKeyup:o[1]||(o[1]=e.withKeys(s=>e.unref(t).emit("vf-modal-close"),["esc"])),tabindex:"0"},[Oo,e.createElementVNode("div",jo,[e.createElementVNode("div",{class:"flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0",onMousedown:o[0]||(o[0]=e.withModifiers(s=>e.unref(t).emit("vf-modal-close"),["self"]))},[e.createElementVNode("div",Po,[e.createElementVNode("div",Lo,[e.renderSlot(r.$slots,"default")]),e.createElementVNode("div",Io,[e.renderSlot(r.$slots,"buttons")])])],32)])],32))}},zo=["aria-label"],Ro=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5 h-5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)],le=Object.assign({name:"Message"},{props:{error:{type:Boolean,default:!1}},setup(i){var l;const{t}=e.inject("i18n"),r=e.ref(!1),o=e.ref(null),s=e.ref((l=o.value)==null?void 0:l.strMessage);e.watch(s,()=>r.value=!1);const a=()=>r.value=!0;return(m,p)=>(e.openBlock(),e.createElementBlock("div",null,[r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"strMessage",ref:o,class:e.normalizeClass(["flex mt-1 p-1 px-2 rounded text-sm",i.error?"bg-red-100 text-red-600":"bg-emerald-100 text-emerald-600"])},[e.renderSlot(m.$slots,"default"),e.createElementVNode("div",{class:"ml-auto cursor-pointer",onClick:a,"aria-label":e.unref(t)("Close"),"data-microtip-position":"top-left",role:"tooltip"},Ro,8,zo)],2))]))}}),Ho={class:"sm:flex sm:items-start"},Uo=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-red-600 dark:stroke-red-200",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})])],-1),Fo={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},Ko={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},Yo={class:"mt-2"},Wo={class:"text-sm text-gray-500"},Xo={class:"flex text-sm text-gray-800 dark:text-gray-400"},qo={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Go=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1)],Jo={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Zo=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1)],Qo={class:"ml-1.5"},ea={class:"m-auto font-bold text-red-500 text-sm dark:text-red-200 text-center"},ta=Object.assign({name:"VFModalDelete"},{props:{selection:Object,current:Object},setup(i){const t=i,r=e.inject("emitter"),{getStore:o}=e.inject("storage"),{t:s}=e.inject("i18n"),a=e.ref(t.selection.items),l=e.ref(""),m=()=>{a.value.length&&r.emit("vf-fetch",{params:{q:"delete",adapter:o("adapter","local"),path:t.current.dirname,items:JSON.stringify(a.value.map(({path:p,type:f})=>({path:p,type:f})))},onSuccess:()=>{r.emit("vf-toast-push",{label:s("Files deleted.")})},onError:p=>{l.value=s(p.message)}})};return(p,f)=>(e.openBlock(),e.createBlock(se,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:m,class:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(s)("Yes, Delete!")),1),e.createElementVNode("button",{type:"button",onClick:f[0]||(f[0]=u=>e.unref(r).emit("vf-modal-close")),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(s)("Cancel")),1),e.createElementVNode("div",ea,e.toDisplayString(e.unref(s)("This action cannot be undone.")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",Ho,[Uo,e.createElementVNode("div",Fo,[e.createElementVNode("h3",Ko,e.toDisplayString(e.unref(s)("Delete files")),1),e.createElementVNode("div",Yo,[e.createElementVNode("p",Wo,e.toDisplayString(e.unref(s)("Are you sure you want to delete these files?")),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,u=>(e.openBlock(),e.createElementBlock("p",Xo,[u.type=="dir"?(e.openBlock(),e.createElementBlock("svg",qo,Go)):(e.openBlock(),e.createElementBlock("svg",Jo,Zo)),e.createElementVNode("span",Qo,e.toDisplayString(u.basename),1)]))),256)),l.value.length?(e.openBlock(),e.createBlock(le,{key:0,error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),ra={class:"sm:flex sm:items-start"},na=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1),oa={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},aa={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},ia={class:"mt-2"},sa={class:"text-sm text-gray-500"},la=Object.assign({name:"VFModalMessage"},{props:{selection:Object},setup(i){const t=e.inject("emitter"),{t:r}=e.inject("i18n");return(o,s)=>(e.openBlock(),e.createBlock(se,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:s[0]||(s[0]=a=>e.unref(t).emit("vf-modal-close")),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(r)("Close")),1)]),default:e.withCtx(()=>{var a,l,m,p;return[e.createElementVNode("div",ra,[na,e.createElementVNode("div",oa,[e.createElementVNode("h3",aa,e.toDisplayString((l=(a=i.selection)==null?void 0:a.title)!=null?l:"Title"),1),e.createElementVNode("div",ia,[e.createElementVNode("p",sa,e.toDisplayString((p=(m=i.selection)==null?void 0:m.message)!=null?p:"Message")+".",1)])])])]}),_:1}))}}),ca={class:"sm:flex sm:items-start"},da=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"})])],-1),ha={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},ua={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},ma={class:"mt-2"},fa={class:"text-sm text-gray-500"},pa=["onKeyup","placeholder"],ga=Object.assign({name:"VFModalNewFolder"},{props:{selection:Object,current:Object},setup(i){const t=i,r=e.inject("emitter"),{getStore:o}=e.inject("storage"),{t:s}=e.inject("i18n"),a=e.ref(""),l=e.ref(""),m=()=>{a.value!=""&&r.emit("vf-fetch",{params:{q:"newfolder",adapter:o("adapter","local"),path:t.current.dirname,name:a.value},onSuccess:()=>{r.emit("vf-toast-push",{label:s("%s is created.",a.value)})},onError:p=>{l.value=s(p.message)}})};return(p,f)=>(e.openBlock(),e.createBlock(se,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:m,class:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(s)("Create")),1),e.createElementVNode("button",{type:"button",onClick:f[1]||(f[1]=u=>e.unref(r).emit("vf-modal-close")),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(s)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",ca,[da,e.createElementVNode("div",ha,[e.createElementVNode("h3",ua,e.toDisplayString(e.unref(s)("New Folder")),1),e.createElementVNode("div",ma,[e.createElementVNode("p",fa,e.toDisplayString(e.unref(s)("Create a new folder")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=u=>a.value=u),onKeyup:e.withKeys(m,["enter"]),class:"px-2 py-1 border rounded dark:bg-gray-500 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",placeholder:e.unref(s)("Folder Name"),type:"text"},null,40,pa),[[e.vModelText,a.value]]),l.value.length?(e.openBlock(),e.createBlock(le,{key:0,error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),ya={class:"sm:flex sm:items-start"},ba=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})])],-1),wa={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},va={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},ka={class:"mt-2"},_a={class:"text-sm text-gray-500"},xa=["onKeyup","placeholder"],Sa=Object.assign({name:"VFModalNewFile"},{props:{selection:Object,current:Object},setup(i){const t=i,r=e.inject("emitter"),{getStore:o}=e.inject("storage"),{t:s}=e.inject("i18n"),a=e.ref(""),l=e.ref(""),m=()=>{a.value!=""&&r.emit("vf-fetch",{params:{q:"newfile",adapter:o("adapter","local"),path:t.current.dirname,name:a.value},onSuccess:()=>{r.emit("vf-toast-push",{label:s("%s is created.",a.value)})},onError:p=>{l.value=s(p.message)}})};return(p,f)=>(e.openBlock(),e.createBlock(se,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:m,class:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"},"Create!"),e.createElementVNode("button",{type:"button",onClick:f[1]||(f[1]=u=>e.unref(r).emit("vf-modal-close")),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},"Cancel")]),default:e.withCtx(()=>[e.createElementVNode("div",ya,[ba,e.createElementVNode("div",wa,[e.createElementVNode("h3",va,e.toDisplayString(e.unref(s)("New File")),1),e.createElementVNode("div",ka,[e.createElementVNode("p",_a,e.toDisplayString(e.unref(s)("Create a new file")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=u=>a.value=u),onKeyup:e.withKeys(m,["enter"]),class:"px-2 py-1 border rounded dark:bg-gray-500 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",placeholder:e.unref(s)("File Name"),type:"text"},null,40,xa),[[e.vModelText,a.value]]),l.value.length?(e.openBlock(),e.createBlock(le,{key:0,error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),Da={class:"flex"},Ea={class:"mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},Na={class:"ml-auto mb-2"},Va={key:0,class:"p-2 border font-normal whitespace-pre-wrap border-gray-200 dark:border-gray-700/50 dark:text-gray-200 rounded min-h-[200px] max-h-[60vh] text-xs overflow-auto"},Ca={key:1},$a={__name:"Text",props:{selection:Object},emits:["load"],setup(i,{emit:t}){const r=i,o=e.ref(""),s=e.ref(""),a=e.ref(null),l=e.ref(!1),{apiUrl:m}=ie(),p=e.ref(""),f=e.ref(!1),{t:u}=e.inject("i18n");e.onMounted(()=>{Ie(m.value,{params:{q:"preview",adapter:r.selection.adapter,path:r.selection.item.path},json:!1}).then(k=>{o.value=k,t("load")})});const y=()=>{l.value=!l.value,s.value=o.value,l.value==!0&&e.nextTick(()=>{a.value.focus()})},b=e.inject("postData"),E=()=>{p.value="",f.value=!1,Ie(m.value,{method:"POST",params:Object.assign(b,{q:"save",adapter:r.selection.adapter,path:r.selection.item.path,content:s.value}),json:!1}).then(k=>{p.value=u("Updated."),o.value=k,t("load"),l.value=!l.value}).catch(k=>{p.value=u(k.message),f.value=!0})};return(k,S)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Da,[e.createElementVNode("div",Ea,e.toDisplayString(i.selection.item.basename),1),e.createElementVNode("div",Na,[l.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:E,class:"ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(u)("Save")),1)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"ml-1 px-2 py-1 text-blue-500",onClick:S[0]||(S[0]=M=>y())},e.toDisplayString(l.value?e.unref(u)("Cancel"):e.unref(u)("Edit")),1)])]),e.createElementVNode("div",null,[l.value?(e.openBlock(),e.createElementBlock("div",Ca,[e.withDirectives(e.createElementVNode("textarea",{ref_key:"editInput",ref:a,"onUpdate:modelValue":S[1]||(S[1]=M=>s.value=M),class:"w-full p-2 rounded dark:bg-gray-700 dark:text-gray-200 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:selection:bg-gray-500 min-h-[200px] text-xs",name:"text",id:"",cols:"30",rows:"10"},null,512),[[e.vModelText,s.value]])])):(e.openBlock(),e.createElementBlock("pre",Va,e.toDisplayString(o.value),1)),p.value.length?(e.openBlock(),e.createBlock(le,{key:2,error:f.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value),1)]),_:1},8,["error"])):e.createCommentVNode("",!0)])],64))}},Lc="";/*!
4
4
  * Cropper.js v1.5.12
5
5
  * https://fengyuanchen.github.io/cropperjs
6
6
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vuefinder",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Vuefinder is a file manager component for vuejs.",
5
5
  "type": "module",
6
6
  "files": [