From d6024244e50bccc6eecbed36a34b82e7499cf819 Mon Sep 17 00:00:00 2001 From: mikaelpopowicz Date: Thu, 31 Aug 2023 10:27:15 +0000 Subject: [PATCH] build(bot): build tool assets --- dist/js/tool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/js/tool.js b/dist/js/tool.js index 5436e8bf..dc99771c 100644 --- a/dist/js/tool.js +++ b/dist/js/tool.js @@ -4,7 +4,7 @@ * @license MIT */let fs;const ka=e=>fs=e,ps=Symbol();function Cr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Mo;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Mo||(Mo={}));function Wd(){const e=n.effectScope(!0),t=e.run(()=>n.ref({}));let o=[],a=[];const r=n.markRaw({install(s){ka(r),r._a=s,s.provide(ps,r),s.config.globalProperties.$pinia=r,a.forEach(i=>o.push(i)),a=[]},use(s){return!this._a&&!Po?a.push(s):o.push(s),this},_p:o,_a:null,_e:e,_s:new Map,state:t});return r}const hs=()=>{};function ms(e,t,o,a=hs){e.push(t);const r=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),a())};return!o&&n.getCurrentScope()&&n.onScopeDispose(r),r}function io(e,...t){e.slice().forEach(o=>{o(...t)})}function kr(e,t){e instanceof Map&&t instanceof Map&&t.forEach((o,a)=>e.set(a,o)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){if(!t.hasOwnProperty(o))continue;const a=t[o],r=e[o];Cr(r)&&Cr(a)&&e.hasOwnProperty(o)&&!n.isRef(a)&&!n.isReactive(a)?e[o]=kr(r,a):e[o]=a}return e}const Xd=Symbol();function Kd(e){return!Cr(e)||!e.hasOwnProperty(Xd)}const{assign:hn}=Object;function Yd(e){return!!(n.isRef(e)&&e.effect)}function Jd(e,t,o,a){const{state:r,actions:s,getters:i}=t,l=o.state.value[e];let c;function d(){l||(o.state.value[e]=r?r():{});const u=n.toRefs(o.state.value[e]);return hn(u,s,Object.keys(i||{}).reduce((p,m)=>(p[m]=n.markRaw(n.computed(()=>{ka(o);const v=o._s.get(e);return i[m].call(v,v)})),p),{}))}return c=vs(e,d,t,o,a,!0),c}function vs(e,t,o={},a,r,s){let i;const l=hn({actions:{}},o),c={deep:!0};let d,u,p=n.markRaw([]),m=n.markRaw([]),v;const f=a.state.value[e];!s&&!f&&(a.state.value[e]={}),n.ref({});let h;function y(F){let A;d=u=!1,typeof F=="function"?(F(a.state.value[e]),A={type:Mo.patchFunction,storeId:e,events:v}):(kr(a.state.value[e],F),A={type:Mo.patchObject,payload:F,storeId:e,events:v});const D=h=Symbol();n.nextTick().then(()=>{h===D&&(d=!0)}),u=!0,io(p,A,a.state.value[e])}const b=s?function(){const{state:A}=o,D=A?A():{};this.$patch(M=>{hn(M,D)})}:hs;function g(){i.stop(),p=[],m=[],a._s.delete(e)}function k(F,A){return function(){ka(a);const D=Array.from(arguments),M=[],L=[];function W(Y){M.push(Y)}function _(Y){L.push(Y)}io(m,{args:D,name:F,store:S,after:W,onError:_});let G;try{G=A.apply(this&&this.$id===e?this:S,D)}catch(Y){throw io(L,Y),Y}return G instanceof Promise?G.then(Y=>(io(M,Y),Y)).catch(Y=>(io(L,Y),Promise.reject(Y))):(io(M,G),G)}}const O={_p:a,$id:e,$onAction:ms.bind(null,m),$patch:y,$reset:b,$subscribe(F,A={}){const D=ms(p,F,A.detached,()=>M()),M=i.run(()=>n.watch(()=>a.state.value[e],L=>{(A.flush==="sync"?u:d)&&F({storeId:e,type:Mo.direct,events:v},L)},hn({},c,A)));return D},$dispose:g},S=n.reactive(O);a._s.set(e,S);const N=a._e.run(()=>(i=n.effectScope(),i.run(()=>t())));for(const F in N){const A=N[F];if(n.isRef(A)&&!Yd(A)||n.isReactive(A))s||(f&&Kd(A)&&(n.isRef(A)?A.value=f[F]:kr(A,f[F])),a.state.value[e][F]=A);else if(typeof A=="function"){const D=k(F,A);N[F]=D,l.actions[F]=A}}return hn(S,N),hn(n.toRaw(S),N),Object.defineProperty(S,"$state",{get:()=>a.state.value[e],set:F=>{y(A=>{hn(A,F)})}}),a._p.forEach(F=>{hn(S,i.run(()=>F({store:S,app:a._a,pinia:a,options:l})))}),f&&s&&o.hydrate&&o.hydrate(S.$state,f),d=!0,u=!0,S}function Tr(e,t,o){let a,r;const s=typeof t=="function";typeof e=="string"?(a=e,r=s?o:t):(r=e,a=e.id);function i(l,c){const d=n.getCurrentInstance();return l=l||d&&n.inject(ps,null),l&&ka(l),l=fs,l._s.has(a)||(s?vs(a,t,r,l):Jd(a,r,l)),l._s.get(a)}return i.$id=a,i}function Qd(e,t){return Array.isArray(t)?t.reduce((o,a)=>(o[a]=function(){return e(this.$pinia)[a]},o),{}):Object.keys(t).reduce((o,a)=>(o[a]=function(){const r=e(this.$pinia),s=t[a];return typeof s=="function"?s.call(this,r):r[s]},o),{})}function Zd(e,t){return Array.isArray(t)?t.reduce((o,a)=>(o[a]=function(...r){return e(this.$pinia)[a](...r)},o),{}):Object.keys(t).reduce((o,a)=>(o[a]=function(...r){return e(this.$pinia)[t[a]](...r)},o),{})}function qd(e){{e=n.toRaw(e);const t={};for(const o in e){const a=e[o];(n.isRef(a)||n.isReactive(a))&&(t[o]=n.toRef(e,o))}return t}}const bS="";var so=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function eu(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var o=function a(){if(this instanceof a){var r=[null];r.push.apply(r,arguments);var s=Function.bind.apply(t,r);return new s}return t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(o,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),o}const{createElementVNode:tu,openBlock:nu,createElementBlock:ou}=n;var au=function(t,o){return nu(),ou("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[tu("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"})])};const{createElementVNode:ru,openBlock:iu,createElementBlock:su}=n;var lu=function(t,o){return iu(),su("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[ru("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})])};const{createElementVNode:cu,openBlock:du,createElementBlock:uu}=n;var fu=function(t,o){return du(),uu("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[cu("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"})])};const{createElementVNode:pu,openBlock:hu,createElementBlock:mu}=n;var vu=function(t,o){return hu(),mu("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[pu("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})])};const{createElementVNode:gu,openBlock:yu,createElementBlock:bu}=n;var Eu=function(t,o){return yu(),bu("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[gu("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})])};const{createElementVNode:wu,openBlock:xu,createElementBlock:Su}=n;var Ou=function(t,o){return xu(),Su("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[wu("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 00-3.375-3.375h-1.5a1.125 1.125 0 01-1.125-1.125v-1.5A3.375 3.375 0 006.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0015 2.25h-1.5a2.251 2.251 0 00-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 00-9-9z"})])};const{createElementVNode:Cu,openBlock:ku,createElementBlock:Tu}=n;var Nu=function(t,o){return ku(),Tu("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[Cu("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9.75v6.75m0 0l-3-3m3 3l3-3m-8.25 6a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"})])};const{createElementVNode:Du,openBlock:Iu,createElementBlock:Ru}=n;var Au=function(t,o){return Iu(),Ru("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[Du("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0l3 3m-3-3l-3 3M6.75 19.5a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"})])};const{createElementVNode:Bu,openBlock:Pu,createElementBlock:Mu}=n;var Fu=function(t,o){return Pu(),Mu("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[Bu("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 15a4.5 4.5 0 004.5 4.5H18a3.75 3.75 0 001.332-7.257 3 3 0 00-3.758-3.848 5.25 5.25 0 00-10.233 2.33A4.502 4.502 0 002.25 15z"})])};const{createElementVNode:_u,openBlock:Lu,createElementBlock:Vu}=n;var ju=function(t,o){return Lu(),Vu("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[_u("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.25m2.25 0H5.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"})])};const{createElementVNode:Uu,openBlock:Hu,createElementBlock:zu}=n;var Gu=function(t,o){return Hu(),zu("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[Uu("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"})])};const{createElementVNode:Wu,openBlock:Xu,createElementBlock:Ku}=n;var Yu=function(t,o){return Xu(),Ku("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[Wu("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})])};const{createElementVNode:Ju,openBlock:Qu,createElementBlock:Zu}=n;var qu=function(t,o){return Qu(),Zu("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[Ju("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"})])};const{createElementVNode:$u,openBlock:ef,createElementBlock:tf}=n;var nf=function(t,o){return ef(),tf("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[$u("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-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"})])};const{createElementVNode:of,openBlock:af,createElementBlock:rf}=n;var sf=function(t,o){return af(),rf("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[of("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])};const{createElementVNode:lf,openBlock:cf,createElementBlock:df}=n;var uf=function(t,o){return cf(),df("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[lf("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.712 4.33a9.027 9.027 0 011.652 1.306c.51.51.944 1.064 1.306 1.652M16.712 4.33l-3.448 4.138m3.448-4.138a9.014 9.014 0 00-9.424 0M19.67 7.288l-4.138 3.448m4.138-3.448a9.014 9.014 0 010 9.424m-4.138-5.976a3.736 3.736 0 00-.88-1.388 3.737 3.737 0 00-1.388-.88m2.268 2.268a3.765 3.765 0 010 2.528m-2.268-4.796a3.765 3.765 0 00-2.528 0m4.796 4.796c-.181.506-.475.982-.88 1.388a3.736 3.736 0 01-1.388.88m2.268-2.268l4.138 3.448m0 0a9.027 9.027 0 01-1.306 1.652c-.51.51-1.064.944-1.652 1.306m0 0l-3.448-4.138m3.448 4.138a9.014 9.014 0 01-9.424 0m5.976-4.138a3.765 3.765 0 01-2.528 0m0 0a3.736 3.736 0 01-1.388-.88 3.737 3.737 0 01-.88-1.388m2.268 2.268L7.288 19.67m0 0a9.024 9.024 0 01-1.652-1.306 9.027 9.027 0 01-1.306-1.652m0 0l4.138-3.448M4.33 16.712a9.014 9.014 0 010-9.424m4.138 5.976a3.765 3.765 0 010-2.528m0 0c.181-.506.475-.982.88-1.388a3.736 3.736 0 011.388-.88m-2.268 2.268L4.33 7.288m6.406 1.18L7.288 4.33m0 0a9.024 9.024 0 00-1.652 1.306A9.025 9.025 0 004.33 7.288"})])};const{createElementVNode:ff,openBlock:pf,createElementBlock:hf}=n;var mf=function(t,o){return pf(),hf("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[ff("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"})])};const{createElementVNode:vf,openBlock:gf,createElementBlock:yf}=n;var bf=function(t,o){return gf(),yf("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[vf("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"})])};const{createElementVNode:Ef,openBlock:wf,createElementBlock:xf}=n;var Sf=function(t,o){return wf(),xf("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[Ef("path",{"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"})])};const{createElementVNode:Of,openBlock:Cf,createElementBlock:kf}=n;var Tf=function(t,o){return Cf(),kf("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[Of("path",{"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"})])};const{createElementVNode:Nf,openBlock:Df,createElementBlock:If}=n;var Rf=function(t,o){return Df(),If("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[Nf("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"})])};const{createElementVNode:Af,openBlock:Bf,createElementBlock:Pf}=n;var Mf=function(t,o){return Bf(),Pf("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[Af("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])},Ff=au,_f=lu,Ta=fu,gs=vu,Nr=Eu,Lf=Ou,Vf=Nu,Dr=Au,jf=Fu,Fo=ju,ys=Gu,bs=Yu,Uf=qu,Ir=nf,Hf=sf,zf=uf,Gf=mf,Wf=bf,Xf=Sf,Kf=Tf,Es=Rf,Rr=Mf;const{createElementVNode:Yf,openBlock:Jf,createElementBlock:Qf}=n;var Zf=function(t,o){return Jf(),Qf("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[Yf("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z","clip-rule":"evenodd"})])};const{createElementVNode:qf,openBlock:$f,createElementBlock:ep}=n;var tp=function(t,o){return $f(),ep("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[qf("path",{"fill-rule":"evenodd",d:"M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z","clip-rule":"evenodd"})])};const{createElementVNode:np,openBlock:op,createElementBlock:ap}=n;var rp=function(t,o){return op(),ap("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[np("path",{"fill-rule":"evenodd",d:"M12.53 16.28a.75.75 0 01-1.06 0l-7.5-7.5a.75.75 0 011.06-1.06L12 14.69l6.97-6.97a.75.75 0 111.06 1.06l-7.5 7.5z","clip-rule":"evenodd"})])};const{createElementVNode:ip,openBlock:sp,createElementBlock:lp}=n;var cp=function(t,o){return sp(),lp("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[ip("path",{"fill-rule":"evenodd",d:"M7.72 12.53a.75.75 0 010-1.06l7.5-7.5a.75.75 0 111.06 1.06L9.31 12l6.97 6.97a.75.75 0 11-1.06 1.06l-7.5-7.5z","clip-rule":"evenodd"})])};const{createElementVNode:dp,openBlock:up,createElementBlock:fp}=n;var pp=function(t,o){return up(),fp("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[dp("path",{"fill-rule":"evenodd",d:"M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z","clip-rule":"evenodd"})])};const{createElementVNode:hp,openBlock:mp,createElementBlock:vp}=n;var gp=function(t,o){return mp(),vp("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[hp("path",{"fill-rule":"evenodd",d:"M4.5 12a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm6 0a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm6 0a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z","clip-rule":"evenodd"})])};const{createElementVNode:yp,openBlock:bp,createElementBlock:Ep}=n;var wp=function(t,o){return bp(),Ep("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[yp("path",{"fill-rule":"evenodd",d:"M10.5 6a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm0 6a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm0 6a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z","clip-rule":"evenodd"})])};const{createElementVNode:xp,openBlock:Sp,createElementBlock:Op}=n;var Cp=function(t,o){return Sp(),Op("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[xp("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"})])};const{createElementVNode:kp,openBlock:Tp,createElementBlock:Np}=n;var Dp=function(t,o){return Tp(),Np("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[kp("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"})])};const{createElementVNode:Ip,openBlock:Rp,createElementBlock:Ap}=n;var Bp=function(t,o){return Rp(),Ap("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[Ip("path",{"fill-rule":"evenodd",d:"M4.5 5.653c0-1.426 1.529-2.33 2.779-1.643l11.54 6.348c1.295.712 1.295 2.573 0 3.285L7.28 19.991c-1.25.687-2.779-.217-2.779-1.643V5.653z","clip-rule":"evenodd"})])};const{createElementVNode:Pp,openBlock:Mp,createElementBlock:Fp}=n;var _p=function(t,o){return Mp(),Fp("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[Pp("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-1.72 6.97a.75.75 0 10-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 101.06 1.06L12 13.06l1.72 1.72a.75.75 0 101.06-1.06L13.06 12l1.72-1.72a.75.75 0 10-1.06-1.06L12 10.94l-1.72-1.72z","clip-rule":"evenodd"})])},ws=Zf,Lp=tp,Vp=rp,jp=cp,Up=pp,Hp=gp,zp=wp,xs=Cp,Gp=Dp,Wp=Bp,Xp=_p;const Ar=(e,t)=>{const o=e.__vccOpts||e;for(const[a,r]of t)o[a]=r;return o},Kp={},Yp={class:"text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",fill:"none",viewBox:"0 0 100 101",xmlns:"http://www.w3.org/2000/svg"},Jp=[n.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),n.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1)];function Qp(e,t){return n.openBlock(),n.createElementBlock("svg",Yp,Jp)}const lo=Ar(Kp,[["render",Qp]]),Ss=n.defineComponent({__name:"ImageLoader",props:{src:{},alt:{},isThumbnail:{type:Boolean,default:!0}},emits:["missing"],setup(e,{emit:t}){const o=e,a=n.ref(!0),r=n.ref(!1),s=n.ref();return n.onMounted(()=>{new Promise((i,l)=>{let c=new Image;c.addEventListener("load",()=>i(c)),c.addEventListener("error",d=>l(d)),c.src=o.src}).then(i=>{i.className="pointer-events-none w-full h-full",i.classList.add(o.isThumbnail?"object-cover":"object-contain"),i.draggable=!1,s.value?.appendChild(i)}).catch(()=>{r.value=!0,t("missing",!0)}).finally(()=>{a.value=!1})}),(i,l)=>(n.openBlock(),n.createElementBlock("div",{class:"flex justify-center items-center h-full max-h-[80vh]",ref_key:"card",ref:s},[a.value?(n.openBlock(),n.createBlock(lo,{key:0,class:"w-6 h-6"})):n.createCommentVNode("",!0)],512))}}),Zp=["title"],qp={key:0,class:"absolute z-40 inset-0 flex justify-center items-center w-full h-full"},$p={key:1,class:"absolute inset-0 w-full h-full bg-gray-100/50 dark:bg-gray-800/50"},eh={key:2,class:"absolute inset-0 flex flex-row items-center justify-center text-sm font-bold text-gray-600 dark:text-gray-100"},th={class:"m-auto z-20 flex h-full items-center justify-center select-none"},nh={key:0,class:"m-auto flex h-full w-full items-center justify-center bg-gray-50 dark:bg-gray-900 text-red-500"},oh={key:0,class:"m-auto flex h-full w-full items-center justify-center bg-gray-50 dark:bg-gray-900 text-gray-500 dark:text-gray-600"},ah={class:"pointer-events-none w-full h-full object-cover"},rh=["src"],ih={key:0,class:"absolute m-auto flex items-center justify-center bg-transparent"},sh={key:3,class:"absolute right-1 top-1"},lh=["title"],ch={key:1,class:"text-sm text-red-500 font-semibold text-left break-all"},dh={class:"gap-x-0.5 inline-flex flex-wrap items-center text-xs pointer-events-none block font-medium text-gray-500 text-left break-all"},uh={key:0},fh={key:1,class:"ml-0.5"},ph={key:2,class:"absolute top-1 right-1"},Br=n.defineComponent({__name:"File",props:{file:{},isUploading:{type:Boolean},isUploaded:{type:Boolean},uploadRatio:{},selected:{type:Boolean,default:!1},onDeselect:{},singleDisk:{type:Boolean},fieldMode:{type:Boolean}},setup(e){const t=e,o=n.computed(()=>t.file.type==="image"),a=n.computed(()=>t.file.type==="video"),r=n.computed(()=>t.file.type!=="image"&&t.file.type!=="video"),s=n.computed(()=>!t.file.exists),i=n.computed(()=>s.value?t.file.path:t.file.name);return(l,c)=>(n.openBlock(),n.createElementBlock("button",{class:"relative cursor-pointer group focus-visible:outline-none flex flex-col items-start",title:i.value},[n.createElementVNode("div",{class:n.normalizeClass(["relative block aspect-square w-full h-full overflow-hidden rounded-lg hover:shadow-md hover:opacity-75 border border-gray-200/50 dark:border-gray-700/50 text-left","group-focus-visible:outline group-focus-visible:outline-2 group-focus-visible:outline-black dark:group-focus-visible:outline-white",l.selected?"outline outline-2 outline-blue-500 group-focus-visible:outline-blue-500":""])},[l.isUploading?(n.openBlock(),n.createElementBlock("div",qp,[l.isUploaded===null?(n.openBlock(),n.createBlock(lo,{key:0,class:"w-16 h-16"})):l.isUploaded===!1?(n.openBlock(),n.createBlock(n.unref(xs),{key:1,class:"w-16 h-16 text-red-500"})):l.isUploaded===!0?(n.openBlock(),n.createBlock(n.unref(ws),{key:2,class:"w-16 h-16 text-green-500"})):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),l.isUploading?(n.openBlock(),n.createElementBlock("div",$p)):n.createCommentVNode("",!0),l.isUploading&&l.isUploaded===null?(n.openBlock(),n.createElementBlock("div",eh,[n.createElementVNode("span",null,n.toDisplayString(l.uploadRatio)+"%",1)])):n.createCommentVNode("",!0),n.createElementVNode("div",th,[s.value&&!l.isUploading?(n.openBlock(),n.createElementBlock("div",nh,[n.createVNode(n.unref(Gp),{class:"w-16 h-16"})])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[r.value?(n.openBlock(),n.createElementBlock("div",oh,[l.isUploading?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(n.unref(Fo),{key:0,class:"w-16 h-16"}))])):n.createCommentVNode("",!0),o.value?(n.openBlock(),n.createBlock(Ss,{key:1,src:l.file.url,alt:l.file.name},null,8,["src","alt"])):n.createCommentVNode("",!0),a.value?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createElementVNode("video",ah,[n.createElementVNode("source",{src:l.file.url},null,8,rh),n.createTextVNode(" "+n.toDisplayString(l.__("Sorry, your browser doesn't support embedded videos.")),1)]),l.isUploading?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",ih,[n.createVNode(n.unref(Wp),{class:"h-16 w-16 text-white/60"})]))],64)):n.createCommentVNode("",!0)],64))]),l.onDeselect?(n.openBlock(),n.createElementBlock("div",sh,[l.onDeselect?(n.openBlock(),n.createElementBlock("button",{key:0,onClick:c[0]||(c[0]=d=>l.onDeselect(l.file)),class:"text-red-500 hover:text-red-600 rounded-full"},[n.createVNode(n.unref(Xp),{class:"h-6 w-6"})])):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)],2),!s.value||l.isUploading?(n.openBlock(),n.createElementBlock("p",{key:0,class:n.normalizeClass(["pointer-events-none mt-2 block truncate font-medium text-gray-900 dark:text-gray-50 text-left w-full",l.isUploading||l.onDeselect?"text-xs":"text-sm"]),title:l.isUploading?l.file.name:i.value},n.toDisplayString(l.isUploading?l.file.name:i.value),11,lh)):n.createCommentVNode("",!0),s.value&&!l.isUploading?(n.openBlock(),n.createElementBlock("p",ch,n.toDisplayString(l.__("NovaFileManager.fileMissing",{path:l.file.path})),1)):n.createCommentVNode("",!0),n.createElementVNode("div",dh,[l.file.size?(n.openBlock(),n.createElementBlock("span",uh,n.toDisplayString(l.file.size),1)):n.createCommentVNode("",!0),l.fieldMode&&!l.singleDisk&&l.file.disk?.length>0?(n.openBlock(),n.createElementBlock("span",fh,"ยท "+n.toDisplayString(l.file.disk),1)):n.createCommentVNode("",!0)]),l.selected?(n.openBlock(),n.createElementBlock("span",ph,[n.createVNode(n.unref(ws),{class:"h-5 w-5 text-blue-500","aria-hidden":"true"})])):n.createCommentVNode("",!0)],8,Zp))}});var hh=Math.ceil,mh=Math.max;function vh(e,t,o,a){for(var r=-1,s=mh(hh((t-e)/(o||1)),0),i=Array(s);s--;)i[a?s:++r]=e,e+=o;return i}var gh=vh;function yh(e,t){return e===t||e!==e&&t!==t}var bh=yh,Eh=typeof so=="object"&&so&&so.Object===Object&&so,wh=Eh,xh=wh,Sh=typeof self=="object"&&self&&self.Object===Object&&self,Oh=xh||Sh||Function("return this")(),Os=Oh,Ch=Os,kh=Ch.Symbol,Pr=kh,Cs=Pr,ks=Object.prototype,Th=ks.hasOwnProperty,Nh=ks.toString,_o=Cs?Cs.toStringTag:void 0;function Dh(e){var t=Th.call(e,_o),o=e[_o];try{e[_o]=void 0;var a=!0}catch{}var r=Nh.call(e);return a&&(t?e[_o]=o:delete e[_o]),r}var Ih=Dh,Rh=Object.prototype,Ah=Rh.toString;function Bh(e){return Ah.call(e)}var Ph=Bh,Ts=Pr,Mh=Ih,Fh=Ph,_h="[object Null]",Lh="[object Undefined]",Ns=Ts?Ts.toStringTag:void 0;function Vh(e){return e==null?e===void 0?Lh:_h:Ns&&Ns in Object(e)?Mh(e):Fh(e)}var Ds=Vh;function jh(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Na=jh,Uh=Ds,Hh=Na,zh="[object AsyncFunction]",Gh="[object Function]",Wh="[object GeneratorFunction]",Xh="[object Proxy]";function Kh(e){if(!Hh(e))return!1;var t=Uh(e);return t==Gh||t==Wh||t==zh||t==Xh}var Yh=Kh,Jh=9007199254740991;function Qh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Jh}var Zh=Qh,qh=Yh,$h=Zh;function em(e){return e!=null&&$h(e.length)&&!qh(e)}var tm=em,nm=9007199254740991,om=/^(?:0|[1-9]\d*)$/;function am(e,t){var o=typeof e;return t=t??nm,!!t&&(o=="number"||o!="symbol"&&om.test(e))&&e>-1&&e%1==0&&e0){var A=!1;for(var D in b.fileType){var M="."+b.fileType[D];if(F.toLowerCase().indexOf(M.toLowerCase(),F.length-M.length)!==-1){A=!0;break}}if(!A)return b.fileTypeErrorCallback(N,y++),!1}if(typeof b.minFileSize<"u"&&N.sizeb.maxFileSize)return b.maxFileSizeErrorCallback(N,y++),!1;function L(_){a.getFromUniqueIdentifier(_)?k.push(N):function(){N.uniqueIdentifier=_;var G=new m(a,N,_);a.files.push(G),g.push(G),G.container=typeof h<"u"?h.srcElement:null,window.setTimeout(function(){a.fire("fileAdded",G,h)},0)}(),S()}var W=r.generateUniqueIdentifier(N,h);W&&typeof W.then=="function"?W.then(function(_){L(_)},function(){S()}):L(W)})};function m(f,h,y){var b=this;b.opts={},b.getOpt=f.getOpt,b._prevProgress=0,b.resumableObj=f,b.file=h,b.fileName=h.fileName||h.name,b.size=h.size,b.relativePath=h.relativePath||h.webkitRelativePath||b.fileName,b.uniqueIdentifier=y,b._pause=!1,b.container="";var g=y!==void 0,k=function(O,S){switch(O){case"progress":b.resumableObj.fire("fileProgress",b,S);break;case"error":b.abort(),g=!0,b.chunks=[],b.resumableObj.fire("fileError",b,S);break;case"success":if(g)return;b.resumableObj.fire("fileProgress",b),b.isComplete()&&b.resumableObj.fire("fileSuccess",b,S);break;case"retry":b.resumableObj.fire("fileRetry",b);break}};return b.chunks=[],b.abort=function(){var O=0;r.each(b.chunks,function(S){S.status()=="uploading"&&(S.abort(),O++)}),O>0&&b.resumableObj.fire("fileProgress",b)},b.cancel=function(){var O=b.chunks;b.chunks=[],r.each(O,function(S){S.status()=="uploading"&&(S.abort(),b.resumableObj.uploadNextChunk())}),b.resumableObj.removeFile(b),b.resumableObj.fire("fileProgress",b)},b.retry=function(){b.bootstrap();var O=!1;b.resumableObj.on("chunkingComplete",function(){O||b.resumableObj.upload(),O=!0})},b.bootstrap=function(){b.abort(),g=!1,b.chunks=[],b._prevProgress=0;for(var O=b.getOpt("forceChunkSize")?Math.ceil:Math.floor,S=Math.max(O(b.file.size/b.getOpt("chunkSize")),1),N=0;N.99999?1:O,O=Math.max(b._prevProgress,O),b._prevProgress=O,O},b.isUploading=function(){var O=!1;return r.each(b.chunks,function(S){if(S.status()=="uploading")return O=!0,!1}),O},b.isComplete=function(){var O=!1;return r.each(b.chunks,function(S){var N=S.status();if(N=="pending"||N=="uploading"||S.preprocessState===1)return O=!0,!1}),!O},b.pause=function(O){typeof O>"u"?b._pause=!b._pause:b._pause=O},b.isPaused=function(){return b._pause},b.resumableObj.fire("chunkingStart",b),b.bootstrap(),this}function v(f,h,y,b){var g=this;g.opts={},g.getOpt=f.getOpt,g.resumableObj=f,g.fileObj=h,g.fileObjSize=h.size,g.fileObjType=h.file.type,g.offset=y,g.callback=b,g.lastProgressCallback=new Date,g.tested=!1,g.retries=0,g.pendingRetry=!1,g.preprocessState=0;var k=g.getOpt("chunkSize");return g.loaded=0,g.startByte=g.offset*k,g.endByte=Math.min(g.fileObjSize,(g.offset+1)*k),g.fileObjSize-g.endByteg.getOpt("throttleProgressCallbacks")*1e3&&(g.callback("progress"),g.lastProgressCallback=new Date),g.loaded=X.loaded||0},!1),g.loaded=0,g.pendingRetry=!1,g.callback("progress");var S=function(X){var ee=g.status();if(ee=="success"||ee=="error")g.callback(ee,g.message()),g.resumableObj.uploadNextChunk();else{g.callback("retry",g.message()),g.abort(),g.retries++;var he=g.getOpt("chunkRetryInterval");he!==void 0?(g.pendingRetry=!0,setTimeout(g.send,he)):g.send()}};g.xhr.addEventListener("load",S,!1),g.xhr.addEventListener("error",S,!1),g.xhr.addEventListener("timeout",S,!1);var N=[["chunkNumberParameterName",g.offset+1],["chunkSizeParameterName",g.getOpt("chunkSize")],["currentChunkSizeParameterName",g.endByte-g.startByte],["totalSizeParameterName",g.fileObjSize],["typeParameterName",g.fileObjType],["identifierParameterName",g.fileObj.uniqueIdentifier],["fileNameParameterName",g.fileObj.fileName],["relativePathParameterName",g.fileObj.relativePath],["totalChunksParameterName",g.fileObj.chunks.length]].filter(function(X){return g.getOpt(X[0])}).reduce(function(X,ee){return X[g.getOpt(ee[0])]=ee[1],X},{}),F=g.getOpt("query");typeof F=="function"&&(F=F(g.fileObj,g)),r.each(F,function(X,ee){N[X]=ee});var A=g.fileObj.file.slice?"slice":g.fileObj.file.mozSlice?"mozSlice":g.fileObj.file.webkitSlice?"webkitSlice":"slice",D=g.fileObj.file[A](g.startByte,g.endByte,g.getOpt("setChunkTypeFromFile")?g.fileObj.file.type:""),M=null,L=[],W=g.getOpt("parameterNamespace");if(g.getOpt("method")==="octet")M=D,r.each(N,function(X,ee){L.push([encodeURIComponent(W+X),encodeURIComponent(ee)].join("="))});else if(M=new FormData,r.each(N,function(X,ee){M.append(W+X,ee),L.push([encodeURIComponent(W+X),encodeURIComponent(ee)].join("="))}),g.getOpt("chunkFormat")=="blob")M.append(W+g.getOpt("fileParameterName"),D,g.fileObj.fileName);else if(g.getOpt("chunkFormat")=="base64"){var _=new FileReader;_.onload=function(X){M.append(W+g.getOpt("fileParameterName"),_.result),g.xhr.send(M)},_.readAsDataURL(D)}var G=r.getTarget("upload",L),Y=g.getOpt("uploadMethod");g.xhr.open(Y,G),g.getOpt("method")==="octet"&&g.xhr.setRequestHeader("Content-Type","application/octet-stream"),g.xhr.timeout=g.getOpt("xhrTimeout"),g.xhr.withCredentials=g.getOpt("withCredentials");var J=g.getOpt("headers");typeof J=="function"&&(J=J(g.fileObj,g)),r.each(J,function(X,ee){g.xhr.setRequestHeader(X,ee)}),g.getOpt("chunkFormat")=="blob"&&g.xhr.send(M)},g.abort=function(){g.xhr&&g.xhr.abort(),g.xhr=null},g.status=function(){return g.pendingRetry?"uploading":g.xhr?g.xhr.readyState<4?"uploading":g.xhr.status==200||g.xhr.status==201?"success":r.contains(g.getOpt("permanentErrors"),g.xhr.status)||g.retries>=g.getOpt("maxChunkRetries")?"error":(g.abort(),"pending"):"pending"},g.message=function(){return g.xhr?g.xhr.responseText:""},g.progress=function(O){typeof O>"u"&&(O=!1);var S=O?(g.endByte-g.startByte)/g.fileObjSize:1;if(g.pendingRetry)return 0;(!g.xhr||!g.xhr.status)&&(S*=.95);var N=g.status();switch(N){case"success":case"error":return 1*S;case"pending":return 0*S;default:return g.loaded/(g.endByte-g.startByte)*S}},this}return a.uploadNextChunk=function(){var f=!1;if(a.getOpt("prioritizeFirstAndLastChunk")&&(r.each(a.files,function(y){if(y.chunks.length&&y.chunks[0].status()=="pending"&&y.chunks[0].preprocessState===0)return y.chunks[0].send(),f=!0,!1;if(y.chunks.length>1&&y.chunks[y.chunks.length-1].status()=="pending"&&y.chunks[y.chunks.length-1].preprocessState===0)return y.chunks[y.chunks.length-1].send(),f=!0,!1}),f)||(r.each(a.files,function(y){if(y.isPaused()===!1&&r.each(y.chunks,function(b){if(b.status()=="pending"&&b.preprocessState===0)return b.send(),f=!0,!1}),f)return!1}),f))return!0;var h=!1;return r.each(a.files,function(y){if(!y.isComplete())return h=!0,!1}),h||a.fire("complete"),!1},a.assignBrowse=function(f,h){typeof f.length>"u"&&(f=[f]),r.each(f,function(y){var b;y.tagName==="INPUT"&&y.type==="file"?b=y:(b=document.createElement("input"),b.setAttribute("type","file"),b.style.display="none",y.addEventListener("click",function(){b.style.opacity=0,b.style.display="block",b.focus(),b.click(),b.style.display="none"},!1),y.appendChild(b));var g=a.getOpt("maxFiles");typeof g>"u"||g!=1?b.setAttribute("multiple","multiple"):b.removeAttribute("multiple"),h?b.setAttribute("webkitdirectory","webkitdirectory"):b.removeAttribute("webkitdirectory");var k=a.getOpt("fileType");typeof k<"u"&&k.length>=1?b.setAttribute("accept",k.map(function(O){return"."+O}).join(",")):b.removeAttribute("accept"),b.addEventListener("change",function(O){p(O.target.files,O);var S=a.getOpt("clearInput");S&&(O.target.value="")},!1)})},a.assignDrop=function(f){typeof f.length>"u"&&(f=[f]),r.each(f,function(h){h.addEventListener("dragover",i,!1),h.addEventListener("dragenter",i,!1),h.addEventListener("drop",s,!1)})},a.unAssignDrop=function(f){typeof f.length>"u"&&(f=[f]),r.each(f,function(h){h.removeEventListener("dragover",i),h.removeEventListener("dragenter",i),h.removeEventListener("drop",s)})},a.isUploading=function(){var f=!1;return r.each(a.files,function(h){if(h.isUploading())return f=!0,!1}),f},a.upload=function(){if(!a.isUploading()){a.fire("uploadStart");for(var f=1;f<=a.getOpt("simultaneousUploads");f++)a.uploadNextChunk()}},a.pause=function(){r.each(a.files,function(f){f.abort()}),a.fire("pause")},a.cancel=function(){a.fire("beforeCancel");for(var f=a.files.length-1;f>=0;f--)a.files[f].cancel();a.fire("cancel")},a.progress=function(){var f=0,h=0;return r.each(a.files,function(y){f+=y.progress()*y.size,h+=y.size}),h>0?f/h:0},a.addFile=function(f,h){p([f],h)},a.addFiles=function(f,h){p(f,h)},a.removeFile=function(f){for(var h=a.files.length-1;h>=0;h--)a.files[h]===f&&a.files.splice(h,1)},a.getFromUniqueIdentifier=function(f){var h=!1;return r.each(a.files,function(y){y.uniqueIdentifier==f&&(h=y)}),h},a.getSize=function(){var f=0;return r.each(a.files,function(h){f+=h.size}),f},a.handleDropEvent=function(f){s(f)},a.handleChangeEvent=function(f){p(f.target.files,f),f.target.value=""},a.updateQuery=function(f){a.opts.query=f},this};e.exports=t})()})(Hm);const zm=Fr,Lo="queue",_r="preview",Gm="upload",mn="upload-crop",Lr="browser",Wm="folder",Xm="KeyK",Vr={folders:"#",files:">",help:"?"},Km=["setDisk","setPath","setPerPage","setPage","setSearch","upload","renameFile","deleteFiles","unzipFile","createFolder","renameFolder","deleteFolder"],Xt={CREATE_FOLDER:"createFolder",RENAME_FOLDER:"renameFolder",DELETE_FOLDER:"deleteFolder",RENAME_FILE:"renameFile",DELETE_FILE:"deleteFile",UNZIP_FILE:"unzipFile"},Mt={CREATE_FOLDER:"createFolder",RENAME_FOLDER:"renameFolder",DELETE_FOLDER:"deleteFolder",RENAME_FILE:"renameFile",DELETE_FILES:"deleteFiles",UNZIP_FILE:"unzipFile"},vn={CREATE_FOLDER:"/folders/create",RENAME_FOLDER:"/folders/rename",DELETE_FOLDER:"/folders/delete",RENAME_FILE:"/files/rename",DELETE_FILE:"/files/delete",UNZIP_FILE:"/files/unzip",UPLOAD:"/nova-vendor/nova-file-manager/files/upload",DISKS:"/disks"};async function co({operation:e,endpoint:t,data:o,modal:a,callback:r}){const s=Re(),i=s.post,l=s.setError,c=s.resetError,d=s.closeModal;try{s.loadingOperation=e;const u=await i({path:t,data:o});c(),window.Nova.success(u.data.message),r&&r(u),a&&d({name:a})}catch(u){s.loadingOperation=void 0;const p=u.response?.data;window.Nova.error(p?.message||"An error occurred"),l({attribute:e,bag:p})}}function Fs(e,t){return function(){return e.apply(t,arguments)}}const{toString:_s}=Object.prototype,{getPrototypeOf:jr}=Object,Ur=(e=>t=>{const o=_s.call(t);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),nn=e=>(e=e.toLowerCase(),t=>Ur(t)===e),Da=e=>t=>typeof t===e,{isArray:uo}=Array,Vo=Da("undefined");function Ym(e){return e!==null&&!Vo(e)&&e.constructor!==null&&!Vo(e.constructor)&&gn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ls=nn("ArrayBuffer");function Jm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ls(e.buffer),t}const Qm=Da("string"),gn=Da("function"),Vs=Da("number"),Hr=e=>e!==null&&typeof e=="object",Zm=e=>e===!0||e===!1,Ia=e=>{if(Ur(e)!=="object")return!1;const t=jr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qm=nn("Date"),$m=nn("File"),ev=nn("Blob"),tv=nn("FileList"),nv=e=>Hr(e)&&gn(e.pipe),ov=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||_s.call(e)===t||gn(e.toString)&&e.toString()===t)},av=nn("URLSearchParams"),rv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jo(e,t,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let a,r;if(typeof e!="object"&&(e=[e]),uo(e))for(a=0,r=e.length;a0;)if(r=o[a],t===r.toLowerCase())return r;return null}const Us=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Hs=e=>!Vo(e)&&e!==Us;function zr(){const{caseless:e}=Hs(this)&&this||{},t={},o=(a,r)=>{const s=e&&js(t,r)||r;Ia(t[s])&&Ia(a)?t[s]=zr(t[s],a):Ia(a)?t[s]=zr({},a):uo(a)?t[s]=a.slice():t[s]=a};for(let a=0,r=arguments.length;a(jo(t,(r,s)=>{o&&gn(r)?e[s]=Fs(r,o):e[s]=r},{allOwnKeys:a}),e),sv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lv=(e,t,o,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),o&&Object.assign(e.prototype,o)},cv=(e,t,o,a)=>{let r,s,i;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)i=r[s],(!a||a(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=o!==!1&&jr(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},dv=(e,t,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=t.length;const a=e.indexOf(t,o);return a!==-1&&a===o},uv=e=>{if(!e)return null;if(uo(e))return e;let t=e.length;if(!Vs(t))return null;const o=new Array(t);for(;t-- >0;)o[t]=e[t];return o},fv=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&jr(Uint8Array)),pv=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=a.next())&&!r.done;){const s=r.value;t.call(e,s[0],s[1])}},hv=(e,t)=>{let o;const a=[];for(;(o=e.exec(t))!==null;)a.push(o);return a},mv=nn("HTMLFormElement"),vv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,a,r){return a.toUpperCase()+r}),zs=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),gv=nn("RegExp"),Gs=(e,t)=>{const o=Object.getOwnPropertyDescriptors(e),a={};jo(o,(r,s)=>{t(r,s,e)!==!1&&(a[s]=r)}),Object.defineProperties(e,a)},yv=e=>{Gs(e,(t,o)=>{if(gn(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const a=e[o];if(gn(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},bv=(e,t)=>{const o={},a=r=>{r.forEach(s=>{o[s]=!0})};return uo(e)?a(e):a(String(e).split(t)),o},Ev=()=>{},wv=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Gr="abcdefghijklmnopqrstuvwxyz",Ws="0123456789",Xs={DIGIT:Ws,ALPHA:Gr,ALPHA_DIGIT:Gr+Gr.toUpperCase()+Ws},xv=(e=16,t=Xs.ALPHA_DIGIT)=>{let o="";const{length:a}=t;for(;e--;)o+=t[Math.random()*a|0];return o};function Sv(e){return!!(e&&gn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const z={isArray:uo,isArrayBuffer:Ls,isBuffer:Ym,isFormData:ov,isArrayBufferView:Jm,isString:Qm,isNumber:Vs,isBoolean:Zm,isObject:Hr,isPlainObject:Ia,isUndefined:Vo,isDate:qm,isFile:$m,isBlob:ev,isRegExp:gv,isFunction:gn,isStream:nv,isURLSearchParams:av,isTypedArray:fv,isFileList:tv,forEach:jo,merge:zr,extend:iv,trim:rv,stripBOM:sv,inherits:lv,toFlatObject:cv,kindOf:Ur,kindOfTest:nn,endsWith:dv,toArray:uv,forEachEntry:pv,matchAll:hv,isHTMLForm:mv,hasOwnProperty:zs,hasOwnProp:zs,reduceDescriptors:Gs,freezeMethods:yv,toObjectSet:bv,toCamelCase:vv,noop:Ev,toFiniteNumber:wv,findKey:js,global:Us,isContextDefined:Hs,ALPHABET:Xs,generateString:xv,isSpecCompliantForm:Sv,toJSONObject:e=>{const t=new Array(10),o=(a,r)=>{if(Hr(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[r]=a;const s=uo(a)?[]:{};return jo(a,(i,l)=>{const c=o(i,r+1);!Vo(c)&&(s[l]=c)}),t[r]=void 0,s}}return a};return o(e,0)}};function Oe(e,t,o,a,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),o&&(this.config=o),a&&(this.request=a),r&&(this.response=r)}z.inherits(Oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ks=Oe.prototype,Ys={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ys[e]={value:e}}),Object.defineProperties(Oe,Ys),Object.defineProperty(Ks,"isAxiosError",{value:!0}),Oe.from=(e,t,o,a,r,s)=>{const i=Object.create(Ks);return z.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Oe.call(i,e.message,t,o,a,r),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const Ov=null;function Wr(e){return z.isPlainObject(e)||z.isArray(e)}function Js(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function Qs(e,t,o){return e?e.concat(t).map(function(r,s){return r=Js(r),!o&&s?"["+r+"]":r}).join(o?".":""):t}function Cv(e){return z.isArray(e)&&!e.some(Wr)}const kv=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function Ra(e,t,o){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,o=z.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,y){return!z.isUndefined(y[h])});const a=o.metaTokens,r=o.visitor||u,s=o.dots,i=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(r))throw new TypeError("visitor must be a function");function d(f){if(f===null)return"";if(z.isDate(f))return f.toISOString();if(!c&&z.isBlob(f))throw new Oe("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(f)||z.isTypedArray(f)?c&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,h,y){let b=f;if(f&&!y&&typeof f=="object"){if(z.endsWith(h,"{}"))h=a?h:h.slice(0,-2),f=JSON.stringify(f);else if(z.isArray(f)&&Cv(f)||(z.isFileList(f)||z.endsWith(h,"[]"))&&(b=z.toArray(f)))return h=Js(h),b.forEach(function(k,O){!(z.isUndefined(k)||k===null)&&t.append(i===!0?Qs([h],O,s):i===null?h:h+"[]",d(k))}),!1}return Wr(f)?!0:(t.append(Qs(y,h,s),d(f)),!1)}const p=[],m=Object.assign(kv,{defaultVisitor:u,convertValue:d,isVisitable:Wr});function v(f,h){if(!z.isUndefined(f)){if(p.indexOf(f)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(f),z.forEach(f,function(b,g){(!(z.isUndefined(b)||b===null)&&r.call(t,b,z.isString(g)?g.trim():g,h,m))===!0&&v(b,h?h.concat(g):[g])}),p.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Zs(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function Xr(e,t){this._pairs=[],e&&Ra(e,this,t)}const qs=Xr.prototype;qs.append=function(t,o){this._pairs.push([t,o])},qs.toString=function(t){const o=t?function(a){return t.call(this,a,Zs)}:Zs;return this._pairs.map(function(r){return o(r[0])+"="+o(r[1])},"").join("&")};function Tv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $s(e,t,o){if(!t)return e;const a=o&&o.encode||Tv,r=o&&o.serialize;let s;if(r?s=r(t,o):s=z.isURLSearchParams(t)?t.toString():new Xr(t,o).toString(a),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Nv{constructor(){this.handlers=[]}use(t,o,a){return this.handlers.push({fulfilled:t,rejected:o,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(a){a!==null&&t(a)})}}const el=Nv,tl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dv=typeof URLSearchParams<"u"?URLSearchParams:Xr,Iv=typeof FormData<"u"?FormData:null,Rv=typeof Blob<"u"?Blob:null,Av=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Bv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Kt={isBrowser:!0,classes:{URLSearchParams:Dv,FormData:Iv,Blob:Rv},isStandardBrowserEnv:Av,isStandardBrowserWebWorkerEnv:Bv,protocols:["http","https","file","blob","url","data"]};function Pv(e,t){return Ra(e,new Kt.classes.URLSearchParams,Object.assign({visitor:function(o,a,r,s){return Kt.isNode&&z.isBuffer(o)?(this.append(a,o.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Mv(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Fv(e){const t={},o=Object.keys(e);let a;const r=o.length;let s;for(a=0;a=o.length;return i=!i&&z.isArray(r)?r.length:i,c?(z.hasOwnProp(r,i)?r[i]=[r[i],a]:r[i]=a,!l):((!r[i]||!z.isObject(r[i]))&&(r[i]=[]),t(o,a,r[i],s)&&z.isArray(r[i])&&(r[i]=Fv(r[i])),!l)}if(z.isFormData(e)&&z.isFunction(e.entries)){const o={};return z.forEachEntry(e,(a,r)=>{t(Mv(a),r,o,0)}),o}return null}const _v={"Content-Type":void 0};function Lv(e,t,o){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(o||JSON.stringify)(e)}const Aa={transitional:tl,adapter:["xhr","http"],transformRequest:[function(t,o){const a=o.getContentType()||"",r=a.indexOf("application/json")>-1,s=z.isObject(t);if(s&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return r&&r?JSON.stringify(nl(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return Pv(t,this.formSerializer).toString();if((l=z.isFileList(t))||a.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Ra(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||r?(o.setContentType("application/json",!1),Lv(t)):t}],transformResponse:[function(t){const o=this.transitional||Aa.transitional,a=o&&o.forcedJSONParsing,r=this.responseType==="json";if(t&&z.isString(t)&&(a&&!this.responseType||r)){const i=!(o&&o.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?Oe.from(l,Oe.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Kt.classes.FormData,Blob:Kt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};z.forEach(["delete","get","head"],function(t){Aa.headers[t]={}}),z.forEach(["post","put","patch"],function(t){Aa.headers[t]=z.merge(_v)});const Kr=Aa,Vv=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),jv=e=>{const t={};let o,a,r;return e&&e.split(` `).forEach(function(i){r=i.indexOf(":"),o=i.substring(0,r).trim().toLowerCase(),a=i.substring(r+1).trim(),!(!o||t[o]&&Vv[o])&&(o==="set-cookie"?t[o]?t[o].push(a):t[o]=[a]:t[o]=t[o]?t[o]+", "+a:a)}),t},ol=Symbol("internals");function Uo(e){return e&&String(e).trim().toLowerCase()}function Ba(e){return e===!1||e==null?e:z.isArray(e)?e.map(Ba):String(e)}function Uv(e){const t=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=o.exec(e);)t[a[1]]=a[2];return t}function Hv(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Yr(e,t,o,a,r){if(z.isFunction(a))return a.call(this,t,o);if(r&&(t=o),!!z.isString(t)){if(z.isString(a))return t.indexOf(a)!==-1;if(z.isRegExp(a))return a.test(t)}}function zv(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,o,a)=>o.toUpperCase()+a)}function Gv(e,t){const o=z.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+o,{value:function(r,s,i){return this[a].call(this,t,r,s,i)},configurable:!0})})}class Pa{constructor(t){t&&this.set(t)}set(t,o,a){const r=this;function s(l,c,d){const u=Uo(c);if(!u)throw new Error("header name must be a non-empty string");const p=z.findKey(r,u);(!p||r[p]===void 0||d===!0||d===void 0&&r[p]!==!1)&&(r[p||c]=Ba(l))}const i=(l,c)=>z.forEach(l,(d,u)=>s(d,u,c));return z.isPlainObject(t)||t instanceof this.constructor?i(t,o):z.isString(t)&&(t=t.trim())&&!Hv(t)?i(jv(t),o):t!=null&&s(o,t,a),this}get(t,o){if(t=Uo(t),t){const a=z.findKey(this,t);if(a){const r=this[a];if(!o)return r;if(o===!0)return Uv(r);if(z.isFunction(o))return o.call(this,r,a);if(z.isRegExp(o))return o.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,o){if(t=Uo(t),t){const a=z.findKey(this,t);return!!(a&&this[a]!==void 0&&(!o||Yr(this,this[a],a,o)))}return!1}delete(t,o){const a=this;let r=!1;function s(i){if(i=Uo(i),i){const l=z.findKey(a,i);l&&(!o||Yr(a,a[l],l,o))&&(delete a[l],r=!0)}}return z.isArray(t)?t.forEach(s):s(t),r}clear(t){const o=Object.keys(this);let a=o.length,r=!1;for(;a--;){const s=o[a];(!t||Yr(this,this[s],s,t,!0))&&(delete this[s],r=!0)}return r}normalize(t){const o=this,a={};return z.forEach(this,(r,s)=>{const i=z.findKey(a,s);if(i){o[i]=Ba(r),delete o[s];return}const l=t?zv(s):String(s).trim();l!==s&&delete o[s],o[l]=Ba(r),a[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const o=Object.create(null);return z.forEach(this,(a,r)=>{a!=null&&a!==!1&&(o[r]=t&&z.isArray(a)?a.join(", "):a)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,o])=>t+": "+o).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...o){const a=new this(t);return o.forEach(r=>a.set(r)),a}static accessor(t){const a=(this[ol]=this[ol]={accessors:{}}).accessors,r=this.prototype;function s(i){const l=Uo(i);a[l]||(Gv(r,i),a[l]=!0)}return z.isArray(t)?t.forEach(s):s(t),this}}Pa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.freezeMethods(Pa.prototype),z.freezeMethods(Pa);const on=Pa;function Jr(e,t){const o=this||Kr,a=t||o,r=on.from(a.headers);let s=a.data;return z.forEach(e,function(l){s=l.call(o,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function al(e){return!!(e&&e.__CANCEL__)}function Ho(e,t,o){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,o),this.name="CanceledError"}z.inherits(Ho,Oe,{__CANCEL__:!0});function Wv(e,t,o){const a=o.config.validateStatus;!o.status||!a||a(o.status)?e(o):t(new Oe("Request failed with status code "+o.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const Xv=Kt.isStandardBrowserEnv?function(){return{write:function(o,a,r,s,i,l){const c=[];c.push(o+"="+encodeURIComponent(a)),z.isNumber(r)&&c.push("expires="+new Date(r).toGMTString()),z.isString(s)&&c.push("path="+s),z.isString(i)&&c.push("domain="+i),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(o){const a=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(o){this.write(o,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Kv(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Yv(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function rl(e,t){return e&&!Kv(t)?Yv(e,t):t}const Jv=Kt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let a;function r(s){let i=s;return t&&(o.setAttribute("href",i),i=o.href),o.setAttribute("href",i),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return a=r(window.location.href),function(i){const l=z.isString(i)?r(i):i;return l.protocol===a.protocol&&l.host===a.host}}():function(){return function(){return!0}}();function Qv(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Zv(e,t){e=e||10;const o=new Array(e),a=new Array(e);let r=0,s=0,i;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),u=a[s];i||(i=d),o[r]=c,a[r]=d;let p=s,m=0;for(;p!==r;)m+=o[p++],p=p%e;if(r=(r+1)%e,r===s&&(s=(s+1)%e),d-i{const s=r.loaded,i=r.lengthComputable?r.total:void 0,l=s-o,c=a(l),d=s<=i;o=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:l,rate:c||void 0,estimated:c&&i&&d?(i-s)/c:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}const Ma={http:Ov,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(o,a){let r=e.data;const s=on.from(e.headers).normalize(),i=e.responseType;let l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}z.isFormData(r)&&(Kt.isStandardBrowserEnv||Kt.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let d=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(v+":"+f))}const u=rl(e.baseURL,e.url);d.open(e.method.toUpperCase(),$s(u,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function p(){if(!d)return;const v=on.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),h={data:!i||i==="text"||i==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:v,config:e,request:d};Wv(function(b){o(b),c()},function(b){a(b),c()},h),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(a(new Oe("Request aborted",Oe.ECONNABORTED,e,d)),d=null)},d.onerror=function(){a(new Oe("Network Error",Oe.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let f=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||tl;e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),a(new Oe(f,h.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,d)),d=null},Kt.isStandardBrowserEnv){const v=(e.withCredentials||Jv(u))&&e.xsrfCookieName&&Xv.read(e.xsrfCookieName);v&&s.set(e.xsrfHeaderName,v)}r===void 0&&s.setContentType(null),"setRequestHeader"in d&&z.forEach(s.toJSON(),function(f,h){d.setRequestHeader(h,f)}),z.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),i&&i!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",il(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",il(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=v=>{d&&(a(!v||v.type?new Ho(null,e,d):v),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=Qv(u);if(m&&Kt.protocols.indexOf(m)===-1){a(new Oe("Unsupported protocol "+m+":",Oe.ERR_BAD_REQUEST,e));return}d.send(r||null)})}};z.forEach(Ma,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qv={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let o,a;for(let r=0;re instanceof on?e.toJSON():e;function fo(e,t){t=t||{};const o={};function a(d,u,p){return z.isPlainObject(d)&&z.isPlainObject(u)?z.merge.call({caseless:p},d,u):z.isPlainObject(u)?z.merge({},u):z.isArray(u)?u.slice():u}function r(d,u,p){if(z.isUndefined(u)){if(!z.isUndefined(d))return a(void 0,d,p)}else return a(d,u,p)}function s(d,u){if(!z.isUndefined(u))return a(void 0,u)}function i(d,u){if(z.isUndefined(u)){if(!z.isUndefined(d))return a(void 0,d)}else return a(void 0,u)}function l(d,u,p){if(p in t)return a(d,u);if(p in e)return a(void 0,d)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(d,u)=>r(ll(d),ll(u),!0)};return z.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const p=c[u]||r,m=p(e[u],t[u],u);z.isUndefined(m)&&p!==l||(o[u]=m)}),o}const cl="1.3.4",Zr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Zr[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const dl={};Zr.transitional=function(t,o,a){function r(s,i){return"[Axios v"+cl+"] Transitional option '"+s+"'"+i+(a?". "+a:"")}return(s,i,l)=>{if(t===!1)throw new Oe(r(i," has been removed"+(o?" in "+o:"")),Oe.ERR_DEPRECATED);return o&&!dl[i]&&(dl[i]=!0,console.warn(r(i," has been deprecated since v"+o+" and will be removed in the near future"))),t?t(s,i,l):!0}};function $v(e,t,o){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let r=a.length;for(;r-- >0;){const s=a[r],i=t[s];if(i){const l=e[s],c=l===void 0||i(l,s,e);if(c!==!0)throw new Oe("option "+s+" must be "+c,Oe.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new Oe("Unknown option "+s,Oe.ERR_BAD_OPTION)}}const qr={assertOptions:$v,validators:Zr},yn=qr.validators;class Fa{constructor(t){this.defaults=t,this.interceptors={request:new el,response:new el}}request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=fo(this.defaults,o);const{transitional:a,paramsSerializer:r,headers:s}=o;a!==void 0&&qr.assertOptions(a,{silentJSONParsing:yn.transitional(yn.boolean),forcedJSONParsing:yn.transitional(yn.boolean),clarifyTimeoutError:yn.transitional(yn.boolean)},!1),r!==void 0&&qr.assertOptions(r,{encode:yn.function,serialize:yn.function},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let i;i=s&&z.merge(s.common,s[o.method]),i&&z.forEach(["delete","get","head","post","put","patch","common"],f=>{delete s[f]}),o.headers=on.concat(i,s);const l=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(o)===!1||(c=c&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const d=[];this.interceptors.response.forEach(function(h){d.push(h.fulfilled,h.rejected)});let u,p=0,m;if(!c){const f=[sl.bind(this),void 0];for(f.unshift.apply(f,l),f.push.apply(f,d),m=f.length,u=Promise.resolve(o);p{if(!a._listeners)return;let s=a._listeners.length;for(;s-- >0;)a._listeners[s](r);a._listeners=null}),this.promise.then=r=>{let s;const i=new Promise(l=>{a.subscribe(l),s=l}).then(r);return i.cancel=function(){a.unsubscribe(s)},i},t(function(s,i,l){a.reason||(a.reason=new Ho(s,i,l),o(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const o=this._listeners.indexOf(t);o!==-1&&this._listeners.splice(o,1)}static source(){let t;return{token:new $r(function(r){t=r}),cancel:t}}}const eg=$r;function tg(e){return function(o){return e.apply(null,o)}}function ng(e){return z.isObject(e)&&e.isAxiosError===!0}const ei={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ei).forEach(([e,t])=>{ei[t]=e});const og=ei;function ul(e){const t=new _a(e),o=Fs(_a.prototype.request,t);return z.extend(o,_a.prototype,t,{allOwnKeys:!0}),z.extend(o,t,null,{allOwnKeys:!0}),o.create=function(r){return ul(fo(e,r))},o}const $e=ul(Kr);$e.Axios=_a,$e.CanceledError=Ho,$e.CancelToken=eg,$e.isCancel=al,$e.VERSION=cl,$e.toFormData=Ra,$e.AxiosError=Oe,$e.Cancel=$e.CanceledError,$e.all=function(t){return Promise.all(t)},$e.spread=tg,$e.isAxiosError=ng,$e.mergeConfig=fo,$e.AxiosHeaders=on,$e.formToJSON=e=>nl(z.isHTMLForm(e)?new FormData(e):e),$e.HttpStatusCode=og,$e.default=$e;const La=$e;function ag(e){return e==null}var rg=ag;function fl(){return document.head.querySelector('meta[name="csrf-token"]')?.content??!1}function pl(){const e=La.create();return e.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",e.defaults.headers.common["X-CSRF-TOKEN"]=fl(),e.interceptors.response.use(t=>t,t=>{if(La.isCancel(t))return Promise.reject(t);const o=t.response,{status:a,data:{redirect:r}}=o;if(a>=500&&window.Nova.$emit("error",t.response.data.message),a===401){if(!rg(r)){location.href=r;return}window.Nova.redirectToLogin()}return a===403&&window.Nova.visit("/403"),a===419&&window.Nova.$emit("token-expired"),Promise.reject(t)}),e}function ig(e){return function(t){return e?.[t]}}var sg=ig,lg=sg,cg={"&":"&","<":"<",">":">",'"':""","'":"'"},dg=lg(cg),ug=dg;function fg(e,t){for(var o=-1,a=e==null?0:e.length,r=Array(a);++o"']/g,kg=RegExp(yl.source);function Tg(e){return e=Cg(e),e&&kg.test(e)?e.replace(yl,Og):e}var Ng=Tg;function bn(e,t){if(e==null)return e;let o=t?.escape?Ng(e):e;return o=o.trim().replace(/ /g," ").replace(/\/{2,}/g,"/"),o}const Re=Tr("nova-file-manager/browser",{state:()=>({path:void 0,disk:void 0,disks:void 0,page:void 0,search:void 0,perPage:15,perPageOptions:Ms(10,50,10),view:"grid",modals:[],callback:()=>{},files:void 0,folders:void 0,breadcrumbs:void 0,pagination:void 0,error:void 0,selection:void 0,preview:void 0,limit:void 0,wrapper:void 0,queue:[],multiple:void 0,ready:!1,isField:!1,isFetchingDisks:!1,isFetchingData:!1,isUploading:!1,loadingOperation:void 0,dark:void 0,tour:!1,resource:void 0,resourceId:void 0,attribute:void 0,singleDisk:!1,flexibleGroup:[],fieldInit:void 0,permissions:{folder:{create:!0,rename:!0,delete:!0},file:{upload:!0,rename:!0,edit:!0,delete:!0,unzip:!0}},chunkSize:50*1024*1024,usePintura:!1,pinturaOptions:{},cropperOptions:{}}),actions:{init(){this.ready||(this.syncDarkMode(),this.loadFromLocalStorage(),this.loadFromQueryString(),this.ready=!0)},syncDarkMode(){this.dark===void 0&&(this.dark=document.documentElement.classList.contains("dark")),window.Nova.$on("nova-theme-switched",({theme:e})=>{this.dark=e==="dark"})},loadFromLocalStorage(){if(this.isField)return;["perPage","view","disk"].forEach(t=>{const o=window?.localStorage.getItem(`nova-file-manager/${t}`);o&&o.length&&this.$patch({[t]:o})})},loadFromQueryString(){if(this.isField)return;const e=Object.fromEntries(new URLSearchParams(window?.location.search).entries());for(const[t,o]of Object.entries(e))["path","disk","page","perPage"].includes(t)&&this.$patch({[t]:o});window.location.href.includes("?")||(this.path="/")},saveToLocalStorage({values:e}){if(!(this.isField||!e))for(const[t,o]of Object.entries(e))o&&window?.localStorage.setItem(`nova-file-manager/${t}`,o.toString())},selectFile({file:e}){if(!this.selection){this.selection=[e];return}this.selection.push(e)},deselectFile({file:e}){this.selection=this.selection?.filter(t=>t.id!==e.id)},setSelection({files:e}){this.selection=e},clearSelection(){this.setSelection({files:void 0})},toggleSelection({file:e}){if(this.isSelected(e)){this.deselectFile({file:e});return}this.multiple||this.clearSelection(),this.selectFile({file:e})},openModal({name:e}){this.modals.unshift(e)},closeModal({name:e}){e===_r&&(this.preview=void 0),this.modals=this.modals.filter(t=>t!==e),this.resetError(),this.fixPortal()},setError({attribute:e,bag:t}){this.error={attribute:e,bag:t}},resetError(){this.error=void 0},queueFile({file:e}){this.queue.push({id:e.name,ratio:0,status:null,file:e,isImage:e.type.includes("image")??!1})},clearQueue(){this.queue=[]},updateQueue({id:e,ratio:t=100,status:o=null}){this.queue=this.queue.map(r=>r.id===e?{...r,status:o,ratio:t}:r),this.queue.reduce((r,s)=>r&&s.ratio===100,!0)&&this.queue.length&&setTimeout(async()=>{this.closeModal({name:Gm}),this.closeModal({name:Lo}),this.clearQueue(),this.isUploading=!1,await this.data()},1e3)},fixPortal(){this.modals.length||this.preview||setTimeout(()=>{document.documentElement.style.removeProperty("overflow"),document.documentElement.style.removeProperty("padding-right")},200)},setQueryString({parameters:e}){if(this.isField)return;const t=new URLSearchParams(window.location.search),o=window.Nova.app.config.globalProperties.$inertia.page;for(const[a,r]of Object.entries(e)){const s=r?.toString();if(!s){t.delete(a);continue}s?.length>0&&t.set(a,s)}if(o.url!==`${window.location.pathname}?${t}`){o.url=`${window.location.pathname}?${t}`;const a=t.toString().length>0?"?":"";window.history.pushState(o,"",`${window.location.pathname}${a}${t}`)}},reset(){["page","search","path"].forEach(t=>{this.$patch({[t]:null})})},async setPath({path:e}){this.reset(),this.path=e,this.setQueryString({parameters:{page:null,search:null,path:e}})},async setDisk({disk:e}){this.reset(),this.disk=e,this.setQueryString({parameters:{disk:e}}),this.saveToLocalStorage({values:{disk:e,page:null,search:null,path:null}})},async setPerPage({perPage:e}){this.perPage=e,this.page=1,this.setQueryString({parameters:{perPage:e}}),this.saveToLocalStorage({values:{perPage:e}})},async setPage({page:e}){this.page=e,this.setQueryString({parameters:{page:e}})},setView({view:e}){this.view=e,this.saveToLocalStorage({values:{view:e}})},setSearch({search:e}){this.search=e,this.setQueryString({parameters:{search:e}})},setPreview({preview:e}){this.preview=e},async deleteSelectedFiles(){await this.deleteFiles({paths:this.selection?.map(e=>e.path)??[]})},async data(){this.isFetchingData=!0;const{data:e}=await this.get({params:this.payload({path:this.path,page:this.page,perPage:this.perPage,search:this.search})});this.disk=e.disk,this.folders=e.folders,this.breadcrumbs=e.breadcrumbs,this.files=e.files,this.pagination=e.pagination,this.isFetchingData=!1},async getDisks(){this.isFetchingDisks=!0;const{data:e}=await this.get({path:vn.DISKS});this.disks=e,this.isFetchingDisks=!1},async createFolder({path:e}){await co({operation:Xt.CREATE_FOLDER,modal:Mt.CREATE_FOLDER,endpoint:vn.CREATE_FOLDER,data:this.payload({path:bn(`${this.path??""}/${bn(e)}`,{escape:!1})})})},async renameFolder({id:e,from:t,to:o}){await co({operation:Xt.RENAME_FOLDER,modal:`${Mt.RENAME_FOLDER}-${e}`,endpoint:vn.RENAME_FOLDER,data:this.payload({path:this.path,from:bn(t,{escape:!1}),to:bn(`${this.path??""}/${bn(o)}`,{escape:!1})})})},async deleteFolder({id:e,path:t}){await co({operation:Xt.DELETE_FOLDER,modal:`${Mt.DELETE_FOLDER}-${e}`,endpoint:vn.DELETE_FOLDER,data:this.payload({path:t})})},upload({files:e}){this.isUploading=!0;const t=new zm({chunkSize:this.chunkSize,simultaneousUploads:1,testChunks:!1,target:this.url(vn.UPLOAD),query:this.payload({path:this.path??"/"}),headers:{Accept:"application/json","X-CSRF-TOKEN":fl()}});e.forEach(o=>{t.addFile(o),this.queueFile({file:o})}),t.on("fileAdded",()=>t.upload()),t.on("fileSuccess",o=>{this.updateQueue({id:o.fileName,status:!0})}),t.on("fileProgress",o=>{this.updateQueue({id:o.fileName,ratio:Math.floor(o.progress(!1)*100)})}),t.on("fileError",(o,a)=>{this.updateQueue({id:o.fileName,status:!1}),window.Nova.error(JSON.parse(a).message)})},async renameFile({id:e,from:t,to:o}){await co({operation:Xt.RENAME_FILE,modal:`${Mt.RENAME_FILE}-${e}`,endpoint:vn.RENAME_FILE,data:this.payload({path:this.path,from:bn(t,{escape:!1}),to:bn(`${this.path??""}/${bn(o)}`,{escape:!1})})})},async deleteFiles({paths:e}){e.length!==0&&await co({operation:Xt.DELETE_FILE,modal:Mt.DELETE_FILES,endpoint:vn.DELETE_FILE,data:this.payload({paths:e}),callback:()=>{this.preview=void 0,this.clearSelection()}})},async unzipFile({path:e}){await co({operation:Xt.UNZIP_FILE,endpoint:vn.UNZIP_FILE,data:this.payload({path:e}),callback:()=>{this.preview=void 0,this.clearSelection()}})},async get({path:e,params:t,options:o={}}){return await pl().get(this.url(`/nova-vendor/nova-file-manager${e??""}`),{params:t,...o})},async post({path:e,data:t}){return await pl().post(this.url(`/nova-vendor/nova-file-manager${e??""}`),t)},payload(e){let t={...e,attribute:this.attribute,resource:this.resource,fieldMode:this.isField};if(this.component?.length&&["Nova.Create","Nova.Update"].includes(this.component)){let o;switch(this.component){case"Nova.Create":o="create";break;case"Nova.Update":o="update";break}t={...t,editing:!0,editMode:o}}return this.wrapper?.length&&(t={...t,wrapper:this.wrapper}),this.resourceId&&(t={...t,resourceId:this.resourceId}),this.singleDisk||(t={...t,disk:this.disk}),this.isField&&this.flexibleGroup?.length&&(t={...t,flexible:this.flexibleGroup.join(".")}),t},url(e){const t=this.isField?`/${this.resource}`:"";return`${e}${t}`.replace("//","/")},openBrowser({initialFiles:e,multiple:t,limit:o,wrapper:a,resource:r,resourceId:s,attribute:i,singleDisk:l,permissions:c,flexibleGroup:d,callback:u,usePintura:p,pinturaOptions:m,cropperOptions:v,component:f}){this.isField=!0,this.multiple=t,this.limit=o,this.wrapper=a,this.resource=r,this.resourceId=s,this.attribute=i,this.singleDisk=l,this.flexibleGroup=d,this.callback=u,this.usePintura=p,this.pinturaOptions=m,this.cropperOptions=v,this.error=void 0,this.permissions=c,this.disk=void 0,this.component=f,this.openModal({name:Lr}),this.setSelection({files:[...e]})},closeBrowser(){this.isField=!1,this.multiple=void 0,this.limit=void 0,this.wrapper=void 0,this.resource=void 0,this.resourceId=void 0,this.attribute=void 0,this.singleDisk=!1,this.flexibleGroup=[],this.callback=void 0,this.usePintura=!1,this.pinturaOptions={},this.cropperOptions={},this.error=void 0,this.permissions=void 0,this.disk=void 0,this.setSelection({files:[]}),this.closeModal({name:Lr})},confirm(){this.callback&&this.callback(this.selection),this.closeBrowser()},prepareTool({singleDisk:e,permissions:t,tour:o,usePintura:a,pinturaOptions:r,cropperOptions:s}){this.init(),this.clearSelection(),this.limit=void 0,this.isField=!1,this.multiple=!0,this.singleDisk=e,this.permissions=t,this.tour=o,this.usePintura=a,this.pinturaOptions=r,this.cropperOptions=s,this.error=void 0}},getters:{isOpen(){return e=>e===_r?!!this.preview:this.modals.includes(e)},isSelected(){return e=>!!this.selection?.find(t=>t.id===e.id)},isBrowserOpen(e){return e.modals.includes(Lr)}}}),bl=n.defineComponent({__name:"FieldCard",props:{file:{},detail:{type:Boolean,default:!1},field:{},onDeselect:{}},setup(e){const t=e,o=Re(),a=n.computed(()=>o.singleDisk),r=i=>o.preview=i,s=i=>{t.detail&&i.exists&&r(i)};return(i,l)=>(n.openBlock(),n.createBlock(Br,{file:i.file,selected:!1,"on-deselect":i.onDeselect,"single-disk":a.value,"field-mode":!0,onClick:l[0]||(l[0]=n.withModifiers(c=>s(i.file),["prevent","stop"]))},null,8,["file","on-deselect","single-disk"]))}});function Xe(e,t,...o){if(e in t){let r=t[e];return typeof r=="function"?r(...o):r}let a=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,Xe),a}var Nt=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Nt||{}),En=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(En||{});function Pe({visible:e=!0,features:t=0,ourProps:o,theirProps:a,...r}){var s;let i=wl(a,o),l=Object.assign(r,{props:i});if(e||t&2&&i.static)return ti(l);if(t&1){let c=(s=i.unmount)==null||s?0:1;return Xe(c,{[0](){return null},[1](){return ti({...r,props:{...i,hidden:!0,style:{display:"none"}}})}})}return ti(l)}function ti({props:e,attrs:t,slots:o,slot:a,name:r}){var s,i;let{as:l,...c}=Va(e,["unmount","static"]),d=(s=o.default)==null?void 0:s.call(o,a),u={};if(a){let p=!1,m=[];for(let[v,f]of Object.entries(a))typeof f=="boolean"&&(p=!0),f===!0&&m.push(v);p&&(u["data-headlessui-state"]=m.join(" "))}if(l==="template"){if(d=El(d??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[p,...m]=d??[];if(!Ig(p)||m.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${r} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(h=>h.trim()).filter((h,y,b)=>b.indexOf(h)===y).sort((h,y)=>h.localeCompare(y)).map(h=>` - ${h}`).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...o){const a=new this(t);return o.forEach(r=>a.set(r)),a}static accessor(t){const a=(this[ol]=this[ol]={accessors:{}}).accessors,r=this.prototype;function s(i){const l=Uo(i);a[l]||(Gv(r,i),a[l]=!0)}return z.isArray(t)?t.forEach(s):s(t),this}}Pa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.freezeMethods(Pa.prototype),z.freezeMethods(Pa);const on=Pa;function Jr(e,t){const o=this||Kr,a=t||o,r=on.from(a.headers);let s=a.data;return z.forEach(e,function(l){s=l.call(o,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function al(e){return!!(e&&e.__CANCEL__)}function Ho(e,t,o){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,o),this.name="CanceledError"}z.inherits(Ho,Oe,{__CANCEL__:!0});function Wv(e,t,o){const a=o.config.validateStatus;!o.status||!a||a(o.status)?e(o):t(new Oe("Request failed with status code "+o.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const Xv=Kt.isStandardBrowserEnv?function(){return{write:function(o,a,r,s,i,l){const c=[];c.push(o+"="+encodeURIComponent(a)),z.isNumber(r)&&c.push("expires="+new Date(r).toGMTString()),z.isString(s)&&c.push("path="+s),z.isString(i)&&c.push("domain="+i),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(o){const a=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(o){this.write(o,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Kv(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Yv(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function rl(e,t){return e&&!Kv(t)?Yv(e,t):t}const Jv=Kt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let a;function r(s){let i=s;return t&&(o.setAttribute("href",i),i=o.href),o.setAttribute("href",i),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return a=r(window.location.href),function(i){const l=z.isString(i)?r(i):i;return l.protocol===a.protocol&&l.host===a.host}}():function(){return function(){return!0}}();function Qv(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Zv(e,t){e=e||10;const o=new Array(e),a=new Array(e);let r=0,s=0,i;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),u=a[s];i||(i=d),o[r]=c,a[r]=d;let p=s,m=0;for(;p!==r;)m+=o[p++],p=p%e;if(r=(r+1)%e,r===s&&(s=(s+1)%e),d-i{const s=r.loaded,i=r.lengthComputable?r.total:void 0,l=s-o,c=a(l),d=s<=i;o=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:l,rate:c||void 0,estimated:c&&i&&d?(i-s)/c:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}const Ma={http:Ov,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(o,a){let r=e.data;const s=on.from(e.headers).normalize(),i=e.responseType;let l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}z.isFormData(r)&&(Kt.isStandardBrowserEnv||Kt.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let d=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(v+":"+f))}const u=rl(e.baseURL,e.url);d.open(e.method.toUpperCase(),$s(u,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function p(){if(!d)return;const v=on.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),h={data:!i||i==="text"||i==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:v,config:e,request:d};Wv(function(b){o(b),c()},function(b){a(b),c()},h),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(a(new Oe("Request aborted",Oe.ECONNABORTED,e,d)),d=null)},d.onerror=function(){a(new Oe("Network Error",Oe.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let f=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||tl;e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),a(new Oe(f,h.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,d)),d=null},Kt.isStandardBrowserEnv){const v=(e.withCredentials||Jv(u))&&e.xsrfCookieName&&Xv.read(e.xsrfCookieName);v&&s.set(e.xsrfHeaderName,v)}r===void 0&&s.setContentType(null),"setRequestHeader"in d&&z.forEach(s.toJSON(),function(f,h){d.setRequestHeader(h,f)}),z.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),i&&i!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",il(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",il(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=v=>{d&&(a(!v||v.type?new Ho(null,e,d):v),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=Qv(u);if(m&&Kt.protocols.indexOf(m)===-1){a(new Oe("Unsupported protocol "+m+":",Oe.ERR_BAD_REQUEST,e));return}d.send(r||null)})}};z.forEach(Ma,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qv={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let o,a;for(let r=0;re instanceof on?e.toJSON():e;function fo(e,t){t=t||{};const o={};function a(d,u,p){return z.isPlainObject(d)&&z.isPlainObject(u)?z.merge.call({caseless:p},d,u):z.isPlainObject(u)?z.merge({},u):z.isArray(u)?u.slice():u}function r(d,u,p){if(z.isUndefined(u)){if(!z.isUndefined(d))return a(void 0,d,p)}else return a(d,u,p)}function s(d,u){if(!z.isUndefined(u))return a(void 0,u)}function i(d,u){if(z.isUndefined(u)){if(!z.isUndefined(d))return a(void 0,d)}else return a(void 0,u)}function l(d,u,p){if(p in t)return a(d,u);if(p in e)return a(void 0,d)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(d,u)=>r(ll(d),ll(u),!0)};return z.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const p=c[u]||r,m=p(e[u],t[u],u);z.isUndefined(m)&&p!==l||(o[u]=m)}),o}const cl="1.3.4",Zr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Zr[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const dl={};Zr.transitional=function(t,o,a){function r(s,i){return"[Axios v"+cl+"] Transitional option '"+s+"'"+i+(a?". "+a:"")}return(s,i,l)=>{if(t===!1)throw new Oe(r(i," has been removed"+(o?" in "+o:"")),Oe.ERR_DEPRECATED);return o&&!dl[i]&&(dl[i]=!0,console.warn(r(i," has been deprecated since v"+o+" and will be removed in the near future"))),t?t(s,i,l):!0}};function $v(e,t,o){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let r=a.length;for(;r-- >0;){const s=a[r],i=t[s];if(i){const l=e[s],c=l===void 0||i(l,s,e);if(c!==!0)throw new Oe("option "+s+" must be "+c,Oe.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new Oe("Unknown option "+s,Oe.ERR_BAD_OPTION)}}const qr={assertOptions:$v,validators:Zr},yn=qr.validators;class Fa{constructor(t){this.defaults=t,this.interceptors={request:new el,response:new el}}request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=fo(this.defaults,o);const{transitional:a,paramsSerializer:r,headers:s}=o;a!==void 0&&qr.assertOptions(a,{silentJSONParsing:yn.transitional(yn.boolean),forcedJSONParsing:yn.transitional(yn.boolean),clarifyTimeoutError:yn.transitional(yn.boolean)},!1),r!==void 0&&qr.assertOptions(r,{encode:yn.function,serialize:yn.function},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let i;i=s&&z.merge(s.common,s[o.method]),i&&z.forEach(["delete","get","head","post","put","patch","common"],f=>{delete s[f]}),o.headers=on.concat(i,s);const l=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(o)===!1||(c=c&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const d=[];this.interceptors.response.forEach(function(h){d.push(h.fulfilled,h.rejected)});let u,p=0,m;if(!c){const f=[sl.bind(this),void 0];for(f.unshift.apply(f,l),f.push.apply(f,d),m=f.length,u=Promise.resolve(o);p{if(!a._listeners)return;let s=a._listeners.length;for(;s-- >0;)a._listeners[s](r);a._listeners=null}),this.promise.then=r=>{let s;const i=new Promise(l=>{a.subscribe(l),s=l}).then(r);return i.cancel=function(){a.unsubscribe(s)},i},t(function(s,i,l){a.reason||(a.reason=new Ho(s,i,l),o(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const o=this._listeners.indexOf(t);o!==-1&&this._listeners.splice(o,1)}static source(){let t;return{token:new $r(function(r){t=r}),cancel:t}}}const eg=$r;function tg(e){return function(o){return e.apply(null,o)}}function ng(e){return z.isObject(e)&&e.isAxiosError===!0}const ei={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ei).forEach(([e,t])=>{ei[t]=e});const og=ei;function ul(e){const t=new _a(e),o=Fs(_a.prototype.request,t);return z.extend(o,_a.prototype,t,{allOwnKeys:!0}),z.extend(o,t,null,{allOwnKeys:!0}),o.create=function(r){return ul(fo(e,r))},o}const $e=ul(Kr);$e.Axios=_a,$e.CanceledError=Ho,$e.CancelToken=eg,$e.isCancel=al,$e.VERSION=cl,$e.toFormData=Ra,$e.AxiosError=Oe,$e.Cancel=$e.CanceledError,$e.all=function(t){return Promise.all(t)},$e.spread=tg,$e.isAxiosError=ng,$e.mergeConfig=fo,$e.AxiosHeaders=on,$e.formToJSON=e=>nl(z.isHTMLForm(e)?new FormData(e):e),$e.HttpStatusCode=og,$e.default=$e;const La=$e;function ag(e){return e==null}var rg=ag;function fl(){return document.head.querySelector('meta[name="csrf-token"]')?.content??!1}function pl(){const e=La.create();return e.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",e.defaults.headers.common["X-CSRF-TOKEN"]=fl(),e.interceptors.response.use(t=>t,t=>{if(La.isCancel(t))return Promise.reject(t);const o=t.response,{status:a,data:{redirect:r}}=o;if(a>=500&&window.Nova.$emit("error",t.response.data.message),a===401){if(!rg(r)){location.href=r;return}window.Nova.redirectToLogin()}return a===403&&window.Nova.visit("/403"),a===419&&window.Nova.$emit("token-expired"),Promise.reject(t)}),e}function ig(e){return function(t){return e?.[t]}}var sg=ig,lg=sg,cg={"&":"&","<":"<",">":">",'"':""","'":"'"},dg=lg(cg),ug=dg;function fg(e,t){for(var o=-1,a=e==null?0:e.length,r=Array(a);++o"']/g,kg=RegExp(yl.source);function Tg(e){return e=Cg(e),e&&kg.test(e)?e.replace(yl,Og):e}var Ng=Tg;function bn(e,t){if(e==null)return e;let o=t?.escape?Ng(e):e;return o=o.trim().replace(/ /g," ").replace(/\/{2,}/g,"/"),o}const Re=Tr("nova-file-manager/browser",{state:()=>({path:void 0,disk:void 0,disks:void 0,page:void 0,search:void 0,perPage:15,perPageOptions:Ms(10,50,10),view:"grid",modals:[],callback:()=>{},files:void 0,folders:void 0,breadcrumbs:void 0,pagination:void 0,error:void 0,selection:void 0,preview:void 0,limit:void 0,wrapper:void 0,queue:[],multiple:void 0,ready:!1,isField:!1,isFetchingDisks:!1,isFetchingData:!1,isUploading:!1,loadingOperation:void 0,dark:void 0,tour:!1,resource:void 0,resourceId:void 0,attribute:void 0,singleDisk:!1,flexibleGroup:[],fieldInit:void 0,permissions:{folder:{create:!0,rename:!0,delete:!0},file:{upload:!0,rename:!0,edit:!0,delete:!0,unzip:!0}},chunkSize:50*1024*1024,usePintura:!1,pinturaOptions:{},cropperOptions:{}}),actions:{init(){this.ready||(this.syncDarkMode(),this.loadFromLocalStorage(),this.loadFromQueryString(),this.ready=!0)},syncDarkMode(){this.dark===void 0&&(this.dark=document.documentElement.classList.contains("dark")),window.Nova.$on("nova-theme-switched",({theme:e})=>{this.dark=e==="dark"})},loadFromLocalStorage(){if(this.isField)return;["perPage","view","disk"].forEach(t=>{const o=window?.localStorage.getItem(`nova-file-manager/${t}`);o&&o.length&&this.$patch({[t]:o})})},loadFromQueryString(){if(this.isField)return;const e=Object.fromEntries(new URLSearchParams(window?.location.search).entries());for(const[t,o]of Object.entries(e))["path","disk","page","perPage"].includes(t)&&this.$patch({[t]:o});window.location.href.includes("?")||(this.path="/")},saveToLocalStorage({values:e}){if(!(this.isField||!e))for(const[t,o]of Object.entries(e))o&&window?.localStorage.setItem(`nova-file-manager/${t}`,o.toString())},selectFile({file:e}){if(!this.selection){this.selection=[e];return}this.selection.push(e)},deselectFile({file:e}){this.selection=this.selection?.filter(t=>t.id!==e.id)},setSelection({files:e}){this.selection=e},clearSelection(){this.setSelection({files:void 0})},toggleSelection({file:e}){if(this.isSelected(e)){this.deselectFile({file:e});return}this.multiple||this.clearSelection(),this.selectFile({file:e})},openModal({name:e}){this.modals.unshift(e)},closeModal({name:e}){e===_r&&(this.preview=void 0),this.modals=this.modals.filter(t=>t!==e),this.resetError(),this.fixPortal()},setError({attribute:e,bag:t}){this.error={attribute:e,bag:t}},resetError(){this.error=void 0},queueFile({file:e}){this.queue.push({id:e.name,ratio:0,status:null,file:e,isImage:e.type.includes("image")??!1})},clearQueue(){this.queue=[]},updateQueue({id:e,ratio:t=100,status:o=null}){this.queue=this.queue.map(r=>r.id===e?{...r,status:o,ratio:t}:r),this.queue.reduce((r,s)=>r&&s.ratio===100,!0)&&this.queue.length&&setTimeout(async()=>{this.closeModal({name:Gm}),this.closeModal({name:Lo}),this.clearQueue(),this.isUploading=!1,await this.data()},1e3)},fixPortal(){this.modals.length||this.preview||setTimeout(()=>{document.documentElement.style.removeProperty("overflow"),document.documentElement.style.removeProperty("padding-right")},200)},setQueryString({parameters:e}){if(this.isField)return;const t=new URLSearchParams(window.location.search),o=window.Nova.app.config.globalProperties.$inertia.page;for(const[a,r]of Object.entries(e)){const s=r?.toString();if(!s){t.delete(a);continue}s?.length>0&&t.set(a,s)}if(o.url!==`${window.location.pathname}?${t}`){o.url=`${window.location.pathname}?${t}`;const a=t.toString().length>0?"?":"";window.history.pushState(o,"",`${window.location.pathname}${a}${t}`)}},reset(){["page","search","path"].forEach(t=>{this.$patch({[t]:null})})},async setPath({path:e}){this.reset(),this.path=e,this.setQueryString({parameters:{page:null,search:null,path:e}})},async setDisk({disk:e}){this.reset(),this.disk=e,this.setQueryString({parameters:{disk:e}}),this.saveToLocalStorage({values:{disk:e,page:null,search:null,path:null}})},async setPerPage({perPage:e}){this.perPage=e,this.page=1,this.setQueryString({parameters:{perPage:e}}),this.saveToLocalStorage({values:{perPage:e}})},async setPage({page:e}){this.page=e,this.setQueryString({parameters:{page:e}})},setView({view:e}){this.view=e,this.saveToLocalStorage({values:{view:e}})},setSearch({search:e}){this.search=e,this.setQueryString({parameters:{search:e}})},setPreview({preview:e}){this.preview=e},async deleteSelectedFiles(){await this.deleteFiles({paths:this.selection?.map(e=>e.path)??[]})},async data(){this.isFetchingData=!0;const{data:e}=await this.get({params:this.payload({path:this.path,page:this.page,perPage:this.perPage,search:this.search})});this.disk=e.disk,this.folders=e.folders,this.breadcrumbs=e.breadcrumbs,this.files=e.files,this.pagination=e.pagination,this.isFetchingData=!1},async getDisks(){this.isFetchingDisks=!0;const{data:e}=await this.get({path:vn.DISKS});this.disks=e,this.isFetchingDisks=!1},async createFolder({path:e}){await co({operation:Xt.CREATE_FOLDER,modal:Mt.CREATE_FOLDER,endpoint:vn.CREATE_FOLDER,data:this.payload({path:bn(`${this.path??""}/${bn(e)}`,{escape:!1})})})},async renameFolder({id:e,from:t,to:o}){await co({operation:Xt.RENAME_FOLDER,modal:`${Mt.RENAME_FOLDER}-${e}`,endpoint:vn.RENAME_FOLDER,data:this.payload({path:this.path,from:bn(t,{escape:!1}),to:bn(`${this.path??""}/${bn(o)}`,{escape:!1})})})},async deleteFolder({id:e,path:t}){await co({operation:Xt.DELETE_FOLDER,modal:`${Mt.DELETE_FOLDER}-${e}`,endpoint:vn.DELETE_FOLDER,data:this.payload({path:t})})},upload({files:e}){this.isUploading=!0;const t=new zm({permanentErrors:[400,404,409,415,419,422,500,501],chunkSize:this.chunkSize,maxChunkRetries:5,chunkRetryInterval:1e3,simultaneousUploads:1,testChunks:!1,target:this.url(vn.UPLOAD),query:this.payload({path:this.path??"/"}),headers:{Accept:"application/json","X-CSRF-TOKEN":fl()}});e.forEach(o=>{t.addFile(o),this.queueFile({file:o})}),t.on("fileAdded",()=>t.upload()),t.on("fileSuccess",o=>{this.updateQueue({id:o.fileName,status:!0})}),t.on("fileProgress",o=>{this.updateQueue({id:o.fileName,ratio:Math.floor(o.progress(!1)*100)})}),t.on("fileError",(o,a)=>{this.updateQueue({id:o.fileName,status:!1}),window.Nova.error(JSON.parse(a).message)})},async renameFile({id:e,from:t,to:o}){await co({operation:Xt.RENAME_FILE,modal:`${Mt.RENAME_FILE}-${e}`,endpoint:vn.RENAME_FILE,data:this.payload({path:this.path,from:bn(t,{escape:!1}),to:bn(`${this.path??""}/${bn(o)}`,{escape:!1})})})},async deleteFiles({paths:e}){e.length!==0&&await co({operation:Xt.DELETE_FILE,modal:Mt.DELETE_FILES,endpoint:vn.DELETE_FILE,data:this.payload({paths:e}),callback:()=>{this.preview=void 0,this.clearSelection()}})},async unzipFile({path:e}){await co({operation:Xt.UNZIP_FILE,endpoint:vn.UNZIP_FILE,data:this.payload({path:e}),callback:()=>{this.preview=void 0,this.clearSelection()}})},async get({path:e,params:t,options:o={}}){return await pl().get(this.url(`/nova-vendor/nova-file-manager${e??""}`),{params:t,...o})},async post({path:e,data:t}){return await pl().post(this.url(`/nova-vendor/nova-file-manager${e??""}`),t)},payload(e){let t={...e,attribute:this.attribute,resource:this.resource,fieldMode:this.isField};if(this.component?.length&&["Nova.Create","Nova.Update"].includes(this.component)){let o;switch(this.component){case"Nova.Create":o="create";break;case"Nova.Update":o="update";break}t={...t,editing:!0,editMode:o}}return this.wrapper?.length&&(t={...t,wrapper:this.wrapper}),this.resourceId&&(t={...t,resourceId:this.resourceId}),this.singleDisk||(t={...t,disk:this.disk}),this.isField&&this.flexibleGroup?.length&&(t={...t,flexible:this.flexibleGroup.join(".")}),t},url(e){const t=this.isField?`/${this.resource}`:"";return`${e}${t}`.replace("//","/")},openBrowser({initialFiles:e,multiple:t,limit:o,wrapper:a,resource:r,resourceId:s,attribute:i,singleDisk:l,permissions:c,flexibleGroup:d,callback:u,usePintura:p,pinturaOptions:m,cropperOptions:v,component:f}){this.isField=!0,this.multiple=t,this.limit=o,this.wrapper=a,this.resource=r,this.resourceId=s,this.attribute=i,this.singleDisk=l,this.flexibleGroup=d,this.callback=u,this.usePintura=p,this.pinturaOptions=m,this.cropperOptions=v,this.error=void 0,this.permissions=c,this.disk=void 0,this.component=f,this.openModal({name:Lr}),this.setSelection({files:[...e]})},closeBrowser(){this.isField=!1,this.multiple=void 0,this.limit=void 0,this.wrapper=void 0,this.resource=void 0,this.resourceId=void 0,this.attribute=void 0,this.singleDisk=!1,this.flexibleGroup=[],this.callback=void 0,this.usePintura=!1,this.pinturaOptions={},this.cropperOptions={},this.error=void 0,this.permissions=void 0,this.disk=void 0,this.setSelection({files:[]}),this.closeModal({name:Lr})},confirm(){this.callback&&this.callback(this.selection),this.closeBrowser()},prepareTool({singleDisk:e,permissions:t,tour:o,usePintura:a,pinturaOptions:r,cropperOptions:s}){this.init(),this.clearSelection(),this.limit=void 0,this.isField=!1,this.multiple=!0,this.singleDisk=e,this.permissions=t,this.tour=o,this.usePintura=a,this.pinturaOptions=r,this.cropperOptions=s,this.error=void 0}},getters:{isOpen(){return e=>e===_r?!!this.preview:this.modals.includes(e)},isSelected(){return e=>!!this.selection?.find(t=>t.id===e.id)},isBrowserOpen(e){return e.modals.includes(Lr)}}}),bl=n.defineComponent({__name:"FieldCard",props:{file:{},detail:{type:Boolean,default:!1},field:{},onDeselect:{}},setup(e){const t=e,o=Re(),a=n.computed(()=>o.singleDisk),r=i=>o.preview=i,s=i=>{t.detail&&i.exists&&r(i)};return(i,l)=>(n.openBlock(),n.createBlock(Br,{file:i.file,selected:!1,"on-deselect":i.onDeselect,"single-disk":a.value,"field-mode":!0,onClick:l[0]||(l[0]=n.withModifiers(c=>s(i.file),["prevent","stop"]))},null,8,["file","on-deselect","single-disk"]))}});function Xe(e,t,...o){if(e in t){let r=t[e];return typeof r=="function"?r(...o):r}let a=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,Xe),a}var Nt=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Nt||{}),En=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(En||{});function Pe({visible:e=!0,features:t=0,ourProps:o,theirProps:a,...r}){var s;let i=wl(a,o),l=Object.assign(r,{props:i});if(e||t&2&&i.static)return ti(l);if(t&1){let c=(s=i.unmount)==null||s?0:1;return Xe(c,{[0](){return null},[1](){return ti({...r,props:{...i,hidden:!0,style:{display:"none"}}})}})}return ti(l)}function ti({props:e,attrs:t,slots:o,slot:a,name:r}){var s,i;let{as:l,...c}=Va(e,["unmount","static"]),d=(s=o.default)==null?void 0:s.call(o,a),u={};if(a){let p=!1,m=[];for(let[v,f]of Object.entries(a))typeof f=="boolean"&&(p=!0),f===!0&&m.push(v);p&&(u["data-headlessui-state"]=m.join(" "))}if(l==="template"){if(d=El(d??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[p,...m]=d??[];if(!Ig(p)||m.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${r} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(h=>h.trim()).filter((h,y,b)=>b.indexOf(h)===y).sort((h,y)=>h.localeCompare(y)).map(h=>` - ${h}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>` - ${h}`).join(` `)].join(` `));let v=wl((i=p.props)!=null?i:{},c),f=n.cloneVNode(p,v);for(let h in v)h.startsWith("on")&&(f.props||(f.props={}),f.props[h]=v[h]);return f}return Array.isArray(d)&&d.length===1?d[0]:d}return n.h(l,Object.assign({},c,u),{default:()=>d})}function El(e){return e.flatMap(t=>t.type===n.Fragment?El(t.children):[t])}function wl(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},o={};for(let a of e)for(let r in a)r.startsWith("on")&&typeof a[r]=="function"?(o[r]!=null||(o[r]=[]),o[r].push(a[r])):t[r]=a[r];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(o).map(a=>[a,void 0])));for(let a in o)Object.assign(t,{[a](r,...s){let i=o[a];for(let l of i){if(r instanceof Event&&r.defaultPrevented)return;l(r,...s)}}});return t}function Dg(e){let t=Object.assign({},e);for(let o in t)t[o]===void 0&&delete t[o];return t}function Va(e,t=[]){let o=Object.assign({},e);for(let a of t)a in o&&delete o[a];return o}function Ig(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let Rg=0;function Ag(){return++Rg}function lt(){return Ag()}var be=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(be||{});function Bg(e){throw new Error("Unexpected object: "+e)}var De=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(De||{});function xl(e,t){let o=t.resolveItems();if(o.length<=0)return null;let a=t.resolveActiveIndex(),r=a??-1,s=(()=>{switch(e.focus){case 0:return o.findIndex(i=>!t.resolveDisabled(i));case 1:{let i=o.slice().reverse().findIndex((l,c,d)=>r!==-1&&d.length-c-1>=r?!1:!t.resolveDisabled(l));return i===-1?i:o.length-1-i}case 2:return o.findIndex((i,l)=>l<=r?!1:!t.resolveDisabled(i));case 3:{let i=o.slice().reverse().findIndex(l=>!t.resolveDisabled(l));return i===-1?i:o.length-1-i}case 4:return o.findIndex(i=>t.resolveId(i)===e.id);case 5:return null;default:Bg(e)}})();return s===-1?a:s}function ae(e){var t;return e==null||e.value==null?null:(t=e.value.$el)!=null?t:e.value}let Sl=Symbol("Context");var Le=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Le||{});function Pg(){return po()!==null}function po(){return n.inject(Sl,null)}function ja(e){n.provide(Sl,e)}function Ol(e,t){if(e)return e;let o=t??"button";if(typeof o=="string"&&o.toLowerCase()==="button")return"button"}function ni(e,t){let o=n.ref(Ol(e.value.type,e.value.as));return n.onMounted(()=>{o.value=Ol(e.value.type,e.value.as)}),n.watchEffect(()=>{var a;o.value||ae(t)&&ae(t)instanceof HTMLButtonElement&&!((a=ae(t))!=null&&a.hasAttribute("type"))&&(o.value="button")}),o}var Mg=Object.defineProperty,Fg=(e,t,o)=>t in e?Mg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Cl=(e,t,o)=>(Fg(e,typeof t!="symbol"?t+"":t,o),o);let _g=class{constructor(){Cl(this,"current",this.detect()),Cl(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},zo=new _g;function wn(e){if(zo.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=ae(e);if(t)return t.ownerDocument}return document}function kl({container:e,accept:t,walk:o,enabled:a}){n.watchEffect(()=>{let r=e.value;if(!r||a!==void 0&&!a.value)return;let s=wn(e);if(!s)return;let i=Object.assign(c=>t(c),{acceptNode:t}),l=s.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,i,!1);for(;l.nextNode();)o(l.currentNode)})}let oi=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Yt=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Yt||{}),Tl=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Tl||{}),Lg=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Lg||{});function Nl(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(oi)).sort((t,o)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(o.tabIndex||Number.MAX_SAFE_INTEGER)))}var ai=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ai||{});function ri(e,t=0){var o;return e===((o=wn(e))==null?void 0:o.body)?!1:Xe(t,{[0](){return e.matches(oi)},[1](){let a=e;for(;a!==null;){if(a.matches(oi))return!0;a=a.parentElement}return!1}})}function Dl(e){let t=wn(e);n.nextTick(()=>{t&&!ri(t.activeElement,0)&&xn(e)})}var Vg=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Vg||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function xn(e){e?.focus({preventScroll:!0})}let jg=["textarea","input"].join(",");function Ug(e){var t,o;return(o=(t=e?.matches)==null?void 0:t.call(e,jg))!=null?o:!1}function ii(e,t=o=>o){return e.slice().sort((o,a)=>{let r=t(o),s=t(a);if(r===null||s===null)return 0;let i=r.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Hg(e,t){return Go(Nl(),t,{relativeTo:e})}function Go(e,t,{sorted:o=!0,relativeTo:a=null,skipElements:r=[]}={}){var s;let i=(s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?s:document,l=Array.isArray(e)?o?ii(e):e:Nl(e);r.length>0&&l.length>1&&(l=l.filter(f=>!r.includes(f))),a=a??i.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(a))-1;if(t&4)return Math.max(0,l.indexOf(a))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},p=0,m=l.length,v;do{if(p>=m||p+m<=0)return 0;let f=d+p;if(t&16)f=(f+m)%m;else{if(f<0)return 3;if(f>=m)return 1}v=l[f],v?.focus(u),p+=c}while(v!==i.activeElement);return t&6&&Ug(v)&&v.select(),2}function Ua(e,t,o){zo.isServer||n.watchEffect(a=>{document.addEventListener(e,t,o),a(()=>document.removeEventListener(e,t,o))})}function Il(e,t,o){zo.isServer||n.watchEffect(a=>{window.addEventListener(e,t,o),a(()=>window.removeEventListener(e,t,o))})}function si(e,t,o=n.computed(()=>!0)){function a(s,i){if(!o.value||s.defaultPrevented)return;let l=i(s);if(l===null||!l.getRootNode().contains(l))return;let c=function d(u){return typeof u=="function"?d(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let d of c){if(d===null)continue;let u=d instanceof HTMLElement?d:ae(d);if(u!=null&&u.contains(l)||s.composed&&s.composedPath().includes(u))return}return!ri(l,ai.Loose)&&l.tabIndex!==-1&&s.preventDefault(),t(s,l)}let r=n.ref(null);Ua("pointerdown",s=>{var i,l;o.value&&(r.value=((l=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:l[0])||s.target)},!0),Ua("mousedown",s=>{var i,l;o.value&&(r.value=((l=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:l[0])||s.target)},!0),Ua("click",s=>{r.value&&(a(s,()=>r.value),r.value=null)},!0),Ua("touchend",s=>a(s,()=>s.target instanceof HTMLElement?s.target:null),!0),Il("blur",s=>a(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var Wo=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Wo||{});let Ha=n.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:o}){return()=>{let{features:a,...r}=e,s={"aria-hidden":(a&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(a&4)===4&&(a&2)!==2&&{display:"none"}}};return Pe({ourProps:s,theirProps:r,slot:{},attrs:o,slots:t,name:"Hidden"})}}});function Rl(e={},t=null,o=[]){for(let[a,r]of Object.entries(e))Bl(o,Al(t,a),r);return o}function Al(e,t){return e?e+"["+t+"]":t}function Bl(e,t,o){if(Array.isArray(o))for(let[a,r]of o.entries())Bl(e,Al(t,a.toString()),r);else o instanceof Date?e.push([t,o.toISOString()]):typeof o=="boolean"?e.push([t,o?"1":"0"]):typeof o=="string"?e.push([t,o]):typeof o=="number"?e.push([t,`${o}`]):o==null?e.push([t,""]):Rl(o,t,e)}function zg(e,t,o){let a=n.ref(o?.value),r=n.computed(()=>e.value!==void 0);return[n.computed(()=>r.value?e.value:a.value),function(s){return r.value||(a.value=s),t?.(s)}]}function Pl(e){return[e.screenX,e.screenY]}function Ml(){let e=n.ref([-1,-1]);return{wasMoved(t){let o=Pl(t);return e.value[0]===o[0]&&e.value[1]===o[1]?!1:(e.value=o,!0)},update(t){e.value=Pl(t)}}}function Fl(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Gg(){return/Android/gi.test(window.navigator.userAgent)}function Wg(){return Fl()||Gg()}function Xo(){let e=[],t={addEventListener(o,a,r,s){return o.addEventListener(a,r,s),t.add(()=>o.removeEventListener(a,r,s))},requestAnimationFrame(...o){let a=requestAnimationFrame(...o);t.add(()=>cancelAnimationFrame(a))},nextFrame(...o){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...o)})},setTimeout(...o){let a=setTimeout(...o);t.add(()=>clearTimeout(a))},style(o,a,r){let s=o.style.getPropertyValue(a);return Object.assign(o.style,{[a]:r}),this.add(()=>{Object.assign(o.style,{[a]:s})})},group(o){let a=Xo();return o(a),this.add(()=>a.dispose())},add(o){return e.push(o),()=>{let a=e.indexOf(o);if(a>=0)for(let r of e.splice(a,1))r()}},dispose(){for(let o of e.splice(0))o()}};return t}function Xg(e,t){return e===t}var Kg=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Kg||{}),Yg=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Yg||{}),Jg=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Jg||{});let _l=Symbol("ComboboxContext");function ho(e){let t=n.inject(_l,null);if(t===null){let o=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,ho),o}return t}let Qg=n.defineComponent({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>Xg},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:o,emit:a}){let r=n.ref(1),s=n.ref(null),i=n.ref(null),l=n.ref(null),c=n.ref(null),d=n.ref({static:!1,hold:!1}),u=n.ref([]),p=n.ref(null),m=n.ref(1),v=n.ref(!1);function f(A=D=>D){let D=p.value!==null?u.value[p.value]:null,M=ii(A(u.value.slice()),W=>ae(W.dataRef.domRef)),L=D?M.indexOf(D):null;return L===-1&&(L=null),{options:M,activeOptionIndex:L}}let h=n.computed(()=>e.multiple?1:0),y=n.computed(()=>e.nullable),[b,g]=zg(n.computed(()=>e.modelValue===void 0?Xe(h.value,{[1]:[],[0]:void 0}):e.modelValue),A=>a("update:modelValue",A),n.computed(()=>e.defaultValue)),k=null,O=null,S={comboboxState:r,value:b,mode:h,compare(A,D){if(typeof e.by=="string"){let M=e.by;return A?.[M]===D?.[M]}return e.by(A,D)},defaultValue:n.computed(()=>e.defaultValue),nullable:y,inputRef:i,labelRef:s,buttonRef:l,optionsRef:c,disabled:n.computed(()=>e.disabled),options:u,change(A){g(A)},activeOptionIndex:n.computed(()=>{if(v.value&&p.value===null&&u.value.length>0){let A=u.value.findIndex(D=>!D.dataRef.disabled);A!==-1&&(p.value=A)}return p.value}),activationTrigger:m,optionsPropsRef:d,closeCombobox(){v.value=!1,!e.disabled&&r.value!==1&&(r.value=1,p.value=null)},openCombobox(){if(v.value=!0,e.disabled||r.value===0)return;let A=u.value.findIndex(D=>{let M=n.toRaw(D.dataRef.value);return Xe(h.value,{[0]:()=>S.compare(n.toRaw(S.value.value),n.toRaw(M)),[1]:()=>n.toRaw(S.value.value).some(L=>S.compare(n.toRaw(L),n.toRaw(M)))})});A!==-1&&(p.value=A),r.value=0},goToOption(A,D,M){k!==null&&cancelAnimationFrame(k),k=requestAnimationFrame(()=>{if(v.value=!1,e.disabled||c.value&&!d.value.static&&r.value===1)return;let L=f();if(L.activeOptionIndex===null){let _=L.options.findIndex(G=>!G.dataRef.disabled);_!==-1&&(L.activeOptionIndex=_)}let W=xl(A===De.Specific?{focus:De.Specific,id:D}:{focus:A},{resolveItems:()=>L.options,resolveActiveIndex:()=>L.activeOptionIndex,resolveId:_=>_.id,resolveDisabled:_=>_.dataRef.disabled});p.value=W,m.value=M??1,u.value=L.options})},selectOption(A){let D=u.value.find(L=>L.id===A);if(!D)return;let{dataRef:M}=D;g(Xe(h.value,{[0]:()=>M.value,[1]:()=>{let L=n.toRaw(S.value.value).slice(),W=n.toRaw(M.value),_=L.findIndex(G=>S.compare(W,n.toRaw(G)));return _===-1?L.push(W):L.splice(_,1),L}}))},selectActiveOption(){if(S.activeOptionIndex.value===null)return;let{dataRef:A,id:D}=u.value[S.activeOptionIndex.value];g(Xe(h.value,{[0]:()=>A.value,[1]:()=>{let M=n.toRaw(S.value.value).slice(),L=n.toRaw(A.value),W=M.findIndex(_=>S.compare(L,n.toRaw(_)));return W===-1?M.push(L):M.splice(W,1),M}})),S.goToOption(De.Specific,D)},registerOption(A,D){O&&cancelAnimationFrame(O);let M={id:A,dataRef:D},L=f(W=>(W.push(M),W));if(p.value===null){let W=D.value.value;Xe(h.value,{[0]:()=>S.compare(n.toRaw(S.value.value),n.toRaw(W)),[1]:()=>n.toRaw(S.value.value).some(_=>S.compare(n.toRaw(_),n.toRaw(W)))})&&(L.activeOptionIndex=L.options.indexOf(M))}u.value=L.options,p.value=L.activeOptionIndex,m.value=1,L.options.some(W=>!ae(W.dataRef.domRef))&&(O=requestAnimationFrame(()=>{let W=f();u.value=W.options,p.value=W.activeOptionIndex}))},unregisterOption(A){var D;S.activeOptionIndex.value!==null&&((D=S.options.value[S.activeOptionIndex.value])==null?void 0:D.id)===A&&(v.value=!0);let M=f(L=>{let W=L.findIndex(_=>_.id===A);return W!==-1&&L.splice(W,1),L});u.value=M.options,p.value=M.activeOptionIndex,m.value=1}};si([i,l,c],()=>S.closeCombobox(),n.computed(()=>r.value===0)),n.provide(_l,S),ja(n.computed(()=>Xe(r.value,{[0]:Le.Open,[1]:Le.Closed})));let N=n.computed(()=>S.activeOptionIndex.value===null?null:u.value[S.activeOptionIndex.value].dataRef.value),F=n.computed(()=>{var A;return(A=ae(i))==null?void 0:A.closest("form")});return n.onMounted(()=>{n.watch([F],()=>{if(!F.value||e.defaultValue===void 0)return;function A(){S.change(e.defaultValue)}return F.value.addEventListener("reset",A),()=>{var D;(D=F.value)==null||D.removeEventListener("reset",A)}},{immediate:!0})}),()=>{let{name:A,disabled:D,form:M,...L}=e,W={open:r.value===0,disabled:D,activeIndex:S.activeOptionIndex.value,activeOption:N.value,value:b.value};return n.h(n.Fragment,[...A!=null&&b.value!=null?Rl({[A]:b.value}).map(([_,G])=>n.h(Ha,Dg({features:Wo.Hidden,key:_,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:M,name:_,value:G}))):[],Pe({theirProps:{...o,...Va(L,["modelValue","defaultValue","nullable","multiple","onUpdate:modelValue","by"])},ourProps:{},slot:W,slots:t,attrs:o,name:"Combobox"})])}}});n.defineComponent({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:()=>`headlessui-combobox-label-${lt()}`}},setup(e,{attrs:t,slots:o}){let a=ho("ComboboxLabel");function r(){var s;(s=ae(a.inputRef))==null||s.focus({preventScroll:!0})}return()=>{let s={open:a.comboboxState.value===0,disabled:a.disabled.value},{id:i,...l}=e,c={id:i,ref:a.labelRef,onClick:r};return Pe({ourProps:c,theirProps:l,slot:s,attrs:t,slots:o,name:"ComboboxLabel"})}}}),n.defineComponent({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:()=>`headlessui-combobox-button-${lt()}`}},setup(e,{attrs:t,slots:o,expose:a}){let r=ho("ComboboxButton");a({el:r.buttonRef,$el:r.buttonRef});function s(c){r.disabled.value||(r.comboboxState.value===0?r.closeCombobox():(c.preventDefault(),r.openCombobox()),n.nextTick(()=>{var d;return(d=ae(r.inputRef))==null?void 0:d.focus({preventScroll:!0})}))}function i(c){switch(c.key){case be.ArrowDown:c.preventDefault(),c.stopPropagation(),r.comboboxState.value===1&&r.openCombobox(),n.nextTick(()=>{var d;return(d=r.inputRef.value)==null?void 0:d.focus({preventScroll:!0})});return;case be.ArrowUp:c.preventDefault(),c.stopPropagation(),r.comboboxState.value===1&&(r.openCombobox(),n.nextTick(()=>{r.value.value||r.goToOption(De.Last)})),n.nextTick(()=>{var d;return(d=r.inputRef.value)==null?void 0:d.focus({preventScroll:!0})});return;case be.Escape:if(r.comboboxState.value!==0)return;c.preventDefault(),r.optionsRef.value&&!r.optionsPropsRef.value.static&&c.stopPropagation(),r.closeCombobox(),n.nextTick(()=>{var d;return(d=r.inputRef.value)==null?void 0:d.focus({preventScroll:!0})});return}}let l=ni(n.computed(()=>({as:e.as,type:t.type})),r.buttonRef);return()=>{var c,d;let u={open:r.comboboxState.value===0,disabled:r.disabled.value,value:r.value.value},{id:p,...m}=e,v={ref:r.buttonRef,id:p,type:l.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(c=ae(r.optionsRef))==null?void 0:c.id,"aria-expanded":r.comboboxState.value===0,"aria-labelledby":r.labelRef.value?[(d=ae(r.labelRef))==null?void 0:d.id,p].join(" "):void 0,disabled:r.disabled.value===!0?!0:void 0,onKeydown:i,onClick:s};return Pe({ourProps:v,theirProps:m,slot:u,attrs:t,slots:o,name:"ComboboxButton"})}}});let Zg=n.defineComponent({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:()=>`headlessui-combobox-input-${lt()}`}},emits:{change:e=>!0},setup(e,{emit:t,attrs:o,slots:a,expose:r}){let s=ho("ComboboxInput"),i={value:!1};r({el:s.inputRef,$el:s.inputRef});let l=n.computed(()=>{var h;let y=s.value.value;return ae(s.inputRef)?typeof e.displayValue<"u"&&y!==void 0?(h=e.displayValue(y))!=null?h:"":typeof y=="string"?y:"":""});n.onMounted(()=>{n.watch([l,s.comboboxState],([h,y],[b,g])=>{if(i.value)return;let k=ae(s.inputRef);k&&((g===0&&y===1||h!==b)&&(k.value=h),requestAnimationFrame(()=>{if(i.value||!k)return;let{selectionStart:O,selectionEnd:S}=k;Math.abs((S??0)-(O??0))===0&&O===0&&k.setSelectionRange(k.value.length,k.value.length)}))},{immediate:!0}),n.watch([s.comboboxState],([h],[y])=>{if(h===0&&y===1){if(i.value)return;let b=ae(s.inputRef);if(!b)return;let g=b.value,{selectionStart:k,selectionEnd:O,selectionDirection:S}=b;b.value="",b.value=g,S!==null?b.setSelectionRange(k,O,S):b.setSelectionRange(k,O)}})});let c=n.ref(!1);function d(){c.value=!0}function u(){Xo().nextFrame(()=>{c.value=!1})}function p(h){switch(i.value=!0,h.key){case be.Backspace:case be.Delete:if(s.mode.value!==0||!s.nullable.value)return;let y=h.currentTarget;requestAnimationFrame(()=>{if(y.value===""){s.change(null);let b=ae(s.optionsRef);b&&(b.scrollTop=0),s.goToOption(De.Nothing)}});break;case be.Enter:if(i.value=!1,s.comboboxState.value!==0||c.value)return;if(h.preventDefault(),h.stopPropagation(),s.activeOptionIndex.value===null){s.closeCombobox();return}s.selectActiveOption(),s.mode.value===0&&s.closeCombobox();break;case be.ArrowDown:return i.value=!1,h.preventDefault(),h.stopPropagation(),Xe(s.comboboxState.value,{[0]:()=>s.goToOption(De.Next),[1]:()=>s.openCombobox()});case be.ArrowUp:return i.value=!1,h.preventDefault(),h.stopPropagation(),Xe(s.comboboxState.value,{[0]:()=>s.goToOption(De.Previous),[1]:()=>{s.openCombobox(),n.nextTick(()=>{s.value.value||s.goToOption(De.Last)})}});case be.Home:if(h.shiftKey)break;return i.value=!1,h.preventDefault(),h.stopPropagation(),s.goToOption(De.First);case be.PageUp:return i.value=!1,h.preventDefault(),h.stopPropagation(),s.goToOption(De.First);case be.End:if(h.shiftKey)break;return i.value=!1,h.preventDefault(),h.stopPropagation(),s.goToOption(De.Last);case be.PageDown:return i.value=!1,h.preventDefault(),h.stopPropagation(),s.goToOption(De.Last);case be.Escape:if(i.value=!1,s.comboboxState.value!==0)return;h.preventDefault(),s.optionsRef.value&&!s.optionsPropsRef.value.static&&h.stopPropagation(),s.closeCombobox();break;case be.Tab:if(i.value=!1,s.comboboxState.value!==0)return;s.mode.value===0&&s.selectActiveOption(),s.closeCombobox();break}}function m(h){t("change",h),s.openCombobox()}function v(){i.value=!1}let f=n.computed(()=>{var h,y,b,g;return(g=(b=(y=e.defaultValue)!=null?y:s.defaultValue.value!==void 0?(h=e.displayValue)==null?void 0:h.call(e,s.defaultValue.value):null)!=null?b:s.defaultValue.value)!=null?g:""});return()=>{var h,y,b,g,k,O;let S={open:s.comboboxState.value===0},{id:N,displayValue:F,onChange:A,...D}=e,M={"aria-controls":(h=s.optionsRef.value)==null?void 0:h.id,"aria-expanded":s.comboboxState.value===0,"aria-activedescendant":s.activeOptionIndex.value===null||(y=s.options.value[s.activeOptionIndex.value])==null?void 0:y.id,"aria-labelledby":(k=(b=ae(s.labelRef))==null?void 0:b.id)!=null?k:(g=ae(s.buttonRef))==null?void 0:g.id,"aria-autocomplete":"list",id:N,onCompositionstart:d,onCompositionend:u,onKeydown:p,onInput:m,onBlur:v,role:"combobox",type:(O=o.type)!=null?O:"text",tabIndex:0,ref:s.inputRef,defaultValue:f.value,disabled:s.disabled.value===!0?!0:void 0};return Pe({ourProps:M,theirProps:D,slot:S,attrs:o,slots:a,features:Nt.RenderStrategy|Nt.Static,name:"ComboboxInput"})}}}),qg=n.defineComponent({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:o,expose:a}){let r=ho("ComboboxOptions"),s=`headlessui-combobox-options-${lt()}`;a({el:r.optionsRef,$el:r.optionsRef}),n.watchEffect(()=>{r.optionsPropsRef.value.static=e.static}),n.watchEffect(()=>{r.optionsPropsRef.value.hold=e.hold});let i=po(),l=n.computed(()=>i!==null?(i.value&Le.Open)===Le.Open:r.comboboxState.value===0);return kl({container:n.computed(()=>ae(r.optionsRef)),enabled:n.computed(()=>r.comboboxState.value===0),accept(c){return c.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:c.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(c){c.setAttribute("role","none")}}),()=>{var c,d,u;let p={open:r.comboboxState.value===0},m={"aria-labelledby":(u=(c=ae(r.labelRef))==null?void 0:c.id)!=null?u:(d=ae(r.buttonRef))==null?void 0:d.id,id:s,ref:r.optionsRef,role:"listbox","aria-multiselectable":r.mode.value===1?!0:void 0},v=Va(e,["hold"]);return Pe({ourProps:m,theirProps:v,slot:p,attrs:t,slots:o,features:Nt.RenderStrategy|Nt.Static,visible:l.value,name:"ComboboxOptions"})}}}),Ll=n.defineComponent({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:o,expose:a}){let r=ho("ComboboxOption"),s=`headlessui-combobox-option-${lt()}`,i=n.ref(null);a({el:i,$el:i});let l=n.computed(()=>r.activeOptionIndex.value!==null?r.options.value[r.activeOptionIndex.value].id===s:!1),c=n.computed(()=>Xe(r.mode.value,{[0]:()=>r.compare(n.toRaw(r.value.value),n.toRaw(e.value)),[1]:()=>n.toRaw(r.value.value).some(y=>r.compare(n.toRaw(y),n.toRaw(e.value)))})),d=n.computed(()=>({disabled:e.disabled,value:e.value,domRef:i}));n.onMounted(()=>r.registerOption(s,d)),n.onUnmounted(()=>r.unregisterOption(s)),n.watchEffect(()=>{r.comboboxState.value===0&&l.value&&r.activationTrigger.value!==0&&n.nextTick(()=>{var y,b;return(b=(y=ae(i))==null?void 0:y.scrollIntoView)==null?void 0:b.call(y,{block:"nearest"})})});function u(y){if(e.disabled)return y.preventDefault();r.selectOption(s),r.mode.value===0&&r.closeCombobox(),Wg()||requestAnimationFrame(()=>{var b;return(b=ae(r.inputRef))==null?void 0:b.focus()})}function p(){if(e.disabled)return r.goToOption(De.Nothing);r.goToOption(De.Specific,s)}let m=Ml();function v(y){m.update(y)}function f(y){m.wasMoved(y)&&(e.disabled||l.value||r.goToOption(De.Specific,s,0))}function h(y){m.wasMoved(y)&&(e.disabled||l.value&&(r.optionsPropsRef.value.hold||r.goToOption(De.Nothing)))}return()=>{let{disabled:y}=e,b={active:l.value,selected:c.value,disabled:y},g={id:s,ref:i,role:"option",tabIndex:y===!0?void 0:-1,"aria-disabled":y===!0?!0:void 0,"aria-selected":c.value,disabled:void 0,onClick:u,onFocus:p,onPointerenter:v,onMouseenter:v,onPointermove:f,onMousemove:f,onPointerleave:h,onMouseleave:h};return Pe({ourProps:g,theirProps:e,slot:b,attrs:o,slots:t,name:"ComboboxOption"})}}});var Ko=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ko||{});function $g(){let e=n.ref(0);return Il("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function Vl(e,t,o,a){zo.isServer||n.watchEffect(r=>{e=e??window,e.addEventListener(t,o,a),r(()=>e.removeEventListener(t,o,a))})}function jl(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ey(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function Ul(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let o of e.value){let a=ae(o);a instanceof HTMLElement&&t.add(a)}return t}var Hl=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Hl||{});let Yo=Object.assign(n.defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:n.ref(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:o,expose:a}){let r=n.ref(null);a({el:r,$el:r});let s=n.computed(()=>wn(r)),i=n.ref(!1);n.onMounted(()=>i.value=!0),n.onUnmounted(()=>i.value=!1),ny({ownerDocument:s},n.computed(()=>i.value&&Boolean(e.features&16)));let l=oy({ownerDocument:s,container:r,initialFocus:n.computed(()=>e.initialFocus)},n.computed(()=>i.value&&Boolean(e.features&2)));ay({ownerDocument:s,container:r,containers:e.containers,previousActiveElement:l},n.computed(()=>i.value&&Boolean(e.features&8)));let c=$g();function d(v){let f=ae(r);f&&(h=>h())(()=>{Xe(c.value,{[Ko.Forwards]:()=>{Go(f,Yt.First,{skipElements:[v.relatedTarget]})},[Ko.Backwards]:()=>{Go(f,Yt.Last,{skipElements:[v.relatedTarget]})}})})}let u=n.ref(!1);function p(v){v.key==="Tab"&&(u.value=!0,requestAnimationFrame(()=>{u.value=!1}))}function m(v){if(!i.value)return;let f=Ul(e.containers);ae(r)instanceof HTMLElement&&f.add(ae(r));let h=v.relatedTarget;h instanceof HTMLElement&&h.dataset.headlessuiFocusGuard!=="true"&&(zl(f,h)||(u.value?Go(ae(r),Xe(c.value,{[Ko.Forwards]:()=>Yt.Next,[Ko.Backwards]:()=>Yt.Previous})|Yt.WrapAround,{relativeTo:v.target}):v.target instanceof HTMLElement&&xn(v.target)))}return()=>{let v={},f={ref:r,onKeydown:p,onFocusout:m},{features:h,initialFocus:y,containers:b,...g}=e;return n.h(n.Fragment,[Boolean(h&4)&&n.h(Ha,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:Wo.Focusable}),Pe({ourProps:f,theirProps:{...t,...g},slot:v,attrs:t,slots:o,name:"FocusTrap"}),Boolean(h&4)&&n.h(Ha,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:Wo.Focusable})])}}}),{features:Hl}),Ln=[];ey(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Ln[0]!==t.target&&(Ln.unshift(t.target),Ln=Ln.filter(o=>o!=null&&o.isConnected),Ln.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function ty(e){let t=n.ref(Ln.slice());return n.watch([e],([o],[a])=>{a===!0&&o===!1?jl(()=>{t.value.splice(0)}):a===!1&&o===!0&&(t.value=Ln.slice())},{flush:"post"}),()=>{var o;return(o=t.value.find(a=>a!=null&&a.isConnected))!=null?o:null}}function ny({ownerDocument:e},t){let o=ty(t);n.onMounted(()=>{n.watchEffect(()=>{var a,r;t.value||((a=e.value)==null?void 0:a.activeElement)===((r=e.value)==null?void 0:r.body)&&xn(o())},{flush:"post"})}),n.onUnmounted(()=>{t.value&&xn(o())})}function oy({ownerDocument:e,container:t,initialFocus:o},a){let r=n.ref(null),s=n.ref(!1);return n.onMounted(()=>s.value=!0),n.onUnmounted(()=>s.value=!1),n.onMounted(()=>{n.watch([t,o,a],(i,l)=>{if(i.every((d,u)=>l?.[u]===d)||!a.value)return;let c=ae(t);c&&jl(()=>{var d,u;if(!s.value)return;let p=ae(o),m=(d=e.value)==null?void 0:d.activeElement;if(p){if(p===m){r.value=m;return}}else if(c.contains(m)){r.value=m;return}p?xn(p):Go(c,Yt.First|Yt.NoScroll)===Tl.Error&&console.warn("There are no focusable elements inside the "),r.value=(u=e.value)==null?void 0:u.activeElement})},{immediate:!0,flush:"post"})}),r}function ay({ownerDocument:e,container:t,containers:o,previousActiveElement:a},r){var s;Vl((s=e.value)==null?void 0:s.defaultView,"focus",i=>{if(!r.value)return;let l=Ul(o);ae(t)instanceof HTMLElement&&l.add(ae(t));let c=a.value;if(!c)return;let d=i.target;d&&d instanceof HTMLElement?zl(l,d)?(a.value=d,xn(d)):(i.preventDefault(),i.stopPropagation(),xn(c)):xn(a.value)},!0)}function zl(e,t){for(let o of e)if(o.contains(t))return!0;return!1}let li=new Map,Jo=new Map;function Gl(e,t=n.ref(!0)){n.watchEffect(o=>{var a;if(!t.value)return;let r=ae(e);if(!r)return;o(function(){var i;if(!r)return;let l=(i=Jo.get(r))!=null?i:1;if(l===1?Jo.delete(r):Jo.set(r,l-1),l!==1)return;let c=li.get(r);c&&(c["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",c["aria-hidden"]),r.inert=c.inert,li.delete(r))});let s=(a=Jo.get(r))!=null?a:0;Jo.set(r,s+1),s===0&&(li.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}let Wl=Symbol("ForcePortalRootContext");function ry(){return n.inject(Wl,!1)}let ci=n.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:o}){return n.provide(Wl,e.force),()=>{let{force:a,...r}=e;return Pe({theirProps:r,ourProps:{},slot:{},slots:t,attrs:o,name:"ForcePortalRoot"})}}});function iy(e){let t=wn(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let o=t.getElementById("headlessui-portal-root");if(o)return o;let a=t.createElement("div");return a.setAttribute("id","headlessui-portal-root"),t.body.appendChild(a)}let Xl=n.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:o}){let a=n.ref(null),r=n.computed(()=>wn(a)),s=ry(),i=n.inject(Kl,null),l=n.ref(s===!0||i==null?iy(a.value):i.resolveTarget());n.watchEffect(()=>{s||i!=null&&(l.value=i.resolveTarget())});let c=n.inject(di,null);return n.onMounted(()=>{let d=ae(a);d&&c&&n.onUnmounted(c.register(d))}),n.onUnmounted(()=>{var d,u;let p=(d=r.value)==null?void 0:d.getElementById("headlessui-portal-root");p&&l.value===p&&l.value.children.length<=0&&((u=l.value.parentElement)==null||u.removeChild(l.value))}),()=>{if(l.value===null)return null;let d={ref:a,"data-headlessui-portal":""};return n.h(n.Teleport,{to:l.value},Pe({ourProps:d,theirProps:e,slot:{},attrs:o,slots:t,name:"Portal"}))}}}),di=Symbol("PortalParentContext");function sy(){let e=n.inject(di,null),t=n.ref([]);function o(s){return t.value.push(s),e&&e.register(s),()=>a(s)}function a(s){let i=t.value.indexOf(s);i!==-1&&t.value.splice(i,1),e&&e.unregister(s)}let r={register:o,unregister:a,portals:t};return[t,n.defineComponent({name:"PortalWrapper",setup(s,{slots:i}){return n.provide(di,r),()=>{var l;return(l=i.default)==null?void 0:l.call(i)}}})]}let Kl=Symbol("PortalGroupContext"),ly=n.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:o}){let a=n.reactive({resolveTarget(){return e.target}});return n.provide(Kl,a),()=>{let{target:r,...s}=e;return Pe({theirProps:s,ourProps:{},slot:{},attrs:t,slots:o,name:"PortalGroup"})}}}),Yl=Symbol("StackContext");var ui=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(ui||{});function cy(){return n.inject(Yl,()=>{})}function dy({type:e,enabled:t,element:o,onUpdate:a}){let r=cy();function s(...i){a?.(...i),r(...i)}n.onMounted(()=>{n.watch(t,(i,l)=>{i?s(0,e,o):l===!0&&s(1,e,o)},{immediate:!0,flush:"sync"})}),n.onUnmounted(()=>{t.value&&s(1,e,o)}),n.provide(Yl,s)}let Jl=Symbol("DescriptionContext");function uy(){let e=n.inject(Jl,null);if(e===null)throw new Error("Missing parent");return e}function fy({slot:e=n.ref({}),name:t="Description",props:o={}}={}){let a=n.ref([]);function r(s){return a.value.push(s),()=>{let i=a.value.indexOf(s);i!==-1&&a.value.splice(i,1)}}return n.provide(Jl,{register:r,slot:e,name:t,props:o}),n.computed(()=>a.value.length>0?a.value.join(" "):void 0)}n.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:()=>`headlessui-description-${lt()}`}},setup(e,{attrs:t,slots:o}){let a=uy();return n.onMounted(()=>n.onUnmounted(a.register(e.id))),()=>{let{name:r="Description",slot:s=n.ref({}),props:i={}}=a,{id:l,...c}=e,d={...Object.entries(i).reduce((u,[p,m])=>Object.assign(u,{[p]:n.unref(m)}),{}),id:l};return Pe({ourProps:d,theirProps:c,slot:s.value,attrs:t,slots:o,name:r})}}});function py(e){let t=n.shallowRef(e.getSnapshot());return n.onUnmounted(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function hy(e,t){let o=e(),a=new Set;return{getSnapshot(){return o},subscribe(r){return a.add(r),()=>a.delete(r)},dispatch(r,...s){let i=t[r].call(o,...s);i&&(o=i,a.forEach(l=>l()))}}}function my(){let e;return{before({doc:t}){var o;let a=t.documentElement;e=((o=t.defaultView)!=null?o:window).innerWidth-a.clientWidth},after({doc:t,d:o}){let a=t.documentElement,r=a.clientWidth-a.offsetWidth,s=e-r;o.style(a,"paddingRight",`${s}px`)}}}function vy(){if(!Fl())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:o,meta:a}){function r(i){return a.containers.flatMap(l=>l()).some(l=>l.contains(i))}o.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let s=null;o.addEventListener(t,"click",i=>{if(i.target instanceof HTMLElement)try{let l=i.target.closest("a");if(!l)return;let{hash:c}=new URL(l.href),d=t.querySelector(c);d&&!r(d)&&(s=d)}catch{}},!0),o.addEventListener(t,"touchmove",i=>{i.target instanceof HTMLElement&&!r(i.target)&&i.preventDefault()},{passive:!1}),o.add(()=>{window.scrollTo(0,window.pageYOffset+e),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})}}}function gy(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function yy(e){let t={};for(let o of e)Object.assign(t,o(t));return t}let Vn=hy(()=>new Map,{PUSH(e,t){var o;let a=(o=this.get(e))!=null?o:{doc:e,count:0,d:Xo(),meta:new Set};return a.count++,a.meta.add(t),this.set(e,a),this},POP(e,t){let o=this.get(e);return o&&(o.count--,o.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:o}){let a={doc:e,d:t,meta:yy(o)},r=[vy(),my(),gy()];r.forEach(({before:s})=>s?.(a)),r.forEach(({after:s})=>s?.(a))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Vn.subscribe(()=>{let e=Vn.getSnapshot(),t=new Map;for(let[o]of e)t.set(o,o.documentElement.style.overflow);for(let o of e.values()){let a=t.get(o.doc)==="hidden",r=o.count!==0;(r&&!a||!r&&a)&&Vn.dispatch(o.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",o),o.count===0&&Vn.dispatch("TEARDOWN",o)}});function by(e,t,o){let a=py(Vn),r=n.computed(()=>{let s=e.value?a.value.get(e.value):void 0;return s?s.count>0:!1});return n.watch([e,t],([s,i],[l],c)=>{if(!s||!i)return;Vn.dispatch("PUSH",s,o);let d=!1;c(()=>{d||(Vn.dispatch("POP",l??s,o),d=!0)})},{immediate:!0}),r}function Ey({defaultContainers:e=[],portals:t}={}){let o=n.ref(null),a=wn(o);function r(){var s;let i=[];for(let l of e)l!==null&&(l instanceof HTMLElement?i.push(l):"value"in l&&l.value instanceof HTMLElement&&i.push(l.value));if(t!=null&&t.value)for(let l of t.value)i.push(l);for(let l of(s=a?.querySelectorAll("html > *, body > *"))!=null?s:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(l.contains(ae(o))||i.some(c=>l.contains(c))||i.push(l));return i}return{resolveContainers:r,contains(s){return r().some(i=>i.contains(s))},mainTreeNodeRef:o,MainTreeNode(){return n.h(Ha,{features:Wo.Hidden,ref:o})}}}var wy=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(wy||{});let fi=Symbol("DialogContext");function Qo(e){let t=n.inject(fi,null);if(t===null){let o=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,Qo),o}return t}let za="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Ga=n.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:za},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`headlessui-dialog-${lt()}`}},emits:{close:e=>!0},setup(e,{emit:t,attrs:o,slots:a,expose:r}){var s;let i=n.ref(!1);n.onMounted(()=>{i.value=!0});let l=n.ref(0),c=po(),d=n.computed(()=>e.open===za&&c!==null?(c.value&Le.Open)===Le.Open:e.open),u=n.ref(null),p=n.computed(()=>wn(u));if(r({el:u,$el:u}),!(e.open!==za||c!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof d.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${d.value===za?void 0:e.open}`);let m=n.computed(()=>i.value&&d.value?0:1),v=n.computed(()=>m.value===0),f=n.computed(()=>l.value>1),h=n.inject(fi,null)!==null,[y,b]=sy(),{resolveContainers:g,mainTreeNodeRef:k,MainTreeNode:O}=Ey({portals:y,defaultContainers:[n.computed(()=>{var X;return(X=_.panelRef.value)!=null?X:u.value})]}),S=n.computed(()=>f.value?"parent":"leaf"),N=n.computed(()=>c!==null?(c.value&Le.Closing)===Le.Closing:!1),F=n.computed(()=>h||N.value?!1:v.value),A=n.computed(()=>{var X,ee,he;return(he=Array.from((ee=(X=p.value)==null?void 0:X.querySelectorAll("body > *"))!=null?ee:[]).find(ke=>ke.id==="headlessui-portal-root"?!1:ke.contains(ae(k))&&ke instanceof HTMLElement))!=null?he:null});Gl(A,F);let D=n.computed(()=>f.value?!0:v.value),M=n.computed(()=>{var X,ee,he;return(he=Array.from((ee=(X=p.value)==null?void 0:X.querySelectorAll("[data-headlessui-portal]"))!=null?ee:[]).find(ke=>ke.contains(ae(k))&&ke instanceof HTMLElement))!=null?he:null});Gl(M,D),dy({type:"Dialog",enabled:n.computed(()=>m.value===0),element:u,onUpdate:(X,ee)=>{if(ee==="Dialog")return Xe(X,{[ui.Add]:()=>l.value+=1,[ui.Remove]:()=>l.value-=1})}});let L=fy({name:"DialogDescription",slot:n.computed(()=>({open:d.value}))}),W=n.ref(null),_={titleId:W,panelRef:n.ref(null),dialogState:m,setTitleId(X){W.value!==X&&(W.value=X)},close(){t("close",!1)}};n.provide(fi,_);let G=n.computed(()=>!(!v.value||f.value));si(g,(X,ee)=>{_.close(),n.nextTick(()=>ee?.focus())},G);let Y=n.computed(()=>!(f.value||m.value!==0));Vl((s=p.value)==null?void 0:s.defaultView,"keydown",X=>{Y.value&&(X.defaultPrevented||X.key===be.Escape&&(X.preventDefault(),X.stopPropagation(),_.close()))});let J=n.computed(()=>!(N.value||m.value!==0||h));return by(p,J,X=>{var ee;return{containers:[...(ee=X.containers)!=null?ee:[],g]}}),n.watchEffect(X=>{if(m.value!==0)return;let ee=ae(u);if(!ee)return;let he=new ResizeObserver(ke=>{for(let Ce of ke){let we=Ce.target.getBoundingClientRect();we.x===0&&we.y===0&&we.width===0&&we.height===0&&_.close()}});he.observe(ee),X(()=>he.disconnect())}),()=>{let{id:X,open:ee,initialFocus:he,...ke}=e,Ce={...o,ref:u,id:X,role:"dialog","aria-modal":m.value===0?!0:void 0,"aria-labelledby":W.value,"aria-describedby":L.value},we={open:m.value===0};return n.h(ci,{force:!0},()=>[n.h(Xl,()=>n.h(ly,{target:u.value},()=>n.h(ci,{force:!1},()=>n.h(Yo,{initialFocus:he,containers:g,features:v.value?Xe(S.value,{parent:Yo.features.RestoreFocus,leaf:Yo.features.All&~Yo.features.FocusLock}):Yo.features.None},()=>n.h(b,{},()=>Pe({ourProps:Ce,theirProps:{...ke,...o},slot:we,attrs:o,slots:a,visible:m.value===0,features:Nt.RenderStrategy|Nt.Static,name:"Dialog"})))))),n.h(O)])}}});n.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-overlay-${lt()}`}},setup(e,{attrs:t,slots:o}){let a=Qo("DialogOverlay");function r(s){s.target===s.currentTarget&&(s.preventDefault(),s.stopPropagation(),a.close())}return()=>{let{id:s,...i}=e;return Pe({ourProps:{id:s,"aria-hidden":!0,onClick:r},theirProps:i,slot:{open:a.dialogState.value===0},attrs:t,slots:o,name:"DialogOverlay"})}}}),n.defineComponent({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-backdrop-${lt()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:o,expose:a}){let r=Qo("DialogBackdrop"),s=n.ref(null);return a({el:s,$el:s}),n.onMounted(()=>{if(r.panelRef.value===null)throw new Error("A component is being used, but a component is missing.")}),()=>{let{id:i,...l}=e,c={id:i,ref:s,"aria-hidden":!0};return n.h(ci,{force:!0},()=>n.h(Xl,()=>Pe({ourProps:c,theirProps:{...t,...l},slot:{open:r.dialogState.value===0},attrs:t,slots:o,name:"DialogBackdrop"})))}}});let an=n.defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-panel-${lt()}`}},setup(e,{attrs:t,slots:o,expose:a}){let r=Qo("DialogPanel");a({el:r.panelRef,$el:r.panelRef});function s(i){i.stopPropagation()}return()=>{let{id:i,...l}=e,c={id:i,ref:r.panelRef,onClick:s};return Pe({ourProps:c,theirProps:l,slot:{open:r.dialogState.value===0},attrs:t,slots:o,name:"DialogPanel"})}}}),Ql=n.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:()=>`headlessui-dialog-title-${lt()}`}},setup(e,{attrs:t,slots:o}){let a=Qo("DialogTitle");return n.onMounted(()=>{a.setTitleId(e.id),n.onUnmounted(()=>a.setTitleId(null))}),()=>{let{id:r,...s}=e;return Pe({ourProps:{id:r},theirProps:s,slot:{open:a.dialogState.value===0},attrs:t,slots:o,name:"DialogTitle"})}}});var xy=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(xy||{});let Zl=Symbol("DisclosureContext");function pi(e){let t=n.inject(Zl,null);if(t===null){let o=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,pi),o}return t}let ql=Symbol("DisclosurePanelContext");function Sy(){return n.inject(ql,null)}let $l=n.defineComponent({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:o}){let a=n.ref(e.defaultOpen?0:1),r=n.ref(null),s=n.ref(null),i={buttonId:n.ref(null),panelId:n.ref(null),disclosureState:a,panel:r,button:s,toggleDisclosure(){a.value=Xe(a.value,{[0]:1,[1]:0})},closeDisclosure(){a.value!==1&&(a.value=1)},close(l){i.closeDisclosure();let c=(()=>l?l instanceof HTMLElement?l:l.value instanceof HTMLElement?ae(l):ae(i.button):ae(i.button))();c?.focus()}};return n.provide(Zl,i),ja(n.computed(()=>Xe(a.value,{[0]:Le.Open,[1]:Le.Closed}))),()=>{let{defaultOpen:l,...c}=e,d={open:a.value===0,close:i.close};return Pe({theirProps:c,ourProps:{},slot:d,slots:t,attrs:o,name:"Disclosure"})}}}),ec=n.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-disclosure-button-${lt()}`}},setup(e,{attrs:t,slots:o,expose:a}){let r=pi("DisclosureButton");n.onMounted(()=>{r.buttonId.value=e.id}),n.onUnmounted(()=>{r.buttonId.value=null});let s=Sy(),i=n.computed(()=>s===null?!1:s.value===r.panelId.value),l=n.ref(null);a({el:l,$el:l}),i.value||n.watchEffect(()=>{r.button.value=l.value});let c=ni(n.computed(()=>({as:e.as,type:t.type})),l);function d(){var m;e.disabled||(i.value?(r.toggleDisclosure(),(m=ae(r.button))==null||m.focus()):r.toggleDisclosure())}function u(m){var v;if(!e.disabled)if(i.value)switch(m.key){case be.Space:case be.Enter:m.preventDefault(),m.stopPropagation(),r.toggleDisclosure(),(v=ae(r.button))==null||v.focus();break}else switch(m.key){case be.Space:case be.Enter:m.preventDefault(),m.stopPropagation(),r.toggleDisclosure();break}}function p(m){switch(m.key){case be.Space:m.preventDefault();break}}return()=>{let m={open:r.disclosureState.value===0},{id:v,...f}=e,h=i.value?{ref:l,type:c.value,onClick:d,onKeydown:u}:{id:v,ref:l,type:c.value,"aria-expanded":r.disclosureState.value===0,"aria-controls":ae(r.panel)?r.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:d,onKeydown:u,onKeyup:p};return Pe({ourProps:h,theirProps:f,slot:m,attrs:t,slots:o,name:"DisclosureButton"})}}}),tc=n.defineComponent({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`headlessui-disclosure-panel-${lt()}`}},setup(e,{attrs:t,slots:o,expose:a}){let r=pi("DisclosurePanel");n.onMounted(()=>{r.panelId.value=e.id}),n.onUnmounted(()=>{r.panelId.value=null}),a({el:r.panel,$el:r.panel}),n.provide(ql,r.panelId);let s=po(),i=n.computed(()=>s!==null?(s.value&Le.Open)===Le.Open:r.disclosureState.value===0);return()=>{let l={open:r.disclosureState.value===0,close:r.close},{id:c,...d}=e,u={id:c,ref:r.panel};return Pe({ourProps:u,theirProps:d,slot:l,attrs:t,slots:o,features:Nt.RenderStrategy|Nt.Static,visible:i.value,name:"DisclosurePanel"})}}}),nc=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function oc(e){var t,o;let a=(t=e.innerText)!=null?t:"",r=e.cloneNode(!0);if(!(r instanceof HTMLElement))return a;let s=!1;for(let l of r.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),s=!0;let i=s?(o=r.innerText)!=null?o:"":a;return nc.test(i)&&(i=i.replace(nc,"")),i}function Oy(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let o=e.getAttribute("aria-labelledby");if(o){let a=o.split(" ").map(r=>{let s=document.getElementById(r);if(s){let i=s.getAttribute("aria-label");return typeof i=="string"?i.trim():oc(s).trim()}return null}).filter(Boolean);if(a.length>0)return a.join(", ")}return oc(e).trim()}function Cy(e){let t=n.ref(""),o=n.ref("");return()=>{let a=ae(e);if(!a)return"";let r=a.innerText;if(t.value===r)return o.value;let s=Oy(a).trim().toLowerCase();return t.value=r,o.value=s,s}}var ky=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ky||{}),Ty=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ty||{});function Ny(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let ac=Symbol("MenuContext");function Wa(e){let t=n.inject(ac,null);if(t===null){let o=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,Wa),o}return t}let hi=n.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:o}){let a=n.ref(1),r=n.ref(null),s=n.ref(null),i=n.ref([]),l=n.ref(""),c=n.ref(null),d=n.ref(1);function u(m=v=>v){let v=c.value!==null?i.value[c.value]:null,f=ii(m(i.value.slice()),y=>ae(y.dataRef.domRef)),h=v?f.indexOf(v):null;return h===-1&&(h=null),{items:f,activeItemIndex:h}}let p={menuState:a,buttonRef:r,itemsRef:s,items:i,searchQuery:l,activeItemIndex:c,activationTrigger:d,closeMenu:()=>{a.value=1,c.value=null},openMenu:()=>a.value=0,goToItem(m,v,f){let h=u(),y=xl(m===De.Specific?{focus:De.Specific,id:v}:{focus:m},{resolveItems:()=>h.items,resolveActiveIndex:()=>h.activeItemIndex,resolveId:b=>b.id,resolveDisabled:b=>b.dataRef.disabled});l.value="",c.value=y,d.value=f??1,i.value=h.items},search(m){let v=l.value!==""?0:1;l.value+=m.toLowerCase();let f=(c.value!==null?i.value.slice(c.value+v).concat(i.value.slice(0,c.value+v)):i.value).find(y=>y.dataRef.textValue.startsWith(l.value)&&!y.dataRef.disabled),h=f?i.value.indexOf(f):-1;h===-1||h===c.value||(c.value=h,d.value=1)},clearSearch(){l.value=""},registerItem(m,v){let f=u(h=>[...h,{id:m,dataRef:v}]);i.value=f.items,c.value=f.activeItemIndex,d.value=1},unregisterItem(m){let v=u(f=>{let h=f.findIndex(y=>y.id===m);return h!==-1&&f.splice(h,1),f});i.value=v.items,c.value=v.activeItemIndex,d.value=1}};return si([r,s],(m,v)=>{var f;p.closeMenu(),ri(v,ai.Loose)||(m.preventDefault(),(f=ae(r))==null||f.focus())},n.computed(()=>a.value===0)),n.provide(ac,p),ja(n.computed(()=>Xe(a.value,{[0]:Le.Open,[1]:Le.Closed}))),()=>{let m={open:a.value===0,close:p.closeMenu};return Pe({ourProps:{},theirProps:e,slot:m,slots:t,attrs:o,name:"Menu"})}}}),mi=n.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"},id:{type:String,default:()=>`headlessui-menu-button-${lt()}`}},setup(e,{attrs:t,slots:o,expose:a}){let r=Wa("MenuButton");a({el:r.buttonRef,$el:r.buttonRef});function s(d){switch(d.key){case be.Space:case be.Enter:case be.ArrowDown:d.preventDefault(),d.stopPropagation(),r.openMenu(),n.nextTick(()=>{var u;(u=ae(r.itemsRef))==null||u.focus({preventScroll:!0}),r.goToItem(De.First)});break;case be.ArrowUp:d.preventDefault(),d.stopPropagation(),r.openMenu(),n.nextTick(()=>{var u;(u=ae(r.itemsRef))==null||u.focus({preventScroll:!0}),r.goToItem(De.Last)});break}}function i(d){switch(d.key){case be.Space:d.preventDefault();break}}function l(d){e.disabled||(r.menuState.value===0?(r.closeMenu(),n.nextTick(()=>{var u;return(u=ae(r.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(d.preventDefault(),r.openMenu(),Ny(()=>{var u;return(u=ae(r.itemsRef))==null?void 0:u.focus({preventScroll:!0})})))}let c=ni(n.computed(()=>({as:e.as,type:t.type})),r.buttonRef);return()=>{var d;let u={open:r.menuState.value===0},{id:p,...m}=e,v={ref:r.buttonRef,id:p,type:c.value,"aria-haspopup":"menu","aria-controls":(d=ae(r.itemsRef))==null?void 0:d.id,"aria-expanded":r.menuState.value===0,onKeydown:s,onKeyup:i,onClick:l};return Pe({ourProps:v,theirProps:m,slot:u,attrs:t,slots:o,name:"MenuButton"})}}}),vi=n.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`headlessui-menu-items-${lt()}`}},setup(e,{attrs:t,slots:o,expose:a}){let r=Wa("MenuItems"),s=n.ref(null);a({el:r.itemsRef,$el:r.itemsRef}),kl({container:n.computed(()=>ae(r.itemsRef)),enabled:n.computed(()=>r.menuState.value===0),accept(u){return u.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:u.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(u){u.setAttribute("role","none")}});function i(u){var p;switch(s.value&&clearTimeout(s.value),u.key){case be.Space:if(r.searchQuery.value!=="")return u.preventDefault(),u.stopPropagation(),r.search(u.key);case be.Enter:if(u.preventDefault(),u.stopPropagation(),r.activeItemIndex.value!==null){let m=r.items.value[r.activeItemIndex.value];(p=ae(m.dataRef.domRef))==null||p.click()}r.closeMenu(),Dl(ae(r.buttonRef));break;case be.ArrowDown:return u.preventDefault(),u.stopPropagation(),r.goToItem(De.Next);case be.ArrowUp:return u.preventDefault(),u.stopPropagation(),r.goToItem(De.Previous);case be.Home:case be.PageUp:return u.preventDefault(),u.stopPropagation(),r.goToItem(De.First);case be.End:case be.PageDown:return u.preventDefault(),u.stopPropagation(),r.goToItem(De.Last);case be.Escape:u.preventDefault(),u.stopPropagation(),r.closeMenu(),n.nextTick(()=>{var m;return(m=ae(r.buttonRef))==null?void 0:m.focus({preventScroll:!0})});break;case be.Tab:u.preventDefault(),u.stopPropagation(),r.closeMenu(),n.nextTick(()=>Hg(ae(r.buttonRef),u.shiftKey?Yt.Previous:Yt.Next));break;default:u.key.length===1&&(r.search(u.key),s.value=setTimeout(()=>r.clearSearch(),350));break}}function l(u){switch(u.key){case be.Space:u.preventDefault();break}}let c=po(),d=n.computed(()=>c!==null?(c.value&Le.Open)===Le.Open:r.menuState.value===0);return()=>{var u,p;let m={open:r.menuState.value===0},{id:v,...f}=e,h={"aria-activedescendant":r.activeItemIndex.value===null||(u=r.items.value[r.activeItemIndex.value])==null?void 0:u.id,"aria-labelledby":(p=ae(r.buttonRef))==null?void 0:p.id,id:v,onKeydown:i,onKeyup:l,role:"menu",tabIndex:0,ref:r.itemsRef};return Pe({ourProps:h,theirProps:f,slot:m,attrs:t,slots:o,features:Nt.RenderStrategy|Nt.Static,visible:d.value,name:"MenuItems"})}}}),Zo=n.defineComponent({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-menu-item-${lt()}`}},setup(e,{slots:t,attrs:o,expose:a}){let r=Wa("MenuItem"),s=n.ref(null);a({el:s,$el:s});let i=n.computed(()=>r.activeItemIndex.value!==null?r.items.value[r.activeItemIndex.value].id===e.id:!1),l=Cy(s),c=n.computed(()=>({disabled:e.disabled,get textValue(){return l()},domRef:s}));n.onMounted(()=>r.registerItem(e.id,c)),n.onUnmounted(()=>r.unregisterItem(e.id)),n.watchEffect(()=>{r.menuState.value===0&&i.value&&r.activationTrigger.value!==0&&n.nextTick(()=>{var h,y;return(y=(h=ae(s))==null?void 0:h.scrollIntoView)==null?void 0:y.call(h,{block:"nearest"})})});function d(h){if(e.disabled)return h.preventDefault();r.closeMenu(),Dl(ae(r.buttonRef))}function u(){if(e.disabled)return r.goToItem(De.Nothing);r.goToItem(De.Specific,e.id)}let p=Ml();function m(h){p.update(h)}function v(h){p.wasMoved(h)&&(e.disabled||i.value||r.goToItem(De.Specific,e.id,0))}function f(h){p.wasMoved(h)&&(e.disabled||i.value&&r.goToItem(De.Nothing))}return()=>{let{disabled:h}=e,y={active:i.value,disabled:h,close:r.closeMenu},{id:b,...g}=e;return Pe({ourProps:{id:b,ref:s,role:"menuitem",tabIndex:h===!0?void 0:-1,"aria-disabled":h===!0?!0:void 0,disabled:void 0,onClick:d,onFocus:u,onPointerenter:m,onMouseenter:m,onPointermove:v,onMousemove:v,onPointerleave:f,onMouseleave:f},theirProps:{...o,...g},slot:y,attrs:o,slots:t,name:"MenuItem"})}}});function Dy(e){let t={called:!1};return(...o)=>{if(!t.called)return t.called=!0,e(...o)}}function gi(e,...t){e&&t.length>0&&e.classList.add(...t)}function Xa(e,...t){e&&t.length>0&&e.classList.remove(...t)}var yi=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(yi||{});function Iy(e,t){let o=Xo();if(!e)return o.dispose;let{transitionDuration:a,transitionDelay:r}=getComputedStyle(e),[s,i]=[a,r].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,u)=>u-d);return c});return s!==0?o.setTimeout(()=>t("finished"),s+i):t("finished"),o.add(()=>t("cancelled")),o.dispose}function rc(e,t,o,a,r,s){let i=Xo(),l=s!==void 0?Dy(s):()=>{};return Xa(e,...r),gi(e,...t,...o),i.nextFrame(()=>{Xa(e,...o),gi(e,...a),i.add(Iy(e,c=>(Xa(e,...a,...t),gi(e,...r),l(c))))}),i.add(()=>Xa(e,...t,...o,...a,...r)),i.add(()=>l("cancelled")),i.dispose}function jn(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let bi=Symbol("TransitionContext");var Ry=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Ry||{});function Ay(){return n.inject(bi,null)!==null}function By(){let e=n.inject(bi,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}function Py(){let e=n.inject(Ei,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}let Ei=Symbol("NestingContext");function Ka(e){return"children"in e?Ka(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function ic(e){let t=n.ref([]),o=n.ref(!1);n.onMounted(()=>o.value=!0),n.onUnmounted(()=>o.value=!1);function a(s,i=En.Hidden){let l=t.value.findIndex(({id:c})=>c===s);l!==-1&&(Xe(i,{[En.Unmount](){t.value.splice(l,1)},[En.Hidden](){t.value[l].state="hidden"}}),!Ka(t)&&o.value&&e?.())}function r(s){let i=t.value.find(({id:l})=>l===s);return i?i.state!=="visible"&&(i.state="visible"):t.value.push({id:s,state:"visible"}),()=>a(s,En.Unmount)}return{children:t,register:r,unregister:a}}let sc=Nt.RenderStrategy,Sn=n.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:o,slots:a,expose:r}){let s=n.ref(0);function i(){s.value|=Le.Opening,t("beforeEnter")}function l(){s.value&=~Le.Opening,t("afterEnter")}function c(){s.value|=Le.Closing,t("beforeLeave")}function d(){s.value&=~Le.Closing,t("afterLeave")}if(!Ay()&&Pg())return()=>n.h(qo,{...e,onBeforeEnter:i,onAfterEnter:l,onBeforeLeave:c,onAfterLeave:d},a);let u=n.ref(null),p=n.computed(()=>e.unmount?En.Unmount:En.Hidden);r({el:u,$el:u});let{show:m,appear:v}=By(),{register:f,unregister:h}=Py(),y=n.ref(m.value?"visible":"hidden"),b={value:!0},g=lt(),k={value:!1},O=ic(()=>{!k.value&&y.value!=="hidden"&&(y.value="hidden",h(g),d())});n.onMounted(()=>{let _=f(g);n.onUnmounted(_)}),n.watchEffect(()=>{if(p.value===En.Hidden&&g){if(m.value&&y.value!=="visible"){y.value="visible";return}Xe(y.value,{hidden:()=>h(g),visible:()=>f(g)})}});let S=jn(e.enter),N=jn(e.enterFrom),F=jn(e.enterTo),A=jn(e.entered),D=jn(e.leave),M=jn(e.leaveFrom),L=jn(e.leaveTo);n.onMounted(()=>{n.watchEffect(()=>{if(y.value==="visible"){let _=ae(u);if(_ instanceof Comment&&_.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function W(_){let G=b.value&&!v.value,Y=ae(u);!Y||!(Y instanceof HTMLElement)||G||(k.value=!0,m.value&&i(),m.value||c(),_(m.value?rc(Y,S,N,F,A,J=>{k.value=!1,J===yi.Finished&&l()}):rc(Y,D,M,L,A,J=>{k.value=!1,J===yi.Finished&&(Ka(O)||(y.value="hidden",h(g),d()))})))}return n.onMounted(()=>{n.watch([m],(_,G,Y)=>{W(Y),b.value=!1},{immediate:!0})}),n.provide(Ei,O),ja(n.computed(()=>Xe(y.value,{visible:Le.Open,hidden:Le.Closed})|s.value)),()=>{let{appear:_,show:G,enter:Y,enterFrom:J,enterTo:X,entered:ee,leave:he,leaveFrom:ke,leaveTo:Ce,...we}=e,Ae={ref:u},Ve={...we,...v.value&&m.value&&zo.isServer?{class:n.normalizeClass([o.class,we.class,...S,...N])}:{}};return Pe({theirProps:Ve,ourProps:Ae,slot:{},slots:a,attrs:o,features:sc,visible:y.value==="visible",name:"TransitionChild"})}}}),My=Sn,qo=n.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:o,slots:a}){let r=po(),s=n.computed(()=>e.show===null&&r!==null?(r.value&Le.Open)===Le.Open:e.show);n.watchEffect(()=>{if(![!0,!1].includes(s.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let i=n.ref(s.value?"visible":"hidden"),l=ic(()=>{i.value="hidden"}),c=n.ref(!0),d={show:s,appear:n.computed(()=>e.appear||!c.value)};return n.onMounted(()=>{n.watchEffect(()=>{c.value=!1,s.value?i.value="visible":Ka(l)||(i.value="hidden")})}),n.provide(Ei,l),n.provide(bi,d),()=>{let u=Va(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),p={unmount:e.unmount};return Pe({ourProps:{...p,as:"template"},theirProps:{},slot:{},slots:{...a,default:()=>[n.h(My,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...o,...p,...u},a.default)]},attrs:{},features:sc,visible:i.value==="visible",name:"Transition"})}}});const Fy={},_y={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Ly=[n.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),n.createElementVNode("path",{d:"M8 5v10a1 1 0 0 0 1 1h10"},null,-1),n.createElementVNode("path",{d:"M5 8h10a1 1 0 0 1 1 1v10"},null,-1)];function Vy(e,t){return n.openBlock(),n.createElementBlock("svg",_y,Ly)}const lc=Ar(Fy,[["render",Vy]]),rt=n.defineComponent({__name:"IconButton",props:{variant:{default:"secondary"},type:{default:"button"},asAnchor:{type:Boolean,default:!1}},setup(e){const t=e,o={primary:"bg-blue-500 text-white focus:outline-blue-500",secondary:"bg-gray-300 dark:bg-gray-700 text-gray-800 dark:text-gray-200 focus:outline-blue-500",danger:"bg-red-500 text-white focus:outline-red-500",success:"bg-green-500 text-white focus:outline-green-500",transparent:"bg-transparent text-gray-800 dark:text-gray-100"},a=n.computed(()=>o[t.variant]);return(r,s)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(r.asAnchor?"a":"button"),{class:n.normalizeClass(`inline-flex items-center rounded-full border-0 p-2 shadow-sm focus:outline-none focus:ring-1 hover:opacity-75 disabled:opacity-25 ${a.value}`),type:r.asAnchor?void 0:r.type??"button"},{default:n.withCtx(()=>[n.renderSlot(r.$slots,"default")]),_:3},8,["class","type"]))}}),jy=n.createElementVNode("div",{class:"fixed inset-0 bg-gray-800/20 backdrop-blur-sm transition-opacity"},null,-1),Uy={class:"flex items-end sm:items-center justify-center min-h-full p-0 md:p-4"},mo=n.defineComponent({__name:"BaseModal",props:{name:{},initialFocusRef:{}},setup(e){const t=e;n.onBeforeUnmount(()=>{r.value&&s()});const o=Re(),a=n.computed(()=>o.dark),r=n.computed(()=>o.isOpen(t.name)),s=()=>{o.closeModal({name:t.name})};return(i,l)=>(n.openBlock(),n.createBlock(n.unref(qo),{show:r.value,as:"template",class:"nova-file-manager"},{default:n.withCtx(()=>[n.createVNode(n.unref(Ga),{as:"div",class:"relative z-[60]",style:{"z-index":"999"},onClose:s,"initial-focus":i.initialFocusRef},{default:n.withCtx(()=>[n.createVNode(n.unref(Sn),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:n.withCtx(()=>[jy]),_:1}),n.createElementVNode("div",{class:n.normalizeClass([{dark:a.value},"fixed z-10 inset-0 overflow-y-auto"])},[n.createElementVNode("div",Uy,[n.createVNode(n.unref(Sn),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:n.withCtx(()=>[n.renderSlot(i.$slots,"default",{close:s,isOpen:r.value,dark:a.value})]),_:3})])],2)]),_:3},8,["initial-focus"])]),_:3},8,["show"]))}}),NS="";var cc={},wi={},Hy={get exports(){return wi},set exports(e){wi=e}};/*!