From 9da40700f5425366c450c32c6c28b8c68e15bbd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix?= Date: Fri, 22 Nov 2024 14:18:39 +0100 Subject: [PATCH] rebuild front --- .../html/assets/HomeView-204885d0.css | 1 - .../panoptic/html/assets/HomeView-3c1c1f15.js | 1 - .../html/assets/PanopticView-35ae7b55.js | 1 - .../html/assets/PanopticView-fd4a9dc4.css | 1 - .../panoptic/html/assets/TestView-44a2de37.js | 3 - .../html/assets/TestView-b992f297.css | 1 - .../panoptic/html/assets/Tutorial-35af845b.js | 1 - .../panoptic/html/assets/index-b8269694.js | 754 ------------------ .../panoptic/html/assets/index-ef4c7273.css | 10 - panoptic_back/panoptic/html/index.html | 4 +- 10 files changed, 2 insertions(+), 775 deletions(-) delete mode 100644 panoptic_back/panoptic/html/assets/HomeView-204885d0.css delete mode 100644 panoptic_back/panoptic/html/assets/HomeView-3c1c1f15.js delete mode 100644 panoptic_back/panoptic/html/assets/PanopticView-35ae7b55.js delete mode 100644 panoptic_back/panoptic/html/assets/PanopticView-fd4a9dc4.css delete mode 100644 panoptic_back/panoptic/html/assets/TestView-44a2de37.js delete mode 100644 panoptic_back/panoptic/html/assets/TestView-b992f297.css delete mode 100644 panoptic_back/panoptic/html/assets/Tutorial-35af845b.js delete mode 100644 panoptic_back/panoptic/html/assets/index-b8269694.js delete mode 100644 panoptic_back/panoptic/html/assets/index-ef4c7273.css diff --git a/panoptic_back/panoptic/html/assets/HomeView-204885d0.css b/panoptic_back/panoptic/html/assets/HomeView-204885d0.css deleted file mode 100644 index aff75144..00000000 --- a/panoptic_back/panoptic/html/assets/HomeView-204885d0.css +++ /dev/null @@ -1 +0,0 @@ -.input[data-v-9d2b8ee6]{border:1px solid var(--border-color);border-radius:5px;overflow:hidden}.info[data-v-9d2b8ee6]{background-color:var(--grey);padding:5px 10px}.value[data-v-9d2b8ee6]{border-left:1px solid var(--border-color);padding:5px 10px}.folder[data-v-9d2b8ee6]{padding:5px;background-color:var(--grey);border-left:1px solid var(--border-color);cursor:pointer}input[data-v-9d2b8ee6]{border:none}.create-option[data-v-f878743d]{text-align:left;padding-bottom:10px;padding-top:10px;border-bottom:1px solid var(--border-color)}.create-btn[data-v-f878743d]{text-align:center;background-color:#f0f0f0;height:36px;padding:6px;border-radius:8px;margin-top:6px;width:100px;cursor:pointer;color:#2d2d2d}.create-btn[data-v-f878743d]:hover{background-color:#e3e3ff;color:#000}.highlight[data-v-f878743d]{background-color:#aaf;color:#fff}.create-title[data-v-f878743d]{font-size:20px}.create-explanation[data-v-f878743d]{font-size:15px}#duck-container[data-v-aa87a019]{height:100vh;position:fixed;z-index:999;top:0;transition:right .4s ease;transform:rotate(-45deg)}#duck-container.active[data-v-aa87a019]{transition:right 4s ease}.selected[data-v-37b550a0]{background-color:#e3e3ff}.dimmed-2[data-v-058befcd]{color:#5a5a5a}.nowrap[data-v-058befcd]{white-space:nowrap}.window2[data-v-058befcd]{width:100vw;height:100vh}.project-menu[data-v-058befcd]{height:100%;width:350px;padding:25px 0 25px 25px;background-color:#f6f6f7;color:#2d2d2d;border-right:1px solid var(--border-color);overflow-y:scroll}.project[data-v-058befcd]{padding:10px;cursor:pointer}.project[data-v-058befcd]:hover{background-color:#e8e8ff;border-radius:10px}.main-menu[data-v-058befcd]{height:100%;text-align:center;padding:15px}.project-option[data-v-058befcd]{width:20px;margin:0 15px;text-align:center;cursor:pointer}.icon[data-v-058befcd]{font-size:100px;line-height:100px;margin-top:50px}.create-menu[data-v-058befcd]{width:500px;margin:auto}.plugin-preview[data-v-058befcd]{text-align:left;font-size:15px;color:#575757;width:500px;margin:auto}.add-btn[data-v-058befcd]{padding:4px;font-size:15px;color:#323232} diff --git a/panoptic_back/panoptic/html/assets/HomeView-3c1c1f15.js b/panoptic_back/panoptic/html/assets/HomeView-3c1c1f15.js deleted file mode 100644 index 83c633d8..00000000 --- a/panoptic_back/panoptic/html/assets/HomeView-3c1c1f15.js +++ /dev/null @@ -1 +0,0 @@ -import{d as R,u as T,r as w,c as k,a as l,b as e,t as p,e as x,w as E,v as I,n as M,M as L,o as s,g as G,p as F,f as j,_ as V,F as U,h as Z,i as g,j as O,k as J,l as ee,m as te,q as B,s as D,x as H,y as se,z as K,D as oe,P as le}from"./index-b8269694.js";import{_ as ne}from"./Tutorial-35af845b.js";const Q=a=>(F("data-v-9d2b8ee6"),a=a(),j(),a),ae={class:""},ie={class:"mb-3"},ce={class:"d-flex text-start input mb-2"},re={class:"info"},ue={key:0},de={key:1,class:"text-placeholder"},pe=Q(()=>e("i",{class:"bi bi-folder"},null,-1)),ve=[pe],_e={class:"d-flex text-start input"},me={class:"info"},he={class:"flex-grow-1 value text-dim"},ge={class:"d-flex mt-2"},fe=Q(()=>e("div",{class:"flex-grow-1"},null,-1)),be=R({__name:"Create",emits:["cancel","create"],setup(a,{emit:t}){const f=T(),r=t,v=w(""),o=w(""),m=k(()=>v.value!=""&&o.value!="");function b(_){_&&(v.value=_)}function u(){f.showModal(L.FOLDERSELECTION,{callback:b,mode:"create"})}return(_,y)=>(s(),l("div",ae,[e("h3",ie,p(_.$t("main.home.create_title")),1),e("div",ce,[e("div",re,p(_.$t("main.home.label.folder")),1),e("div",{class:"flex-grow-1 value text-dim",style:{cursor:"pointer"},onClick:u},[v.value!=""?(s(),l("span",ue,p(v.value),1)):(s(),l("span",de,p(_.$t("main.home.label.path_placeholder")),1))]),e("div",{id:"select-folder",class:"folder",style:{cursor:"pointer"},onClick:y[0]||(y[0]=C=>{u(),x(G)()})},ve)]),e("div",_e,[e("div",me,p(_.$t("main.home.label.name")),1),e("div",he,[E(e("input",{type:"text","onUpdate:modelValue":y[1]||(y[1]=C=>o.value=C),placeholder:"project_name",style:{width:"100%"}},null,512),[[I,o.value]])])]),e("div",ge,[fe,e("div",{class:"btn-grey hover-grey",onClick:y[2]||(y[2]=C=>r("cancel"))},p(_.$t("main.home.label.cancel")),1),e("div",{id:"confirm-create",class:M(["ms-2",m.value?"btn-blue":"btn-grey text-dim"]),onClick:y[3]||(y[3]=C=>{r("create",{path:v.value,name:o.value}),x(G)()})},p(_.$t("main.home.label.create")),3)])]))}});const ye=V(be,[["__scopeId","data-v-9d2b8ee6"]]),X=a=>(F("data-v-f878743d"),a=a(),j(),a),$e={class:"create-option d-flex"},we=X(()=>e("div",{class:"flex-grow-1"},[e("h6",{class:"create-title m-0"},"Créer un nouveau projet"),e("span",{class:"create-explanation"},"Créer un nouveau projet panoptic dans un dossier.")],-1)),ke=X(()=>e("div",{class:"flex-grow-1"},[e("h6",{class:"create-title m-0"},"Importer un projet"),e("span",{class:"create-explanation"},"Choisissez un dossier Panoptic existant.")],-1)),xe=R({__name:"Options",emits:["create","import"],setup(a,{emit:t}){const f=T(),r=t;function v(m){m&&r("import",m)}function o(){f.showModal(L.FOLDERSELECTION,{callback:v,mode:"import"})}return(m,b)=>(s(),l(U,null,[e("div",$e,[we,e("div",{id:"create-project",class:"create-btn highlight",onClick:b[0]||(b[0]=u=>{r("create"),x(G)()})},"Créer")]),e("div",{class:"create-option d-flex"},[ke,e("div",{class:"create-btn",onClick:o},"Importer")])],64))}});const Ce=V(xe,[["__scopeId","data-v-f878743d"]]),Pe="/assets/duck-0f72bec4.svg";const Se=a=>(F("data-v-aa87a019"),a=a(),j(),a),Ee=Se(()=>e("img",{alt:"Duck",class:"logo",src:Pe,style:{height:"100vh"}},null,-1)),Ie=[Ee],W="ArrowUpArrowUpArrowDownArrowDownArrowLeftArrowRightArrowLeftArrowRightba",Me={__name:"Egg",setup(a){let t="",f=w(-1100),r="";return window.addEventListener("keydown",async function(v){t+=v.key,W.slice(0,t.length)!==t&&(t=""),t.length===W.length&&(t===W&&(r="",f.value=-300,setTimeout(()=>{r="active",f.value=-1100},1500)),t="")}),(v,o)=>(s(),l("div",{id:"duck-container",style:Z({right:x(f).toString()+"px"}),class:M(x(r))},Ie,6))}},Le=V(Me,[["__scopeId","data-v-aa87a019"]]),Y=a=>(F("data-v-37b550a0"),a=a(),j(),a),Fe={style:{"font-size":"20px"},class:"mb-1"},je={key:0,class:"d-flex"},Ve=Y(()=>e("i",{class:"bi bi-github me-2 ms-1",style:{"font-size":"19px"}},null,-1)),Ne={key:2,style:{position:"relative",top:"7px"},class:"spinner-border spinner-border-sm text-primary ms-1",role:"status"},Ae={class:"visually-hidden"},De={key:1,class:"d-flex"},Ue=Y(()=>e("i",{class:"bi bi-folder me-2 ms-1"},null,-1)),Oe={key:2,style:{position:"relative",top:"7px"},class:"spinner-border spinner-border-sm text-primary ms-1",role:"status"},Re={class:"visually-hidden"},Te={key:2,class:"text-warning"},qe=R({__name:"PluginForm",emits:["cancel"],setup(a,{expose:t,emit:f}){const r=T(),v=f;t({setPanopticMl:d});const o=w("github"),m=w(""),b=w(""),u=w(""),_=w(!1),y=k(()=>r.data.plugins.map(n=>n.name)),C=k(()=>!(u.value==""||y.value.includes(u.value))),P=k(()=>o.value=="github"&&m.value.length>0||o.value=="local"&&b.value.length>0),N=k(()=>P.value&&C.value),A=k(()=>P.value&&y.value.includes(u.value)?"main.home.plugins.error_name_not_unique":P.value?"main.home.plugins.require_unique_name":o.value=="github"?"main.home.plugins.require_url":"main.home.plugins.require_folder");function q(n){if(!n)return;b.value=n;let i=n.split("/"),h=i[i.length-1]||i[i.length-2];h&&(u.value=h)}function z(){r.showModal(L.FOLDERSELECTION,{callback:q})}function c(){if(o.value=="github"&&u.value==""){const n=m.value.split("/"),i=n[n.length-1],h=i.endsWith(".git")?i.slice(0,-4):i;u.value=h}}async function $(){_.value=!0,await J();const n={pluginName:u.value};o.value=="github"&&(n.gitUrl=m.value),o.value=="local"&&(n.path=b.value),await r.addPlugin(n),_.value=!1,v("cancel")}function d(){o.value="github",m.value="https://github.com/CERES-Sorbonne/PanopticML",u.value="PanopticML"}return(n,i)=>(s(),l("div",null,[e("div",Fe,[e("i",{class:M(["bi bi-github rounded bbb me-1",o.value=="github"?"selected":""]),onClick:i[0]||(i[0]=h=>o.value="github")},null,2),e("i",{class:M(["bi bi-folder rounded bbb me-1",o.value=="local"?"selected":""]),onClick:i[1]||(i[1]=h=>o.value="local")},null,2)]),o.value=="github"?(s(),l("div",je,[Ve,E(e("input",{type:"url","onUpdate:modelValue":i[2]||(i[2]=h=>m.value=h),placeholder:"Enter git url",style:{width:"250px"}},null,512),[[I,m.value]]),P.value?E((s(),l("input",{key:0,"onUpdate:modelValue":i[3]||(i[3]=h=>u.value=h),type:"text",placeholder:"plugin unique name",style:{width:"150px"},class:"ms-2",onFocus:c},null,544)),[[I,u.value]]):g("",!0),N.value?(s(),l("div",{key:1,class:"bbb ms-2",onClick:$},p(n.$t("main.home.plugins.install")),1)):g("",!0),_.value?(s(),l("div",Ne,[e("span",Ae,p(n.$t("main.home.plugins.load")),1)])):g("",!0)])):g("",!0),o.value=="local"?(s(),l("div",De,[e("div",{class:"bbb pe-2 me-2",onClick:z},[Ue,O("Select")]),E(e("input",{type:"url","onUpdate:modelValue":i[4]||(i[4]=h=>b.value=h),placeholder:"Folder path",style:{width:"180px"}},null,512),[[I,b.value]]),P.value?E((s(),l("input",{key:0,"onUpdate:modelValue":i[5]||(i[5]=h=>u.value=h),type:"text",placeholder:"plugin unique name",style:{width:"150px"},class:"ms-2"},null,512)),[[I,u.value]]):g("",!0),N.value?(s(),l("div",{key:1,class:"bbb ms-2",onClick:$},p(n.$t("main.home.plugins.install")),1)):g("",!0),_.value?(s(),l("div",Oe,[e("span",Re,p(n.$t("main.home.plugins.load")),1)])):g("",!0)])):g("",!0),e("div",{class:M(["mt-2 mb-2",A.value.includes(".error")?"text-danger":""])},p(n.$t(A.value)),3),o.value!="github"||o.value=="github"&&!m.value.includes("github.com/CERES-Sorbonne")?(s(),l("div",Te,p(n.$t("main.home.plugins.warning")),1)):g("",!0),e("div",null,[e("div",{class:"bbb mt-2 text-center",style:{width:"70px"},onClick:i[6]||(i[6]=h=>v("cancel"))},"Cancel")])]))}});const ze=V(qe,[["__scopeId","data-v-37b550a0"]]),S=a=>(F("data-v-058befcd"),a=a(),j(),a),Be={key:0},He={class:"window2 d-flex"},We={key:0,class:"project-menu"},Ge={class:"d-flex"},Je=["onClick"],Ke={class:"m-0"},Qe={class:"m-0 p-0 text-wrap text-break dimmed-2",style:{"font-size":"13px"}},Xe={class:"project-option flex-shrink-0"},Ye=S(()=>e("i",{class:"bi bi-three-dots-vertical"},null,-1)),Ze={class:"text-start"},et=["onClick"],tt=S(()=>e("i",{class:"bi bi-trash me-1"},null,-1)),st={key:1,class:"flex-grow-1"},ot={class:"d-flex flex-column main-menu justify-content-center"},lt={class:"icon"},nt=S(()=>e("h1",{class:"m-0 p-0"},"Panoptic",-1)),at=S(()=>e("h6",{class:"dimmed-2"},"Version 0.4",-1)),it={class:"lang"},ct=S(()=>e("i",{class:"bi bi-translate",style:{"margin-right":"0.5rem"}},null,-1)),rt=["value"],ut={id:"main-menu",class:"create-menu mt-5 pt-5"},dt={class:"mt-5 plugin-preview"},pt={class:"text-center"},vt={key:0,class:"text-center"},_t=S(()=>e("i",{class:"bi bi-lightbulb"},null,-1)),mt={class:"flex-grow-1 plugin-preview",style:{"overflow-y":"auto"}},ht={key:1},gt={class:"ps-1"},ft=["onClick"],bt={key:2,class:"text-center mt-5 w-100"},yt=S(()=>e("p",null,"Waiting for Server...",-1)),$t=[yt],wt=R({__name:"HomeView",setup(a){const t=T(),f=w(0),r=w(!1),v=w(null),o=w(!0),m=["fr","en"],b=k(()=>Array.isArray(t.data.status.projects)&&t.data.status.projects.length>0),u=k(()=>!b.value&&t.data.init),_=k(()=>!b.value&&t.data.init&&t.openModalId!==L.FIRSTMODAL),y=k(()=>t.data.plugins.some(c=>c.sourceUrl&&c.sourceUrl.includes("https://github.com/CERES-Sorbonne/PanopticML")));function C(c){return c.replaceAll("-","‑")}function P(c){c.path&&c.name&&t.createProject(c.path,c.name)}function N(c){t.importProject(c)}function A(c){t.delPlugin(c)}async function q(){r.value=!0,await J(),v.value.setPanopticMl()}async function z(){o.value=!1,await J(),o.value=!0}return ee(()=>{t.isProjectLoaded&&te.push("/view"),u.value&&t.showModal(L.FIRSTMODAL)}),(c,$)=>o.value?(s(),l("div",Be,[B(Le),_.value?(s(),D(ne,{key:0})):g("",!0),e("div",He,[b.value?(s(),l("div",We,[(s(!0),l(U,null,H(x(t).data.status.projects,d=>(s(),l("div",Ge,[e("div",{class:"project flex-grow-1 overflow-hidden",onClick:n=>x(t).loadProject(d.path)},[e("h5",Ke,p(d.name),1),e("div",Qe,p(C(d.path)),1)],8,Je),e("div",Xe,[B(oe,null,{button:K(()=>[Ye]),popup:K(({hide:n})=>[e("div",Ze,[e("div",{onClick:i=>{x(t).deleteProject(d.path),n()},class:"m-1 base-hover p-1"},[tt,O("delete ")],8,et)])]),_:2},1024)])]))),256))])):g("",!0),x(t).data.init?(s(),l("div",st,[e("div",ot,[e("div",null,[e("div",lt,[B(le)]),nt,at,e("div",it,[ct,E(e("select",{"onUpdate:modelValue":$[0]||($[0]=d=>c.$i18n.locale=d),onChange:z},[(s(),l(U,null,H(m,(d,n)=>e("option",{key:`Lang${n}`,value:d},p(d.toUpperCase()),9,rt)),64))],544),[[se,c.$i18n.locale]])])]),e("div",ut,[f.value==0?(s(),D(Ce,{key:0,onCreate:$[1]||($[1]=d=>f.value=1),onImport:N})):g("",!0),f.value==1?(s(),D(ye,{key:1,onCancel:$[2]||($[2]=d=>f.value=0),onCreate:P})):g("",!0)]),e("div",dt,[e("h5",pt,[O(" Plugins "),e("span",{class:"sb bi bi-plus",style:{position:"relative",top:"1px"},onClick:$[3]||($[3]=d=>r.value=!0)})]),y.value?g("",!0):(s(),l("div",vt,[e("span",{class:"bb ms-1 me-1",onClick:q},[_t,O(" "+p(c.$t("main.home.plugins.install_panoptic_ml")),1)])]))]),e("div",mt,[r.value?(s(),D(ze,{key:0,onCancel:$[4]||($[4]=d=>r.value=!1),ref_key:"pluginFormElem",ref:v},null,512)):(s(),l("div",ht,[(s(!0),l(U,null,H(x(t).data.plugins,d=>(s(),l("div",gt,[e("span",{onClick:n=>A(d.path),class:"bi bi-x base-hover"},null,8,ft),e("span",null,p(d.name),1)]))),256))]))])])])):(s(),l("div",bt,$t))])])):g("",!0)}});const Ct=V(wt,[["__scopeId","data-v-058befcd"]]);export{Ct as default}; diff --git a/panoptic_back/panoptic/html/assets/PanopticView-35ae7b55.js b/panoptic_back/panoptic/html/assets/PanopticView-35ae7b55.js deleted file mode 100644 index 851c32e8..00000000 --- a/panoptic_back/panoptic/html/assets/PanopticView-35ae7b55.js +++ /dev/null @@ -1 +0,0 @@ -import{d as D,V as Ue,u as he,W as re,B as K,r as I,c as V,X as Q,o as s,a as l,b as e,q as k,Y as ke,t as b,i as x,w as pe,v as ge,e as _,Z as Ee,M as ne,z as $,$ as F,a0 as we,s as S,a1 as Oe,n as H,S as U,a2 as Se,j as te,a3 as He,p as X,f as Z,_ as j,D as oe,a4 as Ne,a5 as Ce,a6 as Pe,F as T,x as N,h as Y,a7 as be,a8 as Ve,g as xe,a9 as Be,aa as Fe,ab as qe,ac as Qe,L as Ke,ad as We,ae as Ye,O as Xe,R as Ze,Q as Je,af as et,ag as tt,ah as st,ai as De,l as ue,k as ee,aj as Le,ak as ot,al as ie,am as se,an as at,ao as nt,ap as lt,aq as it,ar as rt,as as dt,at as ct,au as ce,av as ut,aw as pt,ax as mt,ay as _t,y as vt,m as ze,C as G,az as ht}from"./index-b8269694.js";import{_ as gt}from"./Tutorial-35af845b.js";const ve={},le=u=>(X("data-v-78c05ef6"),u=u(),Z(),u),ft={class:"d-flex flex-row"},yt={key:1,class:"d-flex",style:{width:"150px"}},bt={class:"flex-grow-1"},$t={key:1,style:{"padding-top":"1px"}},kt=le(()=>e("i",{class:"bi bi-arrows-fullscreen"},null,-1)),wt={style:{width:"20px","margin-top":"2px"},class:"text-center"},xt=le(()=>e("i",{class:"bi bi-link-45deg"},null,-1)),St={class:"text-center",style:{width:"20px","margin-top":"2px"}},Ct=le(()=>e("i",{class:"bi bi-chevron-down"},null,-1)),Mt=le(()=>e("i",{class:"bi bi-chevron-right"},null,-1)),It={key:0,class:"ms-3 pt-1"},Vt=le(()=>e("i",{class:"bi bi-funnel-fill me-2"},null,-1)),Ft=le(()=>e("i",{class:"bi bi-filter me-2"},null,-1)),zt=le(()=>e("i",{class:"bi bi-collection me-2"},null,-1)),Tt=le(()=>e("i",{class:"bi bi-trash me-2"},null,-1)),Et={key:1},Ot=D({__name:"PropertyOptions",props:{property:Object},setup(u){const{t:h}=Ue({useScope:"global"}),t=he(),o=re(),d=K(),c=o.getTabManager(),r=u,g=I(!1),m=I(!1),i=I(""),a=I(!1),n=V(()=>o.getTab()),p=V(()=>n.value.visibleProperties[r.property.id]==!0),v=V(()=>c.collection.filterManager.state.filter.filters.some(z=>!z.isGroup&&z.propertyId==r.property.id)),w=V(()=>c.collection.groupManager.state.groupBy.includes(r.property.id)),f=V(()=>c.collection.sortManager.state.sortBy.includes(r.property.id)),y=V(()=>{if(v.value)return c.collection.filterManager.state.filter.filters.find(z=>!z.isGroup&&z.propertyId==r.property.id).id}),E=()=>c.collection.filterManager,B=V(()=>c.getSha1Mode());function ae(){p.value?c.setVisibleProperty(r.property.id,!1):c.setVisibleProperty(r.property.id,!0)}function M(){g.value?g.value=!1:(g.value=!0,i.value=r.property.name),m.value=!1}function C(){r.property.type!=U.tag&&r.property.type!=U.multi_tags||(m.value?m.value=!1:m.value=!0,g.value=!1)}function O(){f.value?c.collection.sortManager.delSort(r.property.id):c.collection.sortManager.setSort(r.property.id),c.collection.sortManager.update(!0)}function A(){w.value?c.collection.groupManager.delGroupOption(r.property.id):c.collection.groupManager.setGroupOption(r.property.id),c.collection.groupManager.update(!0)}function W(){confirm(h("common.properties.delete")+": "+r.property.name+" ? "+r.property.id)&&d.deleteProperty(r.property.id)}async function R(){i.value!=""&&(await d.updateProperty(r.property.id,i.value),M())}function L(){const z=E();v.value?(z.deleteFilter(y.value),ve.filter.hide()):(z.addNewFilter(r.property.id),ve.filter.show())}return Q(()=>r.property,()=>{g.value=!1}),(z,P)=>(s(),l("div",{class:H(a.value?"hover-light":"")},[e("div",ft,[g.value?x("",!0):(s(),l("div",{key:0,class:"option-holder hover-light btn-icon",style:{width:"150px"},onClick:M},[k(ke,{type:r.property.type,class:"me-2 btn-icon",onMouseenter:P[0]||(P[0]=q=>a.value=!0),onMouseleave:P[1]||(P[1]=q=>a.value=!1)},null,8,["type"]),e("span",null,b(r.property.name),1)])),g.value?(s(),l("div",yt,[e("div",null,[e("i",{class:"btn-icon me-1 bi bi-x-lg",style:{padding:"2px"},onClick:M,onMouseenter:P[2]||(P[2]=q=>a.value=!0),onMouseleave:P[3]||(P[3]=q=>a.value=!1)},null,32)]),e("div",bt,[r.property.id>=0?pe((s(),l("input",{key:0,style:{position:"relative",top:"1px"},type:"text",class:"text-input","onUpdate:modelValue":P[4]||(P[4]=q=>i.value=q),onChange:R},null,544)),[[ge,i.value]]):(s(),l("span",$t,[k(ke,{type:r.property.type,class:"me-2 btn-icon"},null,8,["type"]),e("span",null,b(r.property.name),1)]))])])):x("",!0),_(Ee)(r.property.type)?(s(),l("div",{key:2,style:{width:"20px","margin-top":"2px",cursor:"pointer"},class:"text-center",onClick:P[5]||(P[5]=q=>_(t).showModal(_(ne).TAG,{propId:r.property.id}))},[k(F,{click:!1,message:"main.nav.properties.open_tags"},{default:$(()=>[kt]),_:1})])):x("",!0),e("div",wt,[r.property.mode==_(we).id?(s(),S(F,{key:0,click:!1,message:"main.nav.properties.linked_property_tooltip"},{default:$(()=>[xt]),_:1})):x("",!0)]),e("div",{style:{width:"20px","margin-top":"2px"},onClick:ae,class:"btn-icon text-center"},[B.value&&r.property.mode==_(we).id?(s(),S(F,{key:0,message:"main.nav.properties.hidden_property_tooltip"},{default:$(()=>[e("span",{class:"bi bi-eye-slash",onClick:P[6]||(P[6]=Oe(()=>{},["stop"]))})]),_:1})):(s(),S(F,{key:1,pos:"right",message:"main.nav.properties.hide_property_tooltip"},{default:$(()=>[e("span",{class:H("bi bi-eye text-"+(p.value?"primary":"secondary"))},null,2)]),_:1}))]),e("div",St,[r.property.type==_(U).tag||r.property.type==_(U).multi_tags?(s(),l("div",{key:0,onClick:C,style:{cursor:"pointer"}},[m.value?(s(),S(F,{key:0,message:"main.nav.properties.collapse_property_tooltip"},{default:$(()=>[Ct]),_:1})):(s(),S(F,{key:1,message:"main.nav.properties.expand_property_tooltip"},{default:$(()=>[Mt]),_:1}))])):x("",!0)])]),e("div",null,[g.value?(s(),l("div",It,[u.property.id!=_(Se).folders?(s(),l("div",{key:0,class:H(["options hover-light",v.value?" text-primary":""]),onClick:L},[e("div",null,[Vt,te(b(z.$t("main.menu.filters")),1)])],2)):x("",!0),e("div",{class:H(["options hover-light",f.value?" text-primary":""]),onClick:O},[Ft,te(b(z.$t("main.menu.sort.title")),1)],2),e("div",{class:H(["options hover-light",w.value?" text-primary":""]),onClick:A},[zt,te(b(z.$t("main.menu.groupby")),1)],2),r.property.id>=0?(s(),l("div",{key:1,class:"options hover-light",onClick:W},[Tt,te(b(z.$t("main.nav.properties.delete_property")),1)])):x("",!0)])):m.value?(s(),l("div",Et,[k(He,{property:r.property,"can-create":!0,"can-customize":!0,"can-delete":!0,"can-link":!0},null,8,["property"])])):x("",!0)])],2))}});const Te=j(Ot,[["__scopeId","data-v-78c05ef6"]]),Pt=e("i",{class:"bi bi-three-dots base-hover"},null,-1),Dt={class:"text-nowrap"},Lt=["onClick"],Gt=e("i",{class:"bi bi-arrow-clockwise me-1"},null,-1),Rt=e("div",{class:"custom-hr"},null,-1),jt=["onClick"],At=e("i",{class:"bi bi-trash me-1"},null,-1),Ut=D({__name:"FolderOptionDropdown",props:{folder:{}},setup(u){const h=K(),t=u;function o(){h.reImportFolder(t.folder.id)}function d(){confirm(Ne.global.t("main.nav.folders.del_alert"))&&h.deleteFolder(t.folder.id)}return(c,r)=>(s(),S(oe,{teleport:!0},{button:$(()=>[Pt]),popup:$(({hide:g})=>[e("div",Dt,[e("div",{class:"p-2 bb",onClick:m=>{o(),g()}},[Gt,te("Re import")],8,Lt),Rt,e("div",{class:"bb p-2",onClick:m=>{d(),g()}},[At,te(b(c.$t("main.nav.folders.del")),1)],8,jt)])]),_:1}))}}),Ht=["onMouseenter"],Nt=["onClick"],Bt={class:"text-secondary"},qt=["onClick"],Qt=D({__name:"FolderList2",props:{folders:Array,visibleFolders:Object,filterManager:Ce,root:{type:Boolean,default:!0}},setup(u){const h=K(),t=u,o=I(null),d=V(()=>{let a={};const n=new Set(t.filterManager.state.folders);return t.folders.map(p=>p.id).forEach(p=>{n.has(p)&&(a[p]=!0)}),a}),c=V(()=>{let a={};return t.folders.map(n=>n.id).forEach(n=>{t.visibleFolders[n]&&(a[n]=!0)}),a}),r=V(()=>{let a={};return t.folders.forEach(n=>{let p=[];d.value[n.id]&&p.push("selected"),a[n.id]=p.join(" ")}),a});function g(a){let n=t.visibleFolders;n[a]?delete n[a]:n[a]=!0}function m(a){let n=new Set(t.filterManager.state.folders);const p=n.has(a),v=h.folders[a].parent!=null&&n.has(h.folders[a].parent);p&&!v?(n.delete(a),be(a).forEach(w=>n.delete(w.id))):(i(a,n),n.add(a),be(a).forEach(w=>n.add(w.id)),Ve(h.folders[a]).forEach(w=>n.delete(w.id))),t.filterManager.setFolders(Array.from(n)),t.filterManager.update(!0)}function i(a,n){const p=Ve(h.folders[a]);let v;for(let w of p)if(n.has(w.id))v=w;else break;v!=null&&be(v.id).forEach(w=>n.delete(w.id))}return(a,n)=>{const p=Pe("FolderList2",!0);return s(),l("ul",{class:H(t.root?"tree":""),style:Y(t.root?"padding-left:0px;":"")},[(s(!0),l(T,null,N(u.folders,v=>(s(),l("li",{style:Y(t.root?"padding-left:0px;":""),class:"no-break",onMouseenter:w=>o.value=v.id,onMouseleave:n[0]||(n[0]=w=>o.value=null)},[e("summary",{class:H(r.value[v.id]),onClick:w=>m(v.id)},[te(b(v.name)+" ",1),e("span",Bt,b(v.count),1)],10,Nt),v.children&&v.children.length>0?(s(),l("i",{key:0,onClick:w=>g(v.id),class:H("bi bi-chevron-"+(c.value[v.id]?"down":"right")+" ms-2 btn-icon"),style:{"font-size":"9px"}},null,10,qt)):x("",!0),e("span",{class:H(o.value===v.id?"visible-option":"invisible-option")},[k(Ut,{folder:v,style:{display:"inline-block"}},null,8,["folder"])],2),v.children&&v.children.length>0&&c.value[v.id]?(s(),S(p,{key:1,folders:v.children,root:!1,"visible-folders":t.visibleFolders,"filter-manager":t.filterManager},null,8,["folders","visible-folders","filter-manager"])):x("",!0)],44,Ht))),256))],6)}}});const Kt=j(Qt,[["__scopeId","data-v-940ffff5"]]),Wt={class:"text-center"},Yt={class:"w-100 text-center",style:{"font-size":"10px"}},Xt={key:0,class:"progress",role:"progressbar","aria-label":"Example 1px high","aria-valuemin":"0","aria-valuemax":"100",style:{height:"1px"}},Zt=D({__name:"TaskStatus",props:{task:{}},setup(u){const h=u,t=V(()=>h.task.total-h.task.remain-h.task.computing),o=V(()=>h.task.total);return(d,c)=>(s(),l("div",Wt,[te(b(h.task.name)+" ",1),e("div",Yt,b(t.value)+" / "+b(o.value)+" "+b(d.$t("main.nav.tasks.done")),1),o.value>0?(s(),l("div",Xt,[e("div",{class:"progress-bar",style:Y(`width: ${t.value/o.value*100}%`)},null,4)])):x("",!0)]))}}),J=u=>(X("data-v-375e91a5"),u=u(),Z(),u),Jt={class:"menu overflow-scroll"},es={class:""},ts={class:"m-0",style:{padding:"4px 0px 4px 8px"}},ss={class:"d-flex align-items-center",style:{"font-size":"15px","line-height":"14px"}},os=J(()=>e("i",{class:"bi bi-gear"},null,-1)),as=[os],ns=J(()=>e("i",{class:"bi bi-arrow-left-right"},null,-1)),ls=[ns],is=J(()=>e("div",{class:"custom-hr"},null,-1)),rs={class:"ps-2 pe-2",style:{"padding-bottom":"9.5px"}},ds={class:"d-flex align-items-center"},cs=J(()=>e("i",{class:"bi bi-plus"},null,-1)),us={style:{"max-height":"300px",overflow:"auto"}},ps={key:0,id:"import"},ms=J(()=>e("div",{class:"custom-hr"},null,-1)),_s={class:"pt-1 pb-2"},vs={class:"d-flex align-items-center ps-2 pe-2",style:{height:"30px"}},hs=J(()=>e("div",{class:"custom-hr"},null,-1)),gs={key:0,class:"ps-2 pe-2"},fs={class:"p-1"},ys={key:0,class:"custom-hr"},bs=J(()=>e("div",{class:"custom-hr"},null,-1)),$s={class:"p-2 mt-0"},ks={class:"d-flex"},ws=J(()=>e("span",{class:"flex-grow-1"},null,-1)),xs={key:0,class:"spinner-grow spinner-grow-sm float-end",style:{width:"10px",height:"10px","margin-top":"5px"}},Ss=J(()=>e("span",{class:"sr-only"},null,-1)),Cs=[Ss],Ms={key:1,class:"bb me-1"},Is={class:"bb me-2"},Vs={key:0,class:"mt-2"},Fs={key:0,class:"property-item"},zs=J(()=>e("div",{class:"property-item m-0 p-0"},null,-1)),Ts=J(()=>e("i",{class:"bi bi-plus btn-icon float-start",style:{"font-size":"25px"}},null,-1)),Es=J(()=>e("div",{class:"custom-hr"},null,-1)),Os={class:"p-2 mt-0"},Ps={key:0,class:"mt-2"},Ds={key:0,class:"property-item"},Ls=D({__name:"Menu",emits:["export"],setup(u,{emit:h}){const t=re(),o=K(),d=he(),c=t.getTabManager(),r=I(!1),g=I(!1),m=async p=>{d.showModal(ne.IMPORT)},i=V(()=>t.backendStatus.tasks.filter(p=>!p.done));function a(){d.showModal(ne.FOLDERSELECTION,{callback:n,mode:"images"})}function n(p){p&&o.addFolder(p)}return Q(()=>t.status.import.to_import,()=>r.value=!0),(p,v)=>{var w;return s(),l("div",Jt,[e("div",es,[e("div",null,[e("div",ts,[e("div",ss,[e("div",{class:"flex-grow-1 text-capitalize overflow-hidden",onClick:v[0]||(v[0]=()=>{})},b((w=_(d).data.status.selectedProject)==null?void 0:w.name),1),e("div",{class:"base-hover p-1",onClick:v[1]||(v[1]=f=>_(d).showModal(_(ne).SETTINGS))},as),e("div",{class:"base-hover p-1",style:{"margin-right":"6px"},onClick:v[2]||(v[2]=f=>_(d).closeProject())},ls)])]),is,e("div",rs,[e("div",ds,[e("div",null,[e("b",null,b(p.$t("main.nav.folders.title")),1)]),e("div",{id:"add_folder",class:"ms-auto plus",onClick:v[3]||(v[3]=f=>{a(),_(xe)()})},[k(F,{message:"main.nav.folders.add"},{default:$(()=>[cs]),_:1})])]),e("div",us,[_(t).getTab()?(s(),S(Kt,{key:0,folders:_(o).folderRoots,"filter-manager":_(c).collection.filterManager,"visible-folders":_(c).state.visibleFolders},null,8,["folders","filter-manager","visible-folders"])):x("",!0)])]),i.value&&i.value.length?(s(),l("div",ps,[ms,e("div",_s,[e("div",vs,[e("div",null,[e("b",null,b(p.$t("main.nav.tasks.title")),1)])]),hs,_(t).backendStatus?(s(),l("div",gs,[(s(!0),l(T,null,N(i.value,(f,y)=>(s(),l("div",fs,[y?(s(),l("div",ys)):x("",!0),k(Zt,{task:f},null,8,["task"])]))),256))])):x("",!0)])])):x("",!0),bs,e("div",$s,[e("div",ks,[k(F,{message:"main.nav.properties.properties_tooltip",pos:"top",icon:!0},{default:$(()=>[e("b",null,b(p.$t("main.nav.properties.title")),1)]),_:1}),ws,g.value?(s(),l("span",xs,Cs)):(s(),l("span",Ms,[k(F,{pos:"right",message:"main.nav.properties.import_properties_tooltip"},{default:$(()=>[e("i",{class:"bi bi-box-arrow-in-up text-secondary",style:{position:"relative",top:"0px","font-size":"15px"},onClick:m})]),_:1})])),e("span",Is,[k(F,{pos:"right",message:"main.nav.properties.export_properties_tooltip"},{default:$(()=>[e("i",{class:"bi bi-box-arrow-up text-secondary",style:{position:"relative",top:"0px","font-size":"15px"},onClick:v[4]||(v[4]=f=>_(d).showModal(_(ne).EXPORT,void 0))})]),_:1})])]),_(t).status.loaded?(s(),l("div",Vs,[(s(!0),l(T,null,N(_(o).properties,f=>(s(),l(T,null,[f.id>=0?(s(),l("div",Fs,[k(Te,{property:f},null,8,["property"])])):x("",!0)],64))),256)),zs,e("div",{id:"add-property",onClick:v[5]||(v[5]=f=>{_(d).showModal(_(ne).PROPERTY,void 0),_(xe)()}),class:"btn-icon base-hover mt-1",style:{"line-height":"25px"}},[Ts,e("span",null,b(p.$t("main.nav.properties.add_property")),1)])])):x("",!0)]),Es,e("div",Os,[k(F,{message:"main.nav.computed.computed_tooltip",icon:!0},{default:$(()=>[e("b",null,b(p.$t("main.nav.computed.title")),1)]),_:1}),_(t).status.loaded?(s(),l("div",Ps,[(s(!0),l(T,null,N(_(o).properties,f=>(s(),l(T,null,[f.id<0&&f.id!=_(Be)?(s(),l("div",Ds,[k(F,{pos:"bottom",message:"main.nav.computed."+Math.abs(f.id).toString()+"_tooltip"},{default:$(()=>[k(Te,{property:f},null,8,["property"])]),_:2},1032,["message"])])):x("",!0)],64))),256))])):x("",!0)])])])])}}});const Gs=j(Ls,[["__scopeId","data-v-375e91a5"]]),Rs={class:"p-0 hover-light ps-1 bb",style:{width:"50px"}},js={class:""},As=["onClick"],Us=e("hr",{class:"m-0 p-0 mt-1 mb-1"},null,-1),Hs=D({__name:"FilterGroupOperator",props:{modelValue:{}},emits:["update:modelValue"],setup(u,{emit:h}){const t=u,o=h;function d(c){o("update:modelValue",c)}return(c,r)=>(s(),S(oe,null,{button:$(()=>[e("div",Rs,[e("span",js,b(c.$t("modals.filters."+t.modelValue)),1)])]),popup:$(({hide:g})=>[e("div",{class:"ps-2 pt-1 pb-1 pe-2",onClick:g},[e("div",{class:"base-btn",onClick:r[0]||(r[0]=m=>d(_(Fe).and))},b(c.$t("modals.filters.and")),1),Us,e("div",{class:"base-btn",onClick:r[1]||(r[1]=m=>d(_(Fe).or))},b(c.$t("modals.filters.or")),1)],8,As)]),_:1}))}}),Ns=["disabled"],Bs={class:"m-0 p-1"},qs=["onClick"],Qs=D({__name:"OperatorChoice",props:{propertyId:{},modelValue:{},disabled:{type:Boolean}},emits:["hide","update:modelValue"],setup(u,{emit:h}){const t=K(),o=u,d=h,c=V(()=>t.properties[o.propertyId]),r=V(()=>qe(c.value.type));async function g(m){d("update:modelValue",m)}return(m,i)=>(s(),S(oe,{onHide:i[0]||(i[0]=a=>d("hide")),placement:"bottom"},{button:$(()=>[e("div",{class:"text-nowrap sb ps-1 pe-1",disabled:o.disabled},[e("span",null,b(m.$t("modals.filters.operators."+o.modelValue)),1)],8,Ns)]),popup:$(({hide:a})=>[e("div",Bs,[(s(!0),l(T,null,N(r.value,n=>(s(),l("div",{class:"hover-light p-1 rounded",style:{cursor:"pointer"},onClick:p=>{g(n),a()}},[e("a",null,b(m.$t("modals.filters.operators."+n)),1)],8,qs))),256))])]),_:1}))}});const Ks=j(Qs,[["__scopeId","data-v-0b3d97be"]]),Ws={class:"d-flex text-nowrap overflow-hidden",style:{"font-size":"14px"}},Ys=D({__name:"FilterValueInput",props:{modelValue:{},property:{},width:{}},emits:["update:modelValue"],setup(u,{emit:h}){const t=u,o=h;function d(c){o("update:modelValue",c)}return(c,r)=>(s(),l("div",Ws,[_(Ee)(c.property.type)?(s(),S(Qe,{key:0,"model-value":t.modelValue,"onUpdate:modelValue":d,"no-wrap":!0,"auto-focus":!0,"can-create":!0,"can-customize":!0,property:t.property,teleport:!1,width:t.width,class:"sb"},null,8,["model-value","property","width"])):t.property.type==_(U).color?(s(),S(Ke,{key:1,"model-value":t.modelValue,"onUpdate:modelValue":d,width:t.width,rounded:!0,"min-height":22,teleport:!1,offset:2,class:"sb"},null,8,["model-value","width"])):t.property.type==_(U).number?(s(),S(We,{key:2,"model-value":t.modelValue,"onUpdate:modelValue":d,width:t.width,height:26,"input-offset":0,class:"sb"},null,8,["model-value","width"])):t.property.type==_(U).url?(s(),S(Ye,{key:3,"model-value":t.modelValue,"onUpdate:modelValue":d,width:t.width,offset:-22,class:"sb"},null,8,["model-value","width"])):t.property.type==_(U).checkbox?(s(),S(Xe,{key:4,"model-value":t.modelValue,"onUpdate:modelValue":d,label:t.property.name,width:t.width,class:"sb"},null,8,["model-value","label","width"])):t.property.type==_(U).date?(s(),S(Ze,{key:5,"model-value":t.modelValue,teleport:!1,"onUpdate:modelValue":d,width:t.width,class:"sb"},null,8,["model-value","width"])):(s(),S(Je,{key:6,"model-value":t.modelValue,"onUpdate:modelValue":d,width:t.width,offset:-22,class:"sb"},null,8,["model-value","width"]))]))}}),Xs={class:"p-0 m-0 ps-2"},Zs=D({__name:"FilterRow",props:{manager:{},filter:{}},emits:[],setup(u,{emit:h}){const t=K(),o=u,d=V(()=>t.properties[o.filter.propertyId]),c=V(()=>tt(o.filter.operator));function r(i){o.manager.updateFilter(o.filter.id,{operator:i})}function g(i){o.manager.updateFilter(o.filter.id,{value:i})}function m(i){o.manager.updateFilter(o.filter.id,{propertyId:i.id})}return(i,a)=>(s(),l(T,null,[e("td",Xs,[k(et,{"model-value":d.value,"onUpdate:modelValue":m},null,8,["model-value"])]),e("td",null,[k(Ks,{"property-id":d.value.id,"model-value":o.filter.operator,"onUpdate:modelValue":r},null,8,["property-id","model-value"])]),e("td",null,[c.value?(s(),S(Ys,{key:0,"model-value":o.filter.value,"onUpdate:modelValue":g,property:d.value,width:140,style:{width:"150px"},class:""},null,8,["model-value","property"])):x("",!0)])],64))}}),Js={style:{"max-height":"500px",overflow:"auto"}},Ge=D({__name:"AddFilterBtn",props:{group:{},manager:{}},emits:[],setup(u,{emit:h}){const t=u;function o(d){t.manager.addNewFilter(d,t.group.id),ve.filter.show()}return(d,c)=>(s(),S(oe,{placement:"auto"},{button:$(()=>[st(d.$slots,"default")]),popup:$(({hide:r})=>[e("div",Js,[k(De,{onSelect:g=>{o(g),r()},"ignore-ids":[_(Se).folders]},null,8,["onSelect","ignore-ids"])])]),_:3}))}}),Me=u=>(X("data-v-cbadcac5"),u=u(),Z(),u),eo={class:"filter-group"},to={class:"table table-sm"},so={style:{height:"33px"}},oo={class:""},ao={key:0,class:"m-0 p-0"},no={key:2,class:"text-secondary"},lo={class:"border rounded"},io={class:""},ro=["onClick"],co=Me(()=>e("i",{class:"bi bi-trash"},null,-1)),uo=[co],po={class:"d-flex text-secondary ms-2"},mo={class:"add-options hover-light"},_o=Me(()=>e("i",{class:"bi bi-plus"},null,-1)),vo=Me(()=>e("i",{class:"bi bi-plus"},null,-1)),ho=D({__name:"FilterGroup",props:{filter:{},manager:{},parent:{}},emits:["delete"],setup(u,{emit:h}){K();const t=u,o=V(()=>t.filter),d=V(()=>o.value.filters),c=V(()=>{let i=255-(o.value.depth+1)*5;return`background: rgb(${i},${i},${i});`});function r(i){t.manager.deleteFilter(i.id)}function g(i){t.manager.addNewFilterGroup(i)}function m(i,a){t.manager.updateFilterGroup(i,a)}return(i,a)=>(s(),l("div",eo,[e("table",to,[(s(!0),l(T,null,N(d.value,(n,p)=>(s(),l("tr",so,[e("td",oo,[p==0?(s(),l("div",ao,b(i.$t("modals.filters.where")),1)):p==1?(s(),S(Hs,{key:1,"model-value":o.value.groupOperator,"onUpdate:modelValue":a[0]||(a[0]=v=>m(o.value.id,v))},null,8,["model-value"])):(s(),l("span",no,b(i.$t("modals.filters."+o.value.groupOperator)),1))]),n.propertyId!==void 0?(s(),S(Zs,{key:0,filter:n,manager:t.manager},null,8,["filter","manager"])):(s(),l("td",{key:1,colspan:"3",style:Y(c.value)},[e("div",lo,[k(Re,{filter:n,manager:t.manager},null,8,["filter","manager"])])],4)),e("td",io,[e("span",{class:"base-btn",onClick:v=>r(n)},uo,8,ro)])]))),256))]),e("div",po,[k(Ge,{group:t.filter,manager:t.manager},{default:$(()=>[e("div",mo,[_o,te(b(i.$t("modals.filters.new_filter")),1)])]),_:1},8,["group","manager"]),e("div",{class:"add-options hover-light",onClick:a[1]||(a[1]=n=>g(o.value.id))},[vo,te(b(i.$t("modals.filters.new_group")),1)])])]))}});const Re=j(ho,[["__scopeId","data-v-cbadcac5"]]),go=u=>(X("data-v-7dbca090"),u=u(),Z(),u),fo={key:0,class:"d-flex flex-row m-0 ms-1 p-1 bg hover-light bg-medium",style:{cursor:"pointer"}},yo={key:0},bo=go(()=>e("span",{class:"text-primary"},"Text Query",-1)),$o={key:0,class:"or-separator"},ko={key:0,class:"or-separator"},wo={key:0,class:"m-1 p-1"},xo=D({__name:"MainFilterDropdown",props:{manager:Ce},emits:["update:modelValue"],setup(u,{emit:h}){const t=K(),o=u,d=I(null),c=I(null),r=V(()=>{let m=g(o.manager.state.filter),i={};return m.forEach(a=>i[a.propertyId]=a),Object.values(i)});function g(m){let i=[];for(let a of m.filters)a.isGroup?i.push(...g(a)):i.push(a);return i}return Q(()=>o.manager.state.filter.filters,()=>{o.manager.state.filter.filters.length==0&&c.value.hide()}),ue(async()=>{await ee(),ve.filter=c.value}),(m,i)=>(s(),S(oe,{ref_key:"dropdownElem",ref:c,placement:"top-start"},{button:$(()=>[e("div",null,[r.value.length||o.manager.state.query?(s(),l("div",fo,[o.manager.state.query?(s(),l("div",yo,[bo,r.value.length?(s(),l("span",$o,"|")):x("",!0)])):x("",!0),(s(!0),l(T,null,N(r.value,(a,n)=>(s(),l("div",null,[n>0?(s(),l("span",ko,"|")):x("",!0),a.propertyId==_(Se).id?(s(),S(ke,{key:1,type:_(t).properties[a.propertyId].type,style:{"margin-right":"2px"}},null,8,["type"])):x("",!0),e("span",null,b(_(t).properties[a.propertyId].name),1)]))),256))])):x("",!0)])]),popup:$(()=>[e("div",{class:"m-0 p-0",ref_key:"popupElem",ref:d},[Object.keys(_(t).properties).length>0?(s(),l("div",wo,[k(Re,{filter:o.manager.state.filter,manager:o.manager,parent:d.value},null,8,["filter","manager","parent"])])):x("",!0)],512)]),_:1},512))}});const So=j(xo,[["__scopeId","data-v-7dbca090"]]),Co=u=>(X("data-v-aad7b24a"),u=u(),Z(),u),Mo={class:"d-flex flex-row filter-form"},Io={class:"pt-1 pb-1"},Vo=Co(()=>e("span",{class:"base-hover plus-btn text-secondary"},[e("i",{class:"bi bi-plus"})],-1)),Fo=D({__name:"FilterForm",props:{manager:Ce},setup(u){const h=u;return(t,o)=>(s(),l("div",Mo,[e("div",Io,b(t.$t("main.menu.filters"))+": ",1),k(So,{manager:h.manager},null,8,["manager"]),k(Ge,{manager:h.manager,group:h.manager.state.filter,class:"p-1"},{default:$(()=>[Vo]),_:1},8,["manager","group"])]))}});const zo=j(Fo,[["__scopeId","data-v-aad7b24a"]]),To=u=>(X("data-v-2f10e29f"),u=u(),Z(),u),Eo=To(()=>e("div",{class:"text-secondary p-1"},[e("span",{class:"base-hover plus-btn"},[e("i",{class:"bi bi-plus"})])],-1)),Oo={class:"p-1",style:{"max-height":"400px","overflow-y":"scroll"}},Po=D({__name:"PropertyDropdown",props:{groupIds:Array},emits:["select"],setup(u,{emit:h}){const t=u,o=h,d=I(null);return(c,r)=>(s(),S(oe,{ref_key:"dropdownElem",ref:d,"auto-focus":!1},{button:$(()=>[Eo]),popup:$(()=>[e("div",Oo,[k(De,{onClick:r[0]||(r[0]=g=>_(xe)()),onSelect:r[1]||(r[1]=g=>{o("select",g),d.value.hide()}),"ignore-ids":t.groupIds},null,8,["ignore-ids"])])]),_:1},512))}});const je=j(Po,[["__scopeId","data-v-2f10e29f"]]),Do={class:"base-hover ps-1 pe-1"},Lo={class:"main"},Go=["onClick"],Ro=D({__name:"TimeUnitDropdown",props:{modelValue:{}},emits:["update:modelValue"],setup(u,{emit:h}){const t=u,o=h,d=Object.values(Le);function c(r){o("update:modelValue",r)}return(r,g)=>(s(),S(oe,null,{button:$(()=>[e("div",Do,b(t.modelValue),1)]),popup:$(({hide:m})=>[e("div",Lo,[(s(!0),l(T,null,N(_(d),i=>(s(),l("div",{class:"base-hover option",onClick:a=>{c(i),m()}},b(i),9,Go))),256))])]),_:1}))}});const jo=j(Ro,[["__scopeId","data-v-cc9d0d61"]]),Ao=u=>(X("data-v-a27bea28"),u=u(),Z(),u),Uo=Ao(()=>e("i",{class:"bi bi-three-dots-vertical"},null,-1)),Ho={class:""},No={class:"d-flex ipt"},Bo={class:"ms-2",min:"1"},qo=D({__name:"GroupOptionDropdown",props:{option:{}},emits:["change"],setup(u,{emit:h}){const t=u,o=h,d=I(1),c=I(Le.Year);function r(){t.option.stepSize==d.value&&t.option.stepUnit==c.value||o("change",{stepSize:d.value,stepUnit:c.value})}function g(){d.value=t.option.stepSize??1,c.value=t.option.stepUnit}return Q(()=>t.option,g),ue(g),Q(d,()=>{(d.value<1||d.value==null||isNaN(d.value))&&(d.value=1)}),(m,i)=>(s(),S(oe,{onHide:r},{button:$(()=>[Uo]),popup:$(({hide:a,focus:n})=>[e("div",Ho,[e("div",No,[e("div",null,[pe(e("input",{type:"number","onUpdate:modelValue":i[0]||(i[0]=p=>d.value=p)},null,512),[[ge,d.value]])]),e("div",Bo,[k(jo,{modelValue:c.value,"onUpdate:modelValue":i[1]||(i[1]=p=>c.value=p),onHide:n},null,8,["modelValue","onHide"])])])])]),_:1}))}});const Qo=j(qo,[["__scopeId","data-v-a27bea28"]]),Ko={class:"d-flex flex-row group-form"},Wo={class:"pt-1 pb-1"},Yo={key:0,class:"bg-medium bg d-flex flex-row m-0 ms-1 p-0 align-items-center"},Xo={key:0,class:"bi bi-chevron-right smaller"},Zo=["onClick"],Jo=["onClick"],ea=["onClick"],ta=["onClick"],sa=["onClick"],oa=["onClick"],aa=["onClick"],na=["onClick"],la=["onClick"],ia={key:5,class:"sm-btn"},ra={key:0,class:"spinner-grow spinner-grow-sm loading ms-1"},da=D({__name:"GroupForm",props:{isLoading:Boolean,manager:ot},setup(u){const h=K(),t=u;function o(a){t.manager.setGroupOption(a),t.manager.update(!0)}function d(a){t.manager.delGroupOption(a),t.manager.update(!0)}function c(a,n){t.manager.setGroupOption(a,{direction:n}),t.manager.sortGroups(!0)}function r(a,n){t.manager.setGroupOption(a,{type:n}),t.manager.sortGroups(!0)}function g(a,n){t.manager.setGroupOption(a,n),t.manager.update(!0)}const m=V(()=>t.manager.state.groupBy.map(a=>h.properties[a])),i=V(()=>{const a=[];return t.manager.state.groupBy.forEach(n=>{a.push({option:t.manager.state.options[n],property:h.properties[n]})}),a});return(a,n)=>(s(),l("div",Ko,[e("div",Wo,b(a.$t("main.menu.groupby"))+": ",1),m.value.length?(s(),l("div",Yo,[(s(!0),l(T,null,N(i.value,(p,v)=>(s(),l(T,null,[v>0?(s(),l("i",Xo)):x("",!0),e("div",{class:"base-hover m-1 ps-1 pe-1",onClick:w=>d(p.property.id),id:"remove-group-button"},b(p.property.name),9,Zo),p.option.type==_(ie).Size?(s(),S(F,{key:1,message:"main.menu.sort.group_order_nb_tooltip"},{default:$(()=>[p.option.direction==_(se).Ascending?(s(),l("i",{key:0,class:"bi bi-sort-up-alt sm-btn",onClick:w=>r(p.property.id,_(ie).Property)},null,8,Jo)):(s(),l("i",{key:1,class:"bi bi-sort-down sm-btn",onClick:w=>r(p.property.id,_(ie).Property)},null,8,ea))]),_:2},1024)):(s(),S(F,{key:2,message:"main.menu.sort.group_order_az_tooltip"},{default:$(()=>[p.property.type==_(U).number?(s(),l(T,{key:0},[p.option.direction==_(se).Ascending?(s(),l("i",{key:0,class:"bi bi-sort-numeric-up sm-btn",onClick:w=>r(p.property.id,_(ie).Size)},null,8,ta)):(s(),l("i",{key:1,class:"bi bi-sort-numeric-down-alt sm-btn",onClick:w=>r(p.property.id,_(ie).Size)},null,8,sa))],64)):(s(),l(T,{key:1},[p.option.direction==_(se).Ascending?(s(),l("i",{key:0,class:"bi bi-sort-alpha-up sm-btn",onClick:w=>r(p.property.id,_(ie).Size)},null,8,oa)):(s(),l("i",{key:1,class:"bi bi-sort-alpha-down-alt sm-btn",onClick:w=>r(p.property.id,_(ie).Size)},null,8,aa))],64))]),_:2},1024)),p.option.direction==_(se).Ascending?(s(),S(F,{key:3,message:"main.menu.sort.order_asc"},{default:$(()=>[e("i",{class:"bi bi-arrow-up sm-btn",onClick:w=>c(p.property.id,_(se).Descending)},null,8,na)]),_:2},1024)):(s(),S(F,{key:4,message:"main.menu.sort.order_desc"},{default:$(()=>[e("i",{class:"bi bi-arrow-down sm-btn",onClick:w=>c(p.property.id,_(se).Ascending)},null,8,la)]),_:2},1024)),p.property.type==_(U).date?(s(),l("div",ia,[k(Qo,{option:p.option,onChange:w=>g(p.property.id,w)},null,8,["option","onChange"])])):x("",!0)],64))),256)),t.isLoading?(s(),l("i",ra)):x("",!0)])):x("",!0),k(je,{id:"add-group-button","group-ids":t.manager.state.groupBy,onSelect:n[0]||(n[0]=p=>o(p))},null,8,["group-ids"])]))}});const ca=j(da,[["__scopeId","data-v-388718c9"]]),ua={class:"d-flex flex-row sort-form"},pa={class:"pt-1 pb-1"},ma={key:0,class:"d-flex flex-row m-0 p-0 bg-medium bg ms-1 align-items-center"},_a={key:0,class:"bi bi-chevron-right smaller"},va=["onClick"],ha=["onClick"],ga=["onClick"],fa=D({__name:"SortForm",props:{manager:at},setup(u){const h=K(),t=u,o=V(()=>t.manager.state.sortBy.map(m=>({propertyId:m,direction:t.manager.state.options[m].direction}))),d=V(()=>o.value.map(m=>m.propertyId));function c(m){t.manager.setSort(m),t.manager.update(!0)}function r(m){t.manager.delSort(m),t.manager.update(!0)}function g(m,i){t.manager.setSort(m,{direction:i}),t.manager.update(!0)}return(m,i)=>(s(),l("div",ua,[e("div",pa,b(m.$t("main.menu.sort.title"))+": ",1),o.value.length?(s(),l("div",ma,[(s(!0),l(T,null,N(o.value,(a,n)=>(s(),l(T,null,[n>0?(s(),l("i",_a)):x("",!0),e("div",{class:"me-0 ms-1 ps-1 mt-1 mb-1 pe-1 base-hover",onClick:p=>r(a.propertyId)},b(_(h).properties[a.propertyId].name),9,va),a.direction==_(se).Ascending?(s(),S(F,{key:1,message:"main.menu.sort.order_asc"},{default:$(()=>[e("i",{class:"bi bi-arrow-up sm-btn",onClick:p=>g(a.propertyId,_(se).Descending)},null,8,ha)]),_:2},1024)):(s(),S(F,{key:2,message:"main.menu.sort.order_desc"},{default:$(()=>[e("i",{class:"bi bi-arrow-down sm-btn",onClick:p=>g(a.propertyId,_(se).Ascending)},null,8,ga)]),_:2},1024))],64))),256))])):x("",!0),k(je,{"group-ids":d.value,onSelect:i[0]||(i[0]=a=>c(a))},null,8,["group-ids"])]))}});const ya=j(fa,[["__scopeId","data-v-80dc564a"]]),fe=u=>(X("data-v-ba1876b2"),u=u(),Z(),u),ba=fe(()=>e("i",{class:"bi bi-clock-history me-1"},null,-1)),$a={class:"p-2"},ka={key:0,class:"border mb-1 p-1 text-center text-secondary",style:{"background-color":"#f7f7f7"}},wa={class:"border mb-1 p-1"},xa={class:"me"},Sa=fe(()=>e("span",{class:"sep ms-1 me-1"},null,-1)),Ca={key:0},Ma={key:1},Ia={class:"border mb-1 p-1",style:{"background-color":"#f7f7f7"}},Va={class:"d-flex center justify-content-center"},Fa={key:1,class:"bi bi-arrow-down text-secondary"},za=fe(()=>e("div",{style:{width:"30px"}},null,-1)),Ta={key:3,class:"bi bi-arrow-up text-secondary"},Ea={class:"border mb-1 p-1"},Oa={class:"me"},Pa=fe(()=>e("span",{class:"sep ms-1 me-1"},null,-1)),Da={key:0},La={key:1},Ga={key:1,class:"border mb-1 p-1 text-center text-secondary",style:{"background-color":"#f7f7f7"}},de=5,Ra=D({__name:"HistoryDropdown",emits:[],setup(u,{emit:h}){const t=K(),o=I(!1),d=V(()=>o.value?{backgroundColor:"blue"}:{backgroundColor:"white"}),c=V(()=>[...t.history.undo].reverse().slice(0,de)),r=V(()=>t.history.redo.slice(Math.max(t.history.redo.length-de,0)));return Q(()=>t.onUndo,()=>{console.log("changed"),o.value=!0,setTimeout(()=>o.value=!1,100)}),(g,m)=>c.value.length||r.value.length?(s(),S(oe,{key:0},{button:$(()=>[k(F,{message:"dropdown.history.info"},{default:$(()=>[e("div",{class:"d-flex sb flash",style:Y([{"font-size":"14px"},d.value])},[ba,e("div",null,b(g.$t("dropdown.history.button")),1)],4)]),_:1})]),popup:$(()=>[e("div",$a,[_(t).history.redo.length>de?(s(),l("div",ka," + "+b(_(t).history.redo.length-de),1)):x("",!0),(s(!0),l(T,null,N(r.value,i=>(s(),l("div",wa,[e("span",xa,b(new Date(i.timestamp).toLocaleTimeString("fr-Fr",{hour:"2-digit",minute:"2-digit"})),1),Sa,i.tags?(s(),l("span",Ca,b(i.tags)+" "+b(g.$t("dropdown.history.tags")),1)):x("",!0),i.values?(s(),l("span",Ma,b(i.values)+" "+b(g.$t("dropdown.history.values")),1)):x("",!0)]))),256)),e("div",Ia,[e("div",Va,[c.value.length?(s(),S(F,{key:0,message:"dropdown.history.undo"},{default:$(()=>[e("div",{class:"bi bi-arrow-down sb",onClick:m[0]||(m[0]=(...i)=>_(t).undo&&_(t).undo(...i))})]),_:1})):(s(),l("div",Fa)),za,r.value.length?(s(),S(F,{key:2,message:"dropdown.history.redo"},{default:$(()=>[e("div",{class:"bi bi-arrow-up sb",onClick:m[1]||(m[1]=(...i)=>_(t).redo&&_(t).redo(...i))})]),_:1})):(s(),l("div",Ta))])]),(s(!0),l(T,null,N(c.value,i=>(s(),l("div",Ea,[e("span",Oa,b(new Date(i.timestamp).toLocaleTimeString("fr-Fr",{hour:"2-digit",minute:"2-digit"})),1),Pa,i.tags?(s(),l("span",Da,b(i.tags)+" "+b(g.$t("dropdown.history.tags")),1)):x("",!0),i.values?(s(),l("span",La,b(i.values)+" "+b(g.$t("dropdown.history.values")),1)):x("",!0)]))),256)),_(t).history.undo.length>de?(s(),l("div",Ga," + "+b(_(t).history.undo.length-de),1)):x("",!0)])]),_:1})):x("",!0)}});const ja=j(Ra,[["__scopeId","data-v-ba1876b2"]]),Ie=u=>(X("data-v-6c701a49"),u=u(),Z(),u),Aa=Ie(()=>e("span",{class:"bi bi-arrow-repeat text-warning"},null,-1)),Ua=Ie(()=>e("span",{class:"bi bi-check2-all text-success"},null,-1)),Ha=Ie(()=>e("div",{style:{height:"30px"}},[e("span",{class:"bi bi-check2-all text-success small-valid"}),e("span",{class:"bi bi-arrow-repeat big-arrow text-warning",style:{opacity:"0.3"}})],-1)),Na=D({__name:"ToggleReload",emits:[],setup(u,{emit:h}){const t=re(),o=V(()=>t.getTab().autoReload?2:t.getTabManager().collection.state.isDirty?0:1);function d(){o.value==0?t.getTabManager().collection.update():o.value==1?(t.getTab().autoReload=!0,t.updateTabs()):(t.getTab().autoReload=!1,t.updateTabs())}return(c,r)=>(s(),l("div",{class:"bb font",onClick:d,style:{width:"26px",height:"30px",overflow:"hidde"}},[o.value==0?(s(),S(F,{key:0,message:"btn.reload.dirty",pos:"bottom"},{default:$(()=>[Aa]),_:1})):x("",!0),o.value==1?(s(),S(F,{key:1,message:"btn.reload.valid",pos:"bottom"},{default:$(()=>[Ua]),_:1})):x("",!0),o.value==2?(s(),S(F,{key:2,message:"btn.reload.auto",pos:"bottom"},{default:$(()=>[Ha]),_:1})):x("",!0)]))}});const Ba=j(Na,[["__scopeId","data-v-6c701a49"]]),ye=u=>(X("data-v-6b406850"),u=u(),Z(),u),qa={class:"d-flex flex-row p-2"},Qa=ye(()=>e("div",{class:"bi bi-search float-start bi-sm"},null,-1)),Ka=["placeholder"],Wa={class:"me-5 d-flex"},Ya=ye(()=>e("div",{class:"bi bi-aspect-ratio me-1"},null,-1)),Xa={class:"ms-5",style:{"font-size":"13px"}},Za=["checked"],Ja={class:"ms-1"},en={class:"ms-4"},tn=ye(()=>e("div",{class:"flex-grow-1"},null,-1)),sn=ye(()=>e("a",{href:"https://github.com/CERES-Sorbonne/Panoptic/issues/new/choose",target:"_blank",class:"bi bi-cone-striped",style:{color:"grey"}},null,-1)),on={class:"d-flex flex-wrap content-container ps-2"},an=D({__name:"ContentFilter",props:{tab:nt,computeStatus:Object},emits:["compute-ml","search-images","remove:selected"],setup(u,{emit:h}){const t=u,o=I(""),d=V(()=>Object.keys(t.tab.collection.groupManager.selectedImages.value).map(Number)),c=V(()=>d.value.length);function r(a){const n=a.target.checked;t.tab.collection.groupManager.setSha1Mode(n,!0)}function g(){o.value=t.tab.state.filterState.query}function m(){t.tab.collection.filterManager.setQuery(o.value),t.tab.collection.filterManager.update(!0)}function i(){t.tab.collection.filterManager.setQuery(""),t.tab.collection.filterManager.update(!0)}return ue(g),Q(()=>t.tab.collection.filterManager.state.query,g),(a,n)=>(s(),l(T,null,[e("div",qa,[k(F,{icon:!0,message:"main.menu.search_tooltip",iconPos:"left"},{default:$(()=>[e("div",{class:H(["d-flex flex-row search-input me-5",o.value?"border-primary":""])},[Qa,pe(e("input",{type:"text",class:"input-hidden",placeholder:a.$t("main.menu.search"),"onUpdate:modelValue":n[0]||(n[0]=p=>o.value=p),onChange:m},null,40,Ka),[[ge,o.value]]),e("div",{class:"bi-sm base-hover",style:{cursor:"pointer",padding:"0px 2px"},onClick:i},"x")],2)]),_:1}),e("div",Wa,[k(F,{message:"main.menu.grid_tooltip"},{default:$(()=>[e("i",{class:H("bi bi-grid-3x3-gap-fill me-2 btn-icon"+(t.tab.state.display=="tree"?"":" text-secondary")),onClick:n[1]||(n[1]=p=>t.tab.state.display="tree")},null,2)]),_:1}),k(F,{message:"main.menu.table_tooltip"},{default:$(()=>[e("i",{id:"toot",class:H("bi bi-table btn-icon me-2"+(t.tab.state.display=="grid"?"":" text-secondary")),onClick:n[2]||(n[2]=p=>t.tab.state.display="grid")},null,2)]),_:1}),k(F,{message:"main.menu.graph_tooltip"},{default:$(()=>[e("i",{id:"toot",class:H("bi bi-bar-chart btn-icon"+(t.tab.state.display=="graph"?"":" text-secondary")),onClick:n[3]||(n[3]=p=>t.tab.state.display="graph")},null,2)]),_:1})]),k(F,{message:"main.menu.image_size_tooltip",click:!1},{default:$(()=>[Ya]),_:1}),e("div",null,[k(lt,{min:30,max:500,modelValue:t.tab.state.imageSize,"onUpdate:modelValue":n[4]||(n[4]=p=>t.tab.state.imageSize=p)},null,8,["modelValue"])]),e("div",Xa,[k(F,{message:"main.menu.image_mode_tooltip"},{default:$(()=>[e("input",{type:"checkbox",checked:t.tab.collection.groupManager.state.sha1Mode,onChange:r},null,40,Za),e("span",Ja,b(a.$t("main.menu.image_mode")),1)]),_:1})]),e("div",en,[k(ja)]),c.value?(s(),S(it,{key:0,id:"selection-stamp",class:"ms-5","selected-images-ids":d.value,"onRemove:selected":n[5]||(n[5]=p=>t.tab.collection.groupManager.clearSelection())},null,8,["selected-images-ids"])):x("",!0),tn,k(F,{message:"main.menu.issue",class:"bb"},{default:$(()=>[sn]),_:1})]),e("div",on,[k(Ba,{class:"me-1"}),k(zo,{manager:t.tab.collection.filterManager},null,8,["manager"]),k(ca,{"is-loading":t.computeStatus.groups,manager:t.tab.collection.groupManager},null,8,["is-loading","manager"]),k(ya,{manager:t.tab.collection.sortManager},null,8,["manager"])])],64))}});const nn=j(an,[["__scopeId","data-v-6b406850"]]),ln={class:""},rn={class:"d-flex flex-row"},dn=D({__name:"ImageRecomended",props:{pile:Object,size:{type:Number,default:100}},emits:["accept","refuse"],setup(u,{emit:h}){const t=he(),o=u,d=h,c=V(()=>`width: ${o.size}px; height: ${o.size}px;`);V(()=>`max-width: ${o.size-2}px; max-height: ${o.size-1}px;`);const r=V(()=>o.pile.images[0]);return(g,m)=>(s(),l("div",ln,[k(dt,{image:r.value},{default:$(()=>[e("div",{style:Y(c.value),class:"img-container",onClick:m[0]||(m[0]=i=>_(t).showModal(_(ne).IMAGE,{image:r.value}))},[k(rt,{image:r.value,width:o.size-2,height:o.size-1},null,8,["image","width","height"])],4)]),_:1},8,["image"]),e("div",rn,[k(F,{message:"main.recommand.accept"},{default:$(()=>[e("div",{style:Y(["width: "+o.size/2+"px;",{"font-size":"10px"}]),class:"text-center text-success validate clickable unselectable",onClick:m[1]||(m[1]=i=>d("accept",r.value))}," ✓ ",4)]),_:1}),k(F,{message:"main.recommand.refuse"},{default:$(()=>[e("div",{style:Y(["width: "+o.size/2+"px;",{"font-size":"10px"}]),class:"text-center text-danger refuse clickable unselectable",onClick:m[2]||(m[2]=i=>d("refuse",r.value))}," ✕ ",4)]),_:1})])]))}});const cn=j(dn,[["__scopeId","data-v-809d667b"]]),me=u=>(X("data-v-8f1f076a"),u=u(),Z(),u),un={class:"reco-container"},pn={class:"d-flex flex-row m-0 ps-2 center mb-1 mt-0",style:{height:"25px"}},mn=me(()=>e("span",{class:"bi bi-x-lg bb",style:{}},null,-1)),_n=[mn],vn=me(()=>e("div",{class:"b-left pe-1"},null,-1)),hn=me(()=>e("span",{class:"bi bi-arrow-down-circle bb"},null,-1)),gn=[hn],fn=me(()=>e("div",{class:"b-left pe-1"},null,-1)),yn={key:0,class:"bi bi-funnel-fill bb text-primary"},bn={key:1,class:"bi bi-funnel bb"},$n=me(()=>e("div",{class:"b-left pe-1"},null,-1)),kn={class:"text-secondary me-2"},wn={class:"flex-grow-1"},xn={class:"d-flex flex-row"},Sn={key:0,class:"separator"},Cn={class:"d-flex flex-row"},$e=10,Mn=D({__name:"RecommendedMenu",props:{imageSize:{},group:{},width:{},height:{}},emits:["scroll","close","update"],setup(u,{emit:h}){const t=re(),o=K(),d=ct(),c=u,r=h,g=I(1),m=ce([]),i=ce([]),a=ce([]),n=ce(new Set),p=I(!0);function v(M){let C=i.indexOf(M);C<0||(i.splice(C,1),y())}async function w(M){const C=[],O=[];a.forEach(A=>{if(A.value!=null){const W=o.properties[A.propertyId];let R=A.value;W.type==U.multi_tags?(R=M.properties[A.propertyId]??[],R=[...R,A.value]):W.type==U.tag&&(R=[R]),W.mode==we.id?O.push({instanceId:M.id,propertyId:W.id,value:R}):C.push({propertyId:W.id,sha1:M.sha1,value:R})}}),await o.setPropertyValues(O,C),v(M.sha1)}function f(M){n.add(M.sha1),v(M.sha1)}function y(){m.length=0;const M=i.map(C=>({sha1:C,images:o.sha1Index[C]}));E(M,m,g.value,c.imageSize,c.width)}function E(M,C,O,A,W){let R=W,L=[],z=0;for(let P=0;P=O);P++){let q=M[P];if(n.has(q.sha1))continue;let _e=A+$e;if(z+_e0&&C.lengthL.id);let C=await d.getSimilarImages({instanceIds:M});if(console.log(C),!C.instances)throw new Error("No instances in ActionResult");let O=[];const A=C.instances.scores??[];if(C.instances.ids)for(let L in C.instances.ids){const z={id:C.instances.ids[L],score:A[L]};O.push(z)}else for(let L in C.instances.sha1s){const z=C.instances.sha1s[L];for(let P of o.sha1Index[z]){const q={id:P.id,score:A[L]};O.push(q)}}if(O.sort((L,z)=>z.score-L.score),p.value){const L=t.getTabManager(),z=new Set(L.collection.groupManager.result.root.images.map(P=>P.id));O=O.filter(P=>z.has(P.id))}const W=Array.from(new Set(O.map(L=>o.instances[L.id].sha1)));a.length=0;let R=c.group;for(;R;)a.push(...R.meta.propertyValues),R=R.parent;i.length=0,i.push(...W),n.clear(),y(),r("update")}function ae(){p.value=!p.value}return ue(B),Q(()=>c.group,()=>{B(),n.clear()}),Q(()=>c.imageSize,y),Q(()=>c.width,y),Q(p,B),(M,C)=>(s(),l("div",un,[e("div",pn,[e("div",{class:"text-secondary pe-1",onClick:C[0]||(C[0]=O=>r("close"))},_n),vn,e("div",{class:"text-secondary pe-1",onClick:C[1]||(C[1]=O=>r("scroll",c.group.id))},gn),fn,e("div",{class:"text-secondary pe-1",onClick:ae},[p.value?(s(),l("span",yn)):(s(),l("span",bn))]),$n,k(F,{"icon-pos":"left",message:"main.recommand.tooltip",icon:!0},{default:$(()=>[e("span",kn,b(M.$t("main.recommand.title")),1)]),_:1}),e("div",wn,[e("div",xn,[(s(!0),l(T,null,N(a,(O,A)=>(s(),l(T,null,[k(ut,{class:"",value:O},null,8,["value"]),A(s(),l("div",null,[e("div",Cn,[(s(!0),l(T,null,N(O,A=>(s(),S(cn,{pile:A,size:c.imageSize,onAccept:w,onRefuse:f,style:Y("margin-right:"+$e+"px;")},null,8,["pile","size","style"]))),256))])]))),256))],4)]))}});const In=j(Mn,[["__scopeId","data-v-8f1f076a"]]);const Vn={style:{display:"flex"}},Fn={class:"info"},zn=e("img",{id:"zoomed-image",style:{display:"none",position:"absolute","z-index":"1000",width:"120px",height:"120px","pointer-events":"none"}},null,-1),Tn={__name:"LineChart",props:{chartData:{series:Array,xValues:Array,dataType:U},height:String},setup(u){const h=u,t=I(0),o=I(!1),d={};Object.keys(h.chartData.series).forEach(n=>{d[n]=!1});const c=I({markers:{size:7},legend:{showForSingleSeries:!0,onItemClick:{toggleDataSeries:!1}},xaxis:{type:h.chartData.dataType===U.date?"datetime":"numeric",categories:h.chartData.xValues},chart:{type:"area",stacked:!1,stackOnlyBar:!1,zoom:{type:"x",autoScaleYaxis:!0},animations:{animateGradually:{enabled:!1,delay:150}}},dataLabels:{enabled:!1},stroke:{curve:"straight"},tooltip:{intersect:!0,shared:!1,custom:function({series:n,seriesIndex:p,dataPointIndex:v,w}){const f=h.chartData.series[p].data[v];let y='
';f.images.forEach((B,ae)=>{ae<10&&(y+=`
`)}),y+="
";let E=`${h.chartData.series[p].name} — ${f.y} Images`;return E+=`
${y}
`,E}}}),r=()=>{c.value.chart.stacked=!c.value.chart.stacked,o.value=!o.value,t.value+=1},g=()=>{let n;c.value.chart.type==="area"?n={chart:{...c.value.chart,type:"bar"}}:n={chart:{...c.value.chart,type:"area"}},c.value={...c.value,...n},t.value+=1},m=(n,p,v)=>{const f=h.chartData.series[p];let y=Math.max(...f.data.map(E=>E.y));if(document.querySelectorAll(".apexcharts-custom-image").forEach(E=>E.remove()),d[p]){d[p]=!1;return}f.data.forEach((E,B)=>{const M=Math.floor(E.y/y*17),C=E.images.slice(0,M),O=`circle[index="${p}"][j="${B}"]`,A=document.querySelector(O),W=parseFloat(A.getAttribute("cx"));C.forEach((R,L)=>{const z=document.createElement("img");z.src=R,z.width=40,z.height=40,z.style.position="absolute";let P=W+40/1.5,q=65+L*40;z.style.left=`${P}px`,z.style.bottom=`${q}px`,z.classList.add("apexcharts-custom-image"),z.addEventListener("mouseover",_e=>i(P,q,R)),z.addEventListener("mouseout",a),n.el.appendChild(z)})}),Object.keys(d).forEach(E=>d[E]=!1),d[p]=!0};function i(n,p,v){const w=document.getElementById("zoomed-image");w.style.left=`${n+120*1.5}px`,w.src=v,w.style.bottom=`${p}px`,w.style.display="block"}function a(){const n=document.getElementById("zoomed-image");n.style.display="none"}return console.log("test"),(n,p)=>{const v=Pe("apexchart");return s(),l(T,null,[e("div",Vn,[e("button",{class:"mt-2",onClick:g},b(c.value.chart.type==="area"?n.$t("main.graph-view.histo"):n.$t("main.graph-view.curve")),1),h.chartData.series.length>1?(s(),l("button",{key:0,class:"mt-2",style:{"margin-left":"1em"},onClick:r},b(o.value?n.$t("main.graph-view.over"):n.$t("main.graph-view.stack")),1)):x("",!0)]),(s(),S(v,{style:{position:"relative"},key:t.value,height:h.height,type:c.value.chart.type,options:c.value,series:h.chartData.series,onLegendClick:m},null,8,["height","type","options","series"])),e("i",Fn,b(n.$t("main.graph-view.info")),1),zn],64)}}},En={key:1},On=D({__name:"GraphView",props:{collection:{},height:{}},emits:[],setup(u,{emit:h}){const t=K(),o=u,d=I(""),c=I(g());function r(){const m=new Set;let i=o.collection.groupManager.getGroupIterator();for(;i;){const a=i.group;if(a.id===0||a.meta.propertyValues&&a.meta.propertyValues[0].value==null){i=i.nextGroup();continue}for(let n of a.children)m.add(n.meta.propertyValues[0].value);a.children.forEach(()=>i=i.nextGroup()),i=i.nextGroup()}return m}function g(){const m={};let i,a=o.collection.groupManager.state.groupBy;if(a.length===0){d.value="Choose at least one date or numeric value to group the images by";return}const n=t.properties[a[0]],p=n.type;if(a.length>2){d.value="Only max two levels of grouping are supported";return}else if(a.length===1)m[n.name]={name:n.name,data:[]};else if(i=Array.from(r()),i.length>20){d.value="Too many curves to draw, select a subgrouping with less than 20 possible values";return}if(p!==U.number&&p!==U.date){d.value="First level of grouping needs to be a date or a numeric property";return}let v=o.collection.groupManager.getGroupIterator();const w=[];for(;v;){const f=v.group;if(f.id===0||f.meta.propertyValues&&f.meta.propertyValues[0].value==null){v=v.nextGroup();continue}let y=f.meta.propertyValues[0];const E=p===U.date?new Date(y.value).getTime():y.value;if(w.push(E),n.name in m)m[n.name].data.push({x:E,y:f.images.length,images:f.images.slice(0,20).map(B=>B.urlSmall)});else{const B=f.children.map(M=>M.meta.propertyValues[0].value),ae=i.filter(M=>!B.includes(M));for(let M of f.children){const C=M.meta.propertyValues[0].value;if(m[C]===void 0){let O=C;C in t.tags&&(O=t.tags[C].value),m[C]={data:[],name:O}}m[M.meta.propertyValues[0].value].data.push({x:E,y:M.images.length,images:M.images.slice(0,20).map(O=>O.urlSmall)})}for(let M of ae){if(m[M]===void 0){let C=M;M in t.tags&&(C=t.tags[M].value),m[M]={data:[],name:C}}m[M].data.push({x:E,y:0,images:[]})}f.children.forEach(()=>v=v.nextGroup())}v=v.nextGroup()}return d.value="",{series:Object.values(m),xValues:w,dataType:p}}return o.collection.groupManager.onChange.addListener(()=>c.value=g()),(m,i)=>(s(),l("div",{class:"",style:Y({height:o.height+"px"})},[d.value===""?(s(),S(Tn,{key:0,chartData:c.value,height:o.height-50+"px"},null,8,["chartData","height"])):(s(),l("span",En,b(d.value),1))],4))}}),Pn={key:0,class:"m-0 p-0"},Dn={key:0,style:{"margin-left":"10px"}},Ln=D({__name:"MainView",props:{tabId:Number,height:Number},setup(u){const h=re(),t=h.getTabManager(),o=u,d=I({}),c=I(!0),r=I(null),g=I(null),m=I(null),i=I(0),a=I(0),n=ce({groups:!1}),p=V(()=>t.getVisibleProperties());function v(){r.value&&g.value?i.value=o.height-r.value.clientHeight-g.value.clientHeight-5:r.value?i.value=o.height-r.value.clientHeight-5:i.value=0}t.collection.groupManager.onChange.addListener(()=>{m.value&&t.state.display=="tree"&&m.value.computeLines()});function w(y){d.value=t.collection.groupManager.result.index[y],ee(()=>v())}function f(){d.value={},ee(()=>v())}return ue(()=>{a.value=r.value.clientWidth,window.addEventListener("resize",()=>{ee(()=>{var y;a.value=((y=r.value)==null?void 0:y.clientWidth)??a.value})})}),Q(()=>t.state.imageSize,()=>ee(v)),Q(()=>o.height,async()=>{await ee(v)}),Q(t.state,y=>{h.updateTabs()},{deep:!0}),Q(()=>o.tabId,async()=>{c.value=!1,await ee(),c.value=!0}),(y,E)=>(s(),l(T,null,[e("div",{id:"main-content",ref_key:"filterElem",ref:r},[k(nn,{tab:_(t),"compute-status":n},null,8,["tab","compute-status"])],512),e("div",{ref_key:"boxElem",ref:g,class:"m-0 p-0"},[d.value.id?(s(),l("div",Pn,[k(In,{group:d.value,"image-size":_(t).state.imageSize,width:a.value,height:50,onClose:f,onScroll:m.value.scrollTo,onUpdate:E[0]||(E[0]=B=>ee(()=>v()))},null,8,["group","image-size","width","onScroll"])])):x("",!0)],512),a.value>0&&i.value>0&&c.value?(s(),l("div",Dn,[_(t).state.display=="tree"?(s(),S(pt,{key:0,"group-manager":_(t).collection.groupManager,"image-size":_(t).state.imageSize,height:i.value-0,properties:p.value,"hide-if-modal":!0,"selected-images":_(t).collection.groupManager.selectedImages,ref_key:"imageList",ref:m,width:a.value-25,onRecommend:w},null,8,["group-manager","image-size","height","properties","selected-images","width"])):x("",!0),_(t).state.display=="grid"?(s(),l("div",{key:1,style:Y({width:a.value-12+"px"}),class:"p-0 m-0 grid-container"},[k(mt,{manager:_(t).collection.groupManager,height:i.value-15,width:a.value-40,"selected-properties":p.value,class:"p-0 m-0","show-images":!0,"selected-images":_(t).collection.groupManager.selectedImages,ref_key:"imageList",ref:m,"hide-if-modal":!0},null,8,["manager","height","width","selected-properties","selected-images"])],4)):x("",!0),_(t).state.display=="graph"?(s(),S(On,{key:2,collection:_(t).collection,height:i.value-15},null,8,["collection","height"])):x("",!0)])):x("",!0)],64))}});const Gn=j(Ln,[["__scopeId","data-v-d39b32cf"]]),Rn={class:"d-flex d-row",style:{cursor:"pointer"}},jn=["onMouseenter","onMouseleave"],An=["onClick"],Un=["onClick"],Hn=["onClick"],Nn=["onSubmit"],Bn=["onKeydown","onUpdate:modelValue"],qn=e("span",{class:"bi bi-plus"},null,-1),Qn=[qn],Kn={class:"lang"},Wn=e("i",{class:"bi bi-translate",style:{"margin-right":"0.5rem"}},null,-1),Yn=["value"],Xn=D({__name:"TabNav",props:{reRender:Function},setup(u){const h=re(),t=I(-1),o=I(""),d=I(null),c=u;function r(v){h.data.selectedTabId==v||m(),h.selectTab(v)}function g(v){t.value=v,o.value=h.data.tabs[v].name,ee(()=>d.value[0].focus())}function m(){t.value=-1,o.value=""}function i(v){h.addTab("New Tab")}async function a(v){confirm("Are you sure to delete Tab: "+v.name)&&await h.removeTab(v.id)}const n=ce({});I(-1);const p=["fr","en"];return(v,w)=>(s(),l("nav",null,[e("div",Rn,[(s(!0),l(T,null,N(_(h).data.tabs,f=>(s(),l("div",{class:"d-flex d-row me-2",onMouseenter:y=>n[f.id]=!0,onMouseleave:y=>n[f.id]=!1},[t.value!=f.id?(s(),l(T,{key:0},[k(F,{message:"main.menu.rename_tab_tooltip"},{default:$(()=>[e("i",{onClick:y=>g(f.id),class:H(["bi bi-pencil me-1 tab-icon hover-light",n[f.id]&&_(h).data.selectedTabId==f.id?"":"hidden"]),style:{"font-size":"10px"}},null,10,An)]),_:2},1024),e("div",{class:H(["tab-button",f.id==_(h).data.selectedTabId?" active":""]),onClick:y=>r(f.id)},[e("span",null,b(f.name),1)],10,Un),k(F,{message:"main.menu.delete_tab_tooltip"},{default:$(()=>[e("i",{onClick:y=>a(f),class:H(["btn-icon bi bi-x tab-icon hover-light",n[f.id]?"":"hidden"]),style:{"font-size":"15px"}},null,10,Hn)]),_:2},1024)],64)):(s(),l("div",{key:1,class:H(["tab-button",f.id==_(h).data.selectedTabId?" active":""])},[e("form",{onSubmit:Oe(m,["stop","prevent"])},[pe(e("input",{onFocusout:m,onKeydown:_t(m,["escape"]),type:"text",class:"text-input","onUpdate:modelValue":y=>f.name=y,ref_for:!0,ref_key:"inputElem",ref:d},null,40,Bn),[[ge,f.name]])],40,Nn)],2))],40,jn))),256)),k(F,{message:"main.menu.add_tab_tooltip"},{default:$(()=>[e("button",{class:"tab-icon hover-light ps-1 pe-1",onClick:i,id:"add-tab-button"},Qn)]),_:1}),e("div",Kn,[Wn,pe(e("select",{"onUpdate:modelValue":w[0]||(w[0]=f=>v.$i18n.locale=f),onChange:w[1]||(w[1]=f=>c.reRender())},[(s(),l(T,null,N(p,(f,y)=>e("option",{key:`Lang${y}`,value:f},b(f.toUpperCase()),9,Yn)),64))],544),[[vt,v.$i18n.locale]])])])]))}});const Ae=u=>(X("data-v-3637d99f"),u=u(),Z(),u),Zn={key:0},Jn={class:"d-flex flex-row m-0 p-0 overflow-hidden"},el={class:"w-100"},tl={key:0,class:"custom-hr"},sl={key:1,class:"loading"},ol={class:"text-center"},al={key:2,class:"loading"},nl=Ae(()=>e("i",{class:"spinner-border",role:"status"},null,-1)),ll=Ae(()=>e("span",{class:"ms-1"},"Loading...",-1)),il=[nl,ll],rl=D({__name:"PanopticView",setup(u){const h=re(),t=K(),o=he(),d=I(null),c=I(null),r=I(window.innerHeight),g=I(!1),m=I(!0),i=V(()=>{var y;return r.value-(((y=c.value)==null?void 0:y.clientHeight)??0)}),a=V(()=>{var y;return(y=d.value)==null?void 0:y.filteredImages.map(E=>E.id)});let n=navigator.userAgent.indexOf("Mac OS X")!==-1;async function p(){m.value=!1,await ee(),m.value=!0}ue(async()=>{o.isProjectLoaded||ze.push("/"),ee(()=>{window.addEventListener("resize",v),v()}),window.addEventListener("keydown",y=>{y.key=="Control"&&(G.ctrl=!0),y.key=="Alt"&&(n&&(G.ctrl=!0),G.alt=!0),y.key=="Shift"&&(G.shift=!0),y.key=="ArrowLeft"&&(G.left=!0),y.key=="ArrowRight"&&(G.right=!0,console.log("keeeyy")),y.key=="Z"&&G.ctrl&&t.redo(),y.key=="z"&&G.ctrl&&t.undo()}),window.addEventListener("keyup",y=>{y.key=="Control"&&(G.ctrl=!1),y.key=="Alt"&&(n&&(G.ctrl=!1),G.alt=!1),y.key=="Shift"&&(G.shift=!1),y.key=="ArrowLeft"&&(G.left=!1),y.key=="ArrowRight"&&(G.right=!1)}),window.addEventListener("mousemove",y=>{G.ctrl=y.ctrlKey,G.alt=y.altKey,G.shift=y.shiftKey,n&&(G.ctrl=G.ctrl||G.alt)})}),ht(()=>{window.removeEventListener("resize",v)});function v(){r.value=window.innerHeight,g.value=!0}function w(){o.showModal(ne.EXPORT,a)}function f(){ze.push("/")}return(y,E)=>m.value?(s(),l("div",Zn,[d.value&&!d.value.imageList?(s(),S(gt,{key:0,tutorial:"project"})):x("",!0),(s(),l("div",{id:"panoptic",key:_(h).status.renderNb},[e("div",Jn,[_(h).status.loaded?(s(),l(T,{key:0},[e("div",null,[k(Gs,{onExport:E[0]||(E[0]=B=>w())})]),e("div",el,[e("div",{class:"ms-3",ref_key:"navElem",ref:c},[k(Xn,{"re-render":p})],512),g.value?(s(),l("div",tl)):x("",!0),k(Gn,{"tab-id":_(h).data.selectedTabId,height:i.value,ref_key:"mainViewRef",ref:d},null,8,["tab-id","height"])])],64)):_(o).isProjectLoaded?(s(),l("div",al,il)):(s(),l("div",sl,[e("div",ol,[e("div",null,b(y.$t("main.status.no_project")),1),e("div",{class:"bi bi-house p-3",onClick:f,style:{"font-size":"50px",cursor:"pointer"}})])]))])]))])):x("",!0)}});const ul=j(rl,[["__scopeId","data-v-3637d99f"]]);export{ul as default}; diff --git a/panoptic_back/panoptic/html/assets/PanopticView-fd4a9dc4.css b/panoptic_back/panoptic/html/assets/PanopticView-fd4a9dc4.css deleted file mode 100644 index ef8e0411..00000000 --- a/panoptic_back/panoptic/html/assets/PanopticView-fd4a9dc4.css +++ /dev/null @@ -1 +0,0 @@ -.option-holder[data-v-78c05ef6]{border-radius:3px;padding:2px}.options[data-v-78c05ef6]{padding:3px;cursor:pointer}.selected[data-v-940ffff5]{border:1px solid blue;padding:2px 4px!important}.tree[data-v-940ffff5]{text-align:start;--spacing: 1.3rem;--radius: 30px;margin-bottom:0}.tree li[data-v-940ffff5]{display:block;position:relative;margin-left:0;padding-left:calc(2 * var(--spacing) - var(--radius) - 0px)}.tree ul[data-v-940ffff5]{margin-left:calc(var(--radius) - var(--spacing));padding-left:0;margin-bottom:0}.tree ul li[data-v-940ffff5]{border-left:1px solid rgb(195,207,217)}.tree ul li[data-v-940ffff5]:last-child{border-color:transparent}.tree ul li[data-v-940ffff5]:before{content:"";display:block;position:absolute;top:calc(var(--spacing) / -2);left:-1px;width:calc(var(--spacing) + 1px);height:calc(var(--spacing) + 3px);border:solid rgb(195,207,217);border-width:0 0 1px 1px}.tree summary[data-v-940ffff5]{text-align:center;display:inline-block;position:relative;cursor:pointer;z-index:10!important;background-color:#c3cfd9;margin:3px 0 0;border-radius:2px;padding:3px 5px;font-size:10px;width:auto}.tree summary[data-v-940ffff5]::marker,.tree summary[data-v-940ffff5]::-webkit-details-marker{display:none}.tree summary[data-v-940ffff5]:focus{outline:none}.tree summary[data-v-940ffff5]:focus-visible{outline:1px dotted #000}.no-break[data-v-940ffff5]{word-wrap:none;word-break:none;white-space:nowrap}.visible-option[data-v-940ffff5]{padding-left:3px;position:relative;top:2px;color:#000}.invisible-option[data-v-940ffff5]{padding-left:3px;position:relative;top:2px;color:#fff}.plus[data-v-375e91a5]{font-size:1.5em}.plus[data-v-375e91a5]:hover{cursor:pointer}.button-like[data-v-0b3d97be]{border-radius:3px;cursor:pointer;padding-right:3px;padding-left:3px}.filter-group[data-v-cbadcac5]{min-width:300px}.operator-offset[data-v-cbadcac5]{padding-left:2px}.add-options[data-v-cbadcac5]{margin-right:10px;cursor:pointer;padding-right:4px;border-radius:3px}.or-separator[data-v-7dbca090]{padding:0 4px}.bg[data-v-7dbca090]{border-radius:3px}.filter-form[data-v-aad7b24a]{color:#212529;font-size:14px}.plus-btn[data-v-aad7b24a]{padding:4px;border-radius:3px}.plus-btn[data-v-2f10e29f]{padding:4px!important;border-radius:3px!important}.main[data-v-cc9d0d61]{padding:5px;font-size:15px}.option[data-v-cc9d0d61]{padding:2px 4px}.ipt[data-v-a27bea28]{padding:5px}input[type=number][data-v-a27bea28]{width:40px;font-size:15px!important}.loading[data-v-388718c9]{background-color:#ababab;margin-top:7px;margin-right:5px;margin-left:-3px}.group-form[data-v-388718c9]{color:#212529;font-size:14px}.bg[data-v-388718c9]{border-radius:3px}.sort-form[data-v-80dc564a]{color:#212529;font-size:14px}.bg[data-v-80dc564a]{border-radius:3px}.plus-btn[data-v-80dc564a]{padding:4px;border-radius:3px}.flash[data-v-ba1876b2]{transition:background-color .5s ease}.font[data-v-6c701a49]{font-size:20px!important}.small-valid[data-v-6c701a49]{position:absolute;top:3px;left:4px;font-size:18px!important}.big-arrow[data-v-6c701a49]{position:relative;font-size:26px!important;top:-5px;left:-4px;transform:rotate(90deg);display:block}.custom-toggle[data-v-6b406850]{--toggle-width: 60px !important;--toggle-bg-on: #a5a5a5;--toggle-border-on: #a5a5a5}.center-block[data-v-6b406850]{margin:auto;display:block}.unique-switch[data-v-6b406850]{height:10px}.unique-switch[data-v-6b406850]:focus{height:10px;box-shadow:none}.content-container[data-v-6b406850]{border-bottom:1px solid var(--border-color);padding-bottom:5px;margin:0}.search-input[data-v-6b406850]{border:2px solid rgb(197,206,213);padding:1px;margin:0;border-radius:3px;width:180px}.input-hidden[data-v-6b406850]{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;border:none;margin:1px 0 0;padding:0;height:16px;font-size:10px;color:var(--text-color);width:100%}.input-hidden[data-v-6b406850]:focus{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;outline-width:0;border:0;outline:none}.bi-sm[data-v-6b406850]{font-size:10px;color:#788996;margin-top:2px;margin-right:4px;margin-left:3px}.validate[data-v-809d667b]{padding:3px;border:1px solid var(--validate-border)}.refuse[data-v-809d667b]{padding:3px;border:1px solid var(--refuse-border)}.refuse[data-v-809d667b]:hover{background-color:var(--refuse-border)}.validate[data-v-809d667b]:hover{background-color:var(--validate-border)}.img-container[data-v-809d667b]{position:relative;margin:auto;padding:auto;cursor:pointer;border-top:1px solid var(--border-color);border-left:1px solid var(--border-color);border-right:1px solid var(--border-color)}.prop-container[data-v-809d667b]{width:100%;border-top:1px solid var(--border-color);padding:2px;font-size:12px}img[data-v-809d667b]{max-height:100%;max-width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.separator[data-v-8f1f076a]{border-left:2px solid var(--border-color);margin:3px 4px}.close[data-v-8f1f076a]{font-size:14px}.scroll[data-v-8f1f076a]{border-bottom:2px solid var(--border-color);border-left:2px solid var(--border-color);font-size:13px}.reco-container[data-v-8f1f076a]{margin-top:0;border-bottom:1px solid var(--border-color);border-top:1px solid var(--border-color);padding:0 0 10px}.image-line[data-v-8f1f076a]{height:100%;border-left:1px solid var(--border-color);padding-left:10px}.active[data-v-8f1f076a]{border-left:1px solid blue}.b-left[data-v-8f1f076a]{border-left:1px solid var(--border-color);height:80%}.center[data-v-8f1f076a]{display:flex;justify-content:center;align-items:center}.apexcharts-custom-image{z-index:500;transition:transform .15s ease,z-index 0s .3s}.apexcharts-legend-text:hover{cursor:pointer}.info{text-align:center;display:inherit;font-size:.8em}.grid-container[data-v-d39b32cf]{overflow-y:hidden;overflow-x:overlay}.no-border{border:none!important}.hidden{visibility:hidden}.lang{margin-left:auto;order:2;margin-top:.1em;margin-right:.5em;font-size:16px}.above[data-v-3637d99f]{position:absolute;top:500px;left:500px;z-index:200}.above2[data-v-3637d99f]{position:absolute;top:500px;left:500px}.loading[data-v-3637d99f]{width:100%;height:100vh;display:flex;justify-content:center;align-items:center} diff --git a/panoptic_back/panoptic/html/assets/TestView-44a2de37.js b/panoptic_back/panoptic/html/assets/TestView-44a2de37.js deleted file mode 100644 index 7a3e5b05..00000000 --- a/panoptic_back/panoptic/html/assets/TestView-44a2de37.js +++ /dev/null @@ -1,3 +0,0 @@ -import{d as I,r,c as V,s as D,z as b,D as U,o as f,b as e,a as x,x as L,q as n,T as A,F as E,i as C,n as P,A as S,_ as B,B as N,l as $,C as l,e as g,E as z,G as R,H as F,I as k,J as H,U as K,N as O,K as W,L as j,R as q,t as G,O as J,Q as M,S as Q,p as Z,f as X}from"./index-b8269694.js";const Y={key:0,class:"text-secondary"},ee={class:"p-1",style:{"max-width":"250px"}},te=I({__name:"TagInputDropdown",props:{property:Object,modelValue:Array,excluded:Array,canCreate:Boolean,canCustomize:Boolean,canLink:Boolean,canDelete:Boolean,autoFocus:Boolean,noWrap:Boolean,teleport:Boolean},emits:["update:modelValue","hide"],setup(i,{expose:c,emit:m}){const d=i,p=m;c({getHeight:w});const _=r(null),v=r(null),u=V(()=>d.modelValue??[]),y=V(()=>u.value.map(h=>d.property.tags[h]));function w(){return _.value==null?0:_.value.clientHeight}return(h,t)=>(f(),D(U,{"auto-focus":!1,onHide:t[1]||(t[1]=s=>p("hide")),teleport:d.teleport},{button:b(()=>[e("div",{class:P(["btn-class",d.noWrap?"text-nowrap":"text-wrap"]),ref_key:"heightElem",ref:_},[(f(!0),x(E,null,L(y.value,s=>(f(),x("span",null,[n(A,{id:s.id,class:"me-1"},null,8,["id"])]))),256)),y.value.length==0?(f(),x("span",Y,"None")):C("",!0)],2)]),popup:b(()=>[e("div",ee,[n(S,{property:d.property,"model-value":u.value,excluded:d.excluded,"can-create":d.canCreate,"can-customize":d.canCustomize,"can-link":d.canLink,"can-delete":d.canDelete,"auto-focus":d.autoFocus,"onUpdate:modelValue":t[0]||(t[0]=s=>p("update:modelValue",s)),ref_key:"inputElem",ref:v},null,8,["property","model-value","excluded","can-create","can-customize","can-link","can-delete","auto-focus"])])]),_:1},8,["teleport"]))}});const se=B(te,[["__scopeId","data-v-83af63c6"]]),a=i=>(Z("data-v-3a46f53c"),i=i(),X(),i),oe={key:0,class:"d-flex flex-wrap p-2"},ae={class:"item border rounded"},le=a(()=>e("h5",{class:"text-secondary"},"Date",-1)),ne=a(()=>e("span",{class:"text-secondary"},"Preview",-1)),de={class:"mb-1"},re=a(()=>e("span",{class:"text-secondary"},"Input",-1)),ue={class:"item border rounded"},ie=a(()=>e("h5",{class:"text-secondary"},"Text",-1)),ce=a(()=>e("span",{class:"text-secondary"},"Preview",-1)),pe={class:"mb-1"},_e=a(()=>e("span",{class:"text-secondary"},"Input",-1)),me={class:"item border rounded"},ve=a(()=>e("h5",{class:"text-secondary"},"BDInput Row Text",-1)),ye={class:"item border rounded"},fe=a(()=>e("h5",{class:"text-secondary"},"Url",-1)),he=a(()=>e("span",{class:"text-secondary"},"Preview",-1)),xe={class:"mb-1"},Ve=a(()=>e("span",{class:"text-secondary"},"Input",-1)),we={class:"item border rounded"},ge=a(()=>e("h5",{class:"text-secondary"},"Number",-1)),be=a(()=>e("span",{class:"text-secondary"},"Preview",-1)),ke={class:"mb-1"},Ie=a(()=>e("span",{class:"text-secondary"},"Input",-1)),Ce={class:"item border rounded"},Be=a(()=>e("h5",{class:"text-secondary"},"CellColorInput",-1)),Te={class:"item border rounded"},De=a(()=>e("h5",{class:"text-secondary"},"RowDateInput",-1)),Ue={class:"item border rounded"},Le=a(()=>e("h5",{class:"text-secondary"},"Checkbox",-1)),Ae=a(()=>e("span",{class:"text-secondary"},"Preview",-1)),Ee={class:"mb-1"},Pe=a(()=>e("span",{class:"text-secondary"},"Input",-1)),Se={class:"item border rounded"},Ne=a(()=>e("h5",{class:"text-secondary"},"Tags",-1)),$e=I({__name:"TestView",setup(i){const c=N(),m=r(`Lorem Ipsum is simply dummy text - -of the printing and typesetting industry.`),d=r("google.com"),p=r(12.3),_=r(0),v=r(!0),u=r("2024-04-04T23:26:00Z"),y=r([]),w=V(()=>c.instances[1]),h=V(()=>c.properties[3]);return $(()=>{window.addEventListener("keydown",t=>{t.key=="Control"&&(l.ctrl=!0),t.key=="Alt"&&(l.ctrl=!0,l.alt=!0),t.key=="Shift"&&(l.shift=!0),t.key=="ArrowLeft"&&(l.left=!0),t.key=="ArrowRight"&&(l.right=!0,console.log("keeeyy"))}),window.addEventListener("keyup",t=>{t.key=="Control"&&(l.ctrl=!1),t.key=="Alt"&&(l.ctrl=!1,l.alt=!1),t.key=="Shift"&&(l.shift=!1),t.key=="ArrowLeft"&&(l.left=!1),t.key=="ArrowRight"&&(l.right=!1)}),window.addEventListener("mousemove",t=>{l.ctrl=t.ctrlKey,l.alt=t.altKey,l.shift=t.shiftKey,l.ctrl=l.ctrl||l.alt})}),(t,s)=>g(c).propertyList.length?(f(),x("div",oe,[e("div",ae,[le,ne,e("div",de,[n(z,{date:u.value},null,8,["date"])]),re,e("div",null,[n(R,{modelValue:u.value,"onUpdate:modelValue":s[0]||(s[0]=o=>u.value=o)},null,8,["modelValue"])])]),e("div",ue,[ie,ce,e("div",pe,[n(F,{text:m.value},null,8,["text"])]),_e,e("div",null,[n(k,{modelValue:m.value,"onUpdate:modelValue":s[1]||(s[1]=o=>m.value=o)},null,8,["modelValue"])])]),e("div",me,[ve,n(H,{instance:w.value,"property-id":h.value.id},{default:b(({set:o,value:T})=>[n(M,{"model-value":T,"onUpdate:modelValue":o,width:200},null,8,["model-value","onUpdate:modelValue"])]),_:1},8,["instance","property-id"])]),e("div",ye,[fe,he,e("div",xe,[n(K,{url:d.value},null,8,["url"])]),Ve,e("div",null,[n(k,{modelValue:d.value,"onUpdate:modelValue":s[2]||(s[2]=o=>d.value=o),"url-mode":!0},null,8,["modelValue"])])]),e("div",we,[ge,be,e("div",ke,[n(O,{number:p.value},null,8,["number"])]),Ie,e("div",null,[n(W,{modelValue:p.value,"onUpdate:modelValue":s[3]||(s[3]=o=>p.value=o)},null,8,["modelValue"])])]),e("div",Ce,[Be,e("div",null,[n(j,{modelValue:_.value,"onUpdate:modelValue":s[4]||(s[4]=o=>_.value=o),rounded:!0},null,8,["modelValue"])])]),e("div",Te,[De,e("div",null,[n(q,{modelValue:u.value,"onUpdate:modelValue":s[5]||(s[5]=o=>u.value=o)},null,8,["modelValue"])])]),e("div",Ue,[Le,Ae,e("div",Ee,G(!!v.value),1),Pe,e("div",null,[n(J,{modelValue:v.value,"onUpdate:modelValue":s[6]||(s[6]=o=>v.value=o),label:"Checkbox"},null,8,["modelValue"])])]),e("div",Se,[Ne,e("div",null,[n(se,{property:g(c).propertyList.find(o=>o.type==g(Q).multi_tags),modelValue:y.value,"onUpdate:modelValue":s[7]||(s[7]=o=>y.value=o),"can-create":!0,"no-wrap":!0},null,8,["property","modelValue"])])])])):C("",!0)}});const Re=B($e,[["__scopeId","data-v-3a46f53c"]]);export{Re as default}; diff --git a/panoptic_back/panoptic/html/assets/TestView-b992f297.css b/panoptic_back/panoptic/html/assets/TestView-b992f297.css deleted file mode 100644 index 47ad9319..00000000 --- a/panoptic_back/panoptic/html/assets/TestView-b992f297.css +++ /dev/null @@ -1 +0,0 @@ -.btn-class[data-v-83af63c6]{overflow:hidden;cursor:pointer}.test[data-v-3a46f53c]:focus{background-color:#8a2be2!important}.item[data-v-3a46f53c]{width:250px;padding:5px;margin-right:10px;margin-bottom:10px} diff --git a/panoptic_back/panoptic/html/assets/Tutorial-35af845b.js b/panoptic_back/panoptic/html/assets/Tutorial-35af845b.js deleted file mode 100644 index 1eba907b..00000000 --- a/panoptic_back/panoptic/html/assets/Tutorial-35af845b.js +++ /dev/null @@ -1 +0,0 @@ -import{V as I,u as B,W as $,aA as L,c as v,X as F,l as M,k as A,M as V,a6 as y,o as n,s as k,z as S,aB as z,e as l,b as E,a as m,t as u,i as r,h as R}from"./index-b8269694.js";const D={class:"v-step__buttons"},O=["onClick"],W=["onClick"],X=["onClick"],q={__name:"Tutorial",props:{tutorial:{type:String,default:"home"}},setup(x){const{t}=I({useScope:"global"}),p=B(),N=$(),d=L("tours"),T=x,j=[{target:"#main-menu",content:t("tutorial.step-1"),params:{placement:"top"}},{target:"#create-project",content:t("tutorial.step-2"),hideNext:!0,params:{placement:"right"}},{target:"#select-folder",content:t("tutorial.step-3"),hideNext:!0,params:{placement:"top"}},{target:"#confirm-modal",content:t("tutorial.step-3a"),hideNext:!0,before:()=>new Promise((o,s)=>{setTimeout(()=>o("foo"),300)}),params:{placement:"right"}},{target:"#confirm-create",hideNext:!0,content:t("tutorial.step-3b")}],P=[{target:"#add_folder",content:t("tutorial.step-4"),hideNext:!0,before:()=>new Promise((o,s)=>{setTimeout(()=>o("foo"),300)}),params:{placement:"bottom"}},{target:"#confirm-modal",content:t("tutorial.step-4b"),hideNext:!0,before:()=>new Promise((o,s)=>{setTimeout(()=>o("foo"),300)}),params:{placement:"bottom"}},{target:"#import",before:()=>new Promise((o,s)=>{setTimeout(()=>o("foo"),300)}),content:t("tutorial.step-5"),params:{placement:"right"}},{target:"#add-property",content:t("tutorial.step-6"),hideNext:!0,params:{placement:"right"}},{target:"#select-property",content:t("tutorial.step-7"),hideNext:!0,before:()=>new Promise((o,s)=>{setTimeout(()=>o("foo"),250)}),params:{placement:"right"}},{target:"#confirm-property",content:t("tutorial.step-8"),hideNext:!0,params:{placement:"right"}},{target:"#main-content",content:t("tutorial.step-9"),params:{placement:"bottom"}},{target:"#main-content",content:t("tutorial.step-10"),params:{placement:"bottom"}},{target:"#add-group-button",content:t("tutorial.step-11"),params:{placement:"bottom"},hideNext:!0},{target:"#main-content",content:t("tutorial.step-12"),params:{placement:"bottom"}},{target:"#main-content",content:t("tutorial.step-13"),params:{placement:"bottom"}},{target:"#main-content",content:t("tutorial.step-13a"),params:{placement:"bottom"}},{target:"#selection-stamp",content:t("tutorial.step-13b"),params:{placement:"bottom"}},{target:"#remove-group-button",content:t("tutorial.step-14"),params:{placement:"top"}},{target:"#add-tab-button",content:t("tutorial.step-14b"),params:{placement:"bottom"}},{target:"#group-action-button",content:t("tutorial.step-15"),params:{placement:"bottom"}},{target:"#main-content",content:t("tutorial.step-16"),params:{placement:"bottom"}},{target:"#main-content",content:t("tutorial.step-17"),params:{placement:"bottom"}}],i=T.tutorial==="home"?j:P;let a=parseInt(localStorage.getItem("currentStep")||"0");const b=v(()=>Array.isArray(p.data.status.projects)&&p.data.status.projects.length>0),c=v(()=>!b.value&&p.data.init||N.showTutorial);F(c,async()=>{_()}),M(()=>{_()});async function _(){c.value&&(b.value||localStorage.setItem("tutorialFinished","false"),await A(),console.log(a),a===5&&p.openModalId===V.PROPERTY&&i.length-1>a?d.myTour.start(a):d.myTour.start())}function g(o){o!==-1&&o&&(a=o)}function h(){localStorage.setItem("tutorialFinished","true")}return(o,s)=>{const C=y("v-step"),w=y("v-tour");return c.value?(n(),k(w,{key:0,name:"myTour",steps:l(i),options:{enabledButtons:{buttonPrevious:!1}}},{default:S(e=>[e.steps[e.currentStep]?(n(),k(C,{key:e.currentStep,step:e.steps[e.currentStep],"previous-step":e.previousStep,"next-step":e.nextStep,stop:e.stop,skip:e.skip,"is-first":e.isFirst,"is-last":e.isLast,labels:e.labels,id:e.currentStep},z({_:2},[l(i)[e.currentStep].hideNext===!0||e.isLast?{name:"actions",fn:S(()=>[E("div",D,[e.isLast?r("",!0):(n(),m("button",{key:0,onClick:f=>{e.skip(),g(-1),h()},class:"v-step__button v-step__button-skip"},u(o.$t("tutorial.buttons.skip")),9,O)),e.isLast?r("",!0):(n(),m("button",{key:1,onClick:f=>{e.nextStep(),g(e.currentStep+1)},class:"v-step__button v-step__button-next",style:R(l(i)[e.currentStep].hideNext?"display: none !important":"")},u(o.$t("tutorial.buttons.next")),13,W)),e.isLast?(n(),m("button",{key:2,class:"v-step__button v-step__button-stop",onClick:f=>{e.stop(),h()}},u(o.$t("tutorial.buttons.finish")),9,X)):r("",!0)])]),key:"0"}:void 0]),1032,["step","previous-step","next-step","stop","skip","is-first","is-last","labels","id"])):r("",!0)]),_:1},8,["steps"])):r("",!0)}}};export{q as _}; diff --git a/panoptic_back/panoptic/html/assets/index-b8269694.js b/panoptic_back/panoptic/html/assets/index-b8269694.js deleted file mode 100644 index f48a584a..00000000 --- a/panoptic_back/panoptic/html/assets/index-b8269694.js +++ /dev/null @@ -1,754 +0,0 @@ -var uS=Object.defineProperty;var dS=(e,t,i)=>t in e?uS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var $t=(e,t,i)=>(dS(e,typeof t!="symbol"?t+"":t,i),i);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function i(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(a){if(a.ep)return;a.ep=!0;const l=i(a);fetch(a.href,l)}})();function Uu(e,t){const i=Object.create(null),n=e.split(",");for(let a=0;a!!i[a.toLowerCase()]:a=>!!i[a]}const oi={},Ka=[],nn=()=>{},hS=()=>!1,fS=/^on[^a-z]/,Gl=e=>fS.test(e),up=e=>e.startsWith("onUpdate:"),yi=Object.assign,dp=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},pS=Object.prototype.hasOwnProperty,Zt=(e,t)=>pS.call(e,t),ut=Array.isArray,qa=e=>Ao(e)==="[object Map]",Sa=e=>Ao(e)==="[object Set]",tm=e=>Ao(e)==="[object Date]",gS=e=>Ao(e)==="[object RegExp]",It=e=>typeof e=="function",xi=e=>typeof e=="string",to=e=>typeof e=="symbol",li=e=>e!==null&&typeof e=="object",hp=e=>(li(e)||It(e))&&It(e.then)&&It(e.catch),zy=Object.prototype.toString,Ao=e=>zy.call(e),mS=e=>Ao(e).slice(8,-1),Hy=e=>Ao(e)==="[object Object]",fp=e=>xi(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rl=Uu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ku=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},vS=/-(\w)/g,ms=Ku(e=>e.replace(vS,(t,i)=>i?i.toUpperCase():"")),bS=/\B([A-Z])/g,Ms=Ku(e=>e.replace(bS,"-$1").toLowerCase()),Ul=Ku(e=>e.charAt(0).toUpperCase()+e.slice(1)),al=Ku(e=>e?`on${Ul(e)}`:""),Cr=(e,t)=>!Object.is(e,t),Za=(e,t)=>{for(let i=0;i{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:i})},bu=e=>{const t=parseFloat(e);return isNaN(t)?e:t},yu=e=>{const t=xi(e)?Number(e):NaN;return isNaN(t)?e:t};let im;const jh=()=>im||(im=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),yS="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",xS=Uu(yS);function pt(e){if(ut(e)){const t={};for(let i=0;i{if(i){const n=i.split(_S);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function _t(e){let t="";if(xi(e))t=e;else if(ut(e))for(let i=0;iAr(i,t))}const Ne=e=>xi(e)?e:e==null?"":ut(e)||li(e)&&(e.toString===zy||!It(e.toString))?JSON.stringify(e,By,2):String(e),By=(e,t)=>t&&t.__v_isRef?By(e,t.value):qa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((i,[n,a])=>(i[`${n} =>`]=a,i),{})}:Sa(t)?{[`Set(${t.size})`]:[...t.values()]}:li(t)&&!ut(t)&&!Hy(t)?String(t):t;let _s;class gp{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=_s,!t&&_s&&(this.index=(_s.scopes||(_s.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const i=_s;try{return _s=this,t()}finally{_s=i}}}on(){_s=this}off(){_s=this.parent}stop(t){if(this._active){let i,n;for(i=0,n=this.effects.length;i{const t=new Set(e);return t.w=0,t.n=0,t},Yy=e=>(e.w&kr)>0,jy=e=>(e.n&kr)>0,TS=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let i=0;for(let n=0;n{(b==="length"||!to(b)&&b>=p)&&d.push(m)})}else switch(i!==void 0&&d.push(c.get(i)),t){case"add":ut(e)?fp(i)&&d.push(c.get("length")):(d.push(c.get(oa)),qa(e)&&d.push(c.get(Gh)));break;case"delete":ut(e)||(d.push(c.get(oa)),qa(e)&&d.push(c.get(Gh)));break;case"set":qa(e)&&d.push(c.get(oa));break}if(d.length===1)d[0]&&Uh(d[0]);else{const p=[];for(const m of d)m&&p.push(...m);Uh(vp(p))}}function Uh(e,t){const i=ut(e)?e:[...e];for(const n of i)n.computed&&nm(n);for(const n of i)n.computed||nm(n)}function nm(e,t){(e!==en||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function LS(e,t){var i;return(i=xu.get(e))==null?void 0:i.get(t)}const MS=Uu("__proto__,__v_isRef,__isVue"),Uy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(to)),rm=NS();function NS(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...i){const n=Ut(this);for(let l=0,c=this.length;l{e[t]=function(...i){ko();const n=Ut(this)[t].apply(this,i);return To(),n}}),e}function RS(e){const t=Ut(this);return ys(t,"has",e),t.hasOwnProperty(e)}class Ky{constructor(t=!1,i=!1){this._isReadonly=t,this._shallow=i}get(t,i,n){const a=this._isReadonly,l=this._shallow;if(i==="__v_isReactive")return!a;if(i==="__v_isReadonly")return a;if(i==="__v_isShallow")return l;if(i==="__v_raw"&&n===(a?l?tx:ex:l?Qy:Jy).get(t))return t;const c=ut(t);if(!a){if(c&&Zt(rm,i))return Reflect.get(rm,i,n);if(i==="hasOwnProperty")return RS}const d=Reflect.get(t,i,n);return(to(i)?Uy.has(i):MS(i))||(a||ys(t,"get",i),l)?d:bi(d)?c&&fp(i)?d:d.value:li(d)?a?xp(d):Wt(d):d}}class qy extends Ky{constructor(t=!1){super(!1,t)}set(t,i,n,a){let l=t[i];if(pa(l)&&bi(l)&&!bi(n))return!1;if(!this._shallow&&(!Il(n)&&!pa(n)&&(l=Ut(l),n=Ut(n)),!ut(t)&&bi(l)&&!bi(n)))return l.value=n,!0;const c=ut(t)&&fp(i)?Number(i)e,Qu=e=>Reflect.getPrototypeOf(e);function yc(e,t,i=!1,n=!1){e=e.__v_raw;const a=Ut(e),l=Ut(t);i||(Cr(t,l)&&ys(a,"get",t),ys(a,"get",l));const{has:c}=Qu(a),d=n?bp:i?_p:Ol;if(c.call(a,t))return d(e.get(t));if(c.call(a,l))return d(e.get(l));e!==a&&e.get(t)}function xc(e,t=!1){const i=this.__v_raw,n=Ut(i),a=Ut(e);return t||(Cr(e,a)&&ys(n,"has",e),ys(n,"has",a)),e===a?i.has(e):i.has(e)||i.has(a)}function wc(e,t=!1){return e=e.__v_raw,!t&&ys(Ut(e),"iterate",oa),Reflect.get(e,"size",e)}function am(e){e=Ut(e);const t=Ut(this);return Qu(t).has.call(t,e)||(t.add(e),Hn(t,"add",e,e)),this}function om(e,t){t=Ut(t);const i=Ut(this),{has:n,get:a}=Qu(i);let l=n.call(i,e);l||(e=Ut(e),l=n.call(i,e));const c=a.call(i,e);return i.set(e,t),l?Cr(t,c)&&Hn(i,"set",e,t):Hn(i,"add",e,t),this}function lm(e){const t=Ut(this),{has:i,get:n}=Qu(t);let a=i.call(t,e);a||(e=Ut(e),a=i.call(t,e)),n&&n.call(t,e);const l=t.delete(e);return a&&Hn(t,"delete",e,void 0),l}function cm(){const e=Ut(this),t=e.size!==0,i=e.clear();return t&&Hn(e,"clear",void 0,void 0),i}function _c(e,t){return function(n,a){const l=this,c=l.__v_raw,d=Ut(c),p=t?bp:e?_p:Ol;return!e&&ys(d,"iterate",oa),c.forEach((m,b)=>n.call(a,p(m),p(b),l))}}function Sc(e,t,i){return function(...n){const a=this.__v_raw,l=Ut(a),c=qa(l),d=e==="entries"||e===Symbol.iterator&&c,p=e==="keys"&&c,m=a[e](...n),b=i?bp:t?_p:Ol;return!t&&ys(l,"iterate",p?Gh:oa),{next(){const{value:w,done:_}=m.next();return _?{value:w,done:_}:{value:d?[b(w[0]),b(w[1])]:b(w),done:_}},[Symbol.iterator](){return this}}}}function er(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function HS(){const e={get(l){return yc(this,l)},get size(){return wc(this)},has:xc,add:am,set:om,delete:lm,clear:cm,forEach:_c(!1,!1)},t={get(l){return yc(this,l,!1,!0)},get size(){return wc(this)},has:xc,add:am,set:om,delete:lm,clear:cm,forEach:_c(!1,!0)},i={get(l){return yc(this,l,!0)},get size(){return wc(this,!0)},has(l){return xc.call(this,l,!0)},add:er("add"),set:er("set"),delete:er("delete"),clear:er("clear"),forEach:_c(!0,!1)},n={get(l){return yc(this,l,!0,!0)},get size(){return wc(this,!0)},has(l){return xc.call(this,l,!0)},add:er("add"),set:er("set"),delete:er("delete"),clear:er("clear"),forEach:_c(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=Sc(l,!1,!1),i[l]=Sc(l,!0,!1),t[l]=Sc(l,!1,!0),n[l]=Sc(l,!0,!0)}),[e,i,t,n]}const[VS,BS,WS,YS]=HS();function ed(e,t){const i=t?e?YS:WS:e?BS:VS;return(n,a,l)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?n:Reflect.get(Zt(i,a)&&a in n?i:n,a,l)}const jS={get:ed(!1,!1)},XS={get:ed(!1,!0)},GS={get:ed(!0,!1)},US={get:ed(!0,!0)},Jy=new WeakMap,Qy=new WeakMap,ex=new WeakMap,tx=new WeakMap;function KS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qS(e){return e.__v_skip||!Object.isExtensible(e)?0:KS(mS(e))}function Wt(e){return pa(e)?e:td(e,!1,DS,jS,Jy)}function yp(e){return td(e,!1,FS,XS,Qy)}function xp(e){return td(e,!0,$S,GS,ex)}function ZS(e){return td(e,!0,zS,US,tx)}function td(e,t,i,n,a){if(!li(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=a.get(e);if(l)return l;const c=qS(e);if(c===0)return e;const d=new Proxy(e,c===2?n:i);return a.set(e,d),d}function Vn(e){return pa(e)?Vn(e.__v_raw):!!(e&&e.__v_isReactive)}function pa(e){return!!(e&&e.__v_isReadonly)}function Il(e){return!!(e&&e.__v_isShallow)}function wp(e){return Vn(e)||pa(e)}function Ut(e){const t=e&&e.__v_raw;return t?Ut(t):e}function Io(e){return vu(e,"__v_skip",!0),e}const Ol=e=>li(e)?Wt(e):e,_p=e=>li(e)?xp(e):e;function Sp(e){wr&&en&&(e=Ut(e),Gy(e.dep||(e.dep=vp())))}function id(e,t){e=Ut(e);const i=e.dep;i&&Uh(i)}function bi(e){return!!(e&&e.__v_isRef===!0)}function ye(e){return ix(e,!1)}function ss(e){return ix(e,!0)}function ix(e,t){return bi(e)?e:new JS(e,t)}class JS{constructor(t,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?t:Ut(t),this._value=i?t:Ol(t)}get value(){return Sp(this),this._value}set value(t){const i=this.__v_isShallow||Il(t)||pa(t);t=i?t:Ut(t),Cr(t,this._rawValue)&&(this._rawValue=t,this._value=i?t:Ol(t),id(this))}}function Mn(e){id(e)}function Be(e){return bi(e)?e.value:e}function QS(e){return It(e)?e():Be(e)}const eE={get:(e,t,i)=>Be(Reflect.get(e,t,i)),set:(e,t,i,n)=>{const a=e[t];return bi(a)&&!bi(i)?(a.value=i,!0):Reflect.set(e,t,i,n)}};function Ep(e){return Vn(e)?e:new Proxy(e,eE)}class tE{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:i,set:n}=t(()=>Sp(this),()=>id(this));this._get=i,this._set=n}get value(){return this._get()}set value(t){this._set(t)}}function iE(e){return new tE(e)}function Ea(e){const t=ut(e)?new Array(e.length):{};for(const i in e)t[i]=sx(e,i);return t}class sE{constructor(t,i,n){this._object=t,this._key=i,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return LS(Ut(this._object),this._key)}}class nE{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function rE(e,t,i){return bi(e)?e:It(e)?new nE(e):li(e)&&arguments.length>1?sx(e,t,i):ye(e)}function sx(e,t,i){const n=e[t];return bi(n)?n:new sE(e,t,i)}class aE{constructor(t,i,n,a){this._setter=i,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new io(t,()=>{this._dirty||(this._dirty=!0,id(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=n}get value(){const t=Ut(this);return Sp(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function oE(e,t,i=!1){let n,a;const l=It(e);return l?(n=e,a=nn):(n=e.get,a=e.set),new aE(n,a,l||!a,i)}function lE(e,...t){}function cE(e,t){}function Bn(e,t,i,n){let a;try{a=n?e(...n):e()}catch(l){Ca(l,t,i)}return a}function As(e,t,i,n){if(It(e)){const l=Bn(e,t,i,n);return l&&hp(l)&&l.catch(c=>{Ca(c,t,i)}),l}const a=[];for(let l=0;l>>1,a=qi[n],l=Ll(a);ldn&&qi.splice(t,1)}function wu(e){ut(e)?Ja.push(...e):(!Ln||!Ln.includes(e,e.allowRecurse?ta+1:ta))&&Ja.push(e),rx()}function um(e,t=Pl?dn+1:0){for(;tLl(i)-Ll(n)),ta=0;tae.id==null?1/0:e.id,fE=(e,t)=>{const i=Ll(e)-Ll(t);if(i===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return i};function ax(e){Kh=!1,Pl=!0,qi.sort(fE);const t=nn;try{for(dn=0;dnza.emit(a,...l)),Ec=[]):typeof window<"u"&&window.HTMLElement&&!((n=(i=window.navigator)==null?void 0:i.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(l=>{ox(l,t)}),setTimeout(()=>{za||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ec=[])},3e3)):Ec=[]}function pE(e,t,...i){if(e.isUnmounted)return;const n=e.vnode.props||oi;let a=i;const l=t.startsWith("update:"),c=l&&t.slice(7);if(c&&c in n){const b=`${c==="modelValue"?"model":c}Modifiers`,{number:w,trim:_}=n[b]||oi;_&&(a=i.map(C=>xi(C)?C.trim():C)),w&&(a=i.map(bu))}let d,p=n[d=al(t)]||n[d=al(ms(t))];!p&&l&&(p=n[d=al(Ms(t))]),p&&As(p,e,6,a);const m=n[d+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,As(m,e,6,a)}}function lx(e,t,i=!1){const n=t.emitsCache,a=n.get(e);if(a!==void 0)return a;const l=e.emits;let c={},d=!1;if(!It(e)){const p=m=>{const b=lx(m,t,!0);b&&(d=!0,yi(c,b))};!i&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}return!l&&!d?(li(e)&&n.set(e,null),null):(ut(l)?l.forEach(p=>c[p]=null):yi(c,l),li(e)&&n.set(e,c),c)}function nd(e,t){return!e||!Gl(t)?!1:(t=t.slice(2).replace(/Once$/,""),Zt(e,t[0].toLowerCase()+t.slice(1))||Zt(e,Ms(t))||Zt(e,t))}let zi=null,rd=null;function Ml(e){const t=zi;return zi=e,rd=e&&e.type.__scopeId||null,t}function ii(e){rd=e}function si(){rd=null}const Ap=e=>rt;function rt(e,t=zi,i){if(!t||e._n)return e;const n=(...a)=>{n._d&&nf(-1);const l=Ml(t);let c;try{c=e(...a)}finally{Ml(l),n._d&&nf(1)}return c};return n._n=!0,n._c=!0,n._d=!0,n}function Jc(e){const{type:t,vnode:i,proxy:n,withProxy:a,props:l,propsOptions:[c],slots:d,attrs:p,emit:m,render:b,renderCache:w,data:_,setupState:C,ctx:I,inheritAttrs:O}=e;let M,N;const k=Ml(e);try{if(i.shapeFlag&4){const P=a||n,$=P;M=Es(b.call($,P,w,l,C,_,I)),N=p}else{const P=t;M=Es(P.length>1?P(l,{attrs:p,slots:d,emit:m}):P(l,null)),N=t.props?p:mE(p)}}catch(P){cl.length=0,Ca(P,e,1),M=Me(Qi)}let D=M;if(N&&O!==!1){const P=Object.keys(N),{shapeFlag:$}=D;P.length&&$&7&&(c&&P.some(up)&&(N=vE(N,c)),D=bn(D,N))}return i.dirs&&(D=bn(D),D.dirs=D.dirs?D.dirs.concat(i.dirs):i.dirs),i.transition&&(D.transition=i.transition),M=D,Ml(k),M}function gE(e){let t;for(let i=0;i{let t;for(const i in e)(i==="class"||i==="style"||Gl(i))&&((t||(t={}))[i]=e[i]);return t},vE=(e,t)=>{const i={};for(const n in e)(!up(n)||!(n.slice(9)in t))&&(i[n]=e[n]);return i};function bE(e,t,i){const{props:n,children:a,component:l}=e,{props:c,children:d,patchFlag:p}=t,m=l.emitsOptions;if(t.dirs||t.transition)return!0;if(i&&p>=0){if(p&1024)return!0;if(p&16)return n?dm(n,c,m):!!c;if(p&8){const b=t.dynamicProps;for(let w=0;we.__isSuspense,xE={name:"Suspense",__isSuspense:!0,process(e,t,i,n,a,l,c,d,p,m){e==null?_E(t,i,n,a,l,c,d,p,m):SE(e,t,i,n,a,c,d,p,m)},hydrate:EE,create:Op,normalize:CE},wE=xE;function Nl(e,t){const i=e.props&&e.props[t];It(i)&&i()}function _E(e,t,i,n,a,l,c,d,p){const{p:m,o:{createElement:b}}=p,w=b("div"),_=e.suspense=Op(e,a,n,t,w,i,l,c,d,p);m(null,_.pendingBranch=e.ssContent,w,null,n,_,l,c),_.deps>0?(Nl(e,"onPending"),Nl(e,"onFallback"),m(null,e.ssFallback,t,i,n,null,l,c),Qa(_,e.ssFallback)):_.resolve(!1,!0)}function SE(e,t,i,n,a,l,c,d,{p,um:m,o:{createElement:b}}){const w=t.suspense=e.suspense;w.vnode=t,t.el=e.el;const _=t.ssContent,C=t.ssFallback,{activeBranch:I,pendingBranch:O,isInFallback:M,isHydrating:N}=w;if(O)w.pendingBranch=_,tn(_,O)?(p(O,_,w.hiddenContainer,null,a,w,l,c,d),w.deps<=0?w.resolve():M&&(p(I,C,i,n,a,null,l,c,d),Qa(w,C))):(w.pendingId++,N?(w.isHydrating=!1,w.activeBranch=O):m(O,a,w),w.deps=0,w.effects.length=0,w.hiddenContainer=b("div"),M?(p(null,_,w.hiddenContainer,null,a,w,l,c,d),w.deps<=0?w.resolve():(p(I,C,i,n,a,null,l,c,d),Qa(w,C))):I&&tn(_,I)?(p(I,_,i,n,a,w,l,c,d),w.resolve(!0)):(p(null,_,w.hiddenContainer,null,a,w,l,c,d),w.deps<=0&&w.resolve()));else if(I&&tn(_,I))p(I,_,i,n,a,w,l,c,d),Qa(w,_);else if(Nl(t,"onPending"),w.pendingBranch=_,w.pendingId++,p(null,_,w.hiddenContainer,null,a,w,l,c,d),w.deps<=0)w.resolve();else{const{timeout:k,pendingId:D}=w;k>0?setTimeout(()=>{w.pendingId===D&&w.fallback(C)},k):k===0&&w.fallback(C)}}function Op(e,t,i,n,a,l,c,d,p,m,b=!1){const{p:w,m:_,um:C,n:I,o:{parentNode:O,remove:M}}=m;let N;const k=AE(e);k&&t!=null&&t.pendingBranch&&(N=t.pendingId,t.deps++);const D=e.props?yu(e.props.timeout):void 0,P={vnode:e,parent:t,parentComponent:i,isSVG:c,container:n,hiddenContainer:a,anchor:l,deps:0,pendingId:0,timeout:typeof D=="number"?D:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:b,isUnmounted:!1,effects:[],resolve($=!1,H=!1){const{vnode:ee,activeBranch:se,pendingBranch:Q,pendingId:te,effects:ce,parentComponent:oe,container:de}=P;let be=!1;if(P.isHydrating)P.isHydrating=!1;else if(!$){be=se&&Q.transition&&Q.transition.mode==="out-in",be&&(se.transition.afterLeave=()=>{te===P.pendingId&&(_(Q,de,Z,0),wu(ce))});let{anchor:Z}=P;se&&(Z=I(se),C(se,oe,P,!0)),be||_(Q,de,Z,0)}Qa(P,Q),P.pendingBranch=null,P.isInFallback=!1;let Ce=P.parent,re=!1;for(;Ce;){if(Ce.pendingBranch){Ce.effects.push(...ce),re=!0;break}Ce=Ce.parent}!re&&!be&&wu(ce),P.effects=[],k&&t&&t.pendingBranch&&N===t.pendingId&&(t.deps--,t.deps===0&&!H&&t.resolve()),Nl(ee,"onResolve")},fallback($){if(!P.pendingBranch)return;const{vnode:H,activeBranch:ee,parentComponent:se,container:Q,isSVG:te}=P;Nl(H,"onFallback");const ce=I(ee),oe=()=>{P.isInFallback&&(w(null,$,Q,ce,se,null,te,d,p),Qa(P,$))},de=$.transition&&$.transition.mode==="out-in";de&&(ee.transition.afterLeave=oe),P.isInFallback=!0,C(ee,se,null,!0),de||oe()},move($,H,ee){P.activeBranch&&_(P.activeBranch,$,H,ee),P.container=$},next(){return P.activeBranch&&I(P.activeBranch)},registerDep($,H){const ee=!!P.pendingBranch;ee&&P.deps++;const se=$.vnode.el;$.asyncDep.catch(Q=>{Ca(Q,$,0)}).then(Q=>{if($.isUnmounted||P.isUnmounted||P.pendingId!==$.suspenseId)return;$.asyncResolved=!0;const{vnode:te}=$;rf($,Q,!1),se&&(te.el=se);const ce=!se&&$.subTree.el;H($,te,O(se||$.subTree.el),se?null:I($.subTree),P,c,p),ce&&M(ce),kp($,te.el),ee&&--P.deps===0&&P.resolve()})},unmount($,H){P.isUnmounted=!0,P.activeBranch&&C(P.activeBranch,i,$,H),P.pendingBranch&&C(P.pendingBranch,i,$,H)}};return P}function EE(e,t,i,n,a,l,c,d,p){const m=t.suspense=Op(t,n,i,e.parentNode,document.createElement("div"),null,a,l,c,d,!0),b=p(e,m.pendingBranch=t.ssContent,i,m,l,c);return m.deps===0&&m.resolve(!1,!0),b}function CE(e){const{shapeFlag:t,children:i}=e,n=t&32;e.ssContent=fm(n?i.default:i),e.ssFallback=n?fm(i.fallback):Me(Qi)}function fm(e){let t;if(It(e)){const i=va&&e._c;i&&(e._d=!1,W()),e=e(),i&&(e._d=!0,t=gs,Bx())}return ut(e)&&(e=gE(e)),e=Es(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(i=>i!==e)),e}function hx(e,t){t&&t.pendingBranch?ut(e)?t.effects.push(...e):t.effects.push(e):wu(e)}function Qa(e,t){e.activeBranch=t;const{vnode:i,parentComponent:n}=e,a=i.el=t.el;n&&n.subTree===i&&(n.vnode.el=a,kp(n,a))}function AE(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function fx(e,t){return Kl(e,null,t)}function px(e,t){return Kl(e,null,{flush:"post"})}function kE(e,t){return Kl(e,null,{flush:"sync"})}const Cc={};function nt(e,t,i){return Kl(e,t,i)}function Kl(e,t,{immediate:i,deep:n,flush:a,onTrack:l,onTrigger:c}=oi){var d;const p=Ju()===((d=Mi)==null?void 0:d.scope)?Mi:null;let m,b=!1,w=!1;if(bi(e)?(m=()=>e.value,b=Il(e)):Vn(e)?(m=()=>e,n=!0):ut(e)?(w=!0,b=e.some(P=>Vn(P)||Il(P)),m=()=>e.map(P=>{if(bi(P))return P.value;if(Vn(P))return sa(P);if(It(P))return Bn(P,p,2)})):It(e)?t?m=()=>Bn(e,p,2):m=()=>{if(!(p&&p.isUnmounted))return _&&_(),As(e,p,3,[C])}:m=nn,t&&n){const P=m;m=()=>sa(P())}let _,C=P=>{_=k.onStop=()=>{Bn(P,p,4),_=k.onStop=void 0}},I;if(no)if(C=nn,t?i&&As(t,p,3,[m(),w?[]:void 0,C]):m(),a==="sync"){const P=Zx();I=P.__watcherHandles||(P.__watcherHandles=[])}else return nn;let O=w?new Array(e.length).fill(Cc):Cc;const M=()=>{if(k.active)if(t){const P=k.run();(n||b||(w?P.some(($,H)=>Cr($,O[H])):Cr(P,O)))&&(_&&_(),As(t,p,3,[P,O===Cc?void 0:w&&O[0]===Cc?[]:O,C]),O=P)}else k.run()};M.allowRecurse=!!t;let N;a==="sync"?N=M:a==="post"?N=()=>Yi(M,p&&p.suspense):(M.pre=!0,p&&(M.id=p.uid),N=()=>sd(M));const k=new io(m,N);t?i?M():O=k.run():a==="post"?Yi(k.run.bind(k),p&&p.suspense):k.run();const D=()=>{k.stop(),p&&p.scope&&dp(p.scope.effects,k)};return I&&I.push(D),D}function TE(e,t,i){const n=this.proxy,a=xi(e)?e.includes(".")?gx(n,e):()=>n[e]:e.bind(n,n);let l;It(t)?l=t:(l=t.handler,i=t);const c=Mi;Or(this);const d=Kl(a,l.bind(n),i);return c?Or(c):_r(),d}function gx(e,t){const i=t.split(".");return()=>{let n=e;for(let a=0;a{sa(i,t)});else if(Hy(e))for(const i in e)sa(e[i],t);return e}function Bt(e,t){const i=zi;if(i===null)return e;const n=hd(i)||i.proxy,a=e.dirs||(e.dirs=[]);for(let l=0;l{e.isMounted=!0}),Oo(()=>{e.isUnmounting=!0}),e}const Os=[Function,Array],Lp={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Os,onEnter:Os,onAfterEnter:Os,onEnterCancelled:Os,onBeforeLeave:Os,onLeave:Os,onAfterLeave:Os,onLeaveCancelled:Os,onBeforeAppear:Os,onAppear:Os,onAfterAppear:Os,onAppearCancelled:Os},IE={name:"BaseTransition",props:Lp,setup(e,{slots:t}){const i=Gi(),n=Pp();let a;return()=>{const l=t.default&&ad(t.default(),!0);if(!l||!l.length)return;let c=l[0];if(l.length>1){for(const O of l)if(O.type!==Qi){c=O;break}}const d=Ut(e),{mode:p}=d;if(n.isLeaving)return qd(c);const m=pm(c);if(!m)return qd(c);const b=so(m,d,n,i);ma(m,b);const w=i.subTree,_=w&&pm(w);let C=!1;const{getTransitionKey:I}=m.type;if(I){const O=I();a===void 0?a=O:O!==a&&(a=O,C=!0)}if(_&&_.type!==Qi&&(!tn(m,_)||C)){const O=so(_,d,n,i);if(ma(_,O),p==="out-in")return n.isLeaving=!0,O.afterLeave=()=>{n.isLeaving=!1,i.update.active!==!1&&i.update()},qd(c);p==="in-out"&&m.type!==Qi&&(O.delayLeave=(M,N,k)=>{const D=vx(n,_);D[String(_.key)]=_,M[pr]=()=>{N(),M[pr]=void 0,delete b.delayedLeave},b.delayedLeave=k})}return c}}},mx=IE;function vx(e,t){const{leavingVNodes:i}=e;let n=i.get(t.type);return n||(n=Object.create(null),i.set(t.type,n)),n}function so(e,t,i,n){const{appear:a,mode:l,persisted:c=!1,onBeforeEnter:d,onEnter:p,onAfterEnter:m,onEnterCancelled:b,onBeforeLeave:w,onLeave:_,onAfterLeave:C,onLeaveCancelled:I,onBeforeAppear:O,onAppear:M,onAfterAppear:N,onAppearCancelled:k}=t,D=String(e.key),P=vx(i,e),$=(se,Q)=>{se&&As(se,n,9,Q)},H=(se,Q)=>{const te=Q[1];$(se,Q),ut(se)?se.every(ce=>ce.length<=1)&&te():se.length<=1&&te()},ee={mode:l,persisted:c,beforeEnter(se){let Q=d;if(!i.isMounted)if(a)Q=O||d;else return;se[pr]&&se[pr](!0);const te=P[D];te&&tn(e,te)&&te.el[pr]&&te.el[pr](),$(Q,[se])},enter(se){let Q=p,te=m,ce=b;if(!i.isMounted)if(a)Q=M||p,te=N||m,ce=k||b;else return;let oe=!1;const de=se[Ac]=be=>{oe||(oe=!0,be?$(ce,[se]):$(te,[se]),ee.delayedLeave&&ee.delayedLeave(),se[Ac]=void 0)};Q?H(Q,[se,de]):de()},leave(se,Q){const te=String(e.key);if(se[Ac]&&se[Ac](!0),i.isUnmounting)return Q();$(w,[se]);let ce=!1;const oe=se[pr]=de=>{ce||(ce=!0,Q(),de?$(I,[se]):$(C,[se]),se[pr]=void 0,P[te]===e&&delete P[te])};P[te]=e,_?H(_,[se,oe]):oe()},clone(se){return so(se,t,i,n)}};return ee}function qd(e){if(ql(e))return e=bn(e),e.children=null,e}function pm(e){return ql(e)?e.children?e.children[0]:void 0:e}function ma(e,t){e.shapeFlag&6&&e.component?ma(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ad(e,t=!1,i){let n=[],a=0;for(let l=0;l1)for(let l=0;lyi({name:e.name},t,{setup:e}))():e}const la=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function OE(e){It(e)&&(e={loader:e});const{loader:t,loadingComponent:i,errorComponent:n,delay:a=200,timeout:l,suspensible:c=!0,onError:d}=e;let p=null,m,b=0;const w=()=>(b++,p=null,_()),_=()=>{let C;return p||(C=p=t().catch(I=>{if(I=I instanceof Error?I:new Error(String(I)),d)return new Promise((O,M)=>{d(I,()=>O(w()),()=>M(I),b+1)});throw I}).then(I=>C!==p&&p?p:(I&&(I.__esModule||I[Symbol.toStringTag]==="Module")&&(I=I.default),m=I,I)))};return Ke({name:"AsyncComponentWrapper",__asyncLoader:_,get __asyncResolved(){return m},setup(){const C=Mi;if(m)return()=>Zd(m,C);const I=k=>{p=null,Ca(k,C,13,!n)};if(c&&C.suspense||no)return _().then(k=>()=>Zd(k,C)).catch(k=>(I(k),()=>n?Me(n,{error:k}):null));const O=ye(!1),M=ye(),N=ye(!!a);return a&&setTimeout(()=>{N.value=!1},a),l!=null&&setTimeout(()=>{if(!O.value&&!M.value){const k=new Error(`Async component timed out after ${l}ms.`);I(k),M.value=k}},l),_().then(()=>{O.value=!0,C.parent&&ql(C.parent.vnode)&&sd(C.parent.update)}).catch(k=>{I(k),M.value=k}),()=>{if(O.value&&m)return Zd(m,C);if(M.value&&n)return Me(n,{error:M.value});if(i&&!N.value)return Me(i)}}})}function Zd(e,t){const{ref:i,props:n,children:a,ce:l}=t.vnode,c=Me(e,n,a);return c.ref=i,c.ce=l,delete t.vnode.ce,c}const ql=e=>e.type.__isKeepAlive,PE={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const i=Gi(),n=i.ctx;if(!n.renderer)return()=>{const k=t.default&&t.default();return k&&k.length===1?k[0]:k};const a=new Map,l=new Set;let c=null;const d=i.suspense,{renderer:{p,m,um:b,o:{createElement:w}}}=n,_=w("div");n.activate=(k,D,P,$,H)=>{const ee=k.component;m(k,D,P,0,d),p(ee.vnode,k,D,P,ee,d,$,k.slotScopeIds,H),Yi(()=>{ee.isDeactivated=!1,ee.a&&Za(ee.a);const se=k.props&&k.props.onVnodeMounted;se&&fs(se,ee.parent,k)},d)},n.deactivate=k=>{const D=k.component;m(k,_,null,1,d),Yi(()=>{D.da&&Za(D.da);const P=k.props&&k.props.onVnodeUnmounted;P&&fs(P,D.parent,k),D.isDeactivated=!0},d)};function C(k){Jd(k),b(k,i,d,!0)}function I(k){a.forEach((D,P)=>{const $=of(D.type);$&&(!k||!k($))&&O(P)})}function O(k){const D=a.get(k);!c||!tn(D,c)?C(D):c&&Jd(c),a.delete(k),l.delete(k)}nt(()=>[e.include,e.exclude],([k,D])=>{k&&I(P=>Jo(k,P)),D&&I(P=>!Jo(D,P))},{flush:"post",deep:!0});let M=null;const N=()=>{M!=null&&a.set(M,Qd(i.subTree))};return xt(N),Zl(N),Oo(()=>{a.forEach(k=>{const{subTree:D,suspense:P}=i,$=Qd(D);if(k.type===$.type&&k.key===$.key){Jd($);const H=$.component.da;H&&Yi(H,P);return}C(k)})}),()=>{if(M=null,!t.default)return null;const k=t.default(),D=k[0];if(k.length>1)return c=null,k;if(!Ir(D)||!(D.shapeFlag&4)&&!(D.shapeFlag&128))return c=null,D;let P=Qd(D);const $=P.type,H=of(la(P)?P.type.__asyncResolved||{}:$),{include:ee,exclude:se,max:Q}=e;if(ee&&(!H||!Jo(ee,H))||se&&H&&Jo(se,H))return c=P,D;const te=P.key==null?$:P.key,ce=a.get(te);return P.el&&(P=bn(P),D.shapeFlag&128&&(D.ssContent=P)),M=te,ce?(P.el=ce.el,P.component=ce.component,P.transition&&ma(P,P.transition),P.shapeFlag|=512,l.delete(te),l.add(te)):(l.add(te),Q&&l.size>parseInt(Q,10)&&O(l.values().next().value)),P.shapeFlag|=256,c=P,dx(D.type)?D:P}}},LE=PE;function Jo(e,t){return ut(e)?e.some(i=>Jo(i,t)):xi(e)?e.split(",").includes(t):gS(e)?e.test(t):!1}function bx(e,t){xx(e,"a",t)}function yx(e,t){xx(e,"da",t)}function xx(e,t,i=Mi){const n=e.__wdc||(e.__wdc=()=>{let a=i;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(od(t,n,i),i){let a=i.parent;for(;a&&a.parent;)ql(a.parent.vnode)&&ME(n,t,i,a),a=a.parent}}function ME(e,t,i,n){const a=od(t,e,n,!0);Sn(()=>{dp(n[t],a)},i)}function Jd(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Qd(e){return e.shapeFlag&128?e.ssContent:e}function od(e,t,i=Mi,n=!1){if(i){const a=i[e]||(i[e]=[]),l=t.__weh||(t.__weh=(...c)=>{if(i.isUnmounted)return;ko(),Or(i);const d=As(t,i,e,c);return _r(),To(),d});return n?a.unshift(l):a.push(l),l}}const Zn=e=>(t,i=Mi)=>(!no||e==="sp")&&od(e,(...n)=>t(...n),i),ld=Zn("bm"),xt=Zn("m"),wx=Zn("bu"),Zl=Zn("u"),Oo=Zn("bum"),Sn=Zn("um"),_x=Zn("sp"),Sx=Zn("rtg"),Ex=Zn("rtc");function Cx(e,t=Mi){od("ec",e,t)}function St(e,t,i,n){let a;const l=i&&i[n];if(ut(e)||xi(e)){a=new Array(e.length);for(let c=0,d=e.length;ct(c,d,void 0,l&&l[d]));else{const c=Object.keys(e);a=new Array(c.length);for(let d=0,p=c.length;d{const l=n.fn(...a);return l&&(l.key=n.key),l}:n.fn)}return e}function di(e,t,i={},n,a){if(zi.isCE||zi.parent&&la(zi.parent)&&zi.parent.isCE)return t!=="default"&&(i.name=t),Me("slot",i,n&&n());let l=e[t];l&&l._c&&(l._d=!1),W();const c=l&&Ax(l(i)),d=it(Qe,{key:i.key||c&&c.key||`_${t}`},c||(n?n():[]),c&&e._===1?64:-2);return!a&&d.scopeId&&(d.slotScopeIds=[d.scopeId+"-s"]),l&&l._c&&(l._d=!0),d}function Ax(e){return e.some(t=>Ir(t)?!(t.type===Qi||t.type===Qe&&!Ax(t.children)):!0)?e:null}function kx(e,t){const i={};for(const n in e)i[t&&/[A-Z]/.test(n)?`on:${n}`:al(n)]=e[n];return i}const Zh=e=>e?Xx(e)?hd(e)||e.proxy:Zh(e.parent):null,ol=yi(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Zh(e.parent),$root:e=>Zh(e.root),$emit:e=>e.emit,$options:e=>Mp(e),$forceUpdate:e=>e.f||(e.f=()=>sd(e.update)),$nextTick:e=>e.n||(e.n=At.bind(e.proxy)),$watch:e=>TE.bind(e)}),eh=(e,t)=>e!==oi&&!e.__isScriptSetup&&Zt(e,t),Jh={get({_:e},t){const{ctx:i,setupState:n,data:a,props:l,accessCache:c,type:d,appContext:p}=e;let m;if(t[0]!=="$"){const C=c[t];if(C!==void 0)switch(C){case 1:return n[t];case 2:return a[t];case 4:return i[t];case 3:return l[t]}else{if(eh(n,t))return c[t]=1,n[t];if(a!==oi&&Zt(a,t))return c[t]=2,a[t];if((m=e.propsOptions[0])&&Zt(m,t))return c[t]=3,l[t];if(i!==oi&&Zt(i,t))return c[t]=4,i[t];Qh&&(c[t]=0)}}const b=ol[t];let w,_;if(b)return t==="$attrs"&&ys(e,"get",t),b(e);if((w=d.__cssModules)&&(w=w[t]))return w;if(i!==oi&&Zt(i,t))return c[t]=4,i[t];if(_=p.config.globalProperties,Zt(_,t))return _[t]},set({_:e},t,i){const{data:n,setupState:a,ctx:l}=e;return eh(a,t)?(a[t]=i,!0):n!==oi&&Zt(n,t)?(n[t]=i,!0):Zt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:n,appContext:a,propsOptions:l}},c){let d;return!!i[c]||e!==oi&&Zt(e,c)||eh(t,c)||(d=l[0])&&Zt(d,c)||Zt(n,c)||Zt(ol,c)||Zt(a.config.globalProperties,c)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:Zt(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}},RE=yi({},Jh,{get(e,t){if(t!==Symbol.unscopables)return Jh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!xS(t)}});function DE(){return null}function $E(){return null}function FE(e){}function zE(e){}function HE(){return null}function VE(){}function BE(e,t){return null}function WE(){return Tx().slots}function YE(){return Tx().attrs}function jE(e,t,i){const n=Gi();if(i&&i.local){const a=ye(e[t]);return nt(()=>e[t],l=>a.value=l),nt(a,l=>{l!==e[t]&&n.emit(`update:${t}`,l)}),a}else return{__v_isRef:!0,get value(){return e[t]},set value(a){n.emit(`update:${t}`,a)}}}function Tx(){const e=Gi();return e.setupContext||(e.setupContext=Kx(e))}function Rl(e){return ut(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function XE(e,t){const i=Rl(e);for(const n in t){if(n.startsWith("__skip"))continue;let a=i[n];a?ut(a)||It(a)?a=i[n]={type:a,default:t[n]}:a.default=t[n]:a===null&&(a=i[n]={default:t[n]}),a&&t[`__skip_${n}`]&&(a.skipFactory=!0)}return i}function GE(e,t){return!e||!t?e||t:ut(e)&&ut(t)?e.concat(t):yi({},Rl(e),Rl(t))}function UE(e,t){const i={};for(const n in e)t.includes(n)||Object.defineProperty(i,n,{enumerable:!0,get:()=>e[n]});return i}function KE(e){const t=Gi();let i=e();return _r(),hp(i)&&(i=i.catch(n=>{throw Or(t),n})),[i,()=>Or(t)]}let Qh=!0;function qE(e){const t=Mp(e),i=e.proxy,n=e.ctx;Qh=!1,t.beforeCreate&&gm(t.beforeCreate,e,"bc");const{data:a,computed:l,methods:c,watch:d,provide:p,inject:m,created:b,beforeMount:w,mounted:_,beforeUpdate:C,updated:I,activated:O,deactivated:M,beforeDestroy:N,beforeUnmount:k,destroyed:D,unmounted:P,render:$,renderTracked:H,renderTriggered:ee,errorCaptured:se,serverPrefetch:Q,expose:te,inheritAttrs:ce,components:oe,directives:de,filters:be}=t;if(m&&ZE(m,n,null),c)for(const Z in c){const U=c[Z];It(U)&&(n[Z]=U.bind(i))}if(a){const Z=a.call(i,i);li(Z)&&(e.data=Wt(Z))}if(Qh=!0,l)for(const Z in l){const U=l[Z],fe=It(U)?U.bind(i,i):It(U.get)?U.get.bind(i,i):nn,he=!It(U)&&It(U.set)?U.set.bind(i):nn,ue=we({get:fe,set:he});Object.defineProperty(n,Z,{enumerable:!0,configurable:!0,get:()=>ue.value,set:ve=>ue.value=ve})}if(d)for(const Z in d)Ix(d[Z],n,i,Z);if(p){const Z=It(p)?p.call(i):p;Reflect.ownKeys(Z).forEach(U=>{Wn(U,Z[U])})}b&&gm(b,e,"c");function re(Z,U){ut(U)?U.forEach(fe=>Z(fe.bind(i))):U&&Z(U.bind(i))}if(re(ld,w),re(xt,_),re(wx,C),re(Zl,I),re(bx,O),re(yx,M),re(Cx,se),re(Ex,H),re(Sx,ee),re(Oo,k),re(Sn,P),re(_x,Q),ut(te))if(te.length){const Z=e.exposed||(e.exposed={});te.forEach(U=>{Object.defineProperty(Z,U,{get:()=>i[U],set:fe=>i[U]=fe})})}else e.exposed||(e.exposed={});$&&e.render===nn&&(e.render=$),ce!=null&&(e.inheritAttrs=ce),oe&&(e.components=oe),de&&(e.directives=de)}function ZE(e,t,i=nn){ut(e)&&(e=ef(e));for(const n in e){const a=e[n];let l;li(a)?"default"in a?l=Ji(a.from||n,a.default,!0):l=Ji(a.from||n):l=Ji(a),bi(l)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>l.value,set:c=>l.value=c}):t[n]=l}}function gm(e,t,i){As(ut(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,i)}function Ix(e,t,i,n){const a=n.includes(".")?gx(i,n):()=>i[n];if(xi(e)){const l=t[e];It(l)&&nt(a,l)}else if(It(e))nt(a,e.bind(i));else if(li(e))if(ut(e))e.forEach(l=>Ix(l,t,i,n));else{const l=It(e.handler)?e.handler.bind(i):t[e.handler];It(l)&&nt(a,l,e)}}function Mp(e){const t=e.type,{mixins:i,extends:n}=t,{mixins:a,optionsCache:l,config:{optionMergeStrategies:c}}=e.appContext,d=l.get(t);let p;return d?p=d:!a.length&&!i&&!n?p=t:(p={},a.length&&a.forEach(m=>Su(p,m,c,!0)),Su(p,t,c)),li(t)&&l.set(t,p),p}function Su(e,t,i,n=!1){const{mixins:a,extends:l}=t;l&&Su(e,l,i,!0),a&&a.forEach(c=>Su(e,c,i,!0));for(const c in t)if(!(n&&c==="expose")){const d=JE[c]||i&&i[c];e[c]=d?d(e[c],t[c]):t[c]}return e}const JE={data:mm,props:vm,emits:vm,methods:Qo,computed:Qo,beforeCreate:es,created:es,beforeMount:es,mounted:es,beforeUpdate:es,updated:es,beforeDestroy:es,beforeUnmount:es,destroyed:es,unmounted:es,activated:es,deactivated:es,errorCaptured:es,serverPrefetch:es,components:Qo,directives:Qo,watch:eC,provide:mm,inject:QE};function mm(e,t){return t?e?function(){return yi(It(e)?e.call(this,this):e,It(t)?t.call(this,this):t)}:t:e}function QE(e,t){return Qo(ef(e),ef(t))}function ef(e){if(ut(e)){const t={};for(let i=0;i1)return i&&It(t)?t.call(n&&n.proxy):t}}function Px(){return!!(Mi||zi||Dl)}function sC(e,t,i,n=!1){const a={},l={};vu(l,cd,1),e.propsDefaults=Object.create(null),Lx(e,t,a,l);for(const c in e.propsOptions[0])c in a||(a[c]=void 0);i?e.props=n?a:yp(a):e.type.props?e.props=a:e.props=l,e.attrs=l}function nC(e,t,i,n){const{props:a,attrs:l,vnode:{patchFlag:c}}=e,d=Ut(a),[p]=e.propsOptions;let m=!1;if((n||c>0)&&!(c&16)){if(c&8){const b=e.vnode.dynamicProps;for(let w=0;w{p=!0;const[_,C]=Mx(w,t,!0);yi(c,_),C&&d.push(...C)};!i&&t.mixins.length&&t.mixins.forEach(b),e.extends&&b(e.extends),e.mixins&&e.mixins.forEach(b)}if(!l&&!p)return li(e)&&n.set(e,Ka),Ka;if(ut(l))for(let b=0;b-1,C[1]=O<0||I-1||Zt(C,"default"))&&d.push(w)}}}const m=[c,d];return li(e)&&n.set(e,m),m}function bm(e){return e[0]!=="$"}function ym(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function xm(e,t){return ym(e)===ym(t)}function wm(e,t){return ut(t)?t.findIndex(i=>xm(i,e)):It(t)&&xm(t,e)?0:-1}const Nx=e=>e[0]==="_"||e==="$stable",Np=e=>ut(e)?e.map(Es):[Es(e)],rC=(e,t,i)=>{if(t._n)return t;const n=rt((...a)=>Np(t(...a)),i);return n._c=!1,n},Rx=(e,t,i)=>{const n=e._ctx;for(const a in e){if(Nx(a))continue;const l=e[a];if(It(l))t[a]=rC(a,l,n);else if(l!=null){const c=Np(l);t[a]=()=>c}}},Dx=(e,t)=>{const i=Np(t);e.slots.default=()=>i},aC=(e,t)=>{if(e.vnode.shapeFlag&32){const i=t._;i?(e.slots=Ut(t),vu(t,"_",i)):Rx(t,e.slots={})}else e.slots={},t&&Dx(e,t);vu(e.slots,cd,1)},oC=(e,t,i)=>{const{vnode:n,slots:a}=e;let l=!0,c=oi;if(n.shapeFlag&32){const d=t._;d?i&&d===1?l=!1:(yi(a,t),!i&&d===1&&delete a._):(l=!t.$stable,Rx(t,a)),c=t}else t&&(Dx(e,t),c={default:1});if(l)for(const d in a)!Nx(d)&&c[d]==null&&delete a[d]};function Eu(e,t,i,n,a=!1){if(ut(e)){e.forEach((_,C)=>Eu(_,t&&(ut(t)?t[C]:t),i,n,a));return}if(la(n)&&!a)return;const l=n.shapeFlag&4?hd(n.component)||n.component.proxy:n.el,c=a?null:l,{i:d,r:p}=e,m=t&&t.r,b=d.refs===oi?d.refs={}:d.refs,w=d.setupState;if(m!=null&&m!==p&&(xi(m)?(b[m]=null,Zt(w,m)&&(w[m]=null)):bi(m)&&(m.value=null)),It(p))Bn(p,d,12,[c,b]);else{const _=xi(p),C=bi(p);if(_||C){const I=()=>{if(e.f){const O=_?Zt(w,p)?w[p]:b[p]:p.value;a?ut(O)&&dp(O,l):ut(O)?O.includes(l)||O.push(l):_?(b[p]=[l],Zt(w,p)&&(w[p]=b[p])):(p.value=[l],e.k&&(b[e.k]=p.value))}else _?(b[p]=c,Zt(w,p)&&(w[p]=c)):C&&(p.value=c,e.k&&(b[e.k]=c))};c?(I.id=-1,Yi(I,i)):I()}}}let tr=!1;const kc=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Tc=e=>e.nodeType===8;function lC(e){const{mt:t,p:i,o:{patchProp:n,createText:a,nextSibling:l,parentNode:c,remove:d,insert:p,createComment:m}}=e,b=(D,P)=>{if(!P.hasChildNodes()){i(null,D,P),_u(),P._vnode=D;return}tr=!1,w(P.firstChild,D,null,null,null),_u(),P._vnode=D,tr&&console.error("Hydration completed but contains mismatches.")},w=(D,P,$,H,ee,se=!1)=>{const Q=Tc(D)&&D.data==="[",te=()=>O(D,P,$,H,ee,Q),{type:ce,ref:oe,shapeFlag:de,patchFlag:be}=P;let Ce=D.nodeType;P.el=D,be===-2&&(se=!1,P.dynamicChildren=null);let re=null;switch(ce){case Tr:Ce!==3?P.children===""?(p(P.el=a(""),c(D),D),re=D):re=te():(D.data!==P.children&&(tr=!0,D.data=P.children),re=l(D));break;case Qi:k(D)?(re=l(D),N(P.el=D.content.firstChild,D,$)):Ce!==8||Q?re=te():re=l(D);break;case ca:if(Q&&(D=l(D),Ce=D.nodeType),Ce===1||Ce===3){re=D;const Z=!P.children.length;for(let U=0;U{se=se||!!P.dynamicChildren;const{type:Q,props:te,patchFlag:ce,shapeFlag:oe,dirs:de,transition:be}=P,Ce=Q==="input"||Q==="option";if(Ce||ce!==-1){if(de&&un(P,null,$,"created"),te)if(Ce||!se||ce&48)for(const U in te)(Ce&&(U.endsWith("value")||U==="indeterminate")||Gl(U)&&!rl(U)||U[0]===".")&&n(D,U,null,te[U],!1,void 0,$);else te.onClick&&n(D,"onClick",null,te.onClick,!1,void 0,$);let re;(re=te&&te.onVnodeBeforeMount)&&fs(re,$,P);let Z=!1;if(k(D)){Z=Hx(H,be)&&$&&$.vnode.props&&$.vnode.props.appear;const U=D.content.firstChild;Z&&be.beforeEnter(U),N(U,D,$),P.el=D=U}if(de&&un(P,null,$,"beforeMount"),((re=te&&te.onVnodeMounted)||de||Z)&&hx(()=>{re&&fs(re,$,P),Z&&be.enter(D),de&&un(P,null,$,"mounted")},H),oe&16&&!(te&&(te.innerHTML||te.textContent))){let U=C(D.firstChild,P,D,$,H,ee,se);for(;U;){tr=!0;const fe=U;U=U.nextSibling,d(fe)}}else oe&8&&D.textContent!==P.children&&(tr=!0,D.textContent=P.children)}return D.nextSibling},C=(D,P,$,H,ee,se,Q)=>{Q=Q||!!P.dynamicChildren;const te=P.children,ce=te.length;for(let oe=0;oe{const{slotScopeIds:Q}=P;Q&&(ee=ee?ee.concat(Q):Q);const te=c(D),ce=C(l(D),P,te,$,H,ee,se);return ce&&Tc(ce)&&ce.data==="]"?l(P.anchor=ce):(tr=!0,p(P.anchor=m("]"),te,ce),ce)},O=(D,P,$,H,ee,se)=>{if(tr=!0,P.el=null,se){const ce=M(D);for(;;){const oe=l(D);if(oe&&oe!==ce)d(oe);else break}}const Q=l(D),te=c(D);return d(D),i(null,P,te,Q,$,H,kc(te),ee),Q},M=(D,P="[",$="]")=>{let H=0;for(;D;)if(D=l(D),D&&Tc(D)&&(D.data===P&&H++,D.data===$)){if(H===0)return l(D);H--}return D},N=(D,P,$)=>{const H=P.parentNode;H&&H.replaceChild(D,P);let ee=$;for(;ee;)ee.vnode.el===P&&(ee.vnode.el=ee.subTree.el=D),ee=ee.parent},k=D=>D.nodeType===1&&D.tagName.toLowerCase()==="template";return[b,w]}const Yi=hx;function $x(e){return zx(e)}function Fx(e){return zx(e,lC)}function zx(e,t){const i=jh();i.__VUE__=!0;const{insert:n,remove:a,patchProp:l,createElement:c,createText:d,createComment:p,setText:m,setElementText:b,parentNode:w,nextSibling:_,setScopeId:C=nn,insertStaticContent:I}=e,O=(ie,j,G,le=null,Se=null,Oe=null,Ye=!1,Ue=null,Xe=!!j.dynamicChildren)=>{if(ie===j)return;ie&&!tn(ie,j)&&(le=_e(ie),ve(ie,Se,Oe,!0),ie=null),j.patchFlag===-2&&(Xe=!1,j.dynamicChildren=null);const{type:Ve,ref:Je,shapeFlag:Ae}=j;switch(Ve){case Tr:M(ie,j,G,le);break;case Qi:N(ie,j,G,le);break;case ca:ie==null&&k(j,G,le,Ye);break;case Qe:oe(ie,j,G,le,Se,Oe,Ye,Ue,Xe);break;default:Ae&1?$(ie,j,G,le,Se,Oe,Ye,Ue,Xe):Ae&6?de(ie,j,G,le,Se,Oe,Ye,Ue,Xe):(Ae&64||Ae&128)&&Ve.process(ie,j,G,le,Se,Oe,Ye,Ue,Xe,pe)}Je!=null&&Se&&Eu(Je,ie&&ie.ref,Oe,j||ie,!j)},M=(ie,j,G,le)=>{if(ie==null)n(j.el=d(j.children),G,le);else{const Se=j.el=ie.el;j.children!==ie.children&&m(Se,j.children)}},N=(ie,j,G,le)=>{ie==null?n(j.el=p(j.children||""),G,le):j.el=ie.el},k=(ie,j,G,le)=>{[ie.el,ie.anchor]=I(ie.children,j,G,le,ie.el,ie.anchor)},D=({el:ie,anchor:j},G,le)=>{let Se;for(;ie&&ie!==j;)Se=_(ie),n(ie,G,le),ie=Se;n(j,G,le)},P=({el:ie,anchor:j})=>{let G;for(;ie&&ie!==j;)G=_(ie),a(ie),ie=G;a(j)},$=(ie,j,G,le,Se,Oe,Ye,Ue,Xe)=>{Ye=Ye||j.type==="svg",ie==null?H(j,G,le,Se,Oe,Ye,Ue,Xe):Q(ie,j,Se,Oe,Ye,Ue,Xe)},H=(ie,j,G,le,Se,Oe,Ye,Ue)=>{let Xe,Ve;const{type:Je,props:Ae,shapeFlag:De,transition:ot,dirs:ct}=ie;if(Xe=ie.el=c(ie.type,Oe,Ae&&Ae.is,Ae),De&8?b(Xe,ie.children):De&16&&se(ie.children,Xe,null,le,Se,Oe&&Je!=="foreignObject",Ye,Ue),ct&&un(ie,null,le,"created"),ee(Xe,ie,ie.scopeId,Ye,le),Ae){for(const kt in Ae)kt!=="value"&&!rl(kt)&&l(Xe,kt,null,Ae[kt],Oe,ie.children,le,Se,Fe);"value"in Ae&&l(Xe,"value",null,Ae.value),(Ve=Ae.onVnodeBeforeMount)&&fs(Ve,le,ie)}ct&&un(ie,null,le,"beforeMount");const Pt=Hx(Se,ot);Pt&&ot.beforeEnter(Xe),n(Xe,j,G),((Ve=Ae&&Ae.onVnodeMounted)||Pt||ct)&&Yi(()=>{Ve&&fs(Ve,le,ie),Pt&&ot.enter(Xe),ct&&un(ie,null,le,"mounted")},Se)},ee=(ie,j,G,le,Se)=>{if(G&&C(ie,G),le)for(let Oe=0;Oe{for(let Ve=Xe;Ve{const Ue=j.el=ie.el;let{patchFlag:Xe,dynamicChildren:Ve,dirs:Je}=j;Xe|=ie.patchFlag&16;const Ae=ie.props||oi,De=j.props||oi;let ot;G&&Ur(G,!1),(ot=De.onVnodeBeforeUpdate)&&fs(ot,G,j,ie),Je&&un(j,ie,G,"beforeUpdate"),G&&Ur(G,!0);const ct=Se&&j.type!=="foreignObject";if(Ve?te(ie.dynamicChildren,Ve,Ue,G,le,ct,Oe):Ye||U(ie,j,Ue,null,G,le,ct,Oe,!1),Xe>0){if(Xe&16)ce(Ue,j,Ae,De,G,le,Se);else if(Xe&2&&Ae.class!==De.class&&l(Ue,"class",null,De.class,Se),Xe&4&&l(Ue,"style",Ae.style,De.style,Se),Xe&8){const Pt=j.dynamicProps;for(let kt=0;kt{ot&&fs(ot,G,j,ie),Je&&un(j,ie,G,"updated")},le)},te=(ie,j,G,le,Se,Oe,Ye)=>{for(let Ue=0;Ue{if(G!==le){if(G!==oi)for(const Ue in G)!rl(Ue)&&!(Ue in le)&&l(ie,Ue,G[Ue],null,Ye,j.children,Se,Oe,Fe);for(const Ue in le){if(rl(Ue))continue;const Xe=le[Ue],Ve=G[Ue];Xe!==Ve&&Ue!=="value"&&l(ie,Ue,Ve,Xe,Ye,j.children,Se,Oe,Fe)}"value"in le&&l(ie,"value",G.value,le.value)}},oe=(ie,j,G,le,Se,Oe,Ye,Ue,Xe)=>{const Ve=j.el=ie?ie.el:d(""),Je=j.anchor=ie?ie.anchor:d("");let{patchFlag:Ae,dynamicChildren:De,slotScopeIds:ot}=j;ot&&(Ue=Ue?Ue.concat(ot):ot),ie==null?(n(Ve,G,le),n(Je,G,le),se(j.children,G,Je,Se,Oe,Ye,Ue,Xe)):Ae>0&&Ae&64&&De&&ie.dynamicChildren?(te(ie.dynamicChildren,De,G,Se,Oe,Ye,Ue),(j.key!=null||Se&&j===Se.subTree)&&Rp(ie,j,!0)):U(ie,j,G,Je,Se,Oe,Ye,Ue,Xe)},de=(ie,j,G,le,Se,Oe,Ye,Ue,Xe)=>{j.slotScopeIds=Ue,ie==null?j.shapeFlag&512?Se.ctx.activate(j,G,le,Ye,Xe):be(j,G,le,Se,Oe,Ye,Xe):Ce(ie,j,Xe)},be=(ie,j,G,le,Se,Oe,Ye)=>{const Ue=ie.component=jx(ie,le,Se);if(ql(ie)&&(Ue.ctx.renderer=pe),Gx(Ue),Ue.asyncDep){if(Se&&Se.registerDep(Ue,re),!ie.el){const Xe=Ue.subTree=Me(Qi);N(null,Xe,j,G)}return}re(Ue,ie,j,G,Se,Oe,Ye)},Ce=(ie,j,G)=>{const le=j.component=ie.component;if(bE(ie,j,G))if(le.asyncDep&&!le.asyncResolved){Z(le,j,G);return}else le.next=j,hE(le.update),le.update();else j.el=ie.el,le.vnode=j},re=(ie,j,G,le,Se,Oe,Ye)=>{const Ue=()=>{if(ie.isMounted){let{next:Je,bu:Ae,u:De,parent:ot,vnode:ct}=ie,Pt=Je,kt;Ur(ie,!1),Je?(Je.el=ct.el,Z(ie,Je,Ye)):Je=ct,Ae&&Za(Ae),(kt=Je.props&&Je.props.onVnodeBeforeUpdate)&&fs(kt,ot,Je,ct),Ur(ie,!0);const ke=Jc(ie),Pe=ie.subTree;ie.subTree=ke,O(Pe,ke,w(Pe.el),_e(Pe),ie,Se,Oe),Je.el=ke.el,Pt===null&&kp(ie,ke.el),De&&Yi(De,Se),(kt=Je.props&&Je.props.onVnodeUpdated)&&Yi(()=>fs(kt,ot,Je,ct),Se)}else{let Je;const{el:Ae,props:De}=j,{bm:ot,m:ct,parent:Pt}=ie,kt=la(j);if(Ur(ie,!1),ot&&Za(ot),!kt&&(Je=De&&De.onVnodeBeforeMount)&&fs(Je,Pt,j),Ur(ie,!0),Ae&&Te){const ke=()=>{ie.subTree=Jc(ie),Te(Ae,ie.subTree,ie,Se,null)};kt?j.type.__asyncLoader().then(()=>!ie.isUnmounted&&ke()):ke()}else{const ke=ie.subTree=Jc(ie);O(null,ke,G,le,ie,Se,Oe),j.el=ke.el}if(ct&&Yi(ct,Se),!kt&&(Je=De&&De.onVnodeMounted)){const ke=j;Yi(()=>fs(Je,Pt,ke),Se)}(j.shapeFlag&256||Pt&&la(Pt.vnode)&&Pt.vnode.shapeFlag&256)&&ie.a&&Yi(ie.a,Se),ie.isMounted=!0,j=G=le=null}},Xe=ie.effect=new io(Ue,()=>sd(Ve),ie.scope),Ve=ie.update=()=>Xe.run();Ve.id=ie.uid,Ur(ie,!0),Ve()},Z=(ie,j,G)=>{j.component=ie;const le=ie.vnode.props;ie.vnode=j,ie.next=null,nC(ie,j.props,le,G),oC(ie,j.children,G),ko(),um(),To()},U=(ie,j,G,le,Se,Oe,Ye,Ue,Xe=!1)=>{const Ve=ie&&ie.children,Je=ie?ie.shapeFlag:0,Ae=j.children,{patchFlag:De,shapeFlag:ot}=j;if(De>0){if(De&128){he(Ve,Ae,G,le,Se,Oe,Ye,Ue,Xe);return}else if(De&256){fe(Ve,Ae,G,le,Se,Oe,Ye,Ue,Xe);return}}ot&8?(Je&16&&Fe(Ve,Se,Oe),Ae!==Ve&&b(G,Ae)):Je&16?ot&16?he(Ve,Ae,G,le,Se,Oe,Ye,Ue,Xe):Fe(Ve,Se,Oe,!0):(Je&8&&b(G,""),ot&16&&se(Ae,G,le,Se,Oe,Ye,Ue,Xe))},fe=(ie,j,G,le,Se,Oe,Ye,Ue,Xe)=>{ie=ie||Ka,j=j||Ka;const Ve=ie.length,Je=j.length,Ae=Math.min(Ve,Je);let De;for(De=0;DeJe?Fe(ie,Se,Oe,!0,!1,Ae):se(j,G,le,Se,Oe,Ye,Ue,Xe,Ae)},he=(ie,j,G,le,Se,Oe,Ye,Ue,Xe)=>{let Ve=0;const Je=j.length;let Ae=ie.length-1,De=Je-1;for(;Ve<=Ae&&Ve<=De;){const ot=ie[Ve],ct=j[Ve]=Xe?gr(j[Ve]):Es(j[Ve]);if(tn(ot,ct))O(ot,ct,G,null,Se,Oe,Ye,Ue,Xe);else break;Ve++}for(;Ve<=Ae&&Ve<=De;){const ot=ie[Ae],ct=j[De]=Xe?gr(j[De]):Es(j[De]);if(tn(ot,ct))O(ot,ct,G,null,Se,Oe,Ye,Ue,Xe);else break;Ae--,De--}if(Ve>Ae){if(Ve<=De){const ot=De+1,ct=otDe)for(;Ve<=Ae;)ve(ie[Ve],Se,Oe,!0),Ve++;else{const ot=Ve,ct=Ve,Pt=new Map;for(Ve=ct;Ve<=De;Ve++){const mt=j[Ve]=Xe?gr(j[Ve]):Es(j[Ve]);mt.key!=null&&Pt.set(mt.key,Ve)}let kt,ke=0;const Pe=De-ct+1;let ze=!1,qe=0;const lt=new Array(Pe);for(Ve=0;Ve=Pe){ve(mt,Se,Oe,!0);continue}let Lt;if(mt.key!=null)Lt=Pt.get(mt.key);else for(kt=ct;kt<=De;kt++)if(lt[kt-ct]===0&&tn(mt,j[kt])){Lt=kt;break}Lt===void 0?ve(mt,Se,Oe,!0):(lt[Lt-ct]=Ve+1,Lt>=qe?qe=Lt:ze=!0,O(mt,j[Lt],G,null,Se,Oe,Ye,Ue,Xe),ke++)}const wt=ze?cC(lt):Ka;for(kt=wt.length-1,Ve=Pe-1;Ve>=0;Ve--){const mt=ct+Ve,Lt=j[mt],ci=mt+1{const{el:Oe,type:Ye,transition:Ue,children:Xe,shapeFlag:Ve}=ie;if(Ve&6){ue(ie.component.subTree,j,G,le);return}if(Ve&128){ie.suspense.move(j,G,le);return}if(Ve&64){Ye.move(ie,j,G,pe);return}if(Ye===Qe){n(Oe,j,G);for(let Ae=0;AeUe.enter(Oe),Se);else{const{leave:Ae,delayLeave:De,afterLeave:ot}=Ue,ct=()=>n(Oe,j,G),Pt=()=>{Ae(Oe,()=>{ct(),ot&&ot()})};De?De(Oe,ct,Pt):Pt()}else n(Oe,j,G)},ve=(ie,j,G,le=!1,Se=!1)=>{const{type:Oe,props:Ye,ref:Ue,children:Xe,dynamicChildren:Ve,shapeFlag:Je,patchFlag:Ae,dirs:De}=ie;if(Ue!=null&&Eu(Ue,null,G,ie,!0),Je&256){j.ctx.deactivate(ie);return}const ot=Je&1&&De,ct=!la(ie);let Pt;if(ct&&(Pt=Ye&&Ye.onVnodeBeforeUnmount)&&fs(Pt,j,ie),Je&6)Ee(ie.component,G,le);else{if(Je&128){ie.suspense.unmount(G,le);return}ot&&un(ie,null,j,"beforeUnmount"),Je&64?ie.type.remove(ie,j,G,Se,pe,le):Ve&&(Oe!==Qe||Ae>0&&Ae&64)?Fe(Ve,j,G,!1,!0):(Oe===Qe&&Ae&384||!Se&&Je&16)&&Fe(Xe,j,G),le&&Re(ie)}(ct&&(Pt=Ye&&Ye.onVnodeUnmounted)||ot)&&Yi(()=>{Pt&&fs(Pt,j,ie),ot&&un(ie,null,j,"unmounted")},G)},Re=ie=>{const{type:j,el:G,anchor:le,transition:Se}=ie;if(j===Qe){et(G,le);return}if(j===ca){P(ie);return}const Oe=()=>{a(G),Se&&!Se.persisted&&Se.afterLeave&&Se.afterLeave()};if(ie.shapeFlag&1&&Se&&!Se.persisted){const{leave:Ye,delayLeave:Ue}=Se,Xe=()=>Ye(G,Oe);Ue?Ue(ie.el,Oe,Xe):Xe()}else Oe()},et=(ie,j)=>{let G;for(;ie!==j;)G=_(ie),a(ie),ie=G;a(j)},Ee=(ie,j,G)=>{const{bum:le,scope:Se,update:Oe,subTree:Ye,um:Ue}=ie;le&&Za(le),Se.stop(),Oe&&(Oe.active=!1,ve(Ye,ie,j,G)),Ue&&Yi(Ue,j),Yi(()=>{ie.isUnmounted=!0},j),j&&j.pendingBranch&&!j.isUnmounted&&ie.asyncDep&&!ie.asyncResolved&&ie.suspenseId===j.pendingId&&(j.deps--,j.deps===0&&j.resolve())},Fe=(ie,j,G,le=!1,Se=!1,Oe=0)=>{for(let Ye=Oe;Yeie.shapeFlag&6?_e(ie.component.subTree):ie.shapeFlag&128?ie.suspense.next():_(ie.anchor||ie.el),Ie=(ie,j,G)=>{ie==null?j._vnode&&ve(j._vnode,null,null,!0):O(j._vnode||null,ie,j,null,null,null,G),um(),_u(),j._vnode=ie},pe={p:O,um:ve,m:ue,r:Re,mt:be,mc:se,pc:U,pbc:te,n:_e,o:e};let xe,Te;return t&&([xe,Te]=t(pe)),{render:Ie,hydrate:xe,createApp:iC(Ie,xe)}}function Ur({effect:e,update:t},i){e.allowRecurse=t.allowRecurse=i}function Hx(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Rp(e,t,i=!1){const n=e.children,a=t.children;if(ut(n)&&ut(a))for(let l=0;l>1,e[i[d]]0&&(t[n]=i[l-1]),i[l]=n)}}for(l=i.length,c=i[l-1];l-- >0;)i[l]=c,c=t[c];return i}const uC=e=>e.__isTeleport,ll=e=>e&&(e.disabled||e.disabled===""),_m=e=>typeof SVGElement<"u"&&e instanceof SVGElement,sf=(e,t)=>{const i=e&&e.to;return xi(i)?t?t(i):null:i},dC={name:"Teleport",__isTeleport:!0,process(e,t,i,n,a,l,c,d,p,m){const{mc:b,pc:w,pbc:_,o:{insert:C,querySelector:I,createText:O,createComment:M}}=m,N=ll(t.props);let{shapeFlag:k,children:D,dynamicChildren:P}=t;if(e==null){const $=t.el=O(""),H=t.anchor=O("");C($,i,n),C(H,i,n);const ee=t.target=sf(t.props,I),se=t.targetAnchor=O("");ee&&(C(se,ee),c=c||_m(ee));const Q=(te,ce)=>{k&16&&b(D,te,ce,a,l,c,d,p)};N?Q(i,H):ee&&Q(ee,se)}else{t.el=e.el;const $=t.anchor=e.anchor,H=t.target=e.target,ee=t.targetAnchor=e.targetAnchor,se=ll(e.props),Q=se?i:H,te=se?$:ee;if(c=c||_m(H),P?(_(e.dynamicChildren,P,Q,a,l,c,d),Rp(e,t,!0)):p||w(e,t,Q,te,a,l,c,d,!1),N)se?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ic(t,i,$,m,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ce=t.target=sf(t.props,I);ce&&Ic(t,ce,null,m,0)}else se&&Ic(t,H,ee,m,1)}Vx(t)},remove(e,t,i,n,{um:a,o:{remove:l}},c){const{shapeFlag:d,children:p,anchor:m,targetAnchor:b,target:w,props:_}=e;if(w&&l(b),c&&l(m),d&16){const C=c||!ll(_);for(let I=0;I0?gs||Ka:null,Bx(),va>0&&gs&&gs.push(e),e}function K(e,t,i,n,a,l){return Wx(V(e,t,i,n,a,l,!0))}function it(e,t,i,n,a){return Wx(Me(e,t,i,n,a,!0))}function Ir(e){return e?e.__v_isVNode===!0:!1}function tn(e,t){return e.type===t.type&&e.key===t.key}function pC(e){}const cd="__vInternal",Yx=({key:e})=>e??null,Qc=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?xi(e)||bi(e)||It(e)?{i:zi,r:e,k:t,f:!!i}:e:null);function V(e,t=null,i=null,n=0,a=null,l=e===Qe?0:1,c=!1,d=!1){const p={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Yx(t),ref:t&&Qc(t),scopeId:rd,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:zi};return d?(Dp(p,i),l&128&&e.normalize(p)):i&&(p.shapeFlag|=xi(i)?8:16),va>0&&!c&&gs&&(p.patchFlag>0||l&6)&&p.patchFlag!==32&&gs.push(p),p}const Me=gC;function gC(e,t=null,i=null,n=0,a=null,l=!1){if((!e||e===cx)&&(e=Qi),Ir(e)){const d=bn(e,t,!0);return i&&Dp(d,i),va>0&&!l&&gs&&(d.shapeFlag&6?gs[gs.indexOf(e)]=d:gs.push(d)),d.patchFlag|=-2,d}if(SC(e)&&(e=e.__vccOpts),t){t=ud(t);let{class:d,style:p}=t;d&&!xi(d)&&(t.class=_t(d)),li(p)&&(wp(p)&&!ut(p)&&(p=yi({},p)),t.style=pt(p))}const c=xi(e)?1:dx(e)?128:uC(e)?64:li(e)?4:It(e)?2:0;return V(e,t,i,n,a,c,l,!0)}function ud(e){return e?wp(e)||cd in e?yi({},e):e:null}function bn(e,t,i=!1){const{props:n,ref:a,patchFlag:l,children:c}=e,d=t?dd(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Yx(d),ref:t&&t.ref?i&&a?ut(a)?a.concat(Qc(t)):[a,Qc(t)]:Qc(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Qe?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&bn(e.ssContent),ssFallback:e.ssFallback&&bn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Qt(e=" ",t=0){return Me(Tr,null,e,t)}function mC(e,t){const i=Me(ca,null,e);return i.staticCount=t,i}function Le(e="",t=!1){return t?(W(),it(Qi,null,e)):Me(Qi,null,e)}function Es(e){return e==null||typeof e=="boolean"?Me(Qi):ut(e)?Me(Qe,null,e.slice()):typeof e=="object"?gr(e):Me(Tr,null,String(e))}function gr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:bn(e)}function Dp(e,t){let i=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ut(t))i=16;else if(typeof t=="object")if(n&65){const a=t.default;a&&(a._c&&(a._d=!1),Dp(e,a()),a._c&&(a._d=!0));return}else{i=32;const a=t._;!a&&!(cd in t)?t._ctx=zi:a===3&&zi&&(zi.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else It(t)?(t={default:t,_ctx:zi},i=32):(t=String(t),n&64?(i=16,t=[Qt(t)]):i=8);e.children=t,e.shapeFlag|=i}function dd(...e){const t={};for(let i=0;iMi||zi;let $p,Pa,Sm="__VUE_INSTANCE_SETTERS__";(Pa=jh()[Sm])||(Pa=jh()[Sm]=[]),Pa.push(e=>Mi=e),$p=e=>{Pa.length>1?Pa.forEach(t=>t(e)):Pa[0](e)};const Or=e=>{$p(e),e.scope.on()},_r=()=>{Mi&&Mi.scope.off(),$p(null)};function Xx(e){return e.vnode.shapeFlag&4}let no=!1;function Gx(e,t=!1){no=t;const{props:i,children:n}=e.vnode,a=Xx(e);sC(e,i,a,t),aC(e,n);const l=a?yC(e,t):void 0;return no=!1,l}function yC(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=Io(new Proxy(e.ctx,Jh));const{setup:n}=i;if(n){const a=e.setupContext=n.length>1?Kx(e):null;Or(e),ko();const l=Bn(n,e,0,[e.props,a]);if(To(),_r(),hp(l)){if(l.then(_r,_r),t)return l.then(c=>{rf(e,c,t)}).catch(c=>{Ca(c,e,0)});e.asyncDep=l}else rf(e,l,t)}else Ux(e,t)}function rf(e,t,i){It(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:li(t)&&(e.setupState=Ep(t)),Ux(e,i)}let Cu,af;function xC(e){Cu=e,af=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,RE))}}const wC=()=>!Cu;function Ux(e,t,i){const n=e.type;if(!e.render){if(!t&&Cu&&!n.render){const a=n.template||Mp(e).template;if(a){const{isCustomElement:l,compilerOptions:c}=e.appContext.config,{delimiters:d,compilerOptions:p}=n,m=yi(yi({isCustomElement:l,delimiters:d},c),p);n.render=Cu(a,m)}}e.render=n.render||nn,af&&af(e)}{Or(e),ko();try{qE(e)}finally{To(),_r()}}}function _C(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,i){return ys(e,"get","$attrs"),t[i]}}))}function Kx(e){const t=i=>{e.exposed=i||{}};return{get attrs(){return _C(e)},slots:e.slots,emit:e.emit,expose:t}}function hd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ep(Io(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in ol)return ol[i](e)},has(t,i){return i in t||i in ol}}))}function of(e,t=!0){return It(e)?e.displayName||e.name:e.name||t&&e.__name}function SC(e){return It(e)&&"__vccOpts"in e}const we=(e,t)=>oE(e,t,no);function zr(e,t,i){const n=arguments.length;return n===2?li(t)&&!ut(t)?Ir(t)?Me(e,null,[t]):Me(e,t):Me(e,null,t):(n>3?i=Array.prototype.slice.call(arguments,2):n===3&&Ir(i)&&(i=[i]),Me(e,t,i))}const qx=Symbol.for("v-scx"),Zx=()=>Ji(qx);function EC(){}function CC(e,t,i,n){const a=i[n];if(a&&Jx(a,e))return a;const l=t();return l.memo=e.slice(),i[n]=l}function Jx(e,t){const i=e.memo;if(i.length!=t.length)return!1;for(let n=0;n0&&gs&&gs.push(e),!0}const Qx="3.3.9",AC={createComponentInstance:jx,setupComponent:Gx,renderComponentRoot:Jc,setCurrentRenderingInstance:Ml,isVNode:Ir,normalizeVNode:Es},kC=AC,TC=null,IC=null,OC="http://www.w3.org/2000/svg",ia=typeof document<"u"?document:null,Em=ia&&ia.createElement("template"),PC={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,n)=>{const a=t?ia.createElementNS(OC,e):ia.createElement(e,i?{is:i}:void 0);return e==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:e=>ia.createTextNode(e),createComment:e=>ia.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ia.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,i,n,a,l){const c=i?i.previousSibling:t.lastChild;if(a&&(a===l||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),i),!(a===l||!(a=a.nextSibling)););else{Em.innerHTML=n?`${e}`:e;const d=Em.content;if(n){const p=d.firstChild;for(;p.firstChild;)d.appendChild(p.firstChild);d.removeChild(p)}t.insertBefore(d,i)}return[c?c.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}},ir="transition",Ho="animation",ro=Symbol("_vtc"),Fp=(e,{slots:t})=>zr(mx,t0(e),t);Fp.displayName="Transition";const e0={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},LC=Fp.props=yi({},Lp,e0),Kr=(e,t=[])=>{ut(e)?e.forEach(i=>i(...t)):e&&e(...t)},Cm=e=>e?ut(e)?e.some(t=>t.length>1):e.length>1:!1;function t0(e){const t={};for(const oe in e)oe in e0||(t[oe]=e[oe]);if(e.css===!1)return t;const{name:i="v",type:n,duration:a,enterFromClass:l=`${i}-enter-from`,enterActiveClass:c=`${i}-enter-active`,enterToClass:d=`${i}-enter-to`,appearFromClass:p=l,appearActiveClass:m=c,appearToClass:b=d,leaveFromClass:w=`${i}-leave-from`,leaveActiveClass:_=`${i}-leave-active`,leaveToClass:C=`${i}-leave-to`}=e,I=MC(a),O=I&&I[0],M=I&&I[1],{onBeforeEnter:N,onEnter:k,onEnterCancelled:D,onLeave:P,onLeaveCancelled:$,onBeforeAppear:H=N,onAppear:ee=k,onAppearCancelled:se=D}=t,Q=(oe,de,be)=>{ur(oe,de?b:d),ur(oe,de?m:c),be&&be()},te=(oe,de)=>{oe._isLeaving=!1,ur(oe,w),ur(oe,C),ur(oe,_),de&&de()},ce=oe=>(de,be)=>{const Ce=oe?ee:k,re=()=>Q(de,oe,be);Kr(Ce,[de,re]),Am(()=>{ur(de,oe?p:l),Pn(de,oe?b:d),Cm(Ce)||km(de,n,O,re)})};return yi(t,{onBeforeEnter(oe){Kr(N,[oe]),Pn(oe,l),Pn(oe,c)},onBeforeAppear(oe){Kr(H,[oe]),Pn(oe,p),Pn(oe,m)},onEnter:ce(!1),onAppear:ce(!0),onLeave(oe,de){oe._isLeaving=!0;const be=()=>te(oe,de);Pn(oe,w),s0(),Pn(oe,_),Am(()=>{oe._isLeaving&&(ur(oe,w),Pn(oe,C),Cm(P)||km(oe,n,M,be))}),Kr(P,[oe,be])},onEnterCancelled(oe){Q(oe,!1),Kr(D,[oe])},onAppearCancelled(oe){Q(oe,!0),Kr(se,[oe])},onLeaveCancelled(oe){te(oe),Kr($,[oe])}})}function MC(e){if(e==null)return null;if(li(e))return[th(e.enter),th(e.leave)];{const t=th(e);return[t,t]}}function th(e){return yu(e)}function Pn(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.add(i)),(e[ro]||(e[ro]=new Set)).add(t)}function ur(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const i=e[ro];i&&(i.delete(t),i.size||(e[ro]=void 0))}function Am(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let NC=0;function km(e,t,i,n){const a=e._endId=++NC,l=()=>{a===e._endId&&n()};if(i)return setTimeout(l,i);const{type:c,timeout:d,propCount:p}=i0(e,t);if(!c)return n();const m=c+"end";let b=0;const w=()=>{e.removeEventListener(m,_),l()},_=C=>{C.target===e&&++b>=p&&w()};setTimeout(()=>{b(i[I]||"").split(", "),a=n(`${ir}Delay`),l=n(`${ir}Duration`),c=Tm(a,l),d=n(`${Ho}Delay`),p=n(`${Ho}Duration`),m=Tm(d,p);let b=null,w=0,_=0;t===ir?c>0&&(b=ir,w=c,_=l.length):t===Ho?m>0&&(b=Ho,w=m,_=p.length):(w=Math.max(c,m),b=w>0?c>m?ir:Ho:null,_=b?b===ir?l.length:p.length:0);const C=b===ir&&/\b(transform|all)(,|$)/.test(n(`${ir}Property`).toString());return{type:b,timeout:w,propCount:_,hasTransform:C}}function Tm(e,t){for(;e.lengthIm(i)+Im(e[n])))}function Im(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function s0(){return document.body.offsetHeight}function RC(e,t,i){const n=e[ro];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}const zp=Symbol("_vod"),n0={beforeMount(e,{value:t},{transition:i}){e[zp]=e.style.display==="none"?"":e.style.display,i&&t?i.beforeEnter(e):Vo(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:n}){!t!=!i&&(n?t?(n.beforeEnter(e),Vo(e,!0),n.enter(e)):n.leave(e,()=>{Vo(e,!1)}):Vo(e,t))},beforeUnmount(e,{value:t}){Vo(e,t)}};function Vo(e,t){e.style.display=t?e[zp]:"none"}function DC(){n0.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}function $C(e,t,i){const n=e.style,a=xi(i);if(i&&!a){if(t&&!xi(t))for(const l in t)i[l]==null&&lf(n,l,"");for(const l in i)lf(n,l,i[l])}else{const l=n.display;a?t!==i&&(n.cssText=i):t&&e.removeAttribute("style"),zp in e&&(n.display=l)}}const Om=/\s*!important$/;function lf(e,t,i){if(ut(i))i.forEach(n=>lf(e,t,n));else if(i==null&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const n=FC(e,t);Om.test(i)?e.setProperty(Ms(n),i.replace(Om,""),"important"):e[n]=i}}const Pm=["Webkit","Moz","ms"],ih={};function FC(e,t){const i=ih[t];if(i)return i;let n=ms(t);if(n!=="filter"&&n in e)return ih[t]=n;n=Ul(n);for(let a=0;ash||(YC.then(()=>sh=0),sh=Date.now());function XC(e,t){const i=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=i.attached)return;As(GC(n,i.value),t,5,[n])};return i.value=e,i.attached=jC(),i}function GC(e,t){if(ut(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map(n=>a=>!a._stopped&&n&&n(a))}else return t}const Rm=/^on[a-z]/,UC=(e,t,i,n,a=!1,l,c,d,p)=>{t==="class"?RC(e,n,a):t==="style"?$C(e,i,n):Gl(t)?up(t)||BC(e,t,i,n,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):KC(e,t,n,a))?HC(e,t,n,l,c,d,p):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),zC(e,t,n,a))};function KC(e,t,i,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&Rm.test(t)&&It(i)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Rm.test(t)&&xi(i)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function r0(e,t){const i=Ke(e);class n extends fd{constructor(l){super(i,l,t)}}return n.def=i,n}/*! #__NO_SIDE_EFFECTS__ */const qC=e=>r0(e,g0),ZC=typeof HTMLElement<"u"?HTMLElement:class{};class fd extends ZC{constructor(t,i={},n){super(),this._def=t,this._props=i,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),At(()=>{this._connected||(df(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let n=0;n{for(const a of n)this._setAttr(a.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(n,a=!1)=>{const{props:l,styles:c}=n;let d;if(l&&!ut(l))for(const p in l){const m=l[p];(m===Number||m&&m.type===Number)&&(p in this._props&&(this._props[p]=yu(this._props[p])),(d||(d=Object.create(null)))[ms(p)]=!0)}this._numberProps=d,a&&this._resolveProps(n),this._applyStyles(c),this._update()},i=this._def.__asyncLoader;i?i().then(n=>t(n,!0)):t(this._def)}_resolveProps(t){const{props:i}=t,n=ut(i)?i:Object.keys(i||{});for(const a of Object.keys(this))a[0]!=="_"&&n.includes(a)&&this._setProp(a,this[a],!0,!1);for(const a of n.map(ms))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(l){this._setProp(a,l)}})}_setAttr(t){let i=this.getAttribute(t);const n=ms(t);this._numberProps&&this._numberProps[n]&&(i=yu(i)),this._setProp(n,i,!1)}_getProp(t){return this._props[t]}_setProp(t,i,n=!0,a=!0){i!==this._props[t]&&(this._props[t]=i,a&&this._instance&&this._update(),n&&(i===!0?this.setAttribute(Ms(t),""):typeof i=="string"||typeof i=="number"?this.setAttribute(Ms(t),i+""):i||this.removeAttribute(Ms(t))))}_update(){df(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Me(this._def,yi({},this._props));return this._instance||(t.ce=i=>{this._instance=i,i.isCE=!0;const n=(l,c)=>{this.dispatchEvent(new CustomEvent(l,{detail:c}))};i.emit=(l,...c)=>{n(l,c),Ms(l)!==l&&n(Ms(l),c)};let a=this;for(;a=a&&(a.parentNode||a.host);)if(a instanceof fd){i.parent=a._instance,i.provides=a._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(i=>{const n=document.createElement("style");n.textContent=i,this.shadowRoot.appendChild(n)})}}function JC(e="$style"){{const t=Gi();if(!t)return oi;const i=t.type.__cssModules;if(!i)return oi;const n=i[e];return n||oi}}function QC(e){const t=Gi();if(!t)return;const i=t.ut=(a=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(l=>uf(l,a))},n=()=>{const a=e(t.proxy);cf(t.subTree,a),i(a)};px(n),xt(()=>{const a=new MutationObserver(n);a.observe(t.subTree.el.parentNode,{childList:!0}),Sn(()=>a.disconnect())})}function cf(e,t){if(e.shapeFlag&128){const i=e.suspense;e=i.activeBranch,i.pendingBranch&&!i.isHydrating&&i.effects.push(()=>{cf(i.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)uf(e.el,t);else if(e.type===Qe)e.children.forEach(i=>cf(i,t));else if(e.type===ca){let{el:i,anchor:n}=e;for(;i&&(uf(i,t),i!==n);)i=i.nextSibling}}function uf(e,t){if(e.nodeType===1){const i=e.style;for(const n in t)i.setProperty(`--${n}`,t[n])}}const a0=new WeakMap,o0=new WeakMap,Au=Symbol("_moveCb"),Dm=Symbol("_enterCb"),l0={name:"TransitionGroup",props:yi({},LC,{tag:String,moveClass:String}),setup(e,{slots:t}){const i=Gi(),n=Pp();let a,l;return Zl(()=>{if(!a.length)return;const c=e.moveClass||`${e.name||"v"}-move`;if(!rA(a[0].el,i.vnode.el,c))return;a.forEach(iA),a.forEach(sA);const d=a.filter(nA);s0(),d.forEach(p=>{const m=p.el,b=m.style;Pn(m,c),b.transform=b.webkitTransform=b.transitionDuration="";const w=m[Au]=_=>{_&&_.target!==m||(!_||/transform$/.test(_.propertyName))&&(m.removeEventListener("transitionend",w),m[Au]=null,ur(m,c))};m.addEventListener("transitionend",w)})}),()=>{const c=Ut(e),d=t0(c);let p=c.tag||Qe;a=l,l=t.default?ad(t.default()):[];for(let m=0;mdelete e.mode;l0.props;const tA=l0;function iA(e){const t=e.el;t[Au]&&t[Au](),t[Dm]&&t[Dm]()}function sA(e){o0.set(e,e.el.getBoundingClientRect())}function nA(e){const t=a0.get(e),i=o0.get(e),n=t.left-i.left,a=t.top-i.top;if(n||a){const l=e.el.style;return l.transform=l.webkitTransform=`translate(${n}px,${a}px)`,l.transitionDuration="0s",e}}function rA(e,t,i){const n=e.cloneNode(),a=e[ro];a&&a.forEach(d=>{d.split(/\s+/).forEach(p=>p&&n.classList.remove(p))}),i.split(/\s+/).forEach(d=>d&&n.classList.add(d)),n.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(n);const{hasTransform:c}=i0(n);return l.removeChild(n),c}const Pr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ut(t)?i=>Za(t,i):t};function aA(e){e.target.composing=!0}function $m(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Rs=Symbol("_assign"),ui={created(e,{modifiers:{lazy:t,trim:i,number:n}},a){e[Rs]=Pr(a);const l=n||a.props&&a.props.type==="number";Dn(e,t?"change":"input",c=>{if(c.target.composing)return;let d=e.value;i&&(d=d.trim()),l&&(d=bu(d)),e[Rs](d)}),i&&Dn(e,"change",()=>{e.value=e.value.trim()}),t||(Dn(e,"compositionstart",aA),Dn(e,"compositionend",$m),Dn(e,"change",$m))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:i,trim:n,number:a}},l){if(e[Rs]=Pr(l),e.composing)return;const c=a||e.type==="number"?bu(e.value):e.value,d=t??"";c!==d&&(document.activeElement===e&&e.type!=="range"&&(i||n&&e.value.trim()===d)||(e.value=d))}},Ds={deep:!0,created(e,t,i){e[Rs]=Pr(i),Dn(e,"change",()=>{const n=e._modelValue,a=oo(e),l=e.checked,c=e[Rs];if(ut(n)){const d=qu(n,a),p=d!==-1;if(l&&!p)c(n.concat(a));else if(!l&&p){const m=[...n];m.splice(d,1),c(m)}}else if(Sa(n)){const d=new Set(n);l?d.add(a):d.delete(a),c(d)}else c(c0(e,l))})},mounted:Fm,beforeUpdate(e,t,i){e[Rs]=Pr(i),Fm(e,t,i)}};function Fm(e,{value:t,oldValue:i},n){e._modelValue=t,ut(t)?e.checked=qu(t,n.props.value)>-1:Sa(t)?e.checked=t.has(n.props.value):t!==i&&(e.checked=Ar(t,c0(e,!0)))}const Hp={created(e,{value:t},i){e.checked=Ar(t,i.props.value),e[Rs]=Pr(i),Dn(e,"change",()=>{e[Rs](oo(e))})},beforeUpdate(e,{value:t,oldValue:i},n){e[Rs]=Pr(n),t!==i&&(e.checked=Ar(t,n.props.value))}},ao={deep:!0,created(e,{value:t,modifiers:{number:i}},n){const a=Sa(t);Dn(e,"change",()=>{const l=Array.prototype.filter.call(e.options,c=>c.selected).map(c=>i?bu(oo(c)):oo(c));e[Rs](e.multiple?a?new Set(l):l:l[0])}),e[Rs]=Pr(n)},mounted(e,{value:t}){zm(e,t)},beforeUpdate(e,t,i){e[Rs]=Pr(i)},updated(e,{value:t}){zm(e,t)}};function zm(e,t){const i=e.multiple;if(!(i&&!ut(t)&&!Sa(t))){for(let n=0,a=e.options.length;n-1:l.selected=t.has(c);else if(Ar(oo(l),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!i&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function oo(e){return"_value"in e?e._value:e.value}function c0(e,t){const i=t?"_trueValue":"_falseValue";return i in e?e[i]:t}const u0={created(e,t,i){Oc(e,t,i,null,"created")},mounted(e,t,i){Oc(e,t,i,null,"mounted")},beforeUpdate(e,t,i,n){Oc(e,t,i,n,"beforeUpdate")},updated(e,t,i,n){Oc(e,t,i,n,"updated")}};function d0(e,t){switch(e){case"SELECT":return ao;case"TEXTAREA":return ui;default:switch(t){case"checkbox":return Ds;case"radio":return Hp;default:return ui}}}function Oc(e,t,i,n,a){const c=d0(e.tagName,i.props&&i.props.type)[a];c&&c(e,t,i,n)}function oA(){ui.getSSRProps=({value:e})=>({value:e}),Hp.getSSRProps=({value:e},t)=>{if(t.props&&Ar(t.props.value,e))return{checked:!0}},Ds.getSSRProps=({value:e},t)=>{if(ut(e)){if(t.props&&qu(e,t.props.value)>-1)return{checked:!0}}else if(Sa(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},u0.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const i=d0(t.type.toUpperCase(),t.props&&t.props.type);if(i.getSSRProps)return i.getSSRProps(e,t)}}const lA=["ctrl","shift","alt","meta"],cA={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>lA.some(i=>e[`${i}Key`]&&!t.includes(i))},Jt=(e,t)=>(i,...n)=>{for(let a=0;ai=>{if(!("key"in i))return;const n=Ms(i.key);if(t.some(a=>a===n||uA[a]===n))return e(i)},h0=yi({patchProp:UC},PC);let ul,Hm=!1;function f0(){return ul||(ul=$x(h0))}function p0(){return ul=Hm?ul:Fx(h0),Hm=!0,ul}const df=(...e)=>{f0().render(...e)},g0=(...e)=>{p0().hydrate(...e)},m0=(...e)=>{const t=f0().createApp(...e),{mount:i}=t;return t.mount=n=>{const a=v0(n);if(!a)return;const l=t._component;!It(l)&&!l.render&&!l.template&&(l.template=a.innerHTML),a.innerHTML="";const c=i(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),c},t},dA=(...e)=>{const t=p0().createApp(...e),{mount:i}=t;return t.mount=n=>{const a=v0(n);if(a)return i(a,!0,a instanceof SVGElement)},t};function v0(e){return xi(e)?document.querySelector(e):e}let Vm=!1;const hA=()=>{Vm||(Vm=!0,oA(),DC())},fA=()=>{},pA=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:mx,BaseTransitionPropsValidators:Lp,Comment:Qi,EffectScope:gp,Fragment:Qe,KeepAlive:LE,ReactiveEffect:io,Static:ca,Suspense:wE,Teleport:fC,Text:Tr,Transition:Fp,TransitionGroup:tA,VueElement:fd,assertNumber:cE,callWithAsyncErrorHandling:As,callWithErrorHandling:Bn,camelize:ms,capitalize:Ul,cloneVNode:bn,compatUtils:IC,compile:fA,computed:we,createApp:m0,createBlock:it,createCommentVNode:Le,createElementBlock:K,createElementVNode:V,createHydrationRenderer:Fx,createPropsRestProxy:UE,createRenderer:$x,createSSRApp:dA,createSlots:NE,createStaticVNode:mC,createTextVNode:Qt,createVNode:Me,customRef:iE,defineAsyncComponent:OE,defineComponent:Ke,defineCustomElement:r0,defineEmits:$E,defineExpose:FE,defineModel:VE,defineOptions:zE,defineProps:DE,defineSSRCustomElement:qC,defineSlots:HE,get devtools(){return za},effect:OS,effectScope:Zu,getCurrentInstance:Gi,getCurrentScope:Ju,getTransitionRawChildren:ad,guardReactiveProps:ud,h:zr,handleError:Ca,hasInjectionContext:Px,hydrate:g0,initCustomFormatter:EC,initDirectivesForSSR:hA,inject:Ji,isMemoSame:Jx,isProxy:wp,isReactive:Vn,isReadonly:pa,isRef:bi,isRuntimeOnly:wC,isShallow:Il,isVNode:Ir,markRaw:Io,mergeDefaults:XE,mergeModels:GE,mergeProps:dd,nextTick:At,normalizeClass:_t,normalizeProps:pp,normalizeStyle:pt,onActivated:bx,onBeforeMount:ld,onBeforeUnmount:Oo,onBeforeUpdate:wx,onDeactivated:yx,onErrorCaptured:Cx,onMounted:xt,onRenderTracked:Ex,onRenderTriggered:Sx,onScopeDispose:mp,onServerPrefetch:_x,onUnmounted:Sn,onUpdated:Zl,openBlock:W,popScopeId:si,provide:Wn,proxyRefs:Ep,pushScopeId:ii,queuePostFlushCb:wu,reactive:Wt,readonly:xp,ref:ye,registerRuntimeCompiler:xC,render:df,renderList:St,renderSlot:di,resolveComponent:ga,resolveDirective:ux,resolveDynamicComponent:qh,resolveFilter:TC,resolveTransitionHooks:so,setBlockTracking:nf,setDevtoolsHook:ox,setTransitionHooks:ma,shallowReactive:yp,shallowReadonly:ZS,shallowRef:ss,ssrContextKey:qx,ssrUtils:kC,stop:PS,toDisplayString:Ne,toHandlerKey:al,toHandlers:kx,toRaw:Ut,toRef:rE,toRefs:Ea,toValue:QS,transformVNodeArgs:pC,triggerRef:Mn,unref:Be,useAttrs:YE,useCssModule:JC,useCssVars:QC,useModel:jE,useSSRContext:Zx,useSlots:WE,useTransitionState:Pp,vModelCheckbox:Ds,vModelDynamic:u0,vModelRadio:Hp,vModelSelect:ao,vModelText:ui,vShow:n0,version:Qx,warn:lE,watch:nt,watchEffect:fx,watchPostEffect:px,watchSyncEffect:kE,withAsyncContext:KE,withCtx:rt,withDefaults:BE,withDirectives:Bt,withKeys:ei,withMemo:CC,withModifiers:Jt,withScopeId:Ap},Symbol.toStringTag,{value:"Module"}));var gA=!1;/*! - * pinia v2.1.7 - * (c) 2023 Eduardo San Martin Morote - * @license MIT - */let b0;const pd=e=>b0=e,y0=Symbol();function hf(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var dl;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(dl||(dl={}));function mA(){const e=Zu(!0),t=e.run(()=>ye({}));let i=[],n=[];const a=Io({install(l){pd(a),a._a=l,l.provide(y0,a),l.config.globalProperties.$pinia=a,n.forEach(c=>i.push(c)),n=[]},use(l){return!this._a&&!gA?n.push(l):i.push(l),this},_p:i,_a:null,_e:e,_s:new Map,state:t});return a}const x0=()=>{};function Bm(e,t,i,n=x0){e.push(t);const a=()=>{const l=e.indexOf(t);l>-1&&(e.splice(l,1),n())};return!i&&Ju()&&mp(a),a}function La(e,...t){e.slice().forEach(i=>{i(...t)})}const vA=e=>e();function ff(e,t){e instanceof Map&&t instanceof Map&&t.forEach((i,n)=>e.set(n,i)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const i in t){if(!t.hasOwnProperty(i))continue;const n=t[i],a=e[i];hf(a)&&hf(n)&&e.hasOwnProperty(i)&&!bi(n)&&!Vn(n)?e[i]=ff(a,n):e[i]=n}return e}const bA=Symbol();function yA(e){return!hf(e)||!e.hasOwnProperty(bA)}const{assign:dr}=Object;function xA(e){return!!(bi(e)&&e.effect)}function wA(e,t,i,n){const{state:a,actions:l,getters:c}=t,d=i.state.value[e];let p;function m(){d||(i.state.value[e]=a?a():{});const b=Ea(i.state.value[e]);return dr(b,l,Object.keys(c||{}).reduce((w,_)=>(w[_]=Io(we(()=>{pd(i);const C=i._s.get(e);return c[_].call(C,C)})),w),{}))}return p=w0(e,m,t,i,n,!0),p}function w0(e,t,i={},n,a,l){let c;const d=dr({actions:{}},i),p={deep:!0};let m,b,w=[],_=[],C;const I=n.state.value[e];!l&&!I&&(n.state.value[e]={}),ye({});let O;function M(se){let Q;m=b=!1,typeof se=="function"?(se(n.state.value[e]),Q={type:dl.patchFunction,storeId:e,events:C}):(ff(n.state.value[e],se),Q={type:dl.patchObject,payload:se,storeId:e,events:C});const te=O=Symbol();At().then(()=>{O===te&&(m=!0)}),b=!0,La(w,Q,n.state.value[e])}const N=l?function(){const{state:Q}=i,te=Q?Q():{};this.$patch(ce=>{dr(ce,te)})}:x0;function k(){c.stop(),w=[],_=[],n._s.delete(e)}function D(se,Q){return function(){pd(n);const te=Array.from(arguments),ce=[],oe=[];function de(re){ce.push(re)}function be(re){oe.push(re)}La(_,{args:te,name:se,store:$,after:de,onError:be});let Ce;try{Ce=Q.apply(this&&this.$id===e?this:$,te)}catch(re){throw La(oe,re),re}return Ce instanceof Promise?Ce.then(re=>(La(ce,re),re)).catch(re=>(La(oe,re),Promise.reject(re))):(La(ce,Ce),Ce)}}const P={_p:n,$id:e,$onAction:Bm.bind(null,_),$patch:M,$reset:N,$subscribe(se,Q={}){const te=Bm(w,se,Q.detached,()=>ce()),ce=c.run(()=>nt(()=>n.state.value[e],oe=>{(Q.flush==="sync"?b:m)&&se({storeId:e,type:dl.direct,events:C},oe)},dr({},p,Q)));return te},$dispose:k},$=Wt(P);n._s.set(e,$);const ee=(n._a&&n._a.runWithContext||vA)(()=>n._e.run(()=>(c=Zu()).run(t)));for(const se in ee){const Q=ee[se];if(bi(Q)&&!xA(Q)||Vn(Q))l||(I&&yA(Q)&&(bi(Q)?Q.value=I[se]:ff(Q,I[se])),n.state.value[e][se]=Q);else if(typeof Q=="function"){const te=D(se,Q);ee[se]=te,d.actions[se]=Q}}return dr($,ee),dr(Ut($),ee),Object.defineProperty($,"$state",{get:()=>n.state.value[e],set:se=>{M(Q=>{dr(Q,se)})}}),n._p.forEach(se=>{dr($,c.run(()=>se({store:$,app:n._a,pinia:n,options:d})))}),I&&l&&i.hydrate&&i.hydrate($.$state,I),m=!0,b=!0,$}function gd(e,t,i){let n,a;const l=typeof t=="function";typeof e=="string"?(n=e,a=l?i:t):(a=e,n=e.id);function c(d,p){const m=Px();return d=d||(m?Ji(y0,null):null),d&&pd(d),d=b0,d._s.has(n)||(l?w0(n,t,a,d):wA(n,a,d)),d._s.get(n)}return c.$id=n,c}const _A={home:{label:{folder:"Dossier",name:"Nom du projet",path_placeholder:"Selectionez un dossier",create:"Creer",cancel:"Annuler"},create_title:"Creation de projet",plugins:{warning:"Attention: nous ne contrôlons pas le contenu des plugins développés par des tierces",require_url:"Url requise",require_unique_name:"Choisir un nom de plugin unique",require_folder:"Choisir un dossier",error_name_not_unique:"Le nom de plugin est deja utilisé",install_panoptic_ml:"Installer le plugin de similarité",install:"Installer",load:"Installation..."}},status:{no_project:"Aucun projet Panoptic ouvert"},nav:{folders:{title:"Dossiers",add:"Ajouter un dossier d'images",del:"Retirer",del_alert:"Retirer le dossier supprimera toutes les instances associées aux images contenues dans le dossier."},tasks:{title:"Tache de fond",done:"Fini"},properties:{title:"Propriétés",properties_tooltip:"Les différents champs associés à chaque image",import_properties_tooltip:"Importer un fichier de propriétés",export_properties_tooltip:"Exporter un fichier de propriétés",hide_property_tooltip:"Afficher / Masquer la propriété dans la vue",linked_property_tooltip:"Propriété liée à une instance d'image, pour plus d'informations lire la documentation sur les instances",hidden_property_tooltip:"Cette propriété n'est pas visible dans ce mode car liée à une instance d'image",expand_property_tooltip:"Afficher les tags",collapse_property_tooltip:"Masquer les tags",add_property:"Nouvelle propriété",delete_property:"Supprimer",open_tags:"Ouvrir modal des tags"},computed:{title:"Propriétés Panoptic",computed_tooltip:"Des propriétés non modifiables générées par panoptic","1_tooltip":"L'identifiant unique dans panoptic","2_tooltip":"Une signature unique, deux images parfaitement identiques auront le même sha1","3_tooltip":"Une signature moyenne, deux images très proches visuellement auront le même ahash","4_tooltip":"Dossier contenant l'image source","5_tooltip":"Largeur de l'image","6_tooltip":"Hauteur de l'image","7_tooltip":"Le chemin de l'image sur le disque"}},menu:{add_tab_tooltip:"Créer un nouvel onglet",rename_tab_tooltip:"Renommer l'onglet",delete_tab_tooltip:"Supprimer l'onglet",search:"Chercher par texte",search_tooltip:"Chercher des images ayant le texte cherché dans l'une de leurs propriétés.",grid_tooltip:"Passer en vue grille d'images",table_tooltip:"Passer en vue tableau",graph_tooltip:"Passer en vue graphique",image_size_tooltip:"Taille des images",all_images:"Images",sha1_images:"Instances",image_mode_tooltip:"Altérner entre les modes instance et image, en mode image, seules les propriétés communes à toutes les instances d'une image seront affichées.",selected_images:"images sélectionnées",tag_selection:"Tagger les ",remove_selection_tooltip:"Annuler la sélection",filters:"Filtrer",groupby:"Grouper",sort:{title:"Trier",group_order_az_tooltip:"Tri des groupes par nom",group_order_nb_tooltip:"Tri des groupes par nombre d'images",order_desc:"Tri par ordre décroissant",order_asc:"Tri par ordre croissant"},import_status_title:"Import",issue:"Signaler un probleme"},recommand:{title:"Propositions d'images",tooltip:"Des images considérées comme visuellement et / ou sémantiquement proches du groupe sélectionné en utilisant l'algorithme KDTree et des vecteurs d'image",accept:"Ajouter au groupe sélectionné",refuse:"Retirer des images similaires",group:"Aller au groupe"},view:{all_group:"Toutes",group_clusters:"Groupes IA",groupes_nb:"Groupes",group_clusters_tooltip:"Utilise un algorithme de machine learning (Kmeans) pour proposer des groupes temporaires par similarité d'images. Voir la documentation sur les clusters pour plus d'informations.",remove_clusters:"Fermer les groupes IA",cluster_score_tooltip:"Score de cohérence du cluster. Voir la documentation sur les clusters pour plus d'informations",instances_tooltip:"Nombre d'instances de cette image",collapse:"Réduire"},"graph-view":{histo:"Histogramme",curve:"Courbe",stack:"Empiler",over:"Superposer",info:"Cliquez sur la légende pour afficher les images de tous les points"}},SA={fs:{fast:"Accès rapide",partitions:"Disques",images:"Choisir un dossier d'images à ajouter",import:"Choisir un projet à importer",create:"Choisir l'emplacement où créer",open:"Sélectionner"},image:{similar_images:"Images similaires",similar_images_tooltip:"Des images considérées comme visuellement et / ou sémantiquement proches de l'image courante en utilisant l'algorithme KDTree et des vecteurs d'image",unique_properties:"Propriétés des instances",unique_properties_tooltip:"Affichage des propriétés liées à toutes les instances de cette image.",similarity_filter_tooltip:"Le pourcentage de similarité minimal que doivent avoir les images affichées ici. Pour plus d'information, voir la documentation sur le score de similarité.",toggle_property_tooltip:"Afficher / Masquer cette propriété dans la vue 'Images similaires'",main_filter_tooltip:"Activer / Désactiver le filtre global",fill_property_tooltip:"Tagger toutes les images similaires avec la valeur de cette propriété",history:"Historique"},properties:{title:"Nouvelle propriété",input:"Nom de la propriété",type:"Type de propriété",instance:"Propriété d'instance",image:"Propriété d'image",cancel:"Annuler",confirm:"Confirmer",text:"Texte",text_tooltip:"Du texte, ex: le contenu d'un tweet, la description d'une image",number:"Numérique",number_tooltip:"Des nombres, ex: le nombre de likes sur twitter, la largeur d'un tableau",tag:"Tag",tag_tooltip:"Un tag unique choisi parmi une liste, ex: une catégorie d'image, un lieu, une source",multi_tags:"MultiTags",multi_tags_tooltip:"Permet d'assigner un ou plusieurs tags parmi une liste, ex: des catégories, des lieux, des objets",url:"URL",url_tooltip:"Une URL cliquable, ex: le lien vers la source d'une image",date:"Date",date_tooltip:"Une date au format jj / mm / aaaa",color:"Color",color_tooltip:"Un simple carré de couleur permettant de catégoriser sans assigner de label",checkbox:"Checkbox",checkbox_tooltip:"Une case à cocher, ex: 'pertinent' / 'non pertinent', 'sensible / non sensible'"},filters:{title:"Filtres:",remove:"Supprimer",and:"et",or:"ou",where:"Conditions:",new_filter:"Filtre",new_group:"Groupe de filtres",operators:{isSet:"n'est pas vide",notSet:"est vide",equal:"=",equalNot:"≠",lower:"<",greater:">",leq:"≤",geq:"≥",startsWith:"débute par",like:"contient",notLike:"ne contiens pas",containsAny:"contient",containsNot:"ne contient pas",containsAll:"contient tous",isTrue:"oui",isFalse:"non"}},tagging:{button:"Tagger le groupe",title:"Propriétés",cancel:"Annuler",clear:"Clear",apply:"Appliquer",erase:"Effacer",erase_tooltip:"Effacer le champ pour toute la sélection",cancel_tooltip:"Annuler les changements"},tags:{filter_tree:"Afficher seulement les tags selectionnés",unselect_tree:"Annuler la selection",merge_tree:"Fusionner Tags",tree_view:"Vue en arbre",list_view:"Vue en liste",click_to_select:"Cliquez pour selectioner des tags",click_any:"Cliquez pour selectioner",col_title_all:"Tous les tags",col_title_children:"Tags enfants",col_title_siblings:"Tags frères",col_title_parents:"Tags parents"},export:{title:"Exporter les données",images:"Uniquement les images de l'onglet",properties:"Uniquement les propriétés visibles",export:"Exporter",name:"Nom de dossier",name_placeholder:"Optionel",mode_label:"Mode",mode_image:"Image",mode_instance:"Instance",selection_label:"Selection",selection_all:"Toutes",selection_selected:"Selectionnées",selection_filtered:"Filtrées",properties_label:"Propriétés",properties_all:"Toutes",properties_visible:"Visible",properties_none:"Aucune",export_images:"Inclure les images",key_label:"Identifiant",id:"ID",local_path:"Chemin relatif",global_path:"Chemin absolu"},settings:{title:"Parametres Projet"},import:{title:"Importer Fichier",help:{0:"Un fichier valide de propriétés à importer est un csv:",1:"Avec séparateur ';'",2:"Ayant comme première colonne soit:",3:"path: un chemin relatif ou absolu vers le fichier d'image",4:"id: un id panoptic (correspondant à une image déjà importée dans panoptic)",5:"Une liste de colonnes correspondant à chaque fois au nom de la propriété à donner puis à son type entre crochets.",6:"Exemple: categories[multi_tags]",7:"Dans le cas d'une propriété multi_tags, les tags devront être séparés par des virgules au sein de la colonne",8:"Tableau d'équivalence des propriétés:",9:"Nom dans panoptic",10:"Nom à l'import / export"}},first:{introduction:"Bienvenue sur Panoptic, logiciel proposant d'explorer de grands corpus d'images en les manipulant par leurs propriétés et à l'aide d'outils de machine learning. Ces derniers ne sont pas installés de base pour limiter la taille de panoptic dans le cas où ils ne vous intéresseraient pas. Il est cependant recommandé de les installer pour profiter des pleines fonctionnalités de Panoptic.",install_ml:"Installer Plugin ML"}},EA={buttons:{skip:"Passer",next:"Suivant",finish:"Terminer"},"step-1":"Bienvenue sur Panoptic, vous n'avez pas de projet pour le moment.","step-2":"Cliquez ici pour créer un nouveau projet.","step-3":"Sélectionnez ici le dossier dans lequel les données panoptic seront stockées (nb: ça n'est pas le dossier d'où proviennent les images)","step-3a":"Choisissez le dossier dans lequel créer le projet et confirmez","step-3b":"Rentrez un nom de projet puis cliquez pour finaliser et créer le projet.","step-4":"Vous n'avez pas d'images pour le moment, cliquez ici pour ajouter un dossier d'images.","step-4b":"Choisissez votre dossier d'image et cliquez ici pour confirmer","step-5":"Les images s'importent ici, et des calculs sont effectués, cela peut prendre un certain temps.","step-6":"Avant que les calculs ne soient terminés, vous pouvez créer une propriété, les propriétés servent à créer des annotations.","step-7":"Il faut choisir le type de propriété, pour cet exemple choisissez le type Label, vous pourrez survoler les autres types pour plus d'informations.","step-8":"Entrez également un nom par exemple 'catégorie' et confirmez.","step-9":"La propriété s'affiche maintenant sous toutes les images avec la valeur 'None' cliquez dessus pour modifier cette valeur, et entrez un mot clé, par exemple 'test'.","step-10":"Vous venez donc d'assigner le label 'test' à cette image. Au dela des annotations, les propriétés permettent de filtrer, grouper, et trier des images","step-11":"Vous pouvez maintenant grouper les images en appuyant sur le '+' et en sélectionnant 'catégorie'. Cela va créer deux groupes d'images 'catégorie: indéfinie' et 'catégorie: test'","step-12":"Si vous assignez la valeur 'test' à une autre image, celle ci sera automatiquement déplacée dans le groupe 'catégorie: test'","step-13":"Survolez une image du groupe 'catégorie: _indéfini' et appuyez sur l'icone de sélection en haut à gauche.","step-13a":"Sélectionnez plusieurs images de la même façon, ou maintenez SHIFT et cliquez sur l'icone de sélection d'une autre image pour sélectionner toutes les images entre les deux.","step-13b":"Vous pouvez maintenant assigner une valeur à plusieurs images en même temps, par exemple la valeur 'test2' ce qui crééra un nouveau groupe d'images; 'catégorie: test2'.","step-14":"Cliquez à nouveau sur 'catégorie' pour enlever le groupage. Les filtres et les tris fonctionnent de la même façon.","step-14b":"Cliquez ici pour créer un nouvel onglet, les filtres, groupes et tris sont propres à chaque onglet et ces dernier permettent facilement d'altérner entre des sous corpus.","step-15":"Une fois les calculs terminés, vous pouvez utiliser les fonctionnalités de machine learning de panoptic. Pour créer des groupes automatiques par exemple.","step-16":"Cliquez sur une image pour l'ouvrir en grand, sur le côté sont affichées les images similaires à cette image.","step-17":"Retrouvez des tutoriels plus détaillés sur le site du CERES: https://ceres.sorbonne-université.fr/outils/panoptic"},CA={find_similar:"Similaire",group:"Créer des clusters",execute:"Executer",filter:"Filtrer",action_images:"Action Images",action_group:"Action Groupes",import:"Importer",export:"Exporter"},AA="Tooltip to be written",kA={history:{info:"Historique des modifications",button:"Historique",values:"valeur(s) modifiée(s)",tags:"tag(s) modifié(s)",undo:"Annuler",redo:"Refaire"},action:{execute:"Execute une fonction plugin sur les instances",group:"Execute une fonction de clustering sur les instances"}},TA={reload:{auto:`Actualisation Automatique -Cliquez pour désactiver la mise à jour automatique`,valid:`Données à jour -Cliquez pour activer la mise à jour automatique`,dirty:`Actualisation nécessaire -Cliquez pour actualiser`},"close-clusters":"Retirer les clusters","save-clusters":"Sauvegarde les clusters dans une propriétés tag"},IA={cancel:"Annuler",submit:"Confirmer",valid:"Valide",invalid:"Invalide",correct:"Correction"},OA={properties:{panoptic:"Propriétés Panoptic",instance:"Propriétés de l'instance",instances:"Propriété des instances",image:"Propriétés d'image",delete:"Voulez vous vraiment supprimer la propriété"}},PA="Vide...",LA="Installation...",MA="Installé",NA={main:_A,modals:SA,tutorial:EA,action:CA,tmp:AA,dropdown:kA,btn:TA,datepicker:IA,common:OA,none:PA,installing:LA,installed:MA},RA={home:{label:{folder:"Folder",name:"Project name",path_placeholder:"Select a folder",create:"Create",cancel:"Cancel"},create_title:"Create project",plugins:{warning:"Warning: we can't control the content of third party plugins",require_url:"Git URL",require_unique_name:"Unique plugin name",require_folder:"Folder selection",error_name_not_unique:"This plugin name is already taken",install_panoptic_ml:"Install PanopticML",install:"Install",load:"Installing..."}},status:{no_project:"No open Panoptic project"},nav:{folders:{title:"Folders",add:"Add an images folder",del:"Remove",del_alert:"Removing this folder will delete every images from this folder from panoptic"},tasks:{title:"Background task",done:"Done"},properties:{title:"Properties",properties_tooltip:"The various fields associated with each image",import_properties_tooltip:"Import a properties file",export_properties_tooltip:"Export a properties file",hide_property_tooltip:"Show / Hide property in view",linked_property_tooltip:"Property linked to an image instance, for more information read the documentation on instances",hidden_property_tooltip:"This property is not visible in this mode because it is linked to an image instance",expand_property_tooltip:"Show tags",collapse_property_tooltip:"Hide tags",add_property:"New property",delete_property:"Delete",open_tags:"Open tags management"},computed:{title:"Panoptic Properties",computed_tooltip:"Non-modifiable properties generated by panoptic","1_tooltip":"Unique identifier in panoptic","2_tooltip":"Unique signature, two perfectly identical images will have the same sha1","3_tooltip":"Average signature, two visually very similar images will have the same ahash","4_tooltip":"Folder containing the source image","5_tooltip":"Image width","6_tooltip":"Image height","7_tooltip":"Path of the image on disk"}},menu:{add_tab_tooltip:"Create a new tab",rename_tab_tooltip:"Rename tab",delete_tab_tooltip:"Delete tab",search:"Search by text",search_tooltip:"Search for images matching the text using the CLIP template",grid_tooltip:"Switch to image grid view",table_tooltip:"Switch to table view",graph_tooltip:"Switch to chart view",image_size_tooltip:"Image size",all_images:"Instances",sha1_images:"Images",image_mode:"Stack identical images",image_mode_tooltip:"Switch between instance and image modes, in image mode, only properties common to all instances of an image will be displayed.",selected_images:"selected images",tag_selection:"Tag the ",remove_selection_tooltip:"Cancel selection",filters:"Filter ",groupby:"Group ",sort:{title:"Sort ",group_order_az_tooltip:"Sort groups by name",group_order_nb_tooltip:"Sort groups by number of images",order_desc:"Sort by descending order",order_asc:"Sort in ascending order"},import_status_title:"Status Import",issue:"Create an Issue"},recommand:{title:"Image suggestions",tooltip:"Images considered to be visually and/or semantically related",accept:"Add to selected group",refuse:"Remove similar images",group:"Go to group"},view:{all_group:"All",group_clusters:"Clusters",groupes_nb:"Groups",group_clusters_tooltip:"Uses a machine learning algorithm (Kmeans) to propose temporary groups by image similarity. See the documentation on clusters for more information.",remove_clusters:"Close clusters",cluster_score_tooltip:"Cluster consistency score. See cluster documentation for more information",instances_tooltip:"Number of instances of this image",collapse:"Collapse"},"graph-view":{histo:"Histogram",curve:"LineChart",stack:"Stack",over:"UnStack",info:"Click on the legend to show images of all datapoints"}},DA={fs:{fast:"Quick Access",partitions:"Disks",images:"Select the folder you want to add images from",import:"Select the project folder to import",create:"Where should project folder be created ?",open:"Select"},image:{similar_images:"Similar images",similar_images_tooltip:"Images considered to be visually and/or semantically close to the current image using the KDTree algorithm and image vectors",unique_properties:"Unique properties",unique_properties_tooltip:"Display properties related to instances of this image",similarity_filter_tooltip:"The minimum similarity percentage that images displayed here must have. For more information, see the documentation on the similarity score.",toggle_property_tooltip:"Show / Hide this property in the 'Similar images' view",fill_property_tooltip:"Tag all similar images with the value of this property",history:"History",main_filter_tooltip:"Toggle global filter"},properties:{title:"New property",input:"Property name",cancel:"Cancel",confirm:"Confirm",text:"Text",text_tooltip:"Text, e.g. tweet content, image description",number:"Numeric",number_tooltip:"Numbers, e.g. the number of likes on twitter, the width of a table",tag:"Tag",tag_tooltip:"A single tag chosen from a list, e.g. an image category, a location, a source",multi_tags:"MultiTags",multi_tags_tooltip:"Like a tag but with the possibility of assigning several at the same time",url:"URL",url_tooltip:"A clickable URL, e.g. the link to the source of an image",date:"Date",date_tooltip:"A date in dd / mm / yyyy format",color:"Color",color_tooltip:"A simple colored square to categorize without assigning a label",checkbox:"Checkbox",checkbox_tooltip:"A checkbox, e.g. 'relevant' / 'irrelevant', 'sensitive / non-sensitive'",type:"Property Type",instance:"Instance Property",image:"Image Property"},filters:{title:"Filters:",remove:"Delete",and:"and",or:"or",where:"Where:",new_filter:"Filter",new_group:"Filter group",operators:{isSet:"is not empty",notSet:"is empty",equal:"=",equalNot:"≠",lower:"<",greater:">",leq:"≤",geq:"≥",startsWith:"begins with",like:"contains",notLike:"doesn't containt",containsAny:"contains",containsNot:"does not contain",containsAll:"contains all",isTrue:"is",isFalse:"is not"}},tagging:{button:"Tag the group",title:"Properties",cancel:"Cancel",clear:"Clear",apply:"Apply",erase:"Erase",erase_tooltip:"Erase this field for whole selection",cancel_tooltip:"Cancel changes"},tags:{filter_tree:"Display only selected tags",unselect_tree:"Cancel selection",merge_tree:"Merge tags",tree_view:"Tree View",list_view:"List view",click_to_select:"Click to select tags",click_any:"Click to select",col_title_all:"All tags",col_title_children:"Children tags",col_title_siblings:"Siblings tags",col_title_parents:"Parents tags"},export:{title:"Export Data",images:"Only images from the tab",properties:"Only visible properties",export:"Export",name:"Folder Name",name_placeholder:"Optional",mode_label:"Mode",mode_image:"Image",mode_instance:"Instance",selection_label:"Selection",selection_all:"All",selection_selected:"Selected",selection_filtered:"Filtered",properties_label:"Properties",properties_all:"All",properties_visible:"Visible",properties_none:"None",export_images:"Include images",key_label:"Image identifier",id:"ID",local_path:"Relative path",global_path:"Absolute path"},settings:{title:"Project Parameters"},import:{title:"Import File",help:{0:"A valid file is of type .csv and must:",1:"Be ';' separated",2:"Have as first column either:",3:"path: un relative or absolute path of the image file",4:"id: a panoptic id (linking to an already imported image inside panoptic)",5:"The remaining columns must be named like this : propertyname[property_type]",6:"For instance: categories[multi_tags]",7:"If using a multi_tags property, tags should be comma separated inside the column",8:"Names of the property types: ",9:"Name in panoptic",10:"Name to use when importing"}},first:{introduction:"Bienvenue sur Panoptic, logiciel proposant d'explorer de grands corpus d'images en les manipulant par leurs propriétés et à l'aide d'outils de machine learning. Ces derniers ne sont pas installés de base pour limiter la taille de panoptic dans le cas où ils ne vous intéresseraient pas. Il est cependant recommandé de les installer pour profiter des pleines fonctionnalités de Panoptic.",install_ml:"Install Plugin ML"}},$A={buttons:{skip:"Skip",next:"Next",finish:"Finish"},"step-1":"Welcome to Panoptic, you don't have any projects at the moment.","step-2":"Click here to create a new project.","step-3":"Select here the folder where Panoptic data will be stored (note: this is not the folder where the images come from).","step-3a":"Choose the folder to create the project in and confirm.","step-3b":"Enter a project name and click to finalize and create the project.","step-4":"You don't have any images at the moment, click here to add an image folder.","step-4b":"Choose your image folder and click here to confirm.","step-5":"Images are imported here, and calculations are performed, this may take some time.","step-6":"Before calculations are complete, you can create a property. Properties are used to create annotations.","step-7":"You need to choose the property type, for this example choose Label type, you can hover over the other types for more information.","step-8":"Also enter a name, for example 'category' and confirm.","step-9":"The property now appears under all images with the value 'None', click on it to edit this value, and enter a keyword, for example 'test'.","step-10":"So you have just assigned the label 'test' to this image. Besides annotations, properties allow filtering, grouping, and sorting of images.","step-11":"You can now group images by pressing '+' and selecting 'category'. This will create two groups of images 'category: undefined' and 'category: test'.","step-12":"If you assign the value 'test' to another image, it will automatically be moved to the 'category: test' group.","step-13":"Hover over an image in the 'category: undefined' group and click on the selection icon in the top left corner.","step-13a":"Select multiple images in the same way, or hold SHIFT and click the selection icon of another image to select all images between them.","step-13b":"You can now assign a value to multiple images at once, for example the value 'test2' which will create a new group of images; 'category: test2'.","step-14":"Click 'category' again to remove grouping. Filters and sorts work in the same way.","step-14b":"Click here to create a new tab, filters, groups, and sorts are specific to each tab and allow easy switching between sub-corpora.","step-15":"Once calculations are complete, you can use Panoptic's machine learning features. For example, to create automatic groups.","step-16":"Click on an image to open it in full size, similar images to this image are displayed on the side.","step-17":"Find more detailed tutorials on the CERES website: https://ceres.sorbonne-universite.fr/outils/panoptic"},FA={find_similar:"Similar",group:"Create Clusters",filter:"Filter",action_images:"Image Actions",action_group:"Group Actions",import:"Import",export:"Export",execute:"Run"},zA={history:{info:"History of modifications",button:"History",values:"modified values",tags:"modified tags",undo:"Undo",redo:"Redo"},action:{execute:"Run a plugin function",group:"Run a clustering function"}},HA={reload:{auto:"Hot reload, click to deactivate",valid:"Up to-date, click to activate hot-reload",dirty:"Data is not up to-date, click to reload"},"close-clusters":"Close clusters","save-clusters":"Save the clusters in a new property"},VA={cancel:"Cancel",submit:"Submit",valid:"Valid",invalid:"Invalid",correct:"Rectify"},BA="Empty...",WA="Tooltip to be written",YA={properties:{panoptic:"Panoptic properties",instance:"Instance properties",instances:"All instances properties",image:"Image properties",delete:"Do you really want to delete property"}},jA="Installing",XA="Installed",GA={main:RA,modals:DA,tutorial:$A,action:FA,dropdown:zA,btn:HA,datepicker:VA,none:BA,tmp:WA,common:YA,installing:jA,installed:XA},UA={fr:NA,en:GA};/*! - * shared v9.4.1 - * (c) 2023 kazuya kawaguchi - * Released under the MIT License. - */const pf=typeof window<"u",Hr=(e,t=!1)=>t?Symbol.for(e):Symbol(e),KA=(e,t,i)=>qA({l:e,k:t,s:i}),qA=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Di=e=>typeof e=="number"&&isFinite(e),ZA=e=>S0(e)==="[object Date]",Lr=e=>S0(e)==="[object RegExp]",md=e=>Ot(e)&&Object.keys(e).length===0,Xi=Object.assign;let Wm;const $n=()=>Wm||(Wm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ym(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const JA=Object.prototype.hasOwnProperty;function Vp(e,t){return JA.call(e,t)}const fi=Array.isArray,Li=e=>typeof e=="function",at=e=>typeof e=="string",Xt=e=>typeof e=="boolean",ri=e=>e!==null&&typeof e=="object",_0=Object.prototype.toString,S0=e=>_0.call(e),Ot=e=>{if(!ri(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},QA=e=>e==null?"":fi(e)||Ot(e)&&e.toString===_0?JSON.stringify(e,null,2):String(e);function ek(e,t=""){return e.reduce((i,n,a)=>a===0?i+n:i+t+n,"")}function Bp(e){let t=e;return()=>++t}function tk(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}/*! - * message-compiler v9.4.1 - * (c) 2023 kazuya kawaguchi - * Released under the MIT License. - */function ik(e,t,i){return{line:e,column:t,offset:i}}function gf(e,t,i){const n={start:e,end:t};return i!=null&&(n.source=i),n}const sk=/\{([0-9a-zA-Z]+)\}/g;function nk(e,...t){return t.length===1&&rk(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(sk,(i,n)=>t.hasOwnProperty(n)?t[n]:"")}const E0=Object.assign,jm=e=>typeof e=="string",rk=e=>e!==null&&typeof e=="object";function C0(e,t=""){return e.reduce((i,n,a)=>a===0?i+n:i+t+n,"")}const Ct={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},ak={[Ct.EXPECTED_TOKEN]:"Expected token: '{0}'",[Ct.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Ct.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Ct.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Ct.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Ct.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Ct.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Ct.EMPTY_PLACEHOLDER]:"Empty placeholder",[Ct.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Ct.INVALID_LINKED_FORMAT]:"Invalid linked format",[Ct.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Ct.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Ct.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Ct.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Ct.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Ct.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Po(e,t,i={}){const{domain:n,messages:a,args:l}=i,c=nk((a||ak)[e]||"",...l||[]),d=new SyntaxError(String(c));return d.code=e,t&&(d.location=t),d.domain=n,d}function ok(e){throw e}const kn=" ",lk="\r",is=` -`,ck=String.fromCharCode(8232),uk=String.fromCharCode(8233);function dk(e){const t=e;let i=0,n=1,a=1,l=0;const c=ee=>t[ee]===lk&&t[ee+1]===is,d=ee=>t[ee]===is,p=ee=>t[ee]===uk,m=ee=>t[ee]===ck,b=ee=>c(ee)||d(ee)||p(ee)||m(ee),w=()=>i,_=()=>n,C=()=>a,I=()=>l,O=ee=>c(ee)||p(ee)||m(ee)?is:t[ee],M=()=>O(i),N=()=>O(i+l);function k(){return l=0,b(i)&&(n++,a=0),c(i)&&i++,i++,a++,t[i]}function D(){return c(i+l)&&l++,l++,t[i+l]}function P(){i=0,n=1,a=1,l=0}function $(ee=0){l=ee}function H(){const ee=i+l;for(;ee!==i;)k();l=0}return{index:w,line:_,column:C,peekOffset:I,charAt:O,currentChar:M,currentPeek:N,next:k,peek:D,reset:P,resetPeek:$,skipToPeek:H}}const sr=void 0,hk=".",Xm="'",fk="tokenizer";function pk(e,t={}){const i=t.location!==!1,n=dk(e),a=()=>n.index(),l=()=>ik(n.line(),n.column(),n.index()),c=l(),d=a(),p={currentType:14,offset:d,startLoc:c,endLoc:c,lastType:14,lastOffset:d,lastStartLoc:c,lastEndLoc:c,braceNest:0,inLinked:!1,text:""},m=()=>p,{onError:b}=t;function w(j,G,le,...Se){const Oe=m();if(G.column+=le,G.offset+=le,b){const Ye=i?gf(Oe.startLoc,G):null,Ue=Po(j,Ye,{domain:fk,args:Se});b(Ue)}}function _(j,G,le){j.endLoc=l(),j.currentType=G;const Se={type:G};return i&&(Se.loc=gf(j.startLoc,j.endLoc)),le!=null&&(Se.value=le),Se}const C=j=>_(j,14);function I(j,G){return j.currentChar()===G?(j.next(),G):(w(Ct.EXPECTED_TOKEN,l(),0,G),"")}function O(j){let G="";for(;j.currentPeek()===kn||j.currentPeek()===is;)G+=j.currentPeek(),j.peek();return G}function M(j){const G=O(j);return j.skipToPeek(),G}function N(j){if(j===sr)return!1;const G=j.charCodeAt(0);return G>=97&&G<=122||G>=65&&G<=90||G===95}function k(j){if(j===sr)return!1;const G=j.charCodeAt(0);return G>=48&&G<=57}function D(j,G){const{currentType:le}=G;if(le!==2)return!1;O(j);const Se=N(j.currentPeek());return j.resetPeek(),Se}function P(j,G){const{currentType:le}=G;if(le!==2)return!1;O(j);const Se=j.currentPeek()==="-"?j.peek():j.currentPeek(),Oe=k(Se);return j.resetPeek(),Oe}function $(j,G){const{currentType:le}=G;if(le!==2)return!1;O(j);const Se=j.currentPeek()===Xm;return j.resetPeek(),Se}function H(j,G){const{currentType:le}=G;if(le!==8)return!1;O(j);const Se=j.currentPeek()===".";return j.resetPeek(),Se}function ee(j,G){const{currentType:le}=G;if(le!==9)return!1;O(j);const Se=N(j.currentPeek());return j.resetPeek(),Se}function se(j,G){const{currentType:le}=G;if(!(le===8||le===12))return!1;O(j);const Se=j.currentPeek()===":";return j.resetPeek(),Se}function Q(j,G){const{currentType:le}=G;if(le!==10)return!1;const Se=()=>{const Ye=j.currentPeek();return Ye==="{"?N(j.peek()):Ye==="@"||Ye==="%"||Ye==="|"||Ye===":"||Ye==="."||Ye===kn||!Ye?!1:Ye===is?(j.peek(),Se()):N(Ye)},Oe=Se();return j.resetPeek(),Oe}function te(j){O(j);const G=j.currentPeek()==="|";return j.resetPeek(),G}function ce(j){const G=O(j),le=j.currentPeek()==="%"&&j.peek()==="{";return j.resetPeek(),{isModulo:le,hasSpace:G.length>0}}function oe(j,G=!0){const le=(Oe=!1,Ye="",Ue=!1)=>{const Xe=j.currentPeek();return Xe==="{"?Ye==="%"?!1:Oe:Xe==="@"||!Xe?Ye==="%"?!0:Oe:Xe==="%"?(j.peek(),le(Oe,"%",!0)):Xe==="|"?Ye==="%"||Ue?!0:!(Ye===kn||Ye===is):Xe===kn?(j.peek(),le(!0,kn,Ue)):Xe===is?(j.peek(),le(!0,is,Ue)):!0},Se=le();return G&&j.resetPeek(),Se}function de(j,G){const le=j.currentChar();return le===sr?sr:G(le)?(j.next(),le):null}function be(j){return de(j,le=>{const Se=le.charCodeAt(0);return Se>=97&&Se<=122||Se>=65&&Se<=90||Se>=48&&Se<=57||Se===95||Se===36})}function Ce(j){return de(j,le=>{const Se=le.charCodeAt(0);return Se>=48&&Se<=57})}function re(j){return de(j,le=>{const Se=le.charCodeAt(0);return Se>=48&&Se<=57||Se>=65&&Se<=70||Se>=97&&Se<=102})}function Z(j){let G="",le="";for(;G=Ce(j);)le+=G;return le}function U(j){M(j);const G=j.currentChar();return G!=="%"&&w(Ct.EXPECTED_TOKEN,l(),0,G),j.next(),"%"}function fe(j){let G="";for(;;){const le=j.currentChar();if(le==="{"||le==="}"||le==="@"||le==="|"||!le)break;if(le==="%")if(oe(j))G+=le,j.next();else break;else if(le===kn||le===is)if(oe(j))G+=le,j.next();else{if(te(j))break;G+=le,j.next()}else G+=le,j.next()}return G}function he(j){M(j);let G="",le="";for(;G=be(j);)le+=G;return j.currentChar()===sr&&w(Ct.UNTERMINATED_CLOSING_BRACE,l(),0),le}function ue(j){M(j);let G="";return j.currentChar()==="-"?(j.next(),G+=`-${Z(j)}`):G+=Z(j),j.currentChar()===sr&&w(Ct.UNTERMINATED_CLOSING_BRACE,l(),0),G}function ve(j){M(j),I(j,"'");let G="",le="";const Se=Ye=>Ye!==Xm&&Ye!==is;for(;G=de(j,Se);)G==="\\"?le+=Re(j):le+=G;const Oe=j.currentChar();return Oe===is||Oe===sr?(w(Ct.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,l(),0),Oe===is&&(j.next(),I(j,"'")),le):(I(j,"'"),le)}function Re(j){const G=j.currentChar();switch(G){case"\\":case"'":return j.next(),`\\${G}`;case"u":return et(j,G,4);case"U":return et(j,G,6);default:return w(Ct.UNKNOWN_ESCAPE_SEQUENCE,l(),0,G),""}}function et(j,G,le){I(j,G);let Se="";for(let Oe=0;OeOe!=="{"&&Oe!=="}"&&Oe!==kn&&Oe!==is;for(;G=de(j,Se);)le+=G;return le}function Fe(j){let G="",le="";for(;G=be(j);)le+=G;return le}function _e(j){const G=(le=!1,Se)=>{const Oe=j.currentChar();return Oe==="{"||Oe==="%"||Oe==="@"||Oe==="|"||Oe==="("||Oe===")"||!Oe||Oe===kn?Se:Oe===is||Oe===hk?(Se+=Oe,j.next(),G(le,Se)):(Se+=Oe,j.next(),G(!0,Se))};return G(!1,"")}function Ie(j){M(j);const G=I(j,"|");return M(j),G}function pe(j,G){let le=null;switch(j.currentChar()){case"{":return G.braceNest>=1&&w(Ct.NOT_ALLOW_NEST_PLACEHOLDER,l(),0),j.next(),le=_(G,2,"{"),M(j),G.braceNest++,le;case"}":return G.braceNest>0&&G.currentType===2&&w(Ct.EMPTY_PLACEHOLDER,l(),0),j.next(),le=_(G,3,"}"),G.braceNest--,G.braceNest>0&&M(j),G.inLinked&&G.braceNest===0&&(G.inLinked=!1),le;case"@":return G.braceNest>0&&w(Ct.UNTERMINATED_CLOSING_BRACE,l(),0),le=xe(j,G)||C(G),G.braceNest=0,le;default:let Oe=!0,Ye=!0,Ue=!0;if(te(j))return G.braceNest>0&&w(Ct.UNTERMINATED_CLOSING_BRACE,l(),0),le=_(G,1,Ie(j)),G.braceNest=0,G.inLinked=!1,le;if(G.braceNest>0&&(G.currentType===5||G.currentType===6||G.currentType===7))return w(Ct.UNTERMINATED_CLOSING_BRACE,l(),0),G.braceNest=0,Te(j,G);if(Oe=D(j,G))return le=_(G,5,he(j)),M(j),le;if(Ye=P(j,G))return le=_(G,6,ue(j)),M(j),le;if(Ue=$(j,G))return le=_(G,7,ve(j)),M(j),le;if(!Oe&&!Ye&&!Ue)return le=_(G,13,Ee(j)),w(Ct.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,le.value),M(j),le;break}return le}function xe(j,G){const{currentType:le}=G;let Se=null;const Oe=j.currentChar();switch((le===8||le===9||le===12||le===10)&&(Oe===is||Oe===kn)&&w(Ct.INVALID_LINKED_FORMAT,l(),0),Oe){case"@":return j.next(),Se=_(G,8,"@"),G.inLinked=!0,Se;case".":return M(j),j.next(),_(G,9,".");case":":return M(j),j.next(),_(G,10,":");default:return te(j)?(Se=_(G,1,Ie(j)),G.braceNest=0,G.inLinked=!1,Se):H(j,G)||se(j,G)?(M(j),xe(j,G)):ee(j,G)?(M(j),_(G,12,Fe(j))):Q(j,G)?(M(j),Oe==="{"?pe(j,G)||Se:_(G,11,_e(j))):(le===8&&w(Ct.INVALID_LINKED_FORMAT,l(),0),G.braceNest=0,G.inLinked=!1,Te(j,G))}}function Te(j,G){let le={type:14};if(G.braceNest>0)return pe(j,G)||C(G);if(G.inLinked)return xe(j,G)||C(G);switch(j.currentChar()){case"{":return pe(j,G)||C(G);case"}":return w(Ct.UNBALANCED_CLOSING_BRACE,l(),0),j.next(),_(G,3,"}");case"@":return xe(j,G)||C(G);default:if(te(j))return le=_(G,1,Ie(j)),G.braceNest=0,G.inLinked=!1,le;const{isModulo:Oe,hasSpace:Ye}=ce(j);if(Oe)return Ye?_(G,0,fe(j)):_(G,4,U(j));if(oe(j))return _(G,0,fe(j));break}return le}function ie(){const{currentType:j,offset:G,startLoc:le,endLoc:Se}=p;return p.lastType=j,p.lastOffset=G,p.lastStartLoc=le,p.lastEndLoc=Se,p.offset=a(),p.startLoc=l(),n.currentChar()===sr?_(p,14):Te(n,p)}return{nextToken:ie,currentOffset:a,currentPosition:l,context:m}}const gk="parser",mk=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function vk(e,t,i){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||i,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function bk(e={}){const t=e.location!==!1,{onError:i}=e;function n(N,k,D,P,...$){const H=N.currentPosition();if(H.offset+=P,H.column+=P,i){const ee=t?gf(D,H):null,se=Po(k,ee,{domain:gk,args:$});i(se)}}function a(N,k,D){const P={type:N};return t&&(P.start=k,P.end=k,P.loc={start:D,end:D}),P}function l(N,k,D,P){P&&(N.type=P),t&&(N.end=k,N.loc&&(N.loc.end=D))}function c(N,k){const D=N.context(),P=a(3,D.offset,D.startLoc);return P.value=k,l(P,N.currentOffset(),N.currentPosition()),P}function d(N,k){const D=N.context(),{lastOffset:P,lastStartLoc:$}=D,H=a(5,P,$);return H.index=parseInt(k,10),N.nextToken(),l(H,N.currentOffset(),N.currentPosition()),H}function p(N,k){const D=N.context(),{lastOffset:P,lastStartLoc:$}=D,H=a(4,P,$);return H.key=k,N.nextToken(),l(H,N.currentOffset(),N.currentPosition()),H}function m(N,k){const D=N.context(),{lastOffset:P,lastStartLoc:$}=D,H=a(9,P,$);return H.value=k.replace(mk,vk),N.nextToken(),l(H,N.currentOffset(),N.currentPosition()),H}function b(N){const k=N.nextToken(),D=N.context(),{lastOffset:P,lastStartLoc:$}=D,H=a(8,P,$);return k.type!==12?(n(N,Ct.UNEXPECTED_EMPTY_LINKED_MODIFIER,D.lastStartLoc,0),H.value="",l(H,P,$),{nextConsumeToken:k,node:H}):(k.value==null&&n(N,Ct.UNEXPECTED_LEXICAL_ANALYSIS,D.lastStartLoc,0,cn(k)),H.value=k.value||"",l(H,N.currentOffset(),N.currentPosition()),{node:H})}function w(N,k){const D=N.context(),P=a(7,D.offset,D.startLoc);return P.value=k,l(P,N.currentOffset(),N.currentPosition()),P}function _(N){const k=N.context(),D=a(6,k.offset,k.startLoc);let P=N.nextToken();if(P.type===9){const $=b(N);D.modifier=$.node,P=$.nextConsumeToken||N.nextToken()}switch(P.type!==10&&n(N,Ct.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,cn(P)),P=N.nextToken(),P.type===2&&(P=N.nextToken()),P.type){case 11:P.value==null&&n(N,Ct.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,cn(P)),D.key=w(N,P.value||"");break;case 5:P.value==null&&n(N,Ct.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,cn(P)),D.key=p(N,P.value||"");break;case 6:P.value==null&&n(N,Ct.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,cn(P)),D.key=d(N,P.value||"");break;case 7:P.value==null&&n(N,Ct.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,cn(P)),D.key=m(N,P.value||"");break;default:n(N,Ct.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const $=N.context(),H=a(7,$.offset,$.startLoc);return H.value="",l(H,$.offset,$.startLoc),D.key=H,l(D,$.offset,$.startLoc),{nextConsumeToken:P,node:D}}return l(D,N.currentOffset(),N.currentPosition()),{node:D}}function C(N){const k=N.context(),D=k.currentType===1?N.currentOffset():k.offset,P=k.currentType===1?k.endLoc:k.startLoc,$=a(2,D,P);$.items=[];let H=null;do{const Q=H||N.nextToken();switch(H=null,Q.type){case 0:Q.value==null&&n(N,Ct.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,cn(Q)),$.items.push(c(N,Q.value||""));break;case 6:Q.value==null&&n(N,Ct.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,cn(Q)),$.items.push(d(N,Q.value||""));break;case 5:Q.value==null&&n(N,Ct.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,cn(Q)),$.items.push(p(N,Q.value||""));break;case 7:Q.value==null&&n(N,Ct.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,cn(Q)),$.items.push(m(N,Q.value||""));break;case 8:const te=_(N);$.items.push(te.node),H=te.nextConsumeToken||null;break}}while(k.currentType!==14&&k.currentType!==1);const ee=k.currentType===1?k.lastOffset:N.currentOffset(),se=k.currentType===1?k.lastEndLoc:N.currentPosition();return l($,ee,se),$}function I(N,k,D,P){const $=N.context();let H=P.items.length===0;const ee=a(1,k,D);ee.cases=[],ee.cases.push(P);do{const se=C(N);H||(H=se.items.length===0),ee.cases.push(se)}while($.currentType!==14);return H&&n(N,Ct.MUST_HAVE_MESSAGES_IN_PLURAL,D,0),l(ee,N.currentOffset(),N.currentPosition()),ee}function O(N){const k=N.context(),{offset:D,startLoc:P}=k,$=C(N);return k.currentType===14?$:I(N,D,P,$)}function M(N){const k=pk(N,E0({},e)),D=k.context(),P=a(0,D.offset,D.startLoc);return t&&P.loc&&(P.loc.source=N),P.body=O(k),e.onCacheKey&&(P.cacheKey=e.onCacheKey(N)),D.currentType!==14&&n(k,Ct.UNEXPECTED_LEXICAL_ANALYSIS,D.lastStartLoc,0,N[D.offset]||""),l(P,k.currentOffset(),k.currentPosition()),P}return{parse:M}}function cn(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function yk(e,t={}){const i={ast:e,helpers:new Set};return{context:()=>i,helper:l=>(i.helpers.add(l),l)}}function Gm(e,t){for(let i=0;iUm(i)),e}function Um(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let i=0;id;function m(M,N){d.code+=M}function b(M,N=!0){const k=N?a:"";m(l?k+" ".repeat(M):k)}function w(M=!0){const N=++d.indentLevel;M&&b(N)}function _(M=!0){const N=--d.indentLevel;M&&b(N)}function C(){b(d.indentLevel)}return{context:p,push:m,indent:w,deindent:_,newline:C,helper:M=>`_${M}`,needIndent:()=>d.needIndent}}function Ck(e,t){const{helper:i}=e;e.push(`${i("linked")}(`),lo(e,t.key),t.modifier?(e.push(", "),lo(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Ak(e,t){const{helper:i,needIndent:n}=e;e.push(`${i("normalize")}([`),e.indent(n());const a=t.items.length;for(let l=0;l1){e.push(`${i("plural")}([`),e.indent(n());const a=t.cases.length;for(let l=0;l{const i=jm(t.mode)?t.mode:"normal",n=jm(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,l=t.breakLineCode!=null?t.breakLineCode:i==="arrow"?";":` -`,c=t.needIndent?t.needIndent:i!=="arrow",d=e.helpers||[],p=Ek(e,{mode:i,filename:n,sourceMap:a,breakLineCode:l,needIndent:c});p.push(i==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),p.indent(c),d.length>0&&(p.push(`const { ${C0(d.map(w=>`${w}: _${w}`),", ")} } = ctx`),p.newline()),p.push("return "),lo(p,e),p.deindent(c),p.push("}"),delete e.helpers;const{code:m,map:b}=p.context();return{ast:e,code:m,map:b?b.toJSON():void 0}};function Ok(e,t={}){const i=E0({},t),n=!!i.jit,a=!!i.minify,l=i.optimize==null?!0:i.optimize,d=bk(i).parse(e);return n?(l&&wk(d),a&&Ha(d),{ast:d,code:""}):(xk(d,i),Ik(d,i))}/*! - * core-base v9.4.1 - * (c) 2023 kazuya kawaguchi - * Released under the MIT License. - */function Pk(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&($n().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&($n().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&($n().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Vr=[];Vr[0]={w:[0],i:[3,0],"[":[4],o:[7]};Vr[1]={w:[1],".":[2],"[":[4],o:[7]};Vr[2]={w:[2],i:[3,0],0:[3,0]};Vr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Vr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Vr[5]={"'":[4,0],o:8,l:[5,0]};Vr[6]={'"':[4,0],o:8,l:[6,0]};const Lk=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Mk(e){return Lk.test(e)}function Nk(e){const t=e.charCodeAt(0),i=e.charCodeAt(e.length-1);return t===i&&(t===34||t===39)?e.slice(1,-1):e}function Rk(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Dk(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Mk(t)?Nk(t):"*"+t}function $k(e){const t=[];let i=-1,n=0,a=0,l,c,d,p,m,b,w;const _=[];_[0]=()=>{c===void 0?c=d:c+=d},_[1]=()=>{c!==void 0&&(t.push(c),c=void 0)},_[2]=()=>{_[0](),a++},_[3]=()=>{if(a>0)a--,n=4,_[0]();else{if(a=0,c===void 0||(c=Dk(c),c===!1))return!1;_[1]()}};function C(){const I=e[i+1];if(n===5&&I==="'"||n===6&&I==='"')return i++,d="\\"+I,_[0](),!0}for(;n!==null;)if(i++,l=e[i],!(l==="\\"&&C())){if(p=Rk(l),w=Vr[n],m=w[p]||w.l||8,m===8||(n=m[0],m[1]!==void 0&&(b=_[m[1]],b&&(d=l,b()===!1))))return;if(n===7)return t}}const Km=new Map;function Fk(e,t){return ri(e)?e[t]:null}function zk(e,t){if(!ri(e))return null;let i=Km.get(t);if(i||(i=$k(t),i&&Km.set(t,i)),!i)return null;const n=i.length;let a=e,l=0;for(;le,Vk=e=>"",Bk="text",Wk=e=>e.length===0?"":ek(e),Yk=QA;function qm(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function jk(e){const t=Di(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Di(e.named.count)||Di(e.named.n))?Di(e.named.count)?e.named.count:Di(e.named.n)?e.named.n:t:t}function Xk(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Gk(e={}){const t=e.locale,i=jk(e),n=ri(e.pluralRules)&&at(t)&&Li(e.pluralRules[t])?e.pluralRules[t]:qm,a=ri(e.pluralRules)&&at(t)&&Li(e.pluralRules[t])?qm:void 0,l=N=>N[n(i,N.length,a)],c=e.list||[],d=N=>c[N],p=e.named||{};Di(e.pluralIndex)&&Xk(i,p);const m=N=>p[N];function b(N){const k=Li(e.messages)?e.messages(N):ri(e.messages)?e.messages[N]:!1;return k||(e.parent?e.parent.message(N):Vk)}const w=N=>e.modifiers?e.modifiers[N]:Hk,_=Ot(e.processor)&&Li(e.processor.normalize)?e.processor.normalize:Wk,C=Ot(e.processor)&&Li(e.processor.interpolate)?e.processor.interpolate:Yk,I=Ot(e.processor)&&at(e.processor.type)?e.processor.type:Bk,M={list:d,named:m,plural:l,linked:(N,...k)=>{const[D,P]=k;let $="text",H="";k.length===1?ri(D)?(H=D.modifier||H,$=D.type||$):at(D)&&(H=D||H):k.length===2&&(at(D)&&(H=D||H),at(P)&&($=P||$));const ee=b(N)(M),se=$==="vnode"&&fi(ee)&&H?ee[0]:ee;return H?w(H)(se,$):se},message:b,type:I,interpolate:C,normalize:_,values:Xi({},c,p)};return M}let $l=null;function Uk(e){$l=e}function Kk(e,t,i){$l&&$l.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:i})}const qk=Zk("function:translate");function Zk(e){return t=>$l&&$l.emit(e,t)}const Jk={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8};function Qk(e,t,i){return[...new Set([i,...fi(t)?t:ri(t)?Object.keys(t):at(t)?[t]:[i]])]}function A0(e,t,i){const n=at(i)?i:Jl,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let l=a.__localeChainCache.get(n);if(!l){l=[];let c=[i];for(;fi(c);)c=Zm(l,c,t);const d=fi(t)||!Ot(t)?t:t.default?t.default:null;c=at(d)?[d]:d,fi(c)&&Zm(l,c,!1),a.__localeChainCache.set(n,l)}return l}function Zm(e,t,i){let n=!0;for(let a=0;a`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function sT(){return{upper:(e,t)=>t==="text"&&at(e)?e.toUpperCase():t==="vnode"&&ri(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&at(e)?e.toLowerCase():t==="vnode"&&ri(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&at(e)?Qm(e):t==="vnode"&&ri(e)&&"__v_isVNode"in e?Qm(e.children):e}}let k0;function ev(e){k0=e}let T0;function nT(e){T0=e}let I0;function rT(e){I0=e}let O0=null;const tv=e=>{O0=e},aT=()=>O0;let P0=null;const iv=e=>{P0=e},oT=()=>P0;let sv=0;function lT(e={}){const t=Li(e.onWarn)?e.onWarn:tk,i=at(e.version)?e.version:iT,n=at(e.locale)?e.locale:Jl,a=fi(e.fallbackLocale)||Ot(e.fallbackLocale)||at(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,l=Ot(e.messages)?e.messages:{[n]:{}},c=Ot(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},d=Ot(e.numberFormats)?e.numberFormats:{[n]:{}},p=Xi({},e.modifiers||{},sT()),m=e.pluralRules||{},b=Li(e.missing)?e.missing:null,w=Xt(e.missingWarn)||Lr(e.missingWarn)?e.missingWarn:!0,_=Xt(e.fallbackWarn)||Lr(e.fallbackWarn)?e.fallbackWarn:!0,C=!!e.fallbackFormat,I=!!e.unresolving,O=Li(e.postTranslation)?e.postTranslation:null,M=Ot(e.processor)?e.processor:null,N=Xt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,k=!!e.escapeParameter,D=Li(e.messageCompiler)?e.messageCompiler:k0,P=Li(e.messageResolver)?e.messageResolver:T0||Fk,$=Li(e.localeFallbacker)?e.localeFallbacker:I0||Qk,H=ri(e.fallbackContext)?e.fallbackContext:void 0,ee=e,se=ri(ee.__datetimeFormatters)?ee.__datetimeFormatters:new Map,Q=ri(ee.__numberFormatters)?ee.__numberFormatters:new Map,te=ri(ee.__meta)?ee.__meta:{};sv++;const ce={version:i,cid:sv,locale:n,fallbackLocale:a,messages:l,modifiers:p,pluralRules:m,missing:b,missingWarn:w,fallbackWarn:_,fallbackFormat:C,unresolving:I,postTranslation:O,processor:M,warnHtmlMessage:N,escapeParameter:k,messageCompiler:D,messageResolver:P,localeFallbacker:$,fallbackContext:H,onWarn:t,__meta:te};return ce.datetimeFormats=c,ce.numberFormats=d,ce.__datetimeFormatters=se,ce.__numberFormatters=Q,__INTLIFY_PROD_DEVTOOLS__&&Kk(ce,i,te),ce}function Yp(e,t,i,n,a){const{missing:l,onWarn:c}=e;if(l!==null){const d=l(e,i,t,a);return at(d)?d:t}else return t}function Bo(e,t,i){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,i,t)}function nh(e){return i=>cT(i,e)}function cT(e,t){const i=t.b||t.body;if((i.t||i.type)===1){const n=i,a=n.c||n.cases;return e.plural(a.reduce((l,c)=>[...l,nv(e,c)],[]))}else return nv(e,i)}function nv(e,t){const i=t.s||t.static;if(i)return e.type==="text"?i:e.normalize([i]);{const n=(t.i||t.items).reduce((a,l)=>[...a,mf(e,l)],[]);return e.normalize(n)}}function mf(e,t){const i=t.t||t.type;switch(i){case 3:const n=t;return n.v||n.value;case 9:const a=t;return a.v||a.value;case 4:const l=t;return e.interpolate(e.named(l.k||l.key));case 5:const c=t;return e.interpolate(e.list(c.i||c.index));case 6:const d=t,p=d.m||d.modifier;return e.linked(mf(e,d.k||d.key),p?mf(e,p):void 0,e.type);case 7:const m=t;return m.v||m.value;case 8:const b=t;return b.v||b.value;default:throw new Error(`unhandled node type on format message part: ${i}`)}}const L0=Ct.__EXTEND_POINT__,Pc=Bp(L0),yr={INVALID_ARGUMENT:L0,INVALID_DATE_ARGUMENT:Pc(),INVALID_ISO_DATE_ARGUMENT:Pc(),NOT_SUPPORT_NON_STRING_MESSAGE:Pc(),__EXTEND_POINT__:Pc()};function na(e){return Po(e,null,void 0)}const M0=e=>e;let Xa=Object.create(null);const Fl=e=>ri(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function N0(e,t={}){let i=!1;const n=t.onError||ok;return t.onError=a=>{i=!0,n(a)},{...Ok(e,t),detectError:i}}const uT=(e,t)=>{if(!at(e))throw na(yr.NOT_SUPPORT_NON_STRING_MESSAGE);{Xt(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||M0)(e),a=Xa[n];if(a)return a;const{code:l,detectError:c}=N0(e,t),d=new Function(`return ${l}`)();return c?d:Xa[n]=d}};function dT(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&at(e)){Xt(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||M0)(e),a=Xa[n];if(a)return a;const{ast:l,detectError:c}=N0(e,{...t,location:!1,jit:!0}),d=nh(l);return c?d:Xa[n]=d}else{const i=e.cacheKey;if(i){const n=Xa[i];return n||(Xa[i]=nh(e))}else return nh(e)}}const rv=()=>"",Qs=e=>Li(e);function av(e,...t){const{fallbackFormat:i,postTranslation:n,unresolving:a,messageCompiler:l,fallbackLocale:c,messages:d}=e,[p,m]=vf(...t),b=Xt(m.missingWarn)?m.missingWarn:e.missingWarn,w=Xt(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,_=Xt(m.escapeParameter)?m.escapeParameter:e.escapeParameter,C=!!m.resolvedMessage,I=at(m.default)||Xt(m.default)?Xt(m.default)?l?p:()=>p:m.default:i?l?p:()=>p:"",O=i||I!=="",M=at(m.locale)?m.locale:e.locale;_&&hT(m);let[N,k,D]=C?[p,M,d[M]||{}]:R0(e,p,M,c,w,b),P=N,$=p;if(!C&&!(at(P)||Fl(P)||Qs(P))&&O&&(P=I,$=P),!C&&(!(at(P)||Fl(P)||Qs(P))||!at(k)))return a?vd:p;let H=!1;const ee=()=>{H=!0},se=Qs(P)?P:D0(e,p,k,P,$,ee);if(H)return P;const Q=gT(e,k,D,m),te=Gk(Q),ce=fT(e,se,te),oe=n?n(ce,p):ce;if(__INTLIFY_PROD_DEVTOOLS__){const de={timestamp:Date.now(),key:at(p)?p:Qs(P)?P.key:"",locale:k||(Qs(P)?P.locale:""),format:at(P)?P:Qs(P)?P.source:"",message:oe};de.meta=Xi({},e.__meta,aT()||{}),qk(de)}return oe}function hT(e){fi(e.list)?e.list=e.list.map(t=>at(t)?Ym(t):t):ri(e.named)&&Object.keys(e.named).forEach(t=>{at(e.named[t])&&(e.named[t]=Ym(e.named[t]))})}function R0(e,t,i,n,a,l){const{messages:c,onWarn:d,messageResolver:p,localeFallbacker:m}=e,b=m(e,n,i);let w={},_,C=null;const I="translate";for(let O=0;On;return m.locale=i,m.key=t,m}const p=c(n,pT(e,i,a,n,d,l));return p.locale=i,p.key=t,p.source=n,p}function fT(e,t,i){return t(i)}function vf(...e){const[t,i,n]=e,a={};if(!at(t)&&!Di(t)&&!Qs(t)&&!Fl(t))throw na(yr.INVALID_ARGUMENT);const l=Di(t)?String(t):(Qs(t),t);return Di(i)?a.plural=i:at(i)?a.default=i:Ot(i)&&!md(i)?a.named=i:fi(i)&&(a.list=i),Di(n)?a.plural=n:at(n)?a.default=n:Ot(n)&&Xi(a,n),[l,a]}function pT(e,t,i,n,a,l){return{locale:t,key:i,warnHtmlMessage:a,onError:c=>{throw l&&l(c),c},onCacheKey:c=>KA(t,i,c)}}function gT(e,t,i,n){const{modifiers:a,pluralRules:l,messageResolver:c,fallbackLocale:d,fallbackWarn:p,missingWarn:m,fallbackContext:b}=e,_={locale:t,modifiers:a,pluralRules:l,messages:C=>{let I=c(i,C);if(I==null&&b){const[,,O]=R0(b,C,t,d,p,m);I=c(O,C)}if(at(I)||Fl(I)){let O=!1;const N=D0(e,C,t,I,C,()=>{O=!0});return O?rv:N}else return Qs(I)?I:rv}};return e.processor&&(_.processor=e.processor),n.list&&(_.list=n.list),n.named&&(_.named=n.named),Di(n.plural)&&(_.pluralIndex=n.plural),_}function ov(e,...t){const{datetimeFormats:i,unresolving:n,fallbackLocale:a,onWarn:l,localeFallbacker:c}=e,{__datetimeFormatters:d}=e,[p,m,b,w]=bf(...t),_=Xt(b.missingWarn)?b.missingWarn:e.missingWarn;Xt(b.fallbackWarn)?b.fallbackWarn:e.fallbackWarn;const C=!!b.part,I=at(b.locale)?b.locale:e.locale,O=c(e,a,I);if(!at(p)||p==="")return new Intl.DateTimeFormat(I,w).format(m);let M={},N,k=null;const D="datetime format";for(let H=0;H{$0.includes(p)?c[p]=i[p]:l[p]=i[p]}),at(n)?l.locale=n:Ot(n)&&(c=n),Ot(a)&&(c=a),[l.key||"",d,l,c]}function lv(e,t,i){const n=e;for(const a in i){const l=`${t}__${a}`;n.__datetimeFormatters.has(l)&&n.__datetimeFormatters.delete(l)}}function cv(e,...t){const{numberFormats:i,unresolving:n,fallbackLocale:a,onWarn:l,localeFallbacker:c}=e,{__numberFormatters:d}=e,[p,m,b,w]=yf(...t),_=Xt(b.missingWarn)?b.missingWarn:e.missingWarn;Xt(b.fallbackWarn)?b.fallbackWarn:e.fallbackWarn;const C=!!b.part,I=at(b.locale)?b.locale:e.locale,O=c(e,a,I);if(!at(p)||p==="")return new Intl.NumberFormat(I,w).format(m);let M={},N,k=null;const D="number format";for(let H=0;H{F0.includes(p)?c[p]=i[p]:l[p]=i[p]}),at(n)?l.locale=n:Ot(n)&&(c=n),Ot(a)&&(c=a),[l.key||"",d,l,c]}function uv(e,t,i){const n=e;for(const a in i){const l=`${t}__${a}`;n.__numberFormatters.has(l)&&n.__numberFormatters.delete(l)}}Pk();/*! - * vue-i18n v9.4.1 - * (c) 2023 kazuya kawaguchi - * Released under the MIT License. - */const mT="9.4.1";function vT(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&($n().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&($n().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&($n().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&($n().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&($n().__INTLIFY_PROD_DEVTOOLS__=!1)}const z0=Jk.__EXTEND_POINT__,nr=Bp(z0);nr(),nr(),nr(),nr(),nr(),nr(),nr(),nr();const H0=yr.__EXTEND_POINT__,us=Bp(H0),Ni={UNEXPECTED_RETURN_TYPE:H0,INVALID_ARGUMENT:us(),MUST_BE_CALL_SETUP_TOP:us(),NOT_INSTALLED:us(),NOT_AVAILABLE_IN_LEGACY_MODE:us(),REQUIRED_VALUE:us(),INVALID_VALUE:us(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:us(),NOT_INSTALLED_WITH_PROVIDE:us(),UNEXPECTED_ERROR:us(),NOT_COMPATIBLE_LEGACY_VUE_I18N:us(),BRIDGE_SUPPORT_VUE_2_ONLY:us(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:us(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:us(),__EXTEND_POINT__:us()};function $i(e,...t){return Po(e,null,void 0)}const xf=Hr("__translateVNode"),wf=Hr("__datetimeParts"),_f=Hr("__numberParts"),V0=Hr("__setPluralRules"),B0=Hr("__injectWithOption"),Sf=Hr("__dispose");function Ef(e){if(!ri(e))return e;for(const t in e)if(Vp(e,t))if(!t.includes("."))ri(e[t])&&Ef(e[t]);else{const i=t.split("."),n=i.length-1;let a=e,l=!1;for(let c=0;c{if("locale"in d&&"resource"in d){const{locale:p,resource:m}=d;p?(c[p]=c[p]||{},hl(m,c[p])):hl(m,c)}else at(d)&&hl(JSON.parse(d),c)}),a==null&&l)for(const d in c)Vp(c,d)&&Ef(c[d]);return c}const Lc=e=>!ri(e)||fi(e);function hl(e,t){if(Lc(e)||Lc(t))throw $i(Ni.INVALID_VALUE);for(const i in e)Vp(e,i)&&(Lc(e[i])||Lc(t[i])?t[i]=e[i]:hl(e[i],t[i]))}function W0(e){return e.type}function Y0(e,t,i){let n=ri(t.messages)?t.messages:{};"__i18nGlobal"in i&&(n=bd(e.locale.value,{messages:n,__i18n:i.__i18nGlobal}));const a=Object.keys(n);a.length&&a.forEach(l=>{e.mergeLocaleMessage(l,n[l])});{if(ri(t.datetimeFormats)){const l=Object.keys(t.datetimeFormats);l.length&&l.forEach(c=>{e.mergeDateTimeFormat(c,t.datetimeFormats[c])})}if(ri(t.numberFormats)){const l=Object.keys(t.numberFormats);l.length&&l.forEach(c=>{e.mergeNumberFormat(c,t.numberFormats[c])})}}}function dv(e){return Me(Tr,null,e,0)}const hv="__INTLIFY_META__";let fv=0;function pv(e){return(t,i,n,a)=>e(i,n,Gi()||void 0,a)}const bT=()=>{const e=Gi();let t=null;return e&&(t=W0(e)[hv])?{[hv]:t}:null};function jp(e={},t){const{__root:i,__injectWithOption:n}=e,a=i===void 0;let l=Xt(e.inheritLocale)?e.inheritLocale:!0;const c=ye(i&&l?i.locale.value:at(e.locale)?e.locale:Jl),d=ye(i&&l?i.fallbackLocale.value:at(e.fallbackLocale)||fi(e.fallbackLocale)||Ot(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),p=ye(bd(c.value,e)),m=ye(Ot(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),b=ye(Ot(e.numberFormats)?e.numberFormats:{[c.value]:{}});let w=i?i.missingWarn:Xt(e.missingWarn)||Lr(e.missingWarn)?e.missingWarn:!0,_=i?i.fallbackWarn:Xt(e.fallbackWarn)||Lr(e.fallbackWarn)?e.fallbackWarn:!0,C=i?i.fallbackRoot:Xt(e.fallbackRoot)?e.fallbackRoot:!0,I=!!e.fallbackFormat,O=Li(e.missing)?e.missing:null,M=Li(e.missing)?pv(e.missing):null,N=Li(e.postTranslation)?e.postTranslation:null,k=i?i.warnHtmlMessage:Xt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,D=!!e.escapeParameter;const P=i?i.modifiers:Ot(e.modifiers)?e.modifiers:{};let $=e.pluralRules||i&&i.pluralRules,H;H=(()=>{a&&iv(null);const Ae={version:mT,locale:c.value,fallbackLocale:d.value,messages:p.value,modifiers:P,pluralRules:$,missing:M===null?void 0:M,missingWarn:w,fallbackWarn:_,fallbackFormat:I,unresolving:!0,postTranslation:N===null?void 0:N,warnHtmlMessage:k,escapeParameter:D,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};Ae.datetimeFormats=m.value,Ae.numberFormats=b.value,Ae.__datetimeFormatters=Ot(H)?H.__datetimeFormatters:void 0,Ae.__numberFormatters=Ot(H)?H.__numberFormatters:void 0;const De=lT(Ae);return a&&iv(De),De})(),Bo(H,c.value,d.value);function se(){return[c.value,d.value,p.value,m.value,b.value]}const Q=we({get:()=>c.value,set:Ae=>{c.value=Ae,H.locale=c.value}}),te=we({get:()=>d.value,set:Ae=>{d.value=Ae,H.fallbackLocale=d.value,Bo(H,c.value,Ae)}}),ce=we(()=>p.value),oe=we(()=>m.value),de=we(()=>b.value);function be(){return Li(N)?N:null}function Ce(Ae){N=Ae,H.postTranslation=Ae}function re(){return O}function Z(Ae){Ae!==null&&(M=pv(Ae)),O=Ae,H.missing=M}const U=(Ae,De,ot,ct,Pt,kt)=>{se();let ke;try{__INTLIFY_PROD_DEVTOOLS__&&tv(bT()),a||(H.fallbackContext=i?oT():void 0),ke=Ae(H)}finally{__INTLIFY_PROD_DEVTOOLS__&&tv(null),a||(H.fallbackContext=void 0)}if(Di(ke)&&ke===vd){const[Pe,ze]=De();return i&&C?ct(i):Pt(Pe)}else{if(kt(ke))return ke;throw $i(Ni.UNEXPECTED_RETURN_TYPE)}};function fe(...Ae){return U(De=>Reflect.apply(av,null,[De,...Ae]),()=>vf(...Ae),"translate",De=>Reflect.apply(De.t,De,[...Ae]),De=>De,De=>at(De))}function he(...Ae){const[De,ot,ct]=Ae;if(ct&&!ri(ct))throw $i(Ni.INVALID_ARGUMENT);return fe(De,ot,Xi({resolvedMessage:!0},ct||{}))}function ue(...Ae){return U(De=>Reflect.apply(ov,null,[De,...Ae]),()=>bf(...Ae),"datetime format",De=>Reflect.apply(De.d,De,[...Ae]),()=>Jm,De=>at(De))}function ve(...Ae){return U(De=>Reflect.apply(cv,null,[De,...Ae]),()=>yf(...Ae),"number format",De=>Reflect.apply(De.n,De,[...Ae]),()=>Jm,De=>at(De))}function Re(Ae){return Ae.map(De=>at(De)||Di(De)||Xt(De)?dv(String(De)):De)}const Ee={normalize:Re,interpolate:Ae=>Ae,type:"vnode"};function Fe(...Ae){return U(De=>{let ot;const ct=De;try{ct.processor=Ee,ot=Reflect.apply(av,null,[ct,...Ae])}finally{ct.processor=null}return ot},()=>vf(...Ae),"translate",De=>De[xf](...Ae),De=>[dv(De)],De=>fi(De))}function _e(...Ae){return U(De=>Reflect.apply(cv,null,[De,...Ae]),()=>yf(...Ae),"number format",De=>De[_f](...Ae),()=>[],De=>at(De)||fi(De))}function Ie(...Ae){return U(De=>Reflect.apply(ov,null,[De,...Ae]),()=>bf(...Ae),"datetime format",De=>De[wf](...Ae),()=>[],De=>at(De)||fi(De))}function pe(Ae){$=Ae,H.pluralRules=$}function xe(Ae,De){const ot=at(De)?De:c.value,ct=j(ot);return H.messageResolver(ct,Ae)!==null}function Te(Ae){let De=null;const ot=A0(H,d.value,c.value);for(let ct=0;ct{l&&(c.value=Ae,H.locale=Ae,Bo(H,c.value,d.value))}),nt(i.fallbackLocale,Ae=>{l&&(d.value=Ae,H.fallbackLocale=Ae,Bo(H,c.value,d.value))}));const Je={id:fv,locale:Q,fallbackLocale:te,get inheritLocale(){return l},set inheritLocale(Ae){l=Ae,Ae&&i&&(c.value=i.locale.value,d.value=i.fallbackLocale.value,Bo(H,c.value,d.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:ce,get modifiers(){return P},get pluralRules(){return $||{}},get isGlobal(){return a},get missingWarn(){return w},set missingWarn(Ae){w=Ae,H.missingWarn=w},get fallbackWarn(){return _},set fallbackWarn(Ae){_=Ae,H.fallbackWarn=_},get fallbackRoot(){return C},set fallbackRoot(Ae){C=Ae},get fallbackFormat(){return I},set fallbackFormat(Ae){I=Ae,H.fallbackFormat=I},get warnHtmlMessage(){return k},set warnHtmlMessage(Ae){k=Ae,H.warnHtmlMessage=Ae},get escapeParameter(){return D},set escapeParameter(Ae){D=Ae,H.escapeParameter=Ae},t:fe,getLocaleMessage:j,setLocaleMessage:G,mergeLocaleMessage:le,getPostTranslationHandler:be,setPostTranslationHandler:Ce,getMissingHandler:re,setMissingHandler:Z,[V0]:pe};return Je.datetimeFormats=oe,Je.numberFormats=de,Je.rt=he,Je.te=xe,Je.tm=ie,Je.d=ue,Je.n=ve,Je.getDateTimeFormat=Se,Je.setDateTimeFormat=Oe,Je.mergeDateTimeFormat=Ye,Je.getNumberFormat=Ue,Je.setNumberFormat=Xe,Je.mergeNumberFormat=Ve,Je[B0]=n,Je[xf]=Fe,Je[wf]=Ie,Je[_f]=_e,Je}function yT(e){const t=at(e.locale)?e.locale:Jl,i=at(e.fallbackLocale)||fi(e.fallbackLocale)||Ot(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,n=Li(e.missing)?e.missing:void 0,a=Xt(e.silentTranslationWarn)||Lr(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,l=Xt(e.silentFallbackWarn)||Lr(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,c=Xt(e.fallbackRoot)?e.fallbackRoot:!0,d=!!e.formatFallbackMessages,p=Ot(e.modifiers)?e.modifiers:{},m=e.pluralizationRules,b=Li(e.postTranslation)?e.postTranslation:void 0,w=at(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,_=!!e.escapeParameterHtml,C=Xt(e.sync)?e.sync:!0;let I=e.messages;if(Ot(e.sharedMessages)){const $=e.sharedMessages;I=Object.keys($).reduce((ee,se)=>{const Q=ee[se]||(ee[se]={});return Xi(Q,$[se]),ee},I||{})}const{__i18n:O,__root:M,__injectWithOption:N}=e,k=e.datetimeFormats,D=e.numberFormats,P=e.flatJson;return{locale:t,fallbackLocale:i,messages:I,flatJson:P,datetimeFormats:k,numberFormats:D,missing:n,missingWarn:a,fallbackWarn:l,fallbackRoot:c,fallbackFormat:d,modifiers:p,pluralRules:m,postTranslation:b,warnHtmlMessage:w,escapeParameter:_,messageResolver:e.messageResolver,inheritLocale:C,__i18n:O,__root:M,__injectWithOption:N}}function Cf(e={},t){{const i=jp(yT(e)),{__extender:n}=e,a={id:i.id,get locale(){return i.locale.value},set locale(l){i.locale.value=l},get fallbackLocale(){return i.fallbackLocale.value},set fallbackLocale(l){i.fallbackLocale.value=l},get messages(){return i.messages.value},get datetimeFormats(){return i.datetimeFormats.value},get numberFormats(){return i.numberFormats.value},get availableLocales(){return i.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(l){},get missing(){return i.getMissingHandler()},set missing(l){i.setMissingHandler(l)},get silentTranslationWarn(){return Xt(i.missingWarn)?!i.missingWarn:i.missingWarn},set silentTranslationWarn(l){i.missingWarn=Xt(l)?!l:l},get silentFallbackWarn(){return Xt(i.fallbackWarn)?!i.fallbackWarn:i.fallbackWarn},set silentFallbackWarn(l){i.fallbackWarn=Xt(l)?!l:l},get modifiers(){return i.modifiers},get formatFallbackMessages(){return i.fallbackFormat},set formatFallbackMessages(l){i.fallbackFormat=l},get postTranslation(){return i.getPostTranslationHandler()},set postTranslation(l){i.setPostTranslationHandler(l)},get sync(){return i.inheritLocale},set sync(l){i.inheritLocale=l},get warnHtmlInMessage(){return i.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(l){i.warnHtmlMessage=l!=="off"},get escapeParameterHtml(){return i.escapeParameter},set escapeParameterHtml(l){i.escapeParameter=l},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(l){},get pluralizationRules(){return i.pluralRules||{}},__composer:i,t(...l){const[c,d,p]=l,m={};let b=null,w=null;if(!at(c))throw $i(Ni.INVALID_ARGUMENT);const _=c;return at(d)?m.locale=d:fi(d)?b=d:Ot(d)&&(w=d),fi(p)?b=p:Ot(p)&&(w=p),Reflect.apply(i.t,i,[_,b||w||{},m])},rt(...l){return Reflect.apply(i.rt,i,[...l])},tc(...l){const[c,d,p]=l,m={plural:1};let b=null,w=null;if(!at(c))throw $i(Ni.INVALID_ARGUMENT);const _=c;return at(d)?m.locale=d:Di(d)?m.plural=d:fi(d)?b=d:Ot(d)&&(w=d),at(p)?m.locale=p:fi(p)?b=p:Ot(p)&&(w=p),Reflect.apply(i.t,i,[_,b||w||{},m])},te(l,c){return i.te(l,c)},tm(l){return i.tm(l)},getLocaleMessage(l){return i.getLocaleMessage(l)},setLocaleMessage(l,c){i.setLocaleMessage(l,c)},mergeLocaleMessage(l,c){i.mergeLocaleMessage(l,c)},d(...l){return Reflect.apply(i.d,i,[...l])},getDateTimeFormat(l){return i.getDateTimeFormat(l)},setDateTimeFormat(l,c){i.setDateTimeFormat(l,c)},mergeDateTimeFormat(l,c){i.mergeDateTimeFormat(l,c)},n(...l){return Reflect.apply(i.n,i,[...l])},getNumberFormat(l){return i.getNumberFormat(l)},setNumberFormat(l,c){i.setNumberFormat(l,c)},mergeNumberFormat(l,c){i.mergeNumberFormat(l,c)},getChoiceIndex(l,c){return-1}};return a.__extender=n,a}}const Xp={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function xT({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,a)=>[...n,...a.type===Qe?a.children:[a]],[]):t.reduce((i,n)=>{const a=e[n];return a&&(i[n]=a()),i},{})}function j0(e){return Qe}const wT=Ke({name:"i18n-t",props:Xi({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Di(e)||!isNaN(e)}},Xp),setup(e,t){const{slots:i,attrs:n}=t,a=e.i18n||yd({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(i).filter(w=>w!=="_"),c={};e.locale&&(c.locale=e.locale),e.plural!==void 0&&(c.plural=at(e.plural)?+e.plural:e.plural);const d=xT(t,l),p=a[xf](e.keypath,d,c),m=Xi({},n),b=at(e.tag)||ri(e.tag)?e.tag:j0();return zr(b,m,p)}}}),gv=wT;function _T(e){return fi(e)&&!at(e[0])}function X0(e,t,i,n){const{slots:a,attrs:l}=t;return()=>{const c={part:!0};let d={};e.locale&&(c.locale=e.locale),at(e.format)?c.key=e.format:ri(e.format)&&(at(e.format.key)&&(c.key=e.format.key),d=Object.keys(e.format).reduce((_,C)=>i.includes(C)?Xi({},_,{[C]:e.format[C]}):_,{}));const p=n(e.value,c,d);let m=[c.key];fi(p)?m=p.map((_,C)=>{const I=a[_.type],O=I?I({[_.type]:_.value,index:C,parts:p}):[_.value];return _T(O)&&(O[0].key=`${_.type}-${C}`),O}):at(p)&&(m=[p]);const b=Xi({},l),w=at(e.tag)||ri(e.tag)?e.tag:j0();return zr(w,b,m)}}const ST=Ke({name:"i18n-n",props:Xi({value:{type:Number,required:!0},format:{type:[String,Object]}},Xp),setup(e,t){const i=e.i18n||yd({useScope:"parent",__useComponent:!0});return X0(e,t,F0,(...n)=>i[_f](...n))}}),mv=ST,ET=Ke({name:"i18n-d",props:Xi({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Xp),setup(e,t){const i=e.i18n||yd({useScope:"parent",__useComponent:!0});return X0(e,t,$0,(...n)=>i[wf](...n))}}),vv=ET;function CT(e,t){const i=e;if(e.mode==="composition")return i.__getInstance(t)||e.global;{const n=i.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function AT(e){const t=c=>{const{instance:d,modifiers:p,value:m}=c;if(!d||!d.$)throw $i(Ni.UNEXPECTED_ERROR);const b=CT(e,d.$),w=bv(m);return[Reflect.apply(b.t,b,[...yv(w)]),b]};return{created:(c,d)=>{const[p,m]=t(d);pf&&e.global===m&&(c.__i18nWatcher=nt(m.locale,()=>{d.instance&&d.instance.$forceUpdate()})),c.__composer=m,c.textContent=p},unmounted:c=>{pf&&c.__i18nWatcher&&(c.__i18nWatcher(),c.__i18nWatcher=void 0,delete c.__i18nWatcher),c.__composer&&(c.__composer=void 0,delete c.__composer)},beforeUpdate:(c,{value:d})=>{if(c.__composer){const p=c.__composer,m=bv(d);c.textContent=Reflect.apply(p.t,p,[...yv(m)])}},getSSRProps:c=>{const[d]=t(c);return{textContent:d}}}}function bv(e){if(at(e))return{path:e};if(Ot(e)){if(!("path"in e))throw $i(Ni.REQUIRED_VALUE,"path");return e}else throw $i(Ni.INVALID_VALUE)}function yv(e){const{path:t,locale:i,args:n,choice:a,plural:l}=e,c={},d=n||{};return at(i)&&(c.locale=i),Di(a)&&(c.plural=a),Di(l)&&(c.plural=l),[t,d,c]}function kT(e,t,...i){const n=Ot(i[0])?i[0]:{},a=!!n.useI18nComponentName;(Xt(n.globalInstall)?n.globalInstall:!0)&&([a?"i18n":gv.name,"I18nT"].forEach(c=>e.component(c,gv)),[mv.name,"I18nN"].forEach(c=>e.component(c,mv)),[vv.name,"I18nD"].forEach(c=>e.component(c,vv))),e.directive("t",AT(t))}function TT(e,t,i){return{beforeCreate(){const n=Gi();if(!n)throw $i(Ni.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const l=a.i18n;if(a.__i18n&&(l.__i18n=a.__i18n),l.__root=t,this===this.$root)this.$i18n=xv(e,l);else{l.__injectWithOption=!0,l.__extender=i.__vueI18nExtend,this.$i18n=Cf(l);const c=this.$i18n;c.__extender&&(c.__disposer=c.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=xv(e,a);else{this.$i18n=Cf({__i18n:a.__i18n,__injectWithOption:!0,__extender:i.__vueI18nExtend,__root:t});const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Y0(t,a,a),this.$t=(...l)=>this.$i18n.t(...l),this.$rt=(...l)=>this.$i18n.rt(...l),this.$tc=(...l)=>this.$i18n.tc(...l),this.$te=(l,c)=>this.$i18n.te(l,c),this.$d=(...l)=>this.$i18n.d(...l),this.$n=(...l)=>this.$i18n.n(...l),this.$tm=l=>this.$i18n.tm(l),i.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const n=Gi();if(!n)throw $i(Ni.UNEXPECTED_ERROR);const a=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),i.__deleteInstance(n),delete this.$i18n}}}function xv(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[V0](t.pluralizationRules||e.pluralizationRules);const i=bd(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(i).forEach(n=>e.mergeLocaleMessage(n,i[n])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}const IT=Hr("global-vue-i18n");function OT(e={},t){const i=__VUE_I18N_LEGACY_API__&&Xt(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=Xt(e.globalInjection)?e.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&i?!!e.allowComposition:!0,l=new Map,[c,d]=PT(e,i),p=Hr("");function m(_){return l.get(_)||null}function b(_,C){l.set(_,C)}function w(_){l.delete(_)}{const _={get mode(){return __VUE_I18N_LEGACY_API__&&i?"legacy":"composition"},get allowComposition(){return a},async install(C,...I){if(C.__VUE_I18N_SYMBOL__=p,C.provide(C.__VUE_I18N_SYMBOL__,_),Ot(I[0])){const N=I[0];_.__composerExtend=N.__composerExtend,_.__vueI18nExtend=N.__vueI18nExtend}let O=null;!i&&n&&(O=HT(C,_.global)),__VUE_I18N_FULL_INSTALL__&&kT(C,_,...I),__VUE_I18N_LEGACY_API__&&i&&C.mixin(TT(d,d.__composer,_));const M=C.unmount;C.unmount=()=>{O&&O(),_.dispose(),M()}},get global(){return d},dispose(){c.stop()},__instances:l,__getInstance:m,__setInstance:b,__deleteInstance:w};return _}}function yd(e={}){const t=Gi();if(t==null)throw $i(Ni.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw $i(Ni.NOT_INSTALLED);const i=LT(t),n=NT(i),a=W0(t),l=MT(e,a);if(__VUE_I18N_LEGACY_API__&&i.mode==="legacy"&&!e.__useComponent){if(!i.allowComposition)throw $i(Ni.NOT_AVAILABLE_IN_LEGACY_MODE);return FT(t,l,n,e)}if(l==="global")return Y0(n,e,a),n;if(l==="parent"){let p=RT(i,t,e.__useComponent);return p==null&&(p=n),p}const c=i;let d=c.__getInstance(t);if(d==null){const p=Xi({},e);"__i18n"in a&&(p.__i18n=a.__i18n),n&&(p.__root=n),d=jp(p),c.__composerExtend&&(d[Sf]=c.__composerExtend(d)),$T(c,t,d),c.__setInstance(t,d)}return d}function PT(e,t,i){const n=Zu();{const a=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Cf(e)):n.run(()=>jp(e));if(a==null)throw $i(Ni.UNEXPECTED_ERROR);return[n,a]}}function LT(e){{const t=Ji(e.isCE?IT:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw $i(e.isCE?Ni.NOT_INSTALLED_WITH_PROVIDE:Ni.UNEXPECTED_ERROR);return t}}function MT(e,t){return md(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function NT(e){return e.mode==="composition"?e.global:e.global.__composer}function RT(e,t,i=!1){let n=null;const a=t.root;let l=DT(t,i);for(;l!=null;){const c=e;if(e.mode==="composition")n=c.__getInstance(l);else if(__VUE_I18N_LEGACY_API__){const d=c.__getInstance(l);d!=null&&(n=d.__composer,i&&n&&!n[B0]&&(n=null))}if(n!=null||a===l)break;l=l.parent}return n}function DT(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function $T(e,t,i){xt(()=>{},t),Sn(()=>{const n=i;e.__deleteInstance(t);const a=n[Sf];a&&(a(),delete n[Sf])},t)}function FT(e,t,i,n={}){const a=t==="local",l=ss(null);if(a&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw $i(Ni.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const c=Xt(n.inheritLocale)?n.inheritLocale:!at(n.locale),d=ye(!a||c?i.locale.value:at(n.locale)?n.locale:Jl),p=ye(!a||c?i.fallbackLocale.value:at(n.fallbackLocale)||fi(n.fallbackLocale)||Ot(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:d.value),m=ye(bd(d.value,n)),b=ye(Ot(n.datetimeFormats)?n.datetimeFormats:{[d.value]:{}}),w=ye(Ot(n.numberFormats)?n.numberFormats:{[d.value]:{}}),_=a?i.missingWarn:Xt(n.missingWarn)||Lr(n.missingWarn)?n.missingWarn:!0,C=a?i.fallbackWarn:Xt(n.fallbackWarn)||Lr(n.fallbackWarn)?n.fallbackWarn:!0,I=a?i.fallbackRoot:Xt(n.fallbackRoot)?n.fallbackRoot:!0,O=!!n.fallbackFormat,M=Li(n.missing)?n.missing:null,N=Li(n.postTranslation)?n.postTranslation:null,k=a?i.warnHtmlMessage:Xt(n.warnHtmlMessage)?n.warnHtmlMessage:!0,D=!!n.escapeParameter,P=a?i.modifiers:Ot(n.modifiers)?n.modifiers:{},$=n.pluralRules||a&&i.pluralRules;function H(){return[d.value,p.value,m.value,b.value,w.value]}const ee=we({get:()=>l.value?l.value.locale.value:d.value,set:G=>{l.value&&(l.value.locale.value=G),d.value=G}}),se=we({get:()=>l.value?l.value.fallbackLocale.value:p.value,set:G=>{l.value&&(l.value.fallbackLocale.value=G),p.value=G}}),Q=we(()=>l.value?l.value.messages.value:m.value),te=we(()=>b.value),ce=we(()=>w.value);function oe(){return l.value?l.value.getPostTranslationHandler():N}function de(G){l.value&&l.value.setPostTranslationHandler(G)}function be(){return l.value?l.value.getMissingHandler():M}function Ce(G){l.value&&l.value.setMissingHandler(G)}function re(G){return H(),G()}function Z(...G){return l.value?re(()=>Reflect.apply(l.value.t,null,[...G])):re(()=>"")}function U(...G){return l.value?Reflect.apply(l.value.rt,null,[...G]):""}function fe(...G){return l.value?re(()=>Reflect.apply(l.value.d,null,[...G])):re(()=>"")}function he(...G){return l.value?re(()=>Reflect.apply(l.value.n,null,[...G])):re(()=>"")}function ue(G){return l.value?l.value.tm(G):{}}function ve(G,le){return l.value?l.value.te(G,le):!1}function Re(G){return l.value?l.value.getLocaleMessage(G):{}}function et(G,le){l.value&&(l.value.setLocaleMessage(G,le),m.value[G]=le)}function Ee(G,le){l.value&&l.value.mergeLocaleMessage(G,le)}function Fe(G){return l.value?l.value.getDateTimeFormat(G):{}}function _e(G,le){l.value&&(l.value.setDateTimeFormat(G,le),b.value[G]=le)}function Ie(G,le){l.value&&l.value.mergeDateTimeFormat(G,le)}function pe(G){return l.value?l.value.getNumberFormat(G):{}}function xe(G,le){l.value&&(l.value.setNumberFormat(G,le),w.value[G]=le)}function Te(G,le){l.value&&l.value.mergeNumberFormat(G,le)}const ie={get id(){return l.value?l.value.id:-1},locale:ee,fallbackLocale:se,messages:Q,datetimeFormats:te,numberFormats:ce,get inheritLocale(){return l.value?l.value.inheritLocale:c},set inheritLocale(G){l.value&&(l.value.inheritLocale=G)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(m.value)},get modifiers(){return l.value?l.value.modifiers:P},get pluralRules(){return l.value?l.value.pluralRules:$},get isGlobal(){return l.value?l.value.isGlobal:!1},get missingWarn(){return l.value?l.value.missingWarn:_},set missingWarn(G){l.value&&(l.value.missingWarn=G)},get fallbackWarn(){return l.value?l.value.fallbackWarn:C},set fallbackWarn(G){l.value&&(l.value.missingWarn=G)},get fallbackRoot(){return l.value?l.value.fallbackRoot:I},set fallbackRoot(G){l.value&&(l.value.fallbackRoot=G)},get fallbackFormat(){return l.value?l.value.fallbackFormat:O},set fallbackFormat(G){l.value&&(l.value.fallbackFormat=G)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:k},set warnHtmlMessage(G){l.value&&(l.value.warnHtmlMessage=G)},get escapeParameter(){return l.value?l.value.escapeParameter:D},set escapeParameter(G){l.value&&(l.value.escapeParameter=G)},t:Z,getPostTranslationHandler:oe,setPostTranslationHandler:de,getMissingHandler:be,setMissingHandler:Ce,rt:U,d:fe,n:he,tm:ue,te:ve,getLocaleMessage:Re,setLocaleMessage:et,mergeLocaleMessage:Ee,getDateTimeFormat:Fe,setDateTimeFormat:_e,mergeDateTimeFormat:Ie,getNumberFormat:pe,setNumberFormat:xe,mergeNumberFormat:Te};function j(G){G.locale.value=d.value,G.fallbackLocale.value=p.value,Object.keys(m.value).forEach(le=>{G.mergeLocaleMessage(le,m.value[le])}),Object.keys(b.value).forEach(le=>{G.mergeDateTimeFormat(le,b.value[le])}),Object.keys(w.value).forEach(le=>{G.mergeNumberFormat(le,w.value[le])}),G.escapeParameter=D,G.fallbackFormat=O,G.fallbackRoot=I,G.fallbackWarn=C,G.missingWarn=_,G.warnHtmlMessage=k}return ld(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw $i(Ni.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const G=l.value=e.proxy.$i18n.__composer;t==="global"?(d.value=G.locale.value,p.value=G.fallbackLocale.value,m.value=G.messages.value,b.value=G.datetimeFormats.value,w.value=G.numberFormats.value):a&&j(G)}),ie}const zT=["locale","fallbackLocale","availableLocales"],wv=["t","rt","d","n","tm","te"];function HT(e,t){const i=Object.create(null);return zT.forEach(a=>{const l=Object.getOwnPropertyDescriptor(t,a);if(!l)throw $i(Ni.UNEXPECTED_ERROR);const c=bi(l.value)?{get(){return l.value.value},set(d){l.value.value=d}}:{get(){return l.get&&l.get()}};Object.defineProperty(i,a,c)}),e.config.globalProperties.$i18n=i,wv.forEach(a=>{const l=Object.getOwnPropertyDescriptor(t,a);if(!l||!l.value)throw $i(Ni.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,l)}),()=>{delete e.config.globalProperties.$i18n,wv.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}vT();__INTLIFY_JIT_COMPILATION__?ev(dT):ev(uT);nT(zk);rT(A0);if(__INTLIFY_PROD_DEVTOOLS__){const e=$n();e.__INTLIFY__=!0,Uk(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const _v={onStart:()=>{},onPreviousStep:e=>{},onNextStep:e=>{},onStop:()=>{},onSkip:()=>{},onFinish:()=>{}},ku={highlight:!1,labels:{buttonSkip:"Skip tour",buttonPrevious:"Previous",buttonNext:"Next",buttonStop:"Finish"},enabledButtons:{buttonSkip:!0,buttonPrevious:!0,buttonNext:!0,buttonStop:!0},startTimeout:0,useKeyboardNavigation:!0,enabledNavigationKeys:{ESCAPE:!0,ARROW_RIGHT:!0,ARROW_LEFT:!0},debug:!1},Tn={CLASSES:{ACTIVE:"v-tour--active",TARGET_HIGHLIGHTED:"v-tour__target--highlighted",TARGET_RELATIVE:"v-tour__target--relative"},TRANSITION:"box-shadow 0s ease-in-out 0s",useKeyboardNavigation:!0,startTimeout:0,stopOnTargetNotFound:!0},VT={enableScrolling:!0,highlight:ku.highlight,enabledButtons:ku.enabledButtons,modifiers:[{name:"offset",options:{offset:({placement:e})=>e==="top"||e==="bottom"?[0,8]:[8,0]}}],placement:"bottom"},rh={ARROW_RIGHT:39,ARROW_LEFT:37,ESCAPE:27};var G0=(e,t)=>{const i=e.__vccOpts||e;for(const[n,a]of t)i[n]=a;return i};const BT={name:"v-tour",props:{steps:{type:Array,default:()=>[]},name:{type:String},options:{type:Object,default:()=>ku},callbacks:{type:Object,default:()=>_v}},setup(e,t){const i=ye(-1),n=we(()=>({...ku,...e.options})),a=we(()=>({..._v,...e.callbacks})),l=we(()=>i.value>-1&&i.valuei.value===0),d=we(()=>i.value===e.steps.length-1),p=we(()=>e.steps.length),m=we(()=>e.steps[i.value]),b=async k=>{k=typeof k<"u"?parseInt(k,10):0;let D=e.steps[k],P=()=>new Promise(($,H)=>{setTimeout(()=>{a.value.onStart(),i.value=k,$()},n.value.startTimeout)});if(typeof D.before<"u")try{await D.before("start")}catch($){return Promise.reject($)}return await P(),Promise.resolve()},w=async()=>{let k=i.value-1,D=()=>new Promise((P,$)=>{a.value.onPreviousStep(i.value),i.value=k,P()});if(k>-1){let P=e.steps[k];if(typeof P.before<"u")try{await P.before("previous")}catch($){return Promise.reject($)}await D()}return Promise.resolve()},_=async()=>{let k=i.value+1,D=()=>new Promise((P,$)=>{a.value.onNextStep(i.value),i.value=k,P()});if(k{a.value.onStop(),document.body.classList.remove("v-tour--active"),i.value=-1},I=()=>{a.value.onSkip(),C()},O=()=>{a.value.onFinish(),C()},M=k=>{switch(n.value.debug&&console.log("[Vue Tour] A keyup event occured:",k),k.keyCode){case rh.ARROW_RIGHT:N("ARROW_RIGHT")&&_();break;case rh.ARROW_LEFT:N("ARROW_LEFT")&&w();break;case rh.ESCAPE:N("ESCAPE")&&C();break}},N=k=>{const{enabledNavigationKeys:D}=n.value;return D.hasOwnProperty(k)?D[k]:!0};return xt(()=>{const k=Gi();k.appContext.config.globalProperties.$tours[e.name]={step:m,start:b,isRunning:l,customOptions:n,currentStep:i,isFirst:c,isLast:d,previousStep:w,nextStep:_,stop:C,skip:I,finish:O,numberOfSteps:p},n.value.useKeyboardNavigation&&window.addEventListener("keyup",M)}),Oo(()=>{n.value.useKeyboardNavigation&&window.removeEventListener("keyup",M)}),{customOptions:n,currentStep:i,isFirst:c,isLast:d,previousStep:w,nextStep:_,stop:C,skip:I,finish:O}}},WT={class:"v-tour"};function YT(e,t,i,n,a,l){const c=ga("v-step");return W(),K("div",WT,[di(e.$slots,"default",{currentStep:n.currentStep,steps:i.steps,previousStep:n.previousStep,nextStep:n.nextStep,stop:n.stop,skip:n.skip,finish:n.finish,isFirst:n.isFirst,isLast:n.isLast,labels:n.customOptions.labels,enabledButtons:n.customOptions.enabledButtons,highlight:n.customOptions.highlight,debug:n.customOptions.debug},()=>[i.steps[n.currentStep]?(W(),it(c,{step:i.steps[n.currentStep],key:n.currentStep,"previous-step":n.previousStep,"next-step":n.nextStep,stop:n.stop,skip:n.skip,finish:n.finish,"is-first":n.isFirst,"is-last":n.isLast,labels:n.customOptions.labels,"enabled-buttons":n.customOptions.enabledButtons,highlight:n.customOptions.highlight,"stop-on-fail":n.customOptions.stopOnTargetNotFound,debug:n.customOptions.debug,onTargetNotFound:t[0]||(t[0]=d=>e.$emit("targetNotFound",d))},null,8,["step","previous-step","next-step","stop","skip","finish","is-first","is-last","labels","enabled-buttons","highlight","stop-on-fail","debug"])):Le("",!0)])])}var Sv=G0(BT,[["render",YT]]),vs="top",Hs="bottom",Vs="right",bs="left",Gp="auto",Ql=[vs,Hs,Vs,bs],co="start",zl="end",jT="clippingParents",U0="viewport",Wo="popper",XT="reference",Ev=Ql.reduce(function(e,t){return e.concat([t+"-"+co,t+"-"+zl])},[]),K0=[].concat(Ql,[Gp]).reduce(function(e,t){return e.concat([t,t+"-"+co,t+"-"+zl])},[]),GT="beforeRead",UT="read",KT="afterRead",qT="beforeMain",ZT="main",JT="afterMain",QT="beforeWrite",eI="write",tI="afterWrite",iI=[GT,UT,KT,qT,ZT,JT,QT,eI,tI];function yn(e){return e?(e.nodeName||"").toLowerCase():null}function js(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ba(e){var t=js(e).Element;return e instanceof t||e instanceof Element}function $s(e){var t=js(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Up(e){if(typeof ShadowRoot>"u")return!1;var t=js(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sI(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var n=t.styles[i]||{},a=t.attributes[i]||{},l=t.elements[i];!$s(l)||!yn(l)||(Object.assign(l.style,n),Object.keys(a).forEach(function(c){var d=a[c];d===!1?l.removeAttribute(c):l.setAttribute(c,d===!0?"":d)}))})}function nI(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],l=t.attributes[n]||{},c=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:i[n]),d=c.reduce(function(p,m){return p[m]="",p},{});!$s(a)||!yn(a)||(Object.assign(a.style,d),Object.keys(l).forEach(function(p){a.removeAttribute(p)}))})}}var rI={name:"applyStyles",enabled:!0,phase:"write",fn:sI,effect:nI,requires:["computeStyles"]};function fn(e){return e.split("-")[0]}var ua=Math.max,Tu=Math.min,uo=Math.round;function Af(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function q0(){return!/^((?!chrome|android).)*safari/i.test(Af())}function ho(e,t,i){t===void 0&&(t=!1),i===void 0&&(i=!1);var n=e.getBoundingClientRect(),a=1,l=1;t&&$s(e)&&(a=e.offsetWidth>0&&uo(n.width)/e.offsetWidth||1,l=e.offsetHeight>0&&uo(n.height)/e.offsetHeight||1);var c=ba(e)?js(e):window,d=c.visualViewport,p=!q0()&&i,m=(n.left+(p&&d?d.offsetLeft:0))/a,b=(n.top+(p&&d?d.offsetTop:0))/l,w=n.width/a,_=n.height/l;return{width:w,height:_,top:b,right:m+w,bottom:b+_,left:m,x:m,y:b}}function Kp(e){var t=ho(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function Z0(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Up(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Kn(e){return js(e).getComputedStyle(e)}function aI(e){return["table","td","th"].indexOf(yn(e))>=0}function Br(e){return((ba(e)?e.ownerDocument:e.document)||window.document).documentElement}function xd(e){return yn(e)==="html"?e:e.assignedSlot||e.parentNode||(Up(e)?e.host:null)||Br(e)}function Cv(e){return!$s(e)||Kn(e).position==="fixed"?null:e.offsetParent}function oI(e){var t=/firefox/i.test(Af()),i=/Trident/i.test(Af());if(i&&$s(e)){var n=Kn(e);if(n.position==="fixed")return null}var a=xd(e);for(Up(a)&&(a=a.host);$s(a)&&["html","body"].indexOf(yn(a))<0;){var l=Kn(a);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return a;a=a.parentNode}return null}function ec(e){for(var t=js(e),i=Cv(e);i&&aI(i)&&Kn(i).position==="static";)i=Cv(i);return i&&(yn(i)==="html"||yn(i)==="body"&&Kn(i).position==="static")?t:i||oI(e)||t}function qp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fl(e,t,i){return ua(e,Tu(t,i))}function lI(e,t,i){var n=fl(e,t,i);return n>i?i:n}function J0(){return{top:0,right:0,bottom:0,left:0}}function Q0(e){return Object.assign({},J0(),e)}function ew(e,t){return t.reduce(function(i,n){return i[n]=e,i},{})}var cI=function(t,i){return t=typeof t=="function"?t(Object.assign({},i.rects,{placement:i.placement})):t,Q0(typeof t!="number"?t:ew(t,Ql))};function uI(e){var t,i=e.state,n=e.name,a=e.options,l=i.elements.arrow,c=i.modifiersData.popperOffsets,d=fn(i.placement),p=qp(d),m=[bs,Vs].indexOf(d)>=0,b=m?"height":"width";if(!(!l||!c)){var w=cI(a.padding,i),_=Kp(l),C=p==="y"?vs:bs,I=p==="y"?Hs:Vs,O=i.rects.reference[b]+i.rects.reference[p]-c[p]-i.rects.popper[b],M=c[p]-i.rects.reference[p],N=ec(l),k=N?p==="y"?N.clientHeight||0:N.clientWidth||0:0,D=O/2-M/2,P=w[C],$=k-_[b]-w[I],H=k/2-_[b]/2+D,ee=fl(P,H,$),se=p;i.modifiersData[n]=(t={},t[se]=ee,t.centerOffset=ee-H,t)}}function dI(e){var t=e.state,i=e.options,n=i.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Z0(t.elements.popper,a)&&(t.elements.arrow=a))}var hI={name:"arrow",enabled:!0,phase:"main",fn:uI,effect:dI,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fo(e){return e.split("-")[1]}var fI={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pI(e){var t=e.x,i=e.y,n=window,a=n.devicePixelRatio||1;return{x:uo(t*a)/a||0,y:uo(i*a)/a||0}}function Av(e){var t,i=e.popper,n=e.popperRect,a=e.placement,l=e.variation,c=e.offsets,d=e.position,p=e.gpuAcceleration,m=e.adaptive,b=e.roundOffsets,w=e.isFixed,_=c.x,C=_===void 0?0:_,I=c.y,O=I===void 0?0:I,M=typeof b=="function"?b({x:C,y:O}):{x:C,y:O};C=M.x,O=M.y;var N=c.hasOwnProperty("x"),k=c.hasOwnProperty("y"),D=bs,P=vs,$=window;if(m){var H=ec(i),ee="clientHeight",se="clientWidth";if(H===js(i)&&(H=Br(i),Kn(H).position!=="static"&&d==="absolute"&&(ee="scrollHeight",se="scrollWidth")),H=H,a===vs||(a===bs||a===Vs)&&l===zl){P=Hs;var Q=w&&H===$&&$.visualViewport?$.visualViewport.height:H[ee];O-=Q-n.height,O*=p?1:-1}if(a===bs||(a===vs||a===Hs)&&l===zl){D=Vs;var te=w&&H===$&&$.visualViewport?$.visualViewport.width:H[se];C-=te-n.width,C*=p?1:-1}}var ce=Object.assign({position:d},m&&fI),oe=b===!0?pI({x:C,y:O}):{x:C,y:O};if(C=oe.x,O=oe.y,p){var de;return Object.assign({},ce,(de={},de[P]=k?"0":"",de[D]=N?"0":"",de.transform=($.devicePixelRatio||1)<=1?"translate("+C+"px, "+O+"px)":"translate3d("+C+"px, "+O+"px, 0)",de))}return Object.assign({},ce,(t={},t[P]=k?O+"px":"",t[D]=N?C+"px":"",t.transform="",t))}function gI(e){var t=e.state,i=e.options,n=i.gpuAcceleration,a=n===void 0?!0:n,l=i.adaptive,c=l===void 0?!0:l,d=i.roundOffsets,p=d===void 0?!0:d,m={placement:fn(t.placement),variation:fo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Av(Object.assign({},m,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:p})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Av(Object.assign({},m,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var mI={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gI,data:{}},Mc={passive:!0};function vI(e){var t=e.state,i=e.instance,n=e.options,a=n.scroll,l=a===void 0?!0:a,c=n.resize,d=c===void 0?!0:c,p=js(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&m.forEach(function(b){b.addEventListener("scroll",i.update,Mc)}),d&&p.addEventListener("resize",i.update,Mc),function(){l&&m.forEach(function(b){b.removeEventListener("scroll",i.update,Mc)}),d&&p.removeEventListener("resize",i.update,Mc)}}var bI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vI,data:{}},yI={left:"right",right:"left",bottom:"top",top:"bottom"};function eu(e){return e.replace(/left|right|bottom|top/g,function(t){return yI[t]})}var xI={start:"end",end:"start"};function kv(e){return e.replace(/start|end/g,function(t){return xI[t]})}function Zp(e){var t=js(e),i=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:i,scrollTop:n}}function Jp(e){return ho(Br(e)).left+Zp(e).scrollLeft}function wI(e,t){var i=js(e),n=Br(e),a=i.visualViewport,l=n.clientWidth,c=n.clientHeight,d=0,p=0;if(a){l=a.width,c=a.height;var m=q0();(m||!m&&t==="fixed")&&(d=a.offsetLeft,p=a.offsetTop)}return{width:l,height:c,x:d+Jp(e),y:p}}function _I(e){var t,i=Br(e),n=Zp(e),a=(t=e.ownerDocument)==null?void 0:t.body,l=ua(i.scrollWidth,i.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),c=ua(i.scrollHeight,i.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),d=-n.scrollLeft+Jp(e),p=-n.scrollTop;return Kn(a||i).direction==="rtl"&&(d+=ua(i.clientWidth,a?a.clientWidth:0)-l),{width:l,height:c,x:d,y:p}}function Qp(e){var t=Kn(e),i=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+a+n)}function tw(e){return["html","body","#document"].indexOf(yn(e))>=0?e.ownerDocument.body:$s(e)&&Qp(e)?e:tw(xd(e))}function pl(e,t){var i;t===void 0&&(t=[]);var n=tw(e),a=n===((i=e.ownerDocument)==null?void 0:i.body),l=js(n),c=a?[l].concat(l.visualViewport||[],Qp(n)?n:[]):n,d=t.concat(c);return a?d:d.concat(pl(xd(c)))}function kf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function SI(e,t){var i=ho(e,!1,t==="fixed");return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}function Tv(e,t,i){return t===U0?kf(wI(e,i)):ba(t)?SI(t,i):kf(_I(Br(e)))}function EI(e){var t=pl(xd(e)),i=["absolute","fixed"].indexOf(Kn(e).position)>=0,n=i&&$s(e)?ec(e):e;return ba(n)?t.filter(function(a){return ba(a)&&Z0(a,n)&&yn(a)!=="body"}):[]}function CI(e,t,i,n){var a=t==="clippingParents"?EI(e):[].concat(t),l=[].concat(a,[i]),c=l[0],d=l.reduce(function(p,m){var b=Tv(e,m,n);return p.top=ua(b.top,p.top),p.right=Tu(b.right,p.right),p.bottom=Tu(b.bottom,p.bottom),p.left=ua(b.left,p.left),p},Tv(e,c,n));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function iw(e){var t=e.reference,i=e.element,n=e.placement,a=n?fn(n):null,l=n?fo(n):null,c=t.x+t.width/2-i.width/2,d=t.y+t.height/2-i.height/2,p;switch(a){case vs:p={x:c,y:t.y-i.height};break;case Hs:p={x:c,y:t.y+t.height};break;case Vs:p={x:t.x+t.width,y:d};break;case bs:p={x:t.x-i.width,y:d};break;default:p={x:t.x,y:t.y}}var m=a?qp(a):null;if(m!=null){var b=m==="y"?"height":"width";switch(l){case co:p[m]=p[m]-(t[b]/2-i[b]/2);break;case zl:p[m]=p[m]+(t[b]/2-i[b]/2);break}}return p}function Hl(e,t){t===void 0&&(t={});var i=t,n=i.placement,a=n===void 0?e.placement:n,l=i.strategy,c=l===void 0?e.strategy:l,d=i.boundary,p=d===void 0?jT:d,m=i.rootBoundary,b=m===void 0?U0:m,w=i.elementContext,_=w===void 0?Wo:w,C=i.altBoundary,I=C===void 0?!1:C,O=i.padding,M=O===void 0?0:O,N=Q0(typeof M!="number"?M:ew(M,Ql)),k=_===Wo?XT:Wo,D=e.rects.popper,P=e.elements[I?k:_],$=CI(ba(P)?P:P.contextElement||Br(e.elements.popper),p,b,c),H=ho(e.elements.reference),ee=iw({reference:H,element:D,strategy:"absolute",placement:a}),se=kf(Object.assign({},D,ee)),Q=_===Wo?se:H,te={top:$.top-Q.top+N.top,bottom:Q.bottom-$.bottom+N.bottom,left:$.left-Q.left+N.left,right:Q.right-$.right+N.right},ce=e.modifiersData.offset;if(_===Wo&&ce){var oe=ce[a];Object.keys(te).forEach(function(de){var be=[Vs,Hs].indexOf(de)>=0?1:-1,Ce=[vs,Hs].indexOf(de)>=0?"y":"x";te[de]+=oe[Ce]*be})}return te}function AI(e,t){t===void 0&&(t={});var i=t,n=i.placement,a=i.boundary,l=i.rootBoundary,c=i.padding,d=i.flipVariations,p=i.allowedAutoPlacements,m=p===void 0?K0:p,b=fo(n),w=b?d?Ev:Ev.filter(function(I){return fo(I)===b}):Ql,_=w.filter(function(I){return m.indexOf(I)>=0});_.length===0&&(_=w);var C=_.reduce(function(I,O){return I[O]=Hl(e,{placement:O,boundary:a,rootBoundary:l,padding:c})[fn(O)],I},{});return Object.keys(C).sort(function(I,O){return C[I]-C[O]})}function kI(e){if(fn(e)===Gp)return[];var t=eu(e);return[kv(e),t,kv(t)]}function TI(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=i.mainAxis,l=a===void 0?!0:a,c=i.altAxis,d=c===void 0?!0:c,p=i.fallbackPlacements,m=i.padding,b=i.boundary,w=i.rootBoundary,_=i.altBoundary,C=i.flipVariations,I=C===void 0?!0:C,O=i.allowedAutoPlacements,M=t.options.placement,N=fn(M),k=N===M,D=p||(k||!I?[eu(M)]:kI(M)),P=[M].concat(D).reduce(function(et,Ee){return et.concat(fn(Ee)===Gp?AI(t,{placement:Ee,boundary:b,rootBoundary:w,padding:m,flipVariations:I,allowedAutoPlacements:O}):Ee)},[]),$=t.rects.reference,H=t.rects.popper,ee=new Map,se=!0,Q=P[0],te=0;te=0,Ce=be?"width":"height",re=Hl(t,{placement:ce,boundary:b,rootBoundary:w,altBoundary:_,padding:m}),Z=be?de?Vs:bs:de?Hs:vs;$[Ce]>H[Ce]&&(Z=eu(Z));var U=eu(Z),fe=[];if(l&&fe.push(re[oe]<=0),d&&fe.push(re[Z]<=0,re[U]<=0),fe.every(function(et){return et})){Q=ce,se=!1;break}ee.set(ce,fe)}if(se)for(var he=I?3:1,ue=function(Ee){var Fe=P.find(function(_e){var Ie=ee.get(_e);if(Ie)return Ie.slice(0,Ee).every(function(pe){return pe})});if(Fe)return Q=Fe,"break"},ve=he;ve>0;ve--){var Re=ue(ve);if(Re==="break")break}t.placement!==Q&&(t.modifiersData[n]._skip=!0,t.placement=Q,t.reset=!0)}}var II={name:"flip",enabled:!0,phase:"main",fn:TI,requiresIfExists:["offset"],data:{_skip:!1}};function Iv(e,t,i){return i===void 0&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Ov(e){return[vs,Vs,Hs,bs].some(function(t){return e[t]>=0})}function OI(e){var t=e.state,i=e.name,n=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,c=Hl(t,{elementContext:"reference"}),d=Hl(t,{altBoundary:!0}),p=Iv(c,n),m=Iv(d,a,l),b=Ov(p),w=Ov(m);t.modifiersData[i]={referenceClippingOffsets:p,popperEscapeOffsets:m,isReferenceHidden:b,hasPopperEscaped:w},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":b,"data-popper-escaped":w})}var PI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:OI};function LI(e,t,i){var n=fn(e),a=[bs,vs].indexOf(n)>=0?-1:1,l=typeof i=="function"?i(Object.assign({},t,{placement:e})):i,c=l[0],d=l[1];return c=c||0,d=(d||0)*a,[bs,Vs].indexOf(n)>=0?{x:d,y:c}:{x:c,y:d}}function MI(e){var t=e.state,i=e.options,n=e.name,a=i.offset,l=a===void 0?[0,0]:a,c=K0.reduce(function(b,w){return b[w]=LI(w,t.rects,l),b},{}),d=c[t.placement],p=d.x,m=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=p,t.modifiersData.popperOffsets.y+=m),t.modifiersData[n]=c}var NI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:MI};function RI(e){var t=e.state,i=e.name;t.modifiersData[i]=iw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var DI={name:"popperOffsets",enabled:!0,phase:"read",fn:RI,data:{}};function $I(e){return e==="x"?"y":"x"}function FI(e){var t=e.state,i=e.options,n=e.name,a=i.mainAxis,l=a===void 0?!0:a,c=i.altAxis,d=c===void 0?!1:c,p=i.boundary,m=i.rootBoundary,b=i.altBoundary,w=i.padding,_=i.tether,C=_===void 0?!0:_,I=i.tetherOffset,O=I===void 0?0:I,M=Hl(t,{boundary:p,rootBoundary:m,padding:w,altBoundary:b}),N=fn(t.placement),k=fo(t.placement),D=!k,P=qp(N),$=$I(P),H=t.modifiersData.popperOffsets,ee=t.rects.reference,se=t.rects.popper,Q=typeof O=="function"?O(Object.assign({},t.rects,{placement:t.placement})):O,te=typeof Q=="number"?{mainAxis:Q,altAxis:Q}:Object.assign({mainAxis:0,altAxis:0},Q),ce=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,oe={x:0,y:0};if(H){if(l){var de,be=P==="y"?vs:bs,Ce=P==="y"?Hs:Vs,re=P==="y"?"height":"width",Z=H[P],U=Z+M[be],fe=Z-M[Ce],he=C?-se[re]/2:0,ue=k===co?ee[re]:se[re],ve=k===co?-se[re]:-ee[re],Re=t.elements.arrow,et=C&&Re?Kp(Re):{width:0,height:0},Ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:J0(),Fe=Ee[be],_e=Ee[Ce],Ie=fl(0,ee[re],et[re]),pe=D?ee[re]/2-he-Ie-Fe-te.mainAxis:ue-Ie-Fe-te.mainAxis,xe=D?-ee[re]/2+he+Ie+_e+te.mainAxis:ve+Ie+_e+te.mainAxis,Te=t.elements.arrow&&ec(t.elements.arrow),ie=Te?P==="y"?Te.clientTop||0:Te.clientLeft||0:0,j=(de=ce==null?void 0:ce[P])!=null?de:0,G=Z+pe-j-ie,le=Z+xe-j,Se=fl(C?Tu(U,G):U,Z,C?ua(fe,le):fe);H[P]=Se,oe[P]=Se-Z}if(d){var Oe,Ye=P==="x"?vs:bs,Ue=P==="x"?Hs:Vs,Xe=H[$],Ve=$==="y"?"height":"width",Je=Xe+M[Ye],Ae=Xe-M[Ue],De=[vs,bs].indexOf(N)!==-1,ot=(Oe=ce==null?void 0:ce[$])!=null?Oe:0,ct=De?Je:Xe-ee[Ve]-se[Ve]-ot+te.altAxis,Pt=De?Xe+ee[Ve]+se[Ve]-ot-te.altAxis:Ae,kt=C&&De?lI(ct,Xe,Pt):fl(C?ct:Je,Xe,C?Pt:Ae);H[$]=kt,oe[$]=kt-Xe}t.modifiersData[n]=oe}}var zI={name:"preventOverflow",enabled:!0,phase:"main",fn:FI,requiresIfExists:["offset"]};function HI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function VI(e){return e===js(e)||!$s(e)?Zp(e):HI(e)}function BI(e){var t=e.getBoundingClientRect(),i=uo(t.width)/e.offsetWidth||1,n=uo(t.height)/e.offsetHeight||1;return i!==1||n!==1}function WI(e,t,i){i===void 0&&(i=!1);var n=$s(t),a=$s(t)&&BI(t),l=Br(t),c=ho(e,a,i),d={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(n||!n&&!i)&&((yn(t)!=="body"||Qp(l))&&(d=VI(t)),$s(t)?(p=ho(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):l&&(p.x=Jp(l))),{x:c.left+d.scrollLeft-p.x,y:c.top+d.scrollTop-p.y,width:c.width,height:c.height}}function YI(e){var t=new Map,i=new Set,n=[];e.forEach(function(l){t.set(l.name,l)});function a(l){i.add(l.name);var c=[].concat(l.requires||[],l.requiresIfExists||[]);c.forEach(function(d){if(!i.has(d)){var p=t.get(d);p&&a(p)}}),n.push(l)}return e.forEach(function(l){i.has(l.name)||a(l)}),n}function jI(e){var t=YI(e);return iI.reduce(function(i,n){return i.concat(t.filter(function(a){return a.phase===n}))},[])}function XI(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}function GI(e){var t=e.reduce(function(i,n){var a=i[n.name];return i[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,i},{});return Object.keys(t).map(function(i){return t[i]})}var Pv={placement:"bottom",modifiers:[],strategy:"absolute"};function Lv(){for(var e=arguments.length,t=new Array(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:{};switch(p=D.duration||1e3,a=D.offset||0,_=D.callback,l=D.easing||ZI,c=D.a11y||!1,i=C(),typeof k>"u"?"undefined":Mv(k)){case"number":t=void 0,c=!1,n=i+k;break;case"object":t=k,n=I(t);break;case"string":t=document.querySelector(k),n=I(t);break}switch(d=n-i+a,Mv(D.duration)){case"number":p=D.duration;break;case"function":p=D.duration(d);break}window.requestAnimationFrame(O)}return N},QI=JI();function eO(e,t){for(;e.length({...VT,highlight:e.highlight,enabledButtons:Object.assign({},e.enabledButtons),...e.step.params})),l=we(()=>!e.step.target),c=ye(null),d=()=>{e.debug&&console.log("[Vue Tour] The target element "+e.step.target+' of .v-step[id="'+i+'"] is:',n),l.value?document.body.appendChild(c):n?(p(),b(),qI(n,c.value,a.value)):(e.debug&&console.error("[Vue Tour] The target element "+e.step.target+' of .v-step[id="'+i+'"] does not exist!'),t.emit("targetNotFound",e.step),e.stopOnFail&&e.stop())},p=()=>{if(a.value.enableScrolling)if(e.step.duration||e.step.offset){let C={duration:e.step.duration||1e3,offset:e.step.offset||0,callback:void 0,a11y:!1};QI(n,C)}else n.scrollIntoView({behavior:"smooth"})},m=()=>(e.debug&&console.log(`[Vue Tour] Highlight is ${a.value.highlight?"enabled":"disabled"} for .v-step[id="${i}"]`),a.value.highlight),b=()=>{if(m()){document.body.classList.add(Tn.CLASSES.ACTIVE);const C=window.getComputedStyle(n).getPropertyValue("transition");C!=="all 0s ease 0s"&&(n.style.transition=`${C}, ${Tn.TRANSITION}`),n.classList.add(Tn.CLASSES.TARGET_HIGHLIGHTED),n.style.position||n.classList.add(Tn.CLASSES.TARGET_RELATIVE)}else document.body.classList.remove(Tn.CLASSES.ACTIVE)},w=()=>{if(m()){const C=n.style.transition;n.classList.remove(Tn.CLASSES.TARGET_HIGHLIGHTED),n.classList.remove(Tn.CLASSES.TARGET_RELATIVE),C.includes(Tn.TRANSITION)&&setTimeout(()=>{n.style.transition=C.replace(`, ${Tn.TRANSITION}`,"")},0)}},_=C=>a.value.enabledButtons.hasOwnProperty(C)?a.value.enabledButtons[C]:!0;return xt(d),Sn(w),{hash:i,isButtonEnabled:_,VStep:c,isSticky:l}}},aO=["id"],oO={key:0,class:"v-step__header"},lO=["innerHTML"],cO={class:"v-step__content"},uO=["innerHTML"],dO={key:1},hO={class:"v-step__buttons"};function fO(e,t,i,n,a,l){return W(),K("div",{class:_t([{"v-step--sticky":n.isSticky},"v-step"]),id:"v-step-"+n.hash,ref:"VStep"},[di(e.$slots,"header",{},()=>[i.step.header?(W(),K("div",oO,[i.step.header.title?(W(),K("div",{key:0,innerHTML:i.step.header.title},null,8,lO)):Le("",!0)])):Le("",!0)],!0),di(e.$slots,"content",{},()=>[V("div",cO,[i.step.content?(W(),K("div",{key:0,innerHTML:i.step.content},null,8,uO)):(W(),K("div",dO,"props is a demo step! The id of props step is "+Ne(n.hash)+" and it targets "+Ne(i.step.target)+".",1))])],!0),di(e.$slots,"actions",{},()=>[V("div",hO,[!i.isLast&&n.isButtonEnabled("buttonSkip")?(W(),K("button",{key:0,onClick:t[0]||(t[0]=Jt((...c)=>i.skip&&i.skip(...c),["prevent"])),class:"v-step__button v-step__button-skip"},Ne(i.labels.buttonSkip),1)):Le("",!0),!i.isFirst&&n.isButtonEnabled("buttonPrevious")?(W(),K("button",{key:1,onClick:t[1]||(t[1]=Jt((...c)=>i.previousStep&&i.previousStep(...c),["prevent"])),class:"v-step__button v-step__button-previous"},Ne(i.labels.buttonPrevious),1)):Le("",!0),!i.isLast&&n.isButtonEnabled("buttonNext")?(W(),K("button",{key:2,onClick:t[2]||(t[2]=Jt((...c)=>i.nextStep&&i.nextStep(...c),["prevent"])),class:"v-step__button v-step__button-next"},Ne(i.labels.buttonNext),1)):Le("",!0),i.isLast&&n.isButtonEnabled("buttonStop")?(W(),K("button",{key:3,onClick:t[3]||(t[3]=Jt((...c)=>i.finish&&i.finish(...c),["prevent"])),class:"v-step__button v-step__button-stop"},Ne(i.labels.buttonStop),1)):Le("",!0)])],!0),V("div",{class:_t(["v-step__arrow",{"v-step__arrow--dark":i.step.header&&i.step.header.title}]),"data-popper-arrow":""},null,2)],10,aO)}var Nv=G0(rO,[["render",fO],["__scopeId","data-v-da2d894c"]]);const pO=e=>{e.config.globalProperties.$tours={},e.component(Sv.name,Sv),e.component(Nv.name,Nv)};/*! - * vue-router v4.1.6 - * (c) 2022 Eduardo San Martin Morote - * @license MIT - */const Va=typeof window<"u";function gO(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ni=Object.assign;function ah(e,t){const i={};for(const n in t){const a=t[n];i[n]=an(a)?a.map(e):e(a)}return i}const gl=()=>{},an=Array.isArray,mO=/\/$/,vO=e=>e.replace(mO,"");function oh(e,t,i="/"){let n,a={},l="",c="";const d=t.indexOf("#");let p=t.indexOf("?");return d=0&&(p=-1),p>-1&&(n=t.slice(0,p),l=t.slice(p+1,d>-1?d:t.length),a=e(l)),d>-1&&(n=n||t.slice(0,d),c=t.slice(d,t.length)),n=wO(n??t,i),{fullPath:n+(l&&"?")+l+c,path:n,query:a,hash:c}}function bO(e,t){const i=t.query?e(t.query):"";return t.path+(i&&"?")+i+(t.hash||"")}function Rv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function yO(e,t,i){const n=t.matched.length-1,a=i.matched.length-1;return n>-1&&n===a&&po(t.matched[n],i.matched[a])&&nw(t.params,i.params)&&e(t.query)===e(i.query)&&t.hash===i.hash}function po(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function nw(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!xO(e[i],t[i]))return!1;return!0}function xO(e,t){return an(e)?Dv(e,t):an(t)?Dv(t,e):e===t}function Dv(e,t){return an(t)?e.length===t.length&&e.every((i,n)=>i===t[n]):e.length===1&&e[0]===t}function wO(e,t){if(e.startsWith("/"))return e;if(!e)return t;const i=t.split("/"),n=e.split("/");let a=i.length-1,l,c;for(l=0;l1&&a--;else break;return i.slice(0,a).join("/")+"/"+n.slice(l-(l===n.length?1:0)).join("/")}var Vl;(function(e){e.pop="pop",e.push="push"})(Vl||(Vl={}));var ml;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ml||(ml={}));function _O(e){if(!e)if(Va){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),vO(e)}const SO=/^[^#]+#/;function EO(e,t){return e.replace(SO,"#")+t}function CO(e,t){const i=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-i.left-(t.left||0),top:n.top-i.top-(t.top||0)}}const wd=()=>({left:window.pageXOffset,top:window.pageYOffset});function AO(e){let t;if("el"in e){const i=e.el,n=typeof i=="string"&&i.startsWith("#"),a=typeof i=="string"?n?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!a)return;t=CO(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function $v(e,t){return(history.state?history.state.position-t:-1)+e}const Tf=new Map;function kO(e,t){Tf.set(e,t)}function TO(e){const t=Tf.get(e);return Tf.delete(e),t}let IO=()=>location.protocol+"//"+location.host;function rw(e,t){const{pathname:i,search:n,hash:a}=t,l=e.indexOf("#");if(l>-1){let d=a.includes(e.slice(l))?e.slice(l).length:1,p=a.slice(d);return p[0]!=="/"&&(p="/"+p),Rv(p,"")}return Rv(i,e)+n+a}function OO(e,t,i,n){let a=[],l=[],c=null;const d=({state:_})=>{const C=rw(e,location),I=i.value,O=t.value;let M=0;if(_){if(i.value=C,t.value=_,c&&c===I){c=null;return}M=O?_.position-O.position:0}else n(C);a.forEach(N=>{N(i.value,I,{delta:M,type:Vl.pop,direction:M?M>0?ml.forward:ml.back:ml.unknown})})};function p(){c=i.value}function m(_){a.push(_);const C=()=>{const I=a.indexOf(_);I>-1&&a.splice(I,1)};return l.push(C),C}function b(){const{history:_}=window;_.state&&_.replaceState(ni({},_.state,{scroll:wd()}),"")}function w(){for(const _ of l)_();l=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",b)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",b),{pauseListeners:p,listen:m,destroy:w}}function Fv(e,t,i,n=!1,a=!1){return{back:e,current:t,forward:i,replaced:n,position:window.history.length,scroll:a?wd():null}}function PO(e){const{history:t,location:i}=window,n={value:rw(e,i)},a={value:t.state};a.value||l(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(p,m,b){const w=e.indexOf("#"),_=w>-1?(i.host&&document.querySelector("base")?e:e.slice(w))+p:IO()+e+p;try{t[b?"replaceState":"pushState"](m,"",_),a.value=m}catch(C){console.error(C),i[b?"replace":"assign"](_)}}function c(p,m){const b=ni({},t.state,Fv(a.value.back,p,a.value.forward,!0),m,{position:a.value.position});l(p,b,!0),n.value=p}function d(p,m){const b=ni({},a.value,t.state,{forward:p,scroll:wd()});l(b.current,b,!0);const w=ni({},Fv(n.value,p,null),{position:b.position+1},m);l(p,w,!1),n.value=p}return{location:n,state:a,push:d,replace:c}}function LO(e){e=_O(e);const t=PO(e),i=OO(e,t.state,t.location,t.replace);function n(l,c=!0){c||i.pauseListeners(),history.go(l)}const a=ni({location:"",base:e,go:n,createHref:EO.bind(null,e)},t,i);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function MO(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),LO(e)}function NO(e){return typeof e=="string"||e&&typeof e=="object"}function aw(e){return typeof e=="string"||typeof e=="symbol"}const rr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ow=Symbol("");var zv;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(zv||(zv={}));function go(e,t){return ni(new Error,{type:e,[ow]:!0},t)}function On(e,t){return e instanceof Error&&ow in e&&(t==null||!!(e.type&t))}const Hv="[^/]+?",RO={sensitive:!1,strict:!1,start:!0,end:!0},DO=/[.+*?^${}()[\]/\\]/g;function $O(e,t){const i=ni({},RO,t),n=[];let a=i.start?"^":"";const l=[];for(const m of e){const b=m.length?[]:[90];i.strict&&!m.length&&(a+="/");for(let w=0;wt.length?t.length===1&&t[0]===40+40?1:-1:0}function zO(e,t){let i=0;const n=e.score,a=t.score;for(;i0&&t[t.length-1]<0}const HO={type:0,value:""},VO=/[a-zA-Z0-9_]/;function BO(e){if(!e)return[[]];if(e==="/")return[[HO]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(C){throw new Error(`ERR (${i})/"${m}": ${C}`)}let i=0,n=i;const a=[];let l;function c(){l&&a.push(l),l=[]}let d=0,p,m="",b="";function w(){m&&(i===0?l.push({type:0,value:m}):i===1||i===2||i===3?(l.length>1&&(p==="*"||p==="+")&&t(`A repeatable param (${m}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:m,regexp:b,repeatable:p==="*"||p==="+",optional:p==="*"||p==="?"})):t("Invalid state to consume buffer"),m="")}function _(){m+=p}for(;d{c(k)}:gl}function c(b){if(aw(b)){const w=n.get(b);w&&(n.delete(b),i.splice(i.indexOf(w),1),w.children.forEach(c),w.alias.forEach(c))}else{const w=i.indexOf(b);w>-1&&(i.splice(w,1),b.record.name&&n.delete(b.record.name),b.children.forEach(c),b.alias.forEach(c))}}function d(){return i}function p(b){let w=0;for(;w=0&&(b.record.path!==i[w].record.path||!lw(b,i[w]));)w++;i.splice(w,0,b),b.record.name&&!Wv(b)&&n.set(b.record.name,b)}function m(b,w){let _,C={},I,O;if("name"in b&&b.name){if(_=n.get(b.name),!_)throw go(1,{location:b});O=_.record.name,C=ni(Bv(w.params,_.keys.filter(k=>!k.optional).map(k=>k.name)),b.params&&Bv(b.params,_.keys.map(k=>k.name))),I=_.stringify(C)}else if("path"in b)I=b.path,_=i.find(k=>k.re.test(I)),_&&(C=_.parse(I),O=_.record.name);else{if(_=w.name?n.get(w.name):i.find(k=>k.re.test(w.path)),!_)throw go(1,{location:b,currentLocation:w});O=_.record.name,C=ni({},w.params,b.params),I=_.stringify(C)}const M=[];let N=_;for(;N;)M.unshift(N.record),N=N.parent;return{name:O,path:I,params:C,matched:M,meta:GO(M)}}return e.forEach(b=>l(b)),{addRoute:l,resolve:m,removeRoute:c,getRoutes:d,getRecordMatcher:a}}function Bv(e,t){const i={};for(const n of t)n in e&&(i[n]=e[n]);return i}function jO(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:XO(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function XO(e){const t={},i=e.props||!1;if("component"in e)t.default=i;else for(const n in e.components)t[n]=typeof i=="boolean"?i:i[n];return t}function Wv(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function GO(e){return e.reduce((t,i)=>ni(t,i.meta),{})}function Yv(e,t){const i={};for(const n in e)i[n]=n in t?t[n]:e[n];return i}function lw(e,t){return t.children.some(i=>i===e||lw(e,i))}const cw=/#/g,UO=/&/g,KO=/\//g,qO=/=/g,ZO=/\?/g,uw=/\+/g,JO=/%5B/g,QO=/%5D/g,dw=/%5E/g,eP=/%60/g,hw=/%7B/g,tP=/%7C/g,fw=/%7D/g,iP=/%20/g;function eg(e){return encodeURI(""+e).replace(tP,"|").replace(JO,"[").replace(QO,"]")}function sP(e){return eg(e).replace(hw,"{").replace(fw,"}").replace(dw,"^")}function If(e){return eg(e).replace(uw,"%2B").replace(iP,"+").replace(cw,"%23").replace(UO,"%26").replace(eP,"`").replace(hw,"{").replace(fw,"}").replace(dw,"^")}function nP(e){return If(e).replace(qO,"%3D")}function rP(e){return eg(e).replace(cw,"%23").replace(ZO,"%3F")}function aP(e){return e==null?"":rP(e).replace(KO,"%2F")}function Iu(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function oP(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;al&&If(l)):[n&&If(n)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+i,l!=null&&(t+="="+l))})}return t}function lP(e){const t={};for(const i in e){const n=e[i];n!==void 0&&(t[i]=an(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return t}const cP=Symbol(""),Xv=Symbol(""),tg=Symbol(""),pw=Symbol(""),Of=Symbol("");function Yo(){let e=[];function t(n){return e.push(n),()=>{const a=e.indexOf(n);a>-1&&e.splice(a,1)}}function i(){e=[]}return{add:t,list:()=>e,reset:i}}function mr(e,t,i,n,a){const l=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((c,d)=>{const p=w=>{w===!1?d(go(4,{from:i,to:t})):w instanceof Error?d(w):NO(w)?d(go(2,{from:t,to:w})):(l&&n.enterCallbacks[a]===l&&typeof w=="function"&&l.push(w),c())},m=e.call(n&&n.instances[a],t,i,p);let b=Promise.resolve(m);e.length<3&&(b=b.then(p)),b.catch(w=>d(w))})}function lh(e,t,i,n){const a=[];for(const l of e)for(const c in l.components){let d=l.components[c];if(!(t!=="beforeRouteEnter"&&!l.instances[c]))if(uP(d)){const m=(d.__vccOpts||d)[t];m&&a.push(mr(m,i,n,l,c))}else{let p=d();a.push(()=>p.then(m=>{if(!m)return Promise.reject(new Error(`Couldn't resolve component "${c}" at "${l.path}"`));const b=gO(m)?m.default:m;l.components[c]=b;const _=(b.__vccOpts||b)[t];return _&&mr(_,i,n,l,c)()}))}}return a}function uP(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Gv(e){const t=Ji(tg),i=Ji(pw),n=we(()=>t.resolve(Be(e.to))),a=we(()=>{const{matched:p}=n.value,{length:m}=p,b=p[m-1],w=i.matched;if(!b||!w.length)return-1;const _=w.findIndex(po.bind(null,b));if(_>-1)return _;const C=Uv(p[m-2]);return m>1&&Uv(b)===C&&w[w.length-1].path!==C?w.findIndex(po.bind(null,p[m-2])):_}),l=we(()=>a.value>-1&&pP(i.params,n.value.params)),c=we(()=>a.value>-1&&a.value===i.matched.length-1&&nw(i.params,n.value.params));function d(p={}){return fP(p)?t[Be(e.replace)?"replace":"push"](Be(e.to)).catch(gl):Promise.resolve()}return{route:n,href:we(()=>n.value.href),isActive:l,isExactActive:c,navigate:d}}const dP=Ke({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Gv,setup(e,{slots:t}){const i=Wt(Gv(e)),{options:n}=Ji(tg),a=we(()=>({[Kv(e.activeClass,n.linkActiveClass,"router-link-active")]:i.isActive,[Kv(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:i.isExactActive}));return()=>{const l=t.default&&t.default(i);return e.custom?l:zr("a",{"aria-current":i.isExactActive?e.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:a.value},l)}}}),hP=dP;function fP(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function pP(e,t){for(const i in t){const n=t[i],a=e[i];if(typeof n=="string"){if(n!==a)return!1}else if(!an(a)||a.length!==n.length||n.some((l,c)=>l!==a[c]))return!1}return!0}function Uv(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Kv=(e,t,i)=>e??t??i,gP=Ke({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:i}){const n=Ji(Of),a=we(()=>e.route||n.value),l=Ji(Xv,0),c=we(()=>{let m=Be(l);const{matched:b}=a.value;let w;for(;(w=b[m])&&!w.components;)m++;return m}),d=we(()=>a.value.matched[c.value]);Wn(Xv,we(()=>c.value+1)),Wn(cP,d),Wn(Of,a);const p=ye();return nt(()=>[p.value,d.value,e.name],([m,b,w],[_,C,I])=>{b&&(b.instances[w]=m,C&&C!==b&&m&&m===_&&(b.leaveGuards.size||(b.leaveGuards=C.leaveGuards),b.updateGuards.size||(b.updateGuards=C.updateGuards))),m&&b&&(!C||!po(b,C)||!_)&&(b.enterCallbacks[w]||[]).forEach(O=>O(m))},{flush:"post"}),()=>{const m=a.value,b=e.name,w=d.value,_=w&&w.components[b];if(!_)return qv(i.default,{Component:_,route:m});const C=w.props[b],I=C?C===!0?m.params:typeof C=="function"?C(m):C:null,M=zr(_,ni({},I,t,{onVnodeUnmounted:N=>{N.component.isUnmounted&&(w.instances[b]=null)},ref:p}));return qv(i.default,{Component:M,route:m})||M}}});function qv(e,t){if(!e)return null;const i=e(t);return i.length===1?i[0]:i}const gw=gP;function mP(e){const t=YO(e.routes,e),i=e.parseQuery||oP,n=e.stringifyQuery||jv,a=e.history,l=Yo(),c=Yo(),d=Yo(),p=ss(rr);let m=rr;Va&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const b=ah.bind(null,Ee=>""+Ee),w=ah.bind(null,aP),_=ah.bind(null,Iu);function C(Ee,Fe){let _e,Ie;return aw(Ee)?(_e=t.getRecordMatcher(Ee),Ie=Fe):Ie=Ee,t.addRoute(Ie,_e)}function I(Ee){const Fe=t.getRecordMatcher(Ee);Fe&&t.removeRoute(Fe)}function O(){return t.getRoutes().map(Ee=>Ee.record)}function M(Ee){return!!t.getRecordMatcher(Ee)}function N(Ee,Fe){if(Fe=ni({},Fe||p.value),typeof Ee=="string"){const ie=oh(i,Ee,Fe.path),j=t.resolve({path:ie.path},Fe),G=a.createHref(ie.fullPath);return ni(ie,j,{params:_(j.params),hash:Iu(ie.hash),redirectedFrom:void 0,href:G})}let _e;if("path"in Ee)_e=ni({},Ee,{path:oh(i,Ee.path,Fe.path).path});else{const ie=ni({},Ee.params);for(const j in ie)ie[j]==null&&delete ie[j];_e=ni({},Ee,{params:w(Ee.params)}),Fe.params=w(Fe.params)}const Ie=t.resolve(_e,Fe),pe=Ee.hash||"";Ie.params=b(_(Ie.params));const xe=bO(n,ni({},Ee,{hash:sP(pe),path:Ie.path})),Te=a.createHref(xe);return ni({fullPath:xe,hash:pe,query:n===jv?lP(Ee.query):Ee.query||{}},Ie,{redirectedFrom:void 0,href:Te})}function k(Ee){return typeof Ee=="string"?oh(i,Ee,p.value.path):ni({},Ee)}function D(Ee,Fe){if(m!==Ee)return go(8,{from:Fe,to:Ee})}function P(Ee){return ee(Ee)}function $(Ee){return P(ni(k(Ee),{replace:!0}))}function H(Ee){const Fe=Ee.matched[Ee.matched.length-1];if(Fe&&Fe.redirect){const{redirect:_e}=Fe;let Ie=typeof _e=="function"?_e(Ee):_e;return typeof Ie=="string"&&(Ie=Ie.includes("?")||Ie.includes("#")?Ie=k(Ie):{path:Ie},Ie.params={}),ni({query:Ee.query,hash:Ee.hash,params:"path"in Ie?{}:Ee.params},Ie)}}function ee(Ee,Fe){const _e=m=N(Ee),Ie=p.value,pe=Ee.state,xe=Ee.force,Te=Ee.replace===!0,ie=H(_e);if(ie)return ee(ni(k(ie),{state:typeof ie=="object"?ni({},pe,ie.state):pe,force:xe,replace:Te}),Fe||_e);const j=_e;j.redirectedFrom=Fe;let G;return!xe&&yO(n,Ie,_e)&&(G=go(16,{to:j,from:Ie}),he(Ie,Ie,!0,!1)),(G?Promise.resolve(G):Q(j,Ie)).catch(le=>On(le)?On(le,2)?le:fe(le):Z(le,j,Ie)).then(le=>{if(le){if(On(le,2))return ee(ni({replace:Te},k(le.to),{state:typeof le.to=="object"?ni({},pe,le.to.state):pe,force:xe}),Fe||j)}else le=ce(j,Ie,!0,Te,pe);return te(j,Ie,le),le})}function se(Ee,Fe){const _e=D(Ee,Fe);return _e?Promise.reject(_e):Promise.resolve()}function Q(Ee,Fe){let _e;const[Ie,pe,xe]=vP(Ee,Fe);_e=lh(Ie.reverse(),"beforeRouteLeave",Ee,Fe);for(const ie of Ie)ie.leaveGuards.forEach(j=>{_e.push(mr(j,Ee,Fe))});const Te=se.bind(null,Ee,Fe);return _e.push(Te),Ma(_e).then(()=>{_e=[];for(const ie of l.list())_e.push(mr(ie,Ee,Fe));return _e.push(Te),Ma(_e)}).then(()=>{_e=lh(pe,"beforeRouteUpdate",Ee,Fe);for(const ie of pe)ie.updateGuards.forEach(j=>{_e.push(mr(j,Ee,Fe))});return _e.push(Te),Ma(_e)}).then(()=>{_e=[];for(const ie of Ee.matched)if(ie.beforeEnter&&!Fe.matched.includes(ie))if(an(ie.beforeEnter))for(const j of ie.beforeEnter)_e.push(mr(j,Ee,Fe));else _e.push(mr(ie.beforeEnter,Ee,Fe));return _e.push(Te),Ma(_e)}).then(()=>(Ee.matched.forEach(ie=>ie.enterCallbacks={}),_e=lh(xe,"beforeRouteEnter",Ee,Fe),_e.push(Te),Ma(_e))).then(()=>{_e=[];for(const ie of c.list())_e.push(mr(ie,Ee,Fe));return _e.push(Te),Ma(_e)}).catch(ie=>On(ie,8)?ie:Promise.reject(ie))}function te(Ee,Fe,_e){for(const Ie of d.list())Ie(Ee,Fe,_e)}function ce(Ee,Fe,_e,Ie,pe){const xe=D(Ee,Fe);if(xe)return xe;const Te=Fe===rr,ie=Va?history.state:{};_e&&(Ie||Te?a.replace(Ee.fullPath,ni({scroll:Te&&ie&&ie.scroll},pe)):a.push(Ee.fullPath,pe)),p.value=Ee,he(Ee,Fe,_e,Te),fe()}let oe;function de(){oe||(oe=a.listen((Ee,Fe,_e)=>{if(!et.listening)return;const Ie=N(Ee),pe=H(Ie);if(pe){ee(ni(pe,{replace:!0}),Ie).catch(gl);return}m=Ie;const xe=p.value;Va&&kO($v(xe.fullPath,_e.delta),wd()),Q(Ie,xe).catch(Te=>On(Te,12)?Te:On(Te,2)?(ee(Te.to,Ie).then(ie=>{On(ie,20)&&!_e.delta&&_e.type===Vl.pop&&a.go(-1,!1)}).catch(gl),Promise.reject()):(_e.delta&&a.go(-_e.delta,!1),Z(Te,Ie,xe))).then(Te=>{Te=Te||ce(Ie,xe,!1),Te&&(_e.delta&&!On(Te,8)?a.go(-_e.delta,!1):_e.type===Vl.pop&&On(Te,20)&&a.go(-1,!1)),te(Ie,xe,Te)}).catch(gl)}))}let be=Yo(),Ce=Yo(),re;function Z(Ee,Fe,_e){fe(Ee);const Ie=Ce.list();return Ie.length?Ie.forEach(pe=>pe(Ee,Fe,_e)):console.error(Ee),Promise.reject(Ee)}function U(){return re&&p.value!==rr?Promise.resolve():new Promise((Ee,Fe)=>{be.add([Ee,Fe])})}function fe(Ee){return re||(re=!Ee,de(),be.list().forEach(([Fe,_e])=>Ee?_e(Ee):Fe()),be.reset()),Ee}function he(Ee,Fe,_e,Ie){const{scrollBehavior:pe}=e;if(!Va||!pe)return Promise.resolve();const xe=!_e&&TO($v(Ee.fullPath,0))||(Ie||!_e)&&history.state&&history.state.scroll||null;return At().then(()=>pe(Ee,Fe,xe)).then(Te=>Te&&AO(Te)).catch(Te=>Z(Te,Ee,Fe))}const ue=Ee=>a.go(Ee);let ve;const Re=new Set,et={currentRoute:p,listening:!0,addRoute:C,removeRoute:I,hasRoute:M,getRoutes:O,resolve:N,options:e,push:P,replace:$,go:ue,back:()=>ue(-1),forward:()=>ue(1),beforeEach:l.add,beforeResolve:c.add,afterEach:d.add,onError:Ce.add,isReady:U,install(Ee){const Fe=this;Ee.component("RouterLink",hP),Ee.component("RouterView",gw),Ee.config.globalProperties.$router=Fe,Object.defineProperty(Ee.config.globalProperties,"$route",{enumerable:!0,get:()=>Be(p)}),Va&&!ve&&p.value===rr&&(ve=!0,P(a.location).catch(pe=>{}));const _e={};for(const pe in rr)_e[pe]=we(()=>p.value[pe]);Ee.provide(tg,Fe),Ee.provide(pw,Wt(_e)),Ee.provide(Of,p);const Ie=Ee.unmount;Re.add(Ee),Ee.unmount=function(){Re.delete(Ee),Re.size<1&&(m=rr,oe&&oe(),oe=null,p.value=rr,ve=!1,re=!1),Ie()}}};return et}function Ma(e){return e.reduce((t,i)=>t.then(()=>i()),Promise.resolve())}function vP(e,t){const i=[],n=[],a=[],l=Math.max(t.matched.length,e.matched.length);for(let c=0;cpo(m,d))?n.push(d):i.push(d));const p=e.matched[c];p&&(t.matched.find(m=>po(m,p))||a.push(p))}return[i,n,a]}function mw(e,t){return function(){return e.apply(t,arguments)}}const{toString:bP}=Object.prototype,{getPrototypeOf:ig}=Object,_d=(e=>t=>{const i=bP.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),En=e=>(e=e.toLowerCase(),t=>_d(t)===e),Sd=e=>t=>typeof t===e,{isArray:Lo}=Array,Bl=Sd("undefined");function yP(e){return e!==null&&!Bl(e)&&e.constructor!==null&&!Bl(e.constructor)&&Fs(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const vw=En("ArrayBuffer");function xP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&vw(e.buffer),t}const wP=Sd("string"),Fs=Sd("function"),bw=Sd("number"),Ed=e=>e!==null&&typeof e=="object",_P=e=>e===!0||e===!1,tu=e=>{if(_d(e)!=="object")return!1;const t=ig(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},SP=En("Date"),EP=En("File"),CP=En("Blob"),AP=En("FileList"),kP=e=>Ed(e)&&Fs(e.pipe),TP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Fs(e.append)&&((t=_d(e))==="formdata"||t==="object"&&Fs(e.toString)&&e.toString()==="[object FormData]"))},IP=En("URLSearchParams"),OP=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tc(e,t,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Lo(e))for(n=0,a=e.length;n0;)if(a=i[n],t===a.toLowerCase())return a;return null}const xw=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ww=e=>!Bl(e)&&e!==xw;function Pf(){const{caseless:e}=ww(this)&&this||{},t={},i=(n,a)=>{const l=e&&yw(t,a)||a;tu(t[l])&&tu(n)?t[l]=Pf(t[l],n):tu(n)?t[l]=Pf({},n):Lo(n)?t[l]=n.slice():t[l]=n};for(let n=0,a=arguments.length;n(tc(t,(a,l)=>{i&&Fs(a)?e[l]=mw(a,i):e[l]=a},{allOwnKeys:n}),e),LP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),MP=(e,t,i,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},NP=(e,t,i,n)=>{let a,l,c;const d={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),l=a.length;l-- >0;)c=a[l],(!n||n(c,e,t))&&!d[c]&&(t[c]=e[c],d[c]=!0);e=i!==!1&&ig(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},RP=(e,t,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=t.length;const n=e.indexOf(t,i);return n!==-1&&n===i},DP=e=>{if(!e)return null;if(Lo(e))return e;let t=e.length;if(!bw(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},$P=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ig(Uint8Array)),FP=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const l=a.value;t.call(e,l[0],l[1])}},zP=(e,t)=>{let i;const n=[];for(;(i=e.exec(t))!==null;)n.push(i);return n},HP=En("HTMLFormElement"),VP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,n,a){return n.toUpperCase()+a}),Zv=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),BP=En("RegExp"),_w=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),n={};tc(i,(a,l)=>{let c;(c=t(a,l,e))!==!1&&(n[l]=c||a)}),Object.defineProperties(e,n)},WP=e=>{_w(e,(t,i)=>{if(Fs(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const n=e[i];if(Fs(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},YP=(e,t)=>{const i={},n=a=>{a.forEach(l=>{i[l]=!0})};return Lo(e)?n(e):n(String(e).split(t)),i},jP=()=>{},XP=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ch="abcdefghijklmnopqrstuvwxyz",Jv="0123456789",Sw={DIGIT:Jv,ALPHA:ch,ALPHA_DIGIT:ch+ch.toUpperCase()+Jv},GP=(e=16,t=Sw.ALPHA_DIGIT)=>{let i="";const{length:n}=t;for(;e--;)i+=t[Math.random()*n|0];return i};function UP(e){return!!(e&&Fs(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const KP=e=>{const t=new Array(10),i=(n,a)=>{if(Ed(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const l=Lo(n)?[]:{};return tc(n,(c,d)=>{const p=i(c,a+1);!Bl(p)&&(l[d]=p)}),t[a]=void 0,l}}return n};return i(e,0)},qP=En("AsyncFunction"),ZP=e=>e&&(Ed(e)||Fs(e))&&Fs(e.then)&&Fs(e.catch),Ge={isArray:Lo,isArrayBuffer:vw,isBuffer:yP,isFormData:TP,isArrayBufferView:xP,isString:wP,isNumber:bw,isBoolean:_P,isObject:Ed,isPlainObject:tu,isUndefined:Bl,isDate:SP,isFile:EP,isBlob:CP,isRegExp:BP,isFunction:Fs,isStream:kP,isURLSearchParams:IP,isTypedArray:$P,isFileList:AP,forEach:tc,merge:Pf,extend:PP,trim:OP,stripBOM:LP,inherits:MP,toFlatObject:NP,kindOf:_d,kindOfTest:En,endsWith:RP,toArray:DP,forEachEntry:FP,matchAll:zP,isHTMLForm:HP,hasOwnProperty:Zv,hasOwnProp:Zv,reduceDescriptors:_w,freezeMethods:WP,toObjectSet:YP,toCamelCase:VP,noop:jP,toFiniteNumber:XP,findKey:yw,global:xw,isContextDefined:ww,ALPHABET:Sw,generateString:GP,isSpecCompliantForm:UP,toJSONObject:KP,isAsyncFn:qP,isThenable:ZP};function qt(e,t,i,n,a){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),i&&(this.config=i),n&&(this.request=n),a&&(this.response=a)}Ge.inherits(qt,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:Ge.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ew=qt.prototype,Cw={};["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=>{Cw[e]={value:e}});Object.defineProperties(qt,Cw);Object.defineProperty(Ew,"isAxiosError",{value:!0});qt.from=(e,t,i,n,a,l)=>{const c=Object.create(Ew);return Ge.toFlatObject(e,c,function(p){return p!==Error.prototype},d=>d!=="isAxiosError"),qt.call(c,e.message,t,i,n,a),c.cause=e,c.name=e.name,l&&Object.assign(c,l),c};const JP=null;function Lf(e){return Ge.isPlainObject(e)||Ge.isArray(e)}function Aw(e){return Ge.endsWith(e,"[]")?e.slice(0,-2):e}function Qv(e,t,i){return e?e.concat(t).map(function(a,l){return a=Aw(a),!i&&l?"["+a+"]":a}).join(i?".":""):t}function QP(e){return Ge.isArray(e)&&!e.some(Lf)}const eL=Ge.toFlatObject(Ge,{},null,function(t){return/^is[A-Z]/.test(t)});function Cd(e,t,i){if(!Ge.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,i=Ge.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O,M){return!Ge.isUndefined(M[O])});const n=i.metaTokens,a=i.visitor||b,l=i.dots,c=i.indexes,p=(i.Blob||typeof Blob<"u"&&Blob)&&Ge.isSpecCompliantForm(t);if(!Ge.isFunction(a))throw new TypeError("visitor must be a function");function m(I){if(I===null)return"";if(Ge.isDate(I))return I.toISOString();if(!p&&Ge.isBlob(I))throw new qt("Blob is not supported. Use a Buffer instead.");return Ge.isArrayBuffer(I)||Ge.isTypedArray(I)?p&&typeof Blob=="function"?new Blob([I]):Buffer.from(I):I}function b(I,O,M){let N=I;if(I&&!M&&typeof I=="object"){if(Ge.endsWith(O,"{}"))O=n?O:O.slice(0,-2),I=JSON.stringify(I);else if(Ge.isArray(I)&&QP(I)||(Ge.isFileList(I)||Ge.endsWith(O,"[]"))&&(N=Ge.toArray(I)))return O=Aw(O),N.forEach(function(D,P){!(Ge.isUndefined(D)||D===null)&&t.append(c===!0?Qv([O],P,l):c===null?O:O+"[]",m(D))}),!1}return Lf(I)?!0:(t.append(Qv(M,O,l),m(I)),!1)}const w=[],_=Object.assign(eL,{defaultVisitor:b,convertValue:m,isVisitable:Lf});function C(I,O){if(!Ge.isUndefined(I)){if(w.indexOf(I)!==-1)throw Error("Circular reference detected in "+O.join("."));w.push(I),Ge.forEach(I,function(N,k){(!(Ge.isUndefined(N)||N===null)&&a.call(t,N,Ge.isString(k)?k.trim():k,O,_))===!0&&C(N,O?O.concat(k):[k])}),w.pop()}}if(!Ge.isObject(e))throw new TypeError("data must be an object");return C(e),t}function eb(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function sg(e,t){this._pairs=[],e&&Cd(e,this,t)}const kw=sg.prototype;kw.append=function(t,i){this._pairs.push([t,i])};kw.toString=function(t){const i=t?function(n){return t.call(this,n,eb)}:eb;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function tL(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Tw(e,t,i){if(!t)return e;const n=i&&i.encode||tL,a=i&&i.serialize;let l;if(a?l=a(t,i):l=Ge.isURLSearchParams(t)?t.toString():new sg(t,i).toString(n),l){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class iL{constructor(){this.handlers=[]}use(t,i,n){return this.handlers.push({fulfilled:t,rejected:i,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ge.forEach(this.handlers,function(n){n!==null&&t(n)})}}const tb=iL,Iw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sL=typeof URLSearchParams<"u"?URLSearchParams:sg,nL=typeof FormData<"u"?FormData:null,rL=typeof Blob<"u"?Blob:null,aL={isBrowser:!0,classes:{URLSearchParams:sL,FormData:nL,Blob:rL},protocols:["http","https","file","blob","url","data"]},Ow=typeof window<"u"&&typeof document<"u",oL=(e=>Ow&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),lL=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),cL=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ow,hasStandardBrowserEnv:oL,hasStandardBrowserWebWorkerEnv:lL},Symbol.toStringTag,{value:"Module"})),hn={...cL,...aL};function uL(e,t){return Cd(e,new hn.classes.URLSearchParams,Object.assign({visitor:function(i,n,a,l){return hn.isNode&&Ge.isBuffer(i)?(this.append(n,i.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function dL(e){return Ge.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hL(e){const t={},i=Object.keys(e);let n;const a=i.length;let l;for(n=0;n=i.length;return c=!c&&Ge.isArray(a)?a.length:c,p?(Ge.hasOwnProp(a,c)?a[c]=[a[c],n]:a[c]=n,!d):((!a[c]||!Ge.isObject(a[c]))&&(a[c]=[]),t(i,n,a[c],l)&&Ge.isArray(a[c])&&(a[c]=hL(a[c])),!d)}if(Ge.isFormData(e)&&Ge.isFunction(e.entries)){const i={};return Ge.forEachEntry(e,(n,a)=>{t(dL(n),a,i,0)}),i}return null}function fL(e,t,i){if(Ge.isString(e))try{return(t||JSON.parse)(e),Ge.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(e)}const ng={transitional:Iw,adapter:["xhr","http"],transformRequest:[function(t,i){const n=i.getContentType()||"",a=n.indexOf("application/json")>-1,l=Ge.isObject(t);if(l&&Ge.isHTMLForm(t)&&(t=new FormData(t)),Ge.isFormData(t))return a&&a?JSON.stringify(Pw(t)):t;if(Ge.isArrayBuffer(t)||Ge.isBuffer(t)||Ge.isStream(t)||Ge.isFile(t)||Ge.isBlob(t))return t;if(Ge.isArrayBufferView(t))return t.buffer;if(Ge.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(l){if(n.indexOf("application/x-www-form-urlencoded")>-1)return uL(t,this.formSerializer).toString();if((d=Ge.isFileList(t))||n.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Cd(d?{"files[]":t}:t,p&&new p,this.formSerializer)}}return l||a?(i.setContentType("application/json",!1),fL(t)):t}],transformResponse:[function(t){const i=this.transitional||ng.transitional,n=i&&i.forcedJSONParsing,a=this.responseType==="json";if(t&&Ge.isString(t)&&(n&&!this.responseType||a)){const c=!(i&&i.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(d){if(c)throw d.name==="SyntaxError"?qt.from(d,qt.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:hn.classes.FormData,Blob:hn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ge.forEach(["delete","get","head","post","put","patch"],e=>{ng.headers[e]={}});const rg=ng,pL=Ge.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"]),gL=e=>{const t={};let i,n,a;return e&&e.split(` -`).forEach(function(c){a=c.indexOf(":"),i=c.substring(0,a).trim().toLowerCase(),n=c.substring(a+1).trim(),!(!i||t[i]&&pL[i])&&(i==="set-cookie"?t[i]?t[i].push(n):t[i]=[n]:t[i]=t[i]?t[i]+", "+n:n)}),t},ib=Symbol("internals");function jo(e){return e&&String(e).trim().toLowerCase()}function iu(e){return e===!1||e==null?e:Ge.isArray(e)?e.map(iu):String(e)}function mL(e){const t=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=i.exec(e);)t[n[1]]=n[2];return t}const vL=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function uh(e,t,i,n,a){if(Ge.isFunction(n))return n.call(this,t,i);if(a&&(t=i),!!Ge.isString(t)){if(Ge.isString(n))return t.indexOf(n)!==-1;if(Ge.isRegExp(n))return n.test(t)}}function bL(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,i,n)=>i.toUpperCase()+n)}function yL(e,t){const i=Ge.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+i,{value:function(a,l,c){return this[n].call(this,t,a,l,c)},configurable:!0})})}class Ad{constructor(t){t&&this.set(t)}set(t,i,n){const a=this;function l(d,p,m){const b=jo(p);if(!b)throw new Error("header name must be a non-empty string");const w=Ge.findKey(a,b);(!w||a[w]===void 0||m===!0||m===void 0&&a[w]!==!1)&&(a[w||p]=iu(d))}const c=(d,p)=>Ge.forEach(d,(m,b)=>l(m,b,p));return Ge.isPlainObject(t)||t instanceof this.constructor?c(t,i):Ge.isString(t)&&(t=t.trim())&&!vL(t)?c(gL(t),i):t!=null&&l(i,t,n),this}get(t,i){if(t=jo(t),t){const n=Ge.findKey(this,t);if(n){const a=this[n];if(!i)return a;if(i===!0)return mL(a);if(Ge.isFunction(i))return i.call(this,a,n);if(Ge.isRegExp(i))return i.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,i){if(t=jo(t),t){const n=Ge.findKey(this,t);return!!(n&&this[n]!==void 0&&(!i||uh(this,this[n],n,i)))}return!1}delete(t,i){const n=this;let a=!1;function l(c){if(c=jo(c),c){const d=Ge.findKey(n,c);d&&(!i||uh(n,n[d],d,i))&&(delete n[d],a=!0)}}return Ge.isArray(t)?t.forEach(l):l(t),a}clear(t){const i=Object.keys(this);let n=i.length,a=!1;for(;n--;){const l=i[n];(!t||uh(this,this[l],l,t,!0))&&(delete this[l],a=!0)}return a}normalize(t){const i=this,n={};return Ge.forEach(this,(a,l)=>{const c=Ge.findKey(n,l);if(c){i[c]=iu(a),delete i[l];return}const d=t?bL(l):String(l).trim();d!==l&&delete i[l],i[d]=iu(a),n[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const i=Object.create(null);return Ge.forEach(this,(n,a)=>{n!=null&&n!==!1&&(i[a]=t&&Ge.isArray(n)?n.join(", "):n)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,i])=>t+": "+i).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...i){const n=new this(t);return i.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[ib]=this[ib]={accessors:{}}).accessors,a=this.prototype;function l(c){const d=jo(c);n[d]||(yL(a,c),n[d]=!0)}return Ge.isArray(t)?t.forEach(l):l(t),this}}Ad.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ge.reduceDescriptors(Ad.prototype,({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[i]=n}}});Ge.freezeMethods(Ad);const Yn=Ad;function dh(e,t){const i=this||rg,n=t||i,a=Yn.from(n.headers);let l=n.data;return Ge.forEach(e,function(d){l=d.call(i,l,a.normalize(),t?t.status:void 0)}),a.normalize(),l}function Lw(e){return!!(e&&e.__CANCEL__)}function ic(e,t,i){qt.call(this,e??"canceled",qt.ERR_CANCELED,t,i),this.name="CanceledError"}Ge.inherits(ic,qt,{__CANCEL__:!0});function xL(e,t,i){const n=i.config.validateStatus;!i.status||!n||n(i.status)?e(i):t(new qt("Request failed with status code "+i.status,[qt.ERR_BAD_REQUEST,qt.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}const wL=hn.hasStandardBrowserEnv?{write(e,t,i,n,a,l){const c=[e+"="+encodeURIComponent(t)];Ge.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),Ge.isString(n)&&c.push("path="+n),Ge.isString(a)&&c.push("domain="+a),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function _L(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function SL(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Mw(e,t){return e&&!_L(t)?SL(e,t):t}const EL=hn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");let n;function a(l){let c=l;return t&&(i.setAttribute("href",c),c=i.href),i.setAttribute("href",c),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return n=a(window.location.href),function(c){const d=Ge.isString(c)?a(c):c;return d.protocol===n.protocol&&d.host===n.host}}():function(){return function(){return!0}}();function CL(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function AL(e,t){e=e||10;const i=new Array(e),n=new Array(e);let a=0,l=0,c;return t=t!==void 0?t:1e3,function(p){const m=Date.now(),b=n[l];c||(c=m),i[a]=p,n[a]=m;let w=l,_=0;for(;w!==a;)_+=i[w++],w=w%e;if(a=(a+1)%e,a===l&&(l=(l+1)%e),m-c{const l=a.loaded,c=a.lengthComputable?a.total:void 0,d=l-i,p=n(d),m=l<=c;i=l;const b={loaded:l,total:c,progress:c?l/c:void 0,bytes:d,rate:p||void 0,estimated:p&&c&&m?(c-l)/p:void 0,event:a};b[t?"download":"upload"]=!0,e(b)}}const kL=typeof XMLHttpRequest<"u",TL=kL&&function(e){return new Promise(function(i,n){let a=e.data;const l=Yn.from(e.headers).normalize();let{responseType:c,withXSRFToken:d}=e,p;function m(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}let b;if(Ge.isFormData(a)){if(hn.hasStandardBrowserEnv||hn.hasStandardBrowserWebWorkerEnv)l.setContentType(!1);else if((b=l.getContentType())!==!1){const[O,...M]=b?b.split(";").map(N=>N.trim()).filter(Boolean):[];l.setContentType([O||"multipart/form-data",...M].join("; "))}}let w=new XMLHttpRequest;if(e.auth){const O=e.auth.username||"",M=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";l.set("Authorization","Basic "+btoa(O+":"+M))}const _=Mw(e.baseURL,e.url);w.open(e.method.toUpperCase(),Tw(_,e.params,e.paramsSerializer),!0),w.timeout=e.timeout;function C(){if(!w)return;const O=Yn.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),N={data:!c||c==="text"||c==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:O,config:e,request:w};xL(function(D){i(D),m()},function(D){n(D),m()},N),w=null}if("onloadend"in w?w.onloadend=C:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(C)},w.onabort=function(){w&&(n(new qt("Request aborted",qt.ECONNABORTED,e,w)),w=null)},w.onerror=function(){n(new qt("Network Error",qt.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){let M=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const N=e.transitional||Iw;e.timeoutErrorMessage&&(M=e.timeoutErrorMessage),n(new qt(M,N.clarifyTimeoutError?qt.ETIMEDOUT:qt.ECONNABORTED,e,w)),w=null},hn.hasStandardBrowserEnv&&(d&&Ge.isFunction(d)&&(d=d(e)),d||d!==!1&&EL(_))){const O=e.xsrfHeaderName&&e.xsrfCookieName&&wL.read(e.xsrfCookieName);O&&l.set(e.xsrfHeaderName,O)}a===void 0&&l.setContentType(null),"setRequestHeader"in w&&Ge.forEach(l.toJSON(),function(M,N){w.setRequestHeader(N,M)}),Ge.isUndefined(e.withCredentials)||(w.withCredentials=!!e.withCredentials),c&&c!=="json"&&(w.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&w.addEventListener("progress",sb(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",sb(e.onUploadProgress)),(e.cancelToken||e.signal)&&(p=O=>{w&&(n(!O||O.type?new ic(null,e,w):O),w.abort(),w=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p)));const I=CL(_);if(I&&hn.protocols.indexOf(I)===-1){n(new qt("Unsupported protocol "+I+":",qt.ERR_BAD_REQUEST,e));return}w.send(a||null)})},Mf={http:JP,xhr:TL};Ge.forEach(Mf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const nb=e=>`- ${e}`,IL=e=>Ge.isFunction(e)||e===null||e===!1,Nw={getAdapter:e=>{e=Ge.isArray(e)?e:[e];const{length:t}=e;let i,n;const a={};for(let l=0;l`adapter ${d} `+(p===!1?"is not supported by the environment":"is not available in the build"));let c=t?l.length>1?`since : -`+l.map(nb).join(` -`):" "+nb(l[0]):"as no adapter specified";throw new qt("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return n},adapters:Mf};function hh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ic(null,e)}function rb(e){return hh(e),e.headers=Yn.from(e.headers),e.data=dh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Nw.getAdapter(e.adapter||rg.adapter)(e).then(function(n){return hh(e),n.data=dh.call(e,e.transformResponse,n),n.headers=Yn.from(n.headers),n},function(n){return Lw(n)||(hh(e),n&&n.response&&(n.response.data=dh.call(e,e.transformResponse,n.response),n.response.headers=Yn.from(n.response.headers))),Promise.reject(n)})}const ab=e=>e instanceof Yn?e.toJSON():e;function mo(e,t){t=t||{};const i={};function n(m,b,w){return Ge.isPlainObject(m)&&Ge.isPlainObject(b)?Ge.merge.call({caseless:w},m,b):Ge.isPlainObject(b)?Ge.merge({},b):Ge.isArray(b)?b.slice():b}function a(m,b,w){if(Ge.isUndefined(b)){if(!Ge.isUndefined(m))return n(void 0,m,w)}else return n(m,b,w)}function l(m,b){if(!Ge.isUndefined(b))return n(void 0,b)}function c(m,b){if(Ge.isUndefined(b)){if(!Ge.isUndefined(m))return n(void 0,m)}else return n(void 0,b)}function d(m,b,w){if(w in t)return n(m,b);if(w in e)return n(void 0,m)}const p={url:l,method:l,data:l,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(m,b)=>a(ab(m),ab(b),!0)};return Ge.forEach(Object.keys(Object.assign({},e,t)),function(b){const w=p[b]||a,_=w(e[b],t[b],b);Ge.isUndefined(_)&&w!==d||(i[b]=_)}),i}const Rw="1.6.2",ag={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ag[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ob={};ag.transitional=function(t,i,n){function a(l,c){return"[Axios v"+Rw+"] Transitional option '"+l+"'"+c+(n?". "+n:"")}return(l,c,d)=>{if(t===!1)throw new qt(a(c," has been removed"+(i?" in "+i:"")),qt.ERR_DEPRECATED);return i&&!ob[c]&&(ob[c]=!0,console.warn(a(c," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(l,c,d):!0}};function OL(e,t,i){if(typeof e!="object")throw new qt("options must be an object",qt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const l=n[a],c=t[l];if(c){const d=e[l],p=d===void 0||c(d,l,e);if(p!==!0)throw new qt("option "+l+" must be "+p,qt.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new qt("Unknown option "+l,qt.ERR_BAD_OPTION)}}const Nf={assertOptions:OL,validators:ag},ar=Nf.validators;class Ou{constructor(t){this.defaults=t,this.interceptors={request:new tb,response:new tb}}request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=mo(this.defaults,i);const{transitional:n,paramsSerializer:a,headers:l}=i;n!==void 0&&Nf.assertOptions(n,{silentJSONParsing:ar.transitional(ar.boolean),forcedJSONParsing:ar.transitional(ar.boolean),clarifyTimeoutError:ar.transitional(ar.boolean)},!1),a!=null&&(Ge.isFunction(a)?i.paramsSerializer={serialize:a}:Nf.assertOptions(a,{encode:ar.function,serialize:ar.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();let c=l&&Ge.merge(l.common,l[i.method]);l&&Ge.forEach(["delete","get","head","post","put","patch","common"],I=>{delete l[I]}),i.headers=Yn.concat(c,l);const d=[];let p=!0;this.interceptors.request.forEach(function(O){typeof O.runWhen=="function"&&O.runWhen(i)===!1||(p=p&&O.synchronous,d.unshift(O.fulfilled,O.rejected))});const m=[];this.interceptors.response.forEach(function(O){m.push(O.fulfilled,O.rejected)});let b,w=0,_;if(!p){const I=[rb.bind(this),void 0];for(I.unshift.apply(I,d),I.push.apply(I,m),_=I.length,b=Promise.resolve(i);w<_;)b=b.then(I[w++],I[w++]);return b}_=d.length;let C=i;for(w=0;w<_;){const I=d[w++],O=d[w++];try{C=I(C)}catch(M){O.call(this,M);break}}try{b=rb.call(this,C)}catch(I){return Promise.reject(I)}for(w=0,_=m.length;w<_;)b=b.then(m[w++],m[w++]);return b}getUri(t){t=mo(this.defaults,t);const i=Mw(t.baseURL,t.url);return Tw(i,t.params,t.paramsSerializer)}}Ge.forEach(["delete","get","head","options"],function(t){Ou.prototype[t]=function(i,n){return this.request(mo(n||{},{method:t,url:i,data:(n||{}).data}))}});Ge.forEach(["post","put","patch"],function(t){function i(n){return function(l,c,d){return this.request(mo(d||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:l,data:c}))}}Ou.prototype[t]=i(),Ou.prototype[t+"Form"]=i(!0)});const su=Ou;class og{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(l){i=l});const n=this;this.promise.then(a=>{if(!n._listeners)return;let l=n._listeners.length;for(;l-- >0;)n._listeners[l](a);n._listeners=null}),this.promise.then=a=>{let l;const c=new Promise(d=>{n.subscribe(d),l=d}).then(a);return c.cancel=function(){n.unsubscribe(l)},c},t(function(l,c,d){n.reason||(n.reason=new ic(l,c,d),i(n.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 i=this._listeners.indexOf(t);i!==-1&&this._listeners.splice(i,1)}static source(){let t;return{token:new og(function(a){t=a}),cancel:t}}}const PL=og;function LL(e){return function(i){return e.apply(null,i)}}function ML(e){return Ge.isObject(e)&&e.isAxiosError===!0}const Rf={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(Rf).forEach(([e,t])=>{Rf[t]=e});const NL=Rf;function Dw(e){const t=new su(e),i=mw(su.prototype.request,t);return Ge.extend(i,su.prototype,t,{allOwnKeys:!0}),Ge.extend(i,t,null,{allOwnKeys:!0}),i.create=function(a){return Dw(mo(e,a))},i}const Ri=Dw(rg);Ri.Axios=su;Ri.CanceledError=ic;Ri.CancelToken=PL;Ri.isCancel=Lw;Ri.VERSION=Rw;Ri.toFormData=Cd;Ri.AxiosError=qt;Ri.Cancel=Ri.CanceledError;Ri.all=function(t){return Promise.all(t)};Ri.spread=LL;Ri.isAxiosError=ML;Ri.mergeConfig=mo;Ri.AxiosHeaders=Yn;Ri.formToJSON=e=>Pw(Ge.isHTMLForm(e)?new FormData(e):e);Ri.getAdapter=Nw.getAdapter;Ri.HttpStatusCode=NL;Ri.default=Ri;const Yt=Ri;var He=(e=>(e.multi_tags="multi_tags",e.tag="tag",e.string="text",e.number="number",e.date="date",e.color="color",e.url="url",e.checkbox="checkbox",e.path="path",e.image_link="image_link",e._ahash="ahash",e._sha1="sha1",e._folders="folder",e._id="id",e._width="width",e._height="height",e))(He||{}),ki=(e=>(e.sha1="sha1",e.id="id",e))(ki||{}),Pu=(e=>(e[e.id=-1]="id",e[e.sha1=-2]="sha1",e[e.ahash=-3]="ahash",e[e.folders=-4]="folders",e[e.width=-5]="width",e[e.height=-6]="height",e))(Pu||{});function Df(e,t,i,n,a=-1){return{id:e,propertyId:t,value:i,parents:n??[],color:a}}var Hi=(e=>(e.IMAGE="image",e.IMAGE_ZOOM="image_zoom",e.PROPERTY="property",e.SHA1PILE="sha1pile",e.FOLDERTOPROP="folder_to_property",e.EXPORT="export",e.FOLDERSELECTION="explorer",e.SETTINGS="settings",e.IMPORT="import",e.TAG="tag",e.FIRSTMODAL="firstmodal",e))(Hi||{});const Mr=[{name:"red",color:"#ff8787"},{name:"pink",color:"#f783ac"},{name:"grape",color:"#da77f2"},{name:"violet",color:"#9775fa"},{name:"indigo",color:"#748ffc"},{name:"blue",color:"#4dabf7"},{name:"cyan",color:"#3bc9db"},{name:"teal",color:"#38d9a9"},{name:"green",color:"#69db7c"},{name:"lime",color:"#a9e34b"},{name:"yellow",color:"#ffd43b"},{name:"orange",color:"#ffa94d"}];var ti=(e=>(e.Year="Year",e.Month="Month",e.Week="Week",e.Day="Day",e.Hour="Hour",e.Minute="Minute",e.Second="Second",e))(ti||{});const RL={Year:1,Month:1,Week:60*60*24*7,Day:60*60*24,Hour:60*60,Minute:60,Second:1};class DL{constructor(t,i,n,a,l,c){$t(this,"images");$t(this,"state");$t(this,"filterManager");$t(this,"sortManager");$t(this,"groupManager");$t(this,"options");this.filterManager=new WL(i),this.sortManager=new ZL(n),this.groupManager=new Aa(a,l),this.state=Wt({isDirty:!1}),this.filterManager.onChange.addListener(this.onFilter.bind(this)),this.sortManager.onChange.addListener(this.onSort.bind(this)),this.groupManager.onChange.addListener(this.onGroup.bind(this)),this.filterManager.onDirty.addListener(()=>this.setDirty()),this.options=c??{autoReload:!1},yt().onChange.addListener(p=>this.updateInstances(p))}load(t,i,n){this.filterManager.load(t),this.sortManager.load(i),this.groupManager.load(n)}verifyState(){const t=yt();this.filterManager.verifyState(t.properties),this.sortManager.verifyState(t.properties),this.groupManager.verifyState(t.properties)}async setDirty(t){if(this.state.isDirty=!0,this.options.autoReload)if(t){const i=await this.filterManager.updateSelection(t);this.sortManager.updateSelection(i.updated,i.removed),this.groupManager.lastOrder=this.sortManager.result.order,this.groupManager.updateSelection(i.updated,i.removed),this.state.isDirty=!1}else this.update()}async update(t){if(this.images=t??this.images,!this.images)return;const i=await this.filterManager.filter(Ls(this.images)),n=this.sortManager.sort(i.images);this.groupManager.group(n.images,n.order,!0),this.state.isDirty=!1}onFilter(t){const i=this.sortManager.sort(t.images);this.groupManager.group(i.images,i.order,!0)}onSort(t){this.groupManager.sort(t.order,!0)}onGroup(){}updateInstances(t){this.setDirty(t)}}class $L{constructor(t){$t(this,"isLoaded");$t(this,"state");$t(this,"collection");$t(this,"onLoad");this.isLoaded=!1,this.state=Wt({}),this.collection=new DL(void 0,void 0,void 0,void 0,void 0,this.state),this.onLoad=new vo,t&&this.load(t)}async load(t){const i=yt();Object.assign(this.state,Ea(t)),t&&(this.collection.load(t.filterState,t.sortState,t.groupState),this.verifyState(),this.isLoaded=!0,await this.collection.update(i.instances),this.onLoad.emit())}verifyState(){const t=yt();this.collection.verifyState(),this.state.propertyOptions==null&&(this.state.propertyOptions={});for(let i in t.properties)this.state.propertyOptions[i]=Object.assign(Vw(),this.state.propertyOptions[i])}saveState(){Ii().updateTabs()}setVisibleProperty(t,i){this.state.visibleProperties[t]=i}isVisibleProperty(t){return this.state.visibleProperties[t]}getSha1Mode(){return this.collection.groupManager.state.sha1Mode}getVisibleProperties(){return yt().propertyList.filter(i=>this.isVisibleProperty(i.id))}getVisibleSha1Properties(){return this.getVisibleProperties().filter(t=>t.mode==ki.sha1)}}let or;ss({count:0});const $w=2,Ii=gd("projectStore",()=>{let e=0;const t=yt(),i=ye(!1),n=ss({}),a=Wt({tabs:{},selectedTabId:void 0,plugins:[],vectors:{},counter:0,settings:{}}),l=Wt({loaded:!1,projectNotOpen:!1,changed:!1,renderNb:0,onUndo:0,import:{}}),c=ye({}),d=ye(null);async function p(){console.log("init"),or||(or=new $L);let re=await mb(),Z=await vb(),U=await PM(),fe=await pM(),he=await $M();d.value=(await bb()).status,a.plugins=re,a.vectors=U,c.value=Z,a.settings=he,e+=1,m(e),H(),localStorage.getItem("tutorialFinished")!="true"&&(i.value=!0),await t.init(),await $(fe),C(),l.loaded=!0}async function m(re){for(;e==re;){const Z=await bb();if(e!=re)return;if(Z&&(Z.status&&await I(Z.status),Z.actions&&b(Z.actions),Z.plugins&&w(Z.plugins),Z.commits)){for(let U of Z.commits)t.applyCommit(U);or.collection.update()}await Gw(1e3)}}function b(re){c.value={},re.forEach(Z=>c.value[Z.id]=Z)}function w(re){a.plugins=re}function _(){Object.assign(a,{tabs:{},selectedTabId:void 0,plugins:[],vectors:{},counter:0,settings:{}}),Object.assign(l,{loaded:!1,projectNotOpen:!1,changed:!1,renderNb:0,onUndo:0,import:{}}),c.value={},d.value=null,or=void 0,e=0,t.clear()}function C(){or.verifyState()}async function I(re){d.value=re}async function O(){await At(),p()}function M(){return Q().state}async function N(re){let Z=YL();Z.name=re;const U=Math.max(-1,...Object.keys(a.tabs).map(Number))+1;Z.id=U,a.tabs[U]=Z,ph(a.tabs),await P(U)}async function k(re){if(Cs(a.tabs).length==1)await N("Tab1");else{let Z=Cs(a.tabs).sort((U,fe)=>U.id-fe.id).findIndex(U=>U.id==re);Z=Z!=0?Z-1:1,await P(Cs(a.tabs)[Z].id)}delete a.tabs[re],await ph(a.tabs)}async function D(){Object.assign(a.tabs[a.selectedTabId],or.state),await ph(a.tabs)}async function P(re){Cs(a.tabs).forEach(Z=>{Z.id==re?Z.selected=!0:Z.selected=!1}),a.selectedTabId=re,await or.load(a.tabs[a.selectedTabId]),H()}async function $(re){for(let Z of Object.values(re))Z.version==$w&&(a.tabs[Z.id]=Z);if(Object.keys(a.tabs).length==0)await N("Tab1");else{const Z=Cs(a.tabs).find(U=>U.selected);Z?await P(Z.id):await P(re[0].id)}H()}function H(){for(let re in a.tabs){const Z=a.tabs[re];Z.propertyOptions==null&&(Z.propertyOptions={});for(let U in t.properties)Z.propertyOptions[U]=Object.assign(Vw(),Z.propertyOptions[U])}}function ee(){l.renderNb+=1}async function se(re){const Z=await gM(re);return p(),Z}function Q(){return or}function te(){l.import.to_import=void 0}async function ce(){a.plugins=await mb(),c.value=await vb()}async function oe(re,Z){const U=await OM(re,Z);a.plugins=U}async function de(re){a.vectors=await LM(re)}async function be(re){const Z=await Kw(re);return Z.commit&&(t.applyCommit(Z.commit),Z.commit.properties&&Z.commit.properties.forEach(U=>M().visibleProperties[U.id]=!0)),Z}async function Ce(re){const Z=await FM(re);a.settings=Z}return{data:a,status:l,images:n,init:p,clear:_,rerender:ee,addTab:N,removeTab:k,updateTabs:D,selectTab:P,getTab:M,getTabManager:Q,updateSettings:Ce,uploadPropFile:se,clearImport:te,updatePluginInfos:ce,setPluginParams:oe,call:be,actions:c,setDefaultVectors:de,backendStatus:d,reload:O,updatePropertyOptions:H,showTutorial:i}});function l6(e){switch(e){case"contains":case"containsAll":case"containsAny":case"containsNot":case"equal":case"equalNot":case"geq":case"greater":case"leq":case"lower":case"like":case"notLike":case"startsWith":return!0;default:return!1}}function FL(e){switch(e){case He.checkbox:return["isTrue","isFalse"];case He.color:return["isSet","notSet","equal","equalNot"];case He.date:return["isSet","notSet","equal","equalNot","leq","lower","greater","geq"];case He.image_link:return["isSet","notSet","equal","equalNot"];case He.multi_tags:return["isSet","notSet","containsAll","containsAny","containsNot"];case He.number:return["isSet","notSet","equal","equalNot","leq","lower","greater","geq"];case He.path:return["isSet","notSet","equal","equalNot","startsWith","like","notLike"];case He.string:return["isSet","notSet","equal","equalNot","startsWith","like","notLike"];case He.tag:return["isSet","notSet","containsAny","containsNot"];case He.url:return["isSet","notSet","equal","equalNot","like","notLike","startsWith"];case He._ahash:case He._sha1:return["equal","equalNot","like","notLike"];case He._width:case He._height:return["equal","lower","leq","greater","geq"];case He._id:return["equal","equalNot"];default:return[]}}var zL=(e=>(e.equal="equal",e.equalNot="equalNot",e.like="like",e.notLike="notLike",e.lower="lower",e.leq="leq",e.greater="greater",e.geq="geq",e.isTrue="isTrue",e.isFalse="isFalse",e.contains="contains",e.startsWith="startsWith",e.containsAny="containsAny",e.containsAll="containsAll",e.containsNot="containsNot",e.and="and",e.or="or",e.isSet="isSet",e.notSet="notSet",e))(zL||{});const HL={geq:(e,t)=>t==null?!0:e==null?!1:e>=t,leq:(e,t)=>t==null?!0:e==null?!1:e<=t,lower:(e,t)=>t==null?!0:e==null?!1:et==null?!0:e==null?!1:e>t,and:(e,t)=>e&&t,or:(e,t)=>e||t,contains:(e,t)=>Ai(t)?!0:Ai(e)?!1:e.includes(t),containsAll:(e,t)=>{if(Ai(t))return!0;if(Ai(e))return!1;for(let i of e)for(let n of t)if(!n.has(i))return!1;return!0},containsAny:(e,t)=>{if(Ai(t))return!0;if(Ai(e))return!1;for(let i of e)for(let n of t)if(n.has(i))return!0;return!1},containsNot:(e,t)=>{if(Ai(t)||Ai(e))return!0;for(let i of e)for(let n of t)if(n.has(i))return!1;return!0},equal:(e,t)=>Ai(t)?!0:Ai(e)?!1:e==t,equalNot:(e,t)=>Ai(t)||Ai(e)?!0:e!=t,isFalse:e=>Ai(e)?!0:e==!1,isTrue:e=>e,isSet:e=>!Ai(e),notSet:e=>Ai(e),startsWith:(e,t)=>Ai(t)?!0:Ai(e)?!1:e.startsWith(t),like:(e,t)=>Ai(t)?!0:Ai(e)?!1:e.match(t),notLike:(e,t)=>Ai(t)?!0:Ai(e)?!1:!e.match(t)};function Fw(){return{filters:[],groupOperator:"and",depth:0,isGroup:!0,id:-1}}function zw(){const e=Fw();return Wt({folders:[],filter:e,query:""})}function VL(e){switch(e){case He.checkbox:return"isTrue";case He.color:case He.image_link:case He.number:case He.string:case He.path:case He.url:case He.multi_tags:case He.tag:return"isSet";case He.date:return"greater";default:return"equal"}}function Ai(e){return e===void 0||e===""||Array.isArray(e)&&e.length===0||e===null}function BL(e,t,i,n){const a=i[e.propertyId],l=t.map(b=>b.properties[a.id]),c=HL[e.operator];let d=e.value;if(ji(a.type)&&d){const b=d.map(w=>new Set([...n[w].allChildren,w]));d=new Set(b)}if(a.type==He.date){d&&(d=new Date(d));for(let[b,w]of l.entries())w&&(l[b]=new Date(w))}if(a.type==He.string){d&&(d=d.toLowerCase());for(let[b,w]of l.entries())w&&(l[b]=w.toLowerCase())}const p=[],m=[];for(let b=0;bi.instances[d]),a=[];for(let d of this.result.images)t.has(d.id)||a.push(d.id);const l=this.filterInstances(n);for(let d of l.valid)a.push(d.id);return this.result.images=a.map(d=>i.instances[d]),console.timeEnd("UpdateFilter"),{updated:new Set(l.valid.map(d=>d.id)),removed:new Set(l.reject.map(d=>d.id))}}filterInstances(t){const i=yt();let n=t;if(this.state.query){const l=this.state.query.toLocaleLowerCase();Ii();const c=Ls(i.properties),d=c.filter(m=>m.type==He.string),p=c.filter(m=>ji(m.type));n=n.filter(m=>{for(let b of d)if(m.properties[b.id]&&m.properties[b.id]&&m.properties[b.id].toLocaleLowerCase().includes(l))return!0;for(let b of p){const w=m.properties[b.id];if(!w)continue;const _=w.map(C=>i.tags[C].value.toLocaleLowerCase());for(let C of _)if(C.includes(l))return!0}return!1})}if(this.state.folders.length>0){const l=new Set(this.state.folders);n=n.filter(c=>l.has(c.folderId))}return Hw(this.state.filter,n,i.properties,i.tags)}setFolders(t){this.state.folders=t}setQuery(t){this.state.query=t}addNewFilterGroup(t=void 0){let i=Fw();if(t!=null){let l=this.filterIndex[t];if(l==null)throw"Invalid Parent !";l.filters.push(i);const c=l.filters[l.filters.length-1];return this.registerFilter(c),this.onDirty.emit(),c}const n=this.state.filter;n.filters.push(i);const a=n.filters[n.filters.length-1];return this.registerFilter(a),this.onDirty.emit(),a}addNewFilter(t,i=void 0){let n=this.createFilter(t);if(i!=null){let c=this.filterIndex[i];if(c==null)throw new Error("group is undefined");if(!c.isGroup)throw new TypeError("Parent filter is not a FilterGroup, cannot add filter to it");c.filters.push(n);const d=c.filters[c.filters.length-1];return this.registerFilter(d),this.onDirty.emit(),d}const a=this.state.filter;a.filters.push(n);const l=a.filters[a.filters.length-1];return this.registerFilter(l),this.onDirty.emit(),l}deleteFilter(t){Object.values(this.filterIndex).forEach(i=>{if(!i.isGroup)return;const n=i;n.filters=n.filters.filter(a=>a.id!=t)}),delete this.filterIndex[t],this.onDirty.emit()}updateFilter(t,i){const n=yt();if(this.filterIndex[t]==null||this.filterIndex[t].isGroup)return;const a=this.filterIndex[t];i.propertyId!=null&&this.changeFilter(a,i.propertyId);const l=n.properties[a.propertyId].type;i.operator!=null&&FL(l).includes(i.operator)&&(a.operator=i.operator),i.value?a.value=i.value:a.value=lb(l),this.onDirty.emit()}updateFilterGroup(t,i){if(this.filterIndex[t]==null||!this.filterIndex[t].isGroup)return;const n=this.filterIndex[t];n.groupOperator=i,this.onDirty.emit()}changeFilter(t,i){const n=this.createFilter(i);n.id=t.id,Object.assign(t,n)}verifyState(t){const i=n=>{const a=new Set;n.filters.forEach(l=>{if(l.isGroup)i(l);else{const c=l;(t[c.propertyId]==null||t[c.propertyId].id==Ci)&&a.add(c.id)}}),n.filters=n.filters.filter(l=>!a.has(l.id))};i(this.state.filter)}initFilterState(){const t=zw();this.state=t,this.registerFilter(this.state.filter)}registerFilter(t){return t.id>=0&&console.error("registerFilter should not receive a filter with valid id"),t.id=this.nextIndex(),this.filterIndex[t.id]=t,this.filterIndex[t.id]}createFilter(t){let n=yt().properties[t];return{propertyId:n.id,operator:VL(n.type),value:lb(n.type),id:-1}}nextIndex(){const t=Object.keys(this.filterIndex).map(Number);let i=0;return t.length&&(i=Math.max(...t)+1),i===this.lastFilterId&&(i+=1),this.lastFilterId=i,i}recursiveRegister(t){if(t.id<0?t=this.registerFilter(t):this.filterIndex[t.id]=t,!t.isGroup)return;t.filters.forEach(n=>this.recursiveRegister(n))}}function YL(){return Wt({version:$w,id:-1,name:"Tab",display:"tree",filterState:zw(),sortState:Ww(),groupState:Xw(),imageSize:100,visibleProperties:{},visibleFolders:{},selectedFolders:{},propertyOptions:{},similarityDist:.7,sha1Mode:!0,autoReload:!0})}function lb(e){switch(e){case He.checkbox:return!1;case He.color:return;case He.date:return;case He.number:return;case He.string:case He.image_link:case He.path:case He._sha1:case He.url:case He._ahash:return"";case He.multi_tags:case He.tag:return[];default:return""}}function Vw(){return{size:200}}function Cs(e){return Object.keys(e).map(t=>e[t])}function jL(e){let t=e.width/e.height;return Math.max(Math.min(2,t),1)}function cb(e){let t={};e.forEach(n=>{n.children=[],t[n.id]=n,n.count=0});let i={};return e.forEach(n=>{n.parent&&(i[n.parent]==null&&(i[n.parent]=[]),i[n.parent].push(n))}),Object.keys(i).forEach(n=>{n!=null&&i[n].forEach(a=>{t[n].children.push(a)})}),t}function XL(e){for(let t in e){const i=e[t];i.children=[]}for(let t in e){const i=e[t];i.parents.filter(n=>n>0).forEach(n=>e[n].children.push(i.id))}}const Ci=-999999999,ub="Deleted",yt=gd("dataStore",()=>{const e=new vo,t=new Set;let i=-100;const n=ss({}),a=ss({}),l=ss({}),c=ss({}),d=ye({undo:[],redo:[]}),p=ss({}),m=ye(0),b=we(()=>Object.values(n.value).filter(pe=>pe.parent==null)),w=we(()=>Cs(a.value)),_=we(()=>Cs(l.value)),C=we(()=>Cs(c.value).filter(pe=>pe.id!=Ci));async function I(){let pe=await pb();const xe=cb(pe);n.value=xe,console.time("Request");let Te=await uM();console.timeEnd("Request"),console.time("commit"),ee(Te),console.timeEnd("commit"),await Ee()}function O(){return i-=1,i}function M(){e.emit(t),t.clear()}function N(pe){for(let xe of pe){const Te=oM(xe);xe.urlSmall=el+"/image/small/"+xe.sha1,xe.urlMedium=el+"/image/medium/"+xe.sha1,xe.urlLarge=el+"/image/large/"+xe.sha1,xe.urlRaw=el+"/image/raw/"+xe.sha1,xe.containerRatio=jL(xe),a.value[xe.id]?xe.properties=Object.assign(a.value[xe.id].properties,xe.properties):(Array.isArray(p.value[xe.sha1])||(p.value[xe.sha1]=[]),p.value[xe.sha1].push(xe));for(let ie=0;iel.value[Te.id]==null);for(let Te of pe)Te.id in l.value&&(Te.tags=l.value[Te.id].tags),l.value[Te.id]=Te;xe&&Ii().getTabManager().verifyState()}function D(pe){const xe=new Set;for(let Te of pe)if(Te.id!=Ci){if(c.value[Te.id]?(Te.count=c.value[Te.id].count,w.value.forEach(ie=>t.add(ie.id))):Te.count=0,Te.parents=Te.parents.filter(ie=>ie!=0),c.value[Te.id]=Te,!(Te.propertyId in l.value)){console.warn("Property "+Te.propertyId+" must be loaded before importing tags");continue}l.value[Te.propertyId].tags||(l.value[Te.propertyId].tags={}),l.value[Te.propertyId].tags[Te.id]=Te,xe.add(Te.propertyId)}for(let Te of xe)XL(l.value[Te].tags);for(let Te of Cs(c.value))Te.allChildren=sM(Te,c.value),Te.allChildren.splice(Te.allChildren.indexOf(Te.id),1),Te.allParents=nM(Te,c.value)}async function P(pe){const xe=await dM(pe);ee(xe)}function $(pe){for(let xe of pe)xe.value!=null&&(ji(l.value[xe.propertyId].type)&&ve(a.value[xe.instanceId].properties[xe.propertyId],xe.value),a.value[xe.instanceId].properties[xe.propertyId]=xe.value,t.add(xe.instanceId))}function H(pe){for(let xe of pe)if(xe.value!=null&&p.value[xe.sha1]!=null)for(let Te of p.value[xe.sha1])ji(l.value[xe.propertyId].type)&&ve(a.value[Te.id].properties[xe.propertyId],xe.value),a.value[Te.id].properties[xe.propertyId]=xe.value,t.add(Te.id)}function ee(pe,xe){var Te,ie,j,G,le,Se;Ie(pe.instances,pe.emptyInstances),pe.emptyImageValues&&pe.emptyImageValues.forEach(Oe=>{p.value[Oe.sha1].forEach(Ye=>{ji(l.value[Oe.propertyId].type)&&ve(a.value[Ye.id].properties[Oe.propertyId],[]),delete a.value[Ye.id].properties[Oe.propertyId],t.add(Ye.id)})}),pe.emptyInstanceValues&&pe.emptyInstanceValues.forEach(Oe=>{ji(l.value[Oe.propertyId].type)&&ve(a.value[Oe.instanceId].properties[Oe.propertyId],[]),delete a.value[Oe.instanceId].properties[Oe.propertyId],t.add(Oe.instanceId)}),pe.emptyTags&&pe.emptyTags.forEach(Oe=>{c.value[Oe].id=Ci,c.value[Oe].value=ub}),(Te=pe.emptyProperties)!=null&&Te.length&&pe.emptyProperties.forEach(Oe=>{l.value[Oe].id=Ci,l.value[Oe].name=ub}),pe.emptyInstances&&pe.emptyInstances.forEach(Oe=>{a.value[Oe].id=Ci,t.add(Oe)}),(ie=pe.instances)!=null&&ie.length&&N(pe.instances),(j=pe.properties)!=null&&j.length&&k(pe.properties),(G=pe.tags)!=null&&G.length&&D(pe.tags),(le=pe.instanceValues)!=null&&le.length&&$(pe.instanceValues),(Se=pe.imageValues)!=null&&Se.length&&H(pe.imageValues),pe.history&&(d.value=pe.history),!xe&&(Mn(l),Mn(n),Mn(a),Mn(p),Mn(c),M())}function se(){n.value={},a.value={},l.value={},c.value={},p.value={},e.clear(),t.clear(),d.value={undo:[],redo:[]},m.value=0}async function Q(pe,xe,Te){xe&&(pe.undo=!0);const ie=await RM(pe);return ee(ie,Te),ie}async function te(pe,xe,Te=void 0,ie=-1){const G=await Q({tags:[{id:-1,propertyId:pe,value:xe,parents:Te??[],color:ie}]},!0,!0);return Mn(c),G.tags[0]}async function ce(pe,xe){const Te=Object.assign({},c.value[pe]);Te.parents.push(xe),await Q({tags:[Te]})}async function oe(pe,xe){const Te=Object.assign({},c.value[pe]);Te.parents=Te.parents.filter(ie=>ie!=xe),await Q({tags:[Te]})}async function de(pe,xe){if(!xe){const Te=c.value[pe];if(!confirm("Delete tag: "+Te.value+" (ID: "+pe+") ?"))return}Q({emptyTags:[pe]})}async function be(pe,xe,Te){return(await Q({properties:[{id:-1,name:pe,type:xe,mode:Te}]})).properties[0]}async function Ce(pe,xe,Te,ie){Array.isArray(xe)||(xe=[xe]);const j=l.value[pe].mode,G=[],le=[];if(j==ki.id){const Se=xe.map(Oe=>({propertyId:pe,instanceId:Oe.id,value:Te}));G.push(...Se)}if(j==ki.sha1){const Se=xe.map(Oe=>({propertyId:pe,sha1:Oe.sha1,value:Te}));le.push(...Se)}await Q({instanceValues:G,imageValues:le},!0)}async function re(pe,xe,Te){await Q({instanceValues:pe,imageValues:xe},!0)}async function Z(pe,xe,Te,ie){Array.isArray(xe)||(xe=[xe]);const j=xe.map(G=>({value:G.properties[pe]??[],img:G}));if(l.value[pe].mode==ki.id){const G=j.map(le=>({propertyId:pe,instanceId:le.img.id,value:Array.from(new Set([...le.value,...Te]))}));await Q({instanceValues:G})}else{const G=j.map(le=>({propertyId:pe,sha1:le.img.sha1,value:Array.from(new Set([...le.value,...Te]))}));await Q({imageValues:G},!0)}}async function U(pe,xe,Te){const ie=Object.assign({},c.value[pe]);xe&&(ie.value=xe),Te!=null&&(ie.color=Te),await Q({tags:[ie]})}async function fe(pe){await hM(pe);const xe=await pb(),Te=cb(xe);for(let ie of Cs(Te))ie.id in n.value&&(ie.count=n.value[ie.id].count);n.value=Te}async function he(pe,xe){const Te=ns(l.value[pe]);Te.name=xe,Q({properties:[Te]})}async function ue(pe){await Q({emptyProperties:[pe]});const xe=Ii();xe.getTabManager().verifyState(),xe.getTabManager().collection.update()}function ve(pe,xe){pe==null&&(pe=[]),xe==null&&(xe=[]),Array.isArray(pe)||(pe=[pe]),Array.isArray(xe)||(xe=[xe]);const Te=new Set(pe),ie=new Set(xe),j=xe.filter(le=>!Te.has(le)),G=pe.filter(le=>!ie.has(le));j.forEach(le=>c.value[le].count+=1),G.forEach(le=>c.value[le].count-=1)}async function Re(){if(!d.value.undo.length)return;const pe=await MM();ee(pe),m.value++}async function et(){if(!d.value.redo.length)return;const pe=await NM();ee(pe),m.value++}async function Ee(){const pe=await DM();d.value=pe}function Fe(pe){kM(pe)}async function _e(pe){await fM(pe),se(),await I()}function Ie(pe,xe){pe=pe??[],xe=xe??[];for(let Te of pe){if(a.value[Te.id]!=null)continue;let ie=n.value[Te.folderId];for(ie.count+=1,ie=n.value[ie.parent];ie;)ie.count+=1,ie=n.value[ie.parent]}for(let Te of xe){if(a.value[Te]==null)continue;let ie=n.value[Te];for(ie.count-=1,ie=n.value[ie.parent];ie;)ie.count-=1,ie=n.value[ie.parent]}}return{init:I,getTmpId:O,onChange:e,folders:n,instances:a,properties:l,tags:c,history:d,folderRoots:b,sha1Index:p,instanceList:w,propertyList:_,tagList:C,addFolder:fe,reImportFolder:Fe,deleteFolder:_e,addProperty:be,deleteProperty:ue,updateProperty:he,setPropertyValue:Ce,setTagPropertyValue:Z,setPropertyValues:re,addTag:te,deleteTagParent:oe,updateTag:U,addTagParent:ce,deleteTag:de,mergeTags:P,applyCommit:ee,sendCommit:Q,undo:Re,redo:et,onUndo:m,clear:se}});var Bw=(e=>(e[e.Ascending=1]="Ascending",e[e.Descending=-1]="Descending",e))(Bw||{});function Ww(){return Wt({sortBy:[],options:{}})}function GL(){return{direction:1}}const Yw={[He.checkbox]:e=>e?1:0,[He.color]:e=>isNaN(e)?-1:e,[He.date]:e=>e?new Date(e).getTime():0,[He.multi_tags]:e=>e?e.length:0,[He.number]:e=>e??Number.NEGATIVE_INFINITY,[He.path]:e=>e?e.toLocaleLowerCase():"",[He.string]:e=>e?e.toLocaleLowerCase():"",[He.tag]:e=>e||"",[He.url]:e=>e?e.toLocaleLowerCase():"",[He._ahash]:e=>e,[He._sha1]:e=>e,[He._folders]:(e,t)=>t[e].name,[He._height]:e=>e,[He._width]:e=>e,[He._id]:e=>e};function UL(e,t,i){let n=e.properties[t.id];const a=t.type;return a==He.tag&&(Array.isArray(n)&&n.length>0?n=t.tags[n[0]].value:n=void 0),n=Yw[a](n,i),n}function jw(e,t){return e.sort((i,n)=>$f(i,n,t)),e}function $f(e,t,i){for(let n=0;nl[w]),p=jw(Lu(d,n),a);let m=0,b=0;for(;b=e.length)return i;let l=e.length,c=l-i;for(;c>10;){const d=Math.floor(i+c/2),p=Lu([e[d]],n)[0],m=$f(t,p,a);if(m==0)return d;m<0?l=d+1:i=d,c=l-i}for(let d=i;dl.values.push(UL(a,c,n.folders))),i.push(l)}return i}class ZL{constructor(t){$t(this,"state");$t(this,"result");$t(this,"onChange");this.state=t,this.onChange=new vo,this.state||(this.state=Ww()),this.result={images:[],order:{}}}load(t){Object.assign(this.state,Ea(t)),this.clear()}clear(){this.result={images:[],order:[]}}sort(t,i){console.time("Sort");const n=yt(),a=this.state.sortBy.map(d=>n.properties[d]),l=Lu(t,a),c=this.state.sortBy.map(d=>this.state.options[d].direction==1?1:-1);jw(l,c),this.result.images=[],this.result.order={};for(let d=0;dn.properties[d]),l=this.state.sortBy.map(d=>this.state.options[d].direction==1?1:-1),c=KL(this.result.images,t,i,a,l,n.instances);this.result.images=[],this.result.order={};for(let d=0;dt[i]&&t[i].id!=Ci),Object.keys(this.state.options).filter(i=>!t[i]||t[i].id==Ci).forEach(i=>delete this.state.options[i])}}var ps=(e=>(e.All="all",e.Selection="selection",e.Property="property",e.Cluster="cluster",e.Sha1="sha1",e))(ps||{}),JL=(e=>(e[e.Size=0]="Size",e[e.Property=1]="Property",e))(JL||{});function vl(e,t,i="all"){return{id:e,key:[],images:t,type:i,children:[],depth:0,order:-1,meta:{propertyValues:[]},view:{closed:!1,selected:!1}}}function QL(e){return vl(0,e)}function eM(e,t){const i={direction:Bw.Ascending,type:1};return t[e].type==He.date&&(i.stepUnit=ti.Day),i}const db={[He.checkbox]:e=>!!e,[He.color]:e=>{if(!isNaN(e))return e},[He.date]:e=>{if(e)return e},[He.number]:e=>{if(e!=null)return e},[He.path]:e=>{if(e)return e},[He.string]:e=>{if(e)return e},[He.url]:e=>{if(e)return e},[He._ahash]:e=>e,[He._sha1]:e=>e,[He._folders]:e=>e,[He._id]:e=>e,[He._height]:e=>e,[He._width]:e=>e,[He.tag]:e=>{if(Array.isArray(e))return e},[He.multi_tags]:e=>{if(Array.isArray(e))return e}};function hb(e,t,i){if(t||(t=1),i||(i=ti.Day),e==null)return;e=new Date(e);let n=t*RL[i];if(i==ti.Second||i==ti.Minute||i==ti.Hour||i==ti.Day||i==ti.Week){n*=1e3;let a=Math.floor(e.getTime()/n),l=new Date(a*n),c=new Date(a*n+n-1);return{first:l,last:c}}if(i==ti.Year){let a=Math.floor(e.getUTCFullYear()/n),l=new Date(a*n,0,1);l=new Date(l.getTime()-l.getTimezoneOffset()*60*1e3);let c=new Date(a*n+n,0,1);return c=new Date(c.getTime()-c.getTimezoneOffset()*60*1e3),{first:l,last:c}}if(i==ti.Month){let a=e.getUTCFullYear()*12+e.getUTCMonth(),l=Math.floor(a/n)*n,c=Math.floor(l/12),d=l%12,p=new Date(c,d,1);p=new Date(p.getTime()-p.getTimezoneOffset()*60*1e3),l=Math.floor(a/n)*n+n,c=Math.floor(l/12),d=l%12;let m=new Date(c,d,1);return m=new Date(m.getTime()-m.getTimezoneOffset()*60*1e3),{first:p,last:m}}return{first:e,last:e}}function fh(e,t){const i=yt();if(e.children.length!=0){t.type==1?tM(e,t.direction,i.properties,i.folders):iM(e,t.direction);for(let n=0;n{let d=a[l.id],p=a[c.id];for(let m=0;m(i.images.length-n.images.length)*t)}function Nc(e,t){e.images.sort((i,n)=>t[i.id]-t[n.id])}function Rc(e){let t=0;const i=()=>t++,n=a=>{a.order=i(),a.children.forEach(l=>n(l))};n(e)}function Xw(){return{groupBy:[],options:{},sha1Mode:!1}}class fb{constructor(){$t(this,"index");$t(this,"idCounter");this.index=new Map,this.idCounter=1}get(t){let i=this.index;for(let n of t)i.has(n)||i.set(n,new Map),i=i.get(n);if(!i.has(null)){const n=this.idCounter;i.set(null,n),this.idCounter+=1}return i.get(null)}delete(t){let i=this.index;for(let n of t){if(!i.has(n))return;i=i.get(n)}i.delete(null)}}class Aa{constructor(t,i){$t(this,"state");$t(this,"result");$t(this,"lastOrder");$t(this,"customGroups");$t(this,"onChange");$t(this,"selectedImages");$t(this,"selection");$t(this,"iterators");t?this.state=t:this.state=Wt(Xw()),this.result={root:void 0,index:{},imageToGroups:{},valueIndex:new fb},this.customGroups={},this.onChange=new vo,this.selectedImages=i??ss({}),this.selection={lastImage:void 0,lastGroup:void 0},this.iterators=[]}load(t){Object.assign(this.state,Ea(t)),this.clear()}addUpdatedToGroups(t,i){console.time("Group Update");const n=yt();if(this.invalidateIterators(),this.state.groupBy.length>0)for(let a of t)this.addInstanceToGroups(a,n.properties,n.tags);else this.result.root.images.push(...t);if(i)for(let a of Ls(this.result.index))a.type!="cluster"&&Nc(a,i);this.result.imageToGroups={};for(let a of Object.values(this.result.index))a.children.length>0&&a.subGroupType!="sha1"||this.saveImagesToGroup(a);return Rc(this.result.root),console.timeEnd("Group Update"),this.onChange.emit(this.result),this.result}addInstanceToGroups(t,i,n){const a=[];let l=[];for(let c of this.state.groupBy){const d=i[c],p=this.state.options[d.id];let m=t.properties[c];m=db[d.type](m);const b={};if(ji(d.type)&&d.tags)for(let C of Ls(d.tags))b[C.id]=new Set(C.allParents),b[C.id].add(C.id);let w;if(d.type==He.date){const C=hb(m,p.stepSize,p.stepUnit);C&&(m=C.first.toISOString(),w=C.last)}let _=Array.isArray(m)?m:[m];if(ji(d.type)&&_[0]!==void 0){const C=new Set;for(let I of _)if(I)for(let O of b[I])C.add(O);_=Array.from(C)}if(l.length==0)a.push(..._.map(C=>[C])),l=_.map(C=>[C]);else{let C=[];for(let I of l)for(let O of _)C.push([...I,O]);a.push(...C),l=C}for(let C of l){const I=this.result.valueIndex.get(C);if(!this.result.index[I]){const M=vl(I,[],"property");let N=C[C.length-1];d.type==He.date&&(N=new Date(N));let k=[{propertyId:d.id,value:N,valueEnd:w,unit:p.stepUnit}];if(M.meta.propertyValues=k,this.regsiterGroup(M),C.length==1)this.addChildGroup(this.result.root,M),this.result.root.dirty=!0;else{const D=this.result.valueIndex.get(C.slice(0,-1)),P=this.result.index[D];this.addChildGroup(P,M),P.dirty=!0}}const O=this.result.index[I];O.images.push(t),O.dirty=!0}}}group(t,i,n,a){a=!0,a&&console.time("Group");const l=yt();this.invalidateIterators(),this.lastOrder=i;const c=this.result.index??{};this.result.root=QL(t),this.result.index={},this.result.imageToGroups={};const d=this.customGroups??{};if(this.customGroups={},this.regsiterGroup(this.result.root),this.state.groupBy.length>0&&this.computePropertySubGroup(this.result.root,this.state.groupBy,l.properties,l.tags),i)for(let b of Ls(this.result.index))Nc(b,i);for(let b of Object.values(this.result.index))b.children.length>0&&b.subGroupType!="sha1"||this.saveImagesToGroup(b);let p=!0,m=new Set(Object.keys(d).map(Number));for(;p;){p=!1;for(let b of Array.from(m))this.result.index[b]&&(this.addCustomGroups(b,d[b]),m.delete(b),p=!0)}return this.state.sha1Mode&&this.groupLeafsBySha1(),Object.keys(this.result.index).map(b=>{const w=this.result.index[b];c[b]&&(w.view=c[b].view)}),Rc(this.result.root),a&&console.timeEnd("Group"),n&&this.onChange.emit(this.result),this.result}sortGroups(t){this.invalidateIterators();for(let i of Object.values(this.result.index))i.subGroupType=="property"&&i.children.length!=0&&fh(i,this.state.options[i.children[0].meta.propertyValues[0].propertyId]);t&&this.onChange.emit()}saveImagesToGroup(t){for(let i of t.images)this.result.imageToGroups[i.id]||(this.result.imageToGroups[i.id]=[]),this.result.imageToGroups[i.id].push(t.id)}groupLeafsBySha1(){this.removeSha1Groups();for(let t of Object.values(this.result.index))t.children.length>0||this.groupBySha1(t)}removeSha1Groups(){this.invalidateIterators();for(let t of Object.values(this.result.index))t.subGroupType=="sha1"&&this.removeChildren(t)}hasResult(){return this.result.root!=null}clear(t){this.invalidateIterators(),this.result.imageToGroups={},this.result.index={},this.result.root=void 0,this.result.valueIndex=new fb,this.clearLastSelected(),this.clearSelection(),this.customGroups={},this.lastOrder={},t&&this.onChange.emit()}verifyState(t){this.state.groupBy=this.state.groupBy.filter(i=>t[i]&&t[i].id!=Ci),Object.keys(this.state.options).filter(i=>!t[i]||t[i].id==Ci).forEach(i=>delete this.state.options[i])}registerIterator(t){this.iterators.push(t)}invalidateIterators(){for(let t of this.iterators)t.isValid=!1;this.iterators=[]}removeChildren(t){t.children.forEach(i=>{delete this.result.index[i.id],i.key.length&&this.result.valueIndex.delete(i.key),this.removeImageToGroups(i)}),t.children.length=0,t.subGroupType=void 0}groupBySha1(t){t.children&&(t.children.length=0);let i=[],n={};for(let l of t.images)if(n[l.sha1])n[l.sha1].images.push(l);else{const c=[...t.key,l.sha1],d=this.result.valueIndex.get(c);n[l.sha1]=vl(d,[l],"sha1"),n[l.sha1].key=c,n[l.sha1].meta.propertyValues.push({propertyId:-1,value:l.sha1}),i.push(l.sha1)}const a=i.map(l=>n[l]);a.forEach(l=>this.regsiterGroup(l)),this.setChildGroup(t,a)}update(t){this.invalidateIterators(),this.result.root&&this.group(this.result.root.images,this.lastOrder,t,!0)}updateSelection(t,i){const n=yt();this.invalidateIterators(),this.removeSha1Groups();let a=new Set;for(let l of i)this.result.imageToGroups[l]&&this.result.imageToGroups[l].forEach(c=>a.add(c));for(let l of t)this.result.imageToGroups[l]&&this.result.imageToGroups[l].forEach(c=>a.add(c));for(let l of a){const c=this.result.index[l];c.type!="cluster"&&(c.dirty=!0,c.images=c.images.filter(d=>!i.has(d.id)&&!t.has(d.id)))}this.addUpdatedToGroups(Array.from(t).map(l=>n.instances[l]),this.lastOrder);for(let l of Ls(this.result.index)){l.images.length==0&&delete this.result.index[l.id];const c=l.children.length;l.children=l.children.filter(d=>d.images.length>0),l.children.lengthn).forEach(n=>{Nc(n,t)}),this.state.sha1Mode&&this.groupLeafsBySha1(),i&&this.onChange.emit(this.result)}setGroupOption(t,i){const n=yt();this.state.options[t]||(this.state.options[t]=eM(t,n.properties)),i&&Object.assign(this.state.options[t],i),!this.state.groupBy.includes(t)&&(this.state.groupBy.push(t),this.customGroups={})}delGroupOption(t){const i=this.state.groupBy.indexOf(t);i<0||(this.state.groupBy.splice(i,1),this.customGroups={})}addCustomGroups(t,i,n){this.invalidateIterators();const a=this.result.index[t];a&&(this.customGroups[t]=i,this.setChildGroup(a,i),a.subGroupType=="cluster"&&this.state.sha1Mode&&i.forEach(l=>{this.groupBySha1(l)}),Rc(this.result.root),n&&this.onChange.emit(this.result))}delCustomGroups(t,i){delete this.customGroups[t],this.removeChildren(this.result.index[t]),i&&this.onChange.emit(this.result)}clearCustomGroups(t){for(let i of Object.keys(this.customGroups).map(Number))this.delCustomGroups(i);t&&this.onChange.emit()}setSha1Mode(t,i){this.state.sha1Mode!=t&&(this.invalidateIterators(),this.state.sha1Mode=t,t?this.groupLeafsBySha1():this.removeSha1Groups(),i&&this.onChange.emit())}toggleGroup(t,i){this.result.index[t].view.closed=!this.result.index[t].view.closed,i&&this.onChange.emit()}openGroup(t,i){this.result.index[t].view.closed=!1,i&&this.onChange.emit()}closeGroup(t,i){this.result.index[t].view.closed=!0,i&&this.onChange.emit()}getGroupIterator(t,i){return new Nn(this,t,i)}getImageIterator(t,i,n){return new Ss(this,t,i,n)}findImageIterator(t,i){const n=yt(),a=this.result.index[t],l=n.instances[i];let c=0;return a.subGroupType=="sha1"?c=a.children.findIndex(d=>d.images[0].sha1==l.sha1):c=a.images.findIndex(d=>d.id==i),this.getImageIterator(t,c)}setChildGroup(t,i){this.removeChildren(t);for(let n of i)n.parentIdx=t.children.length,n.parent=t,n.depth=t.depth+1,t.children.push(n),this.regsiterGroup(n),n.type!="sha1"&&this.saveImagesToGroup(n);t.subGroupType=t.children.length?i[0].type:void 0,t.subGroupType=="sha1"&&this.saveImagesToGroup(t)}addChildGroup(t,i){i.parentIdx=t.children.length,i.parent=t,i.depth=t.depth+1,t.children.push(i),this.regsiterGroup(i),i.type!="sha1"&&this.saveImagesToGroup(i),t.subGroupType=t.children.length?i.type:void 0,this.removeImageToGroups(t),t.subGroupType=="sha1"&&this.saveImagesToGroup(t)}regsiterGroup(t){this.result.index[t.id]=t}computePropertySubGroup(t,i,n,a){const l=n[i[0]],c=this.state.options[l.id],d={};if(ji(l.type)&&l.tags)for(let I of Ls(l.tags))d[I.id]=new Set(I.allParents),d[I.id].add(I.id);t.subGroupType="property";let p=0,m=0,b=0,w=0;const _=[];for(let I in t.images){const O=t.images[I];let M=performance.now(),N=O.properties[l.id];w+=performance.now()-M,N=db[l.type](N),M=performance.now();let k;if(l.type==He.date){const P=hb(N,c.stepSize,c.stepUnit);P&&(N=P.first,k=P.last)}p+=performance.now()-M,M=performance.now();let D=Array.isArray(N)?N:[N];if(ji(l.type)&&D[0]!==void 0){const P=new Set;for(let $ of D)if($)for(let H of d[$])P.add(H);D=Array.from(P)}m+=performance.now()-M,M=performance.now();for(let P of D){let $=P;P&&l.type==He.date&&($=$.toISOString());const H=[...t.key,$],ee=this.result.valueIndex.get(H);if(!this.result.index[ee]){let Q=[{propertyId:l.id,value:P,valueEnd:k,unit:c.stepUnit}];const te=vl(ee,[],"property");te.meta.propertyValues=Q,te.key=H,this.regsiterGroup(te),_.push(te)}this.result.index[ee].images.push(O)}b+=performance.now()-M}const C=_;if(this.setChildGroup(t,C),i.length>1)for(let I of C)this.computePropertySubGroup(I,i.slice(1),n,a);fh(t,c)}removeImageToGroups(t){t.images.forEach(i=>{if(this.result.imageToGroups[i.id]==null)return;const n=this.result.imageToGroups[i.id].indexOf(t.id);n<0||this.result.imageToGroups[i.id].splice(n,1)})}clearSelection(){this.result.root&&this.unselectGroup(this.result.root),this.selectedImages.value={},this.clearLastSelected()}selectImageIterator(t,i=!1){i&&this._shiftSelect(t),this.selectImages(t.images.map(n=>n.id)),this.clearLastSelected(),this.selection.lastImage=t.clone()}unselectImageIterator(t){this.unselectImages(t.images.map(i=>i.id)),this.clearLastSelected()}toggleImageIterator(t,i=!1){t.images.every(a=>this.selectedImages.value[a.id])?this.unselectImageIterator(t):this.selectImageIterator(t,i)}toggleAll(){const t=this.getGroupIterator();this.toggleGroupIterator(t)}_shiftSelect(t){if(this.selection.lastImage==null)return!1;let i=this.selection.lastImage.isImageBefore(t)?this.selection.lastImage:t,n=i==t?this.selection.lastImage:t,a=[],l=i.clone();for(;l&&!n.isImageBefore(l);)l.sha1Group?a.push(...l.sha1Group.images.map(c=>c.id)):a.push(l.image.id),l=l.nextImages();return a.length?(this.selectImages(a),!0):!1}_shiftGroup(t){if(this.selection.lastGroup==null)return!1;let i=this.selection.lastGroup.isGroupBefore(t)?this.selection.lastGroup:t,n=i==t?this.selection.lastGroup:t,a=[],l=i.clone();for(;l&&!n.isGroupBefore(l);){const c=l.group;c.images.length&&a.push(...c.images.map(d=>d.id)),l=l.nextGroup()}return a.length?(this.selectImages(a),!0):!1}clearLastSelected(){this.selection.lastGroup=void 0,this.selection.lastImage=void 0}unselectImage(t){this.unselectImages([t])}selectImage(t){this.selectImages([t])}selectImages(t){t.forEach(i=>this.selectedImages.value[i]=!0),Mn(this.selectedImages)}unselectImages(t){t.forEach(i=>delete this.selectedImages.value[i]),Mn(this.selectedImages)}propagateUnselect(t){t.view.selected=!1,t.parent&&this.propagateUnselect(t.parent)}propagateSelect(t){t.children.length==0||t.subGroupType=="sha1"?t.view.selected=t.images.every(i=>this.selectedImages.value[i.id]):t.view.selected=t.children.every(i=>i.view.selected),t.parent&&this.propagateSelect(t.parent)}selectGroup(t){this.selectImages(t.images.map(i=>i.id))}unselectGroup(t){this.unselectImages(t.images.map(i=>i.id))}selectGroupIterator(t,i=!1){i&&this._shiftGroup(t),this.selectGroup(t.group),this.clearLastSelected(),this.selection.lastGroup=t.clone()}unselectGroupIterator(t){this.unselectGroup(t.group),this.clearLastSelected()}toggleGroupIterator(t,i=!1){!t.group.images.some(a=>!this.selectedImages.value[a.id])?this.unselectGroupIterator(t):this.selectGroupIterator(t,i)}}class Nn{constructor(t,i,n){$t(this,"isValid");$t(this,"group");$t(this,"manager");$t(this,"groupId");$t(this,"options");this.isValid=!0,this.manager=t,n!=null&&n.register&&this.manager.registerIterator(this),this.groupId=i??0,this.options={},n&&(this.options=n),this.group=this.getGroup()}clone(t){return new Nn(this.manager,this.groupId,t??this.options)}getGroup(){return this.manager.result.index[this.groupId]}nextGroup(){let t=this.group;if(!t.view.closed&&t.children.length>0&&t.subGroupType!="sha1")return new Nn(this.manager,t.children[0].id);let i=t.parent;for(;i!=null;){const n=i.children[t.parentIdx+1];if(n)return new Nn(this.manager,n.id);t=i,i=t.parent}}prevGroup(){var a;let t=this.group;const i=(a=t.parent)==null?void 0:a.children[t.parentIdx-1];if(i)if(i.children.length>0&&(!i.view.closed||this.options.ignoreClosed)){let l=i.children[i.children.length-1];for(;l.children.length>0&&(!l.view.closed||this.options.ignoreClosed);)l=l.children[l.children.length-1];return new Nn(this.manager,l.id)}else return new Nn(this.manager,i.id);const n=t.parent;if(n&&n.parent)return new Nn(this.manager,n.id)}isGroupBefore(t){return this.group.order0&&this.group.subGroupType!="sha1"){const c=this.nextGroup();this.groupId=c.groupId,this.group=c.group}this.images=this.getImages(),this.image=this.images[0],this.sha1Group=this.getSha1Group()}static fromGroupIterator(i,n){if(i.group.images.length!=0)return new Ss(i.manager,i.group.id,0,n)}getImages(){return this.group.subGroupType=="sha1"?this.group.children[this.imageIdx].images:[this.group.images[this.imageIdx]]}getSha1Group(){return this.group.children[this.imageIdx]}nextGroup(){let i=super.nextGroup();for(;i;){const n=i.group;if((!n.view.closed||this.options.ignoreClosed)&&(n.subGroupType=="sha1"||n.children.length==0)){const a=n.subGroupType=="sha1"?n.children.length-1:n.images.length-1;return new Ss(this.manager,i.group.id,a,this.options)}i=i.nextGroup()}}prevGroup(){let i=super.prevGroup();for(;i;){const n=i.group;if((!n.view.closed||this.options.ignoreClosed)&&(n.type=="sha1"||n.children.length==0))return new Ss(this.manager,i.group.id,0,this.options);i=i.prevGroup()}}nextImages(){let i=this.clone(),n=i.imageIdx+1;for(;i;){const a=i.group;if(a.subGroupType=="sha1"){if(a.children[n])return new Ss(this.manager,i.groupId,n,this.options)}else if(a.images[n])return new Ss(this.manager,i.groupId,n,this.options);i=i.nextGroup(),n=0}}prevImages(){let i=this.clone(),n=i.imageIdx-1;for(;i;){const a=i.group;if(a.subGroupType=="sha1"){if(a.children[n])return new Ss(this.manager,i.groupId,n,this.options)}else if(a.images[n])return new Ss(this.manager,i.groupId,n,this.options);i=i.prevGroup(),i&&(i.group.subGroupType=="sha1"?n=i.group.children.length-1:n=i.group.images.length-1)}}isImageBefore(i){return this.isGroupEqual(i)?this.imageIdx{const l=t.folders[a].children;i.push(...l),l.forEach(c=>n(c.id))};return n(e),i}const Gw=e=>new Promise(t=>setTimeout(t,e));class vo{constructor(){$t(this,"listeners");this.listeners=[]}addListener(t){this.listeners.push(t)}removeListener(t){const i=this.listeners.indexOf(t);i!==-1&&this.listeners.splice(i,1)}emit(t){this.listeners.forEach(i=>i(t))}clear(){this.listeners.length=0}}function Ff(e){const t=[];let i=e.parent;for(;i;)t.push(i),i=i.parent;return t}function sM(e,t){const i=[],n=a=>{i.push(a.id),a.children&&a.children.filter(l=>l!=Ci).forEach(l=>n(t[l]))};return n(e),i}function nM(e,t){const i=[],n=a=>{if(a)for(let l of a.parents)l!=0&&(i.push(l),n(t[l]))};return n(e),i}function Ls(e){return Object.keys(e).map(t=>e[t])}function lr(e){return e=e.toString(),e.length<2&&(e="0"+e),e}function lg(){let e=document.getElementsByClassName("v-step__button-next")[0];e&&e.click()}function ks(e){if(e===Object(e)&&!Array.isArray(e)&&typeof e!="function"){const t={};return Object.keys(e).forEach(i=>{t[rM(i)]=ks(e[i])}),t}else if(Array.isArray(e))return e.map(t=>ks(t));return e}function rM(e){return e.replace(/([-_][a-z])/gi,t=>t.toUpperCase().replace("-","").replace("_",""))}function Rn(e){if(e===Object(e)&&!Array.isArray(e)&&typeof e!="function"){const t={};return Object.keys(e).forEach(i=>{t[aM(i)]=Rn(e[i])}),t}else if(Array.isArray(e))return e.map(t=>Rn(t));return e}function aM(e){return e.replace(/[A-Z]/g,t=>`_${t.toLowerCase()}`)}function ns(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e)){const i=[];for(const n of e)i.push(ns(n));return i}if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map){const i=new Map;return e.forEach((n,a)=>{i.set(ns(a),ns(n))}),i}if(e instanceof Set){const i=new Set;return e.forEach(n=>{i.add(ns(n))}),i}const t={};for(const i in e)e.hasOwnProperty(i)&&(t[i]=ns(e[i]));return t}function oM(e){return[e.id,e.sha1,e.ahash,e.folderId,e.width,e.height,e.url]}function lM(e,t,i,n){const a={};for(let l of i)a[l.id]=[];for(let l of e)for(let c of t){let d=l.properties[c.id];if(d===void 0)continue;Array.isArray(d)||(d=[d]);const p=new Set;for(let m of d)n[m].allParents.forEach(b=>p.add(b)),p.add(m);Array.from(p).forEach(m=>{a[m].push(l)})}return a}const kd=e=>e.reduce((t,i)=>t+i,0);function Fi(e,t){let i=String(e),n="";i[0]=="-"&&(n="-",i=i.substring(1));let a=t-i.length;if(a)for(let l=0;lawait Yt.post("/folders",{path:e}),pb=async()=>(await Yt.get("/folders")).data;async function fM(e){return(await Yt.delete("/folder",{params:{folder_id:e}})).data}async function pM(){let e=await nu("tabs");return e||{}}async function ph(e){return(await zf("tabs",e)).data}const gM=async e=>{let t=new FormData;return t.append("file",e),await Yt.post("/property/file",t,{headers:{"Content-Type":"multipart/form-data"}})};async function mM(e){return(await cM("/import/upload",e)).data}async function vM(e){const t=await Yt.post("/import/confirm",e);return ks(t.data)}const bM=async(e,t,i,n,a=!1)=>{await Yt.post("/export",{name:e,images:t,properties:n,exportImages:a,key:i})};async function yM(){return(await Yt.get("/filesystem/info")).data}async function gb(e){return(await Yt.get("/filesystem/ls/"+e)).data}async function xM(e){return(await Yt.get("/filesystem/count/"+e)).data}async function wM(){return(await Yt.get("/status")).data}async function _M(e){return(await Yt.post("/load",{path:e})).data}async function SM(){return(await Yt.post("/close")).data}async function EM(e){return(await Yt.post("/delete_project",{path:e})).data}async function CM(e,t){return(await Yt.post("/create_project",{path:e,name:t})).data}async function AM(e){return(await Yt.post("/import_project",{path:e})).data}async function kM(e){return(await Yt.post("/reimport_folder",{id:e})).data}async function gh(){let e=await Yt.get("/plugins");return ks(e.data)}async function TM(e){return(await Yt.post("/plugins",e)).data}async function IM(e){return(await Yt.delete("/plugins",{params:{path:e}})).data}async function mb(){return(await Yt.get("/plugins_info")).data}async function OM(e,t){return(await Yt.post("/plugin_params",{plugin:e,params:t})).data}async function vb(){return(await Yt.get("/actions")).data}async function Kw(e){const i=(await Yt.post("/action_execute",e)).data;return i.commit&&(i.commit=ks(i.commit)),i}async function PM(){return(await Yt.get("/vectors_info")).data}async function LM(e){return(await Yt.post("/default_vectors",e)).data}async function nu(e){return(await Yt.get("/ui_data/"+e)).data}async function zf(e,t){return(await Yt.post("/ui_data",{key:e,data:t})).data}async function MM(){const e=await Yt.post("/undo");return ks(e.data)}async function NM(){const e=await Yt.post("/redo");return ks(e.data)}async function RM(e){const t=Rn(ns(e));e.instances&&(t.instances=e.instances.map(n=>Rn(n))),e.properties&&(t.properties=e.properties.map(n=>Rn(n))),e.tags&&(t.tags=e.tags.map(n=>Rn(n))),e.instanceValues&&(t.instance_values=e.instanceValues.map(n=>Rn(n))),e.imageValues&&(t.image_values=e.imageValues.map(n=>Rn(n)));const i=await Yt.post("/commit",t);return ks(i.data)}async function DM(){return(await Yt.get("/history")).data}async function bb(){const e=await Yt.get("/update");return ks(e.data)}async function $M(){const e=await Yt.get("/settings");return ks(e.data)}async function FM(e){const t=await Yt.post("/settings",Rn(e));return ks(t.data)}const zM="modulepreload",HM=function(e){return"/"+e},yb={},mh=function(t,i,n){if(!i||i.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(i.map(l=>{if(l=HM(l),l in yb)return;yb[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(!!n)for(let b=a.length-1;b>=0;b--){const w=a[b];if(w.href===l&&(!c||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${d}`))return;const m=document.createElement("link");if(m.rel=c?"stylesheet":zM,c||(m.as="script",m.crossOrigin=""),m.href=l,document.head.appendChild(m),c)return new Promise((b,w)=>{m.addEventListener("load",b),m.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t()).catch(l=>{const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l})},Hf=mP({history:MO("/"),routes:[{path:"/",name:"home",component:()=>mh(()=>import("./HomeView-3c1c1f15.js"),["assets/HomeView-3c1c1f15.js","assets/Tutorial-35af845b.js","assets/Tutorial-37229e07.css","assets/HomeView-204885d0.css"])},{path:"/test",name:"test",component:()=>mh(()=>import("./TestView-44a2de37.js"),["assets/TestView-44a2de37.js","assets/TestView-b992f297.css"])},{path:"/view",name:"view",component:()=>mh(()=>import("./PanopticView-35ae7b55.js"),["assets/PanopticView-35ae7b55.js","assets/Tutorial-35af845b.js","assets/Tutorial-37229e07.css","assets/PanopticView-fd4a9dc4.css"])}]}),ls=gd("panopticStore",()=>{const e=Ii(),t=Wt({status:{},plugins:[],init:!1}),i=Wt({hasError:!1,error:""}),n=ye(null),a=ye(null),l=we(()=>t.status.isLoaded);async function c(){t.init=!1;try{t.status=await wM(),t.plugins=await gh(),t.init=!0,t.status.isLoaded&&e.init()}catch{setTimeout(()=>c(),1e3)}}async function d(M,N){e.clear(),N||(t.status=await _M(M)),await Hf.push("/view"),setTimeout(()=>e.init(),10)}async function p(){e.status.loaded=!1,e.clear(),t.status=await SM(),Hf.push("/")}async function m(M){t.status=await EM(M)}async function b(M,N){M=M.endsWith("\\")?M:M+"/";const k=M+N;t.status=await CM(k,N),await d(k,!0)}async function w(M){t.status=await AM(M),await d(M,!0)}function _(M,N){n.value=M,a.value=N}function C(){n.value=null,a.value=null}async function I(M){M&&(await TM(M),t.plugins=await gh())}async function O(M){console.log(M),await IM(M),t.plugins=await gh()}return{init:c,data:t,state:i,modalData:a,hideModal:C,showModal:_,openModalId:n,isProjectLoaded:l,loadProject:d,closeProject:p,deleteProject:m,createProject:b,importProject:w,addPlugin:I,delPlugin:O}});var rs="top",Ts="bottom",Is="right",as="left",Td="auto",Mo=[rs,Ts,Is,as],ya="start",bo="end",qw="clippingParents",cg="viewport",Ba="popper",Zw="reference",Vf=Mo.reduce(function(e,t){return e.concat([t+"-"+ya,t+"-"+bo])},[]),ug=[].concat(Mo,[Td]).reduce(function(e,t){return e.concat([t,t+"-"+ya,t+"-"+bo])},[]),Jw="beforeRead",Qw="read",e1="afterRead",t1="beforeMain",i1="main",s1="afterMain",n1="beforeWrite",r1="write",a1="afterWrite",o1=[Jw,Qw,e1,t1,i1,s1,n1,r1,a1];function xn(e){return e?(e.nodeName||"").toLowerCase():null}function Xs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xa(e){var t=Xs(e).Element;return e instanceof t||e instanceof Element}function zs(e){var t=Xs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function dg(e){if(typeof ShadowRoot>"u")return!1;var t=Xs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function VM(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var n=t.styles[i]||{},a=t.attributes[i]||{},l=t.elements[i];!zs(l)||!xn(l)||(Object.assign(l.style,n),Object.keys(a).forEach(function(c){var d=a[c];d===!1?l.removeAttribute(c):l.setAttribute(c,d===!0?"":d)}))})}function BM(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],l=t.attributes[n]||{},c=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:i[n]),d=c.reduce(function(p,m){return p[m]="",p},{});!zs(a)||!xn(a)||(Object.assign(a.style,d),Object.keys(l).forEach(function(p){a.removeAttribute(p)}))})}}const hg={name:"applyStyles",enabled:!0,phase:"write",fn:VM,effect:BM,requires:["computeStyles"]};function pn(e){return e.split("-")[0]}var da=Math.max,Mu=Math.min,yo=Math.round;function Bf(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function l1(){return!/^((?!chrome|android).)*safari/i.test(Bf())}function xo(e,t,i){t===void 0&&(t=!1),i===void 0&&(i=!1);var n=e.getBoundingClientRect(),a=1,l=1;t&&zs(e)&&(a=e.offsetWidth>0&&yo(n.width)/e.offsetWidth||1,l=e.offsetHeight>0&&yo(n.height)/e.offsetHeight||1);var c=xa(e)?Xs(e):window,d=c.visualViewport,p=!l1()&&i,m=(n.left+(p&&d?d.offsetLeft:0))/a,b=(n.top+(p&&d?d.offsetTop:0))/l,w=n.width/a,_=n.height/l;return{width:w,height:_,top:b,right:m+w,bottom:b+_,left:m,x:m,y:b}}function fg(e){var t=xo(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function c1(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&dg(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function qn(e){return Xs(e).getComputedStyle(e)}function WM(e){return["table","td","th"].indexOf(xn(e))>=0}function Wr(e){return((xa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Id(e){return xn(e)==="html"?e:e.assignedSlot||e.parentNode||(dg(e)?e.host:null)||Wr(e)}function xb(e){return!zs(e)||qn(e).position==="fixed"?null:e.offsetParent}function YM(e){var t=/firefox/i.test(Bf()),i=/Trident/i.test(Bf());if(i&&zs(e)){var n=qn(e);if(n.position==="fixed")return null}var a=Id(e);for(dg(a)&&(a=a.host);zs(a)&&["html","body"].indexOf(xn(a))<0;){var l=qn(a);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return a;a=a.parentNode}return null}function sc(e){for(var t=Xs(e),i=xb(e);i&&WM(i)&&qn(i).position==="static";)i=xb(i);return i&&(xn(i)==="html"||xn(i)==="body"&&qn(i).position==="static")?t:i||YM(e)||t}function pg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bl(e,t,i){return da(e,Mu(t,i))}function jM(e,t,i){var n=bl(e,t,i);return n>i?i:n}function u1(){return{top:0,right:0,bottom:0,left:0}}function d1(e){return Object.assign({},u1(),e)}function h1(e,t){return t.reduce(function(i,n){return i[n]=e,i},{})}var XM=function(t,i){return t=typeof t=="function"?t(Object.assign({},i.rects,{placement:i.placement})):t,d1(typeof t!="number"?t:h1(t,Mo))};function GM(e){var t,i=e.state,n=e.name,a=e.options,l=i.elements.arrow,c=i.modifiersData.popperOffsets,d=pn(i.placement),p=pg(d),m=[as,Is].indexOf(d)>=0,b=m?"height":"width";if(!(!l||!c)){var w=XM(a.padding,i),_=fg(l),C=p==="y"?rs:as,I=p==="y"?Ts:Is,O=i.rects.reference[b]+i.rects.reference[p]-c[p]-i.rects.popper[b],M=c[p]-i.rects.reference[p],N=sc(l),k=N?p==="y"?N.clientHeight||0:N.clientWidth||0:0,D=O/2-M/2,P=w[C],$=k-_[b]-w[I],H=k/2-_[b]/2+D,ee=bl(P,H,$),se=p;i.modifiersData[n]=(t={},t[se]=ee,t.centerOffset=ee-H,t)}}function UM(e){var t=e.state,i=e.options,n=i.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||c1(t.elements.popper,a)&&(t.elements.arrow=a))}const f1={name:"arrow",enabled:!0,phase:"main",fn:GM,effect:UM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wo(e){return e.split("-")[1]}var KM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qM(e){var t=e.x,i=e.y,n=window,a=n.devicePixelRatio||1;return{x:yo(t*a)/a||0,y:yo(i*a)/a||0}}function wb(e){var t,i=e.popper,n=e.popperRect,a=e.placement,l=e.variation,c=e.offsets,d=e.position,p=e.gpuAcceleration,m=e.adaptive,b=e.roundOffsets,w=e.isFixed,_=c.x,C=_===void 0?0:_,I=c.y,O=I===void 0?0:I,M=typeof b=="function"?b({x:C,y:O}):{x:C,y:O};C=M.x,O=M.y;var N=c.hasOwnProperty("x"),k=c.hasOwnProperty("y"),D=as,P=rs,$=window;if(m){var H=sc(i),ee="clientHeight",se="clientWidth";if(H===Xs(i)&&(H=Wr(i),qn(H).position!=="static"&&d==="absolute"&&(ee="scrollHeight",se="scrollWidth")),H=H,a===rs||(a===as||a===Is)&&l===bo){P=Ts;var Q=w&&H===$&&$.visualViewport?$.visualViewport.height:H[ee];O-=Q-n.height,O*=p?1:-1}if(a===as||(a===rs||a===Ts)&&l===bo){D=Is;var te=w&&H===$&&$.visualViewport?$.visualViewport.width:H[se];C-=te-n.width,C*=p?1:-1}}var ce=Object.assign({position:d},m&&KM),oe=b===!0?qM({x:C,y:O}):{x:C,y:O};if(C=oe.x,O=oe.y,p){var de;return Object.assign({},ce,(de={},de[P]=k?"0":"",de[D]=N?"0":"",de.transform=($.devicePixelRatio||1)<=1?"translate("+C+"px, "+O+"px)":"translate3d("+C+"px, "+O+"px, 0)",de))}return Object.assign({},ce,(t={},t[P]=k?O+"px":"",t[D]=N?C+"px":"",t.transform="",t))}function ZM(e){var t=e.state,i=e.options,n=i.gpuAcceleration,a=n===void 0?!0:n,l=i.adaptive,c=l===void 0?!0:l,d=i.roundOffsets,p=d===void 0?!0:d,m={placement:pn(t.placement),variation:wo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,wb(Object.assign({},m,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:p})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,wb(Object.assign({},m,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gg={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ZM,data:{}};var Dc={passive:!0};function JM(e){var t=e.state,i=e.instance,n=e.options,a=n.scroll,l=a===void 0?!0:a,c=n.resize,d=c===void 0?!0:c,p=Xs(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&m.forEach(function(b){b.addEventListener("scroll",i.update,Dc)}),d&&p.addEventListener("resize",i.update,Dc),function(){l&&m.forEach(function(b){b.removeEventListener("scroll",i.update,Dc)}),d&&p.removeEventListener("resize",i.update,Dc)}}const mg={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:JM,data:{}};var QM={left:"right",right:"left",bottom:"top",top:"bottom"};function ru(e){return e.replace(/left|right|bottom|top/g,function(t){return QM[t]})}var eN={start:"end",end:"start"};function _b(e){return e.replace(/start|end/g,function(t){return eN[t]})}function vg(e){var t=Xs(e),i=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:i,scrollTop:n}}function bg(e){return xo(Wr(e)).left+vg(e).scrollLeft}function tN(e,t){var i=Xs(e),n=Wr(e),a=i.visualViewport,l=n.clientWidth,c=n.clientHeight,d=0,p=0;if(a){l=a.width,c=a.height;var m=l1();(m||!m&&t==="fixed")&&(d=a.offsetLeft,p=a.offsetTop)}return{width:l,height:c,x:d+bg(e),y:p}}function iN(e){var t,i=Wr(e),n=vg(e),a=(t=e.ownerDocument)==null?void 0:t.body,l=da(i.scrollWidth,i.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),c=da(i.scrollHeight,i.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),d=-n.scrollLeft+bg(e),p=-n.scrollTop;return qn(a||i).direction==="rtl"&&(d+=da(i.clientWidth,a?a.clientWidth:0)-l),{width:l,height:c,x:d,y:p}}function yg(e){var t=qn(e),i=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+a+n)}function p1(e){return["html","body","#document"].indexOf(xn(e))>=0?e.ownerDocument.body:zs(e)&&yg(e)?e:p1(Id(e))}function yl(e,t){var i;t===void 0&&(t=[]);var n=p1(e),a=n===((i=e.ownerDocument)==null?void 0:i.body),l=Xs(n),c=a?[l].concat(l.visualViewport||[],yg(n)?n:[]):n,d=t.concat(c);return a?d:d.concat(yl(Id(c)))}function Wf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sN(e,t){var i=xo(e,!1,t==="fixed");return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}function Sb(e,t,i){return t===cg?Wf(tN(e,i)):xa(t)?sN(t,i):Wf(iN(Wr(e)))}function nN(e){var t=yl(Id(e)),i=["absolute","fixed"].indexOf(qn(e).position)>=0,n=i&&zs(e)?sc(e):e;return xa(n)?t.filter(function(a){return xa(a)&&c1(a,n)&&xn(a)!=="body"}):[]}function rN(e,t,i,n){var a=t==="clippingParents"?nN(e):[].concat(t),l=[].concat(a,[i]),c=l[0],d=l.reduce(function(p,m){var b=Sb(e,m,n);return p.top=da(b.top,p.top),p.right=Mu(b.right,p.right),p.bottom=Mu(b.bottom,p.bottom),p.left=da(b.left,p.left),p},Sb(e,c,n));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function g1(e){var t=e.reference,i=e.element,n=e.placement,a=n?pn(n):null,l=n?wo(n):null,c=t.x+t.width/2-i.width/2,d=t.y+t.height/2-i.height/2,p;switch(a){case rs:p={x:c,y:t.y-i.height};break;case Ts:p={x:c,y:t.y+t.height};break;case Is:p={x:t.x+t.width,y:d};break;case as:p={x:t.x-i.width,y:d};break;default:p={x:t.x,y:t.y}}var m=a?pg(a):null;if(m!=null){var b=m==="y"?"height":"width";switch(l){case ya:p[m]=p[m]-(t[b]/2-i[b]/2);break;case bo:p[m]=p[m]+(t[b]/2-i[b]/2);break}}return p}function _o(e,t){t===void 0&&(t={});var i=t,n=i.placement,a=n===void 0?e.placement:n,l=i.strategy,c=l===void 0?e.strategy:l,d=i.boundary,p=d===void 0?qw:d,m=i.rootBoundary,b=m===void 0?cg:m,w=i.elementContext,_=w===void 0?Ba:w,C=i.altBoundary,I=C===void 0?!1:C,O=i.padding,M=O===void 0?0:O,N=d1(typeof M!="number"?M:h1(M,Mo)),k=_===Ba?Zw:Ba,D=e.rects.popper,P=e.elements[I?k:_],$=rN(xa(P)?P:P.contextElement||Wr(e.elements.popper),p,b,c),H=xo(e.elements.reference),ee=g1({reference:H,element:D,strategy:"absolute",placement:a}),se=Wf(Object.assign({},D,ee)),Q=_===Ba?se:H,te={top:$.top-Q.top+N.top,bottom:Q.bottom-$.bottom+N.bottom,left:$.left-Q.left+N.left,right:Q.right-$.right+N.right},ce=e.modifiersData.offset;if(_===Ba&&ce){var oe=ce[a];Object.keys(te).forEach(function(de){var be=[Is,Ts].indexOf(de)>=0?1:-1,Ce=[rs,Ts].indexOf(de)>=0?"y":"x";te[de]+=oe[Ce]*be})}return te}function aN(e,t){t===void 0&&(t={});var i=t,n=i.placement,a=i.boundary,l=i.rootBoundary,c=i.padding,d=i.flipVariations,p=i.allowedAutoPlacements,m=p===void 0?ug:p,b=wo(n),w=b?d?Vf:Vf.filter(function(I){return wo(I)===b}):Mo,_=w.filter(function(I){return m.indexOf(I)>=0});_.length===0&&(_=w);var C=_.reduce(function(I,O){return I[O]=_o(e,{placement:O,boundary:a,rootBoundary:l,padding:c})[pn(O)],I},{});return Object.keys(C).sort(function(I,O){return C[I]-C[O]})}function oN(e){if(pn(e)===Td)return[];var t=ru(e);return[_b(e),t,_b(t)]}function lN(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=i.mainAxis,l=a===void 0?!0:a,c=i.altAxis,d=c===void 0?!0:c,p=i.fallbackPlacements,m=i.padding,b=i.boundary,w=i.rootBoundary,_=i.altBoundary,C=i.flipVariations,I=C===void 0?!0:C,O=i.allowedAutoPlacements,M=t.options.placement,N=pn(M),k=N===M,D=p||(k||!I?[ru(M)]:oN(M)),P=[M].concat(D).reduce(function(et,Ee){return et.concat(pn(Ee)===Td?aN(t,{placement:Ee,boundary:b,rootBoundary:w,padding:m,flipVariations:I,allowedAutoPlacements:O}):Ee)},[]),$=t.rects.reference,H=t.rects.popper,ee=new Map,se=!0,Q=P[0],te=0;te=0,Ce=be?"width":"height",re=_o(t,{placement:ce,boundary:b,rootBoundary:w,altBoundary:_,padding:m}),Z=be?de?Is:as:de?Ts:rs;$[Ce]>H[Ce]&&(Z=ru(Z));var U=ru(Z),fe=[];if(l&&fe.push(re[oe]<=0),d&&fe.push(re[Z]<=0,re[U]<=0),fe.every(function(et){return et})){Q=ce,se=!1;break}ee.set(ce,fe)}if(se)for(var he=I?3:1,ue=function(Ee){var Fe=P.find(function(_e){var Ie=ee.get(_e);if(Ie)return Ie.slice(0,Ee).every(function(pe){return pe})});if(Fe)return Q=Fe,"break"},ve=he;ve>0;ve--){var Re=ue(ve);if(Re==="break")break}t.placement!==Q&&(t.modifiersData[n]._skip=!0,t.placement=Q,t.reset=!0)}}const m1={name:"flip",enabled:!0,phase:"main",fn:lN,requiresIfExists:["offset"],data:{_skip:!1}};function Eb(e,t,i){return i===void 0&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Cb(e){return[rs,Is,Ts,as].some(function(t){return e[t]>=0})}function cN(e){var t=e.state,i=e.name,n=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,c=_o(t,{elementContext:"reference"}),d=_o(t,{altBoundary:!0}),p=Eb(c,n),m=Eb(d,a,l),b=Cb(p),w=Cb(m);t.modifiersData[i]={referenceClippingOffsets:p,popperEscapeOffsets:m,isReferenceHidden:b,hasPopperEscaped:w},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":b,"data-popper-escaped":w})}const v1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cN};function uN(e,t,i){var n=pn(e),a=[as,rs].indexOf(n)>=0?-1:1,l=typeof i=="function"?i(Object.assign({},t,{placement:e})):i,c=l[0],d=l[1];return c=c||0,d=(d||0)*a,[as,Is].indexOf(n)>=0?{x:d,y:c}:{x:c,y:d}}function dN(e){var t=e.state,i=e.options,n=e.name,a=i.offset,l=a===void 0?[0,0]:a,c=ug.reduce(function(b,w){return b[w]=uN(w,t.rects,l),b},{}),d=c[t.placement],p=d.x,m=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=p,t.modifiersData.popperOffsets.y+=m),t.modifiersData[n]=c}const b1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:dN};function hN(e){var t=e.state,i=e.name;t.modifiersData[i]=g1({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const xg={name:"popperOffsets",enabled:!0,phase:"read",fn:hN,data:{}};function fN(e){return e==="x"?"y":"x"}function pN(e){var t=e.state,i=e.options,n=e.name,a=i.mainAxis,l=a===void 0?!0:a,c=i.altAxis,d=c===void 0?!1:c,p=i.boundary,m=i.rootBoundary,b=i.altBoundary,w=i.padding,_=i.tether,C=_===void 0?!0:_,I=i.tetherOffset,O=I===void 0?0:I,M=_o(t,{boundary:p,rootBoundary:m,padding:w,altBoundary:b}),N=pn(t.placement),k=wo(t.placement),D=!k,P=pg(N),$=fN(P),H=t.modifiersData.popperOffsets,ee=t.rects.reference,se=t.rects.popper,Q=typeof O=="function"?O(Object.assign({},t.rects,{placement:t.placement})):O,te=typeof Q=="number"?{mainAxis:Q,altAxis:Q}:Object.assign({mainAxis:0,altAxis:0},Q),ce=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,oe={x:0,y:0};if(H){if(l){var de,be=P==="y"?rs:as,Ce=P==="y"?Ts:Is,re=P==="y"?"height":"width",Z=H[P],U=Z+M[be],fe=Z-M[Ce],he=C?-se[re]/2:0,ue=k===ya?ee[re]:se[re],ve=k===ya?-se[re]:-ee[re],Re=t.elements.arrow,et=C&&Re?fg(Re):{width:0,height:0},Ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:u1(),Fe=Ee[be],_e=Ee[Ce],Ie=bl(0,ee[re],et[re]),pe=D?ee[re]/2-he-Ie-Fe-te.mainAxis:ue-Ie-Fe-te.mainAxis,xe=D?-ee[re]/2+he+Ie+_e+te.mainAxis:ve+Ie+_e+te.mainAxis,Te=t.elements.arrow&&sc(t.elements.arrow),ie=Te?P==="y"?Te.clientTop||0:Te.clientLeft||0:0,j=(de=ce==null?void 0:ce[P])!=null?de:0,G=Z+pe-j-ie,le=Z+xe-j,Se=bl(C?Mu(U,G):U,Z,C?da(fe,le):fe);H[P]=Se,oe[P]=Se-Z}if(d){var Oe,Ye=P==="x"?rs:as,Ue=P==="x"?Ts:Is,Xe=H[$],Ve=$==="y"?"height":"width",Je=Xe+M[Ye],Ae=Xe-M[Ue],De=[rs,as].indexOf(N)!==-1,ot=(Oe=ce==null?void 0:ce[$])!=null?Oe:0,ct=De?Je:Xe-ee[Ve]-se[Ve]-ot+te.altAxis,Pt=De?Xe+ee[Ve]+se[Ve]-ot-te.altAxis:Ae,kt=C&&De?jM(ct,Xe,Pt):bl(C?ct:Je,Xe,C?Pt:Ae);H[$]=kt,oe[$]=kt-Xe}t.modifiersData[n]=oe}}const y1={name:"preventOverflow",enabled:!0,phase:"main",fn:pN,requiresIfExists:["offset"]};function gN(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mN(e){return e===Xs(e)||!zs(e)?vg(e):gN(e)}function vN(e){var t=e.getBoundingClientRect(),i=yo(t.width)/e.offsetWidth||1,n=yo(t.height)/e.offsetHeight||1;return i!==1||n!==1}function bN(e,t,i){i===void 0&&(i=!1);var n=zs(t),a=zs(t)&&vN(t),l=Wr(t),c=xo(e,a,i),d={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(n||!n&&!i)&&((xn(t)!=="body"||yg(l))&&(d=mN(t)),zs(t)?(p=xo(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):l&&(p.x=bg(l))),{x:c.left+d.scrollLeft-p.x,y:c.top+d.scrollTop-p.y,width:c.width,height:c.height}}function yN(e){var t=new Map,i=new Set,n=[];e.forEach(function(l){t.set(l.name,l)});function a(l){i.add(l.name);var c=[].concat(l.requires||[],l.requiresIfExists||[]);c.forEach(function(d){if(!i.has(d)){var p=t.get(d);p&&a(p)}}),n.push(l)}return e.forEach(function(l){i.has(l.name)||a(l)}),n}function xN(e){var t=yN(e);return o1.reduce(function(i,n){return i.concat(t.filter(function(a){return a.phase===n}))},[])}function wN(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}function _N(e){var t=e.reduce(function(i,n){var a=i[n.name];return i[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,i},{});return Object.keys(t).map(function(i){return t[i]})}var Ab={placement:"bottom",modifiers:[],strategy:"absolute"};function kb(){for(var e=arguments.length,t=new Array(e),i=0;ie==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),ON=e=>{do e+=Math.floor(Math.random()*kN);while(document.getElementById(e));return e},w1=e=>{let t=e.getAttribute("data-bs-target");if(!t||t==="#"){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&i!=="#"?i.trim():null}return t},_1=e=>{const t=w1(e);return t&&document.querySelector(t)?t:null},jn=e=>{const t=w1(e);return t?document.querySelector(t):null},PN=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),a=Number.parseFloat(i);return!n&&!a?0:(t=t.split(",")[0],i=i.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(i))*TN)},S1=e=>{e.dispatchEvent(new Event(Yf))},Xn=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),Nr=e=>Xn(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(e):null,No=e=>{if(!Xn(e)||e.getClientRects().length===0)return!1;const t=getComputedStyle(e).getPropertyValue("visibility")==="visible",i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const n=e.closest("summary");if(n&&n.parentNode!==i||n===null)return!1}return t},Rr=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled")?!0:typeof e.disabled<"u"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false",E1=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode=="function"){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?E1(e.parentNode):null},Nu=()=>{},nc=e=>{e.offsetHeight},C1=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,vh=[],LN=e=>{document.readyState==="loading"?(vh.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of vh)t()}),vh.push(e)):e()},Bs=()=>document.documentElement.dir==="rtl",Gs=e=>{LN(()=>{const t=C1();if(t){const i=e.NAME,n=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=n,e.jQueryInterface)}})},Fn=e=>{typeof e=="function"&&e()},A1=(e,t,i=!0)=>{if(!i){Fn(e);return}const n=5,a=PN(t)+n;let l=!1;const c=({target:d})=>{d===t&&(l=!0,t.removeEventListener(Yf,c),Fn(e))};t.addEventListener(Yf,c),setTimeout(()=>{l||S1(t)},a)},_g=(e,t,i,n)=>{const a=e.length;let l=e.indexOf(t);return l===-1?!i&&n?e[a-1]:e[0]:(l+=i?1:-1,n&&(l=(l+a)%a),e[Math.max(0,Math.min(l,a-1))])},MN=/[^.]*(?=\..*)\.|.*/,NN=/\..*/,RN=/::\d+$/,bh={};let Tb=1;const k1={mouseenter:"mouseover",mouseleave:"mouseout"},DN=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function T1(e,t){return t&&`${t}::${Tb++}`||e.uidEvent||Tb++}function I1(e){const t=T1(e);return e.uidEvent=t,bh[t]=bh[t]||{},bh[t]}function $N(e,t){return function i(n){return Sg(n,{delegateTarget:e}),i.oneOff&&Ze.off(e,n.type,t),t.apply(e,[n])}}function FN(e,t,i){return function n(a){const l=e.querySelectorAll(t);for(let{target:c}=a;c&&c!==this;c=c.parentNode)for(const d of l)if(d===c)return Sg(a,{delegateTarget:c}),n.oneOff&&Ze.off(e,a.type,t,i),i.apply(c,[a])}}function O1(e,t,i=null){return Object.values(e).find(n=>n.callable===t&&n.delegationSelector===i)}function P1(e,t,i){const n=typeof t=="string",a=n?i:t||i;let l=L1(e);return DN.has(l)||(l=e),[n,a,l]}function Ib(e,t,i,n,a){if(typeof t!="string"||!e)return;let[l,c,d]=P1(t,i,n);t in k1&&(c=(I=>function(O){if(!O.relatedTarget||O.relatedTarget!==O.delegateTarget&&!O.delegateTarget.contains(O.relatedTarget))return I.call(this,O)})(c));const p=I1(e),m=p[d]||(p[d]={}),b=O1(m,c,l?i:null);if(b){b.oneOff=b.oneOff&&a;return}const w=T1(c,t.replace(MN,"")),_=l?FN(e,i,c):$N(e,c);_.delegationSelector=l?i:null,_.callable=c,_.oneOff=a,_.uidEvent=w,m[w]=_,e.addEventListener(d,_,l)}function jf(e,t,i,n,a){const l=O1(t[i],n,a);l&&(e.removeEventListener(i,l,!!a),delete t[i][l.uidEvent])}function zN(e,t,i,n){const a=t[i]||{};for(const l of Object.keys(a))if(l.includes(n)){const c=a[l];jf(e,t,i,c.callable,c.delegationSelector)}}function L1(e){return e=e.replace(NN,""),k1[e]||e}const Ze={on(e,t,i,n){Ib(e,t,i,n,!1)},one(e,t,i,n){Ib(e,t,i,n,!0)},off(e,t,i,n){if(typeof t!="string"||!e)return;const[a,l,c]=P1(t,i,n),d=c!==t,p=I1(e),m=p[c]||{},b=t.startsWith(".");if(typeof l<"u"){if(!Object.keys(m).length)return;jf(e,p,c,l,a?i:null);return}if(b)for(const w of Object.keys(p))zN(e,p,w,t.slice(1));for(const w of Object.keys(m)){const _=w.replace(RN,"");if(!d||t.includes(_)){const C=m[w];jf(e,p,c,C.callable,C.delegationSelector)}}},trigger(e,t,i){if(typeof t!="string"||!e)return null;const n=C1(),a=L1(t),l=t!==a;let c=null,d=!0,p=!0,m=!1;l&&n&&(c=n.Event(t,i),n(e).trigger(c),d=!c.isPropagationStopped(),p=!c.isImmediatePropagationStopped(),m=c.isDefaultPrevented());let b=new Event(t,{bubbles:d,cancelable:!0});return b=Sg(b,i),m&&b.preventDefault(),p&&e.dispatchEvent(b),b.defaultPrevented&&c&&c.preventDefault(),b}};function Sg(e,t){for(const[i,n]of Object.entries(t||{}))try{e[i]=n}catch{Object.defineProperty(e,i,{configurable:!0,get(){return n}})}return e}const cr=new Map,yh={set(e,t,i){cr.has(e)||cr.set(e,new Map);const n=cr.get(e);if(!n.has(t)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(t,i)},get(e,t){return cr.has(e)&&cr.get(e).get(t)||null},remove(e,t){if(!cr.has(e))return;const i=cr.get(e);i.delete(t),i.size===0&&cr.delete(e)}};function Ob(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function xh(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const Gn={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${xh(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${xh(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of i){let a=n.replace(/^bs/,"");a=a.charAt(0).toLowerCase()+a.slice(1,a.length),t[a]=Ob(e.dataset[n])}return t},getDataAttribute(e,t){return Ob(e.getAttribute(`data-bs-${xh(t)}`))}};class rc{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,i){const n=Xn(i)?Gn.getDataAttribute(i,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...Xn(i)?Gn.getDataAttributes(i):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,i=this.constructor.DefaultType){for(const n of Object.keys(i)){const a=i[n],l=t[n],c=Xn(l)?"element":IN(l);if(!new RegExp(a).test(c))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${c}" but expected type "${a}".`)}}}const HN="5.2.3";class on extends rc{constructor(t,i){super(),t=Nr(t),t&&(this._element=t,this._config=this._getConfig(i),yh.set(this._element,this.constructor.DATA_KEY,this))}dispose(){yh.remove(this._element,this.constructor.DATA_KEY),Ze.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,i,n=!0){A1(t,i,n)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return yh.get(Nr(t),this.DATA_KEY)}static getOrCreateInstance(t,i={}){return this.getInstance(t)||new this(t,typeof i=="object"?i:null)}static get VERSION(){return HN}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Pd=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;Ze.on(document,i,`[data-bs-dismiss="${n}"]`,function(a){if(["A","AREA"].includes(this.tagName)&&a.preventDefault(),Rr(this))return;const l=jn(this)||this.closest(`.${n}`);e.getOrCreateInstance(l)[t]()})},VN="alert",BN="bs.alert",M1=`.${BN}`,WN=`close${M1}`,YN=`closed${M1}`,jN="fade",XN="show";class Ld extends on{static get NAME(){return VN}close(){if(Ze.trigger(this._element,WN).defaultPrevented)return;this._element.classList.remove(XN);const i=this._element.classList.contains(jN);this._queueCallback(()=>this._destroyElement(),this._element,i)}_destroyElement(){this._element.remove(),Ze.trigger(this._element,YN),this.dispose()}static jQueryInterface(t){return this.each(function(){const i=Ld.getOrCreateInstance(this);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t](this)}})}}Pd(Ld,"close");Gs(Ld);const GN="button",UN="bs.button",KN=`.${UN}`,qN=".data-api",ZN="active",Pb='[data-bs-toggle="button"]',JN=`click${KN}${qN}`;class Md extends on{static get NAME(){return GN}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(ZN))}static jQueryInterface(t){return this.each(function(){const i=Md.getOrCreateInstance(this);t==="toggle"&&i[t]()})}}Ze.on(document,JN,Pb,e=>{e.preventDefault();const t=e.target.closest(Pb);Md.getOrCreateInstance(t).toggle()});Gs(Md);const Ft={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(i=>i.matches(t))},parents(e,t){const i=[];let n=e.parentNode.closest(t);for(;n;)i.push(n),n=n.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(i=>`${i}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(i=>!Rr(i)&&No(i))}},QN="swipe",Ro=".bs.swipe",eR=`touchstart${Ro}`,tR=`touchmove${Ro}`,iR=`touchend${Ro}`,sR=`pointerdown${Ro}`,nR=`pointerup${Ro}`,rR="touch",aR="pen",oR="pointer-event",lR=40,cR={endCallback:null,leftCallback:null,rightCallback:null},uR={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Ru extends rc{constructor(t,i){super(),this._element=t,!(!t||!Ru.isSupported())&&(this._config=this._getConfig(i),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return cR}static get DefaultType(){return uR}static get NAME(){return QN}dispose(){Ze.off(this._element,Ro)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Fn(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=lR)return;const i=t/this._deltaX;this._deltaX=0,i&&Fn(i>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ze.on(this._element,sR,t=>this._start(t)),Ze.on(this._element,nR,t=>this._end(t)),this._element.classList.add(oR)):(Ze.on(this._element,eR,t=>this._start(t)),Ze.on(this._element,tR,t=>this._move(t)),Ze.on(this._element,iR,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===aR||t.pointerType===rR)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const dR="carousel",hR="bs.carousel",Yr=`.${hR}`,N1=".data-api",fR="ArrowLeft",pR="ArrowRight",gR=500,Xo="next",Na="prev",Wa="left",au="right",mR=`slide${Yr}`,wh=`slid${Yr}`,vR=`keydown${Yr}`,bR=`mouseenter${Yr}`,yR=`mouseleave${Yr}`,xR=`dragstart${Yr}`,wR=`load${Yr}${N1}`,_R=`click${Yr}${N1}`,R1="carousel",$c="active",SR="slide",ER="carousel-item-end",CR="carousel-item-start",AR="carousel-item-next",kR="carousel-item-prev",D1=".active",$1=".carousel-item",TR=D1+$1,IR=".carousel-item img",OR=".carousel-indicators",PR="[data-bs-slide], [data-bs-slide-to]",LR='[data-bs-ride="carousel"]',MR={[fR]:au,[pR]:Wa},NR={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},RR={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ac extends on{constructor(t,i){super(t,i),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ft.findOne(OR,this._element),this._addEventListeners(),this._config.ride===R1&&this.cycle()}static get Default(){return NR}static get DefaultType(){return RR}static get NAME(){return dR}next(){this._slide(Xo)}nextWhenVisible(){!document.hidden&&No(this._element)&&this.next()}prev(){this._slide(Na)}pause(){this._isSliding&&S1(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Ze.one(this._element,wh,()=>this.cycle());return}this.cycle()}}to(t){const i=this._getItems();if(t>i.length-1||t<0)return;if(this._isSliding){Ze.one(this._element,wh,()=>this.to(t));return}const n=this._getItemIndex(this._getActive());if(n===t)return;const a=t>n?Xo:Na;this._slide(a,i[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&Ze.on(this._element,vR,t=>this._keydown(t)),this._config.pause==="hover"&&(Ze.on(this._element,bR,()=>this.pause()),Ze.on(this._element,yR,()=>this._maybeEnableCycle())),this._config.touch&&Ru.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of Ft.find(IR,this._element))Ze.on(n,xR,a=>a.preventDefault());const i={leftCallback:()=>this._slide(this._directionToOrder(Wa)),rightCallback:()=>this._slide(this._directionToOrder(au)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),gR+this._config.interval))}};this._swipeHelper=new Ru(this._element,i)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const i=MR[t.key];i&&(t.preventDefault(),this._slide(this._directionToOrder(i)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const i=Ft.findOne(D1,this._indicatorsElement);i.classList.remove($c),i.removeAttribute("aria-current");const n=Ft.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);n&&(n.classList.add($c),n.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const i=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=i||this._config.defaultInterval}_slide(t,i=null){if(this._isSliding)return;const n=this._getActive(),a=t===Xo,l=i||_g(this._getItems(),n,a,this._config.wrap);if(l===n)return;const c=this._getItemIndex(l),d=C=>Ze.trigger(this._element,C,{relatedTarget:l,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:c});if(d(mR).defaultPrevented||!n||!l)return;const m=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(c),this._activeElement=l;const b=a?CR:ER,w=a?AR:kR;l.classList.add(w),nc(l),n.classList.add(b),l.classList.add(b);const _=()=>{l.classList.remove(b,w),l.classList.add($c),n.classList.remove($c,w,b),this._isSliding=!1,d(wh)};this._queueCallback(_,n,this._isAnimated()),m&&this.cycle()}_isAnimated(){return this._element.classList.contains(SR)}_getActive(){return Ft.findOne(TR,this._element)}_getItems(){return Ft.find($1,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Bs()?t===Wa?Na:Xo:t===Wa?Xo:Na}_orderToDirection(t){return Bs()?t===Na?Wa:au:t===Na?au:Wa}static jQueryInterface(t){return this.each(function(){const i=ac.getOrCreateInstance(this,t);if(typeof t=="number"){i.to(t);return}if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t]()}})}}Ze.on(document,_R,PR,function(e){const t=jn(this);if(!t||!t.classList.contains(R1))return;e.preventDefault();const i=ac.getOrCreateInstance(t),n=this.getAttribute("data-bs-slide-to");if(n){i.to(n),i._maybeEnableCycle();return}if(Gn.getDataAttribute(this,"slide")==="next"){i.next(),i._maybeEnableCycle();return}i.prev(),i._maybeEnableCycle()});Ze.on(window,wR,()=>{const e=Ft.find(LR);for(const t of e)ac.getOrCreateInstance(t)});Gs(ac);const DR="collapse",$R="bs.collapse",oc=`.${$R}`,FR=".data-api",zR=`show${oc}`,HR=`shown${oc}`,VR=`hide${oc}`,BR=`hidden${oc}`,WR=`click${oc}${FR}`,_h="show",Ga="collapse",Fc="collapsing",YR="collapsed",jR=`:scope .${Ga} .${Ga}`,XR="collapse-horizontal",GR="width",UR="height",KR=".collapse.show, .collapse.collapsing",Xf='[data-bs-toggle="collapse"]',qR={parent:null,toggle:!0},ZR={parent:"(null|element)",toggle:"boolean"};class Wl extends on{constructor(t,i){super(t,i),this._isTransitioning=!1,this._triggerArray=[];const n=Ft.find(Xf);for(const a of n){const l=_1(a),c=Ft.find(l).filter(d=>d===this._element);l!==null&&c.length&&this._triggerArray.push(a)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return qR}static get DefaultType(){return ZR}static get NAME(){return DR}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(KR).filter(d=>d!==this._element).map(d=>Wl.getOrCreateInstance(d,{toggle:!1}))),t.length&&t[0]._isTransitioning||Ze.trigger(this._element,zR).defaultPrevented)return;for(const d of t)d.hide();const n=this._getDimension();this._element.classList.remove(Ga),this._element.classList.add(Fc),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const a=()=>{this._isTransitioning=!1,this._element.classList.remove(Fc),this._element.classList.add(Ga,_h),this._element.style[n]="",Ze.trigger(this._element,HR)},c=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(a,this._element,!0),this._element.style[n]=`${this._element[c]}px`}hide(){if(this._isTransitioning||!this._isShown()||Ze.trigger(this._element,VR).defaultPrevented)return;const i=this._getDimension();this._element.style[i]=`${this._element.getBoundingClientRect()[i]}px`,nc(this._element),this._element.classList.add(Fc),this._element.classList.remove(Ga,_h);for(const a of this._triggerArray){const l=jn(a);l&&!this._isShown(l)&&this._addAriaAndCollapsedClass([a],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(Fc),this._element.classList.add(Ga),Ze.trigger(this._element,BR)};this._element.style[i]="",this._queueCallback(n,this._element,!0)}_isShown(t=this._element){return t.classList.contains(_h)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=Nr(t.parent),t}_getDimension(){return this._element.classList.contains(XR)?GR:UR}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Xf);for(const i of t){const n=jn(i);n&&this._addAriaAndCollapsedClass([i],this._isShown(n))}}_getFirstLevelChildren(t){const i=Ft.find(jR,this._config.parent);return Ft.find(t,this._config.parent).filter(n=>!i.includes(n))}_addAriaAndCollapsedClass(t,i){if(t.length)for(const n of t)n.classList.toggle(YR,!i),n.setAttribute("aria-expanded",i)}static jQueryInterface(t){const i={};return typeof t=="string"&&/show|hide/.test(t)&&(i.toggle=!1),this.each(function(){const n=Wl.getOrCreateInstance(this,i);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}Ze.on(document,WR,Xf,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();const t=_1(this),i=Ft.find(t);for(const n of i)Wl.getOrCreateInstance(n,{toggle:!1}).toggle()});Gs(Wl);const Lb="dropdown",JR="bs.dropdown",ka=`.${JR}`,Eg=".data-api",QR="Escape",Mb="Tab",eD="ArrowUp",Nb="ArrowDown",tD=2,iD=`hide${ka}`,sD=`hidden${ka}`,nD=`show${ka}`,rD=`shown${ka}`,F1=`click${ka}${Eg}`,z1=`keydown${ka}${Eg}`,aD=`keyup${ka}${Eg}`,Ya="show",oD="dropup",lD="dropend",cD="dropstart",uD="dropup-center",dD="dropdown-center",ra='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',hD=`${ra}.${Ya}`,ou=".dropdown-menu",fD=".navbar",pD=".navbar-nav",gD=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",mD=Bs()?"top-end":"top-start",vD=Bs()?"top-start":"top-end",bD=Bs()?"bottom-end":"bottom-start",yD=Bs()?"bottom-start":"bottom-end",xD=Bs()?"left-start":"right-start",wD=Bs()?"right-start":"left-start",_D="top",SD="bottom",ED={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},CD={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};let Do=class lu extends on{constructor(t,i){super(t,i),this._popper=null,this._parent=this._element.parentNode,this._menu=Ft.next(this._element,ou)[0]||Ft.prev(this._element,ou)[0]||Ft.findOne(ou,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ED}static get DefaultType(){return CD}static get NAME(){return Lb}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Rr(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!Ze.trigger(this._element,nD,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(pD))for(const n of[].concat(...document.body.children))Ze.on(n,"mouseover",Nu);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ya),this._element.classList.add(Ya),Ze.trigger(this._element,rD,t)}}hide(){if(Rr(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!Ze.trigger(this._element,iD,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))Ze.off(n,"mouseover",Nu);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ya),this._element.classList.remove(Ya),this._element.setAttribute("aria-expanded","false"),Gn.removeDataAttribute(this._menu,"popper"),Ze.trigger(this._element,sD,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!Xn(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Lb.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof x1>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:Xn(this._config.reference)?t=Nr(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const i=this._getPopperConfig();this._popper=wg(t,this._menu,i)}_isShown(){return this._menu.classList.contains(Ya)}_getPlacement(){const t=this._parent;if(t.classList.contains(lD))return xD;if(t.classList.contains(cD))return wD;if(t.classList.contains(uD))return _D;if(t.classList.contains(dD))return SD;const i=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(oD)?i?vD:mD:i?yD:bD}_detectNavbar(){return this._element.closest(fD)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(i=>Number.parseInt(i,10)):typeof t=="function"?i=>t(i,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Gn.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...typeof this._config.popperConfig=="function"?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:i}){const n=Ft.find(gD,this._menu).filter(a=>No(a));n.length&&_g(n,i,t===Nb,!n.includes(i)).focus()}static jQueryInterface(t){return this.each(function(){const i=lu.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t]()}})}static clearMenus(t){if(t.button===tD||t.type==="keyup"&&t.key!==Mb)return;const i=Ft.find(hD);for(const n of i){const a=lu.getInstance(n);if(!a||a._config.autoClose===!1)continue;const l=t.composedPath(),c=l.includes(a._menu);if(l.includes(a._element)||a._config.autoClose==="inside"&&!c||a._config.autoClose==="outside"&&c||a._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Mb||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const d={relatedTarget:a._element};t.type==="click"&&(d.clickEvent=t),a._completeHide(d)}}static dataApiKeydownHandler(t){const i=/input|textarea/i.test(t.target.tagName),n=t.key===QR,a=[eD,Nb].includes(t.key);if(!a&&!n||i&&!n)return;t.preventDefault();const l=this.matches(ra)?this:Ft.prev(this,ra)[0]||Ft.next(this,ra)[0]||Ft.findOne(ra,t.delegateTarget.parentNode),c=lu.getOrCreateInstance(l);if(a){t.stopPropagation(),c.show(),c._selectMenuItem(t);return}c._isShown()&&(t.stopPropagation(),c.hide(),l.focus())}};Ze.on(document,z1,ra,Do.dataApiKeydownHandler);Ze.on(document,z1,ou,Do.dataApiKeydownHandler);Ze.on(document,F1,Do.clearMenus);Ze.on(document,aD,Do.clearMenus);Ze.on(document,F1,ra,function(e){e.preventDefault(),Do.getOrCreateInstance(this).toggle()});Gs(Do);const Rb=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Db=".sticky-top",zc="padding-right",$b="margin-right";class Gf{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,zc,i=>i+t),this._setElementAttributes(Rb,zc,i=>i+t),this._setElementAttributes(Db,$b,i=>i-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,zc),this._resetElementAttributes(Rb,zc),this._resetElementAttributes(Db,$b)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,i,n){const a=this.getWidth(),l=c=>{if(c!==this._element&&window.innerWidth>c.clientWidth+a)return;this._saveInitialAttribute(c,i);const d=window.getComputedStyle(c).getPropertyValue(i);c.style.setProperty(i,`${n(Number.parseFloat(d))}px`)};this._applyManipulationCallback(t,l)}_saveInitialAttribute(t,i){const n=t.style.getPropertyValue(i);n&&Gn.setDataAttribute(t,i,n)}_resetElementAttributes(t,i){const n=a=>{const l=Gn.getDataAttribute(a,i);if(l===null){a.style.removeProperty(i);return}Gn.removeDataAttribute(a,i),a.style.setProperty(i,l)};this._applyManipulationCallback(t,n)}_applyManipulationCallback(t,i){if(Xn(t)){i(t);return}for(const n of Ft.find(t,this._element))i(n)}}const H1="backdrop",AD="fade",Fb="show",zb=`mousedown.bs.${H1}`,kD={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},TD={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class V1 extends rc{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return kD}static get DefaultType(){return TD}static get NAME(){return H1}show(t){if(!this._config.isVisible){Fn(t);return}this._append();const i=this._getElement();this._config.isAnimated&&nc(i),i.classList.add(Fb),this._emulateAnimation(()=>{Fn(t)})}hide(t){if(!this._config.isVisible){Fn(t);return}this._getElement().classList.remove(Fb),this._emulateAnimation(()=>{this.dispose(),Fn(t)})}dispose(){this._isAppended&&(Ze.off(this._element,zb),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(AD),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Nr(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),Ze.on(t,zb,()=>{Fn(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){A1(t,this._getElement(),this._config.isAnimated)}}const ID="focustrap",OD="bs.focustrap",Du=`.${OD}`,PD=`focusin${Du}`,LD=`keydown.tab${Du}`,MD="Tab",ND="forward",Hb="backward",RD={autofocus:!0,trapElement:null},DD={autofocus:"boolean",trapElement:"element"};class B1 extends rc{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return RD}static get DefaultType(){return DD}static get NAME(){return ID}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ze.off(document,Du),Ze.on(document,PD,t=>this._handleFocusin(t)),Ze.on(document,LD,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Ze.off(document,Du))}_handleFocusin(t){const{trapElement:i}=this._config;if(t.target===document||t.target===i||i.contains(t.target))return;const n=Ft.focusableChildren(i);n.length===0?i.focus():this._lastTabNavDirection===Hb?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){t.key===MD&&(this._lastTabNavDirection=t.shiftKey?Hb:ND)}}const $D="modal",FD="bs.modal",ln=`.${FD}`,zD=".data-api",HD="Escape",VD=`hide${ln}`,BD=`hidePrevented${ln}`,W1=`hidden${ln}`,Y1=`show${ln}`,WD=`shown${ln}`,YD=`resize${ln}`,jD=`click.dismiss${ln}`,XD=`mousedown.dismiss${ln}`,GD=`keydown.dismiss${ln}`,UD=`click${ln}${zD}`,Vb="modal-open",KD="fade",Bb="show",Sh="modal-static",qD=".modal.show",ZD=".modal-dialog",JD=".modal-body",QD='[data-bs-toggle="modal"]',e$={backdrop:!0,focus:!0,keyboard:!0},t$={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};let wa=class j1 extends on{constructor(t,i){super(t,i),this._dialog=Ft.findOne(ZD,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Gf,this._addEventListeners()}static get Default(){return e$}static get DefaultType(){return t$}static get NAME(){return $D}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||Ze.trigger(this._element,Y1,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Vb),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||Ze.trigger(this._element,VD).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Bb),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){for(const t of[window,this._dialog])Ze.off(t,ln);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new V1({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new B1({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const i=Ft.findOne(JD,this._dialog);i&&(i.scrollTop=0),nc(this._element),this._element.classList.add(Bb);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ze.trigger(this._element,WD,{relatedTarget:t})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){Ze.on(this._element,GD,t=>{if(t.key===HD){if(this._config.keyboard){t.preventDefault(),this.hide();return}this._triggerBackdropTransition()}}),Ze.on(window,YD,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ze.on(this._element,XD,t=>{Ze.one(this._element,jD,i=>{if(!(this._element!==t.target||this._element!==i.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Vb),this._resetAdjustments(),this._scrollBar.reset(),Ze.trigger(this._element,W1)})}_isAnimated(){return this._element.classList.contains(KD)}_triggerBackdropTransition(){if(Ze.trigger(this._element,BD).defaultPrevented)return;const i=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(Sh)||(i||(this._element.style.overflowY="hidden"),this._element.classList.add(Sh),this._queueCallback(()=>{this._element.classList.remove(Sh),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,i=this._scrollBar.getWidth(),n=i>0;if(n&&!t){const a=Bs()?"paddingLeft":"paddingRight";this._element.style[a]=`${i}px`}if(!n&&t){const a=Bs()?"paddingRight":"paddingLeft";this._element.style[a]=`${i}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,i){return this.each(function(){const n=j1.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](i)}})}};Ze.on(document,UD,QD,function(e){const t=jn(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),Ze.one(t,Y1,a=>{a.defaultPrevented||Ze.one(t,W1,()=>{No(this)&&this.focus()})});const i=Ft.findOne(qD);i&&wa.getInstance(i).hide(),wa.getOrCreateInstance(t).toggle(this)});Pd(wa);Gs(wa);const i$="offcanvas",s$="bs.offcanvas",Jn=`.${s$}`,X1=".data-api",n$=`load${Jn}${X1}`,r$="Escape",Wb="show",Yb="showing",jb="hiding",a$="offcanvas-backdrop",G1=".offcanvas.show",o$=`show${Jn}`,l$=`shown${Jn}`,c$=`hide${Jn}`,Xb=`hidePrevented${Jn}`,U1=`hidden${Jn}`,u$=`resize${Jn}`,d$=`click${Jn}${X1}`,h$=`keydown.dismiss${Jn}`,f$='[data-bs-toggle="offcanvas"]',p$={backdrop:!0,keyboard:!0,scroll:!1},g$={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Dr extends on{constructor(t,i){super(t,i),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return p$}static get DefaultType(){return g$}static get NAME(){return i$}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||Ze.trigger(this._element,o$,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Gf().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Yb);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Wb),this._element.classList.remove(Yb),Ze.trigger(this._element,l$,{relatedTarget:t})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||Ze.trigger(this._element,c$).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(jb),this._backdrop.hide();const i=()=>{this._element.classList.remove(Wb,jb),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Gf().reset(),Ze.trigger(this._element,U1)};this._queueCallback(i,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){Ze.trigger(this._element,Xb);return}this.hide()},i=!!this._config.backdrop;return new V1({className:a$,isVisible:i,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:i?t:null})}_initializeFocusTrap(){return new B1({trapElement:this._element})}_addEventListeners(){Ze.on(this._element,h$,t=>{if(t.key===r$){if(!this._config.keyboard){Ze.trigger(this._element,Xb);return}this.hide()}})}static jQueryInterface(t){return this.each(function(){const i=Dr.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t](this)}})}}Ze.on(document,d$,f$,function(e){const t=jn(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Rr(this))return;Ze.one(t,U1,()=>{No(this)&&this.focus()});const i=Ft.findOne(G1);i&&i!==t&&Dr.getInstance(i).hide(),Dr.getOrCreateInstance(t).toggle(this)});Ze.on(window,n$,()=>{for(const e of Ft.find(G1))Dr.getOrCreateInstance(e).show()});Ze.on(window,u$,()=>{for(const e of Ft.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&Dr.getOrCreateInstance(e).hide()});Pd(Dr);Gs(Dr);const m$=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),v$=/^aria-[\w-]*$/i,b$=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,y$=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,x$=(e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?m$.has(i)?!!(b$.test(e.nodeValue)||y$.test(e.nodeValue)):!0:t.filter(n=>n instanceof RegExp).some(n=>n.test(i))},K1={"*":["class","dir","id","lang","role",v$],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function w$(e,t,i){if(!e.length)return e;if(i&&typeof i=="function")return i(e);const a=new window.DOMParser().parseFromString(e,"text/html"),l=[].concat(...a.body.querySelectorAll("*"));for(const c of l){const d=c.nodeName.toLowerCase();if(!Object.keys(t).includes(d)){c.remove();continue}const p=[].concat(...c.attributes),m=[].concat(t["*"]||[],t[d]||[]);for(const b of p)x$(b,m)||c.removeAttribute(b.nodeName)}return a.body.innerHTML}const _$="TemplateFactory",S$={allowList:K1,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},E$={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},C$={entry:"(string|element|function|null)",selector:"(string|element)"};class A$ extends rc{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return S$}static get DefaultType(){return E$}static get NAME(){return _$}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[a,l]of Object.entries(this._config.content))this._setContent(t,l,a);const i=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&i.classList.add(...n.split(" ")),i}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[i,n]of Object.entries(t))super._typeCheckConfig({selector:i,entry:n},C$)}_setContent(t,i,n){const a=Ft.findOne(n,t);if(a){if(i=this._resolvePossibleFunction(i),!i){a.remove();return}if(Xn(i)){this._putElementInTemplate(Nr(i),a);return}if(this._config.html){a.innerHTML=this._maybeSanitize(i);return}a.textContent=i}}_maybeSanitize(t){return this._config.sanitize?w$(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return typeof t=="function"?t(this):t}_putElementInTemplate(t,i){if(this._config.html){i.innerHTML="",i.append(t);return}i.textContent=t.textContent}}const k$="tooltip",T$=new Set(["sanitize","allowList","sanitizeFn"]),Eh="fade",I$="modal",Hc="show",O$=".tooltip-inner",Gb=`.${I$}`,Ub="hide.bs.modal",Go="hover",Ch="focus",P$="click",L$="manual",M$="hide",N$="hidden",R$="show",D$="shown",$$="inserted",F$="click",z$="focusin",H$="focusout",V$="mouseenter",B$="mouseleave",W$={AUTO:"auto",TOP:"top",RIGHT:Bs()?"left":"right",BOTTOM:"bottom",LEFT:Bs()?"right":"left"},Y$={allowList:K1,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},j$={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class $o extends on{constructor(t,i){if(typeof x1>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,i),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Y$}static get DefaultType(){return j$}static get NAME(){return k$}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Ze.off(this._element.closest(Gb),Ub,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=Ze.trigger(this._element,this.constructor.eventName(R$)),n=(E1(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!n)return;this._disposePopper();const a=this._getTipElement();this._element.setAttribute("aria-describedby",a.getAttribute("id"));const{container:l}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(l.append(a),Ze.trigger(this._element,this.constructor.eventName($$))),this._popper=this._createPopper(a),a.classList.add(Hc),"ontouchstart"in document.documentElement)for(const d of[].concat(...document.body.children))Ze.on(d,"mouseover",Nu);const c=()=>{Ze.trigger(this._element,this.constructor.eventName(D$)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(c,this.tip,this._isAnimated())}hide(){if(!this._isShown()||Ze.trigger(this._element,this.constructor.eventName(M$)).defaultPrevented)return;if(this._getTipElement().classList.remove(Hc),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))Ze.off(a,"mouseover",Nu);this._activeTrigger[P$]=!1,this._activeTrigger[Ch]=!1,this._activeTrigger[Go]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ze.trigger(this._element,this.constructor.eventName(N$)))};this._queueCallback(n,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const i=this._getTemplateFactory(t).toHtml();if(!i)return null;i.classList.remove(Eh,Hc),i.classList.add(`bs-${this.constructor.NAME}-auto`);const n=ON(this.constructor.NAME).toString();return i.setAttribute("id",n),this._isAnimated()&&i.classList.add(Eh),i}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new A$({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[O$]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Eh)}_isShown(){return this.tip&&this.tip.classList.contains(Hc)}_createPopper(t){const i=typeof this._config.placement=="function"?this._config.placement.call(this,t,this._element):this._config.placement,n=W$[i.toUpperCase()];return wg(this._element,t,this._getPopperConfig(n))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(i=>Number.parseInt(i,10)):typeof t=="function"?i=>t(i,this._element):t}_resolvePossibleFunction(t){return typeof t=="function"?t.call(this._element):t}_getPopperConfig(t){const i={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...i,...typeof this._config.popperConfig=="function"?this._config.popperConfig(i):this._config.popperConfig}}_setListeners(){const t=this._config.trigger.split(" ");for(const i of t)if(i==="click")Ze.on(this._element,this.constructor.eventName(F$),this._config.selector,n=>{this._initializeOnDelegatedTarget(n).toggle()});else if(i!==L$){const n=i===Go?this.constructor.eventName(V$):this.constructor.eventName(z$),a=i===Go?this.constructor.eventName(B$):this.constructor.eventName(H$);Ze.on(this._element,n,this._config.selector,l=>{const c=this._initializeOnDelegatedTarget(l);c._activeTrigger[l.type==="focusin"?Ch:Go]=!0,c._enter()}),Ze.on(this._element,a,this._config.selector,l=>{const c=this._initializeOnDelegatedTarget(l);c._activeTrigger[l.type==="focusout"?Ch:Go]=c._element.contains(l.relatedTarget),c._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Ze.on(this._element.closest(Gb),Ub,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,i){clearTimeout(this._timeout),this._timeout=setTimeout(t,i)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const i=Gn.getDataAttributes(this._element);for(const n of Object.keys(i))T$.has(n)&&delete i[n];return t={...i,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:Nr(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const i in this._config)this.constructor.Default[i]!==this._config[i]&&(t[i]=this._config[i]);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const i=$o.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t]()}})}}Gs($o);const X$="popover",G$=".popover-header",U$=".popover-body",K$={...$o.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},q$={...$o.DefaultType,content:"(null|string|element|function)"};class Cg extends $o{static get Default(){return K$}static get DefaultType(){return q$}static get NAME(){return X$}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[G$]:this._getTitle(),[U$]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const i=Cg.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t]()}})}}Gs(Cg);const Z$="scrollspy",J$="bs.scrollspy",Ag=`.${J$}`,Q$=".data-api",e2=`activate${Ag}`,Kb=`click${Ag}`,t2=`load${Ag}${Q$}`,i2="dropdown-item",Ra="active",s2='[data-bs-spy="scroll"]',Ah="[href]",n2=".nav, .list-group",qb=".nav-link",r2=".nav-item",a2=".list-group-item",o2=`${qb}, ${r2} > ${qb}, ${a2}`,l2=".dropdown",c2=".dropdown-toggle",u2={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},d2={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Nd extends on{constructor(t,i){super(t,i),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return u2}static get DefaultType(){return d2}static get NAME(){return Z$}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Nr(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(i=>Number.parseFloat(i))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Ze.off(this._config.target,Kb),Ze.on(this._config.target,Kb,Ah,t=>{const i=this._observableSections.get(t.target.hash);if(i){t.preventDefault();const n=this._rootElement||window,a=i.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:a,behavior:"smooth"});return}n.scrollTop=a}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(i=>this._observerCallback(i),t)}_observerCallback(t){const i=c=>this._targetLinks.get(`#${c.target.id}`),n=c=>{this._previousScrollData.visibleEntryTop=c.target.offsetTop,this._process(i(c))},a=(this._rootElement||document.documentElement).scrollTop,l=a>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=a;for(const c of t){if(!c.isIntersecting){this._activeTarget=null,this._clearActiveClass(i(c));continue}const d=c.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(l&&d){if(n(c),!a)return;continue}!l&&!d&&n(c)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=Ft.find(Ah,this._config.target);for(const i of t){if(!i.hash||Rr(i))continue;const n=Ft.findOne(i.hash,this._element);No(n)&&(this._targetLinks.set(i.hash,i),this._observableSections.set(i.hash,n))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Ra),this._activateParents(t),Ze.trigger(this._element,e2,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(i2)){Ft.findOne(c2,t.closest(l2)).classList.add(Ra);return}for(const i of Ft.parents(t,n2))for(const n of Ft.prev(i,o2))n.classList.add(Ra)}_clearActiveClass(t){t.classList.remove(Ra);const i=Ft.find(`${Ah}.${Ra}`,t);for(const n of i)n.classList.remove(Ra)}static jQueryInterface(t){return this.each(function(){const i=Nd.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t]()}})}}Ze.on(window,t2,()=>{for(const e of Ft.find(s2))Nd.getOrCreateInstance(e)});Gs(Nd);const h2="tab",f2="bs.tab",Ta=`.${f2}`,p2=`hide${Ta}`,g2=`hidden${Ta}`,m2=`show${Ta}`,v2=`shown${Ta}`,b2=`click${Ta}`,y2=`keydown${Ta}`,x2=`load${Ta}`,w2="ArrowLeft",Zb="ArrowRight",_2="ArrowUp",Jb="ArrowDown",aa="active",Qb="fade",kh="show",S2="dropdown",E2=".dropdown-toggle",C2=".dropdown-menu",Th=":not(.dropdown-toggle)",A2='.list-group, .nav, [role="tablist"]',k2=".nav-item, .list-group-item",T2=`.nav-link${Th}, .list-group-item${Th}, [role="tab"]${Th}`,q1='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Ih=`${T2}, ${q1}`,I2=`.${aa}[data-bs-toggle="tab"], .${aa}[data-bs-toggle="pill"], .${aa}[data-bs-toggle="list"]`;class So extends on{constructor(t){super(t),this._parent=this._element.closest(A2),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ze.on(this._element,y2,i=>this._keydown(i)))}static get NAME(){return h2}show(){const t=this._element;if(this._elemIsActive(t))return;const i=this._getActiveElem(),n=i?Ze.trigger(i,p2,{relatedTarget:t}):null;Ze.trigger(t,m2,{relatedTarget:i}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(i,t),this._activate(t,i))}_activate(t,i){if(!t)return;t.classList.add(aa),this._activate(jn(t));const n=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(kh);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),Ze.trigger(t,v2,{relatedTarget:i})};this._queueCallback(n,t,t.classList.contains(Qb))}_deactivate(t,i){if(!t)return;t.classList.remove(aa),t.blur(),this._deactivate(jn(t));const n=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(kh);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),Ze.trigger(t,g2,{relatedTarget:i})};this._queueCallback(n,t,t.classList.contains(Qb))}_keydown(t){if(![w2,Zb,_2,Jb].includes(t.key))return;t.stopPropagation(),t.preventDefault();const i=[Zb,Jb].includes(t.key),n=_g(this._getChildren().filter(a=>!Rr(a)),t.target,i,!0);n&&(n.focus({preventScroll:!0}),So.getOrCreateInstance(n).show())}_getChildren(){return Ft.find(Ih,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,i){this._setAttributeIfNotExists(t,"role","tablist");for(const n of i)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const i=this._elemIsActive(t),n=this._getOuterElement(t);t.setAttribute("aria-selected",i),n!==t&&this._setAttributeIfNotExists(n,"role","presentation"),i||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const i=jn(t);i&&(this._setAttributeIfNotExists(i,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(i,"aria-labelledby",`#${t.id}`))}_toggleDropDown(t,i){const n=this._getOuterElement(t);if(!n.classList.contains(S2))return;const a=(l,c)=>{const d=Ft.findOne(l,n);d&&d.classList.toggle(c,i)};a(E2,aa),a(C2,kh),n.setAttribute("aria-expanded",i)}_setAttributeIfNotExists(t,i,n){t.hasAttribute(i)||t.setAttribute(i,n)}_elemIsActive(t){return t.classList.contains(aa)}_getInnerElement(t){return t.matches(Ih)?t:Ft.findOne(Ih,t)}_getOuterElement(t){return t.closest(k2)||t}static jQueryInterface(t){return this.each(function(){const i=So.getOrCreateInstance(this);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t]()}})}}Ze.on(document,b2,q1,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!Rr(this)&&So.getOrCreateInstance(this).show()});Ze.on(window,x2,()=>{for(const e of Ft.find(I2))So.getOrCreateInstance(e)});Gs(So);const O2="toast",P2="bs.toast",jr=`.${P2}`,L2=`mouseover${jr}`,M2=`mouseout${jr}`,N2=`focusin${jr}`,R2=`focusout${jr}`,D2=`hide${jr}`,$2=`hidden${jr}`,F2=`show${jr}`,z2=`shown${jr}`,H2="fade",ey="hide",Vc="show",Bc="showing",V2={animation:"boolean",autohide:"boolean",delay:"number"},B2={animation:!0,autohide:!0,delay:5e3};class Rd extends on{constructor(t,i){super(t,i),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return B2}static get DefaultType(){return V2}static get NAME(){return O2}show(){if(Ze.trigger(this._element,F2).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(H2);const i=()=>{this._element.classList.remove(Bc),Ze.trigger(this._element,z2),this._maybeScheduleHide()};this._element.classList.remove(ey),nc(this._element),this._element.classList.add(Vc,Bc),this._queueCallback(i,this._element,this._config.animation)}hide(){if(!this.isShown()||Ze.trigger(this._element,D2).defaultPrevented)return;const i=()=>{this._element.classList.add(ey),this._element.classList.remove(Bc,Vc),Ze.trigger(this._element,$2)};this._element.classList.add(Bc),this._queueCallback(i,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Vc),super.dispose()}isShown(){return this._element.classList.contains(Vc)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,i){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=i;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=i;break}}if(i){this._clearTimeout();return}const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Ze.on(this._element,L2,t=>this._onInteraction(t,!0)),Ze.on(this._element,M2,t=>this._onInteraction(t,!1)),Ze.on(this._element,N2,t=>this._onInteraction(t,!0)),Ze.on(this._element,R2,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const i=Rd.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t](this)}})}}Pd(Rd);Gs(Rd);const W2={key:0,class:"bi bi-text-left"},Y2={key:1,class:"bi bi-123"},j2={key:2,class:"bi bi-calendar-date"},X2={key:3,class:"bi bi-code-slash"},G2={key:4,class:"bi bi-card-image"},U2={key:5,class:"bi bi-globe"},K2={key:6,class:"bi bi-palette"},q2={key:7,class:"bi bi-check-square"},Z2={key:8,class:"bi bi-tag-fill"},J2={key:9,class:"bi bi-tags-fill"},Q2={key:10,class:"bi bi-folder"},eF={key:11,style:{"padding-left":"2px"}},tF={key:12,class:"bi bi-arrows"},iF={key:13,class:"bi bi-arrows-vertical"},sF={key:14,class:"bi bi-hash"},Ws=Ke({__name:"PropertyIcon",props:["type"],setup(e){const t=e;return(i,n)=>(W(),K("span",null,[t.type==Be(He).string?(W(),K("i",W2)):t.type==Be(He).number?(W(),K("i",Y2)):t.type==Be(He).date?(W(),K("i",j2)):t.type==Be(He).path?(W(),K("i",X2)):t.type==Be(He).image_link?(W(),K("i",G2)):t.type==Be(He).url?(W(),K("i",U2)):t.type==Be(He).color?(W(),K("i",K2)):t.type==Be(He).checkbox?(W(),K("i",q2)):e.type==Be(He).tag?(W(),K("i",Z2)):e.type==Be(He).multi_tags?(W(),K("i",J2)):t.type==Be(He)._folders?(W(),K("i",Q2)):t.type==Be(He)._id?(W(),K("b",eF,"ID")):t.type==Be(He)._width?(W(),K("i",tF)):t.type==Be(He)._height?(W(),K("i",iF)):(W(),K("i",sF))]))}}),nF=["top","right","bottom","left"],ty=["start","end"],iy=nF.reduce((e,t)=>e.concat(t,t+"-"+ty[0],t+"-"+ty[1]),[]),Yl=Math.min,Qr=Math.max,rF={left:"right",right:"left",bottom:"top",top:"bottom"},aF={start:"end",end:"start"};function Uf(e,t,i){return Qr(e,Yl(t,i))}function Ia(e,t){return typeof e=="function"?e(t):e}function wn(e){return e.split("-")[0]}function rn(e){return e.split("-")[1]}function Z1(e){return e==="x"?"y":"x"}function kg(e){return e==="y"?"height":"width"}function lc(e){return["top","bottom"].includes(wn(e))?"y":"x"}function Tg(e){return Z1(lc(e))}function J1(e,t,i){i===void 0&&(i=!1);const n=rn(e),a=Tg(e),l=kg(a);let c=a==="x"?n===(i?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=Fu(c)),[c,Fu(c)]}function oF(e){const t=Fu(e);return[$u(e),t,$u(t)]}function $u(e){return e.replace(/start|end/g,t=>aF[t])}function lF(e,t,i){const n=["left","right"],a=["right","left"],l=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return i?t?a:n:t?n:a;case"left":case"right":return t?l:c;default:return[]}}function cF(e,t,i,n){const a=rn(e);let l=lF(wn(e),i==="start",n);return a&&(l=l.map(c=>c+"-"+a),t&&(l=l.concat(l.map($u)))),l}function Fu(e){return e.replace(/left|right|bottom|top/g,t=>rF[t])}function uF(e){return{top:0,right:0,bottom:0,left:0,...e}}function Q1(e){return typeof e!="number"?uF(e):{top:e,right:e,bottom:e,left:e}}function xl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function sy(e,t,i){let{reference:n,floating:a}=e;const l=lc(t),c=Tg(t),d=kg(c),p=wn(t),m=l==="y",b=n.x+n.width/2-a.width/2,w=n.y+n.height/2-a.height/2,_=n[d]/2-a[d]/2;let C;switch(p){case"top":C={x:b,y:n.y-a.height};break;case"bottom":C={x:b,y:n.y+n.height};break;case"right":C={x:n.x+n.width,y:w};break;case"left":C={x:n.x-a.width,y:w};break;default:C={x:n.x,y:n.y}}switch(rn(t)){case"start":C[c]-=_*(i&&m?-1:1);break;case"end":C[c]+=_*(i&&m?-1:1);break}return C}const dF=async(e,t,i)=>{const{placement:n="bottom",strategy:a="absolute",middleware:l=[],platform:c}=i,d=l.filter(Boolean),p=await(c.isRTL==null?void 0:c.isRTL(t));let m=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:b,y:w}=sy(m,n,p),_=n,C={},I=0;for(let O=0;O({name:"arrow",options:e,async fn(t){const{x:i,y:n,placement:a,rects:l,platform:c,elements:d,middlewareData:p}=t,{element:m,padding:b=0}=Ia(e,t)||{};if(m==null)return{};const w=Q1(b),_={x:i,y:n},C=Tg(a),I=kg(C),O=await c.getDimensions(m),M=C==="y",N=M?"top":"left",k=M?"bottom":"right",D=M?"clientHeight":"clientWidth",P=l.reference[I]+l.reference[C]-_[C]-l.floating[I],$=_[C]-l.reference[C],H=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m));let ee=H?H[D]:0;(!ee||!await(c.isElement==null?void 0:c.isElement(H)))&&(ee=d.floating[D]||l.floating[I]);const se=P/2-$/2,Q=ee/2-O[I]/2-1,te=Yl(w[N],Q),ce=Yl(w[k],Q),oe=te,de=ee-O[I]-ce,be=ee/2-O[I]/2+se,Ce=Uf(oe,be,de),re=!p.arrow&&rn(a)!=null&&be!=Ce&&l.reference[I]/2-(bern(a)===e),...i.filter(a=>rn(a)!==e)]:i.filter(a=>wn(a)===a)).filter(a=>e?rn(a)===e||(t?$u(a)!==a:!1):!0)}const pF=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var i,n,a;const{rects:l,middlewareData:c,placement:d,platform:p,elements:m}=t,{crossAxis:b=!1,alignment:w,allowedPlacements:_=iy,autoAlignment:C=!0,...I}=Ia(e,t),O=w!==void 0||_===iy?fF(w||null,C,_):_,M=await Dd(t,I),N=((i=c.autoPlacement)==null?void 0:i.index)||0,k=O[N];if(k==null)return{};const D=J1(k,l,await(p.isRTL==null?void 0:p.isRTL(m.floating)));if(d!==k)return{reset:{placement:O[0]}};const P=[M[wn(k)],M[D[0]],M[D[1]]],$=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:k,overflows:P}],H=O[N+1];if(H)return{data:{index:N+1,overflows:$},reset:{placement:H}};const ee=$.map(te=>{const ce=rn(te.placement);return[te.placement,ce&&b?te.overflows.slice(0,2).reduce((oe,de)=>oe+de,0):te.overflows[0],te.overflows]}).sort((te,ce)=>te[1]-ce[1]),Q=((a=ee.filter(te=>te[2].slice(0,rn(te[0])?2:3).every(ce=>ce<=0))[0])==null?void 0:a[0])||ee[0][0];return Q!==d?{data:{index:N+1,overflows:$},reset:{placement:Q}}:{}}}},gF=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var i,n;const{placement:a,middlewareData:l,rects:c,initialPlacement:d,platform:p,elements:m}=t,{mainAxis:b=!0,crossAxis:w=!0,fallbackPlacements:_,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:I="none",flipAlignment:O=!0,...M}=Ia(e,t);if((i=l.arrow)!=null&&i.alignmentOffset)return{};const N=wn(a),k=wn(d)===d,D=await(p.isRTL==null?void 0:p.isRTL(m.floating)),P=_||(k||!O?[Fu(d)]:oF(d));!_&&I!=="none"&&P.push(...cF(d,O,I,D));const $=[d,...P],H=await Dd(t,M),ee=[];let se=((n=l.flip)==null?void 0:n.overflows)||[];if(b&&ee.push(H[N]),w){const oe=J1(a,c,D);ee.push(H[oe[0]],H[oe[1]])}if(se=[...se,{placement:a,overflows:ee}],!ee.every(oe=>oe<=0)){var Q,te;const oe=(((Q=l.flip)==null?void 0:Q.index)||0)+1,de=$[oe];if(de)return{data:{index:oe,overflows:se},reset:{placement:de}};let be=(te=se.filter(Ce=>Ce.overflows[0]<=0).sort((Ce,re)=>Ce.overflows[1]-re.overflows[1])[0])==null?void 0:te.placement;if(!be)switch(C){case"bestFit":{var ce;const Ce=(ce=se.map(re=>[re.placement,re.overflows.filter(Z=>Z>0).reduce((Z,U)=>Z+U,0)]).sort((re,Z)=>re[1]-Z[1])[0])==null?void 0:ce[0];Ce&&(be=Ce);break}case"initialPlacement":be=d;break}if(a!==be)return{reset:{placement:be}}}return{}}}};async function mF(e,t){const{placement:i,platform:n,elements:a}=e,l=await(n.isRTL==null?void 0:n.isRTL(a.floating)),c=wn(i),d=rn(i),p=lc(i)==="y",m=["left","top"].includes(c)?-1:1,b=l&&p?-1:1,w=Ia(t,e);let{mainAxis:_,crossAxis:C,alignmentAxis:I}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...w};return d&&typeof I=="number"&&(C=d==="end"?I*-1:I),p?{x:C*b,y:_*m}:{x:_*m,y:C*b}}const vF=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:i,y:n}=t,a=await mF(t,e);return{x:i+a.x,y:n+a.y,data:a}}}},bF=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:n,placement:a}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:d={fn:M=>{let{x:N,y:k}=M;return{x:N,y:k}}},...p}=Ia(e,t),m={x:i,y:n},b=await Dd(t,p),w=lc(wn(a)),_=Z1(w);let C=m[_],I=m[w];if(l){const M=_==="y"?"top":"left",N=_==="y"?"bottom":"right",k=C+b[M],D=C-b[N];C=Uf(k,C,D)}if(c){const M=w==="y"?"top":"left",N=w==="y"?"bottom":"right",k=I+b[M],D=I-b[N];I=Uf(k,I,D)}const O=d.fn({...t,[_]:C,[w]:I});return{...O,data:{x:O.x-i,y:O.y-n}}}}},yF=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:i,rects:n,platform:a,elements:l}=t,{apply:c=()=>{},...d}=Ia(e,t),p=await Dd(t,d),m=wn(i),b=rn(i),w=lc(i)==="y",{width:_,height:C}=n.floating;let I,O;m==="top"||m==="bottom"?(I=m,O=b===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(O=m,I=b==="end"?"top":"bottom");const M=C-p[I],N=_-p[O],k=!t.middlewareData.shift;let D=M,P=N;if(w){const H=_-p.left-p.right;P=b||k?Yl(N,H):H}else{const H=C-p.top-p.bottom;D=b||k?Yl(M,H):H}if(k&&!b){const H=Qr(p.left,0),ee=Qr(p.right,0),se=Qr(p.top,0),Q=Qr(p.bottom,0);w?P=_-2*(H!==0||ee!==0?H+ee:Qr(p.left,p.right)):D=C-2*(se!==0||Q!==0?se+Q:Qr(p.top,p.bottom))}await c({...t,availableWidth:P,availableHeight:D});const $=await a.getDimensions(l.floating);return _!==$.width||C!==$.height?{reset:{rects:!0}}:{}}}};function Ns(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function gn(e){return Ns(e).getComputedStyle(e)}const ny=Math.min,wl=Math.max,zu=Math.round;function e_(e){const t=gn(e);let i=parseFloat(t.width),n=parseFloat(t.height);const a=e.offsetWidth,l=e.offsetHeight,c=zu(i)!==a||zu(n)!==l;return c&&(i=a,n=l),{width:i,height:n,fallback:c}}function $r(e){return i_(e)?(e.nodeName||"").toLowerCase():""}let Wc;function t_(){if(Wc)return Wc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Wc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Wc):navigator.userAgent}function mn(e){return e instanceof Ns(e).HTMLElement}function Sr(e){return e instanceof Ns(e).Element}function i_(e){return e instanceof Ns(e).Node}function ry(e){return typeof ShadowRoot>"u"?!1:e instanceof Ns(e).ShadowRoot||e instanceof ShadowRoot}function $d(e){const{overflow:t,overflowX:i,overflowY:n,display:a}=gn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+i)&&!["inline","contents"].includes(a)}function xF(e){return["table","td","th"].includes($r(e))}function Kf(e){const t=/firefox/i.test(t_()),i=gn(e),n=i.backdropFilter||i.WebkitBackdropFilter;return i.transform!=="none"||i.perspective!=="none"||!!n&&n!=="none"||t&&i.willChange==="filter"||t&&!!i.filter&&i.filter!=="none"||["transform","perspective"].some(a=>i.willChange.includes(a))||["paint","layout","strict","content"].some(a=>{const l=i.contain;return l!=null&&l.includes(a)})}function s_(){return!/^((?!chrome|android).)*safari/i.test(t_())}function Ig(e){return["html","body","#document"].includes($r(e))}function n_(e){return Sr(e)?e:e.contextElement}const r_={x:1,y:1};function eo(e){const t=n_(e);if(!mn(t))return r_;const i=t.getBoundingClientRect(),{width:n,height:a,fallback:l}=e_(t);let c=(l?zu(i.width):i.width)/n,d=(l?zu(i.height):i.height)/a;return c&&Number.isFinite(c)||(c=1),d&&Number.isFinite(d)||(d=1),{x:c,y:d}}function jl(e,t,i,n){var a,l;t===void 0&&(t=!1),i===void 0&&(i=!1);const c=e.getBoundingClientRect(),d=n_(e);let p=r_;t&&(n?Sr(n)&&(p=eo(n)):p=eo(e));const m=d?Ns(d):window,b=!s_()&&i;let w=(c.left+(b&&((a=m.visualViewport)==null?void 0:a.offsetLeft)||0))/p.x,_=(c.top+(b&&((l=m.visualViewport)==null?void 0:l.offsetTop)||0))/p.y,C=c.width/p.x,I=c.height/p.y;if(d){const O=Ns(d),M=n&&Sr(n)?Ns(n):n;let N=O.frameElement;for(;N&&n&&M!==O;){const k=eo(N),D=N.getBoundingClientRect(),P=getComputedStyle(N);D.x+=(N.clientLeft+parseFloat(P.paddingLeft))*k.x,D.y+=(N.clientTop+parseFloat(P.paddingTop))*k.y,w*=k.x,_*=k.y,C*=k.x,I*=k.y,w+=D.x,_+=D.y,N=Ns(N).frameElement}}return{width:C,height:I,top:_,right:w+C,bottom:_+I,left:w,x:w,y:_}}function Er(e){return((i_(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fd(e){return Sr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function a_(e){return jl(Er(e)).left+Fd(e).scrollLeft}function Xl(e){if($r(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ry(e)&&e.host||Er(e);return ry(t)?t.host:t}function o_(e){const t=Xl(e);return Ig(t)?t.ownerDocument.body:mn(t)&&$d(t)?t:o_(t)}function Hu(e,t){var i;t===void 0&&(t=[]);const n=o_(e),a=n===((i=e.ownerDocument)==null?void 0:i.body),l=Ns(n);return a?t.concat(l,l.visualViewport||[],$d(n)?n:[]):t.concat(n,Hu(n))}function ay(e,t,i){return t==="viewport"?xl(function(n,a){const l=Ns(n),c=Er(n),d=l.visualViewport;let p=c.clientWidth,m=c.clientHeight,b=0,w=0;if(d){p=d.width,m=d.height;const _=s_();(_||!_&&a==="fixed")&&(b=d.offsetLeft,w=d.offsetTop)}return{width:p,height:m,x:b,y:w}}(e,i)):Sr(t)?xl(function(n,a){const l=jl(n,!0,a==="fixed"),c=l.top+n.clientTop,d=l.left+n.clientLeft,p=mn(n)?eo(n):{x:1,y:1};return{width:n.clientWidth*p.x,height:n.clientHeight*p.y,x:d*p.x,y:c*p.y}}(t,i)):xl(function(n){const a=Er(n),l=Fd(n),c=n.ownerDocument.body,d=wl(a.scrollWidth,a.clientWidth,c.scrollWidth,c.clientWidth),p=wl(a.scrollHeight,a.clientHeight,c.scrollHeight,c.clientHeight);let m=-l.scrollLeft+a_(n);const b=-l.scrollTop;return gn(c).direction==="rtl"&&(m+=wl(a.clientWidth,c.clientWidth)-d),{width:d,height:p,x:m,y:b}}(Er(e)))}function oy(e){return mn(e)&&gn(e).position!=="fixed"?e.offsetParent:null}function ly(e){const t=Ns(e);let i=oy(e);for(;i&&xF(i)&&gn(i).position==="static";)i=oy(i);return i&&($r(i)==="html"||$r(i)==="body"&&gn(i).position==="static"&&!Kf(i))?t:i||function(n){let a=Xl(n);for(;mn(a)&&!Ig(a);){if(Kf(a))return a;a=Xl(a)}return null}(e)||t}function wF(e,t,i){const n=mn(t),a=Er(t),l=jl(e,!0,i==="fixed",t);let c={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(n||!n&&i!=="fixed")if(($r(t)!=="body"||$d(a))&&(c=Fd(t)),mn(t)){const p=jl(t,!0);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else a&&(d.x=a_(a));return{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}const _F={getClippingRect:function(e){let{element:t,boundary:i,rootBoundary:n,strategy:a}=e;const l=i==="clippingAncestors"?function(m,b){const w=b.get(m);if(w)return w;let _=Hu(m).filter(M=>Sr(M)&&$r(M)!=="body"),C=null;const I=gn(m).position==="fixed";let O=I?Xl(m):m;for(;Sr(O)&&!Ig(O);){const M=gn(O),N=Kf(O);(I?N||C:N||M.position!=="static"||!C||!["absolute","fixed"].includes(C.position))?C=M:_=_.filter(k=>k!==O),O=Xl(O)}return b.set(m,_),_}(t,this._c):[].concat(i),c=[...l,n],d=c[0],p=c.reduce((m,b)=>{const w=ay(t,b,a);return m.top=wl(w.top,m.top),m.right=ny(w.right,m.right),m.bottom=ny(w.bottom,m.bottom),m.left=wl(w.left,m.left),m},ay(t,d,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:i,strategy:n}=e;const a=mn(i),l=Er(i);if(i===l)return t;let c={scrollLeft:0,scrollTop:0},d={x:1,y:1};const p={x:0,y:0};if((a||!a&&n!=="fixed")&&(($r(i)!=="body"||$d(l))&&(c=Fd(i)),mn(i))){const m=jl(i);d=eo(i),p.x=m.x+i.clientLeft,p.y=m.y+i.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-c.scrollLeft*d.x+p.x,y:t.y*d.y-c.scrollTop*d.y+p.y}},isElement:Sr,getDimensions:function(e){return mn(e)?e_(e):e.getBoundingClientRect()},getOffsetParent:ly,getDocumentElement:Er,getScale:eo,async getElementRects(e){let{reference:t,floating:i,strategy:n}=e;const a=this.getOffsetParent||ly,l=this.getDimensions;return{reference:wF(t,await a(i),n),floating:{x:0,y:0,...await l(i)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>gn(e).direction==="rtl"},SF=(e,t,i)=>{const n=new Map,a={platform:_F,...i},l={...a.platform,_c:n};return dF(e,t,{...a,platform:l})},ha={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function qf(e,t){let i=ha.themes[e]||{},n;do n=i[t],typeof n>"u"?i.$extend?i=ha.themes[i.$extend]||{}:(i=null,n=ha[t]):i=null;while(i);return n}function EF(e){const t=[e];let i=ha.themes[e]||{};do i.$extend&&!i.$resetCss?(t.push(i.$extend),i=ha.themes[i.$extend]||{}):i=null;while(i);return t.map(n=>`v-popper--theme-${n}`)}function cy(e){const t=[e];let i=ha.themes[e]||{};do i.$extend?(t.push(i.$extend),i=ha.themes[i.$extend]||{}):i=null;while(i);return t}let Eo=!1;if(typeof window<"u"){Eo=!1;try{const e=Object.defineProperty({},"passive",{get(){Eo=!0}});window.addEventListener("test",null,e)}catch{}}let l_=!1;typeof window<"u"&&typeof navigator<"u"&&(l_=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const CF=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),uy={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},dy={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function hy(e,t){const i=e.indexOf(t);i!==-1&&e.splice(i,1)}function Oh(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const sn=[];let qr=null;const fy={};function py(e){let t=fy[e];return t||(t=fy[e]=[]),t}let Zf=function(){};typeof window<"u"&&(Zf=window.Element);function Kt(e){return function(t){return qf(t.theme,e)}}const Ph="__floating-vue__popper",c_=()=>Ke({name:"VPopper",provide(){return{[Ph]:{parentPopper:this}}},inject:{[Ph]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Kt("disabled")},positioningDisabled:{type:Boolean,default:Kt("positioningDisabled")},placement:{type:String,default:Kt("placement"),validator:e=>CF.includes(e)},delay:{type:[String,Number,Object],default:Kt("delay")},distance:{type:[Number,String],default:Kt("distance")},skidding:{type:[Number,String],default:Kt("skidding")},triggers:{type:Array,default:Kt("triggers")},showTriggers:{type:[Array,Function],default:Kt("showTriggers")},hideTriggers:{type:[Array,Function],default:Kt("hideTriggers")},popperTriggers:{type:Array,default:Kt("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Kt("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Kt("popperHideTriggers")},container:{type:[String,Object,Zf,Boolean],default:Kt("container")},boundary:{type:[String,Zf],default:Kt("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Kt("strategy")},autoHide:{type:[Boolean,Function],default:Kt("autoHide")},handleResize:{type:Boolean,default:Kt("handleResize")},instantMove:{type:Boolean,default:Kt("instantMove")},eagerMount:{type:Boolean,default:Kt("eagerMount")},popperClass:{type:[String,Array,Object],default:Kt("popperClass")},computeTransformOrigin:{type:Boolean,default:Kt("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Kt("autoMinSize")},autoSize:{type:[Boolean,String],default:Kt("autoSize")},autoMaxSize:{type:Boolean,default:Kt("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Kt("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Kt("preventOverflow")},overflowPadding:{type:[Number,String],default:Kt("overflowPadding")},arrowPadding:{type:[Number,String],default:Kt("arrowPadding")},arrowOverflow:{type:Boolean,default:Kt("arrowOverflow")},flip:{type:Boolean,default:Kt("flip")},shift:{type:Boolean,default:Kt("shift")},shiftCrossAxis:{type:Boolean,default:Kt("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Kt("noAutoFocus")},disposeTimeout:{type:Number,default:Kt("disposeTimeout")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Ph])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},...["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:i=!1}={}){var n,a;(n=this.parentPopper)!=null&&n.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(i||!this.disabled)&&(((a=this.parentPopper)==null?void 0:a.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var i;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.$_isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(vF({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(pF({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(bF({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(gF({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(hF({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:n,rects:a,middlewareData:l})=>{let c;const{centerOffset:d}=l.arrow;return n.startsWith("top")||n.startsWith("bottom")?c=Math.abs(d)>a.reference.width/2:c=Math.abs(d)>a.reference.height/2,{data:{overflow:c}}}}),this.autoMinSize||this.autoSize){const n=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:a,placement:l,middlewareData:c})=>{var d;if((d=c.autoSize)!=null&&d.skip)return{};let p,m;return l.startsWith("top")||l.startsWith("bottom")?p=a.reference.width:m=a.reference.height,this.$_innerNode.style[n==="min"?"minWidth":n==="max"?"maxWidth":"width"]=p!=null?`${p}px`:null,this.$_innerNode.style[n==="min"?"minHeight":n==="max"?"maxHeight":"height"]=m!=null?`${m}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(yF({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:n,availableHeight:a})=>{this.$_innerNode.style.maxWidth=n!=null?`${n}px`:null,this.$_innerNode.style.maxHeight=a!=null?`${a}px`:null}})));const i=await SF(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:i.x,y:i.y,placement:i.placement,strategy:i.strategy,arrow:{...i.middlewareData.arrow,...i.middlewareData.arrowOverflow}})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),qr&&this.instantMove&&qr.instantMove&&qr!==this.parentPopper){qr.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(qr=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Oh(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Hu(this.$_referenceNode),...Hu(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),i=this.$_popperNode.querySelector(".v-popper__wrapper"),n=i.parentNode.getBoundingClientRect(),a=t.x+t.width/2-(n.left+i.offsetLeft),l=t.y+t.height/2-(n.top+i.offsetTop);this.result.transformOrigin=`${a}px ${l}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let i=0;i0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,hy(sn,this),sn.length===0&&document.body.classList.remove("v-popper--some-open");for(const i of cy(this.theme)){const n=py(i);hy(n,this),n.length===0&&document.body.classList.remove(`v-popper--some-open--${i}`)}qr===this&&(qr=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Oh(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=i=>{this.isShown&&!this.$_hideInProgress||(i.usedByTooltip=!0,!this.$_preventShow&&this.show({event:i}))};this.$_registerTriggerListeners(this.$_targetNodes,uy,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],uy,this.popperTriggers,this.popperShowTriggers,e);const t=i=>{i.usedByTooltip||this.hide({event:i})};this.$_registerTriggerListeners(this.$_targetNodes,dy,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],dy,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,i){this.$_events.push({targetNodes:e,eventType:t,handler:i}),e.forEach(n=>n.addEventListener(t,i,Eo?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,i,n,a){let l=i;n!=null&&(l=typeof n=="function"?n(l):n),l.forEach(c=>{const d=t[c];d&&this.$_registerEventListeners(e,d,a)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(i=>{const{targetNodes:n,eventType:a,handler:l}=i;!e||e===a?n.forEach(c=>c.removeEventListener(a,l)):t.push(i)}),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const i of this.$_targetNodes){const n=i.getAttribute(e);n&&(i.removeAttribute(e),i.setAttribute(t,n))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const i in e){const n=e[i];n==null?t.removeAttribute(i):t.setAttribute(i,n)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(_l>=e.left&&_l<=e.right&&Sl>=e.top&&Sl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),i=_l-hr,n=Sl-fr,a=t.left+t.width/2-hr+(t.top+t.height/2)-fr+t.width+t.height,l=hr+i*a,c=fr+n*a;return Yc(hr,fr,l,c,t.left,t.top,t.left,t.bottom)||Yc(hr,fr,l,c,t.left,t.top,t.right,t.top)||Yc(hr,fr,l,c,t.right,t.top,t.right,t.bottom)||Yc(hr,fr,l,c,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(l_?(document.addEventListener("touchstart",gy,Eo?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",kF,Eo?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",gy,!0),window.addEventListener("click",AF,!0)),window.addEventListener("resize",OF));function gy(e){for(let t=0;t=0;n--){const a=sn[n];try{const l=a.$_containsGlobalTarget=TF(a,e);a.$_pendingHide=!1,requestAnimationFrame(()=>{if(a.$_pendingHide=!1,!i[a.randomId]&&my(a,l,e)){if(a.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&l){let d=a.parentPopper;for(;d;)i[d.randomId]=!0,d=d.parentPopper;return}let c=a.parentPopper;for(;c&&my(c,c.$_containsGlobalTarget,e);)c.$_handleGlobalClose(e,t),c=c.parentPopper}})}catch{}}}function TF(e,t){const i=e.popperNode();return e.$_mouseDownContains||i.contains(t.target)}function my(e,t,i){return i.closeAllPopover||i.closePopover&&t||IF(e,i)&&!t}function IF(e,t){if(typeof e.autoHide=="function"){const i=e.autoHide(t);return e.lastAutoHide=i,i}return e.autoHide}function OF(e){for(let t=0;t{hr=_l,fr=Sl,_l=e.clientX,Sl=e.clientY},Eo?{passive:!0}:void 0);function Yc(e,t,i,n,a,l,c,d){const p=((c-a)*(t-l)-(d-l)*(e-a))/((d-l)*(i-e)-(c-a)*(n-t)),m=((i-e)*(t-l)-(n-t)*(e-a))/((d-l)*(i-e)-(c-a)*(n-t));return p>=0&&p<=1&&m>=0&&m<=1}const PF={extends:c_()},Og=(e,t)=>{const i=e.__vccOpts||e;for(const[n,a]of t)i[n]=a;return i};function LF(e,t,i,n,a,l){return W(),K("div",{ref:"reference",class:_t(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[di(e.$slots,"default",pp(ud(e.slotData)))],2)}const MF=Og(PF,[["render",LF]]);function NF(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var i=e.indexOf("Trident/");if(i>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var a=e.indexOf("Edge/");return a>0?parseInt(e.substring(a+5,e.indexOf(".",a)),10):-1}let cu;function Jf(){Jf.init||(Jf.init=!0,cu=NF()!==-1)}var zd={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Jf(),At(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",cu&&this.$el.appendChild(e),e.data="about:blank",cu||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!cu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const RF=Ap();ii("data-v-b329ee4c");const DF={class:"resize-observer",tabindex:"-1"};si();const $F=RF((e,t,i,n,a,l)=>(W(),it("div",DF)));zd.render=$F;zd.__scopeId="data-v-b329ee4c";zd.__file="src/components/ResizeObserver.vue";const d_=(e="theme")=>({computed:{themeClass(){return EF(this[e])}}}),FF=Ke({name:"VPopperContent",components:{ResizeObserver:zd},mixins:[d_()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),zF=["id","aria-hidden","tabindex","data-popper-placement"],HF={ref:"inner",class:"v-popper__inner"},VF=V("div",{class:"v-popper__arrow-outer"},null,-1),BF=V("div",{class:"v-popper__arrow-inner"},null,-1),WF=[VF,BF];function YF(e,t,i,n,a,l){const c=ga("ResizeObserver");return W(),K("div",{id:e.popperId,ref:"popover",class:_t(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:pt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=ei(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[V("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),V("div",{class:"v-popper__wrapper",style:pt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[V("div",HF,[e.mounted?(W(),K(Qe,{key:0},[V("div",null,[di(e.$slots,"default")]),e.handleResize?(W(),it(c,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Le("",!0)],64)):Le("",!0)],512),V("div",{ref:"arrow",class:"v-popper__arrow-container",style:pt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},WF,4)],4)],46,zF)}const h_=Og(FF,[["render",YF]]),f_={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},jF=Ke({name:"VPopperWrapper",components:{Popper:MF,PopperContent:h_},mixins:[f_,d_("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function XF(e,t,i,n,a,l){const c=ga("PopperContent"),d=ga("Popper");return W(),it(d,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:_t([e.themeClass])},{default:rt(({popperId:p,isShown:m,shouldMountContent:b,skipTransition:w,autoHide:_,show:C,hide:I,handleResize:O,onResize:M,classes:N,result:k})=>[di(e.$slots,"default",{shown:m,show:C,hide:I}),Me(c,{ref:"popperContent","popper-id":p,theme:e.finalTheme,shown:m,mounted:b,"skip-transition":w,"auto-hide":_,"handle-resize":O,classes:N,result:k,onHide:I,onResize:M},{default:rt(()=>[di(e.$slots,"popper",{shown:m,hide:I})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}const Pg=Og(jF,[["render",XF]]),GF={...Pg,name:"VDropdown",vPopperTheme:"dropdown"};({...Pg});const UF={...Pg,name:"VTooltip",vPopperTheme:"tooltip"};c_();const KF=GF,qF=UF,Lg=e=>(ii("data-v-9d96ac0d"),e=e(),si(),e),ZF={class:"text-nowrap d-flex m-0 p-0"},JF={key:0,style:{cursor:"pointer"},class:"flex-center"},QF=Lg(()=>V("div",{class:"bi bi-question-circle small-icon"},null,-1)),ez=[QF],tz={key:1,style:{cursor:"pointer"}},iz=Lg(()=>V("i",{class:"bi bi-question-circle small-icon"},null,-1)),sz=[iz],nz={style:{"max-width":"300px"}},rz=Lg(()=>V("br",null,null,-1)),az=Ke({__name:"withToolTip",props:{pos:{type:String,default:"top"},message:String,icon:{type:Boolean,default:!1},iconPos:{type:String,default:"right"},click:{type:Boolean,default:!0}},setup(e){const{t}=yd({useScope:"global"}),i=e,n=we(()=>{if(!i.message)return;let a="";return["main","modals","dropdown","btn"].indexOf(i.message.split(".")[0])>-1?a=t(i.message):a=i.message,a.split(` -`)});return(a,l)=>(W(),it(Be(qF),{style:{display:"inline"},teleport:!0,placement:i.pos,disabled:!i.message,class:"m-0 p-0"},{popper:rt(()=>[V("div",nz,[(W(!0),K(Qe,null,St(n.value,c=>(W(),K("span",null,[Qt(Ne(c),1),rz]))),256))])]),default:rt(()=>[V("div",ZF,[i.icon&&i.iconPos==="left"?(W(),K("div",JF,ez)):Le("",!0),di(a.$slots,"default",{},void 0,!0),i.icon&&i.iconPos==="right"?(W(),K("span",tz,sz)):Le("",!0)])]),_:3},8,["placement","disabled"]))}});const gt=(e,t)=>{const i=e.__vccOpts||e;for(const[n,a]of t)i[n]=a;return i},Ti=gt(az,[["__scopeId","data-v-9d96ac0d"]]),oz={class:"dropdown"},lz={class:"input-lg text-nowrap",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},cz={key:0},uz={key:1},dz={class:"dropdown-menu"},hz=["onClick"],fz={class:"dropdown-item",style:{cursor:"pointer"}},pz=Ke({__name:"PropertyTypeDropdown",props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,n=t,a=Object.keys(He).filter(c=>c[0]!="_").map(c=>He[c]),l=we(()=>a.filter(c=>c!=He.image_link&&c!=He.path));return(c,d)=>(W(),K("div",oz,[V("button",lz,[i.modelValue==null?(W(),K("span",cz,Ne(c.$t("modals.properties.type")),1)):(W(),K("span",uz,[Me(Ws,{type:i.modelValue},null,8,["type"]),Qt(" "+Ne(c.$t("modals.properties."+i.modelValue)),1)]))]),V("ul",dz,[(W(!0),K(Qe,null,St(l.value,p=>(W(),K("li",{onClick:m=>{n("update:modelValue",p),Be(lg)()}},[V("span",fz,[Me(Ti,{message:"modals.properties."+p+"_tooltip"},{default:rt(()=>[Me(Ws,{type:p},null,8,["type"]),Qt(" "+Ne(c.$t("modals.properties."+p)),1)]),_:2},1032,["message"])])],8,hz))),256))])]))}});const gz=["onKeydown"],mz=Ke({__name:"Dropdown",props:{offset:{default:0},noShadow:{type:Boolean},autoFocus:{type:Boolean,default:!0},teleport:{type:Boolean},placement:{default:"bottom"},skidding:{default:0}},emits:["show","hide","esc","enter"],setup(e,{expose:t,emit:i}){const n=e,a=i;t({hide:_,show:C,focus:I});const l=Ii(),c=ye(null),d=ye(null),p=ye(null),m=ye(null),b=ye(document.getElementsByTagName("body")[0]),w=ye(!1);async function _(){c.value.hide()}function C(){c.value.show()}async function I(){d.value&&d.value.focus()}async function O(){w.value=!0,n.autoFocus&&(await At(),I()),a("show"),document.addEventListener("click",N,!0)}function M(){l.status.loaded&&w.value&&(w.value=!1,a("hide")),document.removeEventListener("click",N,!0)}function N(P){d.value.contains(P.target)||p.value.contains(P.target)||_()}function k(){a("esc")}function D(P){a("enter",P)}return Sn(()=>{document.removeEventListener("click",N,!0)}),(P,$)=>(W(),K("div",{class:"p-0 m-0",ref_key:"globalElem",ref:m},[Me(Be(KF),{onApplyShow:O,onHide:M,ref_key:"popperElem",ref:c,distance:n.offset,skidding:n.skidding,"no-auto-focus":"",boundary:b.value,"auto-hide":!1,"prevent-overflow":!0,placement:n.placement,container:n.teleport?"#popup":m.value},{popper:rt(({hide:H})=>[w.value?(W(),K("div",{key:0,class:_t(["popup bg-white m-0 p-0 rounded",n.noShadow?"":"dropdown-input"]),onKeydown:[ei(Jt(ee=>{k(),H()},["stop"]),["escape"]),ei(Jt(ee=>D(H),["stop"]),["enter"])],style:{"z-index":"999"},tabindex:"0",ref_key:"popupElem",ref:d},[di(P.$slots,"popup",{hide:H,focus:I},void 0,!0)],42,gz)):Le("",!0)]),default:rt(()=>[V("div",{class:"m-0 p-0",ref_key:"buttonElem",ref:p},[di(P.$slots,"button",{},void 0,!0)],512)]),_:3},8,["distance","skidding","boundary","placement","container"])],512))}});const Us=gt(mz,[["__scopeId","data-v-434362f6"]]),vz={class:"bbb"},bz={key:0},yz={key:1},xz={key:2},wz={class:"p-2"},_z=["onClick"],Sz=["onClick"],Ez=Ke({__name:"PropertyModeDropdown",props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,n=t,a=Object.values(ki);return xt(()=>{i.modelValue||n("update:modelValue",a[0])}),(l,c)=>(W(),it(Us,null,{button:rt(()=>[V("div",vz,[i.modelValue==null?(W(),K("span",bz,"Mode..")):Le("",!0),i.modelValue==Be(ki).id?(W(),K("span",yz,Ne(l.$t("modals.properties.instance")),1)):Le("",!0),i.modelValue==Be(ki).sha1?(W(),K("span",xz,Ne(l.$t("modals.properties.image")),1)):Le("",!0)])]),popup:rt(({hide:d})=>[V("div",wz,[V("div",{class:"bb",onClick:p=>{n("update:modelValue",Be(ki).id),d()}},Ne(l.$t("modals.properties.instance")),9,_z),V("div",{class:"bb",onClick:p=>{n("update:modelValue",Be(ki).sha1),d()}},Ne(l.$t("modals.properties.image")),9,Sz)])]),_:1}))}}),Cz={class:"modal-dialog"},Az={key:0,class:"modal-content"},kz={class:"modal-header m-0 p-2 ps-3 pe-3"},Tz={class:"modal-title",id:"exampleModalLabel"},Iz={class:"modal-body",id:"tmp1"},Oz=["onSubmit"],Pz={class:"me-1"},Lz={class:"flex-grow-1 me-1"},Mz=["placeholder"],Nz={class:"invalid-feedback"},Rz={class:""},Dz={class:"modal-footer pt-2 pb-2"},$z=Ke({__name:"PropertyModal",props:{id:{type:String,required:!0}},setup(e){const t=ls(),i=Ii(),n=yt(),a=ye(null);let l=null;const c=e,d=we(()=>t.openModalId==c.id);function p(){t.openModalId==c.id&&t.hideModal(),C()}function m(){l.hide()}function b(){l.show()}const w=Wt({}),_=ye("");function C(){w.name="",w.type=He.multi_tags,w.mode=ki.sha1,_.value=""}async function I(){if(!w.name){_.value="Name is Empty!";return}if(n.propertyList.map(N=>N.name).includes(w.name)){_.value="A Property with same name already exist! Please choose a new name";return}const M=await n.addProperty(w.name,w.type,w.mode);i.getTabManager().setVisibleProperty(M.id,!0),m()}return nt(()=>t.openModalId,O=>{O==c.id?b():m()}),xt(()=>{l=wa.getOrCreateInstance(a.value),a.value.addEventListener("hide.bs.modal",p),C()}),(O,M)=>(W(),K("div",{class:"modal fade text-dark modal-m",role:"dialog",ref_key:"modalElem",ref:a},[V("div",Cz,[d.value?(W(),K("div",Az,[V("div",kz,[V("b",Tz,Ne(O.$t("modals.properties.title")),1),V("button",{type:"button",class:"btn-close",onClick:m,"aria-label":"Close"})]),V("div",Iz,[V("form",{onSubmit:Jt(I,["prevent"]),class:"d-flex flex-row",style:{"font-size":"15px"}},[V("div",Pz,[Me(Ez,{modelValue:w.mode,"onUpdate:modelValue":M[0]||(M[0]=N=>w.mode=N)},null,8,["modelValue"])]),V("div",Lz,[Bt(V("input",{type:"text",style:{width:"100%"},class:"",id:"propertyName",name:"propertyName","onUpdate:modelValue":M[1]||(M[1]=N=>w.name=N),placeholder:O.$t("modals.properties.input"),required:""},null,8,Mz),[[ui,w.name]]),V("div",Nz,Ne(_.value),1)]),V("div",Rz,[Me(pz,{id:"select-property",modelValue:w.type,"onUpdate:modelValue":M[2]||(M[2]=N=>w.type=N),class:"input-lg"},null,8,["modelValue"])])],40,Oz)]),V("div",Dz,[V("button",{type:"button",onClick:m},Ne(O.$t("modals.properties.cancel")),1),V("button",{id:"confirm-property",type:"button",onClick:M[3]||(M[3]=N=>{I(),Be(lg)()})},Ne(O.$t("modals.properties.confirm")),1)])])):Le("",!0)])],512))}}),p_=e=>(ii("data-v-2ccd0ecd"),e=e(),si(),e),Fz={key:0,class:"panoptic-icon"},zz={key:1,class:"bi bi-house"},Hz={key:2,class:"bi bi-file-earmark"},Vz={key:3,class:"bi bi-file-earmark-arrow-down"},Bz={key:4,class:"bi bi-display"},Wz={key:5,class:"bi bi-image"},Yz={key:6,class:"bi bi-folder"},jz={style:{"margin-left":"2px"}},Xz=p_(()=>V("div",{class:"flex-grow-1"},null,-1)),Gz={key:7,class:"ms-2 end"},Uz=p_(()=>V("i",{class:"bi bi-images ms-1"},null,-1)),Kz=Ke({__name:"FolderItem",props:{dir:Object,selected:Boolean,isParent:Boolean,light:Boolean},setup(e){const t=e;we(()=>t.dir.name);const i=we(()=>t.selected?"folder-name is-select":t.isParent?t.light?"folder-name parent-select-light":"folder-name parent-select":"folder-name");return(n,a)=>(W(),K("div",{class:_t([i.value,"d-flex"])},[t.dir.isProject?(W(),K("div",Fz,"👀")):t.dir.name=="Home"?(W(),K("div",zz)):t.dir.name=="Documents"?(W(),K("div",Hz)):t.dir.name=="Downloads"?(W(),K("div",Vz)):t.dir.name=="Desktop"?(W(),K("div",Bz)):t.dir.name=="Images"||t.dir.name=="Pictures"?(W(),K("div",Wz)):(W(),K("div",Yz)),V("div",jz,Ne(t.dir.name),1),Xz,e.dir.images?(W(),K("div",Gz,[Qt(Ne(e.dir.images),1),Uz])):Le("",!0)],2))}});const Lh=gt(Kz,[["__scopeId","data-v-2ccd0ecd"]]),g_=e=>(ii("data-v-30483a08"),e=e(),si(),e),qz={class:"d-flex m-0 p-0 bg-info",style:{width:"100%",height:"500px"}},Zz={class:"dir-list"},Jz={class:"fs-title mb-1"},Qz={class:"fs-title mb-1"},eH={class:"flex-grow-1 d-flex flex-column"},tH={class:"d-flex bg-warning flex-grow-1 overflow-hidden"},iH={class:"folder-list flex-shrink-0"},sH={style:{"margin-bottom":"2px"}},nH={class:"image-list flex-shrink-0 bg-white"},rH=["src"],aH={class:"bg-success"},oH={class:"path d-flex"},lH={class:"path-string flex-grow-1"},cH={key:0,class:"me-1"},uH={key:1},dH={key:2},hH=g_(()=>V("div",{class:"spinner-border spinner-border-sm text-primary",role:"status"},[V("span",{class:"visually-hidden"},"Loading...")],-1)),fH=[hH],pH=g_(()=>V("div",null,null,-1)),gH=Ke({__name:"FileExplorer",props:{mode:{type:String,default:"images"}},emits:{select:String},setup(e,{emit:t}){const i=e,n=t,a=Wt([]),l=Wt([]),c=Wt([]),d=Wt([]),p=ye({path:""}),m=ye(null),b=ye(null),w=ye(!1),_=we(()=>{if(d.length==0||d[0].length==0)return"/";let P=d[0][0].path;return P=P.slice(0,P.lastIndexOf("/")),P==""?"/":P}),C=we(()=>{const P=[];let $=p.value.path;for(;$.lastIndexOf("/")>0;)$=$.slice(0,$.lastIndexOf("/")),$==""&&($="/"),P.push($);return P}),I=we(()=>i.mode==="images"||i.mode==="import"&&p.value.isProject?!0:i.mode==="create"&&!p.value.isProject);async function O(){let{fast:P,partitions:$}=await yM();a.length=0,a.push(...P),l.length=0,l.push(...$)}async function M(P){let $=await gb(P.path);$.directories.sort((H,ee)=>H.name.localeCompare(ee.name)),d.length=0,d.push($.directories.filter(H=>!H.name.startsWith("."))),p.value=P,c.length=0,c.push(...$.images),m.value=null,w.value=!1}async function N(P,$){const H=await gb(P.path);H.directories.sort((ee,se)=>ee.name.localeCompare(se.name)),${await O(),M(a.filter(P=>P.name=="Home")[0])}),Zl(()=>{b.value.scrollLeft=b.value.scrollWidth}),(P,$)=>(W(),K("div",qz,[V("div",Zz,[V("div",null,[V("div",Jz,Ne(P.$t("modals.fs.fast")),1),(W(!0),K(Qe,null,St(a,H=>(W(),K("div",null,[Me(Lh,{dir:H,"is-parent":_.value==H.path,onClick:ee=>M(H)},null,8,["dir","is-parent","onClick"])]))),256))]),V("div",null,[V("div",Qz,Ne(P.$t("modals.fs.partitions")),1),(W(!0),K(Qe,null,St(l,H=>(W(),K("div",null,[Me(Lh,{dir:H,"is-parent":_.value==H.path,onClick:ee=>M(H)},null,8,["dir","is-parent","onClick"])]))),256))])]),V("div",eH,[V("div",tH,[V("div",{class:"folder-cols flex-grow-1 bg-white d-flex",ref_key:"scrollerElem",ref:b},[(W(!0),K(Qe,null,St(d,(H,ee)=>(W(),K("div",iH,[(W(!0),K(Qe,null,St(H,se=>(W(),K("div",sH,[Me(Lh,{dir:se,"is-parent":C.value.includes(se.path),light:!0,selected:se==p.value,onClick:Q=>N(se,ee)},null,8,["dir","is-parent","selected","onClick"])]))),256))]))),256))],512),V("div",nH,[(W(!0),K(Qe,null,St(c,H=>(W(),K("div",null,[V("img",{src:"http://localhost:8000/images/"+H,class:"mini"},null,8,rH)]))),256))])]),V("div",aH,[V("div",oH,[V("div",lH,Ne(p.value.path),1),V("div",{class:"count text-center",style:{"min-width":"70px"},onClick:D},[m.value!=null?(W(),K("span",cH,"("+Ne(m.value)+" Images)",1)):w.value?Le("",!0):(W(),K("span",uH,"Count")),w.value?(W(),K("span",dH,fH)):Le("",!0)]),V("div",{id:"confirm-modal",class:_t(["open flex-shrink-0",{valid:I.value}]),onClick:k},Ne(P.$t("modals.fs.open")),3)])])]),pH]))}});const mH=gt(gH,[["__scopeId","data-v-30483a08"]]),vH={class:"modal-dialog"},bH={key:0,class:"modal-content overflow-hidden"},yH={class:"modal-header m-0 p-2 ps-3 pe-3",style:{"z-index":"3","background-color":"white"}},xH={class:"modal-title",id:"exampleModalLabel"},wH={class:""},_H=Ke({__name:"FolderSelectionModal",props:{id:{type:String,required:!0}},setup(e){const t=ls(),i=we(()=>t.modalData.mode),n=ye(null);let a=null;const l=e,c=we(()=>t.openModalId==l.id);function d(){var w;(w=t.modalData)!=null&&w.callback&&t.modalData.callback(void 0),t.openModalId==l.id&&t.hideModal()}function p(){a.hide()}function m(){a.show()}function b(w){var _;(_=t.modalData)!=null&&_.callback&&(t.modalData.callback(w),t.modalData.callback&&(t.modalData.callback=void 0)),p()}return nt(()=>t.openModalId,w=>{w==l.id?m():p()}),xt(()=>{a=wa.getOrCreateInstance(n.value),n.value.addEventListener("hide.bs.modal",d)}),(w,_)=>(W(),K("div",{class:"modal fade text-dark modal-xl",role:"dialog",ref_key:"modalElem",ref:n},[V("div",vH,[c.value?(W(),K("div",bH,[V("div",yH,[V("b",xH,Ne(w.$t("modals.fs."+i.value)),1),V("button",{type:"button",class:"btn-close",onClick:p,"aria-label":"Close"})]),V("div",wH,[Me(mH,{onSelect:b,mode:i.value},null,8,["mode"])])])):Le("",!0)])],512))}}),SH={class:"center-content"},EH=["src"],CH=["src"],AH=Ke({__name:"CenteredImage",props:{image:{},width:{},height:{},noClick:{type:Boolean},border:{},isZoom:{type:Boolean}},setup(e){const t=e,i=ye(!1),n=ye(null),a=ye(!1),l=ye(null),c=we(()=>{const b=l.value;if(!b)return{w:0,h:0};let w=b.width/b.height;return t.width/t.height>w?{w:t.height*w,h:t.height}:{w:t.width,h:t.width/w}}),d=we(()=>{let b=t.image;const w=Math.max(t.width,t.height);return w<150?b.urlSmall:w<300?b.urlMedium:w<1024?b.urlLarge:b.urlRaw}),p=we(()=>{let b=l.value;if(!b)return;const w=Math.max(t.width,t.height);return w<150?b.urlSmall:w<300?b.urlMedium:w<1024?b.urlLarge:b.urlRaw});function m(){l.value=t.image}return(b,w)=>(W(),K("div",{class:"center-container",onMouseenter:w[0]||(w[0]=_=>i.value=!0),onMouseleave:w[1]||(w[1]=_=>i.value=!1),ref_key:"imageElem",ref:n,style:pt({width:t.width+"px",height:t.height+"px",cursor:t.noClick?"inherit":"pointer"})},[V("div",SH,[!a.value&&p.value?(W(),K("img",{key:0,src:p.value,style:pt({width:c.value.w+"px",height:c.value.h+"px",border:t.border>0?t.border+"px solid var(--border-color)":"none",borderRadius:t.border>0?"3px":""}),onLoad:m},null,44,EH)):Le("",!0),V("img",{style:{opacity:"0",position:"absolute",width:"0",height:"0"},src:d.value,onLoad:m},null,40,CH)])],36))}});const cc=gt(AH,[["__scopeId","data-v-65a78d97"]]),vi=Wt({ctrl:!1,alt:!1,shift:!1,left:!1,right:!1,mouseX:0,mouseY:0}),zn=Wt({open:!1,image:void 0,show:e=>{zn.image=e,zn.open=!0},hide:()=>{zn.open=!1}}),Mg=Ke({__name:"Zoomable",props:{image:{}},setup(e){const t=e,i=ye(!1),n=ye(null);return nt(vi,()=>{const a=zn.open&&zn.image.id===t.image.id,l=i.value;if(!a&&!l)return;l&&!a&&vi.ctrl&&zn.show(t.image);const c=n.value.getBoundingClientRect(),d=vi.mouseX>=c.x&&vi.mouseX<=c.right&&vi.mouseY>=c.y&&vi.mouseY<=c.bottom;a&&(!d||!vi.ctrl)&&zn.hide()}),(a,l)=>(W(),K("div",{onMouseenter:l[0]||(l[0]=c=>i.value=!0),onMouseleave:l[1]||(l[1]=c=>i.value=!1),ref_key:"elem",ref:n},[di(a.$slots,"default")],544))}}),kH={class:"m-0 p-0"},TH=Ke({__name:"TagBadge",props:{showDelete:{type:Boolean},id:{},name:{},color:{}},setup(e){const t=yt(),i=e,n=we(()=>t.tags[i.id]),a=we(()=>i.color>=0&&i.color<=12?Mr[i.color].color:!n.value||n.value.color<0||n.value.color>12?"grey":Mr[n.value.color].color),l=we(()=>i.name?i.name:n.value?n.value.value:"undefined");function c(){if(!n.value)return;ls().showModal(Hi.TAG,{propId:n.value.propertyId,tagId:n.value.id})}return(d,p)=>(W(),K("div",{class:"badge tag-badge",style:pt("background: "+a.value),onDblclick:c},[V("span",kH,[d.showDelete?(W(),K("span",{key:0,onClick:p[0]||(p[0]=Jt(m=>d.$emit("delete"),["prevent","stop"])),class:"bi bi-x tag-x"})):Le("",!0),V("span",null,Ne(l.value),1)])],36))}});const os=gt(TH,[["__scopeId","data-v-e9659a59"]]);const Ng=e=>(ii("data-v-fc5a1ddc"),e=e(),si(),e),IH=["onClick"],OH={class:"color-name"},PH=Ng(()=>V("div",{class:"hr m-1"},null,-1)),LH=["onClick"],MH=Ng(()=>V("div",{style:{backgroundColor:"#ffffff"},class:"color"},null,-1)),NH=Ng(()=>V("div",{class:"color-name"}," None ",-1)),RH=[MH,NH],DH=Ke({__name:"CellColorInput",props:{modelValue:{},width:{},minHeight:{default:30},rounded:{type:Boolean},teleport:{type:Boolean},offset:{default:0}},emits:["update:height","update:modelValue"],setup(e,{expose:t,emit:i}){const n=e,a=i,l=ye(null),c=ye(null),d=ye(100),p=ye(null),m=we(()=>n.width?n.width+"px":"100%"),b=we(()=>{if(n.modelValue==null)return"white";let M=Number(n.modelValue);return isNaN(M)||M>12?"gray":Mr[M].color}),w=ye(!1);function _(){w.value||(w.value=!0,c.value.show())}function C(){l.value=n.modelValue}function I(M){a("update:modelValue",M)}function O(){p.value&&(d.value=Math.max(p.value.offsetWidth,100))}return xt(C),t({focus:_}),(M,N)=>(W(),it(Us,{teleport:n.teleport,offset:0,onShow:O,ref_key:"dropdown",ref:c},{button:rt(()=>[n.modelValue!==void 0?(W(),K("div",{key:0,style:pt([{height:n.minHeight+"px"},{cursor:"pointer"}]),ref_key:"previewElem",ref:p},[V("div",{class:_t(n.rounded?"rounded":""),style:pt([{margin:"auto"},{width:m.value,backgroundColor:b.value,height:"calc(100% - 3px)",position:"relative",top:n.offset+"px"}])},null,6)],4)):(W(),K("div",{key:1,class:"text-secondary",style:pt([{cursor:"pointer"},{width:m.value}])},Ne(M.$t("none")),5))]),popup:rt(({hide:k})=>[V("div",{style:pt({width:d.value+8+"px"}),class:"p-1"},[(W(!0),K(Qe,null,St(Be(Mr),(D,P)=>(W(),K("div",{class:"d-flex flex-row color-option",onClick:$=>{I(P),k()}},[V("div",{style:pt({backgroundColor:D.color}),class:"color"},null,4),V("div",OH,Ne(D.name),1)],8,IH))),256)),PH,V("div",{class:"d-flex flex-row color-option",onClick:D=>{I(void 0),k()}},RH,8,LH)],4)]),_:1},8,["teleport"]))}});const Rg=gt(DH,[["__scopeId","data-v-fc5a1ddc"]]),Dg=e=>(ii("data-v-f26a1b9b"),e=e(),si(),e),$H={class:"bg-white"},FH=["onClick"],zH={class:"color-name"},HH=Dg(()=>V("div",{class:"hr m-1"},null,-1)),VH=Dg(()=>V("div",{style:{backgroundColor:"#ffffff"},class:"color"},null,-1)),BH=Dg(()=>V("div",{class:"color-name"}," None ",-1)),WH=[VH,BH],YH=Ke({__name:"ColorInput",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,n=t;function a(l){n("update:modelValue",l)}return(l,c)=>(W(),K("div",$H,[V("div",null,[(W(!0),K(Qe,null,St(Be(Mr),(d,p)=>(W(),K("div",{class:_t(["d-flex flex-row color-option",i.modelValue==p?"selected":""]),onClick:m=>a(p)},[V("div",{style:pt({backgroundColor:d.color}),class:"color"},null,4),V("div",zH,Ne(d.name),1)],10,FH))),256)),HH,V("div",{class:_t(["d-flex flex-row color-option",i.modelValue==null?"selected":""]),onClick:c[0]||(c[0]=d=>a(void 0))},WH,2)])]))}});const m_=gt(YH,[["__scopeId","data-v-f26a1b9b"]]),$g=e=>(ii("data-v-afddb4c9"),e=e(),si(),e),jH=$g(()=>V("span",{class:"pe-1"},[V("i",{class:"bi bi-three-dots sm-btn",style:{position:"relative",top:"1.5px"}})],-1)),XH={class:"main-box pt-1"},GH={class:"ps-1 pe-1"},UH=$g(()=>V("i",{class:"bi bi-trash"},null,-1)),KH=$g(()=>V("div",{class:"hr w-100"},null,-1)),qH={key:0,class:"mt-1",style:{height:"317px"}},ZH=Ke({__name:"TagOptionsDropdown",props:{propertyId:Number,tagId:Number,canCustomize:Boolean,canDelete:Boolean},emits:["delete","hide"],setup(e,{emit:t}){const i=yt(),n=e,a=t,l=ye(null),c=ye(""),d=ye(null),p=ye(null),m=ye(!1),b=we(()=>i.properties[n.propertyId].tags[n.tagId]);async function w(){b.value&&(c.value=b.value.value,d.value=b.value.color,await At(),p.value&&p.value.focus())}function _(N){i.updateTag(n.tagId,void 0,Number(N)),l.value.hide()}function C(N){N!=b.value.value&&(console.log("set"),i.updateTag(n.tagId,N))}function I(){i.deleteTag(n.tagId),a("delete",n.tagId),l.value.hide()}function O(){m.value=!0,w()}function M(){m.value&&(m.value=!1,C(c.value),a("hide"))}return xt(w),nt(()=>n.tagId,w),(N,k)=>(W(),it(Us,{ref_key:"dropdown",ref:l,onShow:O,onHide:M,teleport:!1},{button:rt(()=>[jH]),popup:rt(()=>[V("div",XH,[V("div",GH,[n.canCustomize?Bt((W(),K("input",{key:0,"onUpdate:modelValue":k[0]||(k[0]=D=>c.value=D),ref_key:"nameInput",ref:p,class:"w-100 mb-2",onChange:k[1]||(k[1]=D=>C(c.value))},null,544)),[[ui,c.value]]):Le("",!0),n.canDelete?(W(),K("div",{key:1,class:"mb-1 base-btn",onClick:I},[UH,Qt(" Delete Tag")])):Le("",!0)]),KH,n.canCustomize?(W(),K("div",qH,[Me(m_,{"hide-preview":!0,"hide-white":!0,"model-value":d.value,"onUpdate:modelValue":_},null,8,["model-value"])])):Le("",!0)])]),_:1},512))}});const v_=gt(ZH,[["__scopeId","data-v-afddb4c9"]]),JH={class:"overflow-hidden mb-1 text-wrap"},QH=Ke({__name:"TagInput",props:{property:{},modelValue:{},excluded:{},canCreate:{type:Boolean},canCustomize:{type:Boolean},canLink:{type:Boolean},canDelete:{type:Boolean},autoFocus:{type:Boolean},forceMulti:{type:Boolean}},emits:["update:modelValue","select","remove"],setup(e,{expose:t,emit:i}){const n=e,a=i;t({focus:C});const l=ye(null),c=we(()=>n.modelValue??[]),d=we(()=>c.value.map(I=>n.property.tags[I])),p=we(()=>n.excluded?[...n.excluded,...c.value]:[...c.value]);function m(I){n.property.type==He.tag&&!n.forceMulti?a("update:modelValue",[I.id]):a("update:modelValue",[...c.value,I.id]),a("select",I),C()}function b(I){m(I)}function w(I){a("update:modelValue",[...c.value.filter(O=>O!=I)]),a("remove",I),C()}function _(I){w(I.id)}function C(){l.value.focus()}return(I,O)=>(W(),K("div",null,[V("div",JH,[(W(!0),K(Qe,null,St(d.value,M=>(W(),it(os,{onDelete:N=>_(M),"show-delete":!0,id:M.id,class:"me-1"},null,8,["onDelete","id"]))),256))]),Me(b_,{property:n.property,excluded:p.value,"can-create":n.canCreate,"can-customize":n.canCustomize,"can-link":n.canLink,"can-delete":n.canDelete,"auto-focus":n.autoFocus,onSelect:m,onCreate:b,onDelete:w,ref_key:"tagMenuElem",ref:l},null,8,["property","excluded","can-create","can-customize","can-link","can-delete","auto-focus"])]))}}),eV=e=>(ii("data-v-4eade478"),e=e(),si(),e),tV={class:"text-nowrap sm-btn"},iV=eV(()=>V("i",{class:"bi bi-node-plus me-1",style:{position:"relative",top:"1.5px"}},null,-1)),sV={style:{"font-size":"10px"}},nV={class:"p-1 main-box"},rV=Ke({__name:"TagChildSelectDropdown",props:{propertyId:Number,tagId:Number},emits:["hide"],setup(e,{emit:t}){const i=yt(),n=e,a=t,l=ye([]),c=we(()=>i.properties[n.propertyId].tags[n.tagId]),d=we(()=>{var _;return((_=c.value)==null?void 0:_.children)??[]}),p=we(()=>{const _=new Set,C=I=>{I!=null&&(_.add(I.id),I.parents.forEach(O=>C(i.properties[n.propertyId].tags[O])))};return C(c.value),Array.from(_)});function m(_){i.addTagParent(_.id,n.tagId)}function b(_){const C=i.properties[n.propertyId].tags[_];i.deleteTagParent(C.id,n.tagId)}function w(){l.value.length=0,l.value.push(...d.value.map(_=>_))}return xt(w),nt(d,w),(_,C)=>(W(),it(Us,{onHide:C[1]||(C[1]=I=>a("hide")),"auto-focus":!1,teleport:!0},{button:rt(()=>[V("span",tV,[iV,V("span",sV,Ne(d.value.length),1)])]),popup:rt(()=>[V("div",nV,[Me(QH,{modelValue:l.value,"onUpdate:modelValue":C[0]||(C[0]=I=>l.value=I),property:Be(i).properties[n.propertyId],excluded:p.value,onSelect:m,onRemove:b,"auto-focus":!0},null,8,["modelValue","property","excluded"])])]),_:1}))}});const aV=gt(rV,[["__scopeId","data-v-4eade478"]]),oV=e=>(ii("data-v-9029934f"),e=e(),si(),e),lV={class:"m-0 p-0"},cV={class:"w-100 mb-1"},uV=["onKeydown"],dV={class:"pb-0",style:{"max-height":"300px","overflow-y":"auto"}},hV=["onMouseover","onMouseleave"],fV={class:"ms-2 d-flex"},pV={class:"text-secondary",style:{"font-size":"10px","line-height":"20px","padding-right":"2px"}},gV=["onClick"],mV=oV(()=>V("span",{class:"text-muted ms-1"},"Create ",-1)),vV=Ke({__name:"TagMenu",props:{property:Object,excluded:Array,canCreate:Boolean,canCustomize:Boolean,canLink:Boolean,canDelete:Boolean,autoFocus:Boolean},emits:["select","create","delete"],setup(e,{expose:t,emit:i}){const n=yt(),a=e,l=i;t({focus:C});const c=ye(null),d=ye("");ye(null);const p=ye(0),m=we(()=>d.value.length>0&&!_.value.some(k=>k.value==d.value)),b=we(()=>p.value==_.value.length&&m.value),w=we(()=>{const k={};return Ls(n.tags).filter(D=>D.propertyId==a.property.id&&D.id!=Ci).forEach(D=>k[D.id]=D),k}),_=we(()=>{let k=Object.values(w.value).filter(D=>D.value.toLowerCase().includes(d.value.toLowerCase()));return a.excluded&&(k=k.filter(D=>!a.excluded.includes(D.id))),k.sort((D,P)=>P.count-D.count),k=k.filter(D=>!D.deleted),k});async function C(){c.value&&c.value.focus()}xt(()=>{if(a.property.type!=He.multi_tags&&a.property.type!=He.tag)throw`TagDropdown got propertyId that does not correspond to a tag | multi_tags type.. -Given type: `+a.property.type;a.autoFocus&&C()});const I=k=>p.value==k?"bg-selected":"bg-white";function O(k){if(p.value==null){p.value=0;return}let D=m.value?0:-1;k>0&&p.value<_.value.length+D?p.value+=1:k<0&&p.value>0&&(p.value-=1)}const M=async function(){if(p.value!=null){if(b.value){const k=await n.addTag(a.property.id,d.value);l("create",k)}else if(p.value<_.value.length){let k=_.value[p.value];l("select",k)}d.value="",C()}};function N(k){p.value==k&&(p.value=void 0)}return nt(_,()=>{_.value.length==0&&m.value&&(p.value=0)}),(k,D)=>(W(),K("div",lV,[V("div",cV,[Bt(V("input",{type:"text",class:"w-100","onUpdate:modelValue":D[0]||(D[0]=P=>d.value=P),ref_key:"searchElem",ref:c,style:{"font-size":"13px","min-width":"100px"},onKeydown:[D[1]||(D[1]=ei(P=>O(1),["down"])),D[2]||(D[2]=ei(P=>O(-1),["up"])),ei(M,["enter"])],onKeydownCapture:D[3]||(D[3]=ei(()=>{},["escape"]))},null,40,uV),[[ui,d.value]])]),V("div",dV,[(W(!0),K(Qe,null,St(_.value,(P,$)=>(W(),K("div",{class:_t(I($)),style:{cursor:"pointer"},onMouseover:H=>p.value=$,onMouseleave:H=>N($)},[V("div",fV,[V("div",{class:"flex-grow-1",style:{overflow:"hidden"},onClick:M},[Me(os,{id:P.id},null,8,["id"])]),a.canLink?(W(),K("div",{key:0,style:pt({color:p.value==$?"var(--text-color)":"white"})},[Me(aV,{"property-id":P.propertyId,"tag-id":P.id,onHide:C},null,8,["property-id","tag-id"])],4)):Le("",!0),a.canCustomize||a.canDelete?(W(),K("div",{key:1,style:pt({color:p.value==$?"var(--text-color)":"white"})},[Me(v_,{"property-id":e.property.id,"tag-id":P.id,"can-delete":a.canDelete,"can-customize":a.canCustomize,onDelete:D[4]||(D[4]=H=>l("delete",H)),onHide:C},null,8,["property-id","tag-id","can-delete","can-customize"])],4)):Le("",!0),V("div",pV,Ne(P.count+Be(kd)(P.allChildren.map(H=>Be(n).tags[H].count))),1)])],42,hV))),256)),a.canCreate&&m.value?(W(),K("div",{key:0,class:_t(I(_.value.length)),style:{cursor:"pointer"},onMouseover:D[5]||(D[5]=P=>p.value=_.value.length),onClick:Jt(M,["prevent","stop"])},[mV,Me(os,{name:d.value,color:-1},null,8,["name"])],42,gV)):Le("",!0)])]))}});const b_=gt(vV,[["__scopeId","data-v-9029934f"]]),bV={class:"overflow-hidden mb-1 text-wrap"},yV=Ke({__name:"TagInput",props:{property:{},modelValue:{},excluded:{},canCreate:{type:Boolean},canCustomize:{type:Boolean},canLink:{type:Boolean},canDelete:{type:Boolean},autoFocus:{type:Boolean},forceMulti:{type:Boolean}},emits:["update:modelValue","select","remove"],setup(e,{expose:t,emit:i}){const n=e,a=i;t({focus:C});const l=ye(null),c=we(()=>n.modelValue??[]),d=we(()=>c.value.map(I=>n.property.tags[I])),p=we(()=>n.excluded?[...n.excluded,...c.value]:[...c.value]);function m(I){n.property.type==He.tag&&!n.forceMulti?a("update:modelValue",[I.id]):a("update:modelValue",[...c.value,I.id]),a("select",I),C()}function b(I){m(I)}function w(I){a("update:modelValue",[...c.value.filter(O=>O!=I)]),a("remove",I),C()}function _(I){w(I.id)}function C(){l.value.focus()}return(I,O)=>(W(),K("div",null,[V("div",bV,[(W(!0),K(Qe,null,St(d.value,M=>(W(),it(os,{onDelete:N=>_(M),"show-delete":!0,id:M.id,class:"me-1"},null,8,["onDelete","id"]))),256))]),Me(b_,{property:n.property,excluded:p.value,"can-create":n.canCreate,"can-customize":n.canCustomize,"can-link":n.canLink,"can-delete":n.canDelete,"auto-focus":n.autoFocus,onSelect:m,onCreate:b,onDelete:w,ref_key:"tagMenuElem",ref:l},null,8,["property","excluded","can-create","can-customize","can-link","can-delete","auto-focus"])]))}}),xV={key:0,style:{"font-size":"14px"},class:"text-secondary"},wV={class:"p-1",style:{"max-width":"250px"}},_V=Ke({__name:"CellTagInput",props:{property:{},modelValue:{},excluded:{},canCreate:{type:Boolean},canCustomize:{type:Boolean},canLink:{type:Boolean},canDelete:{type:Boolean},autoFocus:{type:Boolean},noWrap:{type:Boolean},teleport:{type:Boolean},minHeight:{},width:{}},emits:["update:modelValue","hide","update:height"],setup(e,{expose:t,emit:i}){const n=e,a=i;t({getHeight:w,focus:I});const l=ye(null),c=ye(null),d=ye(null),p=we(()=>b.value??[]),m=we(()=>p.value.map(N=>n.property.tags[N])),b=ye(void 0);function w(){return l.value==null?0:l.value.clientHeight}async function _(N,k){b.value=N,C(),n.property.type==He.tag&&k()}async function C(){await At(),a("update:height",w())}function I(){d.value&&d.value.show()}function O(){b.value=n.modelValue}function M(){a("hide"),a("update:modelValue",b.value)}return nt(()=>n.width,C),nt(()=>n.modelValue,O),xt(C),xt(O),(N,k)=>(W(),it(Us,{"auto-focus":!1,onHide:M,teleport:n.teleport,ref_key:"dropdownElem",ref:d,offset:-25,placement:"bottom-start"},{button:rt(()=>[V("div",{class:_t(["btn-class",n.noWrap?"text-nowrap":"text-wrap"]),style:pt({width:n.width?n.width+"px":"100%"}),ref_key:"heightElem",ref:l},[(W(!0),K(Qe,null,St(m.value,D=>(W(),K("span",null,[Me(os,{id:D.id,class:"me-1"},null,8,["id"])]))),256)),m.value.length==0?(W(),K("span",xV,Ne(N.$t("none")),1)):Le("",!0)],6)]),popup:rt(({hide:D})=>[V("div",wV,[Me(yV,{property:n.property,"model-value":p.value,excluded:n.excluded,"can-create":n.canCreate,"can-customize":n.canCustomize,"can-link":n.canLink,"can-delete":n.canDelete,"auto-focus":n.autoFocus,"onUpdate:modelValue":P=>_(P,D),ref_key:"inputElem",ref:c},null,8,["property","model-value","excluded","can-create","can-customize","can-link","can-delete","auto-focus","onUpdate:modelValue"])])]),_:1},8,["teleport"]))}});const Fg=gt(_V,[["__scopeId","data-v-1bc6d98b"]]),SV={class:"h-100 w-100"},EV=["contenteditable"],CV=Ke({__name:"ContentEditable",props:{modelValue:{},contenteditable:{type:Boolean,default:!0},noHtml:{type:Boolean,default:!0},noNl:{type:Boolean},onlyNumber:{type:Boolean}},emits:["returned","update:modelValue","blur","focus"],setup(e,{expose:t,emit:i}){const n=e,a=i;t({focus:d});const l=ye(!1),c=ye(null);function d(){p(c.value),l.value=!0}function p(N){var k,D;document.createRange&&(k=document.createRange(),k.selectNodeContents(N),k.collapse(!1),D=window.getSelection(),D.removeAllRanges(),D.addRange(k))}function m(){return c.value?(n.noHtml?c.value.innerText:c.value.innerHTML)??"":""}function b(N){return n.onlyNumber&&(N=N.replace(/[^\d.]/g,""),N=N.replace(/\.(?=.*\.)/g,"")),N||(N=""),N}function w(N){n.onlyNumber&&(N=b(N)),n.noHtml?c.value.innerText=N:c.value.innerHTML=N}function _(N){c.value&&a("update:modelValue",m())}function C(N){a("blur"),_(),l.value=!1}function I(N){var H;N.preventDefault();let k=((H=N.clipboardData)==null?void 0:H.getData("text/plain"))||"";n.onlyNumber&&(k=b(k));const D=window.getSelection();if(!(D!=null&&D.rangeCount))return;const P=D.getRangeAt(0);P.deleteContents(),n.onlyNumber&&m().includes(".")&&(k=k.replace(/\./g,"")),k.split(` -`).forEach((ee,se)=>{if(se>0){const te=document.createElement("br");P.insertNode(te),P.setStartAfter(te)}const Q=document.createTextNode(ee);P.insertNode(Q),P.setStartAfter(Q)}),D.removeAllRanges(),D.addRange(P),a("update:modelValue",m())}function O(N){if(N.key=="Enter"&&n.noNl&&(N.preventDefault(),a("returned",m())),n.onlyNumber){let k=N.key.replace(/[^\d.]/g,"");k=="."&&m().includes(".")&&(k=""),k==""&&(N.preventDefault(),a("returned",m()))}}function M(){l.value||(l.value=!0)}return xt(()=>{w(n.modelValue??"")}),nt(()=>n.modelValue,(N,k)=>{N!=m()&&w(N??"")}),nt(()=>n.noHtml,(N,k)=>{w(n.modelValue??"")}),(N,k)=>(W(),K("div",SV,[V("div",{contenteditable:N.contenteditable,onInput:_,onBlur:C,onPaste:I,onKeypress:O,ref_key:"element",ref:c,onFocus:k[0]||(k[0]=D=>{a("focus"),M()})},null,40,EV)]))}}),AV=Ke({__name:"TextInput",props:{editable:{type:Boolean,default:!0},modelValue:{},width:{},minHeight:{default:30},urlMode:{type:Boolean},noShadow:{type:Boolean},alwaysShadow:{type:Boolean},blurOnEnter:{type:Boolean,default:!0},autoFocus:{type:Boolean},noNl:{type:Boolean}},emits:{"update:modelValue":Object,"update:height":String,blur:void 0,focus:void 0,submit:void 0,cancel:void 0},setup(e,{expose:t,emit:i}){const n=e,a=i,l=ye(null),c=ye(!1),d=ye(!1),p=we(()=>n.minHeight-6+"px"),m=we(()=>n.modelValue??""),b=we(()=>n.urlMode&&vi.ctrl&&d.value);function w(){l.value.focus(),a("focus")}t({focus:w,isFocus:c});let _=0;function C(P){(P==""||P==` -`)&&(P=void 0),a("update:modelValue",P),I()}function I(){At(()=>{if(!l.value)return;let P=l.value.$refs.element.clientHeight;_!=P&&a("update:height",P),_=P})}function O(){if(n.urlMode&&vi.ctrl&&n.modelValue){let P=n.modelValue;P.startsWith("http")||(P="http://"+P),window.open(P,"_blank").focus()}}function M(P){!vi.shift&&n.blurOnEnter&&(P.target.blur(),P.preventDefault(),P.stopPropagation(),a("submit"))}function N(){a("cancel")}function k(){c.value=!1,a("blur")}function D(){c.value=!0,a("focus")}return xt(async()=>{I(),n.autoFocus&&(await At(),w())}),nt(()=>n.width,()=>{I()}),nt(()=>n.modelValue,()=>{C(n.modelValue)}),(P,$)=>(W(),K("div",{style:pt({width:n.width>0?n.width+"px":"100%",minHeight:p.value,cursor:b.value?"pointer":"inherit",color:b.value?"blue":""}),class:_t(["container m-0 p-0",c.value&&!n.noShadow||n.alwaysShadow?"focus":"container"]),onMouseenter:$[1]||($[1]=H=>d.value=!0),onMouseleave:$[2]||($[2]=H=>d.value=!1),onClick:w},[Me(CV,{ref_key:"elem",ref:l,"onUpdate:modelValue":C,"model-value":m.value,"no-nl":n.urlMode||n.noNl,contenteditable:n.editable&&!b.value,style:pt({width:n.width-5+"px"}),class:"contenteditable",onKeydown:[$[0]||($[0]=ei(H=>H.target.blur(),["escape"])),ei(Jt(N,["stop"]),["esc"]),ei(M,["enter"])],onFocus:D,onBlur:k,onClick:Jt(O,["stop"])},null,8,["model-value","no-nl","contenteditable","style","onKeydown","onClick"])],38))}});const uc=gt(AV,[["__scopeId","data-v-a3359390"]]),kV={key:0,class:"ellipsis"},TV={key:1,class:"text-secondary"},IV=Ke({__name:"TextPreview",props:{text:{}},setup(e){const t=e;return(i,n)=>t.text?(W(),K("div",kV,Ne(t.text),1)):(W(),K("div",TV,Ne(i.$t("none")),1))}});const y_=gt(IV,[["__scopeId","data-v-4b4b465e"]]),x_=Ke({__name:"CellTextInput",props:{editable:{type:Boolean},modelValue:{},width:{},minHeight:{},noShadow:{type:Boolean},alwaysShadow:{type:Boolean},blurOnEnter:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!1}},emits:["update:modelValue","update:height"],setup(e,{expose:t,emit:i}){const n=e,a=i;t({focus:w});const l=ye(null),c=ye(void 0);function d(){c.value=n.modelValue}async function p(){await At(),c.value===""||c.value===void 0?a("update:modelValue",void 0):a("update:modelValue",c.value),await At(),c.value==""&&(c.value=void 0)}function m(I){a("update:height",I)}async function b(){c.value===void 0&&(c.value=""),await At(),l.value&&l.value.focus()}function w(){b()}function _(){d()}function C(I){I===void 0&&(I=""),c.value=I}return xt(d),nt(n,d),(I,O)=>(W(),K("div",null,[c.value===void 0?(W(),it(y_,{key:0,text:n.modelValue,onClick:b,style:{"font-size":"inherit",cursor:"pointer"}},null,8,["text"])):(W(),it(uc,{key:1,"model-value":c.value,"onUpdate:modelValue":C,"min-height":n.minHeight,"auto-focus":n.autoFocus,"no-shadow":n.noShadow,width:n.width,"always-shadow":n.alwaysShadow,"blur-on-enter":n.blurOnEnter,onCancel:O[0]||(O[0]=M=>_()),onBlur:p,"onUpdate:height":m,ref_key:"inputElem",ref:l},null,8,["model-value","min-height","auto-focus","no-shadow","width","always-shadow","blur-on-enter"]))]))}}),OV={key:1,class:"text-secondary"},PV=Ke({__name:"UrlPreview",props:{url:{}},setup(e){const t=e,i=ye(!1),n=we(()=>vi.ctrl&&i.value);function a(){if(n.value&&t.url){let l=t.url;l.startsWith("http")||(l="http://"+l),window.open(l,"_blank").focus()}}return(l,c)=>t.url?(W(),K("div",{key:0,class:"ellipsis",style:pt({cursor:n.value?"pointer":"inherit",color:n.value?"blue":""}),onMouseenter:c[0]||(c[0]=d=>i.value=!0),onMouseleave:c[1]||(c[1]=d=>i.value=!1),onClick:a},Ne(t.url),37)):(W(),K("div",OV,Ne(l.$t("none")),1))}});const w_=gt(PV,[["__scopeId","data-v-ee1a4e4b"]]),__=Ke({__name:"CellUrlInput",props:{editable:{type:Boolean},modelValue:{},width:{},minHeight:{},noShadow:{type:Boolean},alwaysShadow:{type:Boolean},blurOnEnter:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!1}},emits:["update:modelValue","update:height"],setup(e,{expose:t,emit:i}){const n=e,a=i;t({focus:w});const l=ye(null),c=ye(void 0);function d(){c.value=n.modelValue}async function p(){await At(),c.value===""||c.value===void 0?a("update:modelValue",void 0):a("update:modelValue",c.value),await At(),c.value==""&&(c.value=void 0)}function m(I){a("update:height",I)}async function b(){c.value===void 0&&(c.value=""),await At(),l.value&&l.value.focus()}function w(){b()}function _(){d()}function C(I){I===void 0&&(I=""),c.value=I}return xt(d),nt(n,d),(I,O)=>(W(),K("div",null,[c.value===void 0?(W(),it(w_,{key:0,url:n.modelValue,onClick:b,style:{"font-size":"inherit",cursor:"pointer"}},null,8,["url"])):(W(),it(uc,{key:1,"model-value":c.value,"onUpdate:modelValue":C,"min-height":n.minHeight,"auto-focus":n.autoFocus,"no-shadow":n.noShadow,"url-mode":!0,width:n.width,"always-shadow":n.alwaysShadow,"blur-on-enter":n.blurOnEnter,onCancel:_,onBlur:p,"onUpdate:height":m,ref_key:"inputElem",ref:l},null,8,["model-value","min-height","auto-focus","no-shadow","width","always-shadow","blur-on-enter"]))]))}}),LV={class:"d-flex"},MV=["checked"],NV=Ke({__name:"CheckboxInput",props:{modelValue:{type:Boolean},label:{}},emits:["update:modelValue"],setup(e,{expose:t,emit:i}){const n=e,a=i;t({focus:c});const l=ye(null);function c(){l.value&&l.value.focus()}function d(p){p.target.checked?a("update:modelValue",!0):a("update:modelValue",void 0)}return(p,m)=>(W(),K("div",LV,[V("div",null,[V("input",{class:"offset-input",type:"checkbox",checked:n.modelValue,onInput:d,ref_key:"inputElem",ref:l},null,40,MV)]),V("div",null,[n.label?(W(),K("span",{key:0,class:"ms-1 bb",onClick:m[0]||(m[0]=b=>a("update:modelValue",!n.modelValue))},Ne(p.label),1)):Le("",!0)])]))}});const zg=gt(NV,[["__scopeId","data-v-1c894de9"]]),S_=Ke({__name:"DBInput",props:{instance:{},propertyId:{}},emits:[],setup(e,{emit:t}){const i=yt(),n=e,a=we(()=>i.instances[n.instance.id].properties[n.propertyId]),l=ye(void 0),c=ye(!0);async function d(m){c.value&&JSON.stringify(m)!==JSON.stringify(a.value)&&(l.value=m,await i.setPropertyValue(n.propertyId,n.instance,m),p())}function p(){l.value=a.value}return xt(p),nt(a,p),nt(n,async()=>{c.value=!1,await At(),c.value=!0}),(m,b)=>c.value?di(m.$slots,"default",{key:0,set:d,value:l.value}):Le("",!0)}}),RV={key:0,class:"text-secondary"},DV={key:1},$V=Ke({__name:"DatePreview",props:{date:{},format:{default:"YMDhms"},resolution:{default:5}},setup(e){const t=e,i=we(()=>{let a=new Date(t.date);if(!isNaN(+a))return n(a)});function n(a){let l="",c=t.format;for(let d=0;d(W(),K("div",null,[i.value?(W(),K("span",DV,Ne(i.value),1)):(W(),K("span",RV,Ne(a.$t("none")),1))]))}}),Oa=e=>(ii("data-v-9762bd72"),e=e(),si(),e),FV={class:""},zV={key:0},HV={class:"d-flex"},VV=["onInput","onUpdate:modelValue","onClick","onKeydown","onBlur"],BV=Oa(()=>V("div",{class:"text-center text-secondary",style:{"font-size":"10px"}},"Y",-1)),WV={key:1},YV={class:"d-flex"},jV=Oa(()=>V("div",{class:"text-center text-secondary",style:{"font-size":"10px"}},"M",-1)),XV={key:2},GV={class:"d-flex"},UV=Oa(()=>V("div",{class:"text-center text-secondary",style:{"font-size":"10px"}},"D",-1)),KV={key:3},qV={class:"d-flex"},ZV=Oa(()=>V("div",{class:"text-center text-secondary",style:{"font-size":"10px"}},"h",-1)),JV={key:4},QV={class:"d-flex"},eB=Oa(()=>V("div",{class:"text-center text-secondary",style:{"font-size":"10px"}},"m",-1)),tB={key:5},iB={class:"d-flex"},sB=Oa(()=>V("div",{class:"text-center text-secondary",style:{"font-size":"10px"}},"s",-1)),nB={key:6,class:"slash"},rB={key:7,class:"me-2"},aB={key:8},oB={class:"d-flex"},lB={class:"ms-2"},cB={key:0,style:{width:"50px"},class:"text-warning"},uB={key:1,class:"text-warning",style:{width:"50px"}},dB={key:2,style:{width:"50px"}},hB={class:"text-success"},fB=Oa(()=>V("div",{class:"flex-grow-1"},null,-1)),pB={key:0},gB={key:1},mB={key:0,class:"text-center"},vB=Ke({__name:"DateInput",props:{modelValue:{},extended:{type:Boolean},autoFocus:{type:Boolean}},emits:["update:modelValue","cancel","submit"],setup(e,{emit:t}){const i=e,n=t,a=ye({}),l=ye({}),c=ye({}),d=ye("YMDhms"),p=ye("YMDhms"),m=ye(5),b=ye(null),w=we(()=>a.value.Y0=="-"?["Y0","Y1","Y2","Y3","Y4"]:["Y0","Y1","Y2","Y3"]),_=we(()=>{let Z=a.value;if(Object.values(Z).some(_e=>_e=="x"))return{};const U=new Date;let fe="",he=w.value.length;for(let _e=0;_e{const Z=p.value.substring(0,m.value+1);return Array.from(d.value).filter(U=>Z.includes(U))});function I(Z){let U="",fe=C.value;for(let he=0;he1){oe(ue,he);return}if(!M(he)){l.value[ue]=a.value[ue];return}if(he=="-")if(ve.Y0!="-"){let et=w.value.length;for(let Ee=et;Ee>0;Ee--)ve["Y"+Ee]=ve["Y"+(Ee-1)];ve.Y0="-";for(let Ee=1;Ee<=U;Ee++)ve["Y"+Ee]=0;a.value=ve,N(),te("Y"+U)}else{ve.Y0="-";for(let et=1;et1){oe(ue,he);return}isNaN(he)||(ve[ue]=he),ve.M0>1&&(ve.M0=0),ve.M0>0&&ve.M1>2&&(U==0?ve.M1=2:ve.M0=0),ve.M0==0&&ve.M1==0&&(ve.M1=1),a.value=ve,N(),te(ue),fe&&n("update:modelValue",(Re=_.value.date)==null?void 0:Re.toISOString())}function $(Z,U,fe=!0){var Re;let he=Z.data,ue="D"+U,ve=a.value;if(he==null&&(he="0"),he.length>1){oe(ue,he);return}isNaN(he)||(ve[ue]=he),ve.D0>3&&(ve.D0=0),ve.D0==3&&ve.D1>1&&(U==0?ve.D1=1:ve.D0=0),ve.D0==0&&ve.D1==0&&(ve.D1=1),a.value=ve,N(),te(ue),fe&&n("update:modelValue",(Re=_.value.date)==null?void 0:Re.toISOString())}function H(Z,U,fe=!0){var Re;let he=Z.data,ue="h"+U,ve=a.value;if(he==null&&(he="0"),he.length>1){oe(ue,he);return}isNaN(he)||(ve[ue]=he),ve.h0>2&&(ve.h0=0),ve.h0==2&&ve.h1>3&&(U==0?ve.h1=3:ve.h0=0),a.value=ve,N(),te(ue),fe&&n("update:modelValue",(Re=_.value.date)==null?void 0:Re.toISOString())}function ee(Z,U,fe=!0){var Re;let he=Z.data,ue="m"+U,ve=a.value;if(he==null&&(he="0"),he.length>1){oe(ue,he);return}isNaN(he)||(ve[ue]=he),ve.m0>5&&(ve.m0=0),a.value=ve,N(),te(ue),fe&&n("update:modelValue",(Re=_.value.date)==null?void 0:Re.toISOString())}function se(Z,U,fe=!0){var Re;let he=Z.data,ue="s"+U,ve=a.value;if(he==null&&(he="0"),he.length>1){oe(ue,he);return}isNaN(he)||(ve[ue]=he),ve.s0>5&&(ve.s0=0),a.value=ve,N(),te(ue),fe&&n("update:modelValue",(Re=_.value.date)==null?void 0:Re.toISOString())}function Q(Z){let U=a.value;U[Z]=="x"&&(U[Z]=Z=="M1"||Z=="D1"?1:0),a.value=U,N()}function te(Z){let U=ce(Z);U!=null&&c.value[U].focus()}function ce(Z){let U=Z[0],fe=Number(Z.substring(1)),he=2;if(U=="Y"&&(he=w.value.length),fe+1ve=="-"||!isNaN(Number(ve))).filter(ve=>ve!=" ");for(;Z&&he[fe]!=null;){let ve=Z[0],Re=Number(Z[1]);ve=="Y"&&D({data:he[fe]},Re,!1),ve=="M"&&P({data:he[fe]},Re,!1),ve=="D"&&$({data:he[fe]},Re,!1),ve=="h"&&H({data:he[fe]},Re,!1),ve=="m"&&ee({data:he[fe]},Re,!1),ve=="s"&&se({data:he[fe]},Re,!1),fe+=1,Z=ce(Z)}n("update:modelValue",(ue=_.value.date)==null?void 0:ue.toISOString())}function de(){var Z;O(_.value.closest),n("update:modelValue",(Z=_.value.date)==null?void 0:Z.toISOString())}function be(Z){var U;O(Z),n("update:modelValue",(U=_.value.date)==null?void 0:U.toISOString())}function Ce(){var Z=new Date;return Z.setTime(Z.getTime()-Z.getTimezoneOffset()*6e4),Z}async function re(){await At(),b.value.getElementsByTagName("input")[0].focus()}return xt(()=>{O(i.modelValue),i.autoFocus&&re()}),(Z,U)=>(W(),K("div",FV,[V("div",{class:"d-flex flex-nowrap justify-content-center",style:{"line-height":"20px"},ref_key:"divElem",ref:b},[(W(!0),K(Qe,null,St(C.value,(fe,he)=>(W(),K(Qe,null,[fe=="Y"?(W(),K("div",zV,[V("div",HV,[(W(!0),K(Qe,null,St(w.value,(ue,ve)=>Bt((W(),K("input",{class:"digit",type:"text",onInput:Re=>D(Re,ve),"onUpdate:modelValue":Re=>l.value[ue]=Re,ref_for:!0,ref:Re=>c.value[ue]=Re,onClick:Re=>k(ve),onKeydown:ei(Jt(Re=>D({},ve),["prevent","stop"]),["delete"]),onBlur:Re=>Q(ue)},null,40,VV)),[[ui,l.value[ue]]])),256))]),BV])):Le("",!0),fe=="M"?(W(),K("div",WV,[V("div",YV,[Bt(V("input",{class:"digit",type:"text",onInput:U[0]||(U[0]=ue=>P(ue,0)),"onUpdate:modelValue":U[1]||(U[1]=ue=>l.value.M0=ue),onBlur:U[2]||(U[2]=ue=>Q("M0")),onKeydown:U[3]||(U[3]=ei(Jt(ue=>P({},0),["prevent","stop"]),["delete"])),ref_for:!0,ref:ue=>c.value.M0=ue},null,544),[[ui,l.value.M0]]),Bt(V("input",{class:"digit",type:"text",onInput:U[4]||(U[4]=ue=>P(ue,1)),"onUpdate:modelValue":U[5]||(U[5]=ue=>l.value.M1=ue),onBlur:U[6]||(U[6]=ue=>Q("M1")),onKeydown:U[7]||(U[7]=ei(Jt(ue=>P({},1),["prevent","stop"]),["delete"])),ref_for:!0,ref:ue=>c.value.M1=ue},null,544),[[ui,l.value.M1]])]),jV])):Le("",!0),fe=="D"?(W(),K("div",XV,[V("div",GV,[Bt(V("input",{class:"digit",type:"text",onInput:U[8]||(U[8]=ue=>$(ue,0)),"onUpdate:modelValue":U[9]||(U[9]=ue=>l.value.D0=ue),onBlur:U[10]||(U[10]=ue=>Q("D0")),ref_for:!0,ref:ue=>c.value.D0=ue,onKeydown:U[11]||(U[11]=ei(Jt(ue=>$({},0),["prevent","stop"]),["delete"]))},null,544),[[ui,l.value.D0]]),Bt(V("input",{class:"digit",type:"text",onInput:U[12]||(U[12]=ue=>$(ue,1)),"onUpdate:modelValue":U[13]||(U[13]=ue=>l.value.D1=ue),onBlur:U[14]||(U[14]=ue=>Q("D1")),ref_for:!0,ref:ue=>c.value.D1=ue,onKeydown:U[15]||(U[15]=ei(Jt(ue=>$({},1),["prevent","stop"]),["delete"]))},null,544),[[ui,l.value.D1]])]),UV])):Le("",!0),fe=="h"?(W(),K("div",KV,[V("div",qV,[Bt(V("input",{class:"digit",type:"text",onInput:U[16]||(U[16]=ue=>H(ue,0)),"onUpdate:modelValue":U[17]||(U[17]=ue=>l.value.h0=ue),onBlur:U[18]||(U[18]=ue=>Q("h0")),onKeydown:U[19]||(U[19]=ei(Jt(ue=>H({},0),["prevent","stop"]),["delete"])),ref_for:!0,ref:ue=>c.value.h0=ue},null,544),[[ui,l.value.h0]]),Bt(V("input",{class:"digit",type:"text",onInput:U[20]||(U[20]=ue=>H(ue,1)),"onUpdate:modelValue":U[21]||(U[21]=ue=>l.value.h1=ue),onBlur:U[22]||(U[22]=ue=>Q("h1")),ref_for:!0,ref:ue=>c.value.h1=ue,onKeydown:U[23]||(U[23]=ei(Jt(ue=>H({},1),["prevent","stop"]),["delete"]))},null,544),[[ui,l.value.h1]])]),ZV])):Le("",!0),fe=="m"?(W(),K("div",JV,[V("div",QV,[Bt(V("input",{class:"digit",type:"text",onInput:U[24]||(U[24]=ue=>ee(ue,0)),"onUpdate:modelValue":U[25]||(U[25]=ue=>l.value.m0=ue),onBlur:U[26]||(U[26]=ue=>Q("m0")),onKeydown:U[27]||(U[27]=ei(Jt(ue=>ee({},0),["prevent","stop"]),["delete"])),ref_for:!0,ref:ue=>c.value.m0=ue},null,544),[[ui,l.value.m0]]),Bt(V("input",{class:"digit",type:"text",onInput:U[28]||(U[28]=ue=>ee(ue,1)),"onUpdate:modelValue":U[29]||(U[29]=ue=>l.value.m1=ue),onBlur:U[30]||(U[30]=ue=>Q("m1")),onKeydown:U[31]||(U[31]=ei(Jt(ue=>ee({},1),["prevent","stop"]),["delete"])),ref_for:!0,ref:ue=>c.value.m1=ue},null,544),[[ui,l.value.m1]])]),eB])):Le("",!0),fe=="s"?(W(),K("div",tB,[V("div",iB,[Bt(V("input",{class:"digit",type:"text",onInput:U[32]||(U[32]=ue=>se(ue,0)),"onUpdate:modelValue":U[33]||(U[33]=ue=>l.value.s0=ue),onBlur:U[34]||(U[34]=ue=>Q("s0")),onKeydown:U[35]||(U[35]=ei(Jt(ue=>se({},0),["prevent","stop"]),["delete"])),ref_for:!0,ref:ue=>c.value.s0=ue},null,544),[[ui,l.value.s0]]),Bt(V("input",{class:"digit",type:"text",onInput:U[36]||(U[36]=ue=>se(ue,1)),"onUpdate:modelValue":U[37]||(U[37]=ue=>l.value.s1=ue),onBlur:U[38]||(U[38]=ue=>Q("s1")),onKeydown:U[39]||(U[39]=ei(Jt(ue=>se({},1),["prevent","stop"]),["delete"])),ref_for:!0,ref:ue=>c.value.s1=ue},null,544),[[ui,l.value.s1]])]),sB])):Le("",!0),"YMD".includes(C.value[he+1])?(W(),K("div",nB,"/")):Le("",!0),"YMD".includes(C.value[he])&&"hms".includes(C.value[he+1])?(W(),K("div",rB)):"hms".includes(C.value[he+1])?(W(),K("div",aB,":")):Le("",!0)],64))),256))],512),V("div",oB,[V("div",null,[V("i",{class:"bi bi-x bb",onClick:U[40]||(U[40]=fe=>be(void 0))})]),V("div",null,[V("i",{class:"bi bi-calendar3 bb",onClick:U[41]||(U[41]=fe=>be(Ce()))})]),V("div",lB,[!_.value.closest&&!_.value.date?(W(),K("div",cB,Ne(Z.$t("none")),1)):Le("",!0),_.value.closest&&!_.value.date?(W(),K("div",uB,Ne(Z.$t("datepicker.invalid")),1)):Le("",!0),_.value.date?(W(),K("div",dB,[V("span",hB,Ne(Z.$t("datepicker.valid")),1)])):Le("",!0)]),fB,i.extended?(W(),K("div",pB,[V("span",{class:"bb",onClick:U[42]||(U[42]=fe=>n("cancel"))},Ne(Z.$t("datepicker.cancel")),1)])):Le("",!0),i.extended?(W(),K("div",gB,[V("span",{class:"bb",onClick:U[43]||(U[43]=fe=>n("submit"))},Ne(Z.$t("datepicker.submit")),1)])):Le("",!0)]),_.value.closest&&!_.value.date?(W(),K("div",mB,[V("span",{class:"text-warning",style:{cursor:"pointer","font-size":"14px"},onClick:de},Ne(Z.$t("datepicker.correct"))+": "+Ne(I(_.value.closest))+" ? ",1)])):Le("",!0)]))}});const bB=gt(vB,[["__scopeId","data-v-9762bd72"]]),yB={class:"p-2"},xB=Ke({__name:"RowDateInput",props:{modelValue:{},width:{},height:{},noNl:{type:Boolean},teleport:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:i}){const n=e,a=i;t({focus:w});const l=ye(null),c=ye(null),d=ye(void 0);function p(){d.value=n.modelValue}function m(_){a("update:modelValue",d.value),_()}function b(){p()}function w(){l.value&&l.value.show()}return xt(p),nt(()=>n.modelValue,p),(_,C)=>(W(),it(Us,{offset:-20,"no-shadow":!1,teleport:n.teleport,onEsc:b,onEnter:m,placement:"bottom",ref_key:"dropdownElem",ref:l},{button:rt(()=>[V("div",{ref_key:"previewElem",ref:c,style:{"font-size":"14px"}},[Me($V,{date:n.modelValue,class:"row-preview",style:pt([{cursor:"pointer"},{width:n.width?n.width+"px":"100%"}])},null,8,["date","style"])],512)]),popup:rt(({hide:I})=>[V("div",yB,[Me(bB,{modelValue:d.value,"onUpdate:modelValue":C[0]||(C[0]=O=>d.value=O),extended:!0,"auto-focus":!0,onCancel:O=>{b(),I()},onSubmit:O=>m(I)},null,8,["modelValue","onCancel","onSubmit"])])]),_:1},8,["teleport"]))}});const Hg=gt(xB,[["__scopeId","data-v-fd5ab4e8"]]),wB={key:0,class:"ellipsis"},_B={key:1,class:"text-secondary"},SB=Ke({__name:"NumberPreview",props:{number:{},width:{}},setup(e){const t=e;return(i,n)=>(W(),K("div",{style:pt({width:t.width?t.width+"px":"100%"})},[t.number!=null?(W(),K("div",wB,Ne(t.number),1)):(W(),K("div",_B,Ne(i.$t("none")),1))],4))}});const EB=gt(SB,[["__scopeId","data-v-b4fb60d0"]]),CB=["onKeydown"],AB=Ke({__name:"NumberInput",props:{modelValue:{},width:{}},emits:["update:modelValue","focus","blur"],setup(e,{expose:t,emit:i}){const n=e,a=i;t({focus:I});const l=ye(!1),c=ye(void 0),d=ye(null);function p(){c.value=isNaN(Number(n.modelValue))?void 0:n.modelValue}function m(){if(c.value===void 0||c.value===""){a("update:modelValue",void 0);return}a("update:modelValue",c.value)}function b(){l.value=!0,a("focus")}function w(){l.value=!1,m(),a("blur")}function _(){p(),C()}function C(){d.value.blur()}function I(){d.value&&d.value.focus()}return xt(p),nt(()=>n.modelValue,p),(O,M)=>(W(),K("div",null,[Bt(V("input",{style:pt([{"line-height":"inherit","background-color":"inherit"},{width:n.width?n.width+"px":"100%"}]),class:_t(l.value?"dropdown-input":""),type:"number","onUpdate:modelValue":M[0]||(M[0]=N=>c.value=N),onFocus:b,onBlur:w,onKeydown:[ei(_,["esc"]),ei(C,["enter"])],ref_key:"inputElem",ref:d},null,46,CB),[[ui,c.value]])]))}});const kB=gt(AB,[["__scopeId","data-v-36212323"]]),Vg=Ke({__name:"RowNumberInput",props:{modelValue:{},width:{},height:{},inputOffset:{}},emits:["update:modelValue"],setup(e,{expose:t,emit:i}){const n=e,a=i;t({focus:_});const l=ye(null),c=ye(void 0),d=ye(n.inputOffset??0),p=we(()=>n.height-8);function m(){c.value=n.modelValue}function b(C){(C===""||isNaN(C))&&(C=void 0),a("update:modelValue",C)}async function w(){c.value===void 0&&(c.value=""),await At(),l.value&&l.value.focus()}function _(){w()}return xt(m),nt(n,m),(C,I)=>(W(),K("div",null,[c.value===void 0?(W(),it(EB,{key:0,number:n.modelValue,style:{"font-size":"inherit",cursor:"pointer"},onClick:w,width:n.width},null,8,["number","width"])):(W(),K("div",{key:1,style:pt({lineHeight:p.value+"px",top:d.value+"px",position:"relative"})},[Me(kB,{"model-value":n.modelValue,"onUpdate:modelValue":b,width:n.width,onKeydown:I[0]||(I[0]=ei(Jt(()=>{},["stop"]),["esc"])),onBlur:m,ref_key:"inputElem",ref:l,class:"reduced"},null,8,["model-value","width"])],4))]))}}),TB={style:{padding:"2px 0px"}},IB={key:0},E_=Ke({__name:"GridPropInput",props:{instance:{},property:{},minHeight:{},width:{}},emits:["update:height"],setup(e,{expose:t,emit:i}){const n=yt(),a=e,l=i;t({focus:m});const c=ye(null),d=we(()=>a.property.type);function p(b){l("update:height",b+4)}function m(){c.value&&c.value.focus()}return(b,w)=>(W(),K("div",null,[Me(S_,{instance:a.instance,"property-id":a.property.id},{default:rt(({value:_,set:C})=>[V("div",TB,[Be(ji)(d.value)?(W(),it(Fg,{key:0,property:a.property,"model-value":_,"can-create":!0,"can-delete":!0,"can-customize":!0,"onUpdate:modelValue":C,"onUpdate:height":p,"min-height":a.minHeight,teleport:!0,width:a.width,"auto-focus":!0,ref_key:"inputElem",ref:c},null,8,["property","model-value","onUpdate:modelValue","min-height","width"])):d.value==Be(He).string?(W(),it(x_,{key:1,"model-value":_,"onUpdate:modelValue":C,"onUpdate:height":p,"min-height":a.minHeight,width:a.width,ref_key:"inputElem",ref:c},null,8,["model-value","onUpdate:modelValue","min-height","width"])):d.value==Be(He).url?(W(),it(__,{key:2,"model-value":_,"onUpdate:modelValue":C,"onUpdate:height":p,"min-height":a.minHeight,"url-mode":!0,width:a.width,ref_key:"inputElem",ref:c},null,8,["model-value","onUpdate:modelValue","min-height","width"])):d.value==Be(He).checkbox?(W(),it(zg,{key:3,"model-value":_,"onUpdate:modelValue":C,"onUpdate:height":p,ref_key:"inputElem",ref:c},null,8,["model-value","onUpdate:modelValue"])):d.value==Be(He).color?(W(),it(Rg,{key:4,"model-value":_,"onUpdate:modelValue":C,"onUpdate:height":p,"min-height":a.minHeight-2,width:a.width,ref_key:"inputElem",ref:c,teleport:!0},null,8,["model-value","onUpdate:modelValue","min-height","width"])):d.value==Be(He).date?(W(),it(Hg,{key:5,"model-value":_,"onUpdate:modelValue":C,teleport:!0,"onUpdate:height":p,ref_key:"inputElem",ref:c},null,8,["model-value","onUpdate:modelValue"])):d.value==Be(He).number?(W(),it(Vg,{key:6,"model-value":_,"onUpdate:modelValue":C,"onUpdate:height":p,ref_key:"inputElem",ref:c,height:27},null,8,["model-value","onUpdate:modelValue"])):b.property.type==Be(He)._folders?(W(),K("div",{key:7,style:pt({height:a.minHeight+"px"}),class:"ps-1 overflow-hidden"},[a.instance.properties[b.property.id]!=null?(W(),K("span",IB,[Me(os,{name:Be(n).folders[a.instance.properties[b.property.id]].name,color:-1},null,8,["name"])])):Le("",!0)],4)):(W(),it(uc,{key:8,"model-value":_,"onUpdate:modelValue":C,"onUpdate:height":p,"min-height":a.minHeight,editable:!1},null,8,["model-value","onUpdate:modelValue","min-height"]))])]),_:1},8,["instance","property-id"])]))}}),OB=e=>(ii("data-v-b934beb1"),e=e(),si(),e),PB={class:"main"},LB={class:"table table-sm",style:{"margin-bottom":"0","table-layout":"fixed"}},MB={class:"main"},NB={class:"",style:{"font-size":"14px"}},RB={class:"text-nowrap overflow-hidden",style:{width:"100px !important"}},DB={class:"text-wrap ms-1"},$B={key:0,class:"ps-1 border-left",style:{width:"100%"}},FB={key:1,class:"border-left",colspan:"2",style:{}},zB={key:0,class:"m-0 p-0"},HB={key:1},VB=["onClick"],BB=OB(()=>V("i",{class:"bi bi-paint-bucket"},null,-1)),WB=["onClick"],YB=Ke({__name:"PropertyInputTable",props:{image:{},properties:{},visibleProperties:{}},emits:["paint","hover","hoverEnd","toggleFilter"],setup(e,{emit:t}){const i=yt(),n=e,a=t;function l(c){n.visibleProperties&&(n.visibleProperties[c.id]?delete n.visibleProperties[c.id]:n.visibleProperties[c.id]=!0)}return(c,d)=>(W(),K("div",PB,[V("table",LB,[V("tbody",MB,[(W(!0),K(Qe,null,St(c.properties,p=>(W(),K("tr",NB,[V("td",RB,[Me(Ws,{type:p.type},null,8,["type"]),V("span",DB,Ne(Be(i).properties[p.id].name),1)]),p.id>0?(W(),K("td",$B,[p.id>0?(W(),it(E_,{key:0,property:Be(i).properties[p.id],instance:c.image,width:-1,"min-height":p.type==Be(He).color?24:20},null,8,["property","instance","min-height"])):Le("",!0)])):(W(),K("td",FB,[p.type!=Be(He)._folders?(W(),K("p",zB,Ne(c.image.properties[p.id]),1)):(W(),K("span",HB,[Me(os,{name:Be(i).folders[c.image.properties[p.id]].name,color:-1},null,8,["name"])]))])),p.computed?Le("",!0):(W(),K("td",{key:2,class:"text-center btn-icon border-left",style:{padding:"4px 3px 0px 5px",width:"24px"},onClick:m=>a("paint",{instanceId:n.image.id,propertyId:p.id}),onMouseenter:d[0]||(d[0]=m=>a("hover")),onMouseleave:d[1]||(d[1]=m=>a("hoverEnd"))},[Me(Ti,{message:"modals.image.fill_property_tooltip"},{default:rt(()=>[BB]),_:1})],40,VB)),!p.computed&&p.mode!=Be(ki).id?(W(),K("td",{key:3,class:"text-center btn-icon border-left",style:{padding:"3px",width:"20px"},onClick:m=>l(p)},[Me(Ti,{message:"modals.image.toggle_property_tooltip"},{default:rt(()=>[V("i",{class:_t(["bi bi-eye",n.visibleProperties[p.id]?"text-primary":""])},null,2)]),_:2},1024)],8,WB)):Le("",!0)]))),256))])])]))}});const Mh=gt(YB,[["__scopeId","data-v-b934beb1"]]),Hd=e=>(ii("data-v-8203685c"),e=e(),si(),e),jB={class:"image-container position-relative"},XB={key:0,class:"image-nav d-flex"},GB=Hd(()=>V("i",{class:"bi bi-arrow-left"},null,-1)),UB=[GB],KB=Hd(()=>V("div",{class:"flex-grow-1"},null,-1)),qB=Hd(()=>V("i",{class:"bi bi-arrow-right"},null,-1)),ZB=[qB],JB=Hd(()=>V("div",{class:"custom-hr"},null,-1)),QB={style:{"overflow-y":"auto"}},eW={key:0,class:"bi bi-caret-right-fill"},tW={key:1,class:"bi bi-caret-down-fill"},iW={key:0,class:"bi bi-caret-right-fill"},sW={key:1,class:"bi bi-caret-down-fill"},nW={key:0,class:"bi bi-caret-right-fill"},rW={key:1,class:"bi bi-caret-down-fill"},aW=Ke({__name:"ImagePropertyCol",props:{image:{},width:{},imageHeight:{},visibleProperties:{},groupManager:{}},emits:["paint","hover","hoverEnd"],setup(e,{emit:t}){const i=yt(),n=e,a=t,l=ye(0);new Image;const c=Ji("nextImage"),d=Ji("prevImage"),p=Ji("showHistory"),m=Wt({});we(()=>{const I=[];return l.value==0&&I.push(...i.propertyList.filter(O=>O.mode==ki.sha1&&!O.computed)),l.value==1&&I.push(...i.propertyList.filter(O=>O.mode==ki.id&&!O.computed)),l.value==2&&I.push(...i.propertyList.filter(O=>O.computed)),I.filter(O=>O.id!=Ci)});const b=we(()=>i.propertyList.filter(I=>I.mode==ki.sha1&&!I.computed&&I.id!=Ci)),w=we(()=>i.propertyList.filter(I=>I.mode==ki.id&&!I.computed&&I.id!=Ci)),_=we(()=>i.propertyList.filter(I=>I.id<0&&I.id!=Ci));function C(I){if(m[I]){delete m[I];return}m[I]=!0}return(I,O)=>(W(),K("div",{class:"main2 bg-white h-100 d-flex flex-column",style:pt({width:n.width+"px"})},[V("div",jB,[Me(Mg,{image:n.image.image},{default:rt(()=>[Me(cc,{image:n.image.image,height:n.imageHeight,width:n.width-1},null,8,["image","height","width"]),!Be(p)&&n.image.nextImages?(W(),K("div",XB,[V("div",{class:"arrow",onClick:O[0]||(O[0]=(...M)=>Be(d)&&Be(d)(...M))},UB),KB,V("div",{class:"arrow",onClick:O[1]||(O[1]=(...M)=>Be(c)&&Be(c)(...M))},ZB)])):Le("",!0)]),_:1},8,["image"])]),JB,V("div",QB,[V("div",{class:"option",onClick:O[2]||(O[2]=M=>C(0))},[V("span",null,[m[0]?(W(),K("i",eW)):(W(),K("i",tW))]),Qt(" "+Ne(I.$t("common.properties.image")),1)]),m[0]?Le("",!0):(W(),it(Mh,{key:0,image:n.image.image,properties:b.value,"visible-properties":I.visibleProperties,onPaint:O[3]||(O[3]=M=>a("paint",M)),onHover:O[4]||(O[4]=M=>a("hover")),onHoverEnd:O[5]||(O[5]=M=>a("hoverEnd"))},null,8,["image","properties","visible-properties"])),V("div",{class:"option",onClick:O[6]||(O[6]=M=>C(1))},[V("span",null,[m[1]?(W(),K("i",iW)):(W(),K("i",sW))]),Qt(" "+Ne(I.$t("common.properties.instance")),1)]),m[1]?Le("",!0):(W(),it(Mh,{key:1,image:n.image.image,properties:w.value,"visible-properties":I.visibleProperties,onPaint:O[7]||(O[7]=M=>a("paint",M)),onHover:O[8]||(O[8]=M=>a("hover")),onHoverEnd:O[9]||(O[9]=M=>a("hoverEnd"))},null,8,["image","properties","visible-properties"])),V("div",{class:"option",onClick:O[10]||(O[10]=M=>C(2))},[V("span",null,[m[2]?(W(),K("i",nW)):(W(),K("i",rW))]),Qt(" "+Ne(I.$t("common.properties.panoptic")),1)]),m[2]?Le("",!0):(W(),it(Mh,{key:2,image:n.image.image,properties:_.value,"visible-properties":I.visibleProperties,onPaint:O[11]||(O[11]=M=>a("paint",M)),onHover:O[12]||(O[12]=M=>a("hover")),onHoverEnd:O[13]||(O[13]=M=>a("hoverEnd"))},null,8,["image","properties","visible-properties"]))])],4))}});const oW=gt(aW,[["__scopeId","data-v-8203685c"]]),lW={class:"table table-sm"},cW={style:{"border-top":"1px solid var(--border-color)"}},uW={style:{"min-height":"26px"}},dW={class:"w-100"},hW={key:0},fW=["onClick"],pW={key:1},gW=["onClick"],mW={class:"text-warning"},vW=["onClick"],bW=Ke({__name:"StampForm",props:{values:Object,erase:Set},emits:["blur"],setup(e,{emit:t}){const i=yt(),n=e,a=we(()=>i.propertyList.filter(c=>c.id>=0)),l=we(()=>{const c={};return a.value.forEach(d=>{if(n.erase.has(d.id)){c[d.id]="text-warning";return}if(n.values[d.id]==null){c[d.id]="text-secondary";return}c[d.id]="text-success"}),c});return(c,d)=>(W(),K("table",lW,[V("b",null,Ne(c.$t("modals.tagging.title")),1),V("tbody",cW,[(W(!0),K(Qe,null,St(a.value,p=>(W(),K("tr",uW,[p.id>=0?(W(),K(Qe,{key:0},[V("td",{style:{"line-height":"20px"},class:_t([l.value[p.id],"text-nowrap"])},[Me(Ws,{type:p.type},null,8,["type"]),Qt(" "+Ne(p.name),1)],2),n.erase.has(p.id)?(W(),K(Qe,{key:1},[V("td",mW,Ne(c.$t("modals.tagging.erase")),1),V("td",null,[Me(Ti,{message:"modals.tagging.cancel_tooltip"},{default:rt(()=>[V("i",{class:"bi bi-arrow-counterclockwise base-btn",onClick:m=>e.erase.delete(p.id)},null,8,vW)]),_:2},1024)])],64)):(W(),K(Qe,{key:0},[V("td",dW,[Be(ji)(p.type)?(W(),it(Fg,{key:0,property:p,modelValue:n.values[p.id],"onUpdate:modelValue":m=>n.values[p.id]=m,teleport:!0,"auto-focus":!0,ref_for:!0,ref:"inputElem"},null,8,["property","modelValue","onUpdate:modelValue"])):p.type==Be(He).string?(W(),it(x_,{key:1,modelValue:n.values[p.id],"onUpdate:modelValue":m=>n.values[p.id]=m,ref_for:!0,ref:"inputElem"},null,8,["modelValue","onUpdate:modelValue"])):p.type==Be(He).url?(W(),it(__,{key:2,modelValue:n.values[p.id],"onUpdate:modelValue":m=>n.values[p.id]=m,"url-mode":!0,ref_for:!0,ref:"inputElem"},null,8,["modelValue","onUpdate:modelValue"])):p.type==Be(He).checkbox?(W(),it(zg,{key:3,modelValue:n.values[p.id],"onUpdate:modelValue":m=>n.values[p.id]=m},null,8,["modelValue","onUpdate:modelValue"])):p.type==Be(He).color?(W(),it(Rg,{key:4,modelValue:n.values[p.id],"onUpdate:modelValue":m=>n.values[p.id]=m,ref_for:!0,ref:"inputElem","min-height":22},null,8,["modelValue","onUpdate:modelValue"])):p.type==Be(He).date?(W(),it(Hg,{key:5,modelValue:n.values[p.id],"onUpdate:modelValue":m=>n.values[p.id]=m},null,8,["modelValue","onUpdate:modelValue"])):p.type==Be(He).number?(W(),it(Vg,{key:6,modelValue:n.values[p.id],"onUpdate:modelValue":m=>n.values[p.id]=m,height:30},null,8,["modelValue","onUpdate:modelValue"])):Le("",!0)]),n.values[p.id]==null?(W(),K("td",hW,[Me(Ti,{message:"modals.tagging.erase_tooltip"},{default:rt(()=>[V("i",{class:"bi bi-trash base-btn",onClick:m=>e.erase.add(p.id)},null,8,fW)]),_:2},1024)])):(W(),K("td",pW,[Me(Ti,{message:"modals.tagging.erase_tooltip"},{default:rt(()=>[V("i",{class:"bi bi-arrow-counterclockwise base-btn",onClick:m=>delete n.values[p.id]},null,8,gW)]),_:2},1024)]))],64))],64)):Le("",!0)]))),256))])]))}}),yW={key:0},xW={key:1},wW={class:"m-2",style:{width:"300px"}},_W={class:"d-flex pe-2 mb-2"},SW=V("div",{class:"flex-grow-1"},null,-1),C_=Ke({__name:"StampDropdown",props:{images:{},noBorder:{type:Boolean},showNumber:{type:Boolean}},setup(e){const t=yt(),i=Ii(),n=e,a=Wt({}),l=Wt(new Set),c=ye(null);function d(){var b;p(),(b=c.value)==null||b.hide()}function p(){Object.keys(a).forEach(b=>delete a[b]),l.clear(),At(()=>{c.value&&c.value.focus()})}async function m(){l.forEach(_=>a[_]=void 0);const b=[],w=[];for(let _ of Object.keys(a).map(Number))for(let C of n.images){let I=a[_];if(t.properties[_].type==He.multi_tags&&C.properties[_]&&I&&(I=Array.from(new Set([...C.properties[_],...I]))),t.properties[_].mode==ki.id){const O={propertyId:_,instanceId:C.id,value:I};b.push(O)}else{const O={propertyId:_,sha1:C.sha1,value:I};w.push(O)}}await t.setPropertyValues(b,w),i.getTabManager().collection.groupManager.clearSelection(),d()}return(b,w)=>(W(),it(Us,{ref_key:"dropdownElem",ref:c,teleport:!0},{button:rt(()=>[V("div",{class:_t(n.noBorder?"":"button"),style:{"font-size":"10px",color:"rgb(33, 37, 41)","padding-bottom":"0.5px","padding-top":"0.5px"}},[n.showNumber?(W(),K("span",yW,Ne(b.$t("main.menu.tag_selection")+" "+n.images.length+" "+b.$t("main.menu.selected_images")),1)):(W(),K("span",xW,Ne(b.$t("modals.tagging.button")),1))],2)]),popup:rt(()=>[V("div",{onKeydown:w[0]||(w[0]=ei(Jt(()=>{},["prevent","stop"]),["escape"]))},[V("div",wW,[Me(bW,{values:a,erase:l,onBlur:c.value.focus},null,8,["values","erase","onBlur"])]),V("div",_W,[SW,V("button",{class:"me-2",onClick:d},Ne(b.$t("modals.tagging.cancel")),1),V("button",{class:"me-2",onClick:p},Ne(b.$t("modals.tagging.clear")),1),V("button",{class:"me",onClick:m},Ne(b.$t("modals.tagging.apply")),1)])],32)]),_:1},512))}}),EW=e=>(ii("data-v-cc444b47"),e=e(),si(),e),CW={class:"d-flex border rounded p-0 m-0"},AW=EW(()=>V("i",{class:"bi bi-x"},null,-1)),kW=[AW],TW={class:"selection-counter"},IW=Ke({__name:"SelectionStamp",props:{selectedImagesIds:Array},emits:["remove:selected"],setup(e,{emit:t}){const i=yt(),n=e,a=we(()=>n.selectedImagesIds.map(c=>i.instances[c])),l=t;return(c,d)=>(W(),K("div",CW,[Me(Ti,{message:"main.menu.remove_selection_tooltip"},{default:rt(()=>[V("div",{class:"btn-cls",onClick:d[0]||(d[0]=p=>l("remove:selected"))},kW)]),_:1}),V("div",TW,[Me(C_,{images:a.value,"no-border":!0,"show-number":!0},null,8,["images"])])]))}});const OW=gt(IW,[["__scopeId","data-v-cc444b47"]]),PW=["onClick"],LW=["onClick"],MW=Ke({__name:"SelectCircle",props:{modelValue:Boolean,lightMode:Boolean,small:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,n=ye(!1),a=t,l=we(()=>{let d=i.small?"small-offset":"offset";return i.modelValue?[d,"text-primary"]:n.value&&i.lightMode?[d,"light-hover"]:n.value?[d,"text-secondary"]:[d,"icon-idle"]});function c(){i.modelValue?a("update:modelValue",!1):a("update:modelValue",!0)}return(d,p)=>(W(),K("div",{class:_t(["btn-icon",l.value]),onMouseenter:p[0]||(p[0]=m=>n.value=!0),onMouseleave:p[1]||(p[1]=m=>n.value=!1)},[i.modelValue?(W(),K("i",{key:1,class:"bi bi-check-circle-fill",onClick:Jt(c,["stop"])},null,8,LW)):(W(),K("i",{key:0,class:"bi bi-check-circle-fill",onClick:Jt(c,["stop"])},null,8,PW))],34))}});const dc=gt(MW,[["__scopeId","data-v-2464cbc9"]]),NW=Ke({__name:"RowTextInput",props:{modelValue:{},width:{},height:{},teleport:{type:Boolean},offset:{default:-24}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,n=t,a=ye(null),l=ye(0),c=ye(void 0);function d(){c.value=i.modelValue}function p(){var w=document.createElement("canvas"),_=w.getContext("2d");_.font="12px Arial";var C=_.measureText(i.modelValue).width;l.value=200,C>500&&(l.value=200),C>800&&(l.value=300),C>1e3&&(l.value=400);let I=a.value;I&&I.offsetWidth>l.value&&(l.value=I.offsetWidth),d()}function m(){let w=c.value;w==""&&(w=void 0),console.log("emit",w),n("update:modelValue",w)}function b(){d()}return xt(d),nt(()=>i.modelValue,d),(w,_)=>(W(),it(Us,{offset:i.offset,"no-shadow":!0,teleport:i.teleport,onShow:p,onHide:m,placement:"bottom-start"},{button:rt(()=>[V("div",{ref_key:"previewElem",ref:a,style:pt({width:i.width+"px"})},[Me(y_,{text:i.modelValue,style:{cursor:"pointer","font-size":"14px"}},null,8,["text"])],4)]),popup:rt(({hide:C})=>[V("div",{class:"bg-white",style:pt([{"font-size":"14px",position:"relative",top:"0.5px",left:"-2px"},{width:l.value+"px"}])},[Me(uc,{modelValue:c.value,"onUpdate:modelValue":_[0]||(_[0]=I=>c.value=I),"auto-focus":!0,"min-height":26,onCancel:I=>{b(),C()},onSubmit:I=>C(),onBlur:C},null,8,["modelValue","onCancel","onSubmit","onBlur"])],4)]),_:1},8,["offset","teleport"]))}}),RW=Ke({__name:"RowUrlInput",props:{modelValue:{},width:{},height:{},teleport:{type:Boolean},offset:{default:-24}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,n=t,a=ye(null),l=ye(0),c=ye(void 0);function d(){c.value=i.modelValue}function p(){var _=document.createElement("canvas"),C=_.getContext("2d");C.font="12px Arial";var I=C.measureText(i.modelValue).width;l.value=200,I>500&&(l.value=200),I>800&&(l.value=300),I>1e3&&(l.value=400);let O=a.value;O&&O.offsetWidth>l.value&&(l.value=O.offsetWidth)}function m(){n("update:modelValue",c.value)}function b(){d()}function w(_){vi.ctrl&&(_.preventDefault(),_.stopPropagation())}return xt(d),nt(()=>i.modelValue,d),(_,C)=>(W(),it(Us,{offset:i.offset,"no-shadow":!0,teleport:i.teleport,onShow:p,onHide:m,placement:"bottom-start"},{button:rt(()=>[V("div",{ref_key:"previewElem",ref:a,style:pt([{},{width:i.width+"px"}])},[Me(w_,{url:i.modelValue,class:"row-preview",style:{cursor:"pointer","font-size":"14px"},onClick:w},null,8,["url"])],4)]),popup:rt(({hide:I})=>[V("div",{class:"bg-white",style:pt([{"font-size":"14px",position:"relative",top:"0.5px",left:"0px"},{width:l.value+"px"}])},[Me(uc,{modelValue:c.value,"onUpdate:modelValue":C[0]||(C[0]=O=>c.value=O),"auto-focus":!0,"min-height":26,onCancel:O=>{b(),I()},onSubmit:O=>I(),onBlur:I,"url-mode":!0},null,8,["modelValue","onCancel","onSubmit","onBlur"])],4)]),_:1},8,["offset","teleport"]))}});const DW=gt(RW,[["__scopeId","data-v-9379cb8e"]]),$W={class:"d-flex text-nowrap overflow-hidden",style:{height:"26px","line-height":"26px","font-size":"14px"}},FW={key:8,class:"d-flex flex-row overflow-hidden text-nowrap"},zW={key:0},HW={key:1},VW=Ke({__name:"TreePropertyInput",props:{instance:{},property:{},width:{}},emits:["resize","update:selected"],setup(e,{emit:t}){const i=yt(),n=e,a=we(()=>(n.width??100)-22);return(l,c)=>(W(),it(S_,{instance:n.instance,"property-id":n.property.id},{default:rt(({value:d,set:p})=>[V("div",$W,[n.property.type!=Be(He).checkbox&&l.property.id>0?(W(),it(Ws,{key:0,type:l.property.type,style:{"margin-right":"2px"}},null,8,["type"])):Le("",!0),Be(ji)(l.property.type)?(W(),it(Fg,{key:1,"model-value":d,"onUpdate:modelValue":p,"no-wrap":!0,"auto-focus":!0,"can-create":!0,"can-customize":!0,property:n.property,teleport:!0,width:a.value},null,8,["model-value","onUpdate:modelValue","property","width"])):n.property.type==Be(He).color?(W(),it(Rg,{key:2,"model-value":d,"onUpdate:modelValue":p,width:a.value,rounded:!0,"min-height":20,teleport:!0,offset:4},null,8,["model-value","onUpdate:modelValue","width"])):n.property.type==Be(He).number?(W(),it(Vg,{key:3,"model-value":d,"onUpdate:modelValue":p,width:a.value,height:26,"input-offset":3},null,8,["model-value","onUpdate:modelValue","width"])):n.property.type==Be(He).string?(W(),it(NW,{key:4,"model-value":d,"onUpdate:modelValue":p,width:a.value,teleport:!0,style:{height:"25px"}},null,8,["model-value","onUpdate:modelValue","width"])):n.property.type==Be(He).url?(W(),it(DW,{key:5,"model-value":d,"onUpdate:modelValue":p,width:a.value,teleport:!0},null,8,["model-value","onUpdate:modelValue","width"])):n.property.type==Be(He).checkbox?(W(),it(zg,{key:6,"model-value":d,"onUpdate:modelValue":p,label:n.property.name,width:a.value},null,8,["model-value","onUpdate:modelValue","label","width"])):n.property.type==Be(He).date?(W(),it(Hg,{key:7,"model-value":d,teleport:!0,"onUpdate:modelValue":p,width:a.value},null,8,["model-value","onUpdate:modelValue","width"])):(W(),K("div",FW,[Me(Ws,{type:l.property.type,style:{"margin-right":"3px"}},null,8,["type"]),l.property.type==Be(He)._folders?(W(),K("span",zW,[Me(os,{name:Be(i).folders[Be(i).instances[n.instance.id].properties[n.property.id]].name,color:-1},null,8,["name"])])):(W(),K("span",HW,Ne(Be(i).instances[n.instance.id].properties[n.property.id]),1))]))])]),_:1},8,["instance","property-id"]))}}),BW={key:0,class:"simi-ratio"},WW={class:"image-count"},YW={key:2,class:"prop-container"},jW={key:0,class:"custom-hr ms-2 me-2"},XW={key:3,class:"w-100 h-100",style:{position:"absolute",top:"0",left:"0","background-color":"rgba(0, 0, 255, 0.127)"}},GW=Ke({__name:"Image",props:{image:Ss,score:Number,size:{type:Number,default:100},index:Number,groupId:Number,hideProperties:Boolean,constraintWidth:Boolean,noBorder:Boolean,properties:Array,selected:Boolean,selectedPreview:Boolean},emits:["resize","update:selected"],setup(e,{emit:t}){const i=ls(),n=yt(),a=e,l=t,c=we(()=>Object.assign({},n.instances[a.image.image.id])),d=we(()=>c.value),p=ye(null),m=ye(!1),b=we(()=>{let O=d.value.width/d.value.height,M=a.size,N=M*O;return O>2&&(N=a.size*2,M=N/O),{width:N,height:M}}),w=we(()=>`width: ${Math.max(b.value.width,a.size)-2}px; height: ${a.size}px;`);we(()=>`width: ${b.value.width-2}px; height: ${b.value.height}px;`);const _=we(()=>Math.max(Number(a.size),b.value.width)),C=we(()=>`width: ${Math.max(Number(a.size),b.value.width)}px;`),I=Ji("hideImg");return(O,M)=>(W(),K("div",{class:_t(["full-container",a.noBorder?"":"img-border"]),style:pt(C.value),ref_key:"containerElem",ref:p},[Be(I)?Le("",!0):(W(),it(Mg,{key:0,image:a.image.image},{default:rt(()=>[V("div",{style:pt(w.value),class:"img-container",onClick:M[1]||(M[1]=N=>Be(i).showModal(Be(Hi).IMAGE,a.image)),onMouseenter:M[2]||(M[2]=N=>m.value=!0),onMouseleave:M[3]||(M[3]=N=>m.value=!1)},[a.score!=null?(W(),K("div",BW,Ne("."+Math.floor(a.score*100)),1)):Le("",!0),Me(cc,{image:a.image.image,width:Math.max(b.value.width,a.size)-2,height:a.size,style:{position:"absolute",top:"0"}},null,8,["image","width","height"]),m.value||a.selected?(W(),K("div",{key:1,class:"w-100 box-shadow",style:pt(w.value)},null,4)):Le("",!0),m.value||a.selected?(W(),it(dc,{key:2,"model-value":a.selected,"onUpdate:modelValue":M[0]||(M[0]=N=>l("update:selected",N)),class:"select","light-mode":!0},null,8,["model-value"])):Le("",!0)],36)]),_:1},8,["image"])),a.image.sha1Group&&a.image.sha1Group.images.length>1?(W(),it(Ti,{key:1,message:"main.view.instances_tooltip",click:!1},{default:rt(()=>[V("div",WW,Ne(a.image.sha1Group.images.length),1)]),_:1})):Le("",!0),a.properties.length&&!a.hideProperties?(W(),K("div",YW,[(W(!0),K(Qe,null,St(a.properties,(N,k)=>(W(),K("div",null,[k>0?(W(),K("div",jW)):Le("",!0),Me(VW,{property:N,instance:c.value,width:_.value},null,8,["property","instance","width"])]))),256))])):Le("",!0),a.selectedPreview?(W(),K("div",XW)):Le("",!0)],6))}});const A_=gt(GW,[["__scopeId","data-v-ddf3404b"]]),UW={class:"d-flex flex-row"},KW=["onClick","onMouseenter"],qW=Ke({__name:"ImageLine",props:{imageSize:{},inputIndex:{},item:{},parentIds:{},hoverBorder:{},index:{},properties:{},selectedImages:{},preview:{}},emits:["hover","unhover","scroll","update","update:selected-image"],setup(e,{emit:t}){const i=e,n=t,a=we(()=>{const c={};return i.item.data.forEach(d=>c[d.image.id]=i.selectedImages.value[d.image.id]),c}),l=we(()=>{const c={};return i.item.data.forEach(d=>{var p;return c[d.image.id]=(p=i.preview)==null?void 0:p.value[d.image.id]}),c});return(c,d)=>(W(),K("div",UW,[(W(!0),K(Qe,null,St(i.parentIds,p=>(W(),K("div",{style:{cursor:"pointer"},class:"ps-2",onClick:m=>n("scroll",p),onMouseenter:m=>n("hover",p),onMouseleave:d[0]||(d[0]=m=>n("unhover"))},[V("div",{class:_t(["image-line",i.hoverBorder==p?"active":""])},null,2)],40,KW))),256)),(W(!0),K(Qe,null,St(i.item.data,(p,m)=>(W(),it(A_,{image:p,index:i.inputIndex+m,groupId:c.item.groupId,size:i.imageSize,properties:i.properties,selected:a.value[p.image.id],selectedPreview:l.value[p.image.id],"onUpdate:selected":b=>n("update:selected-image",{id:p.image.id,value:b}),class:"me-2 mb-2"},null,8,["image","index","groupId","size","properties","selected","selectedPreview","onUpdate:selected"]))),256))]))}});const ZW=gt(qW,[["__scopeId","data-v-7b8e449a"]]),JW={class:"d-flex flex-row"},QW=["onClick","onMouseenter"],eY=Ke({__name:"PileLine",props:{imageSize:{},inputIndex:{},item:{},parentIds:{},hoverBorder:{},index:{},properties:{},selectedImages:{},sha1Scores:{},preview:{}},emits:["hover","unhover","scroll","update","update:selected-image"],setup(e,{emit:t}){const i=e,n=t,a=we(()=>{const c={};return i.item.data.forEach(d=>c[d.image.id]=i.selectedImages.value[d.image.id]),c}),l=we(()=>{const c={};return i.item.data.forEach(d=>{i.preview&&(c[d.image.id]=i.preview[d.image.id])}),c});return(c,d)=>(W(),K("div",JW,[(W(!0),K(Qe,null,St(i.parentIds,p=>(W(),K("div",{style:{cursor:"pointer"},class:"ps-2",onClick:m=>n("scroll",p),onMouseenter:m=>n("hover",p),onMouseleave:d[0]||(d[0]=m=>n("unhover"))},[V("div",{class:_t(["image-line",i.hoverBorder==p?"active":""])},null,2)],40,QW))),256)),(W(!0),K(Qe,null,St(i.item.data,(p,m)=>(W(),it(A_,{image:p,index:i.inputIndex+m,groupId:c.item.groupId,size:i.imageSize,properties:i.properties,selected:a.value[p.image.id],selectedPreview:l.value[p.image.id],score:i.sha1Scores?i.sha1Scores[p.image.sha1]:void 0,"onUpdate:selected":b=>n("update:selected-image",{id:p.image.id,value:b}),class:"me-2 mb-2"},null,8,["image","index","groupId","size","properties","selected","selectedPreview","score","onUpdate:selected"]))),256))]))}});const tY=gt(eY,[["__scopeId","data-v-dc3f66bc"]]),iY=e=>(ii("data-v-1f962078"),e=e(),si(),e),sY={key:0,class:"d-flex text-nowrap p-0 m-0"},nY={class:"me-2"},rY={key:1},aY={key:2},oY=iY(()=>V("span",{class:"ms-1 me-1"},"to",-1)),lY={key:3},cY={key:4},uY={key:0},dY={key:1,class:"text-secondary"},hY={key:5},fY=Ke({__name:"PropertyValue",props:{value:Object},setup(e){const t=yt(),i=e,n=we(()=>t.properties[i.value.propertyId]),a=we(()=>n.value.type),l=we(()=>a.value==He.tag||a.value==He.multi_tags),c=we(()=>{if(i.value.value==null)return"white";let b=Number(i.value.value);return isNaN(b)||b>12?"gray":Mr[b].color}),d=we(()=>{if(n.value.type!=He.date)return;let b=i.value.unit;const w=i.value.value;ti.Year,ti.Month,ti.Day,ti.Hour,ti.Minute;let _="";return _+=w.getUTCFullYear(),b==ti.Year||(_+="/",_+=lr(w.getUTCMonth()+1),b==ti.Month)||(_+="/",_+=lr(w.getUTCDate()),b==ti.Week)||b==ti.Day?_:(_+=" ",_+=lr(w.getUTCHours()),b==ti.Hour?_+"h":(_+=":",_+=lr(w.getUTCMinutes()),_))}),p=we(()=>{if(n.value.type!=He.date||!i.value.valueEnd)return;const b=i.value.valueEnd;ti.Year,ti.Month,ti.Day,ti.Hour,ti.Minute;let w="";return w+=b.getUTCFullYear(),i.value.unit==ti.Year||(w+="/",w+=lr(b.getUTCMonth()+1),i.value.unit==ti.Month)||(w+="/",w+=lr(b.getUTCDate()),i.value.unit==ti.Week)||i.value.unit==ti.Day?w:(w+=" ",w+=lr(b.getUTCHours()),i.value.unit==ti.Hour?w+"h":(w+=":",w+=lr(b.getUTCMinutes()),w))});function m(b){return b==null?[{value:"_indéfini",color:-1}]:[t.properties[i.value.propertyId].tags[b]]}return(b,w)=>n.value?(W(),K("div",sY,[V("div",nY,Ne(n.value.name)+": ",1),n.value.type==Be(He).color?(W(),K("div",{key:0,style:pt({backgroundColor:c.value}),class:"color-holder"},null,4)):n.value.type==Be(He)._folders?(W(),K("div",rY,[Me(os,{name:Be(t).folders[i.value.value].name,color:-1},null,8,["name"])])):n.value.type==Be(He).date&&i.value.value?(W(),K("span",aY,[Qt(Ne(d.value)+" ",1),oY,Qt(" "+Ne(p.value),1)])):n.value.type==Be(He).date?(W(),K("span",lY," undefined ")):l.value?(W(),K("span",hY,[(W(!0),K(Qe,null,St(m(i.value.value),_=>(W(),K("span",null,[Me(os,{id:_.id},null,8,["id"])]))),256))])):(W(),K("span",cY,[i.value.value!=null?(W(),K("span",uY,Ne(i.value.value),1)):(W(),K("span",dY,"indéfini"))]))])):Le("",!0)}});const Bg=gt(fY,[["__scopeId","data-v-1f962078"]]),pY={class:"m-0 p-0"},gY=Ke({__name:"ClusterBadge",props:{value:{required:!0,type:Number}},setup(e){const t=e,i=we(()=>t.value<21?9:t.value<56?10:11);return(n,a)=>(W(),K("div",{class:"badge tag-badge",style:pt("background: "+Be(Mr)[i.value].color)},[V("span",pY,Ne(t.value),1)],4))}});const mY=gt(gY,[["__scopeId","data-v-b3052979"]]),vY={class:"mb-1 ps-2 pe-2"},bY=["onClick"],yY=Ke({__name:"PropertySelection",props:{ignoreIds:Array},emits:["select"],setup(e,{emit:t}){const i=yt(),n=e,a=t,l=ye(null),c=ye(""),d=we(()=>{let p=i.propertyList;return n.ignoreIds&&(p=p.filter(m=>!n.ignoreIds.includes(m.id))),p.filter(m=>m.name.toLocaleLowerCase().includes(c.value.toLocaleLowerCase()))});return xt(()=>l.value.focus()),(p,m)=>(W(),K("div",null,[V("div",vY,[Bt(V("input",{class:"w-100 bg-light",type:"text",ref_key:"searchElem",ref:l,"onUpdate:modelValue":m[0]||(m[0]=b=>c.value=b)},null,512),[[ui,c.value]])]),(W(!0),K(Qe,null,St(d.value,b=>(W(),K("div",{class:"p-1 base-hover text-black",style:{cursor:"pointer"},onClick:w=>a("select",b.id)},[Me(Ws,{type:b.type,class:"me-2"},null,8,["type"]),V("a",null,Ne(b.name),1)],8,bY))),256))]))}}),xY={class:"m-0 bb",style:{}},wY={class:"p-2"},_Y=Ke({__name:"PropertyDropdown",props:{modelValue:Object},emits:["update:modelValue"],setup(e,{emit:t}){const i=yt(),n=e,a=t,l=ye(null);function c(d){l.value.hide(),a("update:modelValue",i.properties[d])}return(d,p)=>(W(),it(Us,{ref_key:"dropdownElem",ref:l,"auto-focus":!1},{button:rt(()=>[V("div",xY,[Me(Ws,{type:n.modelValue.type},null,8,["type"]),Qt(" "+Ne(n.modelValue.name),1)])]),popup:rt(()=>[V("div",wY,[Me(yY,{modelValue:n.modelValue,"onUpdate:modelValue":p[0]||(p[0]=m=>n.modelValue=m),onSelect:c,"ignore-ids":[Be(Pu).folders]},null,8,["modelValue","ignore-ids"])])]),_:1},512))}}),SY={class:"d-flex"},EY={key:0,class:"me-1"},CY={key:1},AY={key:2},kY={key:3},TY={key:4},IY={key:5},OY={key:0,class:"disabled rounded ps-1 pe-1"},PY=Ke({__name:"ParamInput",props:{modelValue:{},type:{},label:{},desc:{}},emits:["update:modelValue"],setup(e,{expose:t,emit:i}){Ii();const n=yt();ls();const a=e;t({focus:m});const l=i,c=ye(null),d=ye(a.modelValue),p=ye(n.propertyList[0]);function m(){c.value&&c.value.focus()}return nt(()=>a.modelValue,()=>d.value=a.modelValue),nt(d,()=>{if(a.type=="property"&&d.value in n.properties&&(p.value=n.properties[d.value]),d.value!=a.modelValue){let b=d.value;(d.value==""||d.value==!1)&&(b=void 0),l("update:modelValue",b)}}),xt(()=>{var b;a.type=="property"&&a.modelValue==null&&(d.value=(b=n.propertyList[0])==null?void 0:b.id),a.type=="property"&&d.value in n.properties&&(p.value=n.properties[d.value])}),(b,w)=>(W(),it(Ti,{message:a.desc},{default:rt(()=>[V("div",SY,[a.label?(W(),K("div",EY,Ne(a.label),1)):Le("",!0),a.type=="str"?(W(),K("div",CY,[Bt(V("input",{type:"text","onUpdate:modelValue":w[0]||(w[0]=_=>d.value=_),ref_key:"elem",ref:c},null,512),[[ui,d.value]])])):Le("",!0),a.type=="int"?(W(),K("div",AY,[Bt(V("input",{type:"number",step:"1","onUpdate:modelValue":w[1]||(w[1]=_=>d.value=_),ref_key:"elem",ref:c},null,512),[[ui,d.value]])])):Le("",!0),a.type=="float"?(W(),K("div",kY,[Bt(V("input",{type:"number","onUpdate:modelValue":w[2]||(w[2]=_=>d.value=_),ref_key:"elem",ref:c},null,512),[[ui,d.value]])])):Le("",!0),a.type=="bool"?(W(),K("div",TY,[Bt(V("input",{type:"checkbox","onUpdate:modelValue":w[3]||(w[3]=_=>d.value=_),ref_key:"elem",ref:c},null,512),[[Ds,d.value]])])):Le("",!0),a.type=="property"?(W(),K("div",IY,[Be(n).propertyList.length?(W(),it(_Y,{key:1,modelValue:p.value,"onUpdate:modelValue":[w[4]||(w[4]=_=>p.value=_),w[5]||(w[5]=_=>d.value=p.value.id)]},null,8,["modelValue"])):(W(),K("div",OY,"Create Property First"))])):Le("",!0)])]),_:1},8,["message"]))}});const k_=gt(PY,[["__scopeId","data-v-0a7168e1"]]),Vd=gd("actionStore",()=>{const e=Ii(),t=ye({}),i=Wt({similar:void 0,group:void 0,execute:void 0,import:void 0,export:void 0}),n=ye(0),a=we(()=>i.similar!=null);async function l(){if(!e.status.loaded||!Object.keys(e.actions).length)return;const _=await nu("param_defaults");let C=e.actions;if(_)for(let I in C){const O=C[I];for(let M of O.params)_[M.id]!==void 0&&(M.defaultValue=_[M.id])}t.value=C;for(let I in i)if(i[I]&&t.value[i[I]]==null&&i[I]==null,i[I]==null){const O=Cs(t.value).find(M=>M.hooks.includes(I));O&&(i[I]=O.id)}await w(),await m(),n.value+=1}async function c(_){return await Kw({function:i.similar,context:_})}function d(){t.value={},Object.keys(i).forEach(_=>i[_]=void 0)}async function p(){const _={};for(let C of Cs(t.value))for(let I of C.params)_[C.id+"."+I.name]=I.defaultValue;await zf("param_defaults",_)}async function m(){const _=await nu("param_defaults");if(_)for(let C of Cs(t.value))for(let I of C.params){const O=C.id+"."+I.name;O in _&&(I.defaultValue=_[O])}}async function b(_){Object.assign(i,_),await zf("default_actions",i)}async function w(){const _=await nu("default_actions");Object.assign(i,_)}return l(),nt(()=>e.status.loaded,_=>{_||d()}),nt(()=>e.actions,l),{index:t,defaultActions:i,updateDefaultParams:p,updateDefaultActions:b,hasSimilaryFunction:a,getSimilarImages:c,clear:d,update:n,load:l}}),LY=["value"],MY=["value"],NY=Ke({__name:"ActionSelect",props:{modelValue:{},action:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=Vd(),n=e,a=t,l=we(()=>Ls(i.index).filter(d=>d.hooks.includes(n.action)).map(d=>d.id));return(c,d)=>(W(),K("div",null,[V("select",{value:n.modelValue,onChange:d[0]||(d[0]=p=>a("update:modelValue",p.target.value))},[(W(!0),K(Qe,null,St(l.value,p=>(W(),K("option",{value:p},Ne(p),9,MY))),256))],40,LY)]))}}),hc=e=>(ii("data-v-38f61bf3"),e=e(),si(),e),RY={key:0,id:"group-action-button",class:"main d-flex flex-center"},DY={key:0,class:"spinner-border spinner-border-sm text-primary me-1",role:"status"},$Y=hc(()=>V("span",{class:"visually-hidden"},"Loading...",-1)),FY=[$Y],zY=hc(()=>V("div",{class:"sep ms-1"},null,-1)),HY=hc(()=>V("div",{class:"bb",style:{margin:"0 1px","font-size":"8px"}},[V("i",{class:"bi bi-chevron-down"})],-1)),VY={style:{"min-width":"200px"}},BY={class:"p-2 pb-1"},WY=["onSubmit"],YY={class:"mb-1"},jY={class:"d-flex flex-center mt-3",style:{height:"20px"}},XY={class:"me-1"},GY=hc(()=>V("div",{class:"text-secondary"},"as default",-1)),UY=hc(()=>V("div",{class:"flex-grow-1"},null,-1)),KY=["onClick"],qY=["onClick"],ZY=Ke({__name:"ActionButton",props:{action:{},images:{},propertyIds:{}},emits:["instances","groups"],setup(e,{emit:t}){const i=Ii(),n=yt(),a=Vd(),l=e,c=t,d=ye([]),p=we(()=>a.defaultActions[l.action]),m=ye(null),b=ye(!1),w=ye(!1);function _(){m.value=p.value,C()}function C(){const O=m.value;if(!O||!a.index[O])return;const M=a.index[O].params;d.value=JSON.parse(JSON.stringify(M))}async function I(){if(!w.value){w.value=!0;try{console.log(m.value,p.value);const O={};for(let P of d.value)P.type=="property"&&!P.defaultValue&&n.propertyList.length&&(P.defaultValue=n.propertyList[0].id),O[P.name]=P.defaultValue;const N={instanceIds:l.images.map(P=>P.id),propertyIds:l.propertyIds,uiInputs:O},k={function:m.value,context:N},D=await i.call(k);if(D.groups&&c("groups",D.groups),D.instances&&c("instances",D.instances),b.value){const P=m.value;for(let H in d.value)a.index[P].params[H].defaultValue=d.value[H].defaultValue;await a.updateDefaultParams();const $={};$[l.action]=m.value,await a.updateDefaultActions($)}}catch{}w.value=!1}}return xt(_),nt(()=>a.update,_),nt(p,_),nt(()=>l.action,_),nt(m,C),nt(i.actions,_),(O,M)=>m.value?(W(),K("div",RY,[w.value?(W(),K("div",DY,FY)):Le("",!0),Me(Ti,{message:"dropdown.action."+l.action},{default:rt(()=>[V("div",{onClick:I},Ne(O.$t("action."+l.action)),1)]),_:1},8,["message"]),zY,Me(Us,{teleport:!0},{button:rt(()=>[HY]),popup:rt(({hide:N})=>[V("div",VY,[Me(NY,{style:{"font-size":"10px",margin:"2px 2px 0 0"},class:"text-end",modelValue:m.value,"onUpdate:modelValue":M[0]||(M[0]=k=>m.value=k),action:l.action},null,8,["modelValue","action"]),V("div",BY,[V("form",{onSubmit:Jt(k=>{I(),N()},["prevent"]),class:""},[(W(!0),K(Qe,null,St(d.value,(k,D)=>(W(),K("div",YY,[Me(k_,{type:k.type,modelValue:k.defaultValue,"onUpdate:modelValue":P=>k.defaultValue=P,label:k.name,desc:k.description},null,8,["type","modelValue","onUpdate:modelValue","label","desc"])]))),256)),V("div",jY,[V("div",XY,[Bt(V("input",{type:"checkbox","onUpdate:modelValue":M[1]||(M[1]=k=>b.value=k),style:{position:"relative",top:"2px"}},null,512),[[Ds,b.value]])]),GY,UY,V("div",{class:"bb",onClick:N},"Cancel",8,KY),V("div",{class:"bb",onClick:k=>{I(),N()}},"Call",8,qY)])],40,WY)])])]),_:1})])):Le("",!0)}});const vy=gt(ZY,[["__scopeId","data-v-38f61bf3"]]),T_=e=>(ii("data-v-48481f12"),e=e(),si(),e),JY=["onClick","onMouseenter"],QY={key:0,class:"bi bi-caret-right-fill",style:{"margin-left":"1px"}},ej={key:1,class:"bi bi-caret-down-fill",style:{"margin-left":"1px"}},tj={class:"me-1"},ij={key:3,class:"align-self-center me-2"},sj={key:4,style:{"padding-top":"2.5px"},class:"me-2"},nj={class:"align-self-center me-2 text-secondary",style:{"font-size":"11px"}},rj={key:5,class:"align-self-center me-2 text-secondary",style:{"font-size":"11px"}},aj={key:6,class:"d-flex flex-row align-self-center me-2"},oj={key:0,class:"ms-2"},lj={key:1,class:"ms-2"},cj={class:"ms-2"},uj={key:2,class:"ms-2"},dj={style:{position:"relative",top:"1px"}},hj=T_(()=>V("i",{class:"bi bi-floppy2-fill",style:{"margin-right":"3px"}},null,-1)),fj={key:0,class:"bi bi-diagram-3"},pj={key:1,class:"spinner-border spinner-border-sm text-primary",role:"status"},gj=T_(()=>V("span",{class:"visually-hidden"},"Loading...",-1)),mj=[gj],vj=Ke({__name:"GroupLine",props:{item:Object,manager:Aa,parentIds:Array,hoverBorder:Number,data:Object,hideOptions:Boolean},emits:["hover","unhover","scroll","group:close","group:open","group:update","recommend","select"],setup(e,{emit:t}){const i=yt(),n=e,a=t,l=ye(!1),c=we(()=>n.item.data),d=we(()=>c.value.images),p=we(()=>{}),m=we(()=>c.value.children),b=we(()=>d.value.length>0),w=we(()=>Array.isArray(p.value)),_=we(()=>m.value.length>0&&c.value.subGroupType!=ps.Sha1),C=we(()=>c.value.meta.propertyValues.map(Ce=>i.properties[Ce.propertyId])),I=we(()=>c.value.meta.propertyValues),O=we(()=>c.value.view.closed),M=we(()=>n.item.data.children.some(Ce=>!Ce.view.closed)),N=we(()=>!n.item.data.images.some(Ce=>!n.manager.selectedImages.value[Ce.id])),k=we(()=>c.value.type==ps.All?"All":c.value.type==ps.Cluster?c.value.name??"Cluster "+c.value.parentIdx:"tmp name"),D=we(()=>c.value.meta.propertyValues.some(Ce=>Ce.value!=null)),P=we(()=>{const Ce=d.value.filter(re=>n.manager.selectedImages.value[re.id]);return Ce.length?Ce:d.value});async function $(Ce){await H([Ce])}async function H(Ce){const re={};for(let U of c.value.images)re[U.sha1]||(re[U.sha1]=[]),re[U.sha1].push(U);const Z=Ce.map((U,fe)=>{let he=[];U.ids?he=U.ids.map(ve=>i.instances[ve]):U.sha1s.forEach(ve=>re[ve].forEach(Re=>he.push(Re)));const ue=vl(i.getTmpId(),he,ps.Cluster);return ue.meta.score=Math.round(U.score),ue.name=U.name,ue.isSha1Group=!U.ids,ue});n.manager.addCustomGroups(c.value.id,Z,!0)}function ee(){n.manager.delCustomGroups(c.value.id,!0)}async function se(){a("recommend",n.item.data.id)}function Q(){O.value?(n.manager.toggleGroup(c.value.id,!1),a("group:open",n.item.id)):(n.manager.toggleGroup(c.value.id,!1),a("group:close",n.item.id))}function te(){m.value.forEach(Ce=>n.manager.closeGroup(Ce.id)),a("group:close",m.value.map(Ce=>Ce.id))}function ce(){m.value.forEach(Ce=>n.manager.openGroup(Ce.id)),a("group:open",m.value.map(Ce=>Ce.id))}const oe=ye(!1);async function de(){if(oe.value)return;oe.value=!0;const Ce=c.value.children,re=Uw(c.value)?ki.sha1:ki.id;console.log(re);const Z={id:-1,name:"Clustering",type:He.multi_tags,mode:re};let U=0;const fe=()=>(U-=1,U),he={},ue=be(Ce,fe,void 0,he,Z.id),ve=[];for(let et in he){const Ee=he[et];for(let Fe of Ee)ve.push({propertyId:Z.id,instanceId:Fe.id,value:[Number(et)]})}const Re={properties:[Z],tags:ue,instanceValues:ve};await i.sendCommit(Re),oe.value=!1}function be(Ce,re,Z,U,fe){const he=[],ue=(Z==null?void 0:Z.value)??"Clustering_"+Ce.length,ve=[];Z&&ve.push(Z.id);for(let Re=0;Re(W(),K("div",{class:"d-flex flex-row group-line m-0 p-0 overflow-hidden",onMouseenter:re[2]||(re[2]=Z=>l.value=!0),onMouseleave:re[3]||(re[3]=Z=>l.value=!1)},[(W(!0),K(Qe,null,St(n.parentIds,Z=>(W(),K("div",{style:{cursor:"pointer"},class:"ps-2",onClick:U=>Ce.$emit("scroll",Z),onMouseenter:U=>Ce.$emit("hover",Z),onMouseleave:re[0]||(re[0]=U=>Ce.$emit("unhover"))},[V("div",{class:_t(["group-line-border",n.hoverBorder==Z?"active":""])},null,2)],40,JY))),256)),V("div",{onClick:Q,class:"align-self-center me-2",style:{cursor:"pointer"}},[O.value?(W(),K("i",QY)):(W(),K("i",ej))]),V("div",tj,[Me(dc,{small:!0,"model-value":N.value,"onUpdate:modelValue":re[1]||(re[1]=Z=>a("select",c.value.id))},null,8,["model-value"])]),_.value&&M.value?(W(),K("div",{key:0,class:"text-secondary align-self-center bi bi-dash-square-dotted me-1",onClick:te})):Le("",!0),_.value&&!M.value?(W(),K("div",{key:1,class:"text-secondary align-self-center bi bi-plus-square-dotted me-1",onClick:ce})):Le("",!0),C.value.length?(W(),K("div",{key:2,style:pt("font-size: "+Math.max(17-1*n.item.depth,10)+"px;"),class:"align-self-center me-2"},[(W(!0),K(Qe,null,St(I.value,Z=>(W(),it(Bg,{value:Z},null,8,["value"]))),256))],4)):(W(),K("div",ij,[V("b",null,Ne(k.value),1)])),c.value.type==Be(ps).Cluster?(W(),K("div",sj,[Me(mY,{value:c.value.meta.score},null,8,["value"])])):Le("",!0),V("div",nj,Ne(c.value.images.length)+" Images ",1),m.value.length?(W(),K("div",rj,Ne(m.value.length)+" "+Ne(Ce.$t("main.view.groupes_nb")),1)):Le("",!0),!O.value&&!n.hideOptions?(W(),K("div",aj,[_.value?Le("",!0):(W(),K("div",oj,[Me(C_,{images:d.value},null,8,["images"])])),_.value?Le("",!0):(W(),K("div",lj,[Me(vy,{action:"group",images:c.value.images,style:{"font-size":"10px"},onGroups:H},null,8,["images"])])),V("div",cj,[Me(vy,{action:"execute",images:P.value,style:{"font-size":"10px"},onGroups:H,onInstances:$},null,8,["images"])]),(b.value||w.value)&&!_.value&&c.value.type!=Be(ps).Cluster&&D.value?(W(),K("div",uj,[Me(Ti,{message:"main.recommand.tooltip"},{default:rt(()=>[V("div",{class:"button",onClick:se},Ne(Ce.$t("main.recommand.title")),1)]),_:1})])):Le("",!0),c.value.subGroupType==Be(ps).Cluster?(W(),it(Ti,{key:3,class:"ms-2",message:"btn.close-clusters"},{default:rt(()=>[V("div",{class:"sbb cluster-close",onClick:ee},"X Clusters")]),_:1})):Le("",!0),c.value.subGroupType==Be(ps).Cluster?(W(),it(Ti,{key:4,class:"ms-2",message:"btn.save-clusters"},{default:rt(()=>[V("div",{class:"sbb cluster-close",onClick:de},[V("span",dj,[hj,oe.value?(W(),K("div",pj,mj)):(W(),K("i",fj))])])]),_:1})):Le("",!0)])):Le("",!0)],32))}});const bj=gt(vj,[["__scopeId","data-v-48481f12"]]);function yj(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var i=e.indexOf("Trident/");if(i>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var a=e.indexOf("Edge/");return a>0?parseInt(e.substring(a+5,e.indexOf(".",a)),10):-1}let uu;function Qf(){Qf.init||(Qf.init=!0,uu=yj()!==-1)}var Bd={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Qf(),At(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",uu&&this.$el.appendChild(e),e.data="about:blank",uu||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!uu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const xj=Ap();ii("data-v-b329ee4c");const wj={class:"resize-observer",tabindex:"-1"};si();const _j=xj((e,t,i,n,a,l)=>(W(),it("div",wj)));Bd.render=_j;Bd.__scopeId="data-v-b329ee4c";Bd.__file="src/components/ResizeObserver.vue";function du(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?du=function(t){return typeof t}:du=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},du(e)}function Sj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function by(e,t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,n=new Array(t);i2&&arguments[2]!==void 0?arguments[2]:{},n,a,l,c=function(p){for(var m=arguments.length,b=new Array(m>1?m-1:0),w=1;w1){var m=d.find(function(w){return w.isIntersecting});m&&(p=m)}if(a.callback){var b=p.isIntersecting&&p.intersectionRatio>=a.threshold;if(b===a.oldResult)return;a.oldResult=b,a.callback(b,p)}},this.options.intersection),At(function(){a.observer&&a.observer.observe(a.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function O_(e,t,i){var n=t.value;if(n)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var a=new Pj(e,n,i);e._vue_visibilityState=a}}function Lj(e,t,i){var n=t.value,a=t.oldValue;if(!I_(n,a)){var l=e._vue_visibilityState;if(!n){P_(e);return}l?l.createObserver(n,i):O_(e,{value:n},i)}}function P_(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Mj={beforeMount:O_,updated:Lj,unmounted:P_};function Nj(e){return{all:e=e||new Map,on:function(t,i){var n=e.get(t);n&&n.push(i)||e.set(t,[i])},off:function(t,i){var n=e.get(t);n&&n.splice(n.indexOf(i)>>>0,1)},emit:function(t,i){(e.get(t)||[]).slice().map(function(n){n(i)}),(e.get("*")||[]).slice().map(function(n){n(t,i)})}}}var L_={itemsLimit:1e3},Rj=/(auto|scroll)/;function M_(e,t){return e.parentNode===null?t:M_(e.parentNode,t.concat([e]))}var Nh=function(t,i){return getComputedStyle(t,null).getPropertyValue(i)},Dj=function(t){return Nh(t,"overflow")+Nh(t,"overflow-y")+Nh(t,"overflow-x")},$j=function(t){return Rj.test(Dj(t))};function xy(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=M_(e.parentNode,[]),i=0;i{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,i,n,a){const l=Io({id:zj++,index:t,used:!0,key:n,type:a}),c=yp({item:i,position:0,nr:l});return e.push(c),c},unuseView(e,t=!1){const i=this.$_unusedViews,n=e.nr.type;let a=i.get(n);a||(a=[],i.set(n,a)),a.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:i}=this.updateVisibleItems(!1,!0);i||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const i=this.itemSize,n=this.gridItems||1,a=this.itemSecondarySize||i,l=this.$_computedMinItemSize,c=this.typeField,d=this.simpleArray?null:this.keyField,p=this.items,m=p.length,b=this.sizes,w=this.$_views,_=this.$_unusedViews,C=this.pool,I=this.itemIndexByKey;let O,M,N,k,D;if(!m)O=M=k=D=N=0;else if(this.$_prerender)O=k=0,M=D=Math.min(this.prerender,p.length),N=null;else{const te=this.getScroll();if(t){let de=te.start-this.$_lastUpdateScrollPosition;if(de<0&&(de=-de),i===null&&dete.start&&(Ce=re),re=~~((be+Ce)/2);while(re!==Z);for(re<0&&(re=0),O=re,N=b[m-1].accumulator,M=re;Mm&&(M=m)),k=O;km&&(M=m),k<0&&(k=0),D>m&&(D=m),N=Math.ceil(m/n)*i}}M-O>L_.itemsLimit&&this.itemsLimitError(),this.totalSize=N;let P;const $=O<=this.$_endIndex&&M>=this.$_startIndex;if($)for(let te=0,ce=C.length;te=M)&&this.unuseView(P));const H=$?null:new Map;let ee,se,Q;for(let te=O;te=oe.length)&&(P=this.addView(C,te,ee,ce,se),this.unuseView(P,!0),oe=_.get(se)),P=oe[Q],H.set(se,Q+1)),w.delete(P.nr.key),P.nr.used=!0,P.nr.index=te,P.nr.key=ce,P.nr.type=se,w.set(ce,P),de=!0;else if(!P.nr.used&&(P.nr.used=!0,de=!0,oe)){const be=oe.indexOf(P);be!==-1&&oe.splice(be,1)}P.item=ee,de&&(te===p.length-1&&this.$emit("scroll-end"),te===0&&this.$emit("scroll-start")),i===null?(P.position=b[te-1].accumulator,P.offset=0):(P.position=Math.floor(te/n)*i,P.offset=te%n*a)}return this.$_startIndex=O,this.$_endIndex=M,this.emitUpdate&&this.$emit("update",O,M,k,D),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:$}},getListenerTarget(){let e=xy(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,i=t==="vertical";let n;if(this.pageMode){const a=e.getBoundingClientRect(),l=i?a.height:a.width;let c=-(i?a.top:a.left),d=i?window.innerHeight:window.innerWidth;c<0&&(d+=c,c=0),c+d>l&&(d=l-c),n={start:c,end:c+d}}else i?n={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:n={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return n},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,ip?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const i=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/i)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let i,n,a;if(this.pageMode){const l=xy(this.$el),c=l.tagName==="HTML"?0:l[t.scroll],d=l.getBoundingClientRect(),m=this.$el.getBoundingClientRect()[t.start]-d[t.start];i=l,n=t.scroll,a=e+c+m}else i=this.$el,n=t.scroll,a=e;i[n]=a},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const Hj={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Vj={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Bj(e,t,i,n,a,l){const c=ga("ResizeObserver"),d=ux("observe-visibility");return Bt((W(),K("div",{class:_t(["vue-recycle-scroller",{ready:a.ready,"page-mode":i.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...p)=>l.handleScroll&&l.handleScroll(...p))},[e.$slots.before?(W(),K("div",Hj,[di(e.$slots,"before")],512)):Le("v-if",!0),(W(),it(qh(i.listTag),{ref:"wrapper",style:pt({[e.direction==="vertical"?"minHeight":"minWidth"]:a.totalSize+"px"}),class:_t(["vue-recycle-scroller__item-wrapper",i.listClass])},{default:rt(()=>[(W(!0),K(Qe,null,St(a.pool,p=>(W(),it(qh(i.itemTag),dd({key:p.nr.id,style:a.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${p.position}px) translate${e.direction==="vertical"?"X":"Y"}(${p.offset}px)`,width:i.gridItems?`${e.direction==="vertical"&&i.itemSecondarySize||i.itemSize}px`:void 0,height:i.gridItems?`${e.direction==="horizontal"&&i.itemSecondarySize||i.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[i.itemClass,{hover:!i.skipHover&&a.hoverKey===p.nr.key}]]},kx(i.skipHover?{}:{mouseenter:()=>{a.hoverKey=p.nr.key},mouseleave:()=>{a.hoverKey=null}})),{default:rt(()=>[di(e.$slots,"default",{item:p.item,index:p.nr.index,active:p.nr.used})]),_:2},1040,["style","class"]))),128)),di(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(W(),K("div",Vj,[di(e.$slots,"after")],512)):Le("v-if",!0),Me(c,{onNotify:l.handleResize},null,8,["onNotify"])],34)),[[d,l.handleVisibilityChange]])}_a.render=Bj;_a.__file="src/components/RecycleScroller.vue";var Vu={name:"DynamicScroller",components:{RecycleScroller:_a},provide(){return typeof ResizeObserver<"u"&&(this.$_resizeObserver=new ResizeObserver(e=>{requestAnimationFrame(()=>{if(Array.isArray(e)){for(const t of e)if(t.target&&t.target.$_vs_onResize){let i,n;if(t.borderBoxSize){const a=t.borderBoxSize[0];i=a.inlineSize,n=a.blockSize}else i=t.contentRect.width,n=t.contentRect.height;t.target.$_vs_onResize(t.target.$_vs_id,i,n)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...N_,minItemSize:{type:[Number,String],required:!0}},emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:R_,itemsWithSize(){const e=[],{items:t,keyField:i,simpleArray:n}=this,a=this.vscrollData.sizes,l=t.length;for(let c=0;c"u"&&!this.$_undefinedMap[p]&&(m=0),e.push({item:d,id:p,size:m})}return e}},watch:{items(){this.forceUpdate()},simpleArray:{handler(e){this.vscrollData.simpleArray=e},immediate:!0},direction(e){this.forceUpdate(!0)},itemsWithSize(e,t){const i=this.$el.scrollTop;let n=0,a=0;const l=Math.min(e.length,t.length);for(let d=0;d=i);d++)n+=t[d].size||this.minItemSize,a+=e[d].size||this.minItemSize;const c=a-n;c!==0&&(this.$el.scrollTop+=c)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=Nj()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible(){this.$_events.emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate(e=!1){(e||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit("vscroll:update",{force:!0})},scrollToItem(e){const t=this.$refs.scroller;t&&t.scrollToItem(e)},getItemSize(e,t=void 0){const i=this.simpleArray?t??this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[i]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;const e=this.$el;this.$nextTick(()=>{e.scrollTop=e.scrollHeight+5e3;const t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function Wj(e,t,i,n,a,l){const c=ga("RecycleScroller");return W(),it(c,dd({ref:"scroller",items:l.itemsWithSize,"min-item-size":i.minItemSize,direction:e.direction,"key-field":"id","list-tag":e.listTag,"item-tag":e.itemTag},e.$attrs,{onResize:l.onScrollerResize,onVisible:l.onScrollerVisible}),{default:rt(({item:d,index:p,active:m})=>[di(e.$slots,"default",pp(ud({item:d.item,index:p,active:m,itemWithSize:d})))]),before:rt(()=>[di(e.$slots,"before")]),after:rt(()=>[di(e.$slots,"after")]),empty:rt(()=>[di(e.$slots,"empty")]),_:3},16,["items","min-item-size","direction","list-tag","item-tag","onResize","onVisible"])}Vu.render=Wj;Vu.__file="src/components/DynamicScroller.vue";var sp={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},emits:["resize"],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(e,t){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){const i=this.vscrollData.sizes[t],n=this.vscrollData.sizes[e];i!=null&&i!==n&&this.applySize(i)}},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on("vscroll:update",this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off("vscroll:update",this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch("item",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||e||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){const t=this.$el.offsetWidth,i=this.$el.offsetHeight;this.applyWidthHeight(t,i)}this.$_pendingSizeUpdate=null})},applyWidthHeight(e,t){const i=~~(this.vscrollParent.direction==="vertical"?t:e);i&&this.size!==i&&this.applySize(i)},applySize(e){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=e,this.emitResize&&this.$emit("resize",this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,this.$_sizeObserved=!0))},unobserveSize(){this.vscrollResizeObserver&&this.$_sizeObserved&&(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,this.$_sizeObserved=!1)},onResize(e,t,i){this.id===e&&this.applyWidthHeight(t,i)}},render(){return zr(this.tag,this.$slots.default())}};sp.__file="src/components/DynamicScrollerItem.vue";function Yj(e,t){e.component("".concat(t,"recycle-scroller"),_a),e.component("".concat(t,"RecycleScroller"),_a),e.component("".concat(t,"dynamic-scroller"),Vu),e.component("".concat(t,"DynamicScroller"),Vu),e.component("".concat(t,"dynamic-scroller-item"),sp),e.component("".concat(t,"DynamicScrollerItem"),sp)}var jj={version:"2.0.0-beta.8",install:function(t,i){var n=Object.assign({},{installComponents:!0,componentsPrefix:""},i);for(var a in n)typeof n[a]<"u"&&(L_[a]=n[a]);n.installComponents&&Yj(t,n.componentsPrefix)}};const Xj={key:0},Gj={key:1},Uj={key:2},Kj={key:3},wy=20,qj=Ke({__name:"TreeScroller",props:{imageSize:{},height:{},width:{},groupManager:{},properties:{},hideOptions:{type:Boolean},hideGroup:{type:Boolean},sha1Scores:{},hideIfModal:{type:Boolean},preview:{}},emits:["recommend"],setup(e,{expose:t,emit:i}){const n=ls(),a=e,l=i,c={},d=ss([]),p=ye(-1),m=ye(null),b=we(()=>a.properties.length),w=we(()=>a.properties.filter(re=>re.mode==ki.sha1)),_=we(()=>w.value.length),C=we(()=>Math.ceil(a.width/a.imageSize)),I=we(()=>{let re=b.value,Z=0;return re>0&&(Z+=28),re>1&&(Z+=(re-1)*27),a.imageSize+Z+10}),O=we(()=>{let re=_.value,Z=0;return re>0&&(Z+=28),re>1&&(Z+=(re-1)*27),a.imageSize+Z+10}),M=we(()=>a.imageSize+40),N=we(()=>a.hideIfModal&&(n.openModalId==Hi.IMAGE||n.openModalId==Hi.TAG));Wn("hideImg",N),t({scrollTo:ee,computeLines:P,clear:k});function k(){d.value=[]}function D(re){const Z=[],U=re.group;return Z.push({id:U.id,type:"group",data:U,depth:U.depth,size:a.hideGroup?0:30,nbClusters:10}),U.children.length>0&&U.subGroupType!=ps.Sha1||U.view.closed||(U.subGroupType!=ps.Sha1?$(re,Z,a.imageSize,a.width-U.depth*wy,U):H(re,Z,a.imageSize,a.width-U.depth*wy,U)),Z}function P(){if(!a.groupManager.result.root)return;k();let re=a.groupManager.getGroupIterator();const Z=[];for(;re;){const U=re.group;c[U.id]=d.value.length,Z.push(...D(re)),re=re.nextGroup()}d.value=Z,m.value&&m.value.updateVisibleItems(!0)}function $(re,Z,U,fe,he,ue=!1){let ve=fe,Re=[],et=0,Ee=_e=>{Z.push({id:he.id+"|img-"+Z.length,type:"images",data:_e,groupId:he.id,depth:he.depth+1,size:ue?M.value:I.value,isSimilarities:ue})},Fe=Ss.fromGroupIterator(re);for(;Fe&&Fe.groupId==re.groupId&&Z.length;){let _e=Fe.image,Ie=U*_e.containerRatio+10;if(et+Ie0&&Ee(Re)}function H(re,Z,U,fe,he){let ue=fe,ve=[],Re=0,et=Fe=>{Z.push({id:he.id+"|img-"+Z.length,type:"piles",data:Fe,groupId:he.id,depth:he.depth+1,size:O.value})},Ee=Ss.fromGroupIterator(re);for(;Ee&&Ee.groupId==re.groupId;){Ee.sha1Group;let Fe=Ee.image,_e=U*Fe.containerRatio+10;if(Re+_e0&&et(ve)}function ee(re){const Z=c[re];m.value.scrollToItem(Z),At(()=>m.value.updateVisibleItems(!0))}function se(re){p.value=re}function Q(re){return re&&re.id!=null&&re.parent!=null?[...Q(re.parent),re.parent.id]:[]}function te(re){return[...Q(a.groupManager.result.index[re.groupId]),re.groupId]}function ce(re){P()}function oe(re){P()}function de(re,Z){const U=a.groupManager.findImageIterator(Z.groupId,re.id);a.groupManager.toggleImageIterator(U,vi.shift)}function be(re){const Z=a.groupManager.getGroupIterator(re);a.groupManager.toggleGroupIterator(Z,vi.shift)}xt(P),nt(()=>a.imageSize,()=>{At(P)}),nt(b,()=>{let re=m.value.getScroll().start,Z=m.value.totalSize,U=re/Z;const fe=[];d.value.forEach(he=>{he.type=="images"?he.size=I.value:he.type=="piles"&&(he.size=O.value),fe.push(he)}),d.value=fe,At(()=>{let he=m.value.totalSize*U;m.value.scrollToPosition(he),m.value.updateVisibleItems(!0),At(()=>{m.value.scrollToPosition(he-10),At(()=>m.value.updateVisibleItems(!0))}),At(()=>m.value.updateVisibleItems(!0))})});let Ce;return nt(()=>a.width,()=>{clearTimeout(Ce),setTimeout(P,500)}),(re,Z)=>(W(),it(Be(_a),{items:d.value,"key-field":"id",ref_key:"scroller",ref:m,style:pt("height: "+a.height+"px;"),buffer:400,"min-item-size":0,emitUpdate:!1,onUpdate:Z[6]||(Z[6]=()=>{}),"page-mode":!1,prerender:0},{default:rt(({item:U,index:fe,active:he})=>[he?(W(),K(Qe,{key:0},[U.type=="group"&&!a.hideGroup?(W(),K("div",Xj,[Me(bj,{item:U,"hover-border":p.value,"parent-ids":Q(U.data),manager:a.groupManager,"hide-options":a.hideOptions,data:a.groupManager.result,onScroll:ee,onHover:se,onUnhover:Z[0]||(Z[0]=ue=>p.value=-1),"onGroup:close":ce,"onGroup:open":oe,onSelect:be,onRecommend:Z[1]||(Z[1]=ue=>l("recommend",ue))},null,8,["item","hover-border","parent-ids","manager","hide-options","data"])])):U.type=="images"?(W(),K("div",Gj,[Me(ZW,{"image-size":a.imageSize+1,"input-index":fe*C.value,item:U,index:a.groupManager.result.index,"hover-border":p.value,"parent-ids":te(U),properties:a.properties,"selected-images":a.groupManager.selectedImages,"onUpdate:selectedImage":ue=>de(ue,U),onScroll:ee,onHover:se,onUnhover:Z[2]||(Z[2]=ue=>p.value=-1),onUpdate:Z[3]||(Z[3]=ue=>P())},null,8,["image-size","input-index","item","index","hover-border","parent-ids","properties","selected-images","onUpdate:selectedImage"])])):U.type=="piles"?(W(),K("div",Uj,[Me(tY,{"image-size":a.imageSize+1,"input-index":fe*C.value,item:U,index:a.groupManager.result.index,"hover-border":p.value,"parent-ids":te(U),properties:w.value,"selected-images":a.groupManager.selectedImages,"sha1-scores":a.sha1Scores,preview:a.preview,"onUpdate:selectedImage":ue=>de(ue,U),onScroll:ee,onHover:se,onUnhover:Z[4]||(Z[4]=ue=>p.value=-1),onUpdate:Z[5]||(Z[5]=ue=>P())},null,8,["image-size","input-index","item","index","hover-border","parent-ids","properties","selected-images","sha1-scores","preview","onUpdate:selectedImage"])])):U.type=="filler"?(W(),K("div",Kj,[V("div",{style:pt({height:U.size+"px"}),class:""},null,4)])):Le("",!0)],64)):Le("",!0)]),_:1},8,["items","style"]))}});const D_=gt(qj,[["__scopeId","data-v-7e9f5139"]]),Zj={class:"custom-slider"},Jj=["value","min","max","step"],Qj=Ke({__name:"RangeInput",props:{min:{default:0},max:{default:1},step:{default:.1},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,n=t,a=ye(i.modelValue),l=ye(null),c=(b,w,_)=>(b-w)/(_-w),d=b=>{l.value.style.setProperty("--ProgressPercent",`${b}%`)};fx(()=>{if(l.value){const b=c(a.value,l.value.min,l.value.max);d(b+0)}});function p(){n("update:modelValue",a.value)}let m=!1;return navigator.userAgent.indexOf("AppleWebKit")!=-1&&(m=!0),nt(()=>i.modelValue,()=>a.value=i.modelValue),(b,w)=>(W(),K("div",Zj,[V("input",{ref_key:"slider",ref:l,value:a.value,onInput:w[0]||(w[0]=({target:_})=>a.value=parseFloat(_.value)),type:"range",min:b.min,max:b.max,step:b.step,class:"slider",style:pt(Be(m)?"top:-5px":""),onChange:p},null,44,Jj)]))}});const eX=gt(Qj,[["__scopeId","data-v-43f680ec"]]),tX={key:0,class:"ps-2"},iX={key:1,class:"bg-white"},sX={class:"d-flex mb-1 flex-center",style:{height:"25px"}},nX=V("div",{class:"sep ms-1 me-1"},null,-1),rX={key:0,class:"bi bi-funnel-fill bb text-primary"},aX={key:1,class:"bi bi-funnel bb"},oX=V("div",{class:"sep ms-1 me-1"},null,-1),lX=V("div",{style:{"margin-left":"6px"},class:"me-3"},"Images Similaires",-1),cX={key:1,class:"ms-2 text-secondary"},uX=Ke({__name:"Similarity",props:{image:{},width:{},height:{},similarGroup:{},visibleProperties:{},preview:{}},setup(e){const t=Ii(),i=Vd(),n=yt(),a=e,l=a.similarGroup??new Aa;l.setSha1Mode(!0);const c=ye(!0),d=ye(null),p=ye(null),m=we(()=>t.getTabManager().state.similarityDist??.8),b=Wt({sha1Scores:{}}),w=we(()=>Object.keys(a.visibleProperties).map(M=>n.properties[M]));async function _(){if(!i.hasSimilaryFunction)return;const M=await i.getSimilarImages({instanceIds:[a.image.id]});if(!M.instances)throw new Error("No instances in ActionResult");let N=[];const k=M.instances.scores??[];if(M.instances.ids)for(let D in M.instances.ids){const P={id:M.instances.ids[D],score:k[D]};N.push(P)}else for(let D in M.instances.sha1s){const P=M.instances.sha1s[D];for(let $ of n.sha1Index[P]){const H={id:$.id,score:k[D]};N.push(H)}}p.value={matches:N},C()}function C(){if(!p.value)return;let M=p.value.matches.filter(k=>k.score>=m.value);if(c.value){const k=t.getTabManager(),D=new Set(k.collection.filterManager.result.images.map(P=>P.id));M=M.filter(P=>D.has(P.id))}const N=M.map(k=>n.instances[k.id]);b.sha1Scores={},M.forEach(k=>b.sha1Scores[n.instances[k.id].sha1]=k.score),N.sort((k,D)=>b.sha1Scores[D.sha1]-b.sha1Scores[k.sha1]),l.group(N,void 0,!0),d.value&&(d.value.computeLines(),d.value.scrollTo("0"))}function I(M){t.getTabManager().state.similarityDist=M,l.clearSelection()}function O(){c.value=!c.value}return xt(_),nt(()=>a.image,_),nt(m,C),nt(()=>a.width,C),nt(c,C),(M,N)=>Be(i).hasSimilaryFunction?(W(),K("div",iX,[V("div",sX,[Be(l).hasResult()?(W(),it(dc,{key:0,"model-value":Be(l).result.root.view.selected,"onUpdate:modelValue":N[0]||(N[0]=k=>Be(l).toggleAll()),style:{"margin-top":"-1px"}},null,8,["model-value"])):Le("",!0),nX,Me(Ti,{message:"modals.image.main_filter_tooltip"},{default:rt(()=>[V("div",{class:"text-secondary",onClick:O},[c.value?(W(),K("span",rX)):(W(),K("span",aX))])]),_:1}),oX,lX,Me(Ti,{message:"modals.image.similarity_filter_tooltip"},{default:rt(()=>[Me(eX,{class:"me-2",min:0,max:1,"model-value":m.value,"onUpdate:modelValue":I},null,8,["model-value"])]),_:1}),V("div",null,"min: "+Ne(m.value),1),Be(l).hasResult()?(W(),K("div",cX," ("+Ne(Be(l).result.root.children.length)+" images) ",1)):Le("",!0)]),Me(D_,{class:"","image-size":70,height:a.height-25,width:a.width,"group-manager":Be(l),properties:w.value,"hide-options":!1,"hide-group":!0,"sha1-scores":b.sha1Scores,ref_key:"scrollerElem",ref:d,preview:a.preview},null,8,["height","width","group-manager","properties","sha1-scores","preview"])])):(W(),K("div",tX,"No Similary Function found."))}});function dX(e){return Ju()?(mp(e),!0):!1}function hX(e){return typeof e=="function"?e():Be(e)}const fX=typeof window<"u";function _y(e){var t;const i=hX(e);return(t=i==null?void 0:i.$el)!=null?t:i}const pX=fX?window:void 0;function gX(){const e=ye(!1);return Gi()&&xt(()=>{e.value=!0}),e}function mX(e){const t=gX();return we(()=>(t.value,!!e()))}var Sy=Object.getOwnPropertySymbols,vX=Object.prototype.hasOwnProperty,bX=Object.prototype.propertyIsEnumerable,yX=(e,t)=>{var i={};for(var n in e)vX.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&Sy)for(var n of Sy(e))t.indexOf(n)<0&&bX.call(e,n)&&(i[n]=e[n]);return i};function xX(e,t,i={}){const n=i,{window:a=pX}=n,l=yX(n,["window"]);let c;const d=mX(()=>a&&"ResizeObserver"in a),p=()=>{c&&(c.disconnect(),c=void 0)},m=we(()=>Array.isArray(e)?e.map(_=>_y(_)):[_y(e)]),b=nt(m,_=>{if(p(),d.value&&a){c=new ResizeObserver(t);for(const C of _)C&&c.observe(C,l)}},{immediate:!0,flush:"post",deep:!0}),w=()=>{p(),b()};return dX(w),{isSupported:d,stop:w}}const wX=Ke({__name:"Resizable",props:{disabled:Boolean,startWidth:Number},emits:{resize:Number},setup(e,{emit:t}){const i=e,n=t,a=ye(null),l=ye(""),c=ye(!1),d=we(()=>{const p=["common"];return p.push("horizontal"),p});return xt(()=>{a.value.style.width=i.startWidth+"px",xX(a.value,p=>{const m=p[0],{width:b,height:w}=m.contentRect;l.value=`width: ${b}, height: ${w}`,n("resize",a.value.clientWidth+1)})}),nt(()=>i.startWidth,()=>a.value.style.width=i.startWidth+"px"),(p,m)=>(W(),K("div",{class:_t(d.value),ref_key:"elem",ref:a,onMouseenter:m[0]||(m[0]=b=>c.value=!0),onMouseout:m[1]||(m[1]=b=>c.value=!1)},[di(p.$slots,"default",{},void 0,!0)],34))}});const _X=gt(wX,[["__scopeId","data-v-3b349165"]]),Wd=e=>(ii("data-v-a4b91e12"),e=e(),si(),e),SX={class:"m-0 p-0"},EX={class:"header-row d-flex flex-row ps-1"},CX={key:0,class:"me-1"},AX={key:1},kX=Wd(()=>V("div",{class:"ms-3 me-1"},null,-1)),TX={key:0,class:"separator"},IX=Wd(()=>V("div",{class:"empty"},null,-1)),OX={style:{height:"30px"}},PX=Wd(()=>V("div",{class:"left-border"},null,-1)),LX=Wd(()=>V("i",{class:"bi bi-image ms-1 me-1"},null,-1)),MX=[LX],NX=Ke({__name:"TableHeader",props:{properties:Array,missingWidth:Number,showImage:Boolean,manager:Aa,currentGroup:Object},setup(e){const t=Ii(),i=e,n=we(()=>t.getTab()),a=ye(0),l=we(()=>i.missingWidth>0);function c(m,b){n.value.propertyOptions[m].size=b}const d=we(()=>{const m=[];return i.currentGroup.id!=null&&(i.currentGroup.meta.propertyValues,Ff(i.currentGroup).forEach(w=>m.push(...w.meta.propertyValues))),m});function p(){a.value=i.manager.result.root.images.length}return xt(()=>i.manager.onChange.addListener(p)),Sn(()=>i.manager.onChange.removeListener(p)),(m,b)=>(W(),K("div",SX,[V("div",EX,[i.manager.hasResult()?(W(),K("span",CX,"Images: "+Ne(a.value),1)):Le("",!0),i.currentGroup.id!=null?(W(),K("span",AX," ("+Ne(i.currentGroup.images.length)+")",1)):Le("",!0),kX,i.currentGroup.id?(W(!0),K(Qe,{key:2},St(d.value,(w,_)=>(W(),K(Qe,null,[Me(Bg,{class:"",value:w},null,8,["value"]),_(W(),it(_X,{"start-width":n.value.propertyOptions[w.id].size-(l.value&&_==i.properties.length-1?1:0),class:_t(["header-cell",l.value&&_==i.properties.length-1?"":"right-border"]),onResize:C=>c(w.id,C)},{default:rt(()=>[Me(Ws,{type:w.type,class:"ms-1"},null,8,["type"]),Qt(" "+Ne(w.name),1)]),_:2},1032,["start-width","class","onResize"]))),256)),l.value?(W(),K("div",{key:1,class:"header-cell right-border",style:pt({width:i.missingWidth+"px",height:"30px"})},null,4)):Le("",!0)])]))}});const RX=gt(NX,[["__scopeId","data-v-a4b91e12"]]),DX={key:0,class:"bi bi-caret-right-fill",style:{"margin-left":"1px"}},$X={key:1,class:"bi bi-caret-down-fill",style:{"margin-left":"1px"}},FX={class:"me-2"},zX={key:0,class:"separator"},HX=Ke({__name:"GroupLine",props:{item:{},width:{},selectedImages:{}},emits:["close:group","open:group","toggle:group"],setup(e,{emit:t}){const i=e,n=t,a=we(()=>Ff(i.item.data).some(p=>p.view.closed)||i.item.data.view.closed);function l(){a.value?n("open:group",i.item.data.id):n("close:group",i.item.data.id)}const c=we(()=>!i.item.data.images.some(p=>!i.selectedImages.value[p.id])),d=we(()=>{const p=[];return i.item.data.id!=null&&(p.push(...i.item.data.meta.propertyValues),Ff(i.item.data).forEach(b=>p.push(...b.meta.propertyValues))),p});return(p,m)=>(W(),K("div",{class:"d-flex flex-row group-row m-0",style:pt({width:i.width-0+"px",height:i.item.size+"px"})},[V("div",{onClick:l,class:"align-self-center me-2",style:{cursor:"pointer"}},[a.value?(W(),K("i",DX)):(W(),K("i",$X))]),V("div",FX,[Me(dc,{"model-value":c.value,"onUpdate:modelValue":m[0]||(m[0]=b=>n("toggle:group",i.item.data.id))},null,8,["model-value"])]),(W(!0),K(Qe,null,St(d.value,(b,w)=>(W(),K(Qe,null,[Me(Bg,{class:"",value:b},null,8,["value"]),wn.getTab()),m=we(()=>a.item.type=="pile"?a.item.data.images[0]:a.item.data),b=we(()=>{if(a.item.type=="pile")return a.item.data}),w=we(()=>a.showImage?Math.max(O.value.h+4,30):0),_=we(()=>{let H=0;for(let ee in I)I[ee]>H&&(H=I[ee]);return a.showImage?Math.max(H,w.value):H+4}),C=we(()=>{const H={};for(let ee of a.properties){let se=0;for(let Q in I)I[Q]>se&&Number(ee.id)!=Number(Q)&&(se=I[Q]);a.showImage&&(se=Math.max(se,O.value.h+4)),se=Math.max(se,a.showImage?26:24),H[ee.id]=se}return H}),I=Wt({});we(()=>{const H={};return a.properties.forEach(ee=>H[ee.id]==p.value.propertyOptions[ee.id].size),H});const O=we(()=>{let H=m.value.width/m.value.height;return 1>H?{w:p.value.imageSize*H,h:p.value.imageSize}:{w:p.value.imageSize,h:p.value.imageSize/H}}),M=we(()=>{const H={};return a.properties.forEach(ee=>{H[ee.id]=p.value.propertyOptions[ee.id].size-7,ee.id==a.properties[a.properties.length-1].id&&(a.missingWidth>0&&(H[ee.id]+=a.missingWidth),H[ee.id]-=15)}),H}),N=we(()=>{const H=["header-cell"];return a.item.index==0&&H.push("top-border"),H});function k(H){console.log(c[H]),c[H].focus()}let D=!1;function P(){D||(D=!0,At(()=>{l("resizeHeight",_.value),D=!1}))}function $(){i.showModal(Hi.IMAGE,a.item.iterator)}return xt(P),nt(_,P),nt(()=>a.properties,()=>{console.log("cleanup");const H=new Set(a.properties.map(ee=>ee.id));Object.keys(I).filter(ee=>!H.has(Number(ee))).forEach(ee=>delete I[ee])}),(H,ee)=>(W(),K("div",{class:"d-flex",style:pt({height:a.item.size+"px"})},[V("div",{class:"left-border",style:pt({height:a.item.size+"px"})},null,4),e.showImage?(W(),K("div",{key:0,class:_t([N.value,"p-0 m-0"]),style:pt({width:p.value.imageSize+"px",position:"relative",height:_.value+"px",cursor:"pointer"}),onMouseenter:ee[1]||(ee[1]=se=>d.value=!0),onMouseleave:ee[2]||(ee[2]=se=>d.value=!1),onClick:$},[Me(Mg,{image:m.value},{default:rt(()=>{var se;return[Me(cc,{image:m.value,width:p.value.imageSize-1,height:_.value-2},null,8,["image","width","height"]),d.value||a.selected?(W(),K("div",{key:0,class:"h-100 box-shadow",style:pt([{width:p.value.imageSize+"px"},{position:"absolute",top:"0",left:"0",right:"0px",bottom:"0px"}])},null,4)):Le("",!0),d.value||a.selected?(W(),it(dc,{key:1,"model-value":a.selected,"onUpdate:modelValue":ee[0]||(ee[0]=Q=>l("toggle:image",{groupId:e.item.groupId,imageIndex:e.item.index})),class:"select","light-mode":!0},null,8,["model-value"])):Le("",!0),((se=b.value)==null?void 0:se.images.length)>1?(W(),K("div",BX,Ne(b.value.images.length),1)):Le("",!0)]}),_:1},8,["image"])],38)):Le("",!0),(W(!0),K(Qe,null,St(a.properties,(se,Q)=>(W(),K("div",{class:"container22 overflow-hidden",style:pt([{width:M.value[se.id]+7+"px"},{height:"100%",padding:"0px 3px","font-size":"14px"}]),onClick:te=>k(Q)},[Me(E_,{instance:m.value,property:se,"min-height":C.value[se.id],width:M.value[se.id],"onUpdate:height":te=>I[se.id]=te,ref_for:!0,ref:"inputElems",onClick:ee[3]||(ee[3]=Jt(()=>{},["stop"]))},null,8,["instance","property","min-height","width","onUpdate:height"])],12,WX))),256))],4))}});const Ey=gt(YX,[["__scopeId","data-v-f237f349"]]),jX={key:0},XX={key:1},GX={key:2},UX={key:3,style:{height:"1000px"}},KX=Ke({__name:"GridScrollerLine",props:{item:{},width:{},missingWidth:{},properties:{},showImages:{type:Boolean},selectedImages:{}},emits:{resizeHeight:Number,"close:group":String,"open:group":String,"toggle:image":Object,"toggle:group":Object},setup(e,{emit:t}){const i=e,n=t,a=ye(!0),l=we(()=>{if(i.item.type=="image")return i.selectedImages.value[i.item.data.id];if(i.item.type="pile")return i.selectedImages.value[i.item.data.images[0].id]});function c(){a.value=!1,At(()=>At(()=>a.value=!0))}return nt(()=>i.item.id,c),(d,p)=>a.value?(W(),K(Qe,{key:0},[d.item.type=="group"?(W(),K("div",jX,[Me(VX,{"prop-values":d.item.data.propertyValues,item:d.item,width:i.width,selectedImages:i.selectedImages,"onClose:group":p[0]||(p[0]=m=>n("close:group",m)),"onOpen:group":p[1]||(p[1]=m=>n("open:group",m)),"onToggle:group":p[2]||(p[2]=m=>n("toggle:group",m))},null,8,["prop-values","item","width","selectedImages"])])):Le("",!0),d.item.type=="image"?(W(),K("div",XX,[Me(Ey,{item:d.item,properties:i.properties,"show-image":i.showImages,"missing-width":i.missingWidth,onResizeHeight:p[3]||(p[3]=m=>n("resizeHeight",m)),"onToggle:image":p[4]||(p[4]=m=>n("toggle:image",m)),selected:l.value},null,8,["item","properties","show-image","missing-width","selected"])])):Le("",!0),d.item.type=="pile"?(W(),K("div",GX,[Me(Ey,{item:d.item,properties:i.properties,"show-image":i.showImages,"missing-width":i.missingWidth,onResizeHeight:p[5]||(p[5]=m=>n("resizeHeight",m)),selected:l.value,"onToggle:image":p[6]||(p[6]=m=>n("toggle:image",{groupId:d.item.data.parent.id,imageIndex:d.item.data.parentIdx}))},null,8,["item","properties","show-image","missing-width","selected"])])):Le("",!0),d.item.type=="filler"?(W(),K("div",UX)):Le("",!0)],64)):Le("",!0)}});const qX=gt(KX,[["__scopeId","data-v-d07ac2fd"]]),ZX=Ke({__name:"GridScroller",props:{manager:Aa,height:Number,width:Number,selectedProperties:Array,showImages:Boolean,hideIfModal:Boolean},setup(e,{expose:t}){const i=Ii(),n=ls(),a=e;t({computeLines:k,clear:Ce});const l=ye(60),c=ye([]),d={},p=ye(null),m=Wt({});ss(null);const b=we(()=>{const Z=i.getTab().propertyOptions;let U=a.selectedProperties.map(fe=>{var he;return((he=Z[fe.id])==null?void 0:he.size)??0}).reduce((fe,he)=>fe+he,0);return a.showImages&&(U+=i.getTab().imageSize),U}),w=we(()=>Math.max(b.value,a.width)),_=we(()=>a.width-b.value),C=we(()=>a.height-l.value),I=we(()=>({height:C.value+"px",width:w.value+"px"})),O=we(()=>a.hideIfModal&&(n.openModalId==Hi.IMAGE||n.openModalId==Hi.TAG));let M=[],N=0;function k(){console.time("Table compute lines");const Z=[];let U,fe=a.manager.getImageIterator(void 0,void 0,{ignoreClosed:!0});for(;fe;){const he=fe.group;U!=he.id&&he.id!=0&&(Z.push(P(he)),U=he.id),!he.view.closed&&he.images.length&&(fe.images,he.subGroupType!=ps.Sha1?Z.push($(fe,he.id,fe.imageIdx)):Z.push(H(fe))),fe=fe.nextImages()}Z.push({id:"__filler__",type:"fillter",size:300,index:Z.length}),M=Z,D(Z,se),p.value.updateVisibleItems(!0),console.timeEnd("Table compute lines")}function D(Z,U){const fe=Math.max(U-a.height*2,0),he=Math.max(U+a.height*3,a.height*3);let ue=[],ve=0,Re,et=0;for(const Ee of Z)ve+Ee.size>fe&&(ve=he&&(et+=Ee.size),ve+=Ee.size;ue=[{id:"__pre__",type:"fillter",size:Re,index:Z.length},...ue,{id:"__post__",type:"fillter",size:et,index:Z.length}],c.value=ue,N=U,p.value&&p.value.scrollToPosition(U)}function P(Z){return{id:Z.id,data:Z,type:"group",size:35,nbClusters:10,groupId:Z.id}}function $(Z,U,fe){const he=Z.image;return{id:U+"-img:"+String(he.id),data:he,type:"image",size:d[he.id]??i.getTab().imageSize+4,index:fe,groupId:U,iterator:Z}}function H(Z){const U=Z.sha1Group;return{id:U.id+"-sha1:"+String(U.images[0].sha1),data:U,type:"pile",size:d[U.images[0].id]??i.getTab().imageSize+4,iterator:Z}}function ee(Z,U){Z.size!=U&&(Z.size=U,Z.type=="image"&&(d[Z.data.id]=Z.size))}let se=0,Q=0;function te(){let Z=p.value.getScroll().start,U=p.value.sizes,fe=c.value.length,he=fe-1;Q>he&&(se=0,Q=0);let ue=0;if(Z>se)for(let ve=Q;veZ));ve++);else for(let ve=Q;ve>=0&&(ue=ve,!(U[ve].accumulator-U[ve].sizea.height&&D(M,Z)}function ce(Z){a.manager.openGroup(Z,!0)}function oe(Z){a.manager.closeGroup(Z,!0)}function de(Z,U){const fe=a.manager.getImageIterator(Z,U);a.manager.toggleImageIterator(fe,vi.shift)}function be(Z){const U=a.manager.getGroupIterator(Z);a.manager.toggleGroupIterator(U,vi.shift)}function Ce(){c.value=[]}function re(){k()}return xt(()=>{a.manager.onChange.addListener(re),a.manager.clearCustomGroups(!0)}),Sn(()=>{a.manager.onChange.removeListener(re)}),nt(()=>i.getTab().id,()=>{At(()=>{D(M,0)})}),nt(()=>i.getTab().imageSize,(Z,U)=>{let fe=0,he=0;for(const Re of M){if(he>=se){fe=Re.index;break}he+=Re.size}const ue=new Set(c.value.map(Re=>Re.index));M.filter(Re=>!ue.has(Re.index)).forEach(Re=>Re.size=Z);let ve=0;he=0;for(const Re of M){if(Re.index==fe){ve=he;break}he+=Re.size}D(M,ve)}),(Z,U)=>(W(),K("div",{class:"grid-container overflow-hidden",style:pt({width:I.value.width})},[Me(RX,{manager:a.manager,properties:a.selectedProperties,"missing-width":_.value,"show-image":a.showImages,"current-group":m,class:"p-0 m-0"},null,8,["manager","properties","missing-width","show-image","current-group"]),Me(Be(_a),{items:c.value,"key-field":"id",ref_key:"scroller",ref:p,style:pt(I.value),emitUpdate:!0,"page-mode":!1,prerender:400,class:"p-0 m-0",onScroll:te,onScrollStart:te},{default:rt(({item:fe,index:he,active:ue})=>[ue&&!O.value?(W(),it(qX,{key:0,item:fe,properties:a.selectedProperties,width:w.value,"show-images":a.showImages,"selected-images":a.manager.selectedImages,"missing-width":_.value,"onOpen:group":ce,"onClose:group":oe,"onToggle:image":U[0]||(U[0]=({groupId:ve,imageIndex:Re})=>de(ve,Re)),"onToggle:group":be,onResizeHeight:ve=>ee(fe,ve)},null,8,["item","properties","width","show-images","selected-images","missing-width","onResizeHeight"])):Le("",!0)]),_:1},8,["items","style"])],4))}});const JX=Ke({__name:"Instances",props:{image:{},width:{},height:{},groupManager:{}},setup(e){const t=yt(),i=e,n=we(()=>{const l=[t.properties[Pu.id]];return l.push(...t.propertyList.filter(c=>c.mode==ki.id&&c.id!=Pu.id)),l});function a(){i.groupManager.clear(),i.groupManager.setSha1Mode(!1);const l=t.sha1Index[i.image.sha1];i.groupManager.group(l,void 0,!0)}return xt(a),nt(()=>i.image,a),(l,c)=>i.groupManager.hasResult()?(W(),K("div",{key:0,class:"m-0 p-0",style:pt([{"overflow-x":"scroll","overflow-y":"hidden"},{width:i.width+"px",height:i.height+"px"}])},[Me(ZX,{"show-images":!1,manager:i.groupManager,height:i.height,width:i.width-15,"selected-properties":n.value},null,8,["manager","height","width","selected-properties"])],4)):Le("",!0)}}),QX=e=>(ii("data-v-dd7766e0"),e=e(),si(),e),e3={class:"view-selection"},t3={class:"d-flex"},i3={class:"d-flex overflow-hidden"},s3=QX(()=>V("div",{class:"flex-grow-1"},null,-1)),n3={key:0,class:"selection-stamp",style:{"line-height":"18px",margin:"3px 5px 0 0"}},r3={key:0,class:"p-1"},a3={key:1,class:"p-2"},o3=Ke({__name:"MiddleCol",props:{image:{},width:{},height:{},mode:{},groupManager:{},visibleProperties:{},preview:{}},emits:["update:mode"],setup(e,{emit:t}){const i=e,n=t;function a(l){n("update:mode",l)}return(l,c)=>(W(),K(Qe,null,[V("div",e3,[V("div",t3,[V("div",i3,[Me(Ti,{message:"modals.image.similar_images_tooltip"},{default:rt(()=>[V("div",{class:_t(["view-mode ps-2 pe-2 btn-icon",i.mode==0?"selected":""]),onClick:c[0]||(c[0]=d=>a(0))},Ne(l.$t("modals.image.similar_images")),3)]),_:1}),(W(),it(Ti,{key:0,message:"modals.image.unique_properties_tooltip"},{default:rt(()=>[V("div",{class:_t(["view-mode ps-2 pe-2 btn-icon",i.mode==1?"selected":""]),onClick:c[1]||(c[1]=d=>a(1))},Ne(l.$t("modals.image.unique_properties")),3)]),_:1}))]),s3,Object.keys(l.groupManager.selectedImages.value).length>0?(W(),K("div",n3,[Me(OW,{"selected-images-ids":Object.keys(l.groupManager.selectedImages.value).map(Number),"onRemove:selected":c[2]||(c[2]=d=>l.groupManager.clearSelection())},null,8,["selected-images-ids"])])):Le("",!0)])]),i.mode==0?(W(),K("div",r3,[Me(uX,{image:l.image,height:i.height-40,width:i.width-10,"similar-group":l.groupManager,"visible-properties":i.visibleProperties,preview:i.preview},null,8,["image","height","width","similar-group","visible-properties","preview"])])):(W(),K("div",a3,[Me(JX,{image:l.image,height:i.height-40,width:i.width-10,"group-manager":l.groupManager},null,8,["image","height","width","group-manager"])]))],64))}});const l3=gt(o3,[["__scopeId","data-v-dd7766e0"]]),c3={key:0,class:"modal-content d-flex flex-column h-100"},u3={class:"d-flex"},d3={class:"flex-grow-1"},h3=Ke({__name:"Modal2",props:{id:{},maxWidth:{},maxHeight:{},noTitle:{type:Boolean},titleStyle:{}},emits:["resize","show","hide"],setup(e,{expose:t,emit:i}){const n=ls(),a=e,l=i;t({hide:M});const c=ye(null),d=ye(0),p=ye(0),m=ye(!1),b=we(()=>p.value-56),w=we(()=>d.value-56),_=we(()=>{if(!a.titleStyle)return"title";if(a.titleStyle==1)return"title1"}),C=we(()=>n.modalData),I=we(()=>({maxWidth:b.value+"px",height:w.value+"px"})),O=we(()=>({width:"100%",height:"100%",overflowY:"auto"}));function M(){m.value&&(m.value=!1,l("hide"))}function N(){m.value=!0,At(()=>c.value.focus()),l("show")}function k(){p.value=window.innerWidth,d.value=window.innerHeight,a.maxWidth&&a.maxWidth+56{window.addEventListener("resize",k),k()}),nt(()=>n.openModalId,()=>{n.openModalId==a.id?(N(),k()):m.value&&M()}),(D,P)=>m.value?(W(),K("div",{key:0,class:"p-modal",tabindex:"-1",ref_key:"modalElem",ref:c,onClick:P[2]||(P[2]=(...$)=>Be(n).hideModal&&Be(n).hideModal(...$)),onKeydown:P[3]||(P[3]=ei((...$)=>Be(n).hideModal&&Be(n).hideModal(...$),["esc"]))},[V("div",{class:"modal-container",style:pt(I.value),onClick:P[1]||(P[1]=Jt(()=>{},["stop"]))},[m.value?(W(),K("div",c3,[a.noTitle?Le("",!0):(W(),K("div",{key:0,class:_t(_.value)},[V("div",u3,[V("div",d3,[di(D.$slots,"title",{},void 0,!0)]),V("div",{class:"close bi bi-x btn-icon",onClick:P[0]||(P[0]=(...$)=>Be(n).hideModal&&Be(n).hideModal(...$))})])],2)),V("div",{class:"body flex-grow-1",style:pt(O.value)},[di(D.$slots,"content",{data:C.value,width:b.value,height:w.value},void 0,!0)],4)])):Le("",!0)],4)],544)):Le("",!0)}});const $_=gt(h3,[["__scopeId","data-v-53b0b388"]]),f3={key:0,class:"h-100"},p3={class:"d-flex h-100"},g3={class:"bordered"},m3=Ke({__name:"ImageModal",setup(e){const t=ls(),i=yt(),n=new Aa,a=ye(null),l=ye(null),c=ye(0),d=ye(0),p=ye(0),m=Wt({}),b=ye([]),w=ye(null),_=ss({}),C=we(()=>t.openModalId==Hi.IMAGE),I=we(()=>{var oe;return(oe=w.value)==null?void 0:oe.image}),O=we(()=>t.modalData),M=we(()=>b.value.length>0);Wn("nextImage",se),Wn("prevImage",Q),Wn("showHistory",M);function N(){l.value&&(c.value=l.value.clientWidth,d.value=l.value.clientHeight)}function k(){_.value={},Object.keys(n.selectedImages.value).length?Object.keys(n.selectedImages.value).forEach(oe=>_.value[oe]=!0):n.result.root.images.forEach(oe=>_.value[oe.id]=!0)}function D(){_.value={}}function P(oe){if(p.value!=0)return;const de=i.properties[oe.propertyId],be=i.instances[oe.instanceId].properties[de.id];let Ce=n.result.root.images;Object.keys(n.selectedImages.value).length&&(Ce=Object.keys(n.selectedImages.value).map(re=>i.instances[re])),de.type==He.multi_tags?i.setTagPropertyValue(de.id,Ce,be):i.setPropertyValue(de.id,Ce,be),m[de.id]=!0}function $(){b.value=[]}function H(){w.value=void 0,b.value=[],n.clearSelection()}async function ee(oe){t.openModalId==Hi.IMAGE&&(w.value&&(b.value.push(w.value),await At(),a.value&&(a.value.scrollTop=a.value.scrollHeight)),w.value=oe)}function se(){const oe=w.value.nextImages();oe&&(w.value=oe,te())}function Q(){const oe=w.value.prevImages();oe&&(w.value=oe,te())}function te(){b.value=[]}function ce(oe){w.value=b.value[oe],b.value.splice(oe)}return nt(M,()=>At(N)),nt(l,N),nt(O,ee),nt(()=>vi.left,oe=>{C.value&&oe&&!M.value&&Q()}),nt(()=>vi.right,oe=>{C.value&&oe&&!M.value&&se()}),(oe,de)=>(W(),it($_,{id:Be(Hi).IMAGE,onResize:N,onShow:$,onHide:H},{title:rt(()=>[V("b",null,"ID: "+Ne(I.value.id),1),Qt(" | "+Ne(I.value.width)+" x "+Ne(I.value.height)+" | "+Ne(I.value.name),1)]),content:rt(({data:be})=>[I.value?(W(),K("div",f3,[V("div",p3,[Me(oW,{image:w.value,width:500,"image-height":200,groupManager:Be(n),"visible-properties":m,onPaint:P,onHover:k,onHoverEnd:D},null,8,["image","groupManager","visible-properties"]),V("div",{class:"flex-grow-1 bg-white h-100 overflow-hidden",ref_key:"colElem",ref:l},[Me(l3,{"group-manager":Be(n),height:d.value,width:c.value,image:I.value,mode:p.value,"visible-properties":m,"onUpdate:mode":de[0]||(de[0]=Ce=>p.value=Ce),preview:_.value},null,8,["group-manager","height","width","image","mode","visible-properties","preview"])],512),b.value.length>0?(W(),K("div",{key:0,class:"history text-center",ref_key:"historyElem",ref:a},[V("b",null,Ne(oe.$t("modals.image.history")),1),(W(!0),K(Qe,null,St(b.value,(Ce,re)=>(W(),K("div",g3,[Me(cc,{image:Ce.image,width:100,height:100,onClick:Z=>ce(re)},null,8,["image","onClick"])]))),256))],512)):Le("",!0)])])):Le("",!0)]),_:1},8,["id"]))}});const v3=gt(m3,[["__scopeId","data-v-f451bdd5"]]),b3={key:0,class:"p-modal"},y3={key:0,class:"w-100 h-100",style:{padding:"28px"}},x3=Ke({__name:"ImageZoomModal",setup(e){const t=we(()=>zn.image??{width:0,height:0}),i=Wt({width:500,height:500});xt(n),xt(()=>window.addEventListener("resize",n));function n(){i.width=window.innerWidth,i.height=window.innerHeight}return(a,l)=>Be(zn).open?(W(),K("div",b3,[t.value?(W(),K("div",y3,[Me(cc,{image:t.value,width:i.width-56,height:i.height-56,border:4,"is-zoom":!0},null,8,["image","width","height"])])):Le("",!0)])):Le("",!0)}});const w3=gt(x3,[["__scopeId","data-v-1f45d170"]]),_3={key:0,class:"modal-content d-flex flex-column h-100"},S3={key:0,class:"title"},E3={class:"d-flex"},C3={class:"flex-grow-1"},A3=Ke({__name:"Modal",props:{id:{},maxWidth:{},maxHeight:{},noTitle:{type:Boolean}},emits:["resize","show","hide"],setup(e,{expose:t,emit:i}){const n=ls(),a=e,l=i;t({hide:M});const c=ye(null);let d=null;const p=ye(0),m=ye(0),b=ye(!1),w=we(()=>m.value-56),_=we(()=>p.value-56),C=we(()=>n.modalData),I=we(()=>({maxWidth:w.value+"px",height:_.value+"px"})),O=we(()=>({width:"100%",height:"100%",overflowY:"scroll"}));function M(){d.hide()}function N(){b.value=!0,d.show()}function k(){b.value=!0,l("show")}function D(){b.value=!1,n.openModalId==a.id&&n.hideModal(),l("hide")}function P(){m.value=window.innerWidth,p.value=window.innerHeight,a.maxWidth&&a.maxWidth+56{d=wa.getOrCreateInstance(c.value),c.value.addEventListener("hide.bs.modal",D),c.value.addEventListener("show.bs.modal",k),window.addEventListener("resize",P),P()}),nt(()=>n.openModalId,()=>{n.openModalId==a.id?(N(),P()):b.value&&M()}),($,H)=>(W(),K("div",{class:"modal",tabindex:"-1",ref_key:"modalElem",ref:c},[V("div",{class:"modal-dialog modal-container",style:pt(I.value)},[b.value?(W(),K("div",_3,[a.noTitle?Le("",!0):(W(),K("div",S3,[V("div",E3,[V("div",C3,[di($.$slots,"title",{},void 0,!0)]),V("div",{class:"close bi bi-x btn-icon",onClick:M})])])),V("div",{class:"body flex-grow-1",style:pt(O.value)},[di($.$slots,"content",{data:C.value},void 0,!0)],4)])):Le("",!0)],4)],512))}});const Yd=gt(A3,[["__scopeId","data-v-fee12959"]]),Fo=e=>(ii("data-v-52a3a1e8"),e=e(),si(),e),k3={class:"d-flex flex-column p-2"},T3={class:"main-table"},I3={class:""},O3={class:"option-label"},P3={class:"ps-1"},L3=["placeholder"],M3={class:"option-row"},N3={class:"option-label"},R3={class:"d-flex options"},D3=Fo(()=>V("div",{class:"separator"},null,-1)),$3=Fo(()=>V("div",{class:"separator"},null,-1)),F3={class:"option-row"},z3={class:"option-label"},H3={class:"d-flex options"},V3=Fo(()=>V("div",{class:"separator"},null,-1)),B3=Fo(()=>V("div",{class:"separator"},null,-1)),W3={class:"option-row"},Y3={class:"option-label"},j3={class:"text-center"},X3=["checked"],G3=Fo(()=>V("td",null,"All",-1)),U3={class:"property-table"},K3={class:"text-center"},q3=["onUpdate:modelValue"],Z3={class:"option-row"},J3={class:"option-label"},Q3={class:"ps-1"},e4={class:"mt-2 d-flex"},t4={key:0,class:"ms-5 spinner-border",role:"status"},i4=Fo(()=>V("span",{class:"visually-hidden"},"Loading...",-1)),s4=[i4],n4=Ke({__name:"ExportModal2",setup(e){const t=Ii(),i=yt(),n=Wt({name:void 0,mode:"instance",selection:"all",key:"id",properties:{},exportImages:!1}),a=ye(null),l=ye(!1),c=we(()=>d.value.every(O=>n.properties[O.id])),d=we(()=>{const O=Object.values(i.properties);O.sort((k,D)=>k.id-D.id);const M=O.filter(k=>k.id<0),N=O.filter(k=>k.id>0);return[M.pop(),...N,...M]}),p=we(()=>{const O=t.getTabManager();return Object.keys(O.collection.groupManager.selectedImages.value).length});we(()=>{const O=t.getTabManager();return n.mode=="instance"?O.getVisibleProperties().length:O.getVisibleSha1Properties().length});function m(O,M){return O==M?"selected":""}function b(O,M){n[O]=M}function w(){c.value?d.value.forEach(O=>{delete n.properties[O.id]}):d.value.forEach(O=>n.properties[O.id]=!0)}function _(){Object.assign(n,{name:void 0,mode:"instance",selection:"all",key:"id",properties:{},exportImages:!1})}function C(){_(),t.getTabManager().getVisibleProperties().forEach(M=>n.properties[M.id]=!0)}async function I(){const O={exportImages:n.exportImages,properties:void 0,images:void 0,name:void 0,key:"id"};O.properties=Object.keys(n.properties).map(Number).filter(M=>n.properties[M]),O.properties.sort((M,N)=>d.value.findIndex(k=>k.id==M)-d.value.findIndex(k=>k.id==N)),n.name&&n.name!=""&&(O.name=n.name),n.selection=="selected"&&(O.images=Object.keys(t.getTabManager().collection.groupManager.selectedImages.value).map(Number)),n.selection=="filtered"&&(O.images=t.getTabManager().collection.filterManager.result.images.map(M=>M.id)),O.key=n.key,l.value=!0,await Gw(100),console.log(O),await bM(O.name,O.images,O.key,O.properties,O.exportImages),l.value=!1,a.value.hide()}return(O,M)=>(W(),it(Yd,{id:Be(Hi).EXPORT,onShow:C,ref_key:"modalElem",ref:a},{title:rt(()=>[Qt(Ne(O.$t("modals.export.title")),1)]),content:rt(()=>[V("div",k3,[V("div",null,[V("table",T3,[V("tr",I3,[V("td",O3,Ne(O.$t("modals.export.name")),1),V("td",P3,[Bt(V("input",{type:"text",style:{"line-height":"20px"},placeholder:O.$t("modals.export.name_placeholder"),"onUpdate:modelValue":M[0]||(M[0]=N=>n.name=N)},null,8,L3),[[ui,n.name]])])]),V("tr",M3,[V("td",N3,Ne(O.$t("modals.export.selection_label")),1),V("td",R3,[V("div",{class:_t(["option flex-grow-1",m(n.selection,"all")]),onClick:M[1]||(M[1]=N=>b("selection","all"))},Ne(O.$t("modals.export.selection_all")),3),p.value>0?(W(),K(Qe,{key:0},[D3,V("div",{class:_t(["option flex-grow-1",m(n.selection,"selected")]),onClick:M[2]||(M[2]=N=>b("selection","selected"))},Ne(O.$t("modals.export.selection_selected"))+" ("+Ne(p.value)+")",3)],64)):Le("",!0),$3,V("div",{class:_t(["option flex-grow-1",m(n.selection,"filtered")]),onClick:M[3]||(M[3]=N=>b("selection","filtered"))},Ne(O.$t("modals.export.selection_filtered")),3)])]),V("tr",F3,[V("td",z3,Ne(O.$t("modals.export.key_label")),1),V("td",H3,[V("div",{class:_t(["option flex-grow-1",m(n.key,"id")]),onClick:M[4]||(M[4]=N=>b("key","id"))},Ne(O.$t("modals.export.id")),3),V3,V("div",{class:_t(["option flex-grow-1",m(n.key,"local_path")]),onClick:M[5]||(M[5]=N=>b("key","local_path"))},Ne(O.$t("modals.export.local_path")),3),B3,V("div",{class:_t(["option flex-grow-1",m(n.key,"global_path")]),onClick:M[6]||(M[6]=N=>b("key","global_path"))},Ne(O.$t("modals.export.global_path")),3)])]),V("tr",W3,[V("td",Y3,Ne(O.$t("modals.export.properties_label")),1),V("div",null,[V("table",null,[V("tr",null,[V("td",j3,[V("input",{type:"checkbox",checked:c.value,onInput:w},null,40,X3)]),G3]),(W(!0),K(Qe,null,St(d.value,N=>(W(),K("tr",U3,[V("td",K3,[Bt(V("input",{type:"checkbox","onUpdate:modelValue":k=>n.properties[N.id]=k},null,8,q3),[[Ds,n.properties[N.id]]])]),V("td",null,[Me(Ws,{type:N.type,class:"me-1"},null,8,["type"]),Qt(Ne(N.name),1)])]))),256))])])]),V("tr",Z3,[V("td",J3,Ne(O.$t("modals.export.export_images")),1),V("td",Q3,[Bt(V("input",{type:"checkbox","onUpdate:modelValue":M[7]||(M[7]=N=>n.exportImages=N)},null,512),[[Ds,n.exportImages]])])])])]),V("div",e4,[V("span",{class:"base-hover p-1 export-btn",onClick:I},"Export"),l.value?(W(),K("div",t4,s4)):Le("",!0)])])]),_:1},8,["id"]))}});const r4=gt(n4,[["__scopeId","data-v-52a3a1e8"]]),a4={class:"d-flex text-center main"},o4={key:0,class:"sep"},l4=["onClick"],c4={key:0},u4={key:1},d4=Ke({__name:"TabMenu",props:{modelValue:{},options:{},langKeys:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,n=t;function a(l){n("update:modelValue",l)}return(l,c)=>(W(),K("div",a4,[(W(!0),K(Qe,null,St(i.options,(d,p)=>(W(),K(Qe,null,[p?(W(),K("div",o4)):Le("",!0),V("div",{class:_t(["option flex-grow-1",i.modelValue==d?"selected":""]),onClick:m=>a(d)},[i.langKeys&&i.langKeys[p]?(W(),K("span",c4,Ne(l.$t(i.langKeys[p])),1)):(W(),K("span",u4,Ne(d),1))],10,l4)],64))),256))]))}});const Cy=gt(d4,[["__scopeId","data-v-eb6b163a"]]),Wg=e=>(ii("data-v-66cc0c56"),e=e(),si(),e),h4={key:0},f4={class:"text-center"},p4={class:""},g4=Wg(()=>V("div",{class:"custom-hr mt-2 mb-2"},null,-1)),m4=Wg(()=>V("h5",null,"Base Settings",-1)),v4={class:"function"},b4={class:"param"},y4={class:"text-secondary"},x4={key:0,class:"d-flex"},w4=Wg(()=>V("div",{class:"flex-grow-1"},null,-1)),_4=Ke({__name:"PluginSettings",props:{plugin:{}},setup(e){const t=Ii(),i=e,n=ye({}),a=we(()=>{const p={};for(let m of i.plugin.baseParams.params)m.defaultValue=m.defaultValue??void 0,p[m.name]=m;return p}),l=we(()=>{for(let p in a.value)if(n.value[p]&&n.value[p].defaultValue!==a.value[p].defaultValue)return!0;return!1});we(()=>{const p={};return i.plugin.registeredFunctions.forEach(m=>{p[m.action]||(p[m.action]=[]);const b=JSON.parse(JSON.stringify(m));p[m.action].push(b)}),p});function c(){n.value=ns(a.value)}function d(){const p={};for(let m of Ls(n.value))p[m.id]=m.defaultValue;t.setPluginParams(i.plugin.name,p)}return xt(c),nt(()=>i.plugin,c),(p,m)=>i.plugin&&n.value?(W(),K("div",h4,[V("h3",f4,Ne(i.plugin.name),1),V("div",p4,Ne(i.plugin.description),1),g4,m4,V("div",v4,[(W(!0),K(Qe,null,St(i.plugin.baseParams.params,b=>(W(),K("div",b4,[n.value[b.name]?(W(),K(Qe,{key:0},[Me(k_,{type:b.type,modelValue:n.value[b.name].defaultValue,"onUpdate:modelValue":w=>n.value[b.name].defaultValue=w,label:b.name},null,8,["type","modelValue","onUpdate:modelValue","label"]),V("div",y4,Ne(b.description),1)],64)):Le("",!0)]))),256))]),l.value?(W(),K("div",x4,[w4,V("div",{class:"base-btn me-3",onClick:c},"Reset"),V("div",{class:"base-btn",onClick:d},"Update")])):Le("",!0)])):Le("",!0)}});const S4=gt(_4,[["__scopeId","data-v-66cc0c56"]]),F_=e=>(ii("data-v-e0fe3866"),e=e(),si(),e),E4={key:0,class:"main"},C4=F_(()=>V("h4",{class:"text-center"},"Actions",-1)),A4={class:"d-flex m-2"},k4={class:"me-2",style:{width:"120px"}},T4=["onUpdate:modelValue"],I4=["value"],O4={key:1,class:"text-secondary"},P4={key:0,class:"d-flex changed"},L4=F_(()=>V("div",{class:"flex-grow-1"},null,-1)),M4=Ke({__name:"ActionSettings",setup(e){const t=Vd(),i=Wt({similar:void 0,group:void 0,execute:void 0,import:void 0,export:void 0}),n=we(()=>{const d={};Object.keys(i).forEach(p=>d[p]=[]);for(let p of Ls(t.index))for(let m of p.hooks)d[m]!==void 0&&d[m].push(p);return d}),a=we(()=>{for(let d in i)if(i[d]!==t.defaultActions[d])return!0;return!1});function l(){Object.assign(i,t.defaultActions)}function c(){t.updateDefaultActions(i)}return xt(l),nt(()=>t.defaultActions,l),(d,p)=>i?(W(),K("div",E4,[C4,V("div",null,[(W(!0),K(Qe,null,St(Object.keys(n.value),m=>(W(),K("div",A4,[V("div",k4,Ne(m),1),n.value[m].length?Bt((W(),K("select",{key:0,"onUpdate:modelValue":b=>i[m]=b},[(W(!0),K(Qe,null,St(n.value[m],b=>(W(),K("option",{value:b.id},Ne(b.name),9,I4))),256))],8,T4)),[[ao,i[m]]]):(W(),K("div",O4,"None"))]))),256))]),a.value?(W(),K("div",P4,[L4,V("div",{class:"base-btn me-3",onClick:l},"Reset"),V("div",{class:"base-btn",onClick:c},"Update")])):Le("",!0)])):Le("",!0)}});const N4=gt(M4,[["__scopeId","data-v-e0fe3866"]]),Yg=e=>(ii("data-v-d1e3ea48"),e=e(),si(),e),R4={class:"main"},D4=Yg(()=>V("h4",{class:"text-center"},"Vectors",-1)),$4={key:0,class:"d-flex p-2"},F4=Yg(()=>V("div",{class:"me-2"},"Default Vectors",-1)),z4=["value"],H4={key:1,class:"d-flex changed"},V4=Yg(()=>V("div",{class:"flex-grow-1"},null,-1)),B4=Ke({__name:"VectorSettings",setup(e){const t=Ii(),i=ye(null),n=we(()=>{if(!i.value)return!1;const c=JSON.stringify(i.value.defaultVectors),d=JSON.stringify(t.data.vectors.defaultVectors);return c!=d});function a(){i.value=JSON.parse(JSON.stringify(t.data.vectors))}function l(){t.setDefaultVectors(i.value.defaultVectors)}return xt(a),nt(t.data.plugins,a),(c,d)=>(W(),K("div",R4,[D4,i.value?(W(),K("div",$4,[F4,Bt(V("select",{"onUpdate:modelValue":d[0]||(d[0]=p=>i.value.defaultVectors=p)},[(W(!0),K(Qe,null,St(i.value.vectors,p=>(W(),K("option",{value:p},Ne(p.source)+"."+Ne(p.type)+" ("+Ne(p.count)+")",9,z4))),256))],512),[[ao,i.value.defaultVectors]])])):Le("",!0),n.value?(W(),K("div",H4,[V4,V("div",{class:"base-btn me-3",onClick:a},"Reset"),V("div",{class:"base-btn",onClick:l},"Update")])):Le("",!0)]))}});const W4=gt(B4,[["__scopeId","data-v-d1e3ea48"]]),fc=e=>(ii("data-v-5717fd3e"),e=e(),si(),e),Y4={key:0,class:"main"},j4=fc(()=>V("h4",{class:"text-center"},"Project",-1)),X4=fc(()=>V("td",null,"Save small image",-1)),G4=fc(()=>V("td",null,"Save medium image",-1)),U4=fc(()=>V("td",null,"Save large image",-1)),K4={key:0,class:"d-flex changed"},q4=fc(()=>V("div",{class:"flex-grow-1"},null,-1)),Z4=Ke({__name:"ProjectSettings",setup(e){const t=Ii(),i=Wt({}),n=we(()=>{for(let c in i)if(i[c]!==t.data.settings[c])return!0;return!1});function a(){Object.assign(i,t.data.settings)}function l(){t.updateSettings(i)}return xt(a),nt(()=>t.data.settings,a),(c,d)=>i?(W(),K("div",Y4,[j4,V("table",null,[V("tr",null,[X4,V("td",null,[Bt(V("input",{type:"checkbox","onUpdate:modelValue":d[0]||(d[0]=p=>i.saveImageSmall=p)},null,512),[[Ds,i.saveImageSmall]])])]),V("tr",null,[G4,V("td",null,[Bt(V("input",{type:"checkbox","onUpdate:modelValue":d[1]||(d[1]=p=>i.saveImageMedium=p)},null,512),[[Ds,i.saveImageMedium]])])]),V("tr",null,[U4,V("td",null,[Bt(V("input",{type:"checkbox","onUpdate:modelValue":d[2]||(d[2]=p=>i.saveImageLarge=p)},null,512),[[Ds,i.saveImageLarge]])])])]),n.value?(W(),K("div",K4,[q4,V("div",{class:"base-btn me-3",onClick:a},"Reset"),V("div",{class:"base-btn",onClick:l},"Update")])):Le("",!0)])):Le("",!0)}});const J4=gt(Z4,[["__scopeId","data-v-5717fd3e"]]),Q4={class:"row"},eG={class:"col category"},tG={class:"col category"},iG={class:"col category"},sG=Ke({__name:"GeneralSettings",setup(e){return(t,i)=>(W(),K("div",Q4,[V("div",eG,[Me(J4)]),V("div",tG,[Me(N4)]),V("div",iG,[Me(W4)])]))}});const nG=gt(sG,[["__scopeId","data-v-f162d569"]]),rG={class:"h-100 overflow-scroll"},aG={class:"w-100"},oG={key:0},lG={key:1},cG={class:"p-3",style:{"max-width":"700px",margin:"auto"}},uG=Ke({__name:"SettingsModal",setup(e){const t=Ii(),i=ye(["general","plugins"]),n=ye(i.value[0]),a=ye("");async function l(){await t.updatePluginInfos(),a.value=t.data.plugins[0].name,caches.keys().then(c=>Promise.all(c.map(d=>caches.delete(d))))}return(c,d)=>(W(),it(Yd,{id:Be(Hi).SETTINGS,onShow:l},{title:rt(()=>[Qt(Ne(c.$t("modals.settings.title")),1)]),content:rt(()=>[V("div",rG,[V("div",aG,[Me(Cy,{options:i.value,modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=p=>n.value=p),class:"w-100"},null,8,["options","modelValue"])]),n.value=="general"?(W(),K("div",oG,[Me(nG)])):Le("",!0),n.value=="plugins"&&a.value?(W(),K("div",lG,[Me(Cy,{options:Be(t).data.plugins.map(p=>p.name),modelValue:a.value,"onUpdate:modelValue":d[1]||(d[1]=p=>a.value=p)},null,8,["options","modelValue"]),V("div",cG,[Me(S4,{plugin:Be(t).data.plugins.find(p=>p.name==a.value)},null,8,["plugin"])])])):Le("",!0)])]),_:1},8,["id"]))}}),Oi=e=>(ii("data-v-a8d31b36"),e=e(),si(),e),dG={class:"d-flex p-2"},hG=Oi(()=>V("div",{class:"me-1"},"File",-1)),fG=Oi(()=>V("i",{class:"bi bi-file-earmark-arrow-up"},null,-1)),pG=Oi(()=>V("br",null,null,-1)),gG={key:0,class:"p-2"},mG=Oi(()=>V("tr",null,[V("th",{class:"border"},"Import"),V("th",{class:"border"},"Col"),V("th",{class:"border"},"Property"),V("th",{class:"border"},"Exist"),V("th",{class:"border"},"Mode")],-1)),vG={class:"border text-center"},bG=["onUpdate:modelValue"],yG={class:"border text-center"},xG={class:"border"},wG={class:"border text-center"},_G={key:0,class:"exist"},SG={class:"border"},EG={key:0},CG=["onUpdate:modelValue","disabled"],AG=Oi(()=>V("option",{value:"sha1"},"Image",-1)),kG=Oi(()=>V("option",{value:"id"},"Instance",-1)),TG=[AG,kG],IG={key:1},OG={key:0},PG={key:1},LG={key:0},MG={colspan:"3",class:"pt-2"},NG={class:"d-flex"},RG=Oi(()=>V("div",{class:"me-1"},"Fusion Mode",-1)),DG=["disabled"],$G=Oi(()=>V("option",{value:"first"},"First",-1)),FG=Oi(()=>V("option",{value:"last"},"Last",-1)),zG=Oi(()=>V("option",{value:"new"},"New",-1)),HG=Oi(()=>V("option",{value:"all"},"All",-1)),VG=[$G,FG,zG,HG],BG={colspan:"2",class:"pt-2"},WG={colspan:"5",class:""},YG={class:"d-flex mt-2 flex-center w-100"},jG={key:1,class:"text-center w-100 border rounded"},XG=Oi(()=>V("div",{class:"spinner-border spinner-border-sm",style:{position:"relative",top:"-1px"},role:"status"},null,-1)),GG=[XG],UG={key:1,class:"m-4"},KG=Oi(()=>V("br",null,null,-1)),qG={class:"border"},ZG={class:"border"},JG={class:"border text-center"},QG=Oi(()=>V("td",{class:"border text-center"},"multi_tags",-1)),eU={class:"border text-center"},tU=Oi(()=>V("td",{class:"border text-center"},"tag",-1)),iU={class:"border text-center"},sU=Oi(()=>V("td",{class:"border text-center"},"number",-1)),nU={class:"border text-center"},rU=Oi(()=>V("td",{class:"border text-center"},"text",-1)),aU={class:"border text-center"},oU=Oi(()=>V("td",{class:"border text-center"},"checkbox",-1)),lU={class:"border text-center"},cU=Oi(()=>V("td",{class:"border text-center"},"color",-1)),uU={class:"border text-center"},dU=Oi(()=>V("td",{class:"border text-center"},"date",-1)),hU={class:"border text-center"},fU=Oi(()=>V("td",{class:"border text-center"},"url",-1)),pU=Ke({__name:"ImportModal",setup(e){const t=ls(),i=yt(),n=ye(null),a=ye(null),l=ye(null),c=ye({}),d=ye(!1),p=ye("first"),m=ye(!0);async function b(){d.value=!0;const C=Object.keys(l.value.properties).filter(M=>!c.value[M]).map(Number),I={fusion:p.value,properties:l.value.properties,exclude:C,relative:m.value},O=await vM(I);i.applyCommit(O),_(),t.hideModal()}async function w(C){const I=C.target.files[0];if(I==null)return;const O=await mM(I);a.value=I.name,l.value=O,Object.keys(l.value.properties).forEach(M=>c.value[M]=!0)}function _(){a.value=null,l.value=null,n.value.value=null,c.value={},m.value=!0,p.value="first",d.value=!1}return(C,I)=>(W(),it(Yd,{id:Be(Hi).IMPORT,ref:"modalElem"},{title:rt(()=>[Qt(Ne(C.$t("modals.import.title")),1)]),content:rt(()=>[V("div",dG,[hG,V("input",{type:"file",ref_key:"inputElem",ref:n,accept:"text/csv",onChange:w,hidden:""},null,544),a.value?(W(),K("div",{key:0,class:"sbb",onClick:_},Ne(a.value),1)):(W(),K("div",{key:1,class:"sbc",onClick:I[0]||(I[0]=O=>n.value.click())},[Qt("Upload "),fG])),pG]),a.value?(W(),K("div",gG,[V("table",null,[mG,(W(!0),K(Qe,null,St(l.value.properties,(O,M)=>(W(),K("tr",{class:_t(["border",c.value[M]?"":"dimmed"])},[V("td",vG,[M!=0?Bt((W(),K("input",{key:0,type:"checkbox","onUpdate:modelValue":N=>c.value[M]=N},null,8,bG)),[[Ds,c.value[M]]]):Le("",!0)]),V("td",yG,Ne(M),1),V("td",xG,[Me(Ws,{type:O.type},null,8,["type"]),Qt(" "+Ne(O.name),1)]),V("td",wG,[O.id>0?(W(),K("div",_G)):Le("",!0)]),V("td",SG,[O.id<0?(W(),K("span",EG,[Bt(V("select",{id:"base",name:"base","onUpdate:modelValue":N=>O.mode=N,disabled:!c.value[M]},TG,8,CG),[[ao,O.mode]])])):(W(),K("span",IG,[O.mode=="id"?(W(),K("span",OG,"Instance")):Le("",!0),O.mode=="sha1"?(W(),K("span",PG,"Image")):Le("",!0)]))])],2))),256)),l.value.key=="path"?(W(),K("tr",LG,[V("td",MG,[V("div",NG,[RG,Bt(V("select",{"onUpdate:modelValue":I[1]||(I[1]=O=>p.value=O),disabled:d.value},VG,8,DG),[[ao,p.value]])])]),V("td",BG,[Qt(" Relatif Path "),Bt(V("input",{type:"checkbox","onUpdate:modelValue":I[2]||(I[2]=O=>m.value=O)},null,512),[[Ds,m.value]])])])):Le("",!0),V("tr",null,[V("td",WG,[V("div",YG,[d.value?Le("",!0):(W(),K("div",{key:0,class:"bbb text-center w-100",onClick:b},"Import ")),d.value?(W(),K("div",jG,GG)):Le("",!0)])])])])])):(W(),K("div",UG,[Qt(Ne(C.$t("modals.import.help.0"))+" ",1),V("ul",null,[V("li",null,Ne(C.$t("modals.import.help.1")),1),V("li",null,[Qt(Ne(C.$t("modals.import.help.2"))+" ",1),V("ul",null,[V("li",null,Ne(C.$t("modals.import.help.3")),1),V("li",null,Ne(C.$t("modals.import.help.4")),1)])]),V("li",null,[Qt(Ne(C.$t("modals.import.help.5"))+" ",1),KG,Qt(" "+Ne(C.$t("modals.import.help.6")),1)]),V("li",null,Ne(C.$t("modals.import.help.7")),1)]),Qt(" "+Ne(C.$t("modals.import.help.8"))+" ",1),V("table",null,[V("tr",null,[V("th",qG,Ne(C.$t("modals.import.help.9")),1),V("th",ZG,Ne(C.$t("modals.import.help.10")),1)]),V("tr",null,[V("td",JG,Ne(C.$t("modals.properties.multi_tags")),1),QG]),V("tr",null,[V("td",eU,Ne(C.$t("modals.properties.tag")),1),tU]),V("tr",null,[V("td",iU,Ne(C.$t("modals.properties.number")),1),sU]),V("tr",null,[V("td",nU,Ne(C.$t("modals.properties.string")),1),rU]),V("tr",null,[V("td",aU,Ne(C.$t("modals.properties.checkbox")),1),oU]),V("tr",null,[V("td",lU,Ne(C.$t("modals.properties.color")),1),cU]),V("tr",null,[V("td",uU,Ne(C.$t("modals.properties.date")),1),dU]),V("tr",null,[V("td",hU,Ne(C.$t("modals.properties.url")),1),fU])])]))]),_:1},8,["id"]))}});const gU=gt(pU,[["__scopeId","data-v-a8d31b36"]]);var mU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vU(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function z_(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var i=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(i,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),i}var H_={exports:{}};const bU=z_(pA);/**! - * Sortable 1.14.0 - * @author RubaXa - * @author owenm - * @license MIT - */function Ay(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,n)}return i}function _n(e){for(var t=1;t=0)&&(i[a]=e[a]);return i}function wU(e,t){if(e==null)return{};var i=xU(e,t),n,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _U(e){return SU(e)||EU(e)||CU(e)||AU()}function SU(e){if(Array.isArray(e))return np(e)}function EU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CU(e,t){if(e){if(typeof e=="string")return np(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return np(e,t)}}function np(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function IU(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Js(e,t,i,n){if(e){i=i||document;do{if(t!=null&&(t[0]===">"?e.parentNode===i&&Bu(e,t):Bu(e,t))||n&&e===i)return e;if(e===i)break}while(e=IU(e))}return null}var Ty=/\s+/g;function wi(e,t,i){if(e&&t)if(e.classList)e.classList[i?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(Ty," ").replace(" "+t+" "," ");e.className=(n+(i?" "+t:"")).replace(Ty," ")}}function ft(e,t,i){var n=e&&e.style;if(n){if(i===void 0)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(i=e.currentStyle),t===void 0?i:i[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=i+(typeof i=="string"?"":"px")}}function fa(e,t){var i="";if(typeof e=="string")i=e;else do{var n=ft(e,"transform");n&&n!=="none"&&(i=n+" "+i)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(i)}function W_(e,t,i){if(e){var n=e.getElementsByTagName(t),a=0,l=n.length;if(i)for(;a=l:c=a<=l,!c)return n;if(n===vn())break;n=xr(n,!1)}return!1}function Co(e,t,i,n){for(var a=0,l=0,c=e.children;l2&&arguments[2]!==void 0?arguments[2]:{},a=n.evt,l=wU(n,DU);gc.pluginEvent.bind(Et)(t,i,_n({dragEl:st,parentEl:_i,ghostEl:Rt,rootEl:gi,nextEl:ea,lastDownEl:fu,cloneEl:Si,cloneHidden:br,dragStarted:il,putSortable:Wi,activeSortable:Et.active,originalEvent:a,oldIndex:Ua,oldDraggableIndex:Al,newIndex:ws,newDraggableIndex:vr,hideGhostForTarget:K_,unhideGhostForTarget:q_,cloneNowHidden:function(){br=!0},cloneNowShown:function(){br=!1},dispatchSortableEvent:function(d){ts({sortable:i,name:d,originalEvent:a})}},l))};function ts(e){tl(_n({putSortable:Wi,cloneEl:Si,targetEl:st,rootEl:gi,oldIndex:Ua,oldDraggableIndex:Al,newIndex:ws,newDraggableIndex:vr},e))}var st,_i,Rt,gi,ea,fu,Si,br,Ua,ws,Al,vr,jc,Wi,ja=!1,Wu=!1,Yu=[],Zr,qs,Fh,zh,Ly,My,il,$a,kl,Tl=!1,Xc=!1,pu,Ki,Hh=[],rp=!1,ju=[],jd=typeof document<"u",Gc=V_,Ny=pc||Qn?"cssFloat":"float",$U=jd&&!TU&&!V_&&"draggable"in document.createElement("div"),X_=function(){if(jd){if(Qn)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),G_=function(t,i){var n=ft(t),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),l=Co(t,0,i),c=Co(t,1,i),d=l&&ft(l),p=c&&ft(c),m=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+mi(l).width,b=p&&parseInt(p.marginLeft)+parseInt(p.marginRight)+mi(c).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(l&&d.float&&d.float!=="none"){var w=d.float==="left"?"left":"right";return c&&(p.clear==="both"||p.clear===w)?"vertical":"horizontal"}return l&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||m>=a&&n[Ny]==="none"||c&&n[Ny]==="none"&&m+b>a)?"vertical":"horizontal"},FU=function(t,i,n){var a=n?t.left:t.top,l=n?t.right:t.bottom,c=n?t.width:t.height,d=n?i.left:i.top,p=n?i.right:i.bottom,m=n?i.width:i.height;return a===d||l===p||a+c/2===d+m/2},zU=function(t,i){var n;return Yu.some(function(a){var l=a[Zi].options.emptyInsertThreshold;if(!(!l||jg(a))){var c=mi(a),d=t>=c.left-l&&t<=c.right+l,p=i>=c.top-l&&i<=c.bottom+l;if(d&&p)return n=a}}),n},U_=function(t){function i(l,c){return function(d,p,m,b){var w=d.options.group.name&&p.options.group.name&&d.options.group.name===p.options.group.name;if(l==null&&(c||w))return!0;if(l==null||l===!1)return!1;if(c&&l==="clone")return l;if(typeof l=="function")return i(l(d,p,m,b),c)(d,p,m,b);var _=(c?d:p).options.group.name;return l===!0||typeof l=="string"&&l===_||l.join&&l.indexOf(_)>-1}}var n={},a=t.group;(!a||hu(a)!="object")&&(a={name:a}),n.name=a.name,n.checkPull=i(a.pull,!0),n.checkPut=i(a.put),n.revertClone=a.revertClone,t.group=n},K_=function(){!X_&&Rt&&ft(Rt,"display","none")},q_=function(){!X_&&Rt&&ft(Rt,"display","")};jd&&document.addEventListener("click",function(e){if(Wu)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Wu=!1,!1},!0);var Jr=function(t){if(st){t=t.touches?t.touches[0]:t;var i=zU(t.clientX,t.clientY);if(i){var n={};for(var a in t)t.hasOwnProperty(a)&&(n[a]=t[a]);n.target=n.rootEl=i,n.preventDefault=void 0,n.stopPropagation=void 0,i[Zi]._onDragOver(n)}}},HU=function(t){st&&st.parentNode[Zi]._isOutsideThisEl(t.target)};function Et(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Ys({},t),e[Zi]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return G_(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(c,d){c.setData("Text",d.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Et.supportPointer!==!1&&"PointerEvent"in window&&!El,emptyInsertThreshold:5};gc.initializePlugins(this,e,i);for(var n in i)!(n in t)&&(t[n]=i[n]);U_(t);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=t.forceFallback?!1:$U,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Gt(e,"pointerdown",this._onTapStart):(Gt(e,"mousedown",this._onTapStart),Gt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Gt(e,"dragover",this),Gt(e,"dragenter",this)),Yu.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ys(this,MU())}Et.prototype={constructor:Et,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&($a=null)},_getDirection:function(t,i){return typeof this.options.direction=="function"?this.options.direction.call(this,t,i,st):this.options.direction},_onTapStart:function(t){if(t.cancelable){var i=this,n=this.el,a=this.options,l=a.preventOnFilter,c=t.type,d=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,p=(d||t).target,m=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||p,b=a.filter;if(UU(n),!st&&!(/mousedown|pointerdown/.test(c)&&t.button!==0||a.disabled)&&!m.isContentEditable&&!(!this.nativeDraggable&&El&&p&&p.tagName.toUpperCase()==="SELECT")&&(p=Js(p,a.draggable,n,!1),!(p&&p.animated)&&fu!==p)){if(Ua=Ei(p),Al=Ei(p,a.draggable),typeof b=="function"){if(b.call(this,t,p,this)){ts({sortable:i,rootEl:m,name:"filter",targetEl:p,toEl:n,fromEl:n}),ds("filter",i,{evt:t}),l&&t.cancelable&&t.preventDefault();return}}else if(b&&(b=b.split(",").some(function(w){if(w=Js(m,w.trim(),n,!1),w)return ts({sortable:i,rootEl:w,name:"filter",targetEl:p,fromEl:n,toEl:n}),ds("filter",i,{evt:t}),!0}),b)){l&&t.cancelable&&t.preventDefault();return}a.handle&&!Js(m,a.handle,n,!1)||this._prepareDragStart(t,d,p)}}},_prepareDragStart:function(t,i,n){var a=this,l=a.el,c=a.options,d=l.ownerDocument,p;if(n&&!st&&n.parentNode===l){var m=mi(n);if(gi=l,st=n,_i=st.parentNode,ea=st.nextSibling,fu=n,jc=c.group,Et.dragged=st,Zr={target:st,clientX:(i||t).clientX,clientY:(i||t).clientY},Ly=Zr.clientX-m.left,My=Zr.clientY-m.top,this._lastX=(i||t).clientX,this._lastY=(i||t).clientY,st.style["will-change"]="all",p=function(){if(ds("delayEnded",a,{evt:t}),Et.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!ky&&a.nativeDraggable&&(st.draggable=!0),a._triggerDragStart(t,i),ts({sortable:a,name:"choose",originalEvent:t}),wi(st,c.chosenClass,!0)},c.ignore.split(",").forEach(function(b){W_(st,b.trim(),Vh)}),Gt(d,"dragover",Jr),Gt(d,"mousemove",Jr),Gt(d,"touchmove",Jr),Gt(d,"mouseup",a._onDrop),Gt(d,"touchend",a._onDrop),Gt(d,"touchcancel",a._onDrop),ky&&this.nativeDraggable&&(this.options.touchStartThreshold=4,st.draggable=!0),ds("delayStart",this,{evt:t}),c.delay&&(!c.delayOnTouchOnly||i)&&(!this.nativeDraggable||!(pc||Qn))){if(Et.eventCanceled){this._onDrop();return}Gt(d,"mouseup",a._disableDelayedDrag),Gt(d,"touchend",a._disableDelayedDrag),Gt(d,"touchcancel",a._disableDelayedDrag),Gt(d,"mousemove",a._delayedDragTouchMoveHandler),Gt(d,"touchmove",a._delayedDragTouchMoveHandler),c.supportPointer&&Gt(d,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(p,c.delay)}else p()}},_delayedDragTouchMoveHandler:function(t){var i=t.touches?t.touches[0]:t;Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){st&&Vh(st),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Vt(t,"mouseup",this._disableDelayedDrag),Vt(t,"touchend",this._disableDelayedDrag),Vt(t,"touchcancel",this._disableDelayedDrag),Vt(t,"mousemove",this._delayedDragTouchMoveHandler),Vt(t,"touchmove",this._delayedDragTouchMoveHandler),Vt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,i){i=i||t.pointerType=="touch"&&t,!this.nativeDraggable||i?this.options.supportPointer?Gt(document,"pointermove",this._onTouchMove):i?Gt(document,"touchmove",this._onTouchMove):Gt(document,"mousemove",this._onTouchMove):(Gt(st,"dragend",this),Gt(gi,"dragstart",this._onDragStart));try{document.selection?gu(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,i){if(ja=!1,gi&&st){ds("dragStarted",this,{evt:i}),this.nativeDraggable&&Gt(document,"dragover",HU);var n=this.options;!t&&wi(st,n.dragClass,!1),wi(st,n.ghostClass,!0),Et.active=this,t&&this._appendGhost(),ts({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(qs){this._lastX=qs.clientX,this._lastY=qs.clientY,K_();for(var t=document.elementFromPoint(qs.clientX,qs.clientY),i=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(qs.clientX,qs.clientY),t!==i);)i=t;if(st.parentNode[Zi]._isOutsideThisEl(t),i)do{if(i[Zi]){var n=void 0;if(n=i[Zi]._onDragOver({clientX:qs.clientX,clientY:qs.clientY,target:t,rootEl:i}),n&&!this.options.dragoverBubble)break}t=i}while(i=i.parentNode);q_()}},_onTouchMove:function(t){if(Zr){var i=this.options,n=i.fallbackTolerance,a=i.fallbackOffset,l=t.touches?t.touches[0]:t,c=Rt&&fa(Rt,!0),d=Rt&&c&&c.a,p=Rt&&c&&c.d,m=Gc&&Ki&&Oy(Ki),b=(l.clientX-Zr.clientX+a.x)/(d||1)+(m?m[0]-Hh[0]:0)/(d||1),w=(l.clientY-Zr.clientY+a.y)/(p||1)+(m?m[1]-Hh[1]:0)/(p||1);if(!Et.active&&!ja){if(n&&Math.max(Math.abs(l.clientX-this._lastX),Math.abs(l.clientY-this._lastY))=0&&(ts({rootEl:_i,name:"add",toEl:_i,fromEl:gi,originalEvent:t}),ts({sortable:this,name:"remove",toEl:_i,originalEvent:t}),ts({rootEl:_i,name:"sort",toEl:_i,fromEl:gi,originalEvent:t}),ts({sortable:this,name:"sort",toEl:_i,originalEvent:t})),Wi&&Wi.save()):ws!==Ua&&ws>=0&&(ts({sortable:this,name:"update",toEl:_i,originalEvent:t}),ts({sortable:this,name:"sort",toEl:_i,originalEvent:t})),Et.active&&((ws==null||ws===-1)&&(ws=Ua,vr=Al),ts({sortable:this,name:"end",toEl:_i,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){ds("nulling",this),gi=st=_i=Rt=ea=Si=fu=br=Zr=qs=il=ws=vr=Ua=Al=$a=kl=Wi=jc=Et.dragged=Et.ghost=Et.clone=Et.active=null,ju.forEach(function(t){t.checked=!0}),ju.length=Fh=zh=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":st&&(this._onDragOver(t),VU(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],i,n=this.el.children,a=0,l=n.length,c=this.options;an.right+a||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+a}function jU(e,t,i,n,a,l,c,d){var p=n?e.clientY:e.clientX,m=n?i.height:i.width,b=n?i.top:i.left,w=n?i.bottom:i.right,_=!1;if(!c){if(d&&pub+m*l/2:pw-pu)return-kl}else if(p>b+m*(1-a)/2&&pw-m*l/2)?p>b+m/2?1:-1:0}function XU(e){return Ei(st)1&&(Nt.forEach(function(d){l.addAnimationState({target:d,rect:hs?mi(d):c}),Dh(d),d.fromRect=c,n.removeAnimationState(d)}),hs=!1,QU(!this.options.removeCloneOnHide,a))},dragOverCompleted:function(i){var n=i.sortable,a=i.isOwner,l=i.insertion,c=i.activeSortable,d=i.parentEl,p=i.putSortable,m=this.options;if(l){if(a&&c._hideClone(),Ko=!1,m.animation&&Nt.length>1&&(hs||!a&&!c.options.sort&&!p)){var b=mi(hi,!1,!0,!0);Nt.forEach(function(_){_!==hi&&(Py(_,b),d.appendChild(_))}),hs=!0}if(!a)if(hs||qc(),Nt.length>1){var w=Kc;c._showClone(n),c.options.animation&&!Kc&&w&&xs.forEach(function(_){c.addAnimationState({target:_,rect:qo}),_.fromRect=qo,_.thisAnimationDuration=null})}else c._showClone(n)}},dragOverAnimationCapture:function(i){var n=i.dragRect,a=i.isOwner,l=i.activeSortable;if(Nt.forEach(function(d){d.thisAnimationDuration=null}),l.options.animation&&!a&&l.multiDrag.isMultiDrag){qo=Ys({},n);var c=fa(hi,!0);qo.top-=c.f,qo.left-=c.e}},dragOverAnimationComplete:function(){hs&&(hs=!1,qc())},drop:function(i){var n=i.originalEvent,a=i.rootEl,l=i.parentEl,c=i.sortable,d=i.dispatchSortableEvent,p=i.oldIndex,m=i.putSortable,b=m||this.sortable;if(n){var w=this.options,_=l.children;if(!Fa)if(w.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),wi(hi,w.selectedClass,!~Nt.indexOf(hi)),~Nt.indexOf(hi))Nt.splice(Nt.indexOf(hi),1),Uo=null,tl({sortable:c,rootEl:a,name:"deselect",targetEl:hi,originalEvt:n});else{if(Nt.push(hi),tl({sortable:c,rootEl:a,name:"select",targetEl:hi,originalEvt:n}),n.shiftKey&&Uo&&c.el.contains(Uo)){var C=Ei(Uo),I=Ei(hi);if(~C&&~I&&C!==I){var O,M;for(I>C?(M=C,O=I):(M=I,O=C+1);M1){var N=mi(hi),k=Ei(hi,":not(."+this.options.selectedClass+")");if(!Ko&&w.animation&&(hi.thisAnimationDuration=null),b.captureAnimationState(),!Ko&&(w.animation&&(hi.fromRect=N,Nt.forEach(function(P){if(P.thisAnimationDuration=null,P!==hi){var $=hs?mi(P):N;P.fromRect=$,b.addAnimationState({target:P,rect:$})}})),qc(),Nt.forEach(function(P){_[k]?l.insertBefore(P,_[k]):l.appendChild(P),k++}),p===Ei(hi))){var D=!1;Nt.forEach(function(P){if(P.sortableIndex!==Ei(P)){D=!0;return}}),D&&d("update")}Nt.forEach(function(P){Dh(P)}),b.animateAll()}Zs=b}(a===l||m&&m.lastPutMode!=="clone")&&xs.forEach(function(P){P.parentNode&&P.parentNode.removeChild(P)})}},nullingGlobal:function(){this.isMultiDrag=Fa=!1,xs.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Vt(document,"pointerup",this._deselectMultiDrag),Vt(document,"mouseup",this._deselectMultiDrag),Vt(document,"touchend",this._deselectMultiDrag),Vt(document,"keydown",this._checkKeyDown),Vt(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(i){if(!(typeof Fa<"u"&&Fa)&&Zs===this.sortable&&!(i&&Js(i.target,this.options.draggable,this.sortable.el,!1))&&!(i&&i.button!==0))for(;Nt.length;){var n=Nt[0];wi(n,this.options.selectedClass,!1),Nt.shift(),tl({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvt:i})}},_checkKeyDown:function(i){i.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(i){i.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Ys(e,{pluginName:"multiDrag",utils:{select:function(i){var n=i.parentNode[Zi];!n||!n.options.multiDrag||~Nt.indexOf(i)||(Zs&&Zs!==n&&(Zs.multiDrag._deselectMultiDrag(),Zs=n),wi(i,n.options.selectedClass,!0),Nt.push(i))},deselect:function(i){var n=i.parentNode[Zi],a=Nt.indexOf(i);!n||!n.options.multiDrag||!~a||(wi(i,n.options.selectedClass,!1),Nt.splice(a,1))}},eventProperties:function(){var i=this,n=[],a=[];return Nt.forEach(function(l){n.push({multiDragElement:l,index:l.sortableIndex});var c;hs&&l!==hi?c=-1:hs?c=Ei(l,":not(."+i.options.selectedClass+")"):c=Ei(l),a.push({multiDragElement:l,index:c})}),{items:_U(Nt),clones:[].concat(xs),oldIndicies:n,newIndicies:a}},optionListeners:{multiDragKey:function(i){return i=i.toLowerCase(),i==="ctrl"?i="Control":i.length>1&&(i=i.charAt(0).toUpperCase()+i.substr(1)),i}}})}function QU(e,t){Nt.forEach(function(i,n){var a=t.children[i.sortableIndex+(e?Number(n):0)];a?t.insertBefore(i,a):t.appendChild(i)})}function Dy(e,t){xs.forEach(function(i,n){var a=t.children[i.sortableIndex+(e?Number(n):0)];a?t.insertBefore(i,a):t.appendChild(i)})}function qc(){Nt.forEach(function(e){e!==hi&&e.parentNode&&e.parentNode.removeChild(e)})}Et.mount(new KU);Et.mount(Ug,Gg);const e5=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:JU,Sortable:Et,Swap:qU,default:Et},Symbol.toStringTag,{value:"Module"})),t5=z_(e5);(function(e,t){(function(n,a){e.exports=a(bU,t5)})(typeof self<"u"?self:mU,function(i,n){return function(a){var l={};function c(d){if(l[d])return l[d].exports;var p=l[d]={i:d,l:!1,exports:{}};return a[d].call(p.exports,p,p.exports,c),p.l=!0,p.exports}return c.m=a,c.c=l,c.d=function(d,p,m){c.o(d,p)||Object.defineProperty(d,p,{enumerable:!0,get:m})},c.r=function(d){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},c.t=function(d,p){if(p&1&&(d=c(d)),p&8||p&4&&typeof d=="object"&&d&&d.__esModule)return d;var m=Object.create(null);if(c.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:d}),p&2&&typeof d!="string")for(var b in d)c.d(m,b,(function(w){return d[w]}).bind(null,b));return m},c.n=function(d){var p=d&&d.__esModule?function(){return d.default}:function(){return d};return c.d(p,"a",p),p},c.o=function(d,p){return Object.prototype.hasOwnProperty.call(d,p)},c.p="",c(c.s="fb15")}({"00ee":function(a,l,c){var d=c("b622"),p=d("toStringTag"),m={};m[p]="z",a.exports=String(m)==="[object z]"},"0366":function(a,l,c){var d=c("1c0b");a.exports=function(p,m,b){if(d(p),m===void 0)return p;switch(b){case 0:return function(){return p.call(m)};case 1:return function(w){return p.call(m,w)};case 2:return function(w,_){return p.call(m,w,_)};case 3:return function(w,_,C){return p.call(m,w,_,C)}}return function(){return p.apply(m,arguments)}}},"057f":function(a,l,c){var d=c("fc6a"),p=c("241c").f,m={}.toString,b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],w=function(_){try{return p(_)}catch{return b.slice()}};a.exports.f=function(C){return b&&m.call(C)=="[object Window]"?w(C):p(d(C))}},"06cf":function(a,l,c){var d=c("83ab"),p=c("d1e7"),m=c("5c6c"),b=c("fc6a"),w=c("c04e"),_=c("5135"),C=c("0cfb"),I=Object.getOwnPropertyDescriptor;l.f=d?I:function(M,N){if(M=b(M),N=w(N,!0),C)try{return I(M,N)}catch{}if(_(M,N))return m(!p.f.call(M,N),M[N])}},"0cfb":function(a,l,c){var d=c("83ab"),p=c("d039"),m=c("cc12");a.exports=!d&&!p(function(){return Object.defineProperty(m("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(a,l,c){var d=c("23e7"),p=c("d58f").left,m=c("a640"),b=c("ae40"),w=m("reduce"),_=b("reduce",{1:0});d({target:"Array",proto:!0,forced:!w||!_},{reduce:function(I){return p(this,I,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(a,l,c){var d=c("c6b6"),p=c("9263");a.exports=function(m,b){var w=m.exec;if(typeof w=="function"){var _=w.call(m,b);if(typeof _!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return _}if(d(m)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return p.call(m,b)}},"159b":function(a,l,c){var d=c("da84"),p=c("fdbc"),m=c("17c2"),b=c("9112");for(var w in p){var _=d[w],C=_&&_.prototype;if(C&&C.forEach!==m)try{b(C,"forEach",m)}catch{C.forEach=m}}},"17c2":function(a,l,c){var d=c("b727").forEach,p=c("a640"),m=c("ae40"),b=p("forEach"),w=m("forEach");a.exports=!b||!w?function(C){return d(this,C,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(a,l,c){var d=c("d066");a.exports=d("document","documentElement")},"1c0b":function(a,l){a.exports=function(c){if(typeof c!="function")throw TypeError(String(c)+" is not a function");return c}},"1c7e":function(a,l,c){var d=c("b622"),p=d("iterator"),m=!1;try{var b=0,w={next:function(){return{done:!!b++}},return:function(){m=!0}};w[p]=function(){return this},Array.from(w,function(){throw 2})}catch{}a.exports=function(_,C){if(!C&&!m)return!1;var I=!1;try{var O={};O[p]=function(){return{next:function(){return{done:I=!0}}}},_(O)}catch{}return I}},"1d80":function(a,l){a.exports=function(c){if(c==null)throw TypeError("Can't call method on "+c);return c}},"1dde":function(a,l,c){var d=c("d039"),p=c("b622"),m=c("2d00"),b=p("species");a.exports=function(w){return m>=51||!d(function(){var _=[],C=_.constructor={};return C[b]=function(){return{foo:1}},_[w](Boolean).foo!==1})}},"23cb":function(a,l,c){var d=c("a691"),p=Math.max,m=Math.min;a.exports=function(b,w){var _=d(b);return _<0?p(_+w,0):m(_,w)}},"23e7":function(a,l,c){var d=c("da84"),p=c("06cf").f,m=c("9112"),b=c("6eeb"),w=c("ce4e"),_=c("e893"),C=c("94ca");a.exports=function(I,O){var M=I.target,N=I.global,k=I.stat,D,P,$,H,ee,se;if(N?P=d:k?P=d[M]||w(M,{}):P=(d[M]||{}).prototype,P)for($ in O){if(ee=O[$],I.noTargetGet?(se=p(P,$),H=se&&se.value):H=P[$],D=C(N?$:M+(k?".":"#")+$,I.forced),!D&&H!==void 0){if(typeof ee==typeof H)continue;_(ee,H)}(I.sham||H&&H.sham)&&m(ee,"sham",!0),b(P,$,ee,I)}}},"241c":function(a,l,c){var d=c("ca84"),p=c("7839"),m=p.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(w){return d(w,m)}},"25f0":function(a,l,c){var d=c("6eeb"),p=c("825a"),m=c("d039"),b=c("ad6d"),w="toString",_=RegExp.prototype,C=_[w],I=m(function(){return C.call({source:"a",flags:"b"})!="/a/b"}),O=C.name!=w;(I||O)&&d(RegExp.prototype,w,function(){var N=p(this),k=String(N.source),D=N.flags,P=String(D===void 0&&N instanceof RegExp&&!("flags"in _)?b.call(N):D);return"/"+k+"/"+P},{unsafe:!0})},"2ca0":function(a,l,c){var d=c("23e7"),p=c("06cf").f,m=c("50c4"),b=c("5a34"),w=c("1d80"),_=c("ab13"),C=c("c430"),I="".startsWith,O=Math.min,M=_("startsWith"),N=!C&&!M&&!!function(){var k=p(String.prototype,"startsWith");return k&&!k.writable}();d({target:"String",proto:!0,forced:!N&&!M},{startsWith:function(D){var P=String(w(this));b(D);var $=m(O(arguments.length>1?arguments[1]:void 0,P.length)),H=String(D);return I?I.call(P,H,$):P.slice($,$+H.length)===H}})},"2d00":function(a,l,c){var d=c("da84"),p=c("342f"),m=d.process,b=m&&m.versions,w=b&&b.v8,_,C;w?(_=w.split("."),C=_[0]+_[1]):p&&(_=p.match(/Edge\/(\d+)/),(!_||_[1]>=74)&&(_=p.match(/Chrome\/(\d+)/),_&&(C=_[1]))),a.exports=C&&+C},"342f":function(a,l,c){var d=c("d066");a.exports=d("navigator","userAgent")||""},"35a1":function(a,l,c){var d=c("f5df"),p=c("3f8c"),m=c("b622"),b=m("iterator");a.exports=function(w){if(w!=null)return w[b]||w["@@iterator"]||p[d(w)]}},"37e8":function(a,l,c){var d=c("83ab"),p=c("9bf2"),m=c("825a"),b=c("df75");a.exports=d?Object.defineProperties:function(_,C){m(_);for(var I=b(C),O=I.length,M=0,N;O>M;)p.f(_,N=I[M++],C[N]);return _}},"3bbe":function(a,l,c){var d=c("861d");a.exports=function(p){if(!d(p)&&p!==null)throw TypeError("Can't set "+String(p)+" as a prototype");return p}},"3ca3":function(a,l,c){var d=c("6547").charAt,p=c("69f3"),m=c("7dd0"),b="String Iterator",w=p.set,_=p.getterFor(b);m(String,"String",function(C){w(this,{type:b,string:String(C),index:0})},function(){var I=_(this),O=I.string,M=I.index,N;return M>=O.length?{value:void 0,done:!0}:(N=d(O,M),I.index+=N.length,{value:N,done:!1})})},"3f8c":function(a,l){a.exports={}},4160:function(a,l,c){var d=c("23e7"),p=c("17c2");d({target:"Array",proto:!0,forced:[].forEach!=p},{forEach:p})},"428f":function(a,l,c){var d=c("da84");a.exports=d},"44ad":function(a,l,c){var d=c("d039"),p=c("c6b6"),m="".split;a.exports=d(function(){return!Object("z").propertyIsEnumerable(0)})?function(b){return p(b)=="String"?m.call(b,""):Object(b)}:Object},"44d2":function(a,l,c){var d=c("b622"),p=c("7c73"),m=c("9bf2"),b=d("unscopables"),w=Array.prototype;w[b]==null&&m.f(w,b,{configurable:!0,value:p(null)}),a.exports=function(_){w[b][_]=!0}},"44e7":function(a,l,c){var d=c("861d"),p=c("c6b6"),m=c("b622"),b=m("match");a.exports=function(w){var _;return d(w)&&((_=w[b])!==void 0?!!_:p(w)=="RegExp")}},4930:function(a,l,c){var d=c("d039");a.exports=!!Object.getOwnPropertySymbols&&!d(function(){return!String(Symbol())})},"4d64":function(a,l,c){var d=c("fc6a"),p=c("50c4"),m=c("23cb"),b=function(w){return function(_,C,I){var O=d(_),M=p(O.length),N=m(I,M),k;if(w&&C!=C){for(;M>N;)if(k=O[N++],k!=k)return!0}else for(;M>N;N++)if((w||N in O)&&O[N]===C)return w||N||0;return!w&&-1}};a.exports={includes:b(!0),indexOf:b(!1)}},"4de4":function(a,l,c){var d=c("23e7"),p=c("b727").filter,m=c("1dde"),b=c("ae40"),w=m("filter"),_=b("filter");d({target:"Array",proto:!0,forced:!w||!_},{filter:function(I){return p(this,I,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(a,l,c){var d=c("0366"),p=c("7b0b"),m=c("9bdd"),b=c("e95a"),w=c("50c4"),_=c("8418"),C=c("35a1");a.exports=function(O){var M=p(O),N=typeof this=="function"?this:Array,k=arguments.length,D=k>1?arguments[1]:void 0,P=D!==void 0,$=C(M),H=0,ee,se,Q,te,ce,oe;if(P&&(D=d(D,k>2?arguments[2]:void 0,2)),$!=null&&!(N==Array&&b($)))for(te=$.call(M),ce=te.next,se=new N;!(Q=ce.call(te)).done;H++)oe=P?m(te,D,[Q.value,H],!0):Q.value,_(se,H,oe);else for(ee=w(M.length),se=new N(ee);ee>H;H++)oe=P?D(M[H],H):M[H],_(se,H,oe);return se.length=H,se}},"4fad":function(a,l,c){var d=c("23e7"),p=c("6f53").entries;d({target:"Object",stat:!0},{entries:function(b){return p(b)}})},"50c4":function(a,l,c){var d=c("a691"),p=Math.min;a.exports=function(m){return m>0?p(d(m),9007199254740991):0}},5135:function(a,l){var c={}.hasOwnProperty;a.exports=function(d,p){return c.call(d,p)}},5319:function(a,l,c){var d=c("d784"),p=c("825a"),m=c("7b0b"),b=c("50c4"),w=c("a691"),_=c("1d80"),C=c("8aa5"),I=c("14c3"),O=Math.max,M=Math.min,N=Math.floor,k=/\$([$&'`]|\d\d?|<[^>]*>)/g,D=/\$([$&'`]|\d\d?)/g,P=function($){return $===void 0?$:String($)};d("replace",2,function($,H,ee,se){var Q=se.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,te=se.REPLACE_KEEPS_$0,ce=Q?"$":"$0";return[function(be,Ce){var re=_(this),Z=be==null?void 0:be[$];return Z!==void 0?Z.call(be,re,Ce):H.call(String(re),be,Ce)},function(de,be){if(!Q&&te||typeof be=="string"&&be.indexOf(ce)===-1){var Ce=ee(H,de,this,be);if(Ce.done)return Ce.value}var re=p(de),Z=String(this),U=typeof be=="function";U||(be=String(be));var fe=re.global;if(fe){var he=re.unicode;re.lastIndex=0}for(var ue=[];;){var ve=I(re,Z);if(ve===null||(ue.push(ve),!fe))break;var Re=String(ve[0]);Re===""&&(re.lastIndex=C(Z,b(re.lastIndex),he))}for(var et="",Ee=0,Fe=0;Fe=Ee&&(et+=Z.slice(Ee,Ie)+j,Ee=Ie+_e.length)}return et+Z.slice(Ee)}];function oe(de,be,Ce,re,Z,U){var fe=Ce+de.length,he=re.length,ue=D;return Z!==void 0&&(Z=m(Z),ue=k),H.call(U,ue,function(ve,Re){var et;switch(Re.charAt(0)){case"$":return"$";case"&":return de;case"`":return be.slice(0,Ce);case"'":return be.slice(fe);case"<":et=Z[Re.slice(1,-1)];break;default:var Ee=+Re;if(Ee===0)return ve;if(Ee>he){var Fe=N(Ee/10);return Fe===0?ve:Fe<=he?re[Fe-1]===void 0?Re.charAt(1):re[Fe-1]+Re.charAt(1):ve}et=re[Ee-1]}return et===void 0?"":et})}})},5692:function(a,l,c){var d=c("c430"),p=c("c6cd");(a.exports=function(m,b){return p[m]||(p[m]=b!==void 0?b:{})})("versions",[]).push({version:"3.6.5",mode:d?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(a,l,c){var d=c("d066"),p=c("241c"),m=c("7418"),b=c("825a");a.exports=d("Reflect","ownKeys")||function(_){var C=p.f(b(_)),I=m.f;return I?C.concat(I(_)):C}},"5a34":function(a,l,c){var d=c("44e7");a.exports=function(p){if(d(p))throw TypeError("The method doesn't accept regular expressions");return p}},"5c6c":function(a,l){a.exports=function(c,d){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:d}}},"5db7":function(a,l,c){var d=c("23e7"),p=c("a2bf"),m=c("7b0b"),b=c("50c4"),w=c("1c0b"),_=c("65f0");d({target:"Array",proto:!0},{flatMap:function(I){var O=m(this),M=b(O.length),N;return w(I),N=_(O,0),N.length=p(N,O,O,M,0,1,I,arguments.length>1?arguments[1]:void 0),N}})},6547:function(a,l,c){var d=c("a691"),p=c("1d80"),m=function(b){return function(w,_){var C=String(p(w)),I=d(_),O=C.length,M,N;return I<0||I>=O?b?"":void 0:(M=C.charCodeAt(I),M<55296||M>56319||I+1===O||(N=C.charCodeAt(I+1))<56320||N>57343?b?C.charAt(I):M:b?C.slice(I,I+2):(M-55296<<10)+(N-56320)+65536)}};a.exports={codeAt:m(!1),charAt:m(!0)}},"65f0":function(a,l,c){var d=c("861d"),p=c("e8b5"),m=c("b622"),b=m("species");a.exports=function(w,_){var C;return p(w)&&(C=w.constructor,typeof C=="function"&&(C===Array||p(C.prototype))?C=void 0:d(C)&&(C=C[b],C===null&&(C=void 0))),new(C===void 0?Array:C)(_===0?0:_)}},"69f3":function(a,l,c){var d=c("7f9a"),p=c("da84"),m=c("861d"),b=c("9112"),w=c("5135"),_=c("f772"),C=c("d012"),I=p.WeakMap,O,M,N,k=function(Q){return N(Q)?M(Q):O(Q,{})},D=function(Q){return function(te){var ce;if(!m(te)||(ce=M(te)).type!==Q)throw TypeError("Incompatible receiver, "+Q+" required");return ce}};if(d){var P=new I,$=P.get,H=P.has,ee=P.set;O=function(Q,te){return ee.call(P,Q,te),te},M=function(Q){return $.call(P,Q)||{}},N=function(Q){return H.call(P,Q)}}else{var se=_("state");C[se]=!0,O=function(Q,te){return b(Q,se,te),te},M=function(Q){return w(Q,se)?Q[se]:{}},N=function(Q){return w(Q,se)}}a.exports={set:O,get:M,has:N,enforce:k,getterFor:D}},"6eeb":function(a,l,c){var d=c("da84"),p=c("9112"),m=c("5135"),b=c("ce4e"),w=c("8925"),_=c("69f3"),C=_.get,I=_.enforce,O=String(String).split("String");(a.exports=function(M,N,k,D){var P=D?!!D.unsafe:!1,$=D?!!D.enumerable:!1,H=D?!!D.noTargetGet:!1;if(typeof k=="function"&&(typeof N=="string"&&!m(k,"name")&&p(k,"name",N),I(k).source=O.join(typeof N=="string"?N:"")),M===d){$?M[N]=k:b(N,k);return}else P?!H&&M[N]&&($=!0):delete M[N];$?M[N]=k:p(M,N,k)})(Function.prototype,"toString",function(){return typeof this=="function"&&C(this).source||w(this)})},"6f53":function(a,l,c){var d=c("83ab"),p=c("df75"),m=c("fc6a"),b=c("d1e7").f,w=function(_){return function(C){for(var I=m(C),O=p(I),M=O.length,N=0,k=[],D;M>N;)D=O[N++],(!d||b.call(I,D))&&k.push(_?[D,I[D]]:I[D]);return k}};a.exports={entries:w(!0),values:w(!1)}},"73d9":function(a,l,c){var d=c("44d2");d("flatMap")},7418:function(a,l){l.f=Object.getOwnPropertySymbols},"746f":function(a,l,c){var d=c("428f"),p=c("5135"),m=c("e538"),b=c("9bf2").f;a.exports=function(w){var _=d.Symbol||(d.Symbol={});p(_,w)||b(_,w,{value:m.f(w)})}},7839:function(a,l){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(a,l,c){var d=c("1d80");a.exports=function(p){return Object(d(p))}},"7c73":function(a,l,c){var d=c("825a"),p=c("37e8"),m=c("7839"),b=c("d012"),w=c("1be4"),_=c("cc12"),C=c("f772"),I=">",O="<",M="prototype",N="script",k=C("IE_PROTO"),D=function(){},P=function(Q){return O+N+I+Q+O+"/"+N+I},$=function(Q){Q.write(P("")),Q.close();var te=Q.parentWindow.Object;return Q=null,te},H=function(){var Q=_("iframe"),te="java"+N+":",ce;return Q.style.display="none",w.appendChild(Q),Q.src=String(te),ce=Q.contentWindow.document,ce.open(),ce.write(P("document.F=Object")),ce.close(),ce.F},ee,se=function(){try{ee=document.domain&&new ActiveXObject("htmlfile")}catch{}se=ee?$(ee):H();for(var Q=m.length;Q--;)delete se[M][m[Q]];return se()};b[k]=!0,a.exports=Object.create||function(te,ce){var oe;return te!==null?(D[M]=d(te),oe=new D,D[M]=null,oe[k]=te):oe=se(),ce===void 0?oe:p(oe,ce)}},"7dd0":function(a,l,c){var d=c("23e7"),p=c("9ed3"),m=c("e163"),b=c("d2bb"),w=c("d44e"),_=c("9112"),C=c("6eeb"),I=c("b622"),O=c("c430"),M=c("3f8c"),N=c("ae93"),k=N.IteratorPrototype,D=N.BUGGY_SAFARI_ITERATORS,P=I("iterator"),$="keys",H="values",ee="entries",se=function(){return this};a.exports=function(Q,te,ce,oe,de,be,Ce){p(ce,te,oe);var re=function(Fe){if(Fe===de&&ue)return ue;if(!D&&Fe in fe)return fe[Fe];switch(Fe){case $:return function(){return new ce(this,Fe)};case H:return function(){return new ce(this,Fe)};case ee:return function(){return new ce(this,Fe)}}return function(){return new ce(this)}},Z=te+" Iterator",U=!1,fe=Q.prototype,he=fe[P]||fe["@@iterator"]||de&&fe[de],ue=!D&&he||re(de),ve=te=="Array"&&fe.entries||he,Re,et,Ee;if(ve&&(Re=m(ve.call(new Q)),k!==Object.prototype&&Re.next&&(!O&&m(Re)!==k&&(b?b(Re,k):typeof Re[P]!="function"&&_(Re,P,se)),w(Re,Z,!0,!0),O&&(M[Z]=se))),de==H&&he&&he.name!==H&&(U=!0,ue=function(){return he.call(this)}),(!O||Ce)&&fe[P]!==ue&&_(fe,P,ue),M[te]=ue,de)if(et={values:re(H),keys:be?ue:re($),entries:re(ee)},Ce)for(Ee in et)(D||U||!(Ee in fe))&&C(fe,Ee,et[Ee]);else d({target:te,proto:!0,forced:D||U},et);return et}},"7f9a":function(a,l,c){var d=c("da84"),p=c("8925"),m=d.WeakMap;a.exports=typeof m=="function"&&/native code/.test(p(m))},"825a":function(a,l,c){var d=c("861d");a.exports=function(p){if(!d(p))throw TypeError(String(p)+" is not an object");return p}},"83ab":function(a,l,c){var d=c("d039");a.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(a,l,c){var d=c("c04e"),p=c("9bf2"),m=c("5c6c");a.exports=function(b,w,_){var C=d(w);C in b?p.f(b,C,m(0,_)):b[C]=_}},"861d":function(a,l){a.exports=function(c){return typeof c=="object"?c!==null:typeof c=="function"}},8875:function(a,l,c){var d,p,m;(function(b,w){p=[],d=w,m=typeof d=="function"?d.apply(l,p):d,m!==void 0&&(a.exports=m)})(typeof self<"u"?self:this,function(){function b(){var w=Object.getOwnPropertyDescriptor(document,"currentScript");if(!w&&"currentScript"in document&&document.currentScript||w&&w.get!==b&&document.currentScript)return document.currentScript;try{throw new Error}catch(ee){var _=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,C=/@([^@]*):(\d+):(\d+)\s*$/ig,I=_.exec(ee.stack)||C.exec(ee.stack),O=I&&I[1]||!1,M=I&&I[2]||!1,N=document.location.href.replace(document.location.hash,""),k,D,P,$=document.getElementsByTagName("script");O===N&&(k=document.documentElement.outerHTML,D=new RegExp("(?:[^\\n]+?\\n){0,"+(M-2)+"}[^<]* - + +