From 973bce6759f5212cebb30fc68b284d054ba4328d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix?= Date: Wed, 18 Dec 2024 10:18:00 +0100 Subject: [PATCH] new front build 2 --- .../panoptic/html/assets/HomeView-1865112a.js | 1 + .../html/assets/PanopticView-06ae2245.js | 1 + .../html/assets/PanopticView-d5ad3924.css | 1 + .../panoptic/html/assets/TestView-e46f42b0.js | 3 + .../panoptic/html/assets/Tutorial-3004321d.js | 1 + .../panoptic/html/assets/index-2658e7f4.js | 791 ++++++++++++++++++ .../panoptic/html/assets/index-e3973def.css | 10 + 7 files changed, 808 insertions(+) create mode 100644 panoptic_back/panoptic/html/assets/HomeView-1865112a.js create mode 100644 panoptic_back/panoptic/html/assets/PanopticView-06ae2245.js create mode 100644 panoptic_back/panoptic/html/assets/PanopticView-d5ad3924.css create mode 100644 panoptic_back/panoptic/html/assets/TestView-e46f42b0.js create mode 100644 panoptic_back/panoptic/html/assets/Tutorial-3004321d.js create mode 100644 panoptic_back/panoptic/html/assets/index-2658e7f4.js create mode 100644 panoptic_back/panoptic/html/assets/index-e3973def.css diff --git a/panoptic_back/panoptic/html/assets/HomeView-1865112a.js b/panoptic_back/panoptic/html/assets/HomeView-1865112a.js new file mode 100644 index 00000000..ebf1eb86 --- /dev/null +++ b/panoptic_back/panoptic/html/assets/HomeView-1865112a.js @@ -0,0 +1 @@ +import{d as D,u as U,r as $,c as k,a as i,b as e,t as r,e as w,w as P,v as E,n as M,M as L,o as s,g as B,_ as F,F as N,f as G,h as f,i as A,j as H,k as J,l as K,m as T,p as I,q,s as Q,x as W,D as X,P as Y}from"./index-2658e7f4.js";import{_ as Z}from"./Tutorial-3004321d.js";const ee={class:""},te={class:"mb-3"},se={class:"d-flex text-start input mb-2"},le={class:"info"},ne={key:0},oe={key:1,class:"text-placeholder"},ie={class:"d-flex text-start input"},ae={class:"info"},re={class:"flex-grow-1 value text-dim"},ue={class:"d-flex mt-2"},de=D({__name:"Create",emits:["cancel","create"],setup(j,{emit:t}){const b=U(),c=t,_=$(""),l=$(""),u=k(()=>_.value!=""&&l.value!="");function y(h){h&&(_.value=h)}function p(){b.showModal(L.FOLDERSELECTION,{callback:y,mode:"create"})}return(h,v)=>(s(),i("div",ee,[e("h3",te,r(h.$t("main.home.create_title")),1),e("div",se,[e("div",le,r(h.$t("main.home.label.folder")),1),e("div",{class:"flex-grow-1 value text-dim",style:{cursor:"pointer"},onClick:p},[_.value!=""?(s(),i("span",ne,r(_.value),1)):(s(),i("span",oe,r(h.$t("main.home.label.path_placeholder")),1))]),e("div",{id:"select-folder",class:"folder",style:{cursor:"pointer"},onClick:v[0]||(v[0]=x=>{p(),w(B)()})},v[4]||(v[4]=[e("i",{class:"bi bi-folder"},null,-1)]))]),e("div",ie,[e("div",ae,r(h.$t("main.home.label.name")),1),e("div",re,[P(e("input",{type:"text","onUpdate:modelValue":v[1]||(v[1]=x=>l.value=x),placeholder:"project_name",style:{width:"100%"}},null,512),[[E,l.value]])])]),e("div",ue,[v[5]||(v[5]=e("div",{class:"flex-grow-1"},null,-1)),e("div",{class:"btn-grey hover-grey",onClick:v[2]||(v[2]=x=>c("cancel"))},r(h.$t("main.home.label.cancel")),1),e("div",{id:"confirm-create",class:M(["ms-2",u.value?"btn-blue":"btn-grey text-dim"]),onClick:v[3]||(v[3]=x=>{c("create",{path:_.value,name:l.value}),w(B)()})},r(h.$t("main.home.label.create")),3)])]))}});const ce=F(de,[["__scopeId","data-v-a138fd7d"]]),pe={class:"create-option d-flex"},me={class:"flex-grow-1"},ve={class:"create-title m-0"},_e={class:"create-explanation"},he={class:"create-option d-flex"},ge={class:"flex-grow-1"},fe={class:"create-title m-0"},be={class:"create-explanation"},ye=D({__name:"Options",emits:["create","import"],setup(j,{emit:t}){const b=U(),c=t;function _(u){u&&c("import",u)}function l(){b.showModal(L.FOLDERSELECTION,{callback:_,mode:"import"})}return(u,y)=>(s(),i(N,null,[e("div",pe,[e("div",me,[e("h6",ve,r(u.$t("main.home.projects.create")),1),e("span",_e,r(u.$t("main.home.projects.create_details")),1)]),e("div",{id:"create-project",class:"create-btn highlight",onClick:y[0]||(y[0]=p=>{c("create"),w(B)()})},r(u.$t("main.home.projects.create_button")),1)]),e("div",he,[e("div",ge,[e("h6",fe,r(u.$t("main.home.projects.import")),1),e("span",be,r(u.$t("main.home.projects.import_details")),1)]),e("div",{class:"create-btn",onClick:l},r(u.$t("main.home.projects.import_button")),1)])],64))}});const $e=F(ye,[["__scopeId","data-v-dc4965fd"]]),ke="/assets/duck-0f72bec4.svg";const z="ArrowUpArrowUpArrowDownArrowDownArrowLeftArrowRightArrowLeftArrowRightba",we={__name:"Egg",setup(j){let t="",b=$(-1100),c="";return window.addEventListener("keydown",async function(_){t+=_.key,z.slice(0,t.length)!==t&&(t=""),t.length===z.length&&(t===z&&(c="",b.value=-50,setTimeout(()=>{c="active",b.value=-100},1500)),t="")}),(_,l)=>(s(),i("div",{id:"duck-container",style:G({right:w(b).toString()+"vh"}),class:M(w(c))},l[0]||(l[0]=[e("img",{alt:"Duck",class:"logo",src:ke,style:{height:"100vh"}},null,-1)]),6))}},xe=F(we,[["__scopeId","data-v-a82a2918"]]),Ce={style:{"font-size":"20px"},class:"mb-1"},Pe={key:0,class:"d-flex"},Ee={key:2,style:{position:"relative",top:"7px"},class:"spinner-border spinner-border-sm text-primary ms-1",role:"status"},Me={class:"visually-hidden"},Le={key:1,class:"d-flex"},Fe={key:2,style:{position:"relative",top:"7px"},class:"spinner-border spinner-border-sm text-primary ms-1",role:"status"},je={class:"visually-hidden"},Se={key:2,class:"text-warning"},Ve=D({__name:"PluginForm",emits:["cancel"],setup(j,{expose:t,emit:b}){const c=U(),_=b;t({setPanopticMl:m});const l=$("github"),u=$(""),y=$(""),p=$(""),h=$(!1),v=k(()=>c.data.plugins.map(a=>a.name)),x=k(()=>!(p.value==""||v.value.includes(p.value))),C=k(()=>l.value=="github"&&u.value.length>0||l.value=="local"&&y.value.length>0),S=k(()=>C.value&&x.value),V=k(()=>C.value&&v.value.includes(p.value)?"main.home.plugins.error_name_not_unique":C.value?"main.home.plugins.require_unique_name":l.value=="github"?"main.home.plugins.require_url":"main.home.plugins.require_folder");function O(a){if(!a)return;y.value=a;let o=a.split("/"),g=o[o.length-1]||o[o.length-2];g&&(p.value=g)}function R(){c.showModal(L.FOLDERSELECTION,{callback:O})}function d(){if(l.value=="github"&&p.value==""){const a=u.value.split("/"),o=a[a.length-1],g=o.endsWith(".git")?o.slice(0,-4):o;p.value=g}}async function n(){h.value=!0,await H();const a={pluginName:p.value};l.value=="github"&&(a.gitUrl=u.value),l.value=="local"&&(a.path=y.value),await c.addPlugin(a),h.value=!1,_("cancel")}function m(){l.value="github",u.value="https://github.com/CERES-Sorbonne/PanopticML",p.value="PanopticML"}return(a,o)=>(s(),i("div",null,[e("div",Ce,[e("i",{class:M(["bi bi-github rounded bbb me-1",l.value=="github"?"selected":""]),onClick:o[0]||(o[0]=g=>l.value="github")},null,2),e("i",{class:M(["bi bi-folder rounded bbb me-1",l.value=="local"?"selected":""]),onClick:o[1]||(o[1]=g=>l.value="local")},null,2)]),l.value=="github"?(s(),i("div",Pe,[o[7]||(o[7]=e("i",{class:"bi bi-github me-2 ms-1",style:{"font-size":"19px"}},null,-1)),P(e("input",{type:"url","onUpdate:modelValue":o[2]||(o[2]=g=>u.value=g),placeholder:"Enter git url",style:{width:"250px"}},null,512),[[E,u.value]]),C.value?P((s(),i("input",{key:0,"onUpdate:modelValue":o[3]||(o[3]=g=>p.value=g),type:"text",placeholder:"plugin unique name",style:{width:"150px"},class:"ms-2",onFocus:d},null,544)),[[E,p.value]]):f("",!0),S.value?(s(),i("div",{key:1,class:"bbb ms-2",onClick:n},r(a.$t("main.home.plugins.install")),1)):f("",!0),h.value?(s(),i("div",Ee,[e("span",Me,r(a.$t("main.home.plugins.load")),1)])):f("",!0)])):f("",!0),l.value=="local"?(s(),i("div",Le,[e("div",{class:"bbb pe-2 me-2",style:{"white-space":"nowrap"},onClick:R},o[8]||(o[8]=[e("i",{class:"bi bi-folder me-2 ms-1"},null,-1),A("Select")])),P(e("input",{type:"url","onUpdate:modelValue":o[4]||(o[4]=g=>y.value=g),placeholder:"Folder path",style:{width:"180px"}},null,512),[[E,y.value]]),C.value?P((s(),i("input",{key:0,"onUpdate:modelValue":o[5]||(o[5]=g=>p.value=g),type:"text",placeholder:"plugin unique name",style:{width:"150px"},class:"ms-2"},null,512)),[[E,p.value]]):f("",!0),S.value?(s(),i("div",{key:1,class:"bbb ms-2",onClick:n},r(a.$t("main.home.plugins.install")),1)):f("",!0),h.value?(s(),i("div",Fe,[e("span",je,r(a.$t("main.home.plugins.load")),1)])):f("",!0)])):f("",!0),e("div",{class:M(["mt-2 mb-2",V.value.includes(".error")?"text-danger":""])},r(a.$t(V.value)),3),l.value!="github"||l.value=="github"&&!u.value.includes("github.com/CERES-Sorbonne")?(s(),i("div",Se,r(a.$t("main.home.plugins.warning")),1)):f("",!0),e("div",null,[e("div",{class:"bbb mt-2 text-center",style:{width:"70px"},onClick:o[6]||(o[6]=g=>_("cancel"))},"Cancel")])]))}});const Ie=F(Ve,[["__scopeId","data-v-67c81739"]]),Ne={key:0},Ae={class:"window2 d-flex"},De={key:0,class:"project-menu"},Ue={class:"d-flex"},Oe=["onClick"],Re={class:"m-0"},Te={class:"m-0 p-0 text-wrap text-break dimmed-2",style:{"font-size":"13px"}},qe={class:"project-option flex-shrink-0"},ze={class:"text-start"},Be=["onClick"],He={key:1,class:"flex-grow-1"},We={class:"d-flex flex-column main-menu justify-content-center"},Ge={class:"icon"},Je={class:"lang"},Ke=["value"],Qe={id:"main-menu",class:"create-menu mt-5 pt-5"},Xe={class:"mt-5 plugin-preview"},Ye={class:"text-center"},Ze={key:0,class:"text-center"},et={class:"flex-grow-1 plugin-preview",style:{"overflow-y":"auto"}},tt={key:1},st={class:"ps-1"},lt=["onClick"],nt={key:2,class:"text-center mt-5 w-100"},ot=D({__name:"HomeView",setup(j){const t=U(),b=$(0),c=$(!1),_=$(null),l=$(!0),u=["fr","en"],y=k(()=>Array.isArray(t.data.status.projects)&&t.data.status.projects.length>0),p=k(()=>!y.value&&t.data.init),h=k(()=>!y.value&&t.data.init&&t.openModalId!==L.FIRSTMODAL),v=k(()=>t.data.plugins.some(d=>d.sourceUrl&&d.sourceUrl.includes("https://github.com/CERES-Sorbonne/PanopticML")));function x(d){return d.replaceAll("-","‑")}function C(d){d.path&&d.name&&t.createProject(d.path,d.name)}function S(d){t.importProject(d)}function V(d){t.delPlugin(d)}async function O(){c.value=!0,await H(),_.value.setPanopticMl()}async function R(){l.value=!1,await H(),l.value=!0}return J(()=>{t.isProjectLoaded&&K.push("/view"),p.value&&t.showModal(L.FIRSTMODAL)}),(d,n)=>l.value?(s(),i("div",Ne,[T(xe),h.value?(s(),I(Z,{key:0})):f("",!0),e("div",Ae,[y.value?(s(),i("div",De,[(s(!0),i(N,null,q(w(t).data.status.projects,m=>(s(),i("div",Ue,[e("div",{class:"project flex-grow-1 overflow-hidden",onClick:a=>w(t).loadProject(m.path)},[e("h5",Re,r(m.name),1),e("div",Te,r(x(m.path)),1)],8,Oe),e("div",qe,[T(X,null,{button:W(()=>n[5]||(n[5]=[e("i",{class:"bi bi-three-dots-vertical"},null,-1)])),popup:W(({hide:a})=>[e("div",ze,[e("div",{onClick:o=>{w(t).deleteProject(m.path),a()},class:"m-1 base-hover p-1"},n[6]||(n[6]=[e("i",{class:"bi bi-trash me-1"},null,-1),A("delete ")]),8,Be)])]),_:2},1024)])]))),256))])):f("",!0),w(t).data.init?(s(),i("div",He,[e("div",We,[e("div",null,[e("div",Ge,[T(Y)]),n[8]||(n[8]=e("h1",{class:"m-0 p-0"},"Panoptic",-1)),n[9]||(n[9]=e("h6",{class:"dimmed-2"},"Version 0.4",-1)),e("div",Je,[n[7]||(n[7]=e("i",{class:"bi bi-translate",style:{"margin-right":"0.5rem"}},null,-1)),P(e("select",{"onUpdate:modelValue":n[0]||(n[0]=m=>d.$i18n.locale=m),onChange:R},[(s(),i(N,null,q(u,(m,a)=>e("option",{key:`Lang${a}`,value:m},r(m.toUpperCase()),9,Ke)),64))],544),[[Q,d.$i18n.locale]])])]),e("div",Qe,[b.value==0?(s(),I($e,{key:0,onCreate:n[1]||(n[1]=m=>b.value=1),onImport:S})):f("",!0),b.value==1?(s(),I(ce,{key:1,onCancel:n[2]||(n[2]=m=>b.value=0),onCreate:C})):f("",!0)]),e("div",Xe,[e("h5",Ye,[n[10]||(n[10]=A(" Plugins ")),e("span",{class:"sb bi bi-plus",style:{position:"relative",top:"1px"},onClick:n[3]||(n[3]=m=>c.value=!0)})]),v.value?f("",!0):(s(),i("div",Ze,[e("span",{class:"bb ms-1 me-1",onClick:O},[n[11]||(n[11]=e("i",{class:"bi bi-lightbulb"},null,-1)),A(" "+r(d.$t("main.home.plugins.install_panoptic_ml")),1)])]))]),e("div",et,[c.value?(s(),I(Ie,{key:0,onCancel:n[4]||(n[4]=m=>c.value=!1),ref_key:"pluginFormElem",ref:_},null,512)):(s(),i("div",tt,[(s(!0),i(N,null,q(w(t).data.plugins,m=>(s(),i("div",st,[e("span",{onClick:a=>V(m.path),class:"bi bi-x base-hover"},null,8,lt),e("span",null,r(m.name),1)]))),256))]))])])])):(s(),i("div",nt,n[12]||(n[12]=[e("p",null,"Waiting for Server...",-1)])))])])):f("",!0)}});const rt=F(ot,[["__scopeId","data-v-74778545"]]);export{rt as default}; diff --git a/panoptic_back/panoptic/html/assets/PanopticView-06ae2245.js b/panoptic_back/panoptic/html/assets/PanopticView-06ae2245.js new file mode 100644 index 00000000..5786cf30 --- /dev/null +++ b/panoptic_back/panoptic/html/assets/PanopticView-06ae2245.js @@ -0,0 +1 @@ +import{d as L,Q as Oe,u as de,S as ae,z as X,r as I,c as T,V as W,o as s,a as r,b as e,F as E,m as C,W as pe,t as x,h as y,p as V,w as re,v as me,e as m,X as we,M as te,x as h,Y as F,Z as fe,$ as Ce,n as B,O as N,a0 as ye,i as J,a1 as Pe,_ as j,D as se,a2 as De,a3 as he,q,f as Y,a4 as Se,a5 as ve,a6 as be,g as _e,a7 as Ge,a8 as ke,a9 as Le,aa as Re,J as Ae,ab as je,ac as Ue,K as He,R as Be,L as Ne,ad as We,ae as qe,af as Ke,ag as Me,k as ne,j as Z,ah as Ve,ai as Qe,aj as oe,ak as ee,al as Ye,am as Xe,an as Ze,ao as Je,ap as et,aq as tt,ar as st,as as ie,at as ot,au as at,av as lt,aw as nt,ax as Ie,ay as it,az as rt,s as dt,aA as ut,l as $e,A}from"./index-2658e7f4.js";import{_ as pt}from"./Tutorial-3004321d.js";const ce={},ct={class:"d-flex flex-row"},mt={key:2,class:"d-flex",style:{width:"150px"}},vt={class:"flex-grow-1"},gt={key:1,style:{"padding-top":"1px"}},ft={style:{width:"20px","margin-top":"2px"},class:"text-center"},_t={key:4,class:"text-center",style:{width:"20px","margin-top":"2px"}},yt={key:0},ht={key:0,class:"ms-3 pt-1"},bt={key:1},kt=L({__name:"PropertyOptions",props:{property:{},open:{type:Boolean}},setup(S){const{t:f}=Oe({useScope:"global"}),t=de(),o=ae(),d=X(),u=o.getTabManager(),i=S,g=I(!1),p=I(!1),l=I(""),n=I(!1),a=T(()=>o.getTab()),c=T(()=>a.value.visibleProperties[i.property.id]==!0),k=T(()=>u.collection.filterManager.state.filter.filters.some(D=>!D.isGroup&&D.propertyId==i.property.id)),$=T(()=>u.collection.groupManager.state.groupBy.includes(i.property.id)),G=T(()=>u.collection.sortManager.state.sortBy.includes(i.property.id)),P=T(()=>{if(k.value)return u.collection.filterManager.state.filter.filters.find(D=>!D.isGroup&&D.propertyId==i.property.id).id}),v=()=>u.collection.filterManager,_=T(()=>u.getSha1Mode());function w(){c.value?u.setVisibleProperty(i.property.id,!1):u.setVisibleProperty(i.property.id,!0)}function b(){i.open&&(g.value?g.value=!1:(g.value=!0,l.value=i.property.name),p.value=!1)}function M(){i.property.type!=N.tag&&i.property.type!=N.multi_tags||(p.value?p.value=!1:p.value=!0,g.value=!1)}function O(){G.value?u.collection.sortManager.delSort(i.property.id):u.collection.sortManager.setSort(i.property.id),u.collection.sortManager.update(!0)}function U(){$.value?u.collection.groupManager.delGroupOption(i.property.id):u.collection.groupManager.setGroupOption(i.property.id),u.collection.groupManager.update(!0)}function R(){confirm(f("common.properties.delete")+": "+i.property.name+" ? "+i.property.id)&&d.deleteProperty(i.property.id)}async function H(){l.value!=""&&(await d.updateProperty(i.property.id,l.value),b())}function Q(){const D=v();k.value?(D.deleteFilter(P.value),ce.filter.hide()):(D.addNewFilter(i.property.id),ce.filter.show())}return W(()=>i.property,()=>{g.value=!1}),(D,z)=>(s(),r("div",{class:B(n.value?"hover-light":"")},[e("div",ct,[i.open?(s(),r(E,{key:0},[g.value?y("",!0):(s(),r("div",{key:0,class:"option-holder hover-light btn-icon",style:{width:"150px"},onClick:b},[C(pe,{type:i.property.type,class:"me-2 btn-icon",onMouseenter:z[0]||(z[0]=K=>n.value=!0),onMouseleave:z[1]||(z[1]=K=>n.value=!1)},null,8,["type"]),e("span",null,x(i.property.name),1)]))],64)):(s(),V(pe,{key:1,type:i.property.type,class:"me-2",style:{position:"relative",top:"2px"}},null,8,["type"])),g.value&&i.open?(s(),r("div",mt,[e("div",null,[e("i",{class:"btn-icon me-1 bi bi-x-lg",style:{padding:"2px"},onClick:b,onMouseenter:z[2]||(z[2]=K=>n.value=!0),onMouseleave:z[3]||(z[3]=K=>n.value=!1)},null,32)]),e("div",vt,[i.property.id>=0?re((s(),r("input",{key:0,style:{position:"relative",top:"1px"},type:"text",class:"text-input","onUpdate:modelValue":z[4]||(z[4]=K=>l.value=K),onChange:H},null,544)),[[me,l.value]]):(s(),r("span",gt,[C(pe,{type:i.property.type,class:"me-2 btn-icon"},null,8,["type"]),e("span",null,x(i.property.name),1)]))])])):y("",!0),i.open?(s(),r(E,{key:3},[m(we)(i.property.type)?(s(),r("div",{key:0,style:{width:"20px","margin-top":"2px",cursor:"pointer"},class:"text-center",onClick:z[5]||(z[5]=K=>m(t).showModal(m(te).TAG,{propId:i.property.id}))},[C(F,{click:!1,message:"main.nav.properties.open_tags"},{default:h(()=>z[7]||(z[7]=[e("i",{class:"bi bi-arrows-fullscreen"},null,-1)])),_:1})])):y("",!0),e("div",ft,[i.property.mode==m(fe).id?(s(),V(F,{key:0,click:!1,message:"main.nav.properties.linked_property_tooltip"},{default:h(()=>z[8]||(z[8]=[e("i",{class:"bi bi-link-45deg"},null,-1)])),_:1})):y("",!0)])],64)):y("",!0),e("div",{style:{width:"20px","margin-top":"2px"},onClick:w,class:"btn-icon text-center"},[_.value&&i.property.mode==m(fe).id?(s(),V(F,{key:0,message:"main.nav.properties.hidden_property_tooltip"},{default:h(()=>[e("span",{class:"bi bi-eye-slash",onClick:z[6]||(z[6]=Ce(()=>{},["stop"]))})]),_:1})):(s(),V(F,{key:1,pos:"right",message:"main.nav.properties.hide_property_tooltip"},{default:h(()=>[e("span",{class:B("bi bi-eye text-"+(c.value?"primary":"secondary"))},null,2)]),_:1}))]),i.open?(s(),r("div",_t,[i.property.type==m(N).tag||i.property.type==m(N).multi_tags?(s(),r("div",{key:0,onClick:M,style:{cursor:"pointer"}},[p.value?(s(),V(F,{key:0,message:"main.nav.properties.collapse_property_tooltip"},{default:h(()=>z[9]||(z[9]=[e("i",{class:"bi bi-chevron-down"},null,-1)])),_:1})):(s(),V(F,{key:1,message:"main.nav.properties.expand_property_tooltip"},{default:h(()=>z[10]||(z[10]=[e("i",{class:"bi bi-chevron-right"},null,-1)])),_:1}))])):y("",!0)])):y("",!0)]),i.open?(s(),r("div",yt,[g.value?(s(),r("div",ht,[D.property.id!=m(ye).folders?(s(),r("div",{key:0,class:B(["options hover-light",k.value?" text-primary":""]),onClick:Q},[e("div",null,[z[11]||(z[11]=e("i",{class:"bi bi-funnel-fill me-2"},null,-1)),J(x(D.$t("main.menu.filters")),1)])],2)):y("",!0),e("div",{class:B(["options hover-light",G.value?" text-primary":""]),onClick:O},[z[12]||(z[12]=e("i",{class:"bi bi-filter me-2"},null,-1)),J(x(D.$t("main.menu.sort.title")),1)],2),e("div",{class:B(["options hover-light",$.value?" text-primary":""]),onClick:U},[z[13]||(z[13]=e("i",{class:"bi bi-collection me-2"},null,-1)),J(x(D.$t("main.menu.groupby")),1)],2),i.property.id>=0?(s(),r("div",{key:1,class:"options hover-light",onClick:R},[z[14]||(z[14]=e("i",{class:"bi bi-trash me-2"},null,-1)),J(x(D.$t("main.nav.properties.delete_property")),1)])):y("",!0)])):p.value?(s(),r("div",bt,[C(Pe,{property:i.property,"can-create":!0,"can-customize":!0,"can-delete":!0,"can-link":!0},null,8,["property"])])):y("",!0)])):y("",!0)],2))}});const xe=j(kt,[["__scopeId","data-v-908dfa0f"]]),$t={class:"text-nowrap"},xt=["onClick"],wt=["onClick"],Ct=L({__name:"FolderOptionDropdown",props:{folder:{}},setup(S){const f=X(),t=S;function o(){f.reImportFolder(t.folder.id)}function d(){confirm(De.global.t("main.nav.folders.del_alert"))&&f.deleteFolder(t.folder.id)}return(u,i)=>(s(),V(se,{teleport:!0},{button:h(()=>i[0]||(i[0]=[e("i",{class:"bi bi-three-dots base-hover"},null,-1)])),popup:h(({hide:g})=>[e("div",$t,[e("div",{class:"p-2 bb",onClick:p=>{o(),g()}},i[1]||(i[1]=[e("i",{class:"bi bi-arrow-clockwise me-1"},null,-1),J("Re import")]),8,xt),i[3]||(i[3]=e("div",{class:"custom-hr"},null,-1)),e("div",{class:"bb p-2",onClick:p=>{d(),g()}},[i[2]||(i[2]=e("i",{class:"bi bi-trash me-1"},null,-1)),J(x(u.$t("main.nav.folders.del")),1)],8,wt)])]),_:1}))}}),St=["onMouseenter"],Mt={style:{display:"inline"}},Vt=["onClick"],It={class:"text-secondary"},Ft=["onClick"],Tt=L({__name:"FolderList2",props:{folders:Array,visibleFolders:Object,filterManager:he,root:{type:Boolean,default:!0}},setup(S){const f=X(),t=S,o=I(null),d=T(()=>{let n={};const a=new Set(t.filterManager.state.folders);return t.folders.map(c=>c.id).forEach(c=>{a.has(c)&&(n[c]=!0)}),n}),u=T(()=>{let n={};return t.folders.map(a=>a.id).forEach(a=>{t.visibleFolders[a]&&(n[a]=!0)}),n}),i=T(()=>{let n={};return t.folders.forEach(a=>{let c=[];d.value[a.id]&&c.push("selected"),n[a.id]=c.join(" ")}),n});function g(n){let a=t.visibleFolders;a[n]?delete a[n]:a[n]=!0}function p(n){let a=new Set(t.filterManager.state.folders);const c=a.has(n),k=f.folders[n].parent!=null&&a.has(f.folders[n].parent);c&&!k?(a.delete(n),ve(n).forEach($=>a.delete($.id))):(l(n,a),a.add(n),ve(n).forEach($=>a.add($.id)),be(f.folders[n]).forEach($=>a.delete($.id))),t.filterManager.setFolders(Array.from(a)),t.filterManager.update(!0)}function l(n,a){const c=be(f.folders[n]);let k;for(let $ of c)if(a.has($.id))k=$;else break;k!=null&&ve(k.id).forEach($=>a.delete($.id))}return(n,a)=>{const c=Se("FolderList2",!0);return s(),r("ul",{class:B(t.root?"tree":""),style:Y(t.root?"padding-left:0px;":"")},[(s(!0),r(E,null,q(S.folders,k=>(s(),r("li",{style:Y(t.root?"padding-left:0px;":""),class:"no-break",onMouseenter:$=>o.value=k.id,onMouseleave:a[0]||(a[0]=$=>o.value=null)},[e("div",Mt,[e("summary",{class:B(i.value[k.id]),onClick:$=>p(k.id)},[J(x(k.name)+" ",1),e("span",It,x(k.count),1)],10,Vt)]),k.children&&k.children.length>0?(s(),r("i",{key:0,onClick:$=>g(k.id),class:B("bi bi-chevron-"+(u.value[k.id]?"down":"right")+" ms-2 btn-icon"),style:{"font-size":"9px"}},null,10,Ft)):y("",!0),e("span",{class:B(o.value===k.id?"visible-option":"invisible-option")},[C(Ct,{folder:k,style:{display:"inline-block"}},null,8,["folder"])],2),k.children&&k.children.length>0&&u.value[k.id]?(s(),V(c,{key:1,folders:k.children,root:!1,"visible-folders":t.visibleFolders,"filter-manager":t.filterManager},null,8,["folders","visible-folders","filter-manager"])):y("",!0)],44,St))),256))],6)}}});const zt=j(Tt,[["__scopeId","data-v-845ce316"]]),Et={class:"text-center"},Ot={class:"w-100 text-center",style:{"font-size":"10px"}},Pt={key:0,class:"progress",role:"progressbar","aria-label":"Example 1px high","aria-valuemin":"0","aria-valuemax":"100",style:{height:"1px"}},Dt=L({__name:"TaskStatus",props:{task:{}},setup(S){const f=S,t=T(()=>f.task.total-f.task.remain-f.task.computing),o=T(()=>f.task.total);return(d,u)=>(s(),r("div",Et,[J(x(f.task.name)+" ",1),e("div",Ot,x(t.value)+" / "+x(o.value)+" "+x(d.$t("main.nav.tasks.done")),1),o.value>0?(s(),r("div",Pt,[e("div",{class:"progress-bar",style:Y(`width: ${t.value/o.value*100}%`)},null,4)])):y("",!0)]))}}),Gt={class:""},Lt={class:"m-0",style:{padding:"4px 0px 4px 8px"}},Rt={class:"d-flex align-items-center",style:{"font-size":"15px","line-height":"14px"}},At={key:0,class:"bi bi-chevron-left"},jt={key:1,class:"bi bi-chevron-right"},Ut={class:"ps-2 pe-2",style:{"padding-bottom":"9.5px"}},Ht={class:"d-flex align-items-center"},Bt={style:{"max-height":"300px",overflow:"auto"}},Nt={key:0,id:"import"},Wt={class:"pt-1 pb-2"},qt={class:"d-flex align-items-center ps-2 pe-2",style:{height:"30px"}},Kt={key:0,class:"ps-2 pe-2"},Qt={class:"p-1"},Yt={key:0,class:"custom-hr"},Xt={class:"p-2 mt-0"},Zt={key:0,class:"d-flex"},Jt={key:0,class:"spinner-grow spinner-grow-sm float-end",style:{width:"10px",height:"10px","margin-top":"5px"}},es={key:1,class:"bb me-1"},ts={class:"bb me-2"},ss={key:1,class:"mt-2"},os={key:0,class:"property-item"},as={class:"p-2 mt-0"},ls={key:1,class:"mt-2"},ns={key:0,class:"property-item"},is=200,rs=55,ds=L({__name:"Menu",emits:["export","toggle"],setup(S,{emit:f}){const t=ae(),o=X(),d=de(),u=t.getTabManager(),i=f,g=I(!1),p=I(!1),l=I(!0),n=T(()=>l.value?is:rs),a=async P=>{d.showModal(te.IMPORT)},c=T(()=>t.backendStatus.tasks.filter(P=>!P.done));function k(){d.showModal(te.FOLDERSELECTION,{callback:$,mode:"images"})}function $(P){P&&o.addFolder(P)}function G(){l.value=!l.value,i("toggle")}return W(()=>t.status.import.to_import,()=>g.value=!0),(P,v)=>{var _;return s(),r("div",{class:"menu overflow-scroll",style:Y({width:n.value+"px"})},[e("div",Gt,[e("div",null,[e("div",Lt,[e("div",Rt,[l.value?(s(),r(E,{key:0},[e("div",{class:"flex-grow-1 text-capitalize overflow-hidden",onClick:v[0]||(v[0]=()=>{})},x((_=m(d).data.status.selectedProject)==null?void 0:_.name),1),C(F,{message:"main.menu.close_project"},{default:h(()=>[e("div",{class:"base-hover p-1",onClick:v[1]||(v[1]=w=>m(d).closeProject())},v[6]||(v[6]=[e("i",{class:"bi bi-arrow-up-left-square red-hover"},null,-1)]))]),_:1}),e("div",{class:"base-hover p-1",onClick:v[2]||(v[2]=w=>m(d).showModal(m(te).SETTINGS))},v[7]||(v[7]=[e("i",{class:"bi bi-gear"},null,-1)]))],64)):y("",!0),e("div",{class:B(["base-hover p-1",l.value?"":"flex-grow-1 text-center"]),style:{"margin-right":"6px"},onClick:G},[l.value?(s(),r("i",At)):(s(),r("i",jt))],2)])]),l.value?(s(),r(E,{key:0},[v[9]||(v[9]=e("div",{class:"custom-hr"},null,-1)),e("div",Ut,[e("div",Ht,[e("div",null,[e("b",null,x(P.$t("main.nav.folders.title")),1)]),e("div",{id:"add_folder",class:"ms-auto plus",onClick:v[3]||(v[3]=w=>{k(),m(_e)()})},[C(F,{message:"main.nav.folders.add"},{default:h(()=>v[8]||(v[8]=[e("i",{class:"bi bi-plus"},null,-1)])),_:1})])]),e("div",Bt,[m(t).getTab()?(s(),V(zt,{key:0,folders:m(o).folderRoots,"filter-manager":m(u).collection.filterManager,"visible-folders":m(u).state.visibleFolders},null,8,["folders","filter-manager","visible-folders"])):y("",!0)])])],64)):y("",!0),l.value?(s(),r(E,{key:1},[c.value&&c.value.length?(s(),r("div",Nt,[v[11]||(v[11]=e("div",{class:"custom-hr"},null,-1)),e("div",Wt,[e("div",qt,[e("div",null,[e("b",null,x(P.$t("main.nav.tasks.title")),1)])]),v[10]||(v[10]=e("div",{class:"custom-hr"},null,-1)),m(t).backendStatus?(s(),r("div",Kt,[(s(!0),r(E,null,q(c.value,(w,b)=>(s(),r("div",Qt,[b?(s(),r("div",Yt)):y("",!0),C(Dt,{task:w},null,8,["task"])]))),256))])):y("",!0)])])):y("",!0)],64)):y("",!0),v[16]||(v[16]=e("div",{class:"custom-hr"},null,-1)),e("div",Xt,[l.value?(s(),r("div",Zt,[C(F,{message:"main.nav.properties.properties_tooltip",pos:"top",icon:!0},{default:h(()=>[e("b",null,x(P.$t("main.nav.properties.title")),1)]),_:1}),v[13]||(v[13]=e("span",{class:"flex-grow-1"},null,-1)),p.value?(s(),r("span",Jt,v[12]||(v[12]=[e("span",{class:"sr-only"},null,-1)]))):(s(),r("span",es,[C(F,{pos:"right",message:"main.nav.properties.import_properties_tooltip"},{default:h(()=>[e("i",{class:"bi bi-box-arrow-in-up text-secondary",style:{position:"relative",top:"0px","font-size":"15px"},onClick:a})]),_:1})])),e("span",ts,[C(F,{pos:"right",message:"main.nav.properties.export_properties_tooltip"},{default:h(()=>[e("i",{class:"bi bi-box-arrow-up text-secondary",style:{position:"relative",top:"0px","font-size":"15px"},onClick:v[4]||(v[4]=w=>m(d).showModal(m(te).EXPORT,void 0))})]),_:1})])])):y("",!0),m(t).status.loaded?(s(),r("div",ss,[(s(!0),r(E,null,q(m(o).properties,w=>(s(),r(E,null,[w.id>=0?(s(),r("div",os,[C(xe,{property:w,open:l.value},null,8,["property","open"])])):y("",!0)],64))),256)),l.value?(s(),r(E,{key:0},[v[15]||(v[15]=e("div",{class:"property-item m-0 p-0"},null,-1)),e("div",{id:"add-property",onClick:v[5]||(v[5]=w=>{m(d).showModal(m(te).PROPERTY,void 0),m(_e)()}),class:"btn-icon base-hover mt-1",style:{"line-height":"25px"}},[v[14]||(v[14]=e("i",{class:"bi bi-plus btn-icon float-start",style:{"font-size":"25px"}},null,-1)),e("span",null,x(P.$t("main.nav.properties.add_property")),1)])],64)):y("",!0)])):y("",!0)]),v[17]||(v[17]=e("div",{class:"custom-hr"},null,-1)),e("div",as,[l.value?(s(),V(F,{key:0,message:"main.nav.computed.computed_tooltip",icon:!0},{default:h(()=>[e("b",null,x(P.$t("main.nav.computed.title")),1)]),_:1})):y("",!0),m(t).status.loaded?(s(),r("div",ls,[(s(!0),r(E,null,q(m(o).properties,w=>(s(),r(E,null,[w.id<0&&w.id!=m(Ge)?(s(),r("div",ns,[C(F,{pos:"bottom",message:"main.nav.computed."+Math.abs(w.id).toString()+"_tooltip"},{default:h(()=>[C(xe,{property:w,open:l.value},null,8,["property","open"])]),_:2},1032,["message"])])):y("",!0)],64))),256))])):y("",!0)])])])],4)}}});const us=j(ds,[["__scopeId","data-v-55b40135"]]),ps={class:"p-0 hover-light ps-1 bb",style:{width:"50px"}},cs={class:""},ms=["onClick"],vs=L({__name:"FilterGroupOperator",props:{modelValue:{}},emits:["update:modelValue"],setup(S,{emit:f}){const t=S,o=f;function d(u){o("update:modelValue",u)}return(u,i)=>(s(),V(se,null,{button:h(()=>[e("div",ps,[e("span",cs,x(u.$t("modals.filters."+t.modelValue)),1)])]),popup:h(({hide:g})=>[e("div",{class:"ps-2 pt-1 pb-1 pe-2",onClick:g},[e("div",{class:"base-btn",onClick:i[0]||(i[0]=p=>d(m(ke).and))},x(u.$t("modals.filters.and")),1),i[2]||(i[2]=e("hr",{class:"m-0 p-0 mt-1 mb-1"},null,-1)),e("div",{class:"base-btn",onClick:i[1]||(i[1]=p=>d(m(ke).or))},x(u.$t("modals.filters.or")),1)],8,ms)]),_:1}))}}),gs=["disabled"],fs={class:"m-0 p-1"},_s=["onClick"],ys=L({__name:"OperatorChoice",props:{propertyId:{},modelValue:{},disabled:{type:Boolean}},emits:["hide","update:modelValue"],setup(S,{emit:f}){const t=X(),o=S,d=f,u=T(()=>t.properties[o.propertyId]),i=T(()=>Le(u.value.type));async function g(p){d("update:modelValue",p)}return(p,l)=>(s(),V(se,{onHide:l[0]||(l[0]=n=>d("hide")),placement:"bottom"},{button:h(()=>[e("div",{class:"text-nowrap sb ps-1 pe-1",disabled:o.disabled},[e("span",null,x(p.$t("modals.filters.operators."+o.modelValue)),1)],8,gs)]),popup:h(({hide:n})=>[e("div",fs,[(s(!0),r(E,null,q(i.value,a=>(s(),r("div",{class:"hover-light p-1 rounded",style:{cursor:"pointer"},onClick:c=>{g(a),n()}},[e("a",null,x(p.$t("modals.filters.operators."+a)),1)],8,_s))),256))])]),_:1}))}});const hs=j(ys,[["__scopeId","data-v-21b8bb8e"]]),bs={class:"d-flex text-nowrap overflow-hidden",style:{"font-size":"14px"}},ks=L({__name:"FilterValueInput",props:{modelValue:{},property:{},width:{}},emits:["update:modelValue"],setup(S,{emit:f}){const t=S,o=f;function d(u){o("update:modelValue",u)}return(u,i)=>(s(),r("div",bs,[m(we)(u.property.type)?(s(),V(Re,{key:0,"model-value":t.modelValue,"onUpdate:modelValue":d,"no-wrap":!0,"auto-focus":!0,"can-create":!1,"can-customize":!1,property:t.property,teleport:!1,width:t.width,class:"sb","force-multi":!0},null,8,["model-value","property","width"])):t.property.type==m(N).color?(s(),V(Ae,{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==m(N).number?(s(),V(je,{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==m(N).url?(s(),V(Ue,{key:3,"model-value":t.modelValue,"onUpdate:modelValue":d,width:t.width,offset:-22,class:"sb"},null,8,["model-value","width"])):t.property.type==m(N).checkbox?(s(),V(He,{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==m(N).date?(s(),V(Be,{key:5,"model-value":t.modelValue,teleport:!1,"onUpdate:modelValue":d,width:t.width,class:"sb"},null,8,["model-value","width"])):(s(),V(Ne,{key:6,"model-value":t.modelValue,"onUpdate:modelValue":d,width:t.width,offset:-22,class:"sb"},null,8,["model-value","width"]))]))}}),$s={class:"p-0 m-0 ps-2"},xs=L({__name:"FilterRow",props:{manager:{},filter:{}},emits:[],setup(S,{emit:f}){const t=X(),o=S,d=T(()=>t.properties[o.filter.propertyId]),u=T(()=>qe(o.filter.operator));function i(l){o.manager.updateFilter(o.filter.id,{operator:l})}function g(l){o.manager.updateFilter(o.filter.id,{value:l})}function p(l){o.manager.updateFilter(o.filter.id,{propertyId:l.id})}return(l,n)=>(s(),r(E,null,[e("td",$s,[C(We,{"model-value":d.value,"onUpdate:modelValue":p},null,8,["model-value"])]),e("td",null,[C(hs,{"property-id":d.value.id,"model-value":o.filter.operator,"onUpdate:modelValue":i},null,8,["property-id","model-value"])]),e("td",null,[u.value?(s(),V(ks,{key:0,"model-value":o.filter.value,"onUpdate:modelValue":g,property:d.value,width:140,style:{width:"150px"},class:""},null,8,["model-value","property"])):y("",!0)])],64))}}),ws={style:{"max-height":"500px",overflow:"auto"}},Fe=L({__name:"AddFilterBtn",props:{group:{},manager:{}},emits:[],setup(S,{emit:f}){const t=S;function o(d){t.manager.addNewFilter(d,t.group.id),ce.filter.show()}return(d,u)=>(s(),V(se,{placement:"auto"},{button:h(()=>[Ke(d.$slots,"default")]),popup:h(({hide:i})=>[e("div",ws,[C(Me,{onSelect:g=>{o(g),i()},"ignore-ids":[m(ye).folders]},null,8,["onSelect","ignore-ids"])])]),_:3}))}}),Cs={class:"filter-group"},Ss={class:"table table-sm"},Ms={style:{height:"33px"}},Vs={class:""},Is={key:0,class:"m-0 p-0"},Fs={key:2,class:"text-secondary"},Ts={class:"border rounded"},zs={class:""},Es=["onClick"],Os={class:"d-flex text-secondary ms-2"},Ps={class:"add-options hover-light"},Ds=L({__name:"FilterGroup",props:{filter:{},manager:{},parent:{}},emits:["delete"],setup(S,{emit:f}){X();const t=S,o=T(()=>t.filter),d=T(()=>o.value.filters),u=T(()=>{let l=255-(o.value.depth+1)*5;return`background: rgb(${l},${l},${l});`});function i(l){t.manager.deleteFilter(l.id)}function g(l){t.manager.addNewFilterGroup(l)}function p(l,n){t.manager.updateFilterGroup(l,n)}return(l,n)=>(s(),r("div",Cs,[e("table",Ss,[(s(!0),r(E,null,q(d.value,(a,c)=>(s(),r("tr",Ms,[e("td",Vs,[c==0?(s(),r("div",Is,x(l.$t("modals.filters.where")),1)):c==1?(s(),V(vs,{key:1,"model-value":o.value.groupOperator,"onUpdate:modelValue":n[0]||(n[0]=k=>p(o.value.id,k))},null,8,["model-value"])):(s(),r("span",Fs,x(l.$t("modals.filters."+o.value.groupOperator)),1))]),a.propertyId!==void 0?(s(),V(xs,{key:0,filter:a,manager:t.manager},null,8,["filter","manager"])):(s(),r("td",{key:1,colspan:"3",style:Y(u.value)},[e("div",Ts,[C(Te,{filter:a,manager:t.manager},null,8,["filter","manager"])])],4)),e("td",zs,[e("span",{class:"base-btn",onClick:k=>i(a)},n[2]||(n[2]=[e("i",{class:"bi bi-trash"},null,-1)]),8,Es)])]))),256))]),e("div",Os,[C(Fe,{group:t.filter,manager:t.manager},{default:h(()=>[e("div",Ps,[n[3]||(n[3]=e("i",{class:"bi bi-plus"},null,-1)),J(x(l.$t("modals.filters.new_filter")),1)])]),_:1},8,["group","manager"]),e("div",{class:"add-options hover-light",onClick:n[1]||(n[1]=a=>g(o.value.id))},[n[4]||(n[4]=e("i",{class:"bi bi-plus"},null,-1)),J(x(l.$t("modals.filters.new_group")),1)])])]))}});const Te=j(Ds,[["__scopeId","data-v-e644f737"]]),Gs={key:0,class:"d-flex flex-row m-0 ms-1 p-1 bg hover-light bg-medium",style:{cursor:"pointer"}},Ls={key:0},Rs={key:0,class:"or-separator"},As={key:0,class:"or-separator"},js={key:0,class:"m-1 p-1"},Us=L({__name:"MainFilterDropdown",props:{manager:he},emits:["update:modelValue"],setup(S,{emit:f}){const t=X(),o=S,d=I(null),u=I(null),i=T(()=>{let p=g(o.manager.state.filter),l={};return p.forEach(n=>l[n.propertyId]=n),Object.values(l)});function g(p){let l=[];for(let n of p.filters)n.isGroup?l.push(...g(n)):l.push(n);return l}return W(()=>o.manager.state.filter.filters,()=>{o.manager.state.filter.filters.length==0&&u.value.hide()}),ne(async()=>{await Z(),ce.filter=u.value}),(p,l)=>(s(),V(se,{ref_key:"dropdownElem",ref:u,placement:"top-start"},{button:h(()=>[e("div",null,[i.value.length||o.manager.state.query?(s(),r("div",Gs,[o.manager.state.query?(s(),r("div",Ls,[l[0]||(l[0]=e("span",{class:"text-primary"},"Text Query",-1)),i.value.length?(s(),r("span",Rs,"|")):y("",!0)])):y("",!0),(s(!0),r(E,null,q(i.value,(n,a)=>(s(),r("div",null,[a>0?(s(),r("span",As,"|")):y("",!0),n.propertyId==m(ye).id?(s(),V(pe,{key:1,type:m(t).properties[n.propertyId].type,style:{"margin-right":"2px"}},null,8,["type"])):y("",!0),e("span",null,x(m(t).properties[n.propertyId].name),1)]))),256))])):y("",!0)])]),popup:h(()=>[e("div",{class:"m-0 p-0",ref_key:"popupElem",ref:d},[Object.keys(m(t).properties).length>0?(s(),r("div",js,[C(Te,{filter:o.manager.state.filter,manager:o.manager,parent:d.value},null,8,["filter","manager","parent"])])):y("",!0)],512)]),_:1},512))}});const Hs=j(Us,[["__scopeId","data-v-56cd3bdb"]]),Bs={class:"d-flex flex-row filter-form"},Ns={class:"pt-1 pb-1"},Ws=L({__name:"FilterForm",props:{manager:he},setup(S){const f=S;return(t,o)=>(s(),r("div",Bs,[e("div",Ns,x(t.$t("main.menu.filters"))+": ",1),C(Hs,{manager:f.manager},null,8,["manager"]),C(Fe,{manager:f.manager,group:f.manager.state.filter,class:"p-1"},{default:h(()=>o[0]||(o[0]=[e("span",{class:"base-hover plus-btn text-secondary"},[e("i",{class:"bi bi-plus"})],-1)])),_:1},8,["manager","group"])]))}});const qs=j(Ws,[["__scopeId","data-v-cc2f25ec"]]),Ks={class:"p-1",style:{"max-height":"400px","overflow-y":"scroll"}},Qs=L({__name:"PropertyDropdown",props:{groupIds:Array},emits:["select"],setup(S,{emit:f}){const t=S,o=f,d=I(null);return(u,i)=>(s(),V(se,{ref_key:"dropdownElem",ref:d,"auto-focus":!1},{button:h(()=>i[2]||(i[2]=[e("div",{class:"text-secondary p-1"},[e("span",{class:"base-hover plus-btn"},[e("i",{class:"bi bi-plus"})])],-1)])),popup:h(()=>[e("div",Ks,[C(Me,{onClick:i[0]||(i[0]=g=>m(_e)()),onSelect:i[1]||(i[1]=g=>{o("select",g),d.value.hide()}),"ignore-ids":t.groupIds},null,8,["ignore-ids"])])]),_:1},512))}});const ze=j(Qs,[["__scopeId","data-v-012e1f38"]]),Ys={class:"base-hover ps-1 pe-1"},Xs={class:"main"},Zs=["onClick"],Js=L({__name:"TimeUnitDropdown",props:{modelValue:{}},emits:["update:modelValue"],setup(S,{emit:f}){const t=S,o=f,d=Object.values(Ve);function u(i){o("update:modelValue",i)}return(i,g)=>(s(),V(se,null,{button:h(()=>[e("div",Ys,x(t.modelValue),1)]),popup:h(({hide:p})=>[e("div",Xs,[(s(!0),r(E,null,q(m(d),l=>(s(),r("div",{class:"base-hover option",onClick:n=>{u(l),p()}},x(l),9,Zs))),256))])]),_:1}))}});const eo=j(Js,[["__scopeId","data-v-ce3e3774"]]),to={class:""},so={class:"d-flex ipt"},oo={class:"ms-2",min:"1"},ao=L({__name:"GroupOptionDropdown",props:{option:{}},emits:["change"],setup(S,{emit:f}){const t=S,o=f,d=I(1),u=I(Ve.Year);function i(){t.option.stepSize==d.value&&t.option.stepUnit==u.value||o("change",{stepSize:d.value,stepUnit:u.value})}function g(){d.value=t.option.stepSize??1,u.value=t.option.stepUnit}return W(()=>t.option,g),ne(g),W(d,()=>{(d.value<1||d.value==null||isNaN(d.value))&&(d.value=1)}),(p,l)=>(s(),V(se,{onHide:i},{button:h(()=>l[2]||(l[2]=[e("i",{class:"bi bi-three-dots-vertical"},null,-1)])),popup:h(({hide:n,focus:a})=>[e("div",to,[e("div",so,[e("div",null,[re(e("input",{type:"number","onUpdate:modelValue":l[0]||(l[0]=c=>d.value=c)},null,512),[[me,d.value]])]),e("div",oo,[C(eo,{modelValue:u.value,"onUpdate:modelValue":l[1]||(l[1]=c=>u.value=c),onHide:a},null,8,["modelValue","onHide"])])])])]),_:1}))}});const lo=j(ao,[["__scopeId","data-v-78b647dc"]]),no={class:"d-flex flex-row group-form"},io={class:"pt-1 pb-1"},ro={key:0,class:"bg-medium bg d-flex flex-row m-0 ms-1 p-0 align-items-center"},uo={key:0,class:"bi bi-chevron-right smaller"},po=["onClick"],co=["onClick"],mo=["onClick"],vo=["onClick"],go=["onClick"],fo=["onClick"],_o=["onClick"],yo=["onClick"],ho=["onClick"],bo={key:5,class:"sm-btn"},ko={key:0,class:"spinner-grow spinner-grow-sm loading ms-1"},$o=L({__name:"GroupForm",props:{isLoading:Boolean,manager:Qe},setup(S){const f=X(),t=S;function o(n){t.manager.setGroupOption(n),t.manager.update(!0)}function d(n){t.manager.delGroupOption(n),t.manager.update(!0)}function u(n,a){t.manager.setGroupOption(n,{direction:a}),t.manager.sortGroups(!0)}function i(n,a){t.manager.setGroupOption(n,{type:a}),t.manager.sortGroups(!0)}function g(n,a){t.manager.setGroupOption(n,a),t.manager.update(!0)}const p=T(()=>t.manager.state.groupBy.map(n=>f.properties[n])),l=T(()=>{const n=[];return t.manager.state.groupBy.forEach(a=>{n.push({option:t.manager.state.options[a],property:f.properties[a]})}),n});return(n,a)=>(s(),r("div",no,[e("div",io,x(n.$t("main.menu.groupby"))+": ",1),p.value.length?(s(),r("div",ro,[(s(!0),r(E,null,q(l.value,(c,k)=>(s(),r(E,null,[k>0?(s(),r("i",uo)):y("",!0),e("div",{class:"base-hover m-1 ps-1 pe-1",onClick:$=>d(c.property.id),id:"remove-group-button"},x(c.property.name),9,po),c.option.type==m(oe).Size?(s(),V(F,{key:1,message:"main.menu.sort.group_order_nb_tooltip"},{default:h(()=>[c.option.direction==m(ee).Ascending?(s(),r("i",{key:0,class:"bi bi-sort-up-alt sm-btn",onClick:$=>i(c.property.id,m(oe).Property)},null,8,co)):(s(),r("i",{key:1,class:"bi bi-sort-down sm-btn",onClick:$=>i(c.property.id,m(oe).Property)},null,8,mo))]),_:2},1024)):(s(),V(F,{key:2,message:"main.menu.sort.group_order_az_tooltip"},{default:h(()=>[c.property.type==m(N).number?(s(),r(E,{key:0},[c.option.direction==m(ee).Ascending?(s(),r("i",{key:0,class:"bi bi-sort-numeric-up sm-btn",onClick:$=>i(c.property.id,m(oe).Size)},null,8,vo)):(s(),r("i",{key:1,class:"bi bi-sort-numeric-down-alt sm-btn",onClick:$=>i(c.property.id,m(oe).Size)},null,8,go))],64)):(s(),r(E,{key:1},[c.option.direction==m(ee).Ascending?(s(),r("i",{key:0,class:"bi bi-sort-alpha-up sm-btn",onClick:$=>i(c.property.id,m(oe).Size)},null,8,fo)):(s(),r("i",{key:1,class:"bi bi-sort-alpha-down-alt sm-btn",onClick:$=>i(c.property.id,m(oe).Size)},null,8,_o))],64))]),_:2},1024)),c.option.direction==m(ee).Ascending?(s(),V(F,{key:3,message:"main.menu.sort.order_asc"},{default:h(()=>[e("i",{class:"bi bi-arrow-up sm-btn",onClick:$=>u(c.property.id,m(ee).Descending)},null,8,yo)]),_:2},1024)):(s(),V(F,{key:4,message:"main.menu.sort.order_desc"},{default:h(()=>[e("i",{class:"bi bi-arrow-down sm-btn",onClick:$=>u(c.property.id,m(ee).Ascending)},null,8,ho)]),_:2},1024)),c.property.type==m(N).date?(s(),r("div",bo,[C(lo,{option:c.option,onChange:$=>g(c.property.id,$)},null,8,["option","onChange"])])):y("",!0)],64))),256)),t.isLoading?(s(),r("i",ko)):y("",!0)])):y("",!0),C(ze,{id:"add-group-button","group-ids":t.manager.state.groupBy,onSelect:a[0]||(a[0]=c=>o(c))},null,8,["group-ids"])]))}});const xo=j($o,[["__scopeId","data-v-dcec9b5d"]]),wo={class:"d-flex flex-row sort-form"},Co={class:"pt-1 pb-1"},So={key:0,class:"d-flex flex-row m-0 p-0 bg-medium bg ms-1 align-items-center"},Mo={key:0,class:"bi bi-chevron-right smaller"},Vo=["onClick"],Io=["onClick"],Fo=["onClick"],To=L({__name:"SortForm",props:{manager:Ye},setup(S){const f=X(),t=S,o=T(()=>t.manager.state.sortBy.map(p=>({propertyId:p,direction:t.manager.state.options[p].direction}))),d=T(()=>o.value.map(p=>p.propertyId));function u(p){t.manager.setSort(p),t.manager.update(!0)}function i(p){t.manager.delSort(p),t.manager.update(!0)}function g(p,l){t.manager.setSort(p,{direction:l}),t.manager.update(!0)}return(p,l)=>(s(),r("div",wo,[e("div",Co,x(p.$t("main.menu.sort.title"))+": ",1),o.value.length?(s(),r("div",So,[(s(!0),r(E,null,q(o.value,(n,a)=>(s(),r(E,null,[a>0?(s(),r("i",Mo)):y("",!0),e("div",{class:"me-0 ms-1 ps-1 mt-1 mb-1 pe-1 base-hover",onClick:c=>i(n.propertyId)},x(m(f).properties[n.propertyId].name),9,Vo),n.direction==m(ee).Ascending?(s(),V(F,{key:1,message:"main.menu.sort.order_asc"},{default:h(()=>[e("i",{class:"bi bi-arrow-up sm-btn",onClick:c=>g(n.propertyId,m(ee).Descending)},null,8,Io)]),_:2},1024)):(s(),V(F,{key:2,message:"main.menu.sort.order_desc"},{default:h(()=>[e("i",{class:"bi bi-arrow-down sm-btn",onClick:c=>g(n.propertyId,m(ee).Ascending)},null,8,Fo)]),_:2},1024))],64))),256))])):y("",!0),C(ze,{"group-ids":d.value,onSelect:l[0]||(l[0]=n=>u(n))},null,8,["group-ids"])]))}});const zo=j(To,[["__scopeId","data-v-4e00ef99"]]),Eo={class:"custom-slider"},Oo=["value","min","max","step"],Po=L({__name:"RangeInput",props:{min:{default:0},max:{default:1},step:{default:.1},modelValue:{}},emits:["update:modelValue"],setup(S,{emit:f}){const t=S,o=f,d=I(t.modelValue),u=I(null),i=(n,a,c)=>(n-a)/(c-a),g=n=>{u.value.style.setProperty("--ProgressPercent",`${n}%`)};Xe(()=>{if(u.value){const n=i(d.value,u.value.min,u.value.max);g(n+0)}});function p(){o("update:modelValue",d.value)}let l=!1;return navigator.userAgent.indexOf("AppleWebKit")!=-1&&(l=!0),W(()=>t.modelValue,()=>d.value=t.modelValue),(n,a)=>(s(),r("div",Eo,[e("input",{ref_key:"slider",ref:u,value:d.value,onInput:a[0]||(a[0]=({target:c})=>d.value=parseFloat(c.value)),type:"range",min:n.min,max:n.max,step:n.step,class:"slider",style:Y(m(l)?"top:-5px":""),onChange:p},null,44,Oo)]))}});const Do=j(Po,[["__scopeId","data-v-5269b272"]]),Go={class:"p-2"},Lo={key:0,class:"border mb-1 p-1 text-center text-secondary",style:{"background-color":"#f7f7f7"}},Ro={class:"border mb-1 p-1"},Ao={class:"me"},jo={key:0},Uo={key:1},Ho={class:"border mb-1 p-1",style:{"background-color":"#f7f7f7"}},Bo={class:"d-flex center justify-content-center"},No={key:1,class:"bi bi-arrow-down text-secondary"},Wo={key:3,class:"bi bi-arrow-up text-secondary"},qo={class:"border mb-1 p-1"},Ko={class:"me"},Qo={key:0},Yo={key:1},Xo={key:1,class:"border mb-1 p-1 text-center text-secondary",style:{"background-color":"#f7f7f7"}},le=5,Zo=L({__name:"HistoryDropdown",emits:[],setup(S,{emit:f}){const t=X(),o=I(!1),d=T(()=>o.value?{backgroundColor:"blue"}:{backgroundColor:"white"}),u=T(()=>[...t.history.undo].reverse().slice(0,le)),i=T(()=>t.history.redo.slice(Math.max(t.history.redo.length-le,0)));return W(()=>t.onUndo,()=>{console.log("changed"),o.value=!0,setTimeout(()=>o.value=!1,100)}),(g,p)=>u.value.length||i.value.length?(s(),V(se,{key:0},{button:h(()=>[C(F,{message:"dropdown.history.info"},{default:h(()=>[e("div",{class:"d-flex sb flash",style:Y([{"font-size":"14px"},d.value])},[p[2]||(p[2]=e("i",{class:"bi bi-clock-history me-1"},null,-1)),e("div",null,x(g.$t("dropdown.history.button")),1)],4)]),_:1})]),popup:h(()=>[e("div",Go,[m(t).history.redo.length>le?(s(),r("div",Lo," + "+x(m(t).history.redo.length-le),1)):y("",!0),(s(!0),r(E,null,q(i.value,l=>(s(),r("div",Ro,[e("span",Ao,x(new Date(l.timestamp).toLocaleTimeString("fr-Fr",{hour:"2-digit",minute:"2-digit"})),1),p[3]||(p[3]=e("span",{class:"sep ms-1 me-1"},null,-1)),l.tags?(s(),r("span",jo,x(l.tags)+" "+x(g.$t("dropdown.history.tags")),1)):y("",!0),l.values?(s(),r("span",Uo,x(l.values)+" "+x(g.$t("dropdown.history.values")),1)):y("",!0)]))),256)),e("div",Ho,[e("div",Bo,[u.value.length?(s(),V(F,{key:0,message:"dropdown.history.undo"},{default:h(()=>[e("div",{class:"bi bi-arrow-down sb",onClick:p[0]||(p[0]=(...l)=>m(t).undo&&m(t).undo(...l))})]),_:1})):(s(),r("div",No)),p[4]||(p[4]=e("div",{style:{width:"30px"}},null,-1)),i.value.length?(s(),V(F,{key:2,message:"dropdown.history.redo"},{default:h(()=>[e("div",{class:"bi bi-arrow-up sb",onClick:p[1]||(p[1]=(...l)=>m(t).redo&&m(t).redo(...l))})]),_:1})):(s(),r("div",Wo))])]),(s(!0),r(E,null,q(u.value,l=>(s(),r("div",qo,[e("span",Ko,x(new Date(l.timestamp).toLocaleTimeString("fr-Fr",{hour:"2-digit",minute:"2-digit"})),1),p[5]||(p[5]=e("span",{class:"sep ms-1 me-1"},null,-1)),l.tags?(s(),r("span",Qo,x(l.tags)+" "+x(g.$t("dropdown.history.tags")),1)):y("",!0),l.values?(s(),r("span",Yo,x(l.values)+" "+x(g.$t("dropdown.history.values")),1)):y("",!0)]))),256)),m(t).history.undo.length>le?(s(),r("div",Xo," + "+x(m(t).history.undo.length-le),1)):y("",!0)])]),_:1})):y("",!0)}});const Jo=j(Zo,[["__scopeId","data-v-85cd80d0"]]),ea=L({__name:"ToggleReload",emits:[],setup(S,{emit:f}){const t=ae(),o=T(()=>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(u,i)=>(s(),r("div",{class:"bb font",onClick:d,style:{width:"26px",height:"30px",overflow:"hidde"}},[o.value==0?(s(),V(F,{key:0,message:"btn.reload.dirty",pos:"bottom"},{default:h(()=>i[0]||(i[0]=[e("span",{class:"bi bi-arrow-repeat text-warning"},null,-1)])),_:1})):y("",!0),o.value==1?(s(),V(F,{key:1,message:"btn.reload.valid",pos:"bottom"},{default:h(()=>i[1]||(i[1]=[e("span",{class:"bi bi-check2-all text-success"},null,-1)])),_:1})):y("",!0),o.value==2?(s(),V(F,{key:2,message:"btn.reload.auto",pos:"bottom"},{default:h(()=>i[2]||(i[2]=[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)])),_:1})):y("",!0)]))}});const ta=j(ea,[["__scopeId","data-v-61c9799b"]]),sa={class:"d-flex flex-row p-2"},oa=["placeholder"],aa={class:"me-5 d-flex"},la={class:"ms-5",style:{"font-size":"13px"}},na=["checked"],ia={class:"ms-1"},ra={class:"ms-4"},da={class:"d-flex flex-wrap content-container ps-2"},ua=L({__name:"ContentFilter",props:{tab:Ze,computeStatus:Object},emits:["compute-ml","search-images","remove:selected"],setup(S,{emit:f}){const t=S,o=I(""),d=T(()=>Object.keys(t.tab.collection.groupManager.selectedImages.value).map(Number)),u=T(()=>d.value.length);function i(n){const a=n.target.checked;t.tab.collection.groupManager.setSha1Mode(a,!0)}function g(){o.value=t.tab.state.filterState.query}function p(){t.tab.collection.filterManager.setQuery(o.value),t.tab.collection.filterManager.update(!0)}function l(){t.tab.collection.filterManager.setQuery(""),t.tab.collection.filterManager.update(!0)}return ne(g),W(()=>t.tab.collection.filterManager.state.query,g),(n,a)=>(s(),r(E,null,[e("div",sa,[C(F,{icon:!0,message:"main.menu.search_tooltip",iconPos:"left"},{default:h(()=>[e("div",{class:B(["d-flex flex-row search-input me-5",o.value?"border-primary":""])},[a[6]||(a[6]=e("div",{class:"bi bi-search float-start bi-sm"},null,-1)),re(e("input",{type:"text",class:"input-hidden",placeholder:n.$t("main.menu.search"),"onUpdate:modelValue":a[0]||(a[0]=c=>o.value=c),onChange:p},null,40,oa),[[me,o.value]]),e("div",{class:"bi-sm base-hover",style:{cursor:"pointer",padding:"0px 2px"},onClick:l},"x")],2)]),_:1}),e("div",aa,[C(F,{message:"main.menu.grid_tooltip"},{default:h(()=>[e("i",{class:B("bi bi-grid-3x3-gap-fill me-2 btn-icon"+(t.tab.state.display=="tree"?"":" text-secondary")),onClick:a[1]||(a[1]=c=>t.tab.state.display="tree")},null,2)]),_:1}),C(F,{message:"main.menu.table_tooltip"},{default:h(()=>[e("i",{id:"toot",class:B("bi bi-table btn-icon me-2"+(t.tab.state.display=="grid"?"":" text-secondary")),onClick:a[2]||(a[2]=c=>t.tab.state.display="grid")},null,2)]),_:1}),C(F,{message:"main.menu.graph_tooltip"},{default:h(()=>[e("i",{id:"toot",class:B("bi bi-bar-chart btn-icon"+(t.tab.state.display=="graph"?"":" text-secondary")),onClick:a[3]||(a[3]=c=>t.tab.state.display="graph")},null,2)]),_:1})]),C(F,{message:"main.menu.image_size_tooltip",click:!1},{default:h(()=>a[7]||(a[7]=[e("div",{class:"bi bi-aspect-ratio me-1"},null,-1)])),_:1}),e("div",null,[C(Do,{min:30,max:500,modelValue:t.tab.state.imageSize,"onUpdate:modelValue":a[4]||(a[4]=c=>t.tab.state.imageSize=c)},null,8,["modelValue"])]),e("div",la,[C(F,{message:"main.menu.image_mode_tooltip"},{default:h(()=>[e("input",{type:"checkbox",checked:t.tab.collection.groupManager.state.sha1Mode,onChange:i},null,40,na),e("span",ia,x(n.$t("main.menu.image_mode")),1)]),_:1})]),e("div",ra,[C(Jo)]),u.value?(s(),V(Je,{key:0,id:"selection-stamp",class:"ms-5","selected-images-ids":d.value,"onRemove:selected":a[5]||(a[5]=c=>t.tab.collection.groupManager.clearSelection())},null,8,["selected-images-ids"])):y("",!0),a[9]||(a[9]=e("div",{class:"flex-grow-1"},null,-1)),C(F,{message:"main.menu.issue",class:"bb"},{default:h(()=>a[8]||(a[8]=[e("a",{href:"https://github.com/CERES-Sorbonne/Panoptic/issues/new/choose",target:"_blank",class:"bi bi-cone-striped",style:{color:"grey"}},null,-1)])),_:1})]),e("div",da,[C(ta,{class:"me-1"}),C(qs,{manager:t.tab.collection.filterManager},null,8,["manager"]),C(xo,{"is-loading":t.computeStatus.groups,manager:t.tab.collection.groupManager},null,8,["is-loading","manager"]),C(zo,{manager:t.tab.collection.sortManager},null,8,["manager"])])],64))}});const pa=j(ua,[["__scopeId","data-v-3f54024a"]]),ca={class:""},ma={class:"d-flex flex-row"},va=L({__name:"ImageRecomended",props:{pile:Object,size:{type:Number,default:100}},emits:["accept","refuse"],setup(S,{emit:f}){const t=de(),o=S,d=f,u=T(()=>`width: ${o.size}px; height: ${o.size}px;`);T(()=>`max-width: ${o.size-2}px; max-height: ${o.size-1}px;`);const i=T(()=>o.pile.images[0]);return(g,p)=>(s(),r("div",ca,[C(tt,{image:i.value},{default:h(()=>[e("div",{style:Y(u.value),class:"img-container",onClick:p[0]||(p[0]=l=>m(t).showModal(m(te).IMAGE,{image:i.value}))},[C(et,{image:i.value,width:o.size-2,height:o.size-1},null,8,["image","width","height"])],4)]),_:1},8,["image"]),e("div",ma,[C(F,{message:"main.recommand.accept"},{default:h(()=>[e("div",{style:Y(["width: "+o.size/2+"px;",{"font-size":"10px"}]),class:"text-center text-success validate clickable unselectable",onClick:p[1]||(p[1]=l=>d("accept",i.value))}," ✓ ",4)]),_:1}),C(F,{message:"main.recommand.refuse"},{default:h(()=>[e("div",{style:Y(["width: "+o.size/2+"px;",{"font-size":"10px"}]),class:"text-center text-danger refuse clickable unselectable",onClick:p[2]||(p[2]=l=>d("refuse",i.value))}," ✕ ",4)]),_:1})])]))}});const ga=j(va,[["__scopeId","data-v-2ff8fded"]]),fa={class:"reco-container"},_a={class:"d-flex flex-row m-0 ps-2 center mb-1 mt-0",style:{height:"25px"}},ya={key:0,class:"bi bi-funnel-fill bb text-primary"},ha={key:1,class:"bi bi-funnel bb"},ba={class:"text-secondary me-2"},ka={style:{"padding-top":"2px"},class:"me-1"},$a={class:"flex-grow-1"},xa={class:"d-flex flex-row"},wa={key:0,class:"separator"},Ca={class:"d-flex flex-row"},ge=10,Sa=L({__name:"RecommendedMenu",props:{imageSize:{},group:{},width:{},height:{}},emits:["scroll","close","update"],setup(S,{emit:f}){const t=ae(),o=X(),d=st(),u=S,i=f,g=I(1),p=ie([]),l=I(null),n=ie([]),a=ie(new Set),c=I(!0);function k(b){const M=l.value;M.isSha1Group?M.images=M.images.filter(O=>O.sha1!=b.sha1):M.images=M.images.filter(O=>O.id!=b.id),l.value=M,P()}async function $(b){const M=[],O=[];n.forEach(U=>{if(U.value!=null){const R=o.properties[U.propertyId];let H=U.value;R.type==N.multi_tags?(H=b.properties[U.propertyId]??[],H=[...H,U.value]):R.type==N.tag&&(H=[H]),R.mode==fe.id?O.push({instanceId:b.id,propertyId:R.id,value:H}):M.push({propertyId:R.id,sha1:b.sha1,value:H})}}),await o.setPropertyValues(O,M),k(b)}function G(b){l.value.isSha1Group?l.value.images.filter(M=>M.sha1==b.sha1).forEach(M=>a.add(M.id)):a.add(b.id),k(b)}function P(){p.length=0;let b=[];const M=l.value.images;if(l.value.isSha1Group){const O={},U=Array.from(new Set(M.map(R=>R.sha1)));U.forEach(R=>O[R]=[]),M.forEach(R=>O[R.sha1].push(R)),U.forEach(R=>b.push({sha1:R,images:o.sha1Index[R]}))}else M.forEach(O=>b.push({sha1:O.sha1,images:[O]}));v(b,p,g.value,u.imageSize,u.width)}function v(b,M,O,U,R){let H=R,Q=[],D=0;for(let z=0;z=O);z++){let K=b[z];if(K.images=K.images.filter(Ee=>!a.has(Ee.id)),K.images.length==0)continue;let ue=U+ge;if(D+ue0&&M.lengthQ.id);const O=await d.getSimilarImages(M);if(!O)return;if(!O.groups)throw new Error("No instances in ActionResult");let R=ot(O.groups)[0];if(c.value){const Q=new Set(t.getTabManager().collection.filterManager.result.images.map(D=>D.id));R.images=R.images.filter(D=>Q.has(D.id))}R.scores&&at(R),l.value=R,n.length=0;let H=u.group;for(;H;)n.push(...H.meta.propertyValues),H=H.parent;a.clear(),P(),i("update")}function w(){c.value=!c.value}return ne(_),W(()=>u.group,()=>{_(),a.clear()}),W(()=>u.imageSize,P),W(()=>u.width,P),W(c,_),(b,M)=>(s(),r("div",fa,[e("div",_a,[e("div",{class:"text-secondary pe-1",onClick:M[0]||(M[0]=O=>i("close"))},M[2]||(M[2]=[e("span",{class:"bi bi-x-lg bb",style:{}},null,-1)])),M[4]||(M[4]=e("div",{class:"b-left pe-1"},null,-1)),e("div",{class:"text-secondary pe-1",onClick:M[1]||(M[1]=O=>i("scroll",u.group.id))},M[3]||(M[3]=[e("span",{class:"bi bi-arrow-down-circle bb"},null,-1)])),M[5]||(M[5]=e("div",{class:"b-left pe-1"},null,-1)),e("div",{class:"text-secondary pe-1",onClick:w},[c.value?(s(),r("span",ya)):(s(),r("span",ha))]),M[6]||(M[6]=e("div",{class:"b-left pe-1"},null,-1)),C(F,{"icon-pos":"left",message:"main.recommand.tooltip",icon:!0},{default:h(()=>[e("span",ba,x(b.$t("main.recommand.title")),1)]),_:1}),e("div",ka,[C(lt,{action:"similar",onChanged:_})]),e("div",$a,[e("div",xa,[(s(!0),r(E,null,q(n,(O,U)=>(s(),r(E,null,[C(nt,{class:"",value:O},null,8,["value"]),U(s(),r("div",null,[e("div",Ca,[(s(!0),r(E,null,q(O,U=>(s(),V(ga,{pile:U,size:u.imageSize,onAccept:$,onRefuse:G,style:Y("margin-right:"+ge+"px;")},null,8,["pile","size","style"]))),256))])]))),256))],4)]))}});const Ma=j(Sa,[["__scopeId","data-v-dcbdfe63"]]);const Va={style:{display:"flex"}},Ia={class:"info"},Fa={__name:"LineChart",props:{chartData:{series:Array,xValues:Array,dataType:N},height:String},setup(S){const f=S,t=I(0),o=I(!1),d={};Object.keys(f.chartData.series).forEach(a=>{d[a]=!1});const u=I({markers:{size:7},legend:{showForSingleSeries:!0,onItemClick:{toggleDataSeries:!1}},xaxis:{type:f.chartData.dataType===N.date?"datetime":"numeric",categories:f.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:a,seriesIndex:c,dataPointIndex:k,w:$}){const G=f.chartData.series[c].data[k];let P='
';G.images.forEach((_,w)=>{w<10&&(P+=`
`)}),P+="
";let v=`${f.chartData.series[c].name} — ${G.y} Images`;return v+=`
${P}
`,v}}}),i=()=>{u.value.chart.stacked=!u.value.chart.stacked,o.value=!o.value,t.value+=1},g=()=>{let a;u.value.chart.type==="area"?a={chart:{...u.value.chart,type:"bar"}}:a={chart:{...u.value.chart,type:"area"}},u.value={...u.value,...a},t.value+=1},p=(a,c,k)=>{const G=f.chartData.series[c];let P=Math.max(...G.data.map(v=>v.y));if(document.querySelectorAll(".apexcharts-custom-image").forEach(v=>v.remove()),d[c]){d[c]=!1;return}G.data.forEach((v,_)=>{const b=Math.floor(v.y/P*17),M=v.images.slice(0,b),O=`circle[index="${c}"][j="${_}"]`,U=document.querySelector(O),R=parseFloat(U.getAttribute("cx"));M.forEach((H,Q)=>{const D=document.createElement("img");D.src=H,D.width=40,D.height=40,D.style.position="absolute";let z=R+40/1.5,K=65+Q*40;D.style.left=`${z}px`,D.style.bottom=`${K}px`,D.classList.add("apexcharts-custom-image"),D.addEventListener("mouseover",ue=>l(z,K,H)),D.addEventListener("mouseout",n),a.el.appendChild(D)})}),Object.keys(d).forEach(v=>d[v]=!1),d[c]=!0};function l(a,c,k){const $=document.getElementById("zoomed-image");$.style.left=`${a+120*1.5}px`,$.src=k,$.style.bottom=`${c}px`,$.style.display="block"}function n(){const a=document.getElementById("zoomed-image");a.style.display="none"}return console.log("test"),(a,c)=>{const k=Se("apexchart");return s(),r(E,null,[e("div",Va,[e("button",{class:"mt-2",onClick:g},x(u.value.chart.type==="area"?a.$t("main.graph-view.histo"):a.$t("main.graph-view.curve")),1),f.chartData.series.length>1?(s(),r("button",{key:0,class:"mt-2",style:{"margin-left":"1em"},onClick:i},x(o.value?a.$t("main.graph-view.over"):a.$t("main.graph-view.stack")),1)):y("",!0)]),(s(),V(k,{style:{position:"relative"},key:t.value,height:f.height,type:u.value.chart.type,options:u.value,series:f.chartData.series,onLegendClick:p},null,8,["height","type","options","series"])),e("i",Ia,x(a.$t("main.graph-view.info")),1),c[0]||(c[0]=e("img",{id:"zoomed-image",style:{display:"none",position:"absolute","z-index":"1000",width:"120px",height:"120px","pointer-events":"none"}},null,-1))],64)}}},Ta={key:1},za=L({__name:"GraphView",props:{collection:{},height:{}},emits:[],setup(S,{emit:f}){const t=X(),o=S,d=I(""),u=I(g());function i(){const p=new Set;let l=o.collection.groupManager.getGroupIterator();for(;l;){const n=l.group;if(n.id===0||n.meta.propertyValues&&n.meta.propertyValues[0].value==null){l=l.nextGroup();continue}for(let a of n.children)p.add(a.meta.propertyValues[0].value);n.children.forEach(()=>l=l.nextGroup()),l=l.nextGroup()}return p}function g(){const p={};let l,n=o.collection.groupManager.state.groupBy;if(n.length===0){d.value="Choose at least one date or numeric value to group the images by";return}const a=t.properties[n[0]],c=a.type;if(n.length>2){d.value="Only max two levels of grouping are supported";return}else if(n.length===1)p[a.name]={name:a.name,data:[]};else if(l=Array.from(i()),l.length>20){d.value="Too many curves to draw, select a subgrouping with less than 20 possible values";return}if(c!==N.number&&c!==N.date){d.value="First level of grouping needs to be a date or a numeric property";return}let k=o.collection.groupManager.getGroupIterator();const $=[];for(;k;){const G=k.group;if(G.id===0||G.meta.propertyValues&&G.meta.propertyValues[0].value==null){k=k.nextGroup();continue}let P=G.meta.propertyValues[0];const v=c===N.date?new Date(P.value).getTime():P.value;if($.push(v),a.name in p)p[a.name].data.push({x:v,y:G.images.length,images:G.images.slice(0,20).map(_=>_.urlSmall)});else{const _=G.children.map(b=>b.meta.propertyValues[0].value),w=l.filter(b=>!_.includes(b));for(let b of G.children){const M=b.meta.propertyValues[0].value;if(p[M]===void 0){let O=M;M in t.tags&&(O=t.tags[M].value),p[M]={data:[],name:O}}p[b.meta.propertyValues[0].value].data.push({x:v,y:b.images.length,images:b.images.slice(0,20).map(O=>O.urlSmall)})}for(let b of w){if(p[b]===void 0){let M=b;b in t.tags&&(M=t.tags[b].value),p[b]={data:[],name:M}}p[b].data.push({x:v,y:0,images:[]})}G.children.forEach(()=>k=k.nextGroup())}k=k.nextGroup()}return d.value="",{series:Object.values(p),xValues:$,dataType:c}}return o.collection.groupManager.onChange.addListener(()=>u.value=g()),(p,l)=>(s(),r("div",{class:"",style:Y({height:o.height+"px"})},[d.value===""?(s(),V(Fa,{key:0,chartData:u.value,height:o.height-50+"px"},null,8,["chartData","height"])):(s(),r("span",Ta,x(d.value),1))],4))}}),Ea={key:0,class:"m-0 p-0"},Oa={key:0,style:{"margin-left":"10px"}},Pa=L({__name:"MainView",props:{tabId:{},height:{},filterOpen:{type:Boolean}},setup(S,{expose:f}){const t=ae(),o=t.getTabManager(),d=S;f({updateScrollerWidth:v});const u=I({}),i=I(!0),g=I(null),p=I(null),l=I(null),n=I(0),a=I(0),c=ie({groups:!1}),k=T(()=>o.getVisibleProperties());function $(){g.value&&p.value?n.value=d.height-g.value.clientHeight-p.value.clientHeight-5:g.value?n.value=d.height-g.value.clientHeight-5:n.value=0}o.collection.groupManager.onChange.addListener(()=>{l.value&&o.state.display=="tree"&&l.value.computeLines()});function G(_){u.value=o.collection.groupManager.result.index[_],Z(()=>$())}function P(){u.value={},Z(()=>$())}async function v(){var _;await Z(),a.value=((_=g.value)==null?void 0:_.clientWidth)??a.value}return ne(()=>{a.value=g.value.clientWidth,window.addEventListener("resize",v)}),Ie(()=>{window.removeEventListener("resize",v)}),W(()=>o.state.imageSize,()=>Z($)),W(()=>d.filterOpen,()=>Z($)),W(()=>d.height,async()=>{await Z($)}),W(o.state,_=>{t.updateTabs()},{deep:!0}),W(()=>d.tabId,async()=>{i.value=!1,await Z(),i.value=!0}),(_,w)=>(s(),r(E,null,[e("div",{id:"main-content",ref_key:"filterElem",ref:g},[d.filterOpen?(s(),V(pa,{key:0,tab:m(o),"compute-status":c},null,8,["tab","compute-status"])):y("",!0)],512),e("div",{ref_key:"boxElem",ref:p,class:"m-0 p-0"},[u.value.id?(s(),r("div",Ea,[C(Ma,{group:u.value,"image-size":m(o).state.imageSize,width:a.value,height:50,onClose:P,onScroll:l.value.scrollTo,onUpdate:w[0]||(w[0]=b=>Z(()=>$()))},null,8,["group","image-size","width","onScroll"])])):y("",!0)],512),a.value>0&&n.value>0&&i.value?(s(),r("div",Oa,[m(o).state.display=="tree"?(s(),V(it,{key:0,"group-manager":m(o).collection.groupManager,"image-size":m(o).state.imageSize,height:n.value-0,properties:k.value,"hide-if-modal":!0,"selected-images":m(o).collection.groupManager.selectedImages,ref_key:"imageList",ref:l,width:a.value-25,onRecommend:G},null,8,["group-manager","image-size","height","properties","selected-images","width"])):y("",!0),m(o).state.display=="grid"?(s(),r("div",{key:1,style:Y({width:a.value-12+"px"}),class:"p-0 m-0 grid-container"},[C(rt,{manager:m(o).collection.groupManager,height:n.value-15,width:a.value-40,"selected-properties":k.value,class:"p-0 m-0","show-images":!0,"selected-images":m(o).collection.groupManager.selectedImages,ref_key:"imageList",ref:l,"hide-if-modal":!0},null,8,["manager","height","width","selected-properties","selected-images"])],4)):y("",!0),m(o).state.display=="graph"?(s(),V(za,{key:2,collection:m(o).collection,height:n.value-15},null,8,["collection","height"])):y("",!0)])):y("",!0)],64))}});const Da=j(Pa,[["__scopeId","data-v-2bf1a91a"]]),Ga={class:"d-flex d-row",style:{cursor:"pointer"}},La={class:"pt-1"},Ra={key:0,class:"bb bi bi-chevron-down"},Aa={key:1,class:"bb bi bi-chevron-right"},ja=["onMouseenter","onMouseleave"],Ua=["onClick"],Ha=["onClick"],Ba=["onClick"],Na=["onUpdate:modelValue"],Wa={style:{"padding-top":"2px","margin-right":"2px"}},qa={class:"lang"},Ka=["value"],Qa=L({__name:"TabNav",props:{reRender:{type:Function},filterOpen:{type:Boolean}},emits:["update:filterOpen"],setup(S,{emit:f}){const t=de(),o=ae(),d=I(-1),u=I(""),i=I(null),g=S,p=f;function l(v){o.data.selectedTabId==v||a(),o.selectTab(v)}function n(v){d.value=v,u.value=o.data.tabs[v].name,Z(()=>i.value[0].focus())}function a(){d.value=-1,u.value=""}function c(v){o.addTab("New Tab")}async function k(v){confirm("Are you sure to delete Tab: "+v.name)&&await o.removeTab(v.id)}const $=ie({});I(-1);const G=["fr","en"];function P(){p("update:filterOpen",!g.filterOpen)}return(v,_)=>(s(),r("nav",null,[e("div",Ga,[e("div",La,[e("span",{onClick:P},[g.filterOpen?(s(),r("i",Ra)):(s(),r("i",Aa))])]),(s(!0),r(E,null,q(m(o).data.tabs,w=>(s(),r("div",{class:"d-flex d-row me-2",onMouseenter:b=>$[w.id]=!0,onMouseleave:b=>$[w.id]=!1},[d.value!=w.id?(s(),r(E,{key:0},[C(F,{message:"main.menu.rename_tab_tooltip"},{default:h(()=>[e("i",{onClick:b=>n(w.id),class:B(["bi bi-pencil me-1 tab-icon hover-light",$[w.id]&&m(o).data.selectedTabId==w.id?"":"hidden"]),style:{"font-size":"10px"}},null,10,Ua)]),_:2},1024),e("div",{class:B(["tab-button",w.id==m(o).data.selectedTabId?" active":""]),onClick:b=>l(w.id)},[e("span",null,x(w.name),1)],10,Ha),C(F,{message:"main.menu.delete_tab_tooltip"},{default:h(()=>[e("i",{onClick:b=>k(w),class:B(["btn-icon bi bi-x tab-icon hover-light",$[w.id]?"":"hidden"]),style:{"font-size":"15px"}},null,10,Ba)]),_:2},1024)],64)):(s(),r("div",{key:1,class:B(["tab-button",w.id==m(o).data.selectedTabId?" active":""])},[e("form",{onSubmit:Ce(a,["stop","prevent"])},[re(e("input",{onFocusout:a,onKeydown:ut(a,["escape"]),type:"text",class:"text-input","onUpdate:modelValue":b=>w.name=b,ref_for:!0,ref_key:"inputElem",ref:i},null,40,Na),[[me,w.name]])],32)],2))],40,ja))),256)),C(F,{message:"main.menu.add_tab_tooltip"},{default:h(()=>[e("button",{class:"tab-icon hover-light ps-1 pe-1",onClick:c,id:"add-tab-button"},_[3]||(_[3]=[e("span",{class:"bi bi-plus"},null,-1)]))]),_:1}),_[6]||(_[6]=e("div",{class:"flex-grow-1"},null,-1)),e("div",Wa,[C(F,{message:"modals.notif.icon"},{default:h(()=>[e("span",{class:"bb",onClick:_[0]||(_[0]=w=>m(t).showModal(m(te).NOTIF))},_[4]||(_[4]=[e("i",{class:"bi bi-bell"},null,-1)]))]),_:1})]),e("div",qa,[_[5]||(_[5]=e("i",{class:"bi bi-translate",style:{"margin-right":"0.5rem"}},null,-1)),re(e("select",{"onUpdate:modelValue":_[1]||(_[1]=w=>v.$i18n.locale=w),onChange:_[2]||(_[2]=w=>g.reRender())},[(s(),r(E,null,q(G,(w,b)=>e("option",{key:`Lang${b}`,value:w},x(w.toUpperCase()),9,Ka)),64))],544),[[dt,v.$i18n.locale]])])])]))}});const Ya={key:0},Xa={class:"d-flex flex-row m-0 p-0 overflow-hidden"},Za={class:"w-100"},Ja={key:0,class:"custom-hr"},el={key:1,class:"loading"},tl={class:"text-center"},sl={key:2,class:"loading"},ol=L({__name:"PanopticView",setup(S){const f=ae(),t=X(),o=de(),d=I(null),u=I(null),i=I(window.innerHeight),g=I(!1),p=I(!0),l=I(!0),n=T(()=>{var _;return i.value-(((_=u.value)==null?void 0:_.clientHeight)??0)}),a=T(()=>{var _;return(_=d.value)==null?void 0:_.filteredImages.map(w=>w.id)});let c=navigator.userAgent.indexOf("Mac OS X")!==-1;async function k(){p.value=!1,await Z(),p.value=!0}ne(async()=>{o.isProjectLoaded||$e.push("/"),Z(()=>{window.addEventListener("resize",$),$()}),window.addEventListener("keydown",_=>{_.key=="Control"&&(A.ctrl=!0),_.key=="Alt"&&(c&&(A.ctrl=!0),A.alt=!0),_.key=="Shift"&&(A.shift=!0),_.key=="ArrowLeft"&&(A.left=!0),_.key=="ArrowRight"&&(A.right=!0,console.log("keeeyy")),_.key=="Z"&&A.ctrl&&t.redo(),_.key=="z"&&A.ctrl&&t.undo()}),window.addEventListener("keyup",_=>{_.key=="Control"&&(A.ctrl=!1),_.key=="Alt"&&(c&&(A.ctrl=!1),A.alt=!1),_.key=="Shift"&&(A.shift=!1),_.key=="ArrowLeft"&&(A.left=!1),_.key=="ArrowRight"&&(A.right=!1)}),window.addEventListener("mousemove",_=>{A.ctrl=_.ctrlKey,A.alt=_.altKey,A.shift=_.shiftKey,c&&(A.ctrl=A.ctrl||A.alt)})}),Ie(()=>{window.removeEventListener("resize",$)});function $(){i.value=window.innerHeight,g.value=!0}function G(){o.showModal(te.EXPORT,a)}function P(){$e.push("/")}function v(){d.value&&d.value.updateScrollerWidth()}return(_,w)=>p.value?(s(),r("div",Ya,[d.value&&!d.value.imageList?(s(),V(pt,{key:0,tutorial:"project"})):y("",!0),(s(),r("div",{id:"panoptic",key:m(f).status.renderNb},[e("div",Xa,[m(f).status.loaded?(s(),r(E,{key:0},[e("div",null,[C(us,{onExport:w[0]||(w[0]=b=>G()),onToggle:v})]),e("div",Za,[e("div",{class:"ms-1",ref_key:"navElem",ref:u},[C(Qa,{"re-render":k,filterOpen:l.value,"onUpdate:filterOpen":w[1]||(w[1]=b=>l.value=b)},null,8,["filterOpen"])],512),g.value?(s(),r("div",Ja)):y("",!0),C(Da,{"tab-id":m(f).data.selectedTabId,height:n.value,ref_key:"mainViewRef",ref:d,"filter-open":l.value},null,8,["tab-id","height","filter-open"])])],64)):m(o).isProjectLoaded?(s(),r("div",sl,w[2]||(w[2]=[e("i",{class:"spinner-border",role:"status"},null,-1),e("span",{class:"ms-1"},"Loading...",-1)]))):(s(),r("div",el,[e("div",tl,[e("div",null,x(_.$t("main.status.no_project")),1),e("div",{class:"bi bi-house p-3",onClick:P,style:{"font-size":"50px",cursor:"pointer"}})])]))])]))])):y("",!0)}});const nl=j(ol,[["__scopeId","data-v-082194ff"]]);export{nl as default}; diff --git a/panoptic_back/panoptic/html/assets/PanopticView-d5ad3924.css b/panoptic_back/panoptic/html/assets/PanopticView-d5ad3924.css new file mode 100644 index 00000000..d5799071 --- /dev/null +++ b/panoptic_back/panoptic/html/assets/PanopticView-d5ad3924.css @@ -0,0 +1 @@ +.option-holder[data-v-908dfa0f]{border-radius:3px;padding:2px}.options[data-v-908dfa0f]{padding:3px;cursor:pointer}.selected[data-v-845ce316]{border:1px solid blue;padding:2px 4px!important}.tree[data-v-845ce316]{text-align:start;--spacing: 1.3rem;--radius: 30px;margin-bottom:0}.tree li[data-v-845ce316]{display:block;position:relative;margin-left:0;padding-left:calc(2 * var(--spacing) - var(--radius) - 0px)}.tree ul[data-v-845ce316]{margin-left:calc(var(--radius) - var(--spacing));padding-left:0;margin-bottom:0}.tree ul li[data-v-845ce316]{border-left:1px solid rgb(195,207,217)}.tree ul li[data-v-845ce316]:last-child{border-color:transparent}.tree ul li[data-v-845ce316]: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-845ce316]{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-845ce316]::marker,.tree summary[data-v-845ce316]::-webkit-details-marker{display:none}.tree summary[data-v-845ce316]:focus{outline:none}.tree summary[data-v-845ce316]:focus-visible{outline:1px dotted #000}.no-break[data-v-845ce316]{word-wrap:none;word-break:none;white-space:nowrap}.visible-option[data-v-845ce316]{padding-left:3px;position:relative;top:2px;color:#000}.invisible-option[data-v-845ce316]{padding-left:3px;position:relative;top:2px;color:#fff}.plus[data-v-55b40135]{font-size:1.5em}.plus[data-v-55b40135]:hover{cursor:pointer}.menu[data-v-55b40135]{font-size:13px;height:100vh;top:0;border-right:1px solid var(--border-color);-ms-overflow-style:none;scrollbar-width:none;overflow-y:scroll}.menu[data-v-55b40135]::-webkit-scrollbar{display:none}.menu b[data-v-55b40135]{font-size:13px}.menu h3[data-v-55b40135],.menu .h3[data-v-55b40135]{font-size:1.1rem;margin-left:1rem}.red-hover[data-v-55b40135]:hover{color:red}.button-like[data-v-21b8bb8e]{border-radius:3px;cursor:pointer;padding-right:3px;padding-left:3px}.filter-group[data-v-e644f737]{min-width:300px}.operator-offset[data-v-e644f737]{padding-left:2px}.add-options[data-v-e644f737]{margin-right:10px;cursor:pointer;padding-right:4px;border-radius:3px}.or-separator[data-v-56cd3bdb]{padding:0 4px}.bg[data-v-56cd3bdb]{border-radius:3px}.filter-form[data-v-cc2f25ec]{color:#212529;font-size:14px}.plus-btn[data-v-cc2f25ec]{padding:4px;border-radius:3px}.plus-btn[data-v-012e1f38]{padding:4px!important;border-radius:3px!important}.main[data-v-ce3e3774]{padding:5px;font-size:15px}.option[data-v-ce3e3774]{padding:2px 4px}.ipt[data-v-78b647dc]{padding:5px}input[type=number][data-v-78b647dc]{width:40px;font-size:15px!important}.loading[data-v-dcec9b5d]{background-color:#ababab;margin-top:7px;margin-right:5px;margin-left:-3px}.group-form[data-v-dcec9b5d]{color:#212529;font-size:14px}.bg[data-v-dcec9b5d]{border-radius:3px}.sort-form[data-v-4e00ef99]{color:#212529;font-size:14px}.bg[data-v-4e00ef99]{border-radius:3px}.plus-btn[data-v-4e00ef99]{padding:4px;border-radius:3px}.custom-slider[data-v-5269b272]{--trackHeight: 3px;--thumbRadius: 11px;--dark-color: rgb(120, 137, 150);--ligth-color: rgb(216, 222, 226)}.custom-slider input[type=range][data-v-5269b272]{position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:999px;width:100%;z-index:0}.custom-slider input[type=range][data-v-5269b272]:before{content:"";position:absolute;width:var(--ProgressPercent, 100%);height:100%;background:var(--dark-color);pointer-events:none;border-radius:999px}.custom-slider input[type=range][data-v-5269b272]::-webkit-slider-runnable-track{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ligth-color);height:var(--trackHeight);border-radius:999px}.custom-slider input[type=range][data-v-5269b272]::-moz-range-track{background:var(--ligth-color);height:var(--trackHeight);border-radius:999px}.custom-slider input[type=range][data-v-5269b272]::-moz-range-thumb{background:var(--dark-color);height:var(--thumbRadius);width:var(--thumbRadius);border-radius:999px;border:none}.custom-slider input[type=range][data-v-5269b272]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;width:var(--thumbRadius);height:var(--thumbRadius);margin-top:calc((var(--trackHeight) - var(--thumbRadius)) / 2);background:var(--dark-color);border-radius:999px;pointer-events:all;z-index:1}.custom-slider input[type=range][data-v-5269b272]::-moz-range-progress{background:var(--dark-color)}.flash[data-v-85cd80d0]{transition:background-color .5s ease}.font[data-v-61c9799b]{font-size:20px!important}.small-valid[data-v-61c9799b]{position:absolute;top:3px;left:4px;font-size:18px!important}.big-arrow[data-v-61c9799b]{position:relative;font-size:26px!important;top:-5px;left:-4px;transform:rotate(90deg);display:block}.custom-toggle[data-v-3f54024a]{--toggle-width: 60px !important;--toggle-bg-on: #a5a5a5;--toggle-border-on: #a5a5a5}.center-block[data-v-3f54024a]{margin:auto;display:block}.unique-switch[data-v-3f54024a]{height:10px}.unique-switch[data-v-3f54024a]:focus{height:10px;box-shadow:none}.content-container[data-v-3f54024a]{border-bottom:1px solid var(--border-color);padding-bottom:5px;margin:0}.search-input[data-v-3f54024a]{border:2px solid rgb(197,206,213);padding:1px;margin:0;border-radius:3px;width:180px}.input-hidden[data-v-3f54024a]{-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-3f54024a]:focus{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;outline-width:0;border:0;outline:none}.bi-sm[data-v-3f54024a]{font-size:10px;color:#788996;margin-top:2px;margin-right:4px;margin-left:3px}.validate[data-v-2ff8fded]{padding:3px;border:1px solid var(--validate-border)}.refuse[data-v-2ff8fded]{padding:3px;border:1px solid var(--refuse-border)}.refuse[data-v-2ff8fded]:hover{background-color:var(--refuse-border)}.validate[data-v-2ff8fded]:hover{background-color:var(--validate-border)}.img-container[data-v-2ff8fded]{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-2ff8fded]{width:100%;border-top:1px solid var(--border-color);padding:2px;font-size:12px}img[data-v-2ff8fded]{max-height:100%;max-width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.separator[data-v-dcbdfe63]{border-left:2px solid var(--border-color);margin:3px 4px}.close[data-v-dcbdfe63]{font-size:14px}.scroll[data-v-dcbdfe63]{border-bottom:2px solid var(--border-color);border-left:2px solid var(--border-color);font-size:13px}.reco-container[data-v-dcbdfe63]{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-dcbdfe63]{height:100%;border-left:1px solid var(--border-color);padding-left:10px}.active[data-v-dcbdfe63]{border-left:1px solid blue}.b-left[data-v-dcbdfe63]{border-left:1px solid var(--border-color);height:80%}.center[data-v-dcbdfe63]{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-2bf1a91a]{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-082194ff]{position:absolute;top:500px;left:500px;z-index:200}.above2[data-v-082194ff]{position:absolute;top:500px;left:500px}.loading[data-v-082194ff]{width:100%;height:100vh;display:flex;justify-content:center;align-items:center} diff --git a/panoptic_back/panoptic/html/assets/TestView-e46f42b0.js b/panoptic_back/panoptic/html/assets/TestView-e46f42b0.js new file mode 100644 index 00000000..817a15a9 --- /dev/null +++ b/panoptic_back/panoptic/html/assets/TestView-e46f42b0.js @@ -0,0 +1,3 @@ +import{d as I,r as d,c as V,p as D,x as g,D as U,o as c,b as t,a as x,q as L,m as n,T as A,F as E,h as C,n as P,y as N,_ as B,z as $,k as z,A as o,e as b,B as R,C as S,E as F,G as _,H,U as K,N as O,I as W,J as j,R as q,t as G,K as J,L as M,O as Z}from"./index-2658e7f4.js";const Q={key:0,class:"text-secondary"},X={class:"p-1",style:{"max-width":"250px"}},Y=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(k,{expose:u,emit:m}){const a=k,i=m;u({getHeight:w});const p=d(null),y=d(null),r=V(()=>a.modelValue??[]),v=V(()=>r.value.map(f=>a.property.tags[f]));function w(){return p.value==null?0:p.value.clientHeight}return(f,l)=>(c(),D(U,{"auto-focus":!1,onHide:l[1]||(l[1]=e=>i("hide")),teleport:a.teleport},{button:g(()=>[t("div",{class:P(["btn-class",a.noWrap?"text-nowrap":"text-wrap"]),ref_key:"heightElem",ref:p},[(c(!0),x(E,null,L(v.value,e=>(c(),x("span",null,[n(A,{id:e.id,class:"me-1"},null,8,["id"])]))),256)),v.value.length==0?(c(),x("span",Q,"None")):C("",!0)],2)]),popup:g(()=>[t("div",X,[n(N,{property:a.property,"model-value":r.value,excluded:a.excluded,"can-create":a.canCreate,"can-customize":a.canCustomize,"can-link":a.canLink,"can-delete":a.canDelete,"auto-focus":a.autoFocus,"onUpdate:modelValue":l[0]||(l[0]=e=>i("update:modelValue",e)),ref_key:"inputElem",ref:y},null,8,["property","model-value","excluded","can-create","can-customize","can-link","can-delete","auto-focus"])])]),_:1},8,["teleport"]))}});const h=B(Y,[["__scopeId","data-v-b59274db"]]),ee={key:0,class:"d-flex flex-wrap p-2"},te={class:"item border rounded"},le={class:"mb-1"},se={class:"item border rounded"},oe={class:"mb-1"},ne={class:"item border rounded"},ae={class:"item border rounded"},de={class:"mb-1"},re={class:"item border rounded"},ue={class:"mb-1"},ie={class:"item border rounded"},pe={class:"item border rounded"},me={class:"item border rounded"},ye={class:"mb-1"},ve={class:"item border rounded"},ce=I({__name:"TestView",setup(k){const u=$(),m=d(`Lorem Ipsum is simply dummy text + +of the printing and typesetting industry.`),a=d("google.com"),i=d(12.3),p=d(0),y=d(!0),r=d("2024-04-04T23:26:00Z"),v=d([]),w=V(()=>u.instances[1]),f=V(()=>u.properties[3]);return z(()=>{window.addEventListener("keydown",l=>{l.key=="Control"&&(o.ctrl=!0),l.key=="Alt"&&(o.ctrl=!0,o.alt=!0),l.key=="Shift"&&(o.shift=!0),l.key=="ArrowLeft"&&(o.left=!0),l.key=="ArrowRight"&&(o.right=!0,console.log("keeeyy"))}),window.addEventListener("keyup",l=>{l.key=="Control"&&(o.ctrl=!1),l.key=="Alt"&&(o.ctrl=!1,o.alt=!1),l.key=="Shift"&&(o.shift=!1),l.key=="ArrowLeft"&&(o.left=!1),l.key=="ArrowRight"&&(o.right=!1)}),window.addEventListener("mousemove",l=>{o.ctrl=l.ctrlKey,o.alt=l.altKey,o.shift=l.shiftKey,o.ctrl=o.ctrl||o.alt})}),(l,e)=>b(u).propertyList.length?(c(),x("div",ee,[t("div",te,[e[8]||(e[8]=t("h5",{class:"text-secondary"},"Date",-1)),e[9]||(e[9]=t("span",{class:"text-secondary"},"Preview",-1)),t("div",le,[n(R,{date:r.value},null,8,["date"])]),e[10]||(e[10]=t("span",{class:"text-secondary"},"Input",-1)),t("div",null,[n(S,{modelValue:r.value,"onUpdate:modelValue":e[0]||(e[0]=s=>r.value=s)},null,8,["modelValue"])])]),t("div",se,[e[11]||(e[11]=t("h5",{class:"text-secondary"},"Text",-1)),e[12]||(e[12]=t("span",{class:"text-secondary"},"Preview",-1)),t("div",oe,[n(F,{text:m.value},null,8,["text"])]),e[13]||(e[13]=t("span",{class:"text-secondary"},"Input",-1)),t("div",null,[n(_,{modelValue:m.value,"onUpdate:modelValue":e[1]||(e[1]=s=>m.value=s)},null,8,["modelValue"])])]),t("div",ne,[e[14]||(e[14]=t("h5",{class:"text-secondary"},"BDInput Row Text",-1)),n(H,{instance:w.value,"property-id":f.value.id},{default:g(({set:s,value:T})=>[n(M,{"model-value":T,"onUpdate:modelValue":s,width:200},null,8,["model-value","onUpdate:modelValue"])]),_:1},8,["instance","property-id"])]),t("div",ae,[e[15]||(e[15]=t("h5",{class:"text-secondary"},"Url",-1)),e[16]||(e[16]=t("span",{class:"text-secondary"},"Preview",-1)),t("div",de,[n(K,{url:a.value},null,8,["url"])]),e[17]||(e[17]=t("span",{class:"text-secondary"},"Input",-1)),t("div",null,[n(_,{modelValue:a.value,"onUpdate:modelValue":e[2]||(e[2]=s=>a.value=s),"url-mode":!0},null,8,["modelValue"])])]),t("div",re,[e[18]||(e[18]=t("h5",{class:"text-secondary"},"Number",-1)),e[19]||(e[19]=t("span",{class:"text-secondary"},"Preview",-1)),t("div",ue,[n(O,{number:i.value},null,8,["number"])]),e[20]||(e[20]=t("span",{class:"text-secondary"},"Input",-1)),t("div",null,[n(W,{modelValue:i.value,"onUpdate:modelValue":e[3]||(e[3]=s=>i.value=s)},null,8,["modelValue"])])]),t("div",ie,[e[21]||(e[21]=t("h5",{class:"text-secondary"},"CellColorInput",-1)),t("div",null,[n(j,{modelValue:p.value,"onUpdate:modelValue":e[4]||(e[4]=s=>p.value=s),rounded:!0},null,8,["modelValue"])])]),t("div",pe,[e[22]||(e[22]=t("h5",{class:"text-secondary"},"RowDateInput",-1)),t("div",null,[n(q,{modelValue:r.value,"onUpdate:modelValue":e[5]||(e[5]=s=>r.value=s)},null,8,["modelValue"])])]),t("div",me,[e[23]||(e[23]=t("h5",{class:"text-secondary"},"Checkbox",-1)),e[24]||(e[24]=t("span",{class:"text-secondary"},"Preview",-1)),t("div",ye,G(!!y.value),1),e[25]||(e[25]=t("span",{class:"text-secondary"},"Input",-1)),t("div",null,[n(J,{modelValue:y.value,"onUpdate:modelValue":e[6]||(e[6]=s=>y.value=s),label:"Checkbox"},null,8,["modelValue"])])]),t("div",ve,[e[26]||(e[26]=t("h5",{class:"text-secondary"},"Tags",-1)),t("div",null,[n(h,{property:b(u).propertyList.find(s=>s.type==b(Z).multi_tags),modelValue:v.value,"onUpdate:modelValue":e[7]||(e[7]=s=>v.value=s),"can-create":!0,"no-wrap":!0},null,8,["property","modelValue"])])])])):C("",!0)}});const xe=B(ce,[["__scopeId","data-v-039e5b52"]]);export{xe as default}; diff --git a/panoptic_back/panoptic/html/assets/Tutorial-3004321d.js b/panoptic_back/panoptic/html/assets/Tutorial-3004321d.js new file mode 100644 index 00000000..c0ac8616 --- /dev/null +++ b/panoptic_back/panoptic/html/assets/Tutorial-3004321d.js @@ -0,0 +1 @@ +import{Q as I,u as B,S as $,aB as L,c as v,V as F,k as M,j as V,M as A,a4 as y,o as n,p as k,x as S,aC as E,e as l,b as R,a as m,t as u,h as r,f as z}from"./index-2658e7f4.js";const D={class:"v-step__buttons"},O=["onClick"],Q=["onClick"],Y=["onClick"],G={__name:"Tutorial",props:{tutorial:{type:String,default:"home"}},setup(x){const{t}=I({useScope:"global"}),p=B(),j=$(),d=L("tours"),N=x,T=[{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")}],C=[{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=N.tutorial==="home"?T:C;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||j.showTutorial);F(c,async()=>{_()}),M(()=>{_()});async function _(){c.value&&(b.value||localStorage.setItem("tutorialFinished","false"),await V(),console.log(a),a===5&&p.openModalId===A.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 P=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(P,{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},E({_:2},[l(i)[e.currentStep].hideNext===!0||e.isLast?{name:"actions",fn:S(()=>[R("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:z(l(i)[e.currentStep].hideNext?"display: none !important":"")},u(o.$t("tutorial.buttons.next")),13,Q)),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,Y)):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{G as _}; diff --git a/panoptic_back/panoptic/html/assets/index-2658e7f4.js b/panoptic_back/panoptic/html/assets/index-2658e7f4.js new file mode 100644 index 00000000..d608c3ac --- /dev/null +++ b/panoptic_back/panoptic/html/assets/index-2658e7f4.js @@ -0,0 +1,791 @@ +var OE=Object.defineProperty;var PE=(e,t,i)=>t in e?OE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var Zt=(e,t,i)=>(PE(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 o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const l of o)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(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(o){if(o.ep)return;o.ep=!0;const l=i(o);fetch(o.href,l)}})();/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function Ko(e){const t=Object.create(null);for(const i of e.split(","))t[i]=1;return i=>i in t}const oi={},Ta=[],Yn=()=>{},LE=()=>!1,Oc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),mg=e=>e.startsWith("onUpdate:"),wi=Object.assign,vg=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},ME=Object.prototype.hasOwnProperty,di=(e,t)=>ME.call(e,t),kt=Array.isArray,Ia=e=>sl(e)==="[object Map]",qo=e=>sl(e)==="[object Set]",nv=e=>sl(e)==="[object Date]",NE=e=>sl(e)==="[object RegExp]",Vt=e=>typeof e=="function",pi=e=>typeof e=="string",Is=e=>typeof e=="symbol",bi=e=>e!==null&&typeof e=="object",bg=e=>(bi(e)||Vt(e))&&Vt(e.then)&&Vt(e.catch),qx=Object.prototype.toString,sl=e=>qx.call(e),RE=e=>sl(e).slice(8,-1),Gd=e=>sl(e)==="[object Object]",yg=e=>pi(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Oa=Ko(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xd=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},DE=/-(\w)/g,ln=Xd(e=>e.replace(DE,(t,i)=>i?i.toUpperCase():"")),$E=/\B([A-Z])/g,An=Xd(e=>e.replace($E,"-$1").toLowerCase()),Pc=Xd(e=>e.charAt(0).toUpperCase()+e.slice(1)),zl=Xd(e=>e?`on${Pc(e)}`:""),En=(e,t)=>!Object.is(e,t),Pa=(e,...t)=>{for(let i=0;i{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:i})},od=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ad=e=>{const t=pi(e)?Number(e):NaN;return isNaN(t)?e:t};let sv;const Kd=()=>sv||(sv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),FE="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,Error,Symbol",VE=Ko(FE);function Ct(e){if(kt(e)){const t={};for(let i=0;i{if(i){const n=i.split(HE);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function jE(e){if(!e)return"";if(pi(e))return e;let t="";for(const i in e){const n=e[i];if(pi(n)||typeof n=="number"){const o=i.startsWith("--")?i:An(i);t+=`${o}:${n};`}}return t}function mt(e){let t="";if(pi(e))t=e;else if(kt(e))for(let i=0;i?@[\\\]^`{|}~]/g;function qE(e,t){return e.replace(KE,i=>t?i==='"'?'\\\\\\"':`\\\\${i}`:`\\${i}`)}function ZE(e,t){if(e.length!==t.length)return!1;let i=!0;for(let n=0;i&&nJr(i,t))}const Qx=e=>!!(e&&e.__v_isRef===!0),Ne=e=>pi(e)?e:e==null?"":kt(e)||bi(e)&&(e.toString===qx||!Vt(e.toString))?Qx(e)?Ne(e.value):JSON.stringify(e,e0,2):String(e),e0=(e,t)=>Qx(t)?e0(e,t.value):Ia(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((i,[n,o],l)=>(i[qh(n,l)+" =>"]=o,i),{})}:qo(t)?{[`Set(${t.size})`]:[...t.values()].map(i=>qh(i))}:Is(t)?qh(t):bi(t)&&!kt(t)&&!Gd(t)?String(t):t,qh=(e,t="")=>{var i;return Is(e)?`Symbol(${(i=e.description)!=null?i:t})`:e};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let _n;class _g{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=_n,!t&&_n&&(this.index=(_n.scopes||(_n.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,i;if(this.scopes)for(t=0,i=this.scopes.length;t0)return;if(Bl){let t=Bl;for(Bl=void 0;t;){const i=t.next;t.next=void 0,t.flags&=-9,t=i}}let e;for(;Hl;){let t=Hl;for(Hl=void 0;t;){const i=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=i}}if(e)throw e}function n0(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function s0(e){let t,i=e.depsTail,n=i;for(;n;){const o=n.prevDep;n.version===-1?(n===i&&(i=o),Ag(n),JE(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=i}function Qf(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(r0(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function r0(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===uc))return;e.globalVersion=uc;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Qf(e)){e.flags&=-3;return}const i=Ei,n=As;Ei=e,As=!0;try{n0(e);const o=e.fn(e._value);(t.version===0||En(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ei=i,As=n,s0(e),e.flags&=-3}}function Ag(e,t=!1){const{dep:i,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),i.subs===e&&(i.subs=n,!n&&i.computed)){i.computed.flags&=-5;for(let l=i.computed.deps;l;l=l.nextDep)Ag(l,!0)}!t&&!--i.sc&&i.map&&i.map.delete(i.key)}function JE(e){const{prevDep:t,nextDep:i}=e;t&&(t.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=t,e.nextDep=void 0)}function QE(e,t){e.effect instanceof cc&&(e=e.effect.fn);const i=new cc(e);t&&wi(i,t);try{i.run()}catch(o){throw i.stop(),o}const n=i.run.bind(i);return n.effect=i,n}function eC(e){e.effect.stop()}let As=!0;const o0=[];function Er(){o0.push(As),As=!1}function Cr(){const e=o0.pop();As=e===void 0?!0:e}function ov(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const i=Ei;Ei=void 0;try{t()}finally{Ei=i}}}let uc=0;class tC{constructor(t,i){this.sub=t,this.dep=i,this.version=i.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Qd{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!Ei||!As||Ei===this.computed)return;let i=this.activeLink;if(i===void 0||i.sub!==Ei)i=this.activeLink=new tC(Ei,this),Ei.deps?(i.prevDep=Ei.depsTail,Ei.depsTail.nextDep=i,Ei.depsTail=i):Ei.deps=Ei.depsTail=i,a0(i);else if(i.version===-1&&(i.version=this.version,i.nextDep)){const n=i.nextDep;n.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=n),i.prevDep=Ei.depsTail,i.nextDep=void 0,Ei.depsTail.nextDep=i,Ei.depsTail=i,Ei.deps===i&&(Ei.deps=n)}return i}trigger(t){this.version++,uc++,this.notify(t)}notify(t){Eg();try{for(let i=this.subs;i;i=i.prevSub)i.sub.notify()&&i.sub.dep.notify()}finally{Cg()}}}function a0(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)a0(n)}const i=e.dep.subs;i!==e&&(e.prevSub=i,i&&(i.nextSub=e)),e.dep.subs=e}}const ld=new WeakMap,Mo=Symbol(""),ep=Symbol(""),dc=Symbol("");function dn(e,t,i){if(As&&Ei){let n=ld.get(e);n||ld.set(e,n=new Map);let o=n.get(i);o||(n.set(i,o=new Qd),o.map=n,o.key=i),o.track()}}function ar(e,t,i,n,o,l){const c=ld.get(e);if(!c){uc++;return}const d=p=>{p&&p.trigger()};if(Eg(),t==="clear")c.forEach(d);else{const p=kt(e),m=p&&yg(i);if(p&&i==="length"){const v=Number(n);c.forEach((y,_)=>{(_==="length"||_===dc||!Is(_)&&_>=v)&&d(y)})}else switch((i!==void 0||c.has(void 0))&&d(c.get(i)),m&&d(c.get(dc)),t){case"add":p?m&&d(c.get("length")):(d(c.get(Mo)),Ia(e)&&d(c.get(ep)));break;case"delete":p||(d(c.get(Mo)),Ia(e)&&d(c.get(ep)));break;case"set":Ia(e)&&d(c.get(Mo));break}}Cg()}function iC(e,t){const i=ld.get(e);return i&&i.get(t)}function aa(e){const t=si(e);return t===e?t:(dn(t,"iterate",dc),Un(e)?t:t.map(hn))}function eh(e){return dn(e=si(e),"iterate",dc),e}const nC={__proto__:null,[Symbol.iterator](){return Jh(this,Symbol.iterator,hn)},concat(...e){return aa(this).concat(...e.map(t=>kt(t)?aa(t):t))},entries(){return Jh(this,"entries",e=>(e[1]=hn(e[1]),e))},every(e,t){return Js(this,"every",e,t,void 0,arguments)},filter(e,t){return Js(this,"filter",e,t,i=>i.map(hn),arguments)},find(e,t){return Js(this,"find",e,t,hn,arguments)},findIndex(e,t){return Js(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Js(this,"findLast",e,t,hn,arguments)},findLastIndex(e,t){return Js(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Js(this,"forEach",e,t,void 0,arguments)},includes(...e){return Qh(this,"includes",e)},indexOf(...e){return Qh(this,"indexOf",e)},join(e){return aa(this).join(e)},lastIndexOf(...e){return Qh(this,"lastIndexOf",e)},map(e,t){return Js(this,"map",e,t,void 0,arguments)},pop(){return yl(this,"pop")},push(...e){return yl(this,"push",e)},reduce(e,...t){return av(this,"reduce",e,t)},reduceRight(e,...t){return av(this,"reduceRight",e,t)},shift(){return yl(this,"shift")},some(e,t){return Js(this,"some",e,t,void 0,arguments)},splice(...e){return yl(this,"splice",e)},toReversed(){return aa(this).toReversed()},toSorted(e){return aa(this).toSorted(e)},toSpliced(...e){return aa(this).toSpliced(...e)},unshift(...e){return yl(this,"unshift",e)},values(){return Jh(this,"values",hn)}};function Jh(e,t,i){const n=eh(e),o=n[t]();return n!==e&&!Un(e)&&(o._next=o.next,o.next=()=>{const l=o._next();return l.value&&(l.value=i(l.value)),l}),o}const sC=Array.prototype;function Js(e,t,i,n,o,l){const c=eh(e),d=c!==e&&!Un(e),p=c[t];if(p!==sC[t]){const y=p.apply(e,l);return d?hn(y):y}let m=i;c!==e&&(d?m=function(y,_){return i.call(this,hn(y),_,e)}:i.length>2&&(m=function(y,_){return i.call(this,y,_,e)}));const v=p.call(c,m,n);return d&&o?o(v):v}function av(e,t,i,n){const o=eh(e);let l=i;return o!==e&&(Un(e)?i.length>3&&(l=function(c,d,p){return i.call(this,c,d,p,e)}):l=function(c,d,p){return i.call(this,c,hn(d),p,e)}),o[t](l,...n)}function Qh(e,t,i){const n=si(e);dn(n,"iterate",dc);const o=n[t](...i);return(o===-1||o===!1)&&nh(i[0])?(i[0]=si(i[0]),n[t](...i)):o}function yl(e,t,i=[]){Er(),Eg();const n=si(e)[t].apply(e,i);return Cg(),Cr(),n}const rC=Ko("__proto__,__v_isRef,__isVue"),l0=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Is));function oC(e){Is(e)||(e=String(e));const t=si(this);return dn(t,"has",e),t.hasOwnProperty(e)}class c0{constructor(t=!1,i=!1){this._isReadonly=t,this._isShallow=i}get(t,i,n){if(i==="__v_skip")return t.__v_skip;const o=this._isReadonly,l=this._isShallow;if(i==="__v_isReactive")return!o;if(i==="__v_isReadonly")return o;if(i==="__v_isShallow")return l;if(i==="__v_raw")return n===(o?l?g0:p0:l?f0:h0).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const c=kt(t);if(!o){let p;if(c&&(p=nC[i]))return p;if(i==="hasOwnProperty")return oC}const d=Reflect.get(t,i,Ti(t)?t:n);return(Is(i)?l0.has(i):rC(i))||(o||dn(t,"get",i),l)?d:Ti(d)?c&&yg(i)?d:d.value:bi(d)?o?Tg(d):ti(d):d}}class u0 extends c0{constructor(t=!1){super(!1,t)}set(t,i,n,o){let l=t[i];if(!this._isShallow){const p=Qr(l);if(!Un(n)&&!Qr(n)&&(l=si(l),n=si(n)),!kt(t)&&Ti(l)&&!Ti(n))return p?!1:(l.value=n,!0)}const c=kt(t)&&yg(i)?Number(i)e,su=e=>Reflect.getPrototypeOf(e);function dC(e,t,i){return function(...n){const o=this.__v_raw,l=si(o),c=Ia(l),d=e==="entries"||e===Symbol.iterator&&c,p=e==="keys"&&c,m=o[e](...n),v=i?tp:t?ip:hn;return!t&&dn(l,"iterate",p?ep:Mo),{next(){const{value:y,done:_}=m.next();return _?{value:y,done:_}:{value:d?[v(y[0]),v(y[1])]:v(y),done:_}},[Symbol.iterator](){return this}}}}function ru(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function hC(e,t){const i={get(o){const l=this.__v_raw,c=si(l),d=si(o);e||(En(o,d)&&dn(c,"get",o),dn(c,"get",d));const{has:p}=su(c),m=t?tp:e?ip:hn;if(p.call(c,o))return m(l.get(o));if(p.call(c,d))return m(l.get(d));l!==c&&l.get(o)},get size(){const o=this.__v_raw;return!e&&dn(si(o),"iterate",Mo),Reflect.get(o,"size",o)},has(o){const l=this.__v_raw,c=si(l),d=si(o);return e||(En(o,d)&&dn(c,"has",o),dn(c,"has",d)),o===d?l.has(o):l.has(o)||l.has(d)},forEach(o,l){const c=this,d=c.__v_raw,p=si(d),m=t?tp:e?ip:hn;return!e&&dn(p,"iterate",Mo),d.forEach((v,y)=>o.call(l,m(v),m(y),c))}};return wi(i,e?{add:ru("add"),set:ru("set"),delete:ru("delete"),clear:ru("clear")}:{add(o){!t&&!Un(o)&&!Qr(o)&&(o=si(o));const l=si(this);return su(l).has.call(l,o)||(l.add(o),ar(l,"add",o,o)),this},set(o,l){!t&&!Un(l)&&!Qr(l)&&(l=si(l));const c=si(this),{has:d,get:p}=su(c);let m=d.call(c,o);m||(o=si(o),m=d.call(c,o));const v=p.call(c,o);return c.set(o,l),m?En(l,v)&&ar(c,"set",o,l):ar(c,"add",o,l),this},delete(o){const l=si(this),{has:c,get:d}=su(l);let p=c.call(l,o);p||(o=si(o),p=c.call(l,o)),d&&d.call(l,o);const m=l.delete(o);return p&&ar(l,"delete",o,void 0),m},clear(){const o=si(this),l=o.size!==0,c=o.clear();return l&&ar(o,"clear",void 0,void 0),c}}),["keys","values","entries",Symbol.iterator].forEach(o=>{i[o]=dC(o,e,t)}),i}function th(e,t){const i=hC(e,t);return(n,o,l)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(di(i,o)&&o in n?i:n,o,l)}const fC={get:th(!1,!1)},pC={get:th(!1,!0)},gC={get:th(!0,!1)},mC={get:th(!0,!0)},h0=new WeakMap,f0=new WeakMap,p0=new WeakMap,g0=new WeakMap;function vC(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bC(e){return e.__v_skip||!Object.isExtensible(e)?0:vC(RE(e))}function ti(e){return Qr(e)?e:ih(e,!1,aC,fC,h0)}function kg(e){return ih(e,!1,cC,pC,f0)}function Tg(e){return ih(e,!0,lC,gC,p0)}function yC(e){return ih(e,!0,uC,mC,g0)}function ih(e,t,i,n,o){if(!bi(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=o.get(e);if(l)return l;const c=bC(e);if(c===0)return e;const d=new Proxy(e,c===2?n:i);return o.set(e,d),d}function fr(e){return Qr(e)?fr(e.__v_raw):!!(e&&e.__v_isReactive)}function Qr(e){return!!(e&&e.__v_isReadonly)}function Un(e){return!!(e&&e.__v_isShallow)}function nh(e){return e?!!e.__v_raw:!1}function si(e){const t=e&&e.__v_raw;return t?si(t):e}function Lc(e){return!di(e,"__v_skip")&&Object.isExtensible(e)&&Zx(e,"__v_skip",!0),e}const hn=e=>bi(e)?ti(e):e,ip=e=>bi(e)?Tg(e):e;function Ti(e){return e?e.__v_isRef===!0:!1}function Ae(e){return m0(e,!1)}function on(e){return m0(e,!0)}function m0(e,t){return Ti(e)?e:new xC(e,t)}class xC{constructor(t,i){this.dep=new Qd,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=i?t:si(t),this._value=i?t:hn(t),this.__v_isShallow=i}get value(){return this.dep.track(),this._value}set value(t){const i=this._rawValue,n=this.__v_isShallow||Un(t)||Qr(t);t=n?t:si(t),En(t,i)&&(this._rawValue=t,this._value=n?t:hn(t),this.dep.trigger())}}function rr(e){e.dep&&e.dep.trigger()}function Ue(e){return Ti(e)?e.value:e}function wC(e){return Vt(e)?e():Ue(e)}const _C={get:(e,t,i)=>t==="__v_raw"?e:Ue(Reflect.get(e,t,i)),set:(e,t,i,n)=>{const o=e[t];return Ti(o)&&!Ti(i)?(o.value=i,!0):Reflect.set(e,t,i,n)}};function Ig(e){return fr(e)?e:new Proxy(e,_C)}class SC{constructor(t){this.__v_isRef=!0,this._value=void 0;const i=this.dep=new Qd,{get:n,set:o}=t(i.track.bind(i),i.trigger.bind(i));this._get=n,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function v0(e){return new SC(e)}function Ss(e){const t=kt(e)?new Array(e.length):{};for(const i in e)t[i]=b0(e,i);return t}class EC{constructor(t,i,n){this._object=t,this._key=i,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return iC(si(this._object),this._key)}}class CC{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function AC(e,t,i){return Ti(e)?e:Vt(e)?new CC(e):bi(e)&&arguments.length>1?b0(e,t,i):Ae(e)}function b0(e,t,i){const n=e[t];return Ti(n)?n:new EC(e,t,i)}class kC{constructor(t,i,n){this.fn=t,this.setter=i,this._value=void 0,this.dep=new Qd(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=uc-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!i,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ei!==this)return i0(this,!0),!0}get value(){const t=this.dep.track();return r0(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function TC(e,t,i=!1){let n,o;return Vt(e)?n=e:(n=e.get,o=e.set),new kC(n,o,i)}const IC={GET:"get",HAS:"has",ITERATE:"iterate"},OC={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},ou={},cd=new WeakMap;let Hr;function PC(){return Hr}function y0(e,t=!1,i=Hr){if(i){let n=cd.get(i);n||cd.set(i,n=[]),n.push(e)}}function LC(e,t,i=oi){const{immediate:n,deep:o,once:l,scheduler:c,augmentJob:d,call:p}=i,m=M=>o?M:Un(M)||o===!1||o===0?lr(M,1):lr(M);let v,y,_,S,T=!1,C=!1;if(Ti(e)?(y=()=>e.value,T=Un(e)):fr(e)?(y=()=>m(e),T=!0):kt(e)?(C=!0,T=e.some(M=>fr(M)||Un(M)),y=()=>e.map(M=>{if(Ti(M))return M.value;if(fr(M))return m(M);if(Vt(M))return p?p(M,2):M()})):Vt(e)?t?y=p?()=>p(e,2):e:y=()=>{if(_){Er();try{_()}finally{Cr()}}const M=Hr;Hr=v;try{return p?p(e,3,[S]):e(S)}finally{Hr=M}}:y=Yn,t&&o){const M=y,D=o===!0?1/0:o;y=()=>lr(M(),D)}const O=Jd(),P=()=>{v.stop(),O&&O.active&&vg(O.effects,v)};if(l&&t){const M=t;t=(...D)=>{M(...D),P()}}let I=C?new Array(e.length).fill(ou):ou;const N=M=>{if(!(!(v.flags&1)||!v.dirty&&!M))if(t){const D=v.run();if(o||T||(C?D.some((H,Z)=>En(H,I[Z])):En(D,I))){_&&_();const H=Hr;Hr=v;try{const Z=[D,I===ou?void 0:C&&I[0]===ou?[]:I,S];p?p(t,3,Z):t(...Z),I=D}finally{Hr=H}}}else v.run()};return d&&d(N),v=new cc(y),v.scheduler=c?()=>c(N,!1):N,S=M=>y0(M,!1,v),_=v.onStop=()=>{const M=cd.get(v);if(M){if(p)p(M,4);else for(const D of M)D();cd.delete(v)}},t?n?N(!0):I=v.run():c?c(N.bind(null,!0),!0):v.run(),P.pause=v.pause.bind(v),P.resume=v.resume.bind(v),P.stop=P,P}function lr(e,t=1/0,i){if(t<=0||!bi(e)||e.__v_skip||(i=i||new Set,i.has(e)))return e;if(i.add(e),t--,Ti(e))lr(e.value,t,i);else if(kt(e))for(let n=0;n{lr(n,t,i)});else if(Gd(e)){for(const n in e)lr(e[n],t,i);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&lr(e[n],t,i)}return e}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const No=[];function MC(e){No.push(e)}function NC(){No.pop()}let ef=!1;function Dr(e,...t){if(ef)return;ef=!0,Er();const i=No.length?No[No.length-1].component:null,n=i&&i.appContext.config.warnHandler,o=RC();if(n)Zo(n,i,11,[e+t.map(l=>{var c,d;return(d=(c=l.toString)==null?void 0:c.call(l))!=null?d:JSON.stringify(l)}).join(""),i&&i.proxy,o.map(({vnode:l})=>`at <${Cw(i,l.type)}>`).join(` +`),o]);else{const l=[`[Vue warn]: ${e}`,...t];o.length&&l.push(` +`,...DC(o)),console.warn(...l)}Cr(),ef=!1}function RC(){let e=No[No.length-1];if(!e)return[];const t=[];for(;e;){const i=t[0];i&&i.vnode===e?i.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function DC(e){const t=[];return e.forEach((i,n)=>{t.push(...n===0?[]:[` +`],...$C(i))}),t}function $C({vnode:e,recurseCount:t}){const i=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,o=` at <${Cw(e.component,e.type,n)}`,l=">"+i;return e.props?[o,...FC(e.props),l]:[o+l]}function FC(e){const t=[],i=Object.keys(e);return i.slice(0,3).forEach(n=>{t.push(...x0(n,e[n]))}),i.length>3&&t.push(" ..."),t}function x0(e,t,i){return pi(t)?(t=JSON.stringify(t),i?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?i?t:[`${e}=${t}`]:Ti(t)?(t=x0(e,si(t.value),!0),i?t:[`${e}=Ref<`,t,">"]):Vt(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=si(t),i?t:[`${e}=`,t])}function VC(e,t){}const zC={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},HC={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Zo(e,t,i,n){try{return n?e(...n):e()}catch(o){Jo(o,t,i)}}function rs(e,t,i,n){if(Vt(e)){const o=Zo(e,t,i,n);return o&&bg(o)&&o.catch(l=>{Jo(l,t,i)}),o}if(kt(e)){const o=[];for(let l=0;l>>1,o=Cn[n],l=fc(o);l=fc(i)?Cn.push(e):Cn.splice(WC(t),0,e),e.flags|=1,_0()}}function _0(){ud||(ud=w0.then(S0))}function hc(e){kt(e)?La.push(...e):Br&&e.id===-1?Br.splice(ga+1,0,e):e.flags&1||(La.push(e),e.flags|=1),_0()}function lv(e,t,i=$s+1){for(;ifc(i)-fc(n));if(La.length=0,Br){Br.push(...t);return}for(Br=t,ga=0;gae.id==null?e.flags&2?-1:1/0:e.id;function S0(e){const t=Yn;try{for($s=0;$sma.emit(o,...l)),au=[]):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=>{E0(l,t)}),setTimeout(()=>{ma||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,au=[])},3e3)):au=[]}let Ji=null,sh=null;function pc(e){const t=Ji;return Ji=e,sh=e&&e.type.__scopeId||null,t}function Pg(e){sh=e}function Lg(){sh=null}const Mg=e=>dt;function dt(e,t=Ji,i){if(!t||e._n)return e;const n=(...o)=>{n._d&&dp(-1);const l=pc(t);let c;try{c=e(...o)}finally{pc(l),n._d&&dp(1)}return c};return n._n=!0,n._c=!0,n._d=!0,n}function Kt(e,t){if(Ji===null)return e;const i=$c(Ji),n=e.dirs||(e.dirs=[]);for(let o=0;oe.__isTeleport,Wl=e=>e&&(e.disabled||e.disabled===""),cv=e=>e&&(e.defer||e.defer===""),uv=e=>typeof SVGElement<"u"&&e instanceof SVGElement,dv=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,np=(e,t)=>{const i=e&&e.to;return pi(i)?t?t(i):null:i},k0={name:"Teleport",__isTeleport:!0,process(e,t,i,n,o,l,c,d,p,m){const{mc:v,pc:y,pbc:_,o:{insert:S,querySelector:T,createText:C,createComment:O}}=m,P=Wl(t.props);let{shapeFlag:I,children:N,dynamicChildren:M}=t;if(e==null){const D=t.el=C(""),H=t.anchor=C("");S(D,i,n),S(H,i,n);const Z=(Y,ee)=>{I&16&&(o&&o.isCE&&(o.ce._teleportTarget=Y),v(N,Y,ee,o,l,c,d,p))},te=()=>{const Y=t.target=np(t.props,T),ee=T0(Y,t,C,S);Y&&(c!=="svg"&&uv(Y)?c="svg":c!=="mathml"&&dv(Y)&&(c="mathml"),P||(Z(Y,ee),$u(t,!1)))};P&&(Z(i,H),$u(t,!0)),cv(t.props)?qi(()=>{te(),t.el.__isMounted=!0},l):te()}else{if(cv(t.props)&&!e.el.__isMounted){qi(()=>{k0.process(e,t,i,n,o,l,c,d,p,m),delete e.el.__isMounted},l);return}t.el=e.el,t.targetStart=e.targetStart;const D=t.anchor=e.anchor,H=t.target=e.target,Z=t.targetAnchor=e.targetAnchor,te=Wl(e.props),Y=te?i:H,ee=te?D:Z;if(c==="svg"||uv(H)?c="svg":(c==="mathml"||dv(H))&&(c="mathml"),M?(_(e.dynamicChildren,M,Y,o,l,c,d),Wg(e,t,!0)):p||y(e,t,Y,ee,o,l,c,d,!1),P)te?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):lu(t,i,D,m,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const le=t.target=np(t.props,T);le&&lu(t,le,null,m,0)}else te&&lu(t,H,Z,m,1);$u(t,P)}},remove(e,t,i,{um:n,o:{remove:o}},l){const{shapeFlag:c,children:d,anchor:p,targetStart:m,targetAnchor:v,target:y,props:_}=e;if(y&&(o(m),o(v)),l&&o(p),c&16){const S=l||!Wl(_);for(let T=0;T{e.isMounted=!0}),rl(()=>{e.isUnmounting=!0}),e}const qn=[Function,Array],Rg={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qn,onEnter:qn,onAfterEnter:qn,onEnterCancelled:qn,onBeforeLeave:qn,onLeave:qn,onAfterLeave:qn,onLeaveCancelled:qn,onBeforeAppear:qn,onAppear:qn,onAfterAppear:qn,onAppearCancelled:qn},I0=e=>{const t=e.subTree;return t.component?I0(t.component):t},UC={name:"BaseTransition",props:Rg,setup(e,{slots:t}){const i=Xi(),n=Ng();return()=>{const o=t.default&&rh(t.default(),!0);if(!o||!o.length)return;const l=O0(o),c=si(e),{mode:d}=c;if(n.isLeaving)return tf(l);const p=hv(l);if(!p)return tf(l);let m=Da(p,c,n,i,y=>m=y);p.type!==Gi&&xr(p,m);let v=i.subTree&&hv(i.subTree);if(v&&v.type!==Gi&&!xs(p,v)&&I0(i).type!==Gi){let y=Da(v,c,n,i);if(xr(v,y),d==="out-in"&&p.type!==Gi)return n.isLeaving=!0,y.afterLeave=()=>{n.isLeaving=!1,i.job.flags&8||i.update(),delete y.afterLeave,v=void 0},tf(l);d==="in-out"&&p.type!==Gi?y.delayLeave=(_,S,T)=>{const C=L0(n,v);C[String(v.key)]=v,_[Wr]=()=>{S(),_[Wr]=void 0,delete m.delayedLeave,v=void 0},m.delayedLeave=()=>{T(),delete m.delayedLeave,v=void 0}}:v=void 0}else v&&(v=void 0);return l}}};function O0(e){let t=e[0];if(e.length>1){for(const i of e)if(i.type!==Gi){t=i;break}}return t}const P0=UC;function L0(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 Da(e,t,i,n,o){const{appear:l,mode:c,persisted:d=!1,onBeforeEnter:p,onEnter:m,onAfterEnter:v,onEnterCancelled:y,onBeforeLeave:_,onLeave:S,onAfterLeave:T,onLeaveCancelled:C,onBeforeAppear:O,onAppear:P,onAfterAppear:I,onAppearCancelled:N}=t,M=String(e.key),D=L0(i,e),H=(Y,ee)=>{Y&&rs(Y,n,9,ee)},Z=(Y,ee)=>{const le=ee[1];H(Y,ee),kt(Y)?Y.every(oe=>oe.length<=1)&&le():Y.length<=1&&le()},te={mode:c,persisted:d,beforeEnter(Y){let ee=p;if(!i.isMounted)if(l)ee=O||p;else return;Y[Wr]&&Y[Wr](!0);const le=D[M];le&&xs(e,le)&&le.el[Wr]&&le.el[Wr](),H(ee,[Y])},enter(Y){let ee=m,le=v,oe=y;if(!i.isMounted)if(l)ee=P||m,le=I||v,oe=N||y;else return;let pe=!1;const ge=Y[cu]=Ce=>{pe||(pe=!0,Ce?H(oe,[Y]):H(le,[Y]),te.delayedLeave&&te.delayedLeave(),Y[cu]=void 0)};ee?Z(ee,[Y,ge]):ge()},leave(Y,ee){const le=String(e.key);if(Y[cu]&&Y[cu](!0),i.isUnmounting)return ee();H(_,[Y]);let oe=!1;const pe=Y[Wr]=ge=>{oe||(oe=!0,ee(),ge?H(C,[Y]):H(T,[Y]),Y[Wr]=void 0,D[le]===e&&delete D[le])};D[le]=e,S?Z(S,[Y,pe]):pe()},clone(Y){const ee=Da(Y,t,i,n,o);return o&&o(ee),ee}};return te}function tf(e){if(Mc(e))return e=Us(e),e.children=null,e}function hv(e){if(!Mc(e))return A0(e.type)&&e.children?O0(e.children):e;const{shapeFlag:t,children:i}=e;if(i){if(t&16)return i[0];if(t&32&&Vt(i.default))return i.default()}}function xr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,xr(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 rh(e,t=!1,i){let n=[],o=0;for(let l=0;l1)for(let l=0;lwi({name:e.name},t,{setup:e}))():e}function GC(){const e=Xi();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Dg(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function XC(e){const t=Xi(),i=on(null);if(t){const o=t.refs===oi?t.refs={}:t.refs;Object.defineProperty(o,e,{enumerable:!0,get:()=>i.value,set:l=>i.value=l})}return i}function gc(e,t,i,n,o=!1){if(kt(e)){e.forEach((T,C)=>gc(T,t&&(kt(t)?t[C]:t),i,n,o));return}if(Kr(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&gc(e,t,i,n.component.subTree);return}const l=n.shapeFlag&4?$c(n.component):n.el,c=o?null:l,{i:d,r:p}=e,m=t&&t.r,v=d.refs===oi?d.refs={}:d.refs,y=d.setupState,_=si(y),S=y===oi?()=>!1:T=>di(_,T);if(m!=null&&m!==p&&(pi(m)?(v[m]=null,S(m)&&(y[m]=null)):Ti(m)&&(m.value=null)),Vt(p))Zo(p,d,12,[c,v]);else{const T=pi(p),C=Ti(p);if(T||C){const O=()=>{if(e.f){const P=T?S(p)?y[p]:v[p]:p.value;o?kt(P)&&vg(P,l):kt(P)?P.includes(l)||P.push(l):T?(v[p]=[l],S(p)&&(y[p]=v[p])):(p.value=[l],e.k&&(v[e.k]=p.value))}else T?(v[p]=c,S(p)&&(y[p]=c)):C&&(p.value=c,e.k&&(v[e.k]=c))};c?(O.id=-1,qi(O,i)):O()}}}let fv=!1;const yo=()=>{fv||(console.error("Hydration completed but contains mismatches."),fv=!0)},KC=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",qC=e=>e.namespaceURI.includes("MathML"),uu=e=>{if(e.nodeType===1){if(KC(e))return"svg";if(qC(e))return"mathml"}},Io=e=>e.nodeType===8;function ZC(e){const{mt:t,p:i,o:{patchProp:n,createText:o,nextSibling:l,parentNode:c,remove:d,insert:p,createComment:m}}=e,v=(N,M)=>{if(!M.hasChildNodes()){Dr("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),i(null,N,M),dd(),M._vnode=N;return}y(M.firstChild,N,null,null,null),dd(),M._vnode=N},y=(N,M,D,H,Z,te=!1)=>{te=te||!!M.dynamicChildren;const Y=Io(N)&&N.data==="[",ee=()=>C(N,M,D,H,Z,Y),{type:le,ref:oe,shapeFlag:pe,patchFlag:ge}=M;let Ce=N.nodeType;M.el=N,ge===-2&&(te=!1,M.dynamicChildren=null);let ue=null;switch(le){case gr:Ce!==3?M.children===""?(p(M.el=o(""),c(N),N),ue=N):ue=ee():(N.data!==M.children&&(Dr("Hydration text mismatch in",N.parentNode,` + - rendered on server: ${JSON.stringify(N.data)} + - expected on client: ${JSON.stringify(M.children)}`),yo(),N.data=M.children),ue=l(N));break;case Gi:I(N)?(ue=l(N),P(M.el=N.content.firstChild,N,D)):Ce!==8||Y?ue=ee():ue=l(N);break;case Do:if(Y&&(N=l(N),Ce=N.nodeType),Ce===1||Ce===3){ue=N;const ie=!M.children.length;for(let X=0;X{te=te||!!M.dynamicChildren;const{type:Y,props:ee,patchFlag:le,shapeFlag:oe,dirs:pe,transition:ge}=M,Ce=Y==="input"||Y==="option";if(Ce||le!==-1){pe&&Fs(M,null,D,"created");let ue=!1;if(I(N)){ue=aw(null,ge)&&D&&D.vnode.props&&D.vnode.props.appear;const X=N.content.firstChild;ue&&ge.beforeEnter(X),P(X,N,D),M.el=N=X}if(oe&16&&!(ee&&(ee.innerHTML||ee.textContent))){let X=S(N.firstChild,M,N,D,H,Z,te),fe=!1;for(;X;){Ll(N,1)||(fe||(Dr("Hydration children mismatch on",N,` +Server rendered element contains more child nodes than client vdom.`),fe=!0),yo());const me=X;X=X.nextSibling,d(me)}}else if(oe&8){let X=M.children;X[0]===` +`&&(N.tagName==="PRE"||N.tagName==="TEXTAREA")&&(X=X.slice(1)),N.textContent!==X&&(Ll(N,0)||(Dr("Hydration text content mismatch on",N,` + - rendered on server: ${N.textContent} + - expected on client: ${M.children}`),yo()),N.textContent=M.children)}if(ee){const X=N.tagName.includes("-");for(const fe in ee)!(pe&&pe.some(me=>me.dir.created))&&JC(N,fe,ee[fe],M,D)&&yo(),(Ce&&(fe.endsWith("value")||fe==="indeterminate")||Oc(fe)&&!Oa(fe)||fe[0]==="."||X)&&n(N,fe,null,ee[fe],void 0,D)}let ie;(ie=ee&&ee.onVnodeBeforeMount)&&Dn(ie,D,M),pe&&Fs(M,null,D,"beforeMount"),((ie=ee&&ee.onVnodeMounted)||pe||ue)&&mw(()=>{ie&&Dn(ie,D,M),ue&&ge.enter(N),pe&&Fs(M,null,D,"mounted")},H)}return N.nextSibling},S=(N,M,D,H,Z,te,Y)=>{Y=Y||!!M.dynamicChildren;const ee=M.children,le=ee.length;let oe=!1;for(let pe=0;pe{const{slotScopeIds:Y}=M;Y&&(Z=Z?Z.concat(Y):Y);const ee=c(N),le=S(l(N),M,ee,D,H,Z,te);return le&&Io(le)&&le.data==="]"?l(M.anchor=le):(yo(),p(M.anchor=m("]"),ee,le),le)},C=(N,M,D,H,Z,te)=>{if(Ll(N.parentElement,1)||(Dr(`Hydration node mismatch: +- rendered on server:`,N,N.nodeType===3?"(text)":Io(N)&&N.data==="["?"(start of fragment)":"",` +- expected on client:`,M.type),yo()),M.el=null,te){const le=O(N);for(;;){const oe=l(N);if(oe&&oe!==le)d(oe);else break}}const Y=l(N),ee=c(N);return d(N),i(null,M,ee,Y,D,H,uu(ee),Z),D&&(D.vnode.el=M.el,ch(D,M.el)),Y},O=(N,M="[",D="]")=>{let H=0;for(;N;)if(N=l(N),N&&Io(N)&&(N.data===M&&H++,N.data===D)){if(H===0)return l(N);H--}return N},P=(N,M,D)=>{const H=M.parentNode;H&&H.replaceChild(N,M);let Z=D;for(;Z;)Z.vnode.el===M&&(Z.vnode.el=Z.subTree.el=N),Z=Z.parent},I=N=>N.nodeType===1&&N.tagName==="TEMPLATE";return[v,y]}function JC(e,t,i,n,o){let l,c,d,p;if(t==="class")d=e.getAttribute("class"),p=mt(i),QC(pv(d||""),pv(p))||(l=2,c="class");else if(t==="style"){d=e.getAttribute("style")||"",p=pi(i)?i:jE(Ct(i));const m=gv(d),v=gv(p);if(n.dirs)for(const{dir:y,value:_}of n.dirs)y.name==="show"&&!_&&v.set("display","none");o&&M0(o,n,v),eA(m,v)||(l=3,c="style")}else(e instanceof SVGElement&&GE(t)||e instanceof HTMLElement&&(rv(t)||UE(t)))&&(rv(t)?(d=e.hasAttribute(t),p=wg(i)):i==null?(d=e.hasAttribute(t),p=!1):(e.hasAttribute(t)?d=e.getAttribute(t):t==="value"&&e.tagName==="TEXTAREA"?d=e.value:d=!1,p=XE(i)?String(i):!1),d!==p&&(l=4,c=t));if(l!=null&&!Ll(e,l)){const m=_=>_===!1?"(not rendered)":`${c}="${_}"`,v=`Hydration ${N0[l]} mismatch on`,y=` + - rendered on server: ${m(d)} + - expected on client: ${m(p)} + Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead. + You should fix the source of the mismatch.`;return Dr(v,e,y),!0}return!1}function pv(e){return new Set(e.trim().split(/\s+/))}function QC(e,t){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}function gv(e){const t=new Map;for(const i of e.split(";")){let[n,o]=i.split(":");n=n.trim(),o=o&&o.trim(),n&&o&&t.set(n,o)}return t}function eA(e,t){if(e.size!==t.size)return!1;for(const[i,n]of e)if(n!==t.get(i))return!1;return!0}function M0(e,t,i){const n=e.subTree;if(e.getCssVars&&(t===n||n&&n.type===lt&&n.children.includes(t))){const o=e.getCssVars();for(const l in o)i.set(`--${qE(l,!1)}`,String(o[l]))}t===n&&e.parent&&M0(e.parent,e.vnode,i)}const mv="data-allow-mismatch",N0={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Ll(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(mv);)e=e.parentElement;const i=e&&e.getAttribute(mv);if(i==null)return!1;if(i==="")return!0;{const n=i.split(",");return t===0&&n.includes("children")?!0:i.split(",").includes(N0[t])}}const tA=Kd().requestIdleCallback||(e=>setTimeout(e,1)),iA=Kd().cancelIdleCallback||(e=>clearTimeout(e)),nA=(e=1e4)=>t=>{const i=tA(t,{timeout:e});return()=>iA(i)};function sA(e){const{top:t,left:i,bottom:n,right:o}=e.getBoundingClientRect(),{innerHeight:l,innerWidth:c}=window;return(t>0&&t0&&n0&&i0&&o(t,i)=>{const n=new IntersectionObserver(o=>{for(const l of o)if(l.isIntersecting){n.disconnect(),t();break}},e);return i(o=>{if(o instanceof Element){if(sA(o))return t(),n.disconnect(),!1;n.observe(o)}}),()=>n.disconnect()},oA=e=>t=>{if(e){const i=matchMedia(e);if(i.matches)t();else return i.addEventListener("change",t,{once:!0}),()=>i.removeEventListener("change",t)}},aA=(e=[])=>(t,i)=>{pi(e)&&(e=[e]);let n=!1;const o=c=>{n||(n=!0,l(),t(),c.target.dispatchEvent(new c.constructor(c.type,c)))},l=()=>{i(c=>{for(const d of e)c.removeEventListener(d,o)})};return i(c=>{for(const d of e)c.addEventListener(d,o,{once:!0})}),l};function lA(e,t){if(Io(e)&&e.data==="["){let i=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Io(n))if(n.data==="]"){if(--i===0)break}else n.data==="["&&i++;n=n.nextSibling}}else t(e)}const Kr=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function cA(e){Vt(e)&&(e={loader:e});const{loader:t,loadingComponent:i,errorComponent:n,delay:o=200,hydrate:l,timeout:c,suspensible:d=!0,onError:p}=e;let m=null,v,y=0;const _=()=>(y++,m=null,S()),S=()=>{let T;return m||(T=m=t().catch(C=>{if(C=C instanceof Error?C:new Error(String(C)),p)return new Promise((O,P)=>{p(C,()=>O(_()),()=>P(C),y+1)});throw C}).then(C=>T!==m&&m?m:(C&&(C.__esModule||C[Symbol.toStringTag]==="Module")&&(C=C.default),v=C,C)))};return ot({name:"AsyncComponentWrapper",__asyncLoader:S,__asyncHydrate(T,C,O){const P=l?()=>{const I=l(O,N=>lA(T,N));I&&(C.bum||(C.bum=[])).push(I)}:O;v?P():S().then(()=>!C.isUnmounted&&P())},get __asyncResolved(){return v},setup(){const T=Zi;if(Dg(T),v)return()=>nf(v,T);const C=N=>{m=null,Jo(N,T,13,!n)};if(d&&T.suspense||$a)return S().then(N=>()=>nf(N,T)).catch(N=>(C(N),()=>n?$e(n,{error:N}):null));const O=Ae(!1),P=Ae(),I=Ae(!!o);return o&&setTimeout(()=>{I.value=!1},o),c!=null&&setTimeout(()=>{if(!O.value&&!P.value){const N=new Error(`Async component timed out after ${c}ms.`);C(N),P.value=N}},c),S().then(()=>{O.value=!0,T.parent&&Mc(T.parent.vnode)&&T.parent.update()}).catch(N=>{C(N),P.value=N}),()=>{if(O.value&&v)return nf(v,T);if(P.value&&n)return $e(n,{error:P.value});if(i&&!I.value)return $e(i)}}})}function nf(e,t){const{ref:i,props:n,children:o,ce:l}=t.vnode,c=$e(e,n,o);return c.ref=i,c.ce=l,delete t.vnode.ce,c}const Mc=e=>e.type.__isKeepAlive,uA={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const i=Xi(),n=i.ctx;if(!n.renderer)return()=>{const I=t.default&&t.default();return I&&I.length===1?I[0]:I};const o=new Map,l=new Set;let c=null;const d=i.suspense,{renderer:{p,m,um:v,o:{createElement:y}}}=n,_=y("div");n.activate=(I,N,M,D,H)=>{const Z=I.component;m(I,N,M,0,d),p(Z.vnode,I,N,M,Z,d,D,I.slotScopeIds,H),qi(()=>{Z.isDeactivated=!1,Z.a&&Pa(Z.a);const te=I.props&&I.props.onVnodeMounted;te&&Dn(te,Z.parent,I)},d)},n.deactivate=I=>{const N=I.component;fd(N.m),fd(N.a),m(I,_,null,1,d),qi(()=>{N.da&&Pa(N.da);const M=I.props&&I.props.onVnodeUnmounted;M&&Dn(M,N.parent,I),N.isDeactivated=!0},d)};function S(I){sf(I),v(I,i,d,!0)}function T(I){o.forEach((N,M)=>{const D=vd(N.type);D&&!I(D)&&C(M)})}function C(I){const N=o.get(I);N&&(!c||!xs(N,c))?S(N):c&&sf(c),o.delete(I),l.delete(I)}ft(()=>[e.include,e.exclude],([I,N])=>{I&&T(M=>Ml(I,M)),N&&T(M=>!Ml(N,M))},{flush:"post",deep:!0});let O=null;const P=()=>{O!=null&&(pd(i.subTree.type)?qi(()=>{o.set(O,du(i.subTree))},i.subTree.suspense):o.set(O,du(i.subTree)))};return Rt(P),Nc(P),rl(()=>{o.forEach(I=>{const{subTree:N,suspense:M}=i,D=du(N);if(I.type===D.type&&I.key===D.key){sf(D);const H=D.component.da;H&&qi(H,M);return}S(I)})}),()=>{if(O=null,!t.default)return c=null;const I=t.default(),N=I[0];if(I.length>1)return c=null,I;if(!wr(N)||!(N.shapeFlag&4)&&!(N.shapeFlag&128))return c=null,N;let M=du(N);if(M.type===Gi)return c=null,M;const D=M.type,H=vd(Kr(M)?M.type.__asyncResolved||{}:D),{include:Z,exclude:te,max:Y}=e;if(Z&&(!H||!Ml(Z,H))||te&&H&&Ml(te,H))return M.shapeFlag&=-257,c=M,N;const ee=M.key==null?D:M.key,le=o.get(ee);return M.el&&(M=Us(M),N.shapeFlag&128&&(N.ssContent=M)),O=ee,le?(M.el=le.el,M.component=le.component,M.transition&&xr(M,M.transition),M.shapeFlag|=512,l.delete(ee),l.add(ee)):(l.add(ee),Y&&l.size>parseInt(Y,10)&&C(l.values().next().value)),M.shapeFlag|=256,c=M,pd(N.type)?N:M}}},dA=uA;function Ml(e,t){return kt(e)?e.some(i=>Ml(i,t)):pi(e)?e.split(",").includes(t):NE(e)?(e.lastIndex=0,e.test(t)):!1}function R0(e,t){$0(e,"a",t)}function D0(e,t){$0(e,"da",t)}function $0(e,t,i=Zi){const n=e.__wdc||(e.__wdc=()=>{let o=i;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(oh(t,n,i),i){let o=i.parent;for(;o&&o.parent;)Mc(o.parent.vnode)&&hA(n,t,i,o),o=o.parent}}function hA(e,t,i,n){const o=oh(t,e,n,!0);ds(()=>{vg(n[t],o)},i)}function sf(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function du(e){return e.shapeFlag&128?e.ssContent:e}function oh(e,t,i=Zi,n=!1){if(i){const o=i[e]||(i[e]=[]),l=t.__weh||(t.__weh=(...c)=>{Er();const d=Bo(i),p=rs(t,i,e,c);return d(),Cr(),p});return n?o.unshift(l):o.push(l),l}}const Ar=e=>(t,i=Zi)=>{(!$a||e==="sp")&&oh(e,(...n)=>t(...n),i)},ah=Ar("bm"),Rt=Ar("m"),$g=Ar("bu"),Nc=Ar("u"),rl=Ar("bum"),ds=Ar("um"),F0=Ar("sp"),V0=Ar("rtg"),z0=Ar("rtc");function H0(e,t=Zi){oh("ec",e,t)}const Fg="components",fA="directives";function eo(e,t){return Vg(Fg,e,!0,t)||e}const B0=Symbol.for("v-ndc");function sp(e){return pi(e)?Vg(Fg,e,!1)||e:e||B0}function W0(e){return Vg(fA,e)}function Vg(e,t,i=!0,n=!1){const o=Ji||Zi;if(o){const l=o.type;if(e===Fg){const d=vd(l,!1);if(d&&(d===t||d===ln(t)||d===Pc(ln(t))))return l}const c=vv(o[e]||l[e],t)||vv(o.appContext[e],t);return!c&&n?l:c}}function vv(e,t){return e&&(e[t]||e[ln(t)]||e[Pc(ln(t))])}function Ot(e,t,i,n){let o;const l=i&&i[n],c=kt(e);if(c||pi(e)){const d=c&&fr(e);let p=!1;d&&(p=!Un(e),e=eh(e)),o=new Array(e.length);for(let m=0,v=e.length;mt(d,p,void 0,l&&l[p]));else{const d=Object.keys(e);o=new Array(d.length);for(let p=0,m=d.length;p{const l=n.fn(...o);return l&&(l.key=n.key),l}:n.fn)}return e}function xi(e,t,i={},n,o){if(Ji.ce||Ji.parent&&Kr(Ji.parent)&&Ji.parent.ce)return t!=="default"&&(i.name=t),B(),ct(lt,null,[$e("slot",i,n&&n())],64);let l=e[t];l&&l._c&&(l._d=!1),B();const c=l&&zg(l(i)),d=i.key||c&&c.key,p=ct(lt,{key:(d&&!Is(d)?d:`_${t}`)+(!c&&n?"_fb":"")},c||(n?n():[]),c&&e._===1?64:-2);return!o&&p.scopeId&&(p.slotScopeIds=[p.scopeId+"-s"]),l&&l._c&&(l._d=!0),p}function zg(e){return e.some(t=>wr(t)?!(t.type===Gi||t.type===lt&&!zg(t.children)):!0)?e:null}function j0(e,t){const i={};for(const n in e)i[t&&/[A-Z]/.test(n)?`on:${n}`:zl(n)]=e[n];return i}const rp=e=>e?ww(e)?$c(e):rp(e.parent):null,jl=wi(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=>rp(e.parent),$root:e=>rp(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Hg(e),$forceUpdate:e=>e.f||(e.f=()=>{Og(e.update)}),$nextTick:e=>e.n||(e.n=Ft.bind(e.proxy)),$watch:e=>YA.bind(e)}),rf=(e,t)=>e!==oi&&!e.__isScriptSetup&&di(e,t),op={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:i,setupState:n,data:o,props:l,accessCache:c,type:d,appContext:p}=e;let m;if(t[0]!=="$"){const S=c[t];if(S!==void 0)switch(S){case 1:return n[t];case 2:return o[t];case 4:return i[t];case 3:return l[t]}else{if(rf(n,t))return c[t]=1,n[t];if(o!==oi&&di(o,t))return c[t]=2,o[t];if((m=e.propsOptions[0])&&di(m,t))return c[t]=3,l[t];if(i!==oi&&di(i,t))return c[t]=4,i[t];ap&&(c[t]=0)}}const v=jl[t];let y,_;if(v)return t==="$attrs"&&dn(e.attrs,"get",""),v(e);if((y=d.__cssModules)&&(y=y[t]))return y;if(i!==oi&&di(i,t))return c[t]=4,i[t];if(_=p.config.globalProperties,di(_,t))return _[t]},set({_:e},t,i){const{data:n,setupState:o,ctx:l}=e;return rf(o,t)?(o[t]=i,!0):n!==oi&&di(n,t)?(n[t]=i,!0):di(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:o,propsOptions:l}},c){let d;return!!i[c]||e!==oi&&di(e,c)||rf(t,c)||(d=l[0])&&di(d,c)||di(n,c)||di(jl,c)||di(o.config.globalProperties,c)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:di(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}},gA=wi({},op,{get(e,t){if(t!==Symbol.unscopables)return op.get(e,t,e)},has(e,t){return t[0]!=="_"&&!VE(t)}});function mA(){return null}function vA(){return null}function bA(e){}function yA(e){}function xA(){return null}function wA(){}function _A(e,t){return null}function SA(){return Y0().slots}function EA(){return Y0().attrs}function Y0(){const e=Xi();return e.setupContext||(e.setupContext=Ew(e))}function mc(e){return kt(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function CA(e,t){const i=mc(e);for(const n in t){if(n.startsWith("__skip"))continue;let o=i[n];o?kt(o)||Vt(o)?o=i[n]={type:o,default:t[n]}:o.default=t[n]:o===null&&(o=i[n]={default:t[n]}),o&&t[`__skip_${n}`]&&(o.skipFactory=!0)}return i}function AA(e,t){return!e||!t?e||t:kt(e)&&kt(t)?e.concat(t):wi({},mc(e),mc(t))}function kA(e,t){const i={};for(const n in e)t.includes(n)||Object.defineProperty(i,n,{enumerable:!0,get:()=>e[n]});return i}function TA(e){const t=Xi();let i=e();return fp(),bg(i)&&(i=i.catch(n=>{throw Bo(t),n})),[i,()=>Bo(t)]}let ap=!0;function IA(e){const t=Hg(e),i=e.proxy,n=e.ctx;ap=!1,t.beforeCreate&&bv(t.beforeCreate,e,"bc");const{data:o,computed:l,methods:c,watch:d,provide:p,inject:m,created:v,beforeMount:y,mounted:_,beforeUpdate:S,updated:T,activated:C,deactivated:O,beforeDestroy:P,beforeUnmount:I,destroyed:N,unmounted:M,render:D,renderTracked:H,renderTriggered:Z,errorCaptured:te,serverPrefetch:Y,expose:ee,inheritAttrs:le,components:oe,directives:pe,filters:ge}=t;if(m&&OA(m,n,null),c)for(const ie in c){const X=c[ie];Vt(X)&&(n[ie]=X.bind(i))}if(o){const ie=o.call(i,i);bi(ie)&&(e.data=ti(ie))}if(ap=!0,l)for(const ie in l){const X=l[ie],fe=Vt(X)?X.bind(i,i):Vt(X.get)?X.get.bind(i,i):Yn,me=!Vt(X)&&Vt(X.set)?X.set.bind(i):Yn,de=Ee({get:fe,set:me});Object.defineProperty(n,ie,{enumerable:!0,configurable:!0,get:()=>de.value,set:ye=>de.value=ye})}if(d)for(const ie in d)U0(d[ie],n,i,ie);if(p){const ie=Vt(p)?p.call(i):p;Reflect.ownKeys(ie).forEach(X=>{pr(X,ie[X])})}v&&bv(v,e,"c");function ue(ie,X){kt(X)?X.forEach(fe=>ie(fe.bind(i))):X&&ie(X.bind(i))}if(ue(ah,y),ue(Rt,_),ue($g,S),ue(Nc,T),ue(R0,C),ue(D0,O),ue(H0,te),ue(z0,H),ue(V0,Z),ue(rl,I),ue(ds,M),ue(F0,Y),kt(ee))if(ee.length){const ie=e.exposed||(e.exposed={});ee.forEach(X=>{Object.defineProperty(ie,X,{get:()=>i[X],set:fe=>i[X]=fe})})}else e.exposed||(e.exposed={});D&&e.render===Yn&&(e.render=D),le!=null&&(e.inheritAttrs=le),oe&&(e.components=oe),pe&&(e.directives=pe),Y&&Dg(e)}function OA(e,t,i=Yn){kt(e)&&(e=lp(e));for(const n in e){const o=e[n];let l;bi(o)?"default"in o?l=vn(o.from||n,o.default,!0):l=vn(o.from||n):l=vn(o),Ti(l)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>l.value,set:c=>l.value=c}):t[n]=l}}function bv(e,t,i){rs(kt(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,i)}function U0(e,t,i,n){let o=n.includes(".")?hw(i,n):()=>i[n];if(pi(e)){const l=t[e];Vt(l)&&ft(o,l)}else if(Vt(e))ft(o,e.bind(i));else if(bi(e))if(kt(e))e.forEach(l=>U0(l,t,i,n));else{const l=Vt(e.handler)?e.handler.bind(i):t[e.handler];Vt(l)&&ft(o,l,e)}}function Hg(e){const t=e.type,{mixins:i,extends:n}=t,{mixins:o,optionsCache:l,config:{optionMergeStrategies:c}}=e.appContext,d=l.get(t);let p;return d?p=d:!o.length&&!i&&!n?p=t:(p={},o.length&&o.forEach(m=>hd(p,m,c,!0)),hd(p,t,c)),bi(t)&&l.set(t,p),p}function hd(e,t,i,n=!1){const{mixins:o,extends:l}=t;l&&hd(e,l,i,!0),o&&o.forEach(c=>hd(e,c,i,!0));for(const c in t)if(!(n&&c==="expose")){const d=PA[c]||i&&i[c];e[c]=d?d(e[c],t[c]):t[c]}return e}const PA={data:yv,props:xv,emits:xv,methods:Nl,computed:Nl,beforeCreate:yn,created:yn,beforeMount:yn,mounted:yn,beforeUpdate:yn,updated:yn,beforeDestroy:yn,beforeUnmount:yn,destroyed:yn,unmounted:yn,activated:yn,deactivated:yn,errorCaptured:yn,serverPrefetch:yn,components:Nl,directives:Nl,watch:MA,provide:yv,inject:LA};function yv(e,t){return t?e?function(){return wi(Vt(e)?e.call(this,this):e,Vt(t)?t.call(this,this):t)}:t:e}function LA(e,t){return Nl(lp(e),lp(t))}function lp(e){if(kt(e)){const t={};for(let i=0;i1)return i&&Vt(t)?t.call(n&&n.proxy):t}}function X0(){return!!(Zi||Ji||Ro)}const K0={},q0=()=>Object.create(K0),Z0=e=>Object.getPrototypeOf(e)===K0;function DA(e,t,i,n=!1){const o={},l=q0();e.propsDefaults=Object.create(null),J0(e,t,o,l);for(const c in e.propsOptions[0])c in o||(o[c]=void 0);i?e.props=n?o:kg(o):e.type.props?e.props=o:e.props=l,e.attrs=l}function $A(e,t,i,n){const{props:o,attrs:l,vnode:{patchFlag:c}}=e,d=si(o),[p]=e.propsOptions;let m=!1;if((n||c>0)&&!(c&16)){if(c&8){const v=e.vnode.dynamicProps;for(let y=0;y{p=!0;const[_,S]=Q0(y,t,!0);wi(c,_),S&&d.push(...S)};!i&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!l&&!p)return bi(e)&&n.set(e,Ta),Ta;if(kt(l))for(let v=0;ve[0]==="_"||e==="$stable",Bg=e=>kt(e)?e.map($n):[$n(e)],VA=(e,t,i)=>{if(t._n)return t;const n=dt((...o)=>Bg(t(...o)),i);return n._c=!1,n},tw=(e,t,i)=>{const n=e._ctx;for(const o in e){if(ew(o))continue;const l=e[o];if(Vt(l))t[o]=VA(o,l,n);else if(l!=null){const c=Bg(l);t[o]=()=>c}}},iw=(e,t)=>{const i=Bg(t);e.slots.default=()=>i},nw=(e,t,i)=>{for(const n in t)(i||n!=="_")&&(e[n]=t[n])},zA=(e,t,i)=>{const n=e.slots=q0();if(e.vnode.shapeFlag&32){const o=t._;o?(nw(n,t,i),i&&Zx(n,"_",o,!0)):tw(t,n)}else t&&iw(e,t)},HA=(e,t,i)=>{const{vnode:n,slots:o}=e;let l=!0,c=oi;if(n.shapeFlag&32){const d=t._;d?i&&d===1?l=!1:nw(o,t,i):(l=!t.$stable,tw(t,o)),c=t}else t&&(iw(e,t),c={default:1});if(l)for(const d in o)!ew(d)&&c[d]==null&&delete o[d]},qi=mw;function sw(e){return ow(e)}function rw(e){return ow(e,ZC)}function ow(e,t){const i=Kd();i.__VUE__=!0;const{insert:n,remove:o,patchProp:l,createElement:c,createText:d,createComment:p,setText:m,setElementText:v,parentNode:y,nextSibling:_,setScopeId:S=Yn,insertStaticContent:T}=e,C=(he,se,Te,Ke=null,Be=null,Qe=null,ht=void 0,ae=null,ce=!!se.dynamicChildren)=>{if(he===se)return;he&&!xs(he,se)&&(Ke=we(he),ye(he,Be,Qe,!0),he=null),se.patchFlag===-2&&(ce=!1,se.dynamicChildren=null);const{type:ke,ref:et,shapeFlag:nt}=se;switch(ke){case gr:O(he,se,Te,Ke);break;case Gi:P(he,se,Te,Ke);break;case Do:he==null&&I(se,Te,Ke,ht);break;case lt:oe(he,se,Te,Ke,Be,Qe,ht,ae,ce);break;default:nt&1?D(he,se,Te,Ke,Be,Qe,ht,ae,ce):nt&6?pe(he,se,Te,Ke,Be,Qe,ht,ae,ce):(nt&64||nt&128)&&ke.process(he,se,Te,Ke,Be,Qe,ht,ae,ce,Ie)}et!=null&&Be&&gc(et,he&&he.ref,Qe,se||he,!se)},O=(he,se,Te,Ke)=>{if(he==null)n(se.el=d(se.children),Te,Ke);else{const Be=se.el=he.el;se.children!==he.children&&m(Be,se.children)}},P=(he,se,Te,Ke)=>{he==null?n(se.el=p(se.children||""),Te,Ke):se.el=he.el},I=(he,se,Te,Ke)=>{[he.el,he.anchor]=T(he.children,se,Te,Ke,he.el,he.anchor)},N=({el:he,anchor:se},Te,Ke)=>{let Be;for(;he&&he!==se;)Be=_(he),n(he,Te,Ke),he=Be;n(se,Te,Ke)},M=({el:he,anchor:se})=>{let Te;for(;he&&he!==se;)Te=_(he),o(he),he=Te;o(se)},D=(he,se,Te,Ke,Be,Qe,ht,ae,ce)=>{se.type==="svg"?ht="svg":se.type==="math"&&(ht="mathml"),he==null?H(se,Te,Ke,Be,Qe,ht,ae,ce):Y(he,se,Be,Qe,ht,ae,ce)},H=(he,se,Te,Ke,Be,Qe,ht,ae)=>{let ce,ke;const{props:et,shapeFlag:nt,transition:tt,dirs:Re}=he;if(ce=he.el=c(he.type,Qe,et&&et.is,et),nt&8?v(ce,he.children):nt&16&&te(he.children,ce,null,Ke,Be,of(he,Qe),ht,ae),Re&&Fs(he,null,Ke,"created"),Z(ce,he,he.scopeId,ht,Ke),et){for(const St in et)St!=="value"&&!Oa(St)&&l(ce,St,null,et[St],Qe,Ke);"value"in et&&l(ce,"value",null,et.value,Qe),(ke=et.onVnodeBeforeMount)&&Dn(ke,Ke,he)}Re&&Fs(he,null,Ke,"beforeMount");const Ye=aw(Be,tt);Ye&&tt.beforeEnter(ce),n(ce,se,Te),((ke=et&&et.onVnodeMounted)||Ye||Re)&&qi(()=>{ke&&Dn(ke,Ke,he),Ye&&tt.enter(ce),Re&&Fs(he,null,Ke,"mounted")},Be)},Z=(he,se,Te,Ke,Be)=>{if(Te&&S(he,Te),Ke)for(let Qe=0;Qe{for(let ke=ce;ke{const ae=se.el=he.el;let{patchFlag:ce,dynamicChildren:ke,dirs:et}=se;ce|=he.patchFlag&16;const nt=he.props||oi,tt=se.props||oi;let Re;if(Te&&xo(Te,!1),(Re=tt.onVnodeBeforeUpdate)&&Dn(Re,Te,se,he),et&&Fs(se,he,Te,"beforeUpdate"),Te&&xo(Te,!0),(nt.innerHTML&&tt.innerHTML==null||nt.textContent&&tt.textContent==null)&&v(ae,""),ke?ee(he.dynamicChildren,ke,ae,Te,Ke,of(se,Be),Qe):ht||X(he,se,ae,null,Te,Ke,of(se,Be),Qe,!1),ce>0){if(ce&16)le(ae,nt,tt,Te,Be);else if(ce&2&&nt.class!==tt.class&&l(ae,"class",null,tt.class,Be),ce&4&&l(ae,"style",nt.style,tt.style,Be),ce&8){const Ye=se.dynamicProps;for(let St=0;St{Re&&Dn(Re,Te,se,he),et&&Fs(se,he,Te,"updated")},Ke)},ee=(he,se,Te,Ke,Be,Qe,ht)=>{for(let ae=0;ae{if(se!==Te){if(se!==oi)for(const Qe in se)!Oa(Qe)&&!(Qe in Te)&&l(he,Qe,se[Qe],null,Be,Ke);for(const Qe in Te){if(Oa(Qe))continue;const ht=Te[Qe],ae=se[Qe];ht!==ae&&Qe!=="value"&&l(he,Qe,ae,ht,Be,Ke)}"value"in Te&&l(he,"value",se.value,Te.value,Be)}},oe=(he,se,Te,Ke,Be,Qe,ht,ae,ce)=>{const ke=se.el=he?he.el:d(""),et=se.anchor=he?he.anchor:d("");let{patchFlag:nt,dynamicChildren:tt,slotScopeIds:Re}=se;Re&&(ae=ae?ae.concat(Re):Re),he==null?(n(ke,Te,Ke),n(et,Te,Ke),te(se.children||[],Te,et,Be,Qe,ht,ae,ce)):nt>0&&nt&64&&tt&&he.dynamicChildren?(ee(he.dynamicChildren,tt,Te,Be,Qe,ht,ae),(se.key!=null||Be&&se===Be.subTree)&&Wg(he,se,!0)):X(he,se,Te,et,Be,Qe,ht,ae,ce)},pe=(he,se,Te,Ke,Be,Qe,ht,ae,ce)=>{se.slotScopeIds=ae,he==null?se.shapeFlag&512?Be.ctx.activate(se,Te,Ke,ht,ce):ge(se,Te,Ke,Be,Qe,ht,ce):Ce(he,se,ce)},ge=(he,se,Te,Ke,Be,Qe,ht)=>{const ae=he.component=xw(he,Ke,Be);if(Mc(he)&&(ae.ctx.renderer=Ie),_w(ae,!1,ht),ae.asyncDep){if(Be&&Be.registerDep(ae,ue,ht),!he.el){const ce=ae.subTree=$e(Gi);P(null,ce,se,Te)}}else ue(ae,he,se,Te,Be,Qe,ht)},Ce=(he,se,Te)=>{const Ke=se.component=he.component;if(ZA(he,se,Te))if(Ke.asyncDep&&!Ke.asyncResolved){ie(Ke,se,Te);return}else Ke.next=se,Ke.update();else se.el=he.el,Ke.vnode=se},ue=(he,se,Te,Ke,Be,Qe,ht)=>{const ae=()=>{if(he.isMounted){let{next:nt,bu:tt,u:Re,parent:Ye,vnode:St}=he;{const We=lw(he);if(We){nt&&(nt.el=St.el,ie(he,nt,ht)),We.asyncDep.then(()=>{he.isUnmounted||ae()});return}}let q=nt,W;xo(he,!1),nt?(nt.el=St.el,ie(he,nt,ht)):nt=St,tt&&Pa(tt),(W=nt.props&&nt.props.onVnodeBeforeUpdate)&&Dn(W,Ye,nt,St),xo(he,!0);const be=Fu(he),Ve=he.subTree;he.subTree=be,C(Ve,be,y(Ve.el),we(Ve),he,Be,Qe),nt.el=be.el,q===null&&ch(he,be.el),Re&&qi(Re,Be),(W=nt.props&&nt.props.onVnodeUpdated)&&qi(()=>Dn(W,Ye,nt,St),Be)}else{let nt;const{el:tt,props:Re}=se,{bm:Ye,m:St,parent:q,root:W,type:be}=he,Ve=Kr(se);if(xo(he,!1),Ye&&Pa(Ye),!Ve&&(nt=Re&&Re.onVnodeBeforeMount)&&Dn(nt,q,se),xo(he,!0),tt&&Ge){const We=()=>{he.subTree=Fu(he),Ge(tt,he.subTree,he,Be,null)};Ve&&be.__asyncHydrate?be.__asyncHydrate(tt,he,We):We()}else{W.ce&&W.ce._injectChildStyle(be);const We=he.subTree=Fu(he);C(null,We,Te,Ke,he,Be,Qe),se.el=We.el}if(St&&qi(St,Be),!Ve&&(nt=Re&&Re.onVnodeMounted)){const We=se;qi(()=>Dn(nt,q,We),Be)}(se.shapeFlag&256||q&&Kr(q.vnode)&&q.vnode.shapeFlag&256)&&he.a&&qi(he.a,Be),he.isMounted=!0,se=Te=Ke=null}};he.scope.on();const ce=he.effect=new cc(ae);he.scope.off();const ke=he.update=ce.run.bind(ce),et=he.job=ce.runIfDirty.bind(ce);et.i=he,et.id=he.uid,ce.scheduler=()=>Og(et),xo(he,!0),ke()},ie=(he,se,Te)=>{se.component=he;const Ke=he.vnode.props;he.vnode=se,he.next=null,$A(he,se.props,Ke,Te),HA(he,se.children,Te),Er(),lv(he),Cr()},X=(he,se,Te,Ke,Be,Qe,ht,ae,ce=!1)=>{const ke=he&&he.children,et=he?he.shapeFlag:0,nt=se.children,{patchFlag:tt,shapeFlag:Re}=se;if(tt>0){if(tt&128){me(ke,nt,Te,Ke,Be,Qe,ht,ae,ce);return}else if(tt&256){fe(ke,nt,Te,Ke,Be,Qe,ht,ae,ce);return}}Re&8?(et&16&&Pe(ke,Be,Qe),nt!==ke&&v(Te,nt)):et&16?Re&16?me(ke,nt,Te,Ke,Be,Qe,ht,ae,ce):Pe(ke,Be,Qe,!0):(et&8&&v(Te,""),Re&16&&te(nt,Te,Ke,Be,Qe,ht,ae,ce))},fe=(he,se,Te,Ke,Be,Qe,ht,ae,ce)=>{he=he||Ta,se=se||Ta;const ke=he.length,et=se.length,nt=Math.min(ke,et);let tt;for(tt=0;ttet?Pe(he,Be,Qe,!0,!1,nt):te(se,Te,Ke,Be,Qe,ht,ae,ce,nt)},me=(he,se,Te,Ke,Be,Qe,ht,ae,ce)=>{let ke=0;const et=se.length;let nt=he.length-1,tt=et-1;for(;ke<=nt&&ke<=tt;){const Re=he[ke],Ye=se[ke]=ce?jr(se[ke]):$n(se[ke]);if(xs(Re,Ye))C(Re,Ye,Te,null,Be,Qe,ht,ae,ce);else break;ke++}for(;ke<=nt&&ke<=tt;){const Re=he[nt],Ye=se[tt]=ce?jr(se[tt]):$n(se[tt]);if(xs(Re,Ye))C(Re,Ye,Te,null,Be,Qe,ht,ae,ce);else break;nt--,tt--}if(ke>nt){if(ke<=tt){const Re=tt+1,Ye=Rett)for(;ke<=nt;)ye(he[ke],Be,Qe,!0),ke++;else{const Re=ke,Ye=ke,St=new Map;for(ke=Ye;ke<=tt;ke++){const Et=se[ke]=ce?jr(se[ke]):$n(se[ke]);Et.key!=null&&St.set(Et.key,ke)}let q,W=0;const be=tt-Ye+1;let Ve=!1,We=0;const rt=new Array(be);for(ke=0;ke=be){ye(Et,Be,Qe,!0);continue}let Nt;if(Et.key!=null)Nt=St.get(Et.key);else for(q=Ye;q<=tt;q++)if(rt[q-Ye]===0&&xs(Et,se[q])){Nt=q;break}Nt===void 0?ye(Et,Be,Qe,!0):(rt[Nt-Ye]=ke+1,Nt>=We?We=Nt:Ve=!0,C(Et,se[Nt],Te,null,Be,Qe,ht,ae,ce),W++)}const wt=Ve?BA(rt):Ta;for(q=wt.length-1,ke=be-1;ke>=0;ke--){const Et=Ye+ke,Nt=se[Et],Tt=Et+1{const{el:Qe,type:ht,transition:ae,children:ce,shapeFlag:ke}=he;if(ke&6){de(he.component.subTree,se,Te,Ke);return}if(ke&128){he.suspense.move(se,Te,Ke);return}if(ke&64){ht.move(he,se,Te,Ie);return}if(ht===lt){n(Qe,se,Te);for(let nt=0;ntae.enter(Qe),Be);else{const{leave:nt,delayLeave:tt,afterLeave:Re}=ae,Ye=()=>n(Qe,se,Te),St=()=>{nt(Qe,()=>{Ye(),Re&&Re()})};tt?tt(Qe,Ye,St):St()}else n(Qe,se,Te)},ye=(he,se,Te,Ke=!1,Be=!1)=>{const{type:Qe,props:ht,ref:ae,children:ce,dynamicChildren:ke,shapeFlag:et,patchFlag:nt,dirs:tt,cacheIndex:Re}=he;if(nt===-2&&(Be=!1),ae!=null&&gc(ae,null,Te,he,!0),Re!=null&&(se.renderCache[Re]=void 0),et&256){se.ctx.deactivate(he);return}const Ye=et&1&&tt,St=!Kr(he);let q;if(St&&(q=ht&&ht.onVnodeBeforeUnmount)&&Dn(q,se,he),et&6)Oe(he.component,Te,Ke);else{if(et&128){he.suspense.unmount(Te,Ke);return}Ye&&Fs(he,null,se,"beforeUnmount"),et&64?he.type.remove(he,se,Te,Ie,Ke):ke&&!ke.hasOnce&&(Qe!==lt||nt>0&&nt&64)?Pe(ke,se,Te,!1,!0):(Qe===lt&&nt&384||!Be&&et&16)&&Pe(ce,se,Te),Ke&&ze(he)}(St&&(q=ht&&ht.onVnodeUnmounted)||Ye)&&qi(()=>{q&&Dn(q,se,he),Ye&&Fs(he,null,se,"unmounted")},Te)},ze=he=>{const{type:se,el:Te,anchor:Ke,transition:Be}=he;if(se===lt){st(Te,Ke);return}if(se===Do){M(he);return}const Qe=()=>{o(Te),Be&&!Be.persisted&&Be.afterLeave&&Be.afterLeave()};if(he.shapeFlag&1&&Be&&!Be.persisted){const{leave:ht,delayLeave:ae}=Be,ce=()=>ht(Te,Qe);ae?ae(he.el,Qe,ce):ce()}else Qe()},st=(he,se)=>{let Te;for(;he!==se;)Te=_(he),o(he),he=Te;o(se)},Oe=(he,se,Te)=>{const{bum:Ke,scope:Be,job:Qe,subTree:ht,um:ae,m:ce,a:ke}=he;fd(ce),fd(ke),Ke&&Pa(Ke),Be.stop(),Qe&&(Qe.flags|=8,ye(ht,he,se,Te)),ae&&qi(ae,se),qi(()=>{he.isUnmounted=!0},se),se&&se.pendingBranch&&!se.isUnmounted&&he.asyncDep&&!he.asyncResolved&&he.suspenseId===se.pendingId&&(se.deps--,se.deps===0&&se.resolve())},Pe=(he,se,Te,Ke=!1,Be=!1,Qe=0)=>{for(let ht=Qe;ht{if(he.shapeFlag&6)return we(he.component.subTree);if(he.shapeFlag&128)return he.suspense.next();const se=_(he.anchor||he.el),Te=se&&se[C0];return Te?_(Te):se};let De=!1;const Se=(he,se,Te)=>{he==null?se._vnode&&ye(se._vnode,null,null,!0):C(se._vnode||null,he,se,null,null,null,Te),se._vnode=he,De||(De=!0,lv(),dd(),De=!1)},Ie={p:C,um:ye,m:de,r:ze,mt:ge,mc:te,pc:X,pbc:ee,n:we,o:e};let Fe,Ge;return t&&([Fe,Ge]=t(Ie)),{render:Se,hydrate:Fe,createApp:RA(Se,Fe)}}function of({type:e,props:t},i){return i==="svg"&&e==="foreignObject"||i==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:i}function xo({effect:e,job:t},i){i?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function aw(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wg(e,t,i=!1){const n=e.children,o=t.children;if(kt(n)&&kt(o))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}function lw(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:lw(t)}function fd(e){if(e)for(let t=0;tvn(cw);function WA(e,t){return Rc(e,null,t)}function jA(e,t){return Rc(e,null,{flush:"post"})}function dw(e,t){return Rc(e,null,{flush:"sync"})}function ft(e,t,i){return Rc(e,t,i)}function Rc(e,t,i=oi){const{immediate:n,deep:o,flush:l,once:c}=i,d=wi({},i),p=t&&n||!t&&l!=="post";let m;if($a){if(l==="sync"){const S=uw();m=S.__watcherHandles||(S.__watcherHandles=[])}else if(!p){const S=()=>{};return S.stop=Yn,S.resume=Yn,S.pause=Yn,S}}const v=Zi;d.call=(S,T,C)=>rs(S,v,T,C);let y=!1;l==="post"?d.scheduler=S=>{qi(S,v&&v.suspense)}:l!=="sync"&&(y=!0,d.scheduler=(S,T)=>{T?S():Og(S)}),d.augmentJob=S=>{t&&(S.flags|=4),y&&(S.flags|=2,v&&(S.id=v.uid,S.i=v))};const _=LC(e,t,d);return $a&&(m?m.push(_):p&&_()),_}function YA(e,t,i){const n=this.proxy,o=pi(e)?e.includes(".")?hw(n,e):()=>n[e]:e.bind(n,n);let l;Vt(t)?l=t:(l=t.handler,i=t);const c=Bo(this),d=Rc(o,l.bind(n),i);return c(),d}function hw(e,t){const i=t.split(".");return()=>{let n=e;for(let o=0;o{let v,y=oi,_;return dw(()=>{const S=e[o];En(v,S)&&(v=S,m())}),{get(){return p(),i.get?i.get(v):v},set(S){const T=i.set?i.set(S):S;if(!En(T,v)&&!(y!==oi&&En(S,y)))return;const C=n.vnode.props;C&&(t in C||o in C||l in C)&&(`onUpdate:${t}`in C||`onUpdate:${o}`in C||`onUpdate:${l}`in C)||(v=S,m()),n.emit(`update:${t}`,T),En(S,T)&&En(S,y)&&!En(T,_)&&m(),y=S,_=T}}});return d[Symbol.iterator]=()=>{let p=0;return{next(){return p<2?{value:p++?c||oi:d,done:!1}:{done:!0}}}},d}const fw=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ln(t)}Modifiers`]||e[`${An(t)}Modifiers`];function GA(e,t,...i){if(e.isUnmounted)return;const n=e.vnode.props||oi;let o=i;const l=t.startsWith("update:"),c=l&&fw(n,t.slice(7));c&&(c.trim&&(o=i.map(v=>pi(v)?v.trim():v)),c.number&&(o=i.map(od)));let d,p=n[d=zl(t)]||n[d=zl(ln(t))];!p&&l&&(p=n[d=zl(An(t))]),p&&rs(p,e,6,o);const m=n[d+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,rs(m,e,6,o)}}function pw(e,t,i=!1){const n=t.emitsCache,o=n.get(e);if(o!==void 0)return o;const l=e.emits;let c={},d=!1;if(!Vt(e)){const p=m=>{const v=pw(m,t,!0);v&&(d=!0,wi(c,v))};!i&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}return!l&&!d?(bi(e)&&n.set(e,null),null):(kt(l)?l.forEach(p=>c[p]=null):wi(c,l),bi(e)&&n.set(e,c),c)}function lh(e,t){return!e||!Oc(t)?!1:(t=t.slice(2).replace(/Once$/,""),di(e,t[0].toLowerCase()+t.slice(1))||di(e,An(t))||di(e,t))}function Fu(e){const{type:t,vnode:i,proxy:n,withProxy:o,propsOptions:[l],slots:c,attrs:d,emit:p,render:m,renderCache:v,props:y,data:_,setupState:S,ctx:T,inheritAttrs:C}=e,O=pc(e);let P,I;try{if(i.shapeFlag&4){const M=o||n,D=M;P=$n(m.call(D,M,v,y,S,_,T)),I=d}else{const M=t;P=$n(M.length>1?M(y,{attrs:d,slots:c,emit:p}):M(y,null)),I=t.props?d:KA(d)}}catch(M){Yl.length=0,Jo(M,e,1),P=$e(Gi)}let N=P;if(I&&C!==!1){const M=Object.keys(I),{shapeFlag:D}=N;M.length&&D&7&&(l&&M.some(mg)&&(I=qA(I,l)),N=Us(N,I,!1,!0))}return i.dirs&&(N=Us(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(i.dirs):i.dirs),i.transition&&xr(N,i.transition),P=N,pc(O),P}function XA(e,t=!0){let i;for(let n=0;n{let t;for(const i in e)(i==="class"||i==="style"||Oc(i))&&((t||(t={}))[i]=e[i]);return t},qA=(e,t)=>{const i={};for(const n in e)(!mg(n)||!(n.slice(9)in t))&&(i[n]=e[n]);return i};function ZA(e,t,i){const{props:n,children:o,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?_v(n,c,m):!!c;if(p&8){const v=t.dynamicProps;for(let y=0;ye.__isSuspense;let up=0;const JA={name:"Suspense",__isSuspense:!0,process(e,t,i,n,o,l,c,d,p,m){if(e==null)ek(t,i,n,o,l,c,d,p,m);else{if(l&&l.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}tk(e,t,i,n,o,c,d,p,m)}},hydrate:ik,normalize:nk},QA=JA;function vc(e,t){const i=e.props&&e.props[t];Vt(i)&&i()}function ek(e,t,i,n,o,l,c,d,p){const{p:m,o:{createElement:v}}=p,y=v("div"),_=e.suspense=gw(e,o,n,t,y,i,l,c,d,p);m(null,_.pendingBranch=e.ssContent,y,null,n,_,l,c),_.deps>0?(vc(e,"onPending"),vc(e,"onFallback"),m(null,e.ssFallback,t,i,n,null,l,c),Ma(_,e.ssFallback)):_.resolve(!1,!0)}function tk(e,t,i,n,o,l,c,d,{p,um:m,o:{createElement:v}}){const y=t.suspense=e.suspense;y.vnode=t,t.el=e.el;const _=t.ssContent,S=t.ssFallback,{activeBranch:T,pendingBranch:C,isInFallback:O,isHydrating:P}=y;if(C)y.pendingBranch=_,xs(_,C)?(p(C,_,y.hiddenContainer,null,o,y,l,c,d),y.deps<=0?y.resolve():O&&(P||(p(T,S,i,n,o,null,l,c,d),Ma(y,S)))):(y.pendingId=up++,P?(y.isHydrating=!1,y.activeBranch=C):m(C,o,y),y.deps=0,y.effects.length=0,y.hiddenContainer=v("div"),O?(p(null,_,y.hiddenContainer,null,o,y,l,c,d),y.deps<=0?y.resolve():(p(T,S,i,n,o,null,l,c,d),Ma(y,S))):T&&xs(_,T)?(p(T,_,i,n,o,y,l,c,d),y.resolve(!0)):(p(null,_,y.hiddenContainer,null,o,y,l,c,d),y.deps<=0&&y.resolve()));else if(T&&xs(_,T))p(T,_,i,n,o,y,l,c,d),Ma(y,_);else if(vc(t,"onPending"),y.pendingBranch=_,_.shapeFlag&512?y.pendingId=_.component.suspenseId:y.pendingId=up++,p(null,_,y.hiddenContainer,null,o,y,l,c,d),y.deps<=0)y.resolve();else{const{timeout:I,pendingId:N}=y;I>0?setTimeout(()=>{y.pendingId===N&&y.fallback(S)},I):I===0&&y.fallback(S)}}function gw(e,t,i,n,o,l,c,d,p,m,v=!1){const{p:y,m:_,um:S,n:T,o:{parentNode:C,remove:O}}=m;let P;const I=sk(e);I&&t&&t.pendingBranch&&(P=t.pendingId,t.deps++);const N=e.props?ad(e.props.timeout):void 0,M=l,D={vnode:e,parent:t,parentComponent:i,namespace:c,container:n,hiddenContainer:o,deps:0,pendingId:up++,timeout:typeof N=="number"?N:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(H=!1,Z=!1){const{vnode:te,activeBranch:Y,pendingBranch:ee,pendingId:le,effects:oe,parentComponent:pe,container:ge}=D;let Ce=!1;D.isHydrating?D.isHydrating=!1:H||(Ce=Y&&ee.transition&&ee.transition.mode==="out-in",Ce&&(Y.transition.afterLeave=()=>{le===D.pendingId&&(_(ee,ge,l===M?T(Y):l,0),hc(oe))}),Y&&(C(Y.el)===ge&&(l=T(Y)),S(Y,pe,D,!0)),Ce||_(ee,ge,l,0)),Ma(D,ee),D.pendingBranch=null,D.isInFallback=!1;let ue=D.parent,ie=!1;for(;ue;){if(ue.pendingBranch){ue.effects.push(...oe),ie=!0;break}ue=ue.parent}!ie&&!Ce&&hc(oe),D.effects=[],I&&t&&t.pendingBranch&&P===t.pendingId&&(t.deps--,t.deps===0&&!Z&&t.resolve()),vc(te,"onResolve")},fallback(H){if(!D.pendingBranch)return;const{vnode:Z,activeBranch:te,parentComponent:Y,container:ee,namespace:le}=D;vc(Z,"onFallback");const oe=T(te),pe=()=>{D.isInFallback&&(y(null,H,ee,oe,Y,null,le,d,p),Ma(D,H))},ge=H.transition&&H.transition.mode==="out-in";ge&&(te.transition.afterLeave=pe),D.isInFallback=!0,S(te,Y,null,!0),ge||pe()},move(H,Z,te){D.activeBranch&&_(D.activeBranch,H,Z,te),D.container=H},next(){return D.activeBranch&&T(D.activeBranch)},registerDep(H,Z,te){const Y=!!D.pendingBranch;Y&&D.deps++;const ee=H.vnode.el;H.asyncDep.catch(le=>{Jo(le,H,0)}).then(le=>{if(H.isUnmounted||D.isUnmounted||D.pendingId!==H.suspenseId)return;H.asyncResolved=!0;const{vnode:oe}=H;pp(H,le,!1),ee&&(oe.el=ee);const pe=!ee&&H.subTree.el;Z(H,oe,C(ee||H.subTree.el),ee?null:T(H.subTree),D,c,te),pe&&O(pe),ch(H,oe.el),Y&&--D.deps===0&&D.resolve()})},unmount(H,Z){D.isUnmounted=!0,D.activeBranch&&S(D.activeBranch,i,H,Z),D.pendingBranch&&S(D.pendingBranch,i,H,Z)}};return D}function ik(e,t,i,n,o,l,c,d,p){const m=t.suspense=gw(t,n,i,e.parentNode,document.createElement("div"),null,o,l,c,d,!0),v=p(e,m.pendingBranch=t.ssContent,i,m,l,c);return m.deps===0&&m.resolve(!1,!0),v}function nk(e){const{shapeFlag:t,children:i}=e,n=t&32;e.ssContent=Sv(n?i.default:i),e.ssFallback=n?Sv(i.fallback):$e(Gi)}function Sv(e){let t;if(Vt(e)){const i=Ho&&e._c;i&&(e._d=!1,B()),e=e(),i&&(e._d=!0,t=mn,vw())}return kt(e)&&(e=XA(e)),e=$n(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(i=>i!==e)),e}function mw(e,t){t&&t.pendingBranch?kt(e)?t.effects.push(...e):t.effects.push(e):hc(e)}function Ma(e,t){e.activeBranch=t;const{vnode:i,parentComponent:n}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;i.el=o,n&&n.subTree===i&&(n.vnode.el=o,ch(n,o))}function sk(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const lt=Symbol.for("v-fgt"),gr=Symbol.for("v-txt"),Gi=Symbol.for("v-cmt"),Do=Symbol.for("v-stc"),Yl=[];let mn=null;function B(e=!1){Yl.push(mn=e?null:[])}function vw(){Yl.pop(),mn=Yl[Yl.length-1]||null}let Ho=1;function dp(e,t=!1){Ho+=e,e<0&&mn&&t&&(mn.hasOnce=!0)}function bw(e){return e.dynamicChildren=Ho>0?mn||Ta:null,vw(),Ho>0&&mn&&mn.push(e),e}function G(e,t,i,n,o,l){return bw(z(e,t,i,n,o,l,!0))}function ct(e,t,i,n,o){return bw($e(e,t,i,n,o,!0))}function wr(e){return e?e.__v_isVNode===!0:!1}function xs(e,t){return e.type===t.type&&e.key===t.key}function rk(e){}const yw=({key:e})=>e??null,Vu=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?pi(e)||Ti(e)||Vt(e)?{i:Ji,r:e,k:t,f:!!i}:e:null);function z(e,t=null,i=null,n=0,o=null,l=e===lt?0:1,c=!1,d=!1){const p={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&yw(t),ref:t&&Vu(t),scopeId:sh,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ji};return d?(jg(p,i),l&128&&e.normalize(p)):i&&(p.shapeFlag|=pi(i)?8:16),Ho>0&&!c&&mn&&(p.patchFlag>0||l&6)&&p.patchFlag!==32&&mn.push(p),p}const $e=ok;function ok(e,t=null,i=null,n=0,o=null,l=!1){if((!e||e===B0)&&(e=Gi),wr(e)){const d=Us(e,t,!0);return i&&jg(d,i),Ho>0&&!l&&mn&&(d.shapeFlag&6?mn[mn.indexOf(e)]=d:mn.push(d)),d.patchFlag=-2,d}if(mk(e)&&(e=e.__vccOpts),t){t=uh(t);let{class:d,style:p}=t;d&&!pi(d)&&(t.class=mt(d)),bi(p)&&(nh(p)&&!kt(p)&&(p=wi({},p)),t.style=Ct(p))}const c=pi(e)?1:pd(e)?128:A0(e)?64:bi(e)?4:Vt(e)?2:0;return z(e,t,i,n,o,c,l,!0)}function uh(e){return e?nh(e)||Z0(e)?wi({},e):e:null}function Us(e,t,i=!1,n=!1){const{props:o,ref:l,patchFlag:c,children:d,transition:p}=e,m=t?Dc(o||{},t):o,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:m,key:m&&yw(m),ref:t&&t.ref?i&&l?kt(l)?l.concat(Vu(t)):[l,Vu(t)]:Vu(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==lt?c===-1?16:c|16:c,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:p,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Us(e.ssContent),ssFallback:e.ssFallback&&Us(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return p&&n&&xr(v,p.clone(v)),v}function Gt(e=" ",t=0){return $e(gr,null,e,t)}function ak(e,t){const i=$e(Do,null,e);return i.staticCount=t,i}function Me(e="",t=!1){return t?(B(),ct(Gi,null,e)):$e(Gi,null,e)}function $n(e){return e==null||typeof e=="boolean"?$e(Gi):kt(e)?$e(lt,null,e.slice()):wr(e)?jr(e):$e(gr,null,String(e))}function jr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Us(e)}function jg(e,t){let i=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(kt(t))i=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),jg(e,o()),o._c&&(o._d=!0));return}else{i=32;const o=t._;!o&&!Z0(t)?t._ctx=Ji:o===3&&Ji&&(Ji.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Vt(t)?(t={default:t,_ctx:Ji},i=32):(t=String(t),n&64?(i=16,t=[Gt(t)]):i=8);e.children=t,e.shapeFlag|=i}function Dc(...e){const t={};for(let i=0;iZi||Ji;let gd,hp;{const e=Kd(),t=(i,n)=>{let o;return(o=e[i])||(o=e[i]=[]),o.push(n),l=>{o.length>1?o.forEach(c=>c(l)):o[0](l)}};gd=t("__VUE_INSTANCE_SETTERS__",i=>Zi=i),hp=t("__VUE_SSR_SETTERS__",i=>$a=i)}const Bo=e=>{const t=Zi;return gd(e),e.scope.on(),()=>{e.scope.off(),gd(t)}},fp=()=>{Zi&&Zi.scope.off(),gd(null)};function ww(e){return e.vnode.shapeFlag&4}let $a=!1;function _w(e,t=!1,i=!1){t&&hp(t);const{props:n,children:o}=e.vnode,l=ww(e);DA(e,n,l,t),zA(e,o,i);const c=l?uk(e,t):void 0;return t&&hp(!1),c}function uk(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,op);const{setup:n}=i;if(n){Er();const o=e.setupContext=n.length>1?Ew(e):null,l=Bo(e),c=Zo(n,e,0,[e.props,o]),d=bg(c);if(Cr(),l(),(d||e.sp)&&!Kr(e)&&Dg(e),d){if(c.then(fp,fp),t)return c.then(p=>{pp(e,p,t)}).catch(p=>{Jo(p,e,0)});e.asyncDep=c}else pp(e,c,t)}else Sw(e,t)}function pp(e,t,i){Vt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:bi(t)&&(e.setupState=Ig(t)),Sw(e,i)}let md,gp;function dk(e){md=e,gp=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,gA))}}const hk=()=>!md;function Sw(e,t,i){const n=e.type;if(!e.render){if(!t&&md&&!n.render){const o=n.template||Hg(e).template;if(o){const{isCustomElement:l,compilerOptions:c}=e.appContext.config,{delimiters:d,compilerOptions:p}=n,m=wi(wi({isCustomElement:l,delimiters:d},c),p);n.render=md(o,m)}}e.render=n.render||Yn,gp&&gp(e)}{const o=Bo(e);Er();try{IA(e)}finally{Cr(),o()}}}const fk={get(e,t){return dn(e,"get",""),e[t]}};function Ew(e){const t=i=>{e.exposed=i||{}};return{attrs:new Proxy(e.attrs,fk),slots:e.slots,emit:e.emit,expose:t}}function $c(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ig(Lc(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in jl)return jl[i](e)},has(t,i){return i in t||i in jl}})):e.proxy}const pk=/(?:^|[-_])(\w)/g,gk=e=>e.replace(pk,t=>t.toUpperCase()).replace(/[-_]/g,"");function vd(e,t=!0){return Vt(e)?e.displayName||e.name:e.name||t&&e.__name}function Cw(e,t,i=!1){let n=vd(t);if(!n&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(n=o[1])}if(!n&&e&&e.parent){const o=l=>{for(const c in l)if(l[c]===t)return c};n=o(e.components||e.parent.type.components)||o(e.appContext.components)}return n?gk(n):i?"App":"Anonymous"}function mk(e){return Vt(e)&&"__vccOpts"in e}const Ee=(e,t)=>TC(e,t,$a);function co(e,t,i){const n=arguments.length;return n===2?bi(t)&&!kt(t)?wr(t)?$e(e,null,[t]):$e(e,t):$e(e,null,t):(n>3?i=Array.prototype.slice.call(arguments,2):n===3&&wr(i)&&(i=[i]),$e(e,t,i))}function vk(){}function bk(e,t,i,n){const o=i[n];if(o&&Aw(o,e))return o;const l=t();return l.memo=e.slice(),l.cacheIndex=n,i[n]=l}function Aw(e,t){const i=e.memo;if(i.length!=t.length)return!1;for(let n=0;n0&&mn&&mn.push(e),!0}const kw="3.5.13",yk=Yn,xk=HC,wk=ma,_k=E0,Sk={createComponentInstance:xw,setupComponent:_w,renderComponentRoot:Fu,setCurrentRenderingInstance:pc,isVNode:wr,normalizeVNode:$n,getComponentPublicInstance:$c,ensureValidVNode:zg,pushWarningContext:MC,popWarningContext:NC},Ek=Sk,Ck=null,Ak=null,kk=null;/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let mp;const Ev=typeof window<"u"&&window.trustedTypes;if(Ev)try{mp=Ev.createPolicy("vue",{createHTML:e=>e})}catch{}const Tw=mp?e=>mp.createHTML(e):e=>e,Tk="http://www.w3.org/2000/svg",Ik="http://www.w3.org/1998/Math/MathML",sr=typeof document<"u"?document:null,Cv=sr&&sr.createElement("template"),Ok={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 o=t==="svg"?sr.createElementNS(Tk,e):t==="mathml"?sr.createElementNS(Ik,e):i?sr.createElement(e,{is:i}):sr.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>sr.createTextNode(e),createComment:e=>sr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,i,n,o,l){const c=i?i.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),i),!(o===l||!(o=o.nextSibling)););else{Cv.innerHTML=Tw(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const d=Cv.content;if(n==="svg"||n==="mathml"){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]}},Or="transition",xl="animation",Fa=Symbol("_vtc"),Iw={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},Ow=wi({},Rg,Iw),Pk=e=>(e.displayName="Transition",e.props=Ow,e),va=Pk((e,{slots:t})=>co(P0,Pw(e),t)),wo=(e,t=[])=>{kt(e)?e.forEach(i=>i(...t)):e&&e(...t)},Av=e=>e?kt(e)?e.some(t=>t.length>1):e.length>1:!1;function Pw(e){const t={};for(const oe in e)oe in Iw||(t[oe]=e[oe]);if(e.css===!1)return t;const{name:i="v",type:n,duration:o,enterFromClass:l=`${i}-enter-from`,enterActiveClass:c=`${i}-enter-active`,enterToClass:d=`${i}-enter-to`,appearFromClass:p=l,appearActiveClass:m=c,appearToClass:v=d,leaveFromClass:y=`${i}-leave-from`,leaveActiveClass:_=`${i}-leave-active`,leaveToClass:S=`${i}-leave-to`}=e,T=Lk(o),C=T&&T[0],O=T&&T[1],{onBeforeEnter:P,onEnter:I,onEnterCancelled:N,onLeave:M,onLeaveCancelled:D,onBeforeAppear:H=P,onAppear:Z=I,onAppearCancelled:te=N}=t,Y=(oe,pe,ge,Ce)=>{oe._enterCancelled=Ce,$r(oe,pe?v:d),$r(oe,pe?m:c),ge&&ge()},ee=(oe,pe)=>{oe._isLeaving=!1,$r(oe,y),$r(oe,S),$r(oe,_),pe&&pe()},le=oe=>(pe,ge)=>{const Ce=oe?Z:I,ue=()=>Y(pe,oe,ge);wo(Ce,[pe,ue]),kv(()=>{$r(pe,oe?p:l),Ds(pe,oe?v:d),Av(Ce)||Tv(pe,n,C,ue)})};return wi(t,{onBeforeEnter(oe){wo(P,[oe]),Ds(oe,l),Ds(oe,c)},onBeforeAppear(oe){wo(H,[oe]),Ds(oe,p),Ds(oe,m)},onEnter:le(!1),onAppear:le(!0),onLeave(oe,pe){oe._isLeaving=!0;const ge=()=>ee(oe,pe);Ds(oe,y),oe._enterCancelled?(Ds(oe,_),vp()):(vp(),Ds(oe,_)),kv(()=>{oe._isLeaving&&($r(oe,y),Ds(oe,S),Av(M)||Tv(oe,n,O,ge))}),wo(M,[oe,ge])},onEnterCancelled(oe){Y(oe,!1,void 0,!0),wo(N,[oe])},onAppearCancelled(oe){Y(oe,!0,void 0,!0),wo(te,[oe])},onLeaveCancelled(oe){ee(oe),wo(D,[oe])}})}function Lk(e){if(e==null)return null;if(bi(e))return[af(e.enter),af(e.leave)];{const t=af(e);return[t,t]}}function af(e){return ad(e)}function Ds(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.add(i)),(e[Fa]||(e[Fa]=new Set)).add(t)}function $r(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const i=e[Fa];i&&(i.delete(t),i.size||(e[Fa]=void 0))}function kv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Mk=0;function Tv(e,t,i,n){const o=e._endId=++Mk,l=()=>{o===e._endId&&n()};if(i!=null)return setTimeout(l,i);const{type:c,timeout:d,propCount:p}=Lw(e,t);if(!c)return n();const m=c+"end";let v=0;const y=()=>{e.removeEventListener(m,_),l()},_=S=>{S.target===e&&++v>=p&&y()};setTimeout(()=>{v(i[T]||"").split(", "),o=n(`${Or}Delay`),l=n(`${Or}Duration`),c=Iv(o,l),d=n(`${xl}Delay`),p=n(`${xl}Duration`),m=Iv(d,p);let v=null,y=0,_=0;t===Or?c>0&&(v=Or,y=c,_=l.length):t===xl?m>0&&(v=xl,y=m,_=p.length):(y=Math.max(c,m),v=y>0?c>m?Or:xl:null,_=v?v===Or?l.length:p.length:0);const S=v===Or&&/\b(transform|all)(,|$)/.test(n(`${Or}Property`).toString());return{type:v,timeout:y,propCount:_,hasTransform:S}}function Iv(e,t){for(;e.lengthOv(i)+Ov(e[n])))}function Ov(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function vp(){return document.body.offsetHeight}function Nk(e,t,i){const n=e[Fa];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}const bd=Symbol("_vod"),Mw=Symbol("_vsh"),Ea={beforeMount(e,{value:t},{transition:i}){e[bd]=e.style.display==="none"?"":e.style.display,i&&t?i.beforeEnter(e):wl(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),wl(e,!0),n.enter(e)):n.leave(e,()=>{wl(e,!1)}):wl(e,t))},beforeUnmount(e,{value:t}){wl(e,t)}};function wl(e,t){e.style.display=t?e[bd]:"none",e[Mw]=!t}function Rk(){Ea.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Nw=Symbol("");function Dk(e){const t=Xi();if(!t)return;const i=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(l=>yd(l,o))},n=()=>{const o=e(t.proxy);t.ce?yd(t.ce,o):bp(t.subTree,o),i(o)};$g(()=>{hc(n)}),Rt(()=>{ft(n,Yn,{flush:"post"});const o=new MutationObserver(n);o.observe(t.subTree.el.parentNode,{childList:!0}),ds(()=>o.disconnect())})}function bp(e,t){if(e.shapeFlag&128){const i=e.suspense;e=i.activeBranch,i.pendingBranch&&!i.isHydrating&&i.effects.push(()=>{bp(i.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)yd(e.el,t);else if(e.type===lt)e.children.forEach(i=>bp(i,t));else if(e.type===Do){let{el:i,anchor:n}=e;for(;i&&(yd(i,t),i!==n);)i=i.nextSibling}}function yd(e,t){if(e.nodeType===1){const i=e.style;let n="";for(const o in t)i.setProperty(`--${o}`,t[o]),n+=`--${o}: ${t[o]};`;i[Nw]=n}}const $k=/(^|;)\s*display\s*:/;function Fk(e,t,i){const n=e.style,o=pi(i);let l=!1;if(i&&!o){if(t)if(pi(t))for(const c of t.split(";")){const d=c.slice(0,c.indexOf(":")).trim();i[d]==null&&zu(n,d,"")}else for(const c in t)i[c]==null&&zu(n,c,"");for(const c in i)c==="display"&&(l=!0),zu(n,c,i[c])}else if(o){if(t!==i){const c=n[Nw];c&&(i+=";"+c),n.cssText=i,l=$k.test(i)}}else t&&e.removeAttribute("style");bd in e&&(e[bd]=l?n.display:"",e[Mw]&&(n.display="none"))}const Pv=/\s*!important$/;function zu(e,t,i){if(kt(i))i.forEach(n=>zu(e,t,n));else if(i==null&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const n=Vk(e,t);Pv.test(i)?e.setProperty(An(n),i.replace(Pv,""),"important"):e[n]=i}}const Lv=["Webkit","Moz","ms"],lf={};function Vk(e,t){const i=lf[t];if(i)return i;let n=ln(t);if(n!=="filter"&&n in e)return lf[t]=n;n=Pc(n);for(let o=0;ocf||(Wk.then(()=>cf=0),cf=Date.now());function Yk(e,t){const i=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=i.attached)return;rs(Uk(n,i.value),t,5,[n])};return i.value=e,i.attached=jk(),i}function Uk(e,t){if(kt(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const Fv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gk=(e,t,i,n,o,l)=>{const c=o==="svg";t==="class"?Nk(e,n,c):t==="style"?Fk(e,i,n):Oc(t)?mg(t)||Hk(e,t,i,n,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Xk(e,t,n,c))?(Rv(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Nv(e,t,n,c,l,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!pi(n))?Rv(e,ln(t),n,l,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Nv(e,t,n,c))};function Xk(e,t,i,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fv(t)&&Vt(i));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Fv(t)&&pi(i)?!1:t in e}const Vv={};/*! #__NO_SIDE_EFFECTS__ */function Rw(e,t,i){const n=ot(e,t);Gd(n)&&wi(n,t);class o extends dh{constructor(c){super(n,c,i)}}return o.def=n,o}/*! #__NO_SIDE_EFFECTS__ */const Kk=(e,t)=>Rw(e,t,Uw),qk=typeof HTMLElement<"u"?HTMLElement:class{};class dh extends qk{constructor(t,i={},n=wd){super(),this._def=t,this._props=i,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==wd?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof dh){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,Ft(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n{for(const o of n)this._setAttr(o.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(n,o=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:l,styles:c}=n;let d;if(l&&!kt(l))for(const p in l){const m=l[p];(m===Number||m&&m.type===Number)&&(p in this._props&&(this._props[p]=ad(this._props[p])),(d||(d=Object.create(null)))[ln(p)]=!0)}this._numberProps=d,o&&this._resolveProps(n),this.shadowRoot&&this._applyStyles(c),this._mount(n)},i=this._def.__asyncLoader;i?this._pendingResolve=i().then(n=>t(this._def=n,!0)):t(this._def)}_mount(t){this._app=this._createApp(t),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const i=this._instance&&this._instance.exposed;if(i)for(const n in i)di(this,n)||Object.defineProperty(this,n,{get:()=>Ue(i[n])})}_resolveProps(t){const{props:i}=t,n=kt(i)?i:Object.keys(i||{});for(const o of Object.keys(this))o[0]!=="_"&&n.includes(o)&&this._setProp(o,this[o]);for(const o of n.map(ln))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(l){this._setProp(o,l,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const i=this.hasAttribute(t);let n=i?this.getAttribute(t):Vv;const o=ln(t);i&&this._numberProps&&this._numberProps[o]&&(n=ad(n)),this._setProp(o,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,i,n=!0,o=!1){if(i!==this._props[t]&&(i===Vv?delete this._props[t]:(this._props[t]=i,t==="key"&&this._app&&(this._app._ceVNode.key=i)),o&&this._instance&&this._update(),n)){const l=this._ob;l&&l.disconnect(),i===!0?this.setAttribute(An(t),""):typeof i=="string"||typeof i=="number"?this.setAttribute(An(t),i+""):i||this.removeAttribute(An(t)),l&&l.observe(this,{attributes:!0})}}_update(){Yw(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const i=$e(this._def,wi(t,this._props));return this._instance||(i.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const o=(l,c)=>{this.dispatchEvent(new CustomEvent(l,Gd(c[0])?wi({detail:c},c[0]):{detail:c}))};n.emit=(l,...c)=>{o(l,c),An(l)!==l&&o(An(l),c)},this._setParent()}),i}_applyStyles(t,i){if(!t)return;if(i){if(i===this._def||this._styleChildren.has(i))return;this._styleChildren.add(i)}const n=this._nonce;for(let o=t.length-1;o>=0;o--){const l=document.createElement("style");n&&l.setAttribute("nonce",n),l.textContent=t[o],this.shadowRoot.prepend(l)}}_parseSlots(){const t=this._slots={};let i;for(;i=this.firstChild;){const n=i.nodeType===1&&i.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(i),this.removeChild(i)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),i=this._instance.type.__scopeId;for(let n=0;n(delete e.props.mode,e),eT=Qk({name:"TransitionGroup",props:wi({},Ow,{tag:String,moveClass:String}),setup(e,{slots:t}){const i=Xi(),n=Ng();let o,l;return Nc(()=>{if(!o.length)return;const c=e.moveClass||`${e.name||"v"}-move`;if(!rT(o[0].el,i.vnode.el,c))return;o.forEach(iT),o.forEach(nT);const d=o.filter(sT);vp(),d.forEach(p=>{const m=p.el,v=m.style;Ds(m,c),v.transform=v.webkitTransform=v.transitionDuration="";const y=m[xd]=_=>{_&&_.target!==m||(!_||/transform$/.test(_.propertyName))&&(m.removeEventListener("transitionend",y),m[xd]=null,$r(m,c))};m.addEventListener("transitionend",y)})}),()=>{const c=si(e),d=Pw(c);let p=c.tag||lt;if(o=[],l)for(let m=0;m{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}=Lw(n);return l.removeChild(n),c}const to=e=>{const t=e.props["onUpdate:modelValue"]||!1;return kt(t)?i=>Pa(t,i):t};function oT(e){e.target.composing=!0}function Hv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ts=Symbol("_assign"),yi={created(e,{modifiers:{lazy:t,trim:i,number:n}},o){e[ts]=to(o);const l=n||o.props&&o.props.type==="number";cr(e,t?"change":"input",c=>{if(c.target.composing)return;let d=e.value;i&&(d=d.trim()),l&&(d=od(d)),e[ts](d)}),i&&cr(e,"change",()=>{e.value=e.value.trim()}),t||(cr(e,"compositionstart",oT),cr(e,"compositionend",Hv),cr(e,"change",Hv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:i,modifiers:{lazy:n,trim:o,number:l}},c){if(e[ts]=to(c),e.composing)return;const d=(l||e.type==="number")&&!/^0\d/.test(e.value)?od(e.value):e.value,p=t??"";d!==p&&(document.activeElement===e&&e.type!=="range"&&(n&&t===i||o&&e.value.trim()===p)||(e.value=p))}},is={deep:!0,created(e,t,i){e[ts]=to(i),cr(e,"change",()=>{const n=e._modelValue,o=Va(e),l=e.checked,c=e[ts];if(kt(n)){const d=qd(n,o),p=d!==-1;if(l&&!p)c(n.concat(o));else if(!l&&p){const m=[...n];m.splice(d,1),c(m)}}else if(qo(n)){const d=new Set(n);l?d.add(o):d.delete(o),c(d)}else c(Vw(e,l))})},mounted:Bv,beforeUpdate(e,t,i){e[ts]=to(i),Bv(e,t,i)}};function Bv(e,{value:t,oldValue:i},n){e._modelValue=t;let o;if(kt(t))o=qd(t,n.props.value)>-1;else if(qo(t))o=t.has(n.props.value);else{if(t===i)return;o=Jr(t,Vw(e,!0))}e.checked!==o&&(e.checked=o)}const Yg={created(e,{value:t},i){e.checked=Jr(t,i.props.value),e[ts]=to(i),cr(e,"change",()=>{e[ts](Va(e))})},beforeUpdate(e,{value:t,oldValue:i},n){e[ts]=to(n),t!==i&&(e.checked=Jr(t,n.props.value))}},ol={deep:!0,created(e,{value:t,modifiers:{number:i}},n){const o=qo(t);cr(e,"change",()=>{const l=Array.prototype.filter.call(e.options,c=>c.selected).map(c=>i?od(Va(c)):Va(c));e[ts](e.multiple?o?new Set(l):l:l[0]),e._assigning=!0,Ft(()=>{e._assigning=!1})}),e[ts]=to(n)},mounted(e,{value:t}){Wv(e,t)},beforeUpdate(e,t,i){e[ts]=to(i)},updated(e,{value:t}){e._assigning||Wv(e,t)}};function Wv(e,t){const i=e.multiple,n=kt(t);if(!(i&&!n&&!qo(t))){for(let o=0,l=e.options.length;oString(m)===String(d)):c.selected=qd(t,d)>-1}else c.selected=t.has(d);else if(Jr(Va(c),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!i&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Va(e){return"_value"in e?e._value:e.value}function Vw(e,t){const i=t?"_trueValue":"_falseValue";return i in e?e[i]:t}const zw={created(e,t,i){hu(e,t,i,null,"created")},mounted(e,t,i){hu(e,t,i,null,"mounted")},beforeUpdate(e,t,i,n){hu(e,t,i,n,"beforeUpdate")},updated(e,t,i,n){hu(e,t,i,n,"updated")}};function Hw(e,t){switch(e){case"SELECT":return ol;case"TEXTAREA":return yi;default:switch(t){case"checkbox":return is;case"radio":return Yg;default:return yi}}}function hu(e,t,i,n,o){const c=Hw(e.tagName,i.props&&i.props.type)[o];c&&c(e,t,i,n)}function aT(){yi.getSSRProps=({value:e})=>({value:e}),Yg.getSSRProps=({value:e},t)=>{if(t.props&&Jr(t.props.value,e))return{checked:!0}},is.getSSRProps=({value:e},t)=>{if(kt(e)){if(t.props&&qd(e,t.props.value)>-1)return{checked:!0}}else if(qo(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},zw.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const i=Hw(t.type.toUpperCase(),t.props&&t.props.type);if(i.getSSRProps)return i.getSSRProps(e,t)}}const lT=["ctrl","shift","alt","meta"],cT={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)=>lT.some(i=>e[`${i}Key`]&&!t.includes(i))},li=(e,t)=>{const i=e._withMods||(e._withMods={}),n=t.join(".");return i[n]||(i[n]=(o,...l)=>{for(let c=0;c{const i=e._withKeys||(e._withKeys={}),n=t.join(".");return i[n]||(i[n]=o=>{if(!("key"in o))return;const l=An(o.key);if(t.some(c=>c===l||uT[c]===l))return e(o)})},Bw=wi({patchProp:Gk},Ok);let Ul,jv=!1;function Ww(){return Ul||(Ul=sw(Bw))}function jw(){return Ul=jv?Ul:rw(Bw),jv=!0,Ul}const Yw=(...e)=>{Ww().render(...e)},dT=(...e)=>{jw().hydrate(...e)},wd=(...e)=>{const t=Ww().createApp(...e),{mount:i}=t;return t.mount=n=>{const o=Xw(n);if(!o)return;const l=t._component;!Vt(l)&&!l.render&&!l.template&&(l.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const c=i(o,!1,Gw(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),c},t},Uw=(...e)=>{const t=jw().createApp(...e),{mount:i}=t;return t.mount=n=>{const o=Xw(n);if(o)return i(o,!0,Gw(o))},t};function Gw(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Xw(e){return pi(e)?document.querySelector(e):e}let Yv=!1;const hT=()=>{Yv||(Yv=!0,aT(),Rk())};/** +* vue v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const fT=()=>{},pT=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:P0,BaseTransitionPropsValidators:Rg,Comment:Gi,DeprecationTypes:kk,EffectScope:_g,ErrorCodes:zC,ErrorTypeStrings:xk,Fragment:lt,KeepAlive:dA,ReactiveEffect:cc,Static:Do,Suspense:QA,Teleport:YC,Text:gr,TrackOpTypes:IC,Transition:va,TransitionGroup:tT,TriggerOpTypes:OC,VueElement:dh,assertNumber:VC,callWithAsyncErrorHandling:rs,callWithErrorHandling:Zo,camelize:ln,capitalize:Pc,cloneVNode:Us,compatUtils:Ak,compile:fT,computed:Ee,createApp:wd,createBlock:ct,createCommentVNode:Me,createElementBlock:G,createElementVNode:z,createHydrationRenderer:rw,createPropsRestProxy:kA,createRenderer:sw,createSSRApp:Uw,createSlots:pA,createStaticVNode:ak,createTextVNode:Gt,createVNode:$e,customRef:v0,defineAsyncComponent:cA,defineComponent:ot,defineCustomElement:Rw,defineEmits:vA,defineExpose:bA,defineModel:wA,defineOptions:yA,defineProps:mA,defineSSRCustomElement:Kk,defineSlots:xA,devtools:wk,effect:QE,effectScope:Zd,getCurrentInstance:Xi,getCurrentScope:Jd,getCurrentWatcher:PC,getTransitionRawChildren:rh,guardReactiveProps:uh,h:co,handleError:Jo,hasInjectionContext:X0,hydrate:dT,hydrateOnIdle:nA,hydrateOnInteraction:aA,hydrateOnMediaQuery:oA,hydrateOnVisible:rA,initCustomFormatter:vk,initDirectivesForSSR:hT,inject:vn,isMemoSame:Aw,isProxy:nh,isReactive:fr,isReadonly:Qr,isRef:Ti,isRuntimeOnly:hk,isShallow:Un,isVNode:wr,markRaw:Lc,mergeDefaults:CA,mergeModels:AA,mergeProps:Dc,nextTick:Ft,normalizeClass:mt,normalizeProps:xg,normalizeStyle:Ct,onActivated:R0,onBeforeMount:ah,onBeforeUnmount:rl,onBeforeUpdate:$g,onDeactivated:D0,onErrorCaptured:H0,onMounted:Rt,onRenderTracked:z0,onRenderTriggered:V0,onScopeDispose:Sg,onServerPrefetch:F0,onUnmounted:ds,onUpdated:Nc,onWatcherCleanup:y0,openBlock:B,popScopeId:Lg,provide:pr,proxyRefs:Ig,pushScopeId:Pg,queuePostFlushCb:hc,reactive:ti,readonly:Tg,ref:Ae,registerRuntimeCompiler:dk,render:Yw,renderList:Ot,renderSlot:xi,resolveComponent:eo,resolveDirective:W0,resolveDynamicComponent:sp,resolveFilter:Ck,resolveTransitionHooks:Da,setBlockTracking:dp,setDevtoolsHook:_k,setTransitionHooks:xr,shallowReactive:kg,shallowReadonly:yC,shallowRef:on,ssrContextKey:cw,ssrUtils:Ek,stop:eC,toDisplayString:Ne,toHandlerKey:zl,toHandlers:j0,toRaw:si,toRef:AC,toRefs:Ss,toValue:wC,transformVNodeArgs:rk,triggerRef:rr,unref:Ue,useAttrs:EA,useCssModule:Jk,useCssVars:Dk,useHost:Dw,useId:GC,useModel:UA,useSSRContext:uw,useShadowRoot:Zk,useSlots:SA,useTemplateRef:XC,useTransitionState:Ng,vModelCheckbox:is,vModelDynamic:zw,vModelRadio:Yg,vModelSelect:ol,vModelText:yi,vShow:Ea,version:kw,warn:yk,watch:ft,watchEffect:WA,watchPostEffect:jA,watchSyncEffect:dw,withAsyncContext:TA,withCtx:dt,withDefaults:_A,withDirectives:Kt,withKeys:hi,withMemo:bk,withModifiers:li,withScopeId:Mg},Symbol.toStringTag,{value:"Module"}));var gT=!1;/*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let Kw;const hh=e=>Kw=e,qw=Symbol();function yp(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Gl;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Gl||(Gl={}));function mT(){const e=Zd(!0),t=e.run(()=>Ae({}));let i=[],n=[];const o=Lc({install(l){hh(o),o._a=l,l.provide(qw,o),l.config.globalProperties.$pinia=o,n.forEach(c=>i.push(c)),n=[]},use(l){return!this._a&&!gT?n.push(l):i.push(l),this},_p:i,_a:null,_e:e,_s:new Map,state:t});return o}const Zw=()=>{};function Uv(e,t,i,n=Zw){e.push(t);const o=()=>{const l=e.indexOf(t);l>-1&&(e.splice(l,1),n())};return!i&&Jd()&&Sg(o),o}function la(e,...t){e.slice().forEach(i=>{i(...t)})}const vT=e=>e();function xp(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],o=e[i];yp(o)&&yp(n)&&e.hasOwnProperty(i)&&!Ti(n)&&!fr(n)?e[i]=xp(o,n):e[i]=n}return e}const bT=Symbol();function yT(e){return!yp(e)||!e.hasOwnProperty(bT)}const{assign:Fr}=Object;function xT(e){return!!(Ti(e)&&e.effect)}function wT(e,t,i,n){const{state:o,actions:l,getters:c}=t,d=i.state.value[e];let p;function m(){d||(i.state.value[e]=o?o():{});const v=Ss(i.state.value[e]);return Fr(v,l,Object.keys(c||{}).reduce((y,_)=>(y[_]=Lc(Ee(()=>{hh(i);const S=i._s.get(e);return c[_].call(S,S)})),y),{}))}return p=Jw(e,m,t,i,n,!0),p}function Jw(e,t,i={},n,o,l){let c;const d=Fr({actions:{}},i),p={deep:!0};let m,v,y=[],_=[],S;const T=n.state.value[e];!l&&!T&&(n.state.value[e]={}),Ae({});let C;function O(te){let Y;m=v=!1,typeof te=="function"?(te(n.state.value[e]),Y={type:Gl.patchFunction,storeId:e,events:S}):(xp(n.state.value[e],te),Y={type:Gl.patchObject,payload:te,storeId:e,events:S});const ee=C=Symbol();Ft().then(()=>{C===ee&&(m=!0)}),v=!0,la(y,Y,n.state.value[e])}const P=l?function(){const{state:Y}=i,ee=Y?Y():{};this.$patch(le=>{Fr(le,ee)})}:Zw;function I(){c.stop(),y=[],_=[],n._s.delete(e)}function N(te,Y){return function(){hh(n);const ee=Array.from(arguments),le=[],oe=[];function pe(ue){le.push(ue)}function ge(ue){oe.push(ue)}la(_,{args:ee,name:te,store:D,after:pe,onError:ge});let Ce;try{Ce=Y.apply(this&&this.$id===e?this:D,ee)}catch(ue){throw la(oe,ue),ue}return Ce instanceof Promise?Ce.then(ue=>(la(le,ue),ue)).catch(ue=>(la(oe,ue),Promise.reject(ue))):(la(le,Ce),Ce)}}const M={_p:n,$id:e,$onAction:Uv.bind(null,_),$patch:O,$reset:P,$subscribe(te,Y={}){const ee=Uv(y,te,Y.detached,()=>le()),le=c.run(()=>ft(()=>n.state.value[e],oe=>{(Y.flush==="sync"?v:m)&&te({storeId:e,type:Gl.direct,events:S},oe)},Fr({},p,Y)));return ee},$dispose:I},D=ti(M);n._s.set(e,D);const Z=(n._a&&n._a.runWithContext||vT)(()=>n._e.run(()=>(c=Zd()).run(t)));for(const te in Z){const Y=Z[te];if(Ti(Y)&&!xT(Y)||fr(Y))l||(T&&yT(Y)&&(Ti(Y)?Y.value=T[te]:xp(Y,T[te])),n.state.value[e][te]=Y);else if(typeof Y=="function"){const ee=N(te,Y);Z[te]=ee,d.actions[te]=Y}}return Fr(D,Z),Fr(si(D),Z),Object.defineProperty(D,"$state",{get:()=>n.state.value[e],set:te=>{O(Y=>{Fr(Y,te)})}}),n._p.forEach(te=>{Fr(D,c.run(()=>te({store:D,app:n._a,pinia:n,options:d})))}),T&&l&&i.hydrate&&i.hydrate(D.$state,T),m=!0,v=!0,D}function Fc(e,t,i){let n,o;const l=typeof t=="function";typeof e=="string"?(n=e,o=l?i:t):(o=e,n=e.id);function c(d,p){const m=X0();return d=d||(m?vn(qw,null):null),d&&hh(d),d=Kw,d._s.has(n)||(l?Jw(n,t,o,d):wT(n,o,d)),d._s.get(n)}return c.$id=n,c}const _T={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..."},projects:{create:"Créer un nouveau projet",create_details:"Créer un nouveau projet panoptic dans un dossier.",create_button:"Créer",import:"Importer un projet",import_details:"Choisissez un dossier Panoptic existant.",import_button:"Importer"}},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:"Mode images uniques",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",close_project:"Retour a la liste des projets"},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"}},ST={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:"Text",text_tooltip:"Du texte, ex: le contenu d'un tweet, la description d'une image",number:"Number",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",fusion:{title:"Mode de fusion: ",tooltip:"Si la propriété est déjà renseignée pour une instance, quel doit être le comportement pour gérer les valeurs ?",first:"Remplacer première",first_tooltip:"Ecraser les données de la plus ancienne instance enregistrée dans panoptic, et remplacer ses données par celles renseignées dans le csv",last:"Remplacer dernière",last_tooltip:"Ecraser les données de la plus récente instance enregistrée dans panoptic, et remplacer ses données par celles renseignées dans le csv",new:"Créer nouvelle",new_tooltip:"On écrase aucune donnée et on créé de nouvelles instances qui s'ajouteront à celles existantes",all:"Remplacer toutes",all_tooltip:"On écrase toutes les instances actuelles pour en créer seulement avec les valeurs renseignées dans le csv",path:"Chemin relatif ? ",path_tooltip:"Est ce que le chemin renseigné dans le csv pour identifier les images est relatif par rapport au dossier importé dans panoptic, ou absolu (depuis la racine du disque dur) ?"},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"},not_found:"Ligne(s) ne correspondent a aucune instance d'image dans la DB. Veuillez confirmer l'import afin de continuer.",row:"Ligne",key:"Identifiant"},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"},notif:{icon:"Ouvrir le centre de Notification",debug_icon:"Afficher/Cacher notifications: Debug",info_icon:"Afficher/Cacher notifications: Info",warning_icon:"Afficher/Cacher notifications: Alerte",error_icon:"Afficher/Cacher notifications: Erreur",read_icon:"Afficher/Cacher notifications lus"}},ET={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"},CT={find_similar:"Similaire",group:"Créer des clusters",execute:"Executer",filter:"Filtrer",action_images:"Action Images",action_group:"Action Groupes",import:"Importer",export:"Exporter"},AT="Tooltip to be written",kT={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"}},TT={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"},IT={cancel:"Annuler",submit:"Confirmer",valid:"Valide",invalid:"Invalide",correct:"Correction"},OT={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é"}},PT="Vide...",LT="Installation...",MT="Installé",NT="Confirmer",RT="Annuler",DT={main:_T,modals:ST,tutorial:ET,action:CT,tmp:AT,dropdown:kT,btn:TT,datepicker:IT,common:OT,none:PT,installing:LT,installed:MT,confirm:NT,cancel:RT},$T={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..."},projects:{create:"Create new project",create_details:"Create a new panoptic project in a folder.",create_button:"Create",import:"Import project",import_details:"Choose an existing Panoptic folder.",import_button:"Import"}},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"}},FT={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"},fusion:{title:"Fusion mode:",tooltip:"If the property is already set for an instance, how should the new data be added ? ",first:"Replace first",first_tooltip:"Override data of the oldest instance of the panoptic database with the data of the csv file",last:"Replace last",last_tooltip:"Override data of the newest instance of the panoptic database with the data of the csv file",new:"Create new",new_tooltip:"No data override, new instances will be created in the database",all:"Replace all",all_tooltip:"Replace all existing instances with new ones created from the data of the csv file",path:"Relative path ? ",path_tooltip:"Is the path used in the csv to identify the images is relative to the imported folder or absolute (from the root of the harddrive) ? "}},first:{introduction:"Welcome to Panoptic, a program that lets you explore large corpora of images by manipulating them through their properties and using machine learning tools. The latter are not installed as standard, to limit the size of Panoptic should they not be of interest to you. However, it is recommended that you install them to benefit from Panoptic's full functionalities.",install_ml:"Install Similarity Plugin"}},VT={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"},zT={find_similar:"Similar",group:"Create Clusters",filter:"Filter",action_images:"Image Actions",action_group:"Group Actions",import:"Import",export:"Export",execute:"Run"},HT={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"}},BT={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"},WT={cancel:"Cancel",submit:"Submit",valid:"Valid",invalid:"Invalid",correct:"Rectify"},jT="Empty...",YT="Tooltip to be written",UT={properties:{panoptic:"Panoptic properties",instance:"Instance properties",instances:"All instances properties",image:"Image properties",delete:"Do you really want to delete property"}},GT="Installing",XT="Installed",KT={main:$T,modals:FT,tutorial:VT,action:zT,dropdown:HT,btn:BT,datepicker:WT,none:jT,tmp:YT,common:UT,installing:GT,installed:XT},qT={fr:DT,en:KT};/*! + * shared v9.14.2 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */const _d=typeof window<"u",uo=(e,t=!1)=>t?Symbol.for(e):Symbol(e),ZT=(e,t,i)=>JT({l:e,k:t,s:i}),JT=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Wi=e=>typeof e=="number"&&isFinite(e),QT=e=>e1(e)==="[object Date]",io=e=>e1(e)==="[object RegExp]",fh=e=>Yt(e)&&Object.keys(e).length===0,cn=Object.assign,eI=Object.create,vi=(e=null)=>eI(e);let Gv;const ur=()=>Gv||(Gv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:vi());function Xv(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const tI=Object.prototype.hasOwnProperty;function Es(e,t){return tI.call(e,t)}const ki=Array.isArray,Ci=e=>typeof e=="function",_t=e=>typeof e=="string",ni=e=>typeof e=="boolean",ui=e=>e!==null&&typeof e=="object",iI=e=>ui(e)&&Ci(e.then)&&Ci(e.catch),Qw=Object.prototype.toString,e1=e=>Qw.call(e),Yt=e=>{if(!ui(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},nI=e=>e==null?"":ki(e)||Yt(e)&&e.toString===Qw?JSON.stringify(e,null,2):String(e);function sI(e,t=""){return e.reduce((i,n,o)=>o===0?i+n:i+t+n,"")}function ph(e){let t=e;return()=>++t}function rI(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const fu=e=>!ui(e)||ki(e);function Hu(e,t){if(fu(e)||fu(t))throw new Error("Invalid value");const i=[{src:e,des:t}];for(;i.length;){const{src:n,des:o}=i.pop();Object.keys(n).forEach(l=>{l!=="__proto__"&&(ui(n[l])&&!ui(o[l])&&(o[l]=Array.isArray(n[l])?[]:vi()),fu(o[l])||fu(n[l])?o[l]=n[l]:i.push({src:n[l],des:o[l]}))})}}/*! + * message-compiler v9.14.2 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function oI(e,t,i){return{line:e,column:t,offset:i}}function Sd(e,t,i){const n={start:e,end:t};return i!=null&&(n.source=i),n}const aI=/\{([0-9a-zA-Z]+)\}/g;function t1(e,...t){return t.length===1&&lI(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(aI,(i,n)=>t.hasOwnProperty(n)?t[n]:"")}const i1=Object.assign,Kv=e=>typeof e=="string",lI=e=>e!==null&&typeof e=="object";function n1(e,t=""){return e.reduce((i,n,o)=>o===0?i+n:i+t+n,"")}const Ug={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},cI={[Ug.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function uI(e,t,...i){const n=t1(cI[e]||"",...i||[]),o={message:String(n),code:e};return t&&(o.location=t),o}const Ht={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},dI={[Ht.EXPECTED_TOKEN]:"Expected token: '{0}'",[Ht.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Ht.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Ht.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Ht.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Ht.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Ht.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Ht.EMPTY_PLACEHOLDER]:"Empty placeholder",[Ht.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Ht.INVALID_LINKED_FORMAT]:"Invalid linked format",[Ht.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Ht.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Ht.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Ht.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Ht.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Ht.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function al(e,t,i={}){const{domain:n,messages:o,args:l}=i,c=t1((o||dI)[e]||"",...l||[]),d=new SyntaxError(String(c));return d.code=e,t&&(d.location=t),d.domain=n,d}function hI(e){throw e}const Qs=" ",fI="\r",wn=` +`,pI=String.fromCharCode(8232),gI=String.fromCharCode(8233);function mI(e){const t=e;let i=0,n=1,o=1,l=0;const c=Z=>t[Z]===fI&&t[Z+1]===wn,d=Z=>t[Z]===wn,p=Z=>t[Z]===gI,m=Z=>t[Z]===pI,v=Z=>c(Z)||d(Z)||p(Z)||m(Z),y=()=>i,_=()=>n,S=()=>o,T=()=>l,C=Z=>c(Z)||p(Z)||m(Z)?wn:t[Z],O=()=>C(i),P=()=>C(i+l);function I(){return l=0,v(i)&&(n++,o=0),c(i)&&i++,i++,o++,t[i]}function N(){return c(i+l)&&l++,l++,t[i+l]}function M(){i=0,n=1,o=1,l=0}function D(Z=0){l=Z}function H(){const Z=i+l;for(;Z!==i;)I();l=0}return{index:y,line:_,column:S,peekOffset:T,charAt:C,currentChar:O,currentPeek:P,next:I,peek:N,reset:M,resetPeek:D,skipToPeek:H}}const Pr=void 0,vI=".",qv="'",bI="tokenizer";function yI(e,t={}){const i=t.location!==!1,n=mI(e),o=()=>n.index(),l=()=>oI(n.line(),n.column(),n.index()),c=l(),d=o(),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:v}=t;function y(ae,ce,ke,...et){const nt=m();if(ce.column+=ke,ce.offset+=ke,v){const tt=i?Sd(nt.startLoc,ce):null,Re=al(ae,tt,{domain:bI,args:et});v(Re)}}function _(ae,ce,ke){ae.endLoc=l(),ae.currentType=ce;const et={type:ce};return i&&(et.loc=Sd(ae.startLoc,ae.endLoc)),ke!=null&&(et.value=ke),et}const S=ae=>_(ae,14);function T(ae,ce){return ae.currentChar()===ce?(ae.next(),ce):(y(Ht.EXPECTED_TOKEN,l(),0,ce),"")}function C(ae){let ce="";for(;ae.currentPeek()===Qs||ae.currentPeek()===wn;)ce+=ae.currentPeek(),ae.peek();return ce}function O(ae){const ce=C(ae);return ae.skipToPeek(),ce}function P(ae){if(ae===Pr)return!1;const ce=ae.charCodeAt(0);return ce>=97&&ce<=122||ce>=65&&ce<=90||ce===95}function I(ae){if(ae===Pr)return!1;const ce=ae.charCodeAt(0);return ce>=48&&ce<=57}function N(ae,ce){const{currentType:ke}=ce;if(ke!==2)return!1;C(ae);const et=P(ae.currentPeek());return ae.resetPeek(),et}function M(ae,ce){const{currentType:ke}=ce;if(ke!==2)return!1;C(ae);const et=ae.currentPeek()==="-"?ae.peek():ae.currentPeek(),nt=I(et);return ae.resetPeek(),nt}function D(ae,ce){const{currentType:ke}=ce;if(ke!==2)return!1;C(ae);const et=ae.currentPeek()===qv;return ae.resetPeek(),et}function H(ae,ce){const{currentType:ke}=ce;if(ke!==8)return!1;C(ae);const et=ae.currentPeek()===".";return ae.resetPeek(),et}function Z(ae,ce){const{currentType:ke}=ce;if(ke!==9)return!1;C(ae);const et=P(ae.currentPeek());return ae.resetPeek(),et}function te(ae,ce){const{currentType:ke}=ce;if(!(ke===8||ke===12))return!1;C(ae);const et=ae.currentPeek()===":";return ae.resetPeek(),et}function Y(ae,ce){const{currentType:ke}=ce;if(ke!==10)return!1;const et=()=>{const tt=ae.currentPeek();return tt==="{"?P(ae.peek()):tt==="@"||tt==="%"||tt==="|"||tt===":"||tt==="."||tt===Qs||!tt?!1:tt===wn?(ae.peek(),et()):oe(ae,!1)},nt=et();return ae.resetPeek(),nt}function ee(ae){C(ae);const ce=ae.currentPeek()==="|";return ae.resetPeek(),ce}function le(ae){const ce=C(ae),ke=ae.currentPeek()==="%"&&ae.peek()==="{";return ae.resetPeek(),{isModulo:ke,hasSpace:ce.length>0}}function oe(ae,ce=!0){const ke=(nt=!1,tt="",Re=!1)=>{const Ye=ae.currentPeek();return Ye==="{"?tt==="%"?!1:nt:Ye==="@"||!Ye?tt==="%"?!0:nt:Ye==="%"?(ae.peek(),ke(nt,"%",!0)):Ye==="|"?tt==="%"||Re?!0:!(tt===Qs||tt===wn):Ye===Qs?(ae.peek(),ke(!0,Qs,Re)):Ye===wn?(ae.peek(),ke(!0,wn,Re)):!0},et=ke();return ce&&ae.resetPeek(),et}function pe(ae,ce){const ke=ae.currentChar();return ke===Pr?Pr:ce(ke)?(ae.next(),ke):null}function ge(ae){const ce=ae.charCodeAt(0);return ce>=97&&ce<=122||ce>=65&&ce<=90||ce>=48&&ce<=57||ce===95||ce===36}function Ce(ae){return pe(ae,ge)}function ue(ae){const ce=ae.charCodeAt(0);return ce>=97&&ce<=122||ce>=65&&ce<=90||ce>=48&&ce<=57||ce===95||ce===36||ce===45}function ie(ae){return pe(ae,ue)}function X(ae){const ce=ae.charCodeAt(0);return ce>=48&&ce<=57}function fe(ae){return pe(ae,X)}function me(ae){const ce=ae.charCodeAt(0);return ce>=48&&ce<=57||ce>=65&&ce<=70||ce>=97&&ce<=102}function de(ae){return pe(ae,me)}function ye(ae){let ce="",ke="";for(;ce=fe(ae);)ke+=ce;return ke}function ze(ae){O(ae);const ce=ae.currentChar();return ce!=="%"&&y(Ht.EXPECTED_TOKEN,l(),0,ce),ae.next(),"%"}function st(ae){let ce="";for(;;){const ke=ae.currentChar();if(ke==="{"||ke==="}"||ke==="@"||ke==="|"||!ke)break;if(ke==="%")if(oe(ae))ce+=ke,ae.next();else break;else if(ke===Qs||ke===wn)if(oe(ae))ce+=ke,ae.next();else{if(ee(ae))break;ce+=ke,ae.next()}else ce+=ke,ae.next()}return ce}function Oe(ae){O(ae);let ce="",ke="";for(;ce=ie(ae);)ke+=ce;return ae.currentChar()===Pr&&y(Ht.UNTERMINATED_CLOSING_BRACE,l(),0),ke}function Pe(ae){O(ae);let ce="";return ae.currentChar()==="-"?(ae.next(),ce+=`-${ye(ae)}`):ce+=ye(ae),ae.currentChar()===Pr&&y(Ht.UNTERMINATED_CLOSING_BRACE,l(),0),ce}function we(ae){return ae!==qv&&ae!==wn}function De(ae){O(ae),T(ae,"'");let ce="",ke="";for(;ce=pe(ae,we);)ce==="\\"?ke+=Se(ae):ke+=ce;const et=ae.currentChar();return et===wn||et===Pr?(y(Ht.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,l(),0),et===wn&&(ae.next(),T(ae,"'")),ke):(T(ae,"'"),ke)}function Se(ae){const ce=ae.currentChar();switch(ce){case"\\":case"'":return ae.next(),`\\${ce}`;case"u":return Ie(ae,ce,4);case"U":return Ie(ae,ce,6);default:return y(Ht.UNKNOWN_ESCAPE_SEQUENCE,l(),0,ce),""}}function Ie(ae,ce,ke){T(ae,ce);let et="";for(let nt=0;nt{const et=ae.currentChar();return et==="{"||et==="%"||et==="@"||et==="|"||et==="("||et===")"||!et||et===Qs?ke:(ke+=et,ae.next(),ce(ke))};return ce("")}function Te(ae){O(ae);const ce=T(ae,"|");return O(ae),ce}function Ke(ae,ce){let ke=null;switch(ae.currentChar()){case"{":return ce.braceNest>=1&&y(Ht.NOT_ALLOW_NEST_PLACEHOLDER,l(),0),ae.next(),ke=_(ce,2,"{"),O(ae),ce.braceNest++,ke;case"}":return ce.braceNest>0&&ce.currentType===2&&y(Ht.EMPTY_PLACEHOLDER,l(),0),ae.next(),ke=_(ce,3,"}"),ce.braceNest--,ce.braceNest>0&&O(ae),ce.inLinked&&ce.braceNest===0&&(ce.inLinked=!1),ke;case"@":return ce.braceNest>0&&y(Ht.UNTERMINATED_CLOSING_BRACE,l(),0),ke=Be(ae,ce)||S(ce),ce.braceNest=0,ke;default:{let nt=!0,tt=!0,Re=!0;if(ee(ae))return ce.braceNest>0&&y(Ht.UNTERMINATED_CLOSING_BRACE,l(),0),ke=_(ce,1,Te(ae)),ce.braceNest=0,ce.inLinked=!1,ke;if(ce.braceNest>0&&(ce.currentType===5||ce.currentType===6||ce.currentType===7))return y(Ht.UNTERMINATED_CLOSING_BRACE,l(),0),ce.braceNest=0,Qe(ae,ce);if(nt=N(ae,ce))return ke=_(ce,5,Oe(ae)),O(ae),ke;if(tt=M(ae,ce))return ke=_(ce,6,Pe(ae)),O(ae),ke;if(Re=D(ae,ce))return ke=_(ce,7,De(ae)),O(ae),ke;if(!nt&&!tt&&!Re)return ke=_(ce,13,Ge(ae)),y(Ht.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,ke.value),O(ae),ke;break}}return ke}function Be(ae,ce){const{currentType:ke}=ce;let et=null;const nt=ae.currentChar();switch((ke===8||ke===9||ke===12||ke===10)&&(nt===wn||nt===Qs)&&y(Ht.INVALID_LINKED_FORMAT,l(),0),nt){case"@":return ae.next(),et=_(ce,8,"@"),ce.inLinked=!0,et;case".":return O(ae),ae.next(),_(ce,9,".");case":":return O(ae),ae.next(),_(ce,10,":");default:return ee(ae)?(et=_(ce,1,Te(ae)),ce.braceNest=0,ce.inLinked=!1,et):H(ae,ce)||te(ae,ce)?(O(ae),Be(ae,ce)):Z(ae,ce)?(O(ae),_(ce,12,he(ae))):Y(ae,ce)?(O(ae),nt==="{"?Ke(ae,ce)||et:_(ce,11,se(ae))):(ke===8&&y(Ht.INVALID_LINKED_FORMAT,l(),0),ce.braceNest=0,ce.inLinked=!1,Qe(ae,ce))}}function Qe(ae,ce){let ke={type:14};if(ce.braceNest>0)return Ke(ae,ce)||S(ce);if(ce.inLinked)return Be(ae,ce)||S(ce);switch(ae.currentChar()){case"{":return Ke(ae,ce)||S(ce);case"}":return y(Ht.UNBALANCED_CLOSING_BRACE,l(),0),ae.next(),_(ce,3,"}");case"@":return Be(ae,ce)||S(ce);default:{if(ee(ae))return ke=_(ce,1,Te(ae)),ce.braceNest=0,ce.inLinked=!1,ke;const{isModulo:nt,hasSpace:tt}=le(ae);if(nt)return tt?_(ce,0,st(ae)):_(ce,4,ze(ae));if(oe(ae))return _(ce,0,st(ae));break}}return ke}function ht(){const{currentType:ae,offset:ce,startLoc:ke,endLoc:et}=p;return p.lastType=ae,p.lastOffset=ce,p.lastStartLoc=ke,p.lastEndLoc=et,p.offset=o(),p.startLoc=l(),n.currentChar()===Pr?_(p,14):Qe(n,p)}return{nextToken:ht,currentOffset:o,currentPosition:l,context:m}}const xI="parser",wI=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function _I(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 SI(e={}){const t=e.location!==!1,{onError:i,onWarn:n}=e;function o(N,M,D,H,...Z){const te=N.currentPosition();if(te.offset+=H,te.column+=H,i){const Y=t?Sd(D,te):null,ee=al(M,Y,{domain:xI,args:Z});i(ee)}}function l(N,M,D,H,...Z){const te=N.currentPosition();if(te.offset+=H,te.column+=H,n){const Y=t?Sd(D,te):null;n(uI(M,Y,Z))}}function c(N,M,D){const H={type:N};return t&&(H.start=M,H.end=M,H.loc={start:D,end:D}),H}function d(N,M,D,H){H&&(N.type=H),t&&(N.end=M,N.loc&&(N.loc.end=D))}function p(N,M){const D=N.context(),H=c(3,D.offset,D.startLoc);return H.value=M,d(H,N.currentOffset(),N.currentPosition()),H}function m(N,M){const D=N.context(),{lastOffset:H,lastStartLoc:Z}=D,te=c(5,H,Z);return te.index=parseInt(M,10),N.nextToken(),d(te,N.currentOffset(),N.currentPosition()),te}function v(N,M,D){const H=N.context(),{lastOffset:Z,lastStartLoc:te}=H,Y=c(4,Z,te);return Y.key=M,D===!0&&(Y.modulo=!0),N.nextToken(),d(Y,N.currentOffset(),N.currentPosition()),Y}function y(N,M){const D=N.context(),{lastOffset:H,lastStartLoc:Z}=D,te=c(9,H,Z);return te.value=M.replace(wI,_I),N.nextToken(),d(te,N.currentOffset(),N.currentPosition()),te}function _(N){const M=N.nextToken(),D=N.context(),{lastOffset:H,lastStartLoc:Z}=D,te=c(8,H,Z);return M.type!==12?(o(N,Ht.UNEXPECTED_EMPTY_LINKED_MODIFIER,D.lastStartLoc,0),te.value="",d(te,H,Z),{nextConsumeToken:M,node:te}):(M.value==null&&o(N,Ht.UNEXPECTED_LEXICAL_ANALYSIS,D.lastStartLoc,0,ms(M)),te.value=M.value||"",d(te,N.currentOffset(),N.currentPosition()),{node:te})}function S(N,M){const D=N.context(),H=c(7,D.offset,D.startLoc);return H.value=M,d(H,N.currentOffset(),N.currentPosition()),H}function T(N){const M=N.context(),D=c(6,M.offset,M.startLoc);let H=N.nextToken();if(H.type===9){const Z=_(N);D.modifier=Z.node,H=Z.nextConsumeToken||N.nextToken()}switch(H.type!==10&&o(N,Ht.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,ms(H)),H=N.nextToken(),H.type===2&&(H=N.nextToken()),H.type){case 11:H.value==null&&o(N,Ht.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,ms(H)),D.key=S(N,H.value||"");break;case 5:H.value==null&&o(N,Ht.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,ms(H)),D.key=v(N,H.value||"");break;case 6:H.value==null&&o(N,Ht.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,ms(H)),D.key=m(N,H.value||"");break;case 7:H.value==null&&o(N,Ht.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,ms(H)),D.key=y(N,H.value||"");break;default:{o(N,Ht.UNEXPECTED_EMPTY_LINKED_KEY,M.lastStartLoc,0);const Z=N.context(),te=c(7,Z.offset,Z.startLoc);return te.value="",d(te,Z.offset,Z.startLoc),D.key=te,d(D,Z.offset,Z.startLoc),{nextConsumeToken:H,node:D}}}return d(D,N.currentOffset(),N.currentPosition()),{node:D}}function C(N){const M=N.context(),D=M.currentType===1?N.currentOffset():M.offset,H=M.currentType===1?M.endLoc:M.startLoc,Z=c(2,D,H);Z.items=[];let te=null,Y=null;do{const oe=te||N.nextToken();switch(te=null,oe.type){case 0:oe.value==null&&o(N,Ht.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,ms(oe)),Z.items.push(p(N,oe.value||""));break;case 6:oe.value==null&&o(N,Ht.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,ms(oe)),Z.items.push(m(N,oe.value||""));break;case 4:Y=!0;break;case 5:oe.value==null&&o(N,Ht.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,ms(oe)),Z.items.push(v(N,oe.value||"",!!Y)),Y&&(l(N,Ug.USE_MODULO_SYNTAX,M.lastStartLoc,0,ms(oe)),Y=null);break;case 7:oe.value==null&&o(N,Ht.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,ms(oe)),Z.items.push(y(N,oe.value||""));break;case 8:{const pe=T(N);Z.items.push(pe.node),te=pe.nextConsumeToken||null;break}}}while(M.currentType!==14&&M.currentType!==1);const ee=M.currentType===1?M.lastOffset:N.currentOffset(),le=M.currentType===1?M.lastEndLoc:N.currentPosition();return d(Z,ee,le),Z}function O(N,M,D,H){const Z=N.context();let te=H.items.length===0;const Y=c(1,M,D);Y.cases=[],Y.cases.push(H);do{const ee=C(N);te||(te=ee.items.length===0),Y.cases.push(ee)}while(Z.currentType!==14);return te&&o(N,Ht.MUST_HAVE_MESSAGES_IN_PLURAL,D,0),d(Y,N.currentOffset(),N.currentPosition()),Y}function P(N){const M=N.context(),{offset:D,startLoc:H}=M,Z=C(N);return M.currentType===14?Z:O(N,D,H,Z)}function I(N){const M=yI(N,i1({},e)),D=M.context(),H=c(0,D.offset,D.startLoc);return t&&H.loc&&(H.loc.source=N),H.body=P(M),e.onCacheKey&&(H.cacheKey=e.onCacheKey(N)),D.currentType!==14&&o(M,Ht.UNEXPECTED_LEXICAL_ANALYSIS,D.lastStartLoc,0,N[D.offset]||""),d(H,M.currentOffset(),M.currentPosition()),H}return{parse:I}}function ms(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 EI(e,t={}){const i={ast:e,helpers:new Set};return{context:()=>i,helper:l=>(i.helpers.add(l),l)}}function Zv(e,t){for(let i=0;iJv(i)),e}function Jv(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(O,P){d.code+=O}function v(O,P=!0){const I=P?o:"";m(l?I+" ".repeat(O):I)}function y(O=!0){const P=++d.indentLevel;O&&v(P)}function _(O=!0){const P=--d.indentLevel;O&&v(P)}function S(){v(d.indentLevel)}return{context:p,push:m,indent:y,deindent:_,newline:S,helper:O=>`_${O}`,needIndent:()=>d.needIndent}}function OI(e,t){const{helper:i}=e;e.push(`${i("linked")}(`),za(e,t.key),t.modifier?(e.push(", "),za(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function PI(e,t){const{helper:i,needIndent:n}=e;e.push(`${i("normalize")}([`),e.indent(n());const o=t.items.length;for(let l=0;l1){e.push(`${i("plural")}([`),e.indent(n());const o=t.cases.length;for(let l=0;l{const i=Kv(t.mode)?t.mode:"normal",n=Kv(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,l=t.breakLineCode!=null?t.breakLineCode:i==="arrow"?";":` +`,c=t.needIndent?t.needIndent:i!=="arrow",d=e.helpers||[],p=II(e,{mode:i,filename:n,sourceMap:o,breakLineCode:l,needIndent:c});p.push(i==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),p.indent(c),d.length>0&&(p.push(`const { ${n1(d.map(y=>`${y}: _${y}`),", ")} } = ctx`),p.newline()),p.push("return "),za(p,e),p.deindent(c),p.push("}"),delete e.helpers;const{code:m,map:v}=p.context();return{ast:e,code:m,map:v?v.toJSON():void 0}};function RI(e,t={}){const i=i1({},t),n=!!i.jit,o=!!i.minify,l=i.optimize==null?!0:i.optimize,d=SI(i).parse(e);return n?(l&&AI(d),o&&ba(d),{ast:d,code:""}):(CI(d,i),NI(d,i))}/*! + * core-base v9.14.2 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function DI(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ur().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ur().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ur().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const ho=[];ho[0]={w:[0],i:[3,0],"[":[4],o:[7]};ho[1]={w:[1],".":[2],"[":[4],o:[7]};ho[2]={w:[2],i:[3,0],0:[3,0]};ho[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};ho[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};ho[5]={"'":[4,0],o:8,l:[5,0]};ho[6]={'"':[4,0],o:8,l:[6,0]};const $I=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function FI(e){return $I.test(e)}function VI(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 zI(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 HI(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:FI(t)?VI(t):"*"+t}function BI(e){const t=[];let i=-1,n=0,o=0,l,c,d,p,m,v,y;const _=[];_[0]=()=>{c===void 0?c=d:c+=d},_[1]=()=>{c!==void 0&&(t.push(c),c=void 0)},_[2]=()=>{_[0](),o++},_[3]=()=>{if(o>0)o--,n=4,_[0]();else{if(o=0,c===void 0||(c=HI(c),c===!1))return!1;_[1]()}};function S(){const T=e[i+1];if(n===5&&T==="'"||n===6&&T==='"')return i++,d="\\"+T,_[0](),!0}for(;n!==null;)if(i++,l=e[i],!(l==="\\"&&S())){if(p=zI(l),y=ho[n],m=y[p]||y.l||8,m===8||(n=m[0],m[1]!==void 0&&(v=_[m[1]],v&&(d=l,v()===!1))))return;if(n===7)return t}}const Qv=new Map;function WI(e,t){return ui(e)?e[t]:null}function jI(e,t){if(!ui(e))return null;let i=Qv.get(t);if(i||(i=BI(t),i&&Qv.set(t,i)),!i)return null;const n=i.length;let o=e,l=0;for(;le,UI=e=>"",GI="text",XI=e=>e.length===0?"":sI(e),KI=nI;function eb(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function qI(e){const t=Wi(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Wi(e.named.count)||Wi(e.named.n))?Wi(e.named.count)?e.named.count:Wi(e.named.n)?e.named.n:t:t}function ZI(e,t){t.count||(t.count=e),t.n||(t.n=e)}function JI(e={}){const t=e.locale,i=qI(e),n=ui(e.pluralRules)&&_t(t)&&Ci(e.pluralRules[t])?e.pluralRules[t]:eb,o=ui(e.pluralRules)&&_t(t)&&Ci(e.pluralRules[t])?eb:void 0,l=P=>P[n(i,P.length,o)],c=e.list||[],d=P=>c[P],p=e.named||vi();Wi(e.pluralIndex)&&ZI(i,p);const m=P=>p[P];function v(P){const I=Ci(e.messages)?e.messages(P):ui(e.messages)?e.messages[P]:!1;return I||(e.parent?e.parent.message(P):UI)}const y=P=>e.modifiers?e.modifiers[P]:YI,_=Yt(e.processor)&&Ci(e.processor.normalize)?e.processor.normalize:XI,S=Yt(e.processor)&&Ci(e.processor.interpolate)?e.processor.interpolate:KI,T=Yt(e.processor)&&_t(e.processor.type)?e.processor.type:GI,O={list:d,named:m,plural:l,linked:(P,...I)=>{const[N,M]=I;let D="text",H="";I.length===1?ui(N)?(H=N.modifier||H,D=N.type||D):_t(N)&&(H=N||H):I.length===2&&(_t(N)&&(H=N||H),_t(M)&&(D=M||D));const Z=v(P)(O),te=D==="vnode"&&ki(Z)&&H?Z[0]:Z;return H?y(H)(te,D):te},message:v,type:T,interpolate:S,normalize:_,values:cn(vi(),c,p)};return O}let bc=null;function QI(e){bc=e}function eO(e,t,i){bc&&bc.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:i})}const tO=iO("function:translate");function iO(e){return t=>bc&&bc.emit(e,t)}const s1=Ug.__EXTEND_POINT__,_o=ph(s1),nO={NOT_FOUND_KEY:s1,FALLBACK_TO_TRANSLATE:_o(),CANNOT_FORMAT_NUMBER:_o(),FALLBACK_TO_NUMBER_FORMAT:_o(),CANNOT_FORMAT_DATE:_o(),FALLBACK_TO_DATE_FORMAT:_o(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:_o(),__EXTEND_POINT__:_o()},r1=Ht.__EXTEND_POINT__,So=ph(r1),Cs={INVALID_ARGUMENT:r1,INVALID_DATE_ARGUMENT:So(),INVALID_ISO_DATE_ARGUMENT:So(),NOT_SUPPORT_NON_STRING_MESSAGE:So(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:So(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:So(),NOT_SUPPORT_LOCALE_TYPE:So(),__EXTEND_POINT__:So()};function zs(e){return al(e,null,void 0)}function Xg(e,t){return t.locale!=null?tb(t.locale):tb(e.locale)}let uf;function tb(e){if(_t(e))return e;if(Ci(e)){if(e.resolvedOnce&&uf!=null)return uf;if(e.constructor.name==="Function"){const t=e();if(iI(t))throw zs(Cs.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return uf=t}else throw zs(Cs.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw zs(Cs.NOT_SUPPORT_LOCALE_TYPE)}function sO(e,t,i){return[...new Set([i,...ki(t)?t:ui(t)?Object.keys(t):_t(t)?[t]:[i]])]}function o1(e,t,i){const n=_t(i)?i:Ha,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let l=o.__localeChainCache.get(n);if(!l){l=[];let c=[i];for(;ki(c);)c=ib(l,c,t);const d=ki(t)||!Yt(t)?t:t.default?t.default:null;c=_t(d)?[d]:d,ki(c)&&ib(l,c,!1),o.__localeChainCache.set(n,l)}return l}function ib(e,t,i){let n=!0;for(let o=0;o`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function lO(){return{upper:(e,t)=>t==="text"&&_t(e)?e.toUpperCase():t==="vnode"&&ui(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&_t(e)?e.toLowerCase():t==="vnode"&&ui(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&_t(e)?sb(e):t==="vnode"&&ui(e)&&"__v_isVNode"in e?sb(e.children):e}}let a1;function rb(e){a1=e}let l1;function cO(e){l1=e}let c1;function uO(e){c1=e}let u1=null;const dO=e=>{u1=e},hO=()=>u1;let d1=null;const ob=e=>{d1=e},fO=()=>d1;let ab=0;function pO(e={}){const t=Ci(e.onWarn)?e.onWarn:rI,i=_t(e.version)?e.version:aO,n=_t(e.locale)||Ci(e.locale)?e.locale:Ha,o=Ci(n)?Ha:n,l=ki(e.fallbackLocale)||Yt(e.fallbackLocale)||_t(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,c=Yt(e.messages)?e.messages:df(o),d=Yt(e.datetimeFormats)?e.datetimeFormats:df(o),p=Yt(e.numberFormats)?e.numberFormats:df(o),m=cn(vi(),e.modifiers,lO()),v=e.pluralRules||vi(),y=Ci(e.missing)?e.missing:null,_=ni(e.missingWarn)||io(e.missingWarn)?e.missingWarn:!0,S=ni(e.fallbackWarn)||io(e.fallbackWarn)?e.fallbackWarn:!0,T=!!e.fallbackFormat,C=!!e.unresolving,O=Ci(e.postTranslation)?e.postTranslation:null,P=Yt(e.processor)?e.processor:null,I=ni(e.warnHtmlMessage)?e.warnHtmlMessage:!0,N=!!e.escapeParameter,M=Ci(e.messageCompiler)?e.messageCompiler:a1,D=Ci(e.messageResolver)?e.messageResolver:l1||WI,H=Ci(e.localeFallbacker)?e.localeFallbacker:c1||sO,Z=ui(e.fallbackContext)?e.fallbackContext:void 0,te=e,Y=ui(te.__datetimeFormatters)?te.__datetimeFormatters:new Map,ee=ui(te.__numberFormatters)?te.__numberFormatters:new Map,le=ui(te.__meta)?te.__meta:{};ab++;const oe={version:i,cid:ab,locale:n,fallbackLocale:l,messages:c,modifiers:m,pluralRules:v,missing:y,missingWarn:_,fallbackWarn:S,fallbackFormat:T,unresolving:C,postTranslation:O,processor:P,warnHtmlMessage:I,escapeParameter:N,messageCompiler:M,messageResolver:D,localeFallbacker:H,fallbackContext:Z,onWarn:t,__meta:le};return oe.datetimeFormats=d,oe.numberFormats=p,oe.__datetimeFormatters=Y,oe.__numberFormatters=ee,__INTLIFY_PROD_DEVTOOLS__&&eO(oe,i,le),oe}const df=e=>({[e]:vi()});function Kg(e,t,i,n,o){const{missing:l,onWarn:c}=e;if(l!==null){const d=l(e,i,t,o);return _t(d)?d:t}else return t}function _l(e,t,i){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,i,t)}function gO(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function mO(e,t){const i=t.indexOf(e);if(i===-1)return!1;for(let n=i+1;nvO(i,e)}function vO(e,t){const i=yO(t);if(i==null)throw yc(0);if(qg(i)===1){const l=wO(i);return e.plural(l.reduce((c,d)=>[...c,lb(e,d)],[]))}else return lb(e,i)}const bO=["b","body"];function yO(e){return fo(e,bO)}const xO=["c","cases"];function wO(e){return fo(e,xO,[])}function lb(e,t){const i=SO(t);if(i!=null)return e.type==="text"?i:e.normalize([i]);{const n=CO(t).reduce((o,l)=>[...o,wp(e,l)],[]);return e.normalize(n)}}const _O=["s","static"];function SO(e){return fo(e,_O)}const EO=["i","items"];function CO(e){return fo(e,EO,[])}function wp(e,t){const i=qg(t);switch(i){case 3:return pu(t,i);case 9:return pu(t,i);case 4:{const n=t;if(Es(n,"k")&&n.k)return e.interpolate(e.named(n.k));if(Es(n,"key")&&n.key)return e.interpolate(e.named(n.key));throw yc(i)}case 5:{const n=t;if(Es(n,"i")&&Wi(n.i))return e.interpolate(e.list(n.i));if(Es(n,"index")&&Wi(n.index))return e.interpolate(e.list(n.index));throw yc(i)}case 6:{const n=t,o=IO(n),l=PO(n);return e.linked(wp(e,l),o?wp(e,o):void 0,e.type)}case 7:return pu(t,i);case 8:return pu(t,i);default:throw new Error(`unhandled node on format message part: ${i}`)}}const AO=["t","type"];function qg(e){return fo(e,AO)}const kO=["v","value"];function pu(e,t){const i=fo(e,kO);if(i)return i;throw yc(t)}const TO=["m","modifier"];function IO(e){return fo(e,TO)}const OO=["k","key"];function PO(e){const t=fo(e,OO);if(t)return t;throw yc(6)}function fo(e,t,i){for(let n=0;ne;let Ca=vi();function Ba(e){return ui(e)&&qg(e)===0&&(Es(e,"b")||Es(e,"body"))}function f1(e,t={}){let i=!1;const n=t.onError||hI;return t.onError=o=>{i=!0,n(o)},{...RI(e,t),detectError:i}}const LO=(e,t)=>{if(!_t(e))throw zs(Cs.NOT_SUPPORT_NON_STRING_MESSAGE);{ni(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||h1)(e),o=Ca[n];if(o)return o;const{code:l,detectError:c}=f1(e,t),d=new Function(`return ${l}`)();return c?d:Ca[n]=d}};function MO(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&_t(e)){ni(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||h1)(e),o=Ca[n];if(o)return o;const{ast:l,detectError:c}=f1(e,{...t,location:!1,jit:!0}),d=hf(l);return c?d:Ca[n]=d}else{const i=e.cacheKey;if(i){const n=Ca[i];return n||(Ca[i]=hf(e))}else return hf(e)}}const cb=()=>"",Jn=e=>Ci(e);function ub(e,...t){const{fallbackFormat:i,postTranslation:n,unresolving:o,messageCompiler:l,fallbackLocale:c,messages:d}=e,[p,m]=_p(...t),v=ni(m.missingWarn)?m.missingWarn:e.missingWarn,y=ni(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,_=ni(m.escapeParameter)?m.escapeParameter:e.escapeParameter,S=!!m.resolvedMessage,T=_t(m.default)||ni(m.default)?ni(m.default)?l?p:()=>p:m.default:i?l?p:()=>p:"",C=i||T!=="",O=Xg(e,m);_&&NO(m);let[P,I,N]=S?[p,O,d[O]||vi()]:p1(e,p,O,c,y,v),M=P,D=p;if(!S&&!(_t(M)||Ba(M)||Jn(M))&&C&&(M=T,D=M),!S&&(!(_t(M)||Ba(M)||Jn(M))||!_t(I)))return o?gh:p;let H=!1;const Z=()=>{H=!0},te=Jn(M)?M:g1(e,p,I,M,D,Z);if(H)return M;const Y=$O(e,I,N,m),ee=JI(Y),le=RO(e,te,ee),oe=n?n(le,p):le;if(__INTLIFY_PROD_DEVTOOLS__){const pe={timestamp:Date.now(),key:_t(p)?p:Jn(M)?M.key:"",locale:I||(Jn(M)?M.locale:""),format:_t(M)?M:Jn(M)?M.source:"",message:oe};pe.meta=cn({},e.__meta,hO()||{}),tO(pe)}return oe}function NO(e){ki(e.list)?e.list=e.list.map(t=>_t(t)?Xv(t):t):ui(e.named)&&Object.keys(e.named).forEach(t=>{_t(e.named[t])&&(e.named[t]=Xv(e.named[t]))})}function p1(e,t,i,n,o,l){const{messages:c,onWarn:d,messageResolver:p,localeFallbacker:m}=e,v=m(e,n,i);let y=vi(),_,S=null;const T="translate";for(let C=0;Cn;return m.locale=i,m.key=t,m}const p=c(n,DO(e,i,o,n,d,l));return p.locale=i,p.key=t,p.source=n,p}function RO(e,t,i){return t(i)}function _p(...e){const[t,i,n]=e,o=vi();if(!_t(t)&&!Wi(t)&&!Jn(t)&&!Ba(t))throw zs(Cs.INVALID_ARGUMENT);const l=Wi(t)?String(t):(Jn(t),t);return Wi(i)?o.plural=i:_t(i)?o.default=i:Yt(i)&&!fh(i)?o.named=i:ki(i)&&(o.list=i),Wi(n)?o.plural=n:_t(n)?o.default=n:Yt(n)&&cn(o,n),[l,o]}function DO(e,t,i,n,o,l){return{locale:t,key:i,warnHtmlMessage:o,onError:c=>{throw l&&l(c),c},onCacheKey:c=>ZT(t,i,c)}}function $O(e,t,i,n){const{modifiers:o,pluralRules:l,messageResolver:c,fallbackLocale:d,fallbackWarn:p,missingWarn:m,fallbackContext:v}=e,_={locale:t,modifiers:o,pluralRules:l,messages:S=>{let T=c(i,S);if(T==null&&v){const[,,C]=p1(v,S,t,d,p,m);T=c(C,S)}if(_t(T)||Ba(T)){let C=!1;const P=g1(e,S,t,T,S,()=>{C=!0});return C?cb:P}else return Jn(T)?T:cb}};return e.processor&&(_.processor=e.processor),n.list&&(_.list=n.list),n.named&&(_.named=n.named),Wi(n.plural)&&(_.pluralIndex=n.plural),_}function db(e,...t){const{datetimeFormats:i,unresolving:n,fallbackLocale:o,onWarn:l,localeFallbacker:c}=e,{__datetimeFormatters:d}=e,[p,m,v,y]=Sp(...t),_=ni(v.missingWarn)?v.missingWarn:e.missingWarn;ni(v.fallbackWarn)?v.fallbackWarn:e.fallbackWarn;const S=!!v.part,T=Xg(e,v),C=c(e,o,T);if(!_t(p)||p==="")return new Intl.DateTimeFormat(T,y).format(m);let O={},P,I=null;const N="datetime format";for(let H=0;H{m1.includes(p)?c[p]=i[p]:l[p]=i[p]}),_t(n)?l.locale=n:Yt(n)&&(c=n),Yt(o)&&(c=o),[l.key||"",d,l,c]}function hb(e,t,i){const n=e;for(const o in i){const l=`${t}__${o}`;n.__datetimeFormatters.has(l)&&n.__datetimeFormatters.delete(l)}}function fb(e,...t){const{numberFormats:i,unresolving:n,fallbackLocale:o,onWarn:l,localeFallbacker:c}=e,{__numberFormatters:d}=e,[p,m,v,y]=Ep(...t),_=ni(v.missingWarn)?v.missingWarn:e.missingWarn;ni(v.fallbackWarn)?v.fallbackWarn:e.fallbackWarn;const S=!!v.part,T=Xg(e,v),C=c(e,o,T);if(!_t(p)||p==="")return new Intl.NumberFormat(T,y).format(m);let O={},P,I=null;const N="number format";for(let H=0;H{v1.includes(p)?c[p]=i[p]:l[p]=i[p]}),_t(n)?l.locale=n:Yt(n)&&(c=n),Yt(o)&&(c=o),[l.key||"",d,l,c]}function pb(e,t,i){const n=e;for(const o in i){const l=`${t}__${o}`;n.__numberFormatters.has(l)&&n.__numberFormatters.delete(l)}}DI();/*! + * vue-i18n v9.14.2 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */const FO="9.14.2";function VO(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ur().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ur().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ur().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ur().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ur().__INTLIFY_PROD_DEVTOOLS__=!1)}const b1=nO.__EXTEND_POINT__,er=ph(b1);er(),er(),er(),er(),er(),er(),er(),er(),er();const y1=Cs.__EXTEND_POINT__,Mn=ph(y1),Qi={UNEXPECTED_RETURN_TYPE:y1,INVALID_ARGUMENT:Mn(),MUST_BE_CALL_SETUP_TOP:Mn(),NOT_INSTALLED:Mn(),NOT_AVAILABLE_IN_LEGACY_MODE:Mn(),REQUIRED_VALUE:Mn(),INVALID_VALUE:Mn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Mn(),NOT_INSTALLED_WITH_PROVIDE:Mn(),UNEXPECTED_ERROR:Mn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Mn(),BRIDGE_SUPPORT_VUE_2_ONLY:Mn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Mn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Mn(),__EXTEND_POINT__:Mn()};function sn(e,...t){return al(e,null,void 0)}const Cp=uo("__translateVNode"),Ap=uo("__datetimeParts"),kp=uo("__numberParts"),x1=uo("__setPluralRules"),w1=uo("__injectWithOption"),Tp=uo("__dispose");function xc(e){if(!ui(e))return e;for(const t in e)if(Es(e,t))if(!t.includes("."))ui(e[t])&&xc(e[t]);else{const i=t.split("."),n=i.length-1;let o=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]||vi(),Hu(m,c[p])):Hu(m,c)}else _t(d)&&Hu(JSON.parse(d),c)}),o==null&&l)for(const d in c)Es(c,d)&&xc(c[d]);return c}function _1(e){return e.type}function S1(e,t,i){let n=ui(t.messages)?t.messages:vi();"__i18nGlobal"in i&&(n=mh(e.locale.value,{messages:n,__i18n:i.__i18nGlobal}));const o=Object.keys(n);o.length&&o.forEach(l=>{e.mergeLocaleMessage(l,n[l])});{if(ui(t.datetimeFormats)){const l=Object.keys(t.datetimeFormats);l.length&&l.forEach(c=>{e.mergeDateTimeFormat(c,t.datetimeFormats[c])})}if(ui(t.numberFormats)){const l=Object.keys(t.numberFormats);l.length&&l.forEach(c=>{e.mergeNumberFormat(c,t.numberFormats[c])})}}}function gb(e){return $e(gr,null,e,0)}const mb="__INTLIFY_META__",vb=()=>[],zO=()=>!1;let bb=0;function yb(e){return(t,i,n,o)=>e(i,n,Xi()||void 0,o)}const HO=()=>{const e=Xi();let t=null;return e&&(t=_1(e)[mb])?{[mb]:t}:null};function Zg(e={},t){const{__root:i,__injectWithOption:n}=e,o=i===void 0,l=e.flatJson,c=_d?Ae:on,d=!!e.translateExistCompatible;let p=ni(e.inheritLocale)?e.inheritLocale:!0;const m=c(i&&p?i.locale.value:_t(e.locale)?e.locale:Ha),v=c(i&&p?i.fallbackLocale.value:_t(e.fallbackLocale)||ki(e.fallbackLocale)||Yt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:m.value),y=c(mh(m.value,e)),_=c(Yt(e.datetimeFormats)?e.datetimeFormats:{[m.value]:{}}),S=c(Yt(e.numberFormats)?e.numberFormats:{[m.value]:{}});let T=i?i.missingWarn:ni(e.missingWarn)||io(e.missingWarn)?e.missingWarn:!0,C=i?i.fallbackWarn:ni(e.fallbackWarn)||io(e.fallbackWarn)?e.fallbackWarn:!0,O=i?i.fallbackRoot:ni(e.fallbackRoot)?e.fallbackRoot:!0,P=!!e.fallbackFormat,I=Ci(e.missing)?e.missing:null,N=Ci(e.missing)?yb(e.missing):null,M=Ci(e.postTranslation)?e.postTranslation:null,D=i?i.warnHtmlMessage:ni(e.warnHtmlMessage)?e.warnHtmlMessage:!0,H=!!e.escapeParameter;const Z=i?i.modifiers:Yt(e.modifiers)?e.modifiers:{};let te=e.pluralRules||i&&i.pluralRules,Y;Y=(()=>{o&&ob(null);const Re={version:FO,locale:m.value,fallbackLocale:v.value,messages:y.value,modifiers:Z,pluralRules:te,missing:N===null?void 0:N,missingWarn:T,fallbackWarn:C,fallbackFormat:P,unresolving:!0,postTranslation:M===null?void 0:M,warnHtmlMessage:D,escapeParameter:H,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};Re.datetimeFormats=_.value,Re.numberFormats=S.value,Re.__datetimeFormatters=Yt(Y)?Y.__datetimeFormatters:void 0,Re.__numberFormatters=Yt(Y)?Y.__numberFormatters:void 0;const Ye=pO(Re);return o&&ob(Ye),Ye})(),_l(Y,m.value,v.value);function le(){return[m.value,v.value,y.value,_.value,S.value]}const oe=Ee({get:()=>m.value,set:Re=>{m.value=Re,Y.locale=m.value}}),pe=Ee({get:()=>v.value,set:Re=>{v.value=Re,Y.fallbackLocale=v.value,_l(Y,m.value,Re)}}),ge=Ee(()=>y.value),Ce=Ee(()=>_.value),ue=Ee(()=>S.value);function ie(){return Ci(M)?M:null}function X(Re){M=Re,Y.postTranslation=Re}function fe(){return I}function me(Re){Re!==null&&(N=yb(Re)),I=Re,Y.missing=N}const de=(Re,Ye,St,q,W,be)=>{le();let Ve;try{__INTLIFY_PROD_DEVTOOLS__,o||(Y.fallbackContext=i?fO():void 0),Ve=Re(Y)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(Y.fallbackContext=void 0)}if(St!=="translate exists"&&Wi(Ve)&&Ve===gh||St==="translate exists"&&!Ve){const[We,rt]=Ye();return i&&O?q(i):W(We)}else{if(be(Ve))return Ve;throw sn(Qi.UNEXPECTED_RETURN_TYPE)}};function ye(...Re){return de(Ye=>Reflect.apply(ub,null,[Ye,...Re]),()=>_p(...Re),"translate",Ye=>Reflect.apply(Ye.t,Ye,[...Re]),Ye=>Ye,Ye=>_t(Ye))}function ze(...Re){const[Ye,St,q]=Re;if(q&&!ui(q))throw sn(Qi.INVALID_ARGUMENT);return ye(Ye,St,cn({resolvedMessage:!0},q||{}))}function st(...Re){return de(Ye=>Reflect.apply(db,null,[Ye,...Re]),()=>Sp(...Re),"datetime format",Ye=>Reflect.apply(Ye.d,Ye,[...Re]),()=>nb,Ye=>_t(Ye))}function Oe(...Re){return de(Ye=>Reflect.apply(fb,null,[Ye,...Re]),()=>Ep(...Re),"number format",Ye=>Reflect.apply(Ye.n,Ye,[...Re]),()=>nb,Ye=>_t(Ye))}function Pe(Re){return Re.map(Ye=>_t(Ye)||Wi(Ye)||ni(Ye)?gb(String(Ye)):Ye)}const De={normalize:Pe,interpolate:Re=>Re,type:"vnode"};function Se(...Re){return de(Ye=>{let St;const q=Ye;try{q.processor=De,St=Reflect.apply(ub,null,[q,...Re])}finally{q.processor=null}return St},()=>_p(...Re),"translate",Ye=>Ye[Cp](...Re),Ye=>[gb(Ye)],Ye=>ki(Ye))}function Ie(...Re){return de(Ye=>Reflect.apply(fb,null,[Ye,...Re]),()=>Ep(...Re),"number format",Ye=>Ye[kp](...Re),vb,Ye=>_t(Ye)||ki(Ye))}function Fe(...Re){return de(Ye=>Reflect.apply(db,null,[Ye,...Re]),()=>Sp(...Re),"datetime format",Ye=>Ye[Ap](...Re),vb,Ye=>_t(Ye)||ki(Ye))}function Ge(Re){te=Re,Y.pluralRules=te}function he(Re,Ye){return de(()=>{if(!Re)return!1;const St=_t(Ye)?Ye:m.value,q=Ke(St),W=Y.messageResolver(q,Re);return d?W!=null:Ba(W)||Jn(W)||_t(W)},()=>[Re],"translate exists",St=>Reflect.apply(St.te,St,[Re,Ye]),zO,St=>ni(St))}function se(Re){let Ye=null;const St=o1(Y,v.value,m.value);for(let q=0;q{p&&(m.value=Re,Y.locale=Re,_l(Y,m.value,v.value))}),ft(i.fallbackLocale,Re=>{p&&(v.value=Re,Y.fallbackLocale=Re,_l(Y,m.value,v.value))}));const tt={id:bb,locale:oe,fallbackLocale:pe,get inheritLocale(){return p},set inheritLocale(Re){p=Re,Re&&i&&(m.value=i.locale.value,v.value=i.fallbackLocale.value,_l(Y,m.value,v.value))},get availableLocales(){return Object.keys(y.value).sort()},messages:ge,get modifiers(){return Z},get pluralRules(){return te||{}},get isGlobal(){return o},get missingWarn(){return T},set missingWarn(Re){T=Re,Y.missingWarn=T},get fallbackWarn(){return C},set fallbackWarn(Re){C=Re,Y.fallbackWarn=C},get fallbackRoot(){return O},set fallbackRoot(Re){O=Re},get fallbackFormat(){return P},set fallbackFormat(Re){P=Re,Y.fallbackFormat=P},get warnHtmlMessage(){return D},set warnHtmlMessage(Re){D=Re,Y.warnHtmlMessage=Re},get escapeParameter(){return H},set escapeParameter(Re){H=Re,Y.escapeParameter=Re},t:ye,getLocaleMessage:Ke,setLocaleMessage:Be,mergeLocaleMessage:Qe,getPostTranslationHandler:ie,setPostTranslationHandler:X,getMissingHandler:fe,setMissingHandler:me,[x1]:Ge};return tt.datetimeFormats=Ce,tt.numberFormats=ue,tt.rt=ze,tt.te=he,tt.tm=Te,tt.d=st,tt.n=Oe,tt.getDateTimeFormat=ht,tt.setDateTimeFormat=ae,tt.mergeDateTimeFormat=ce,tt.getNumberFormat=ke,tt.setNumberFormat=et,tt.mergeNumberFormat=nt,tt[w1]=n,tt[Cp]=Se,tt[Ap]=Fe,tt[kp]=Ie,tt}function BO(e){const t=_t(e.locale)?e.locale:Ha,i=_t(e.fallbackLocale)||ki(e.fallbackLocale)||Yt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,n=Ci(e.missing)?e.missing:void 0,o=ni(e.silentTranslationWarn)||io(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,l=ni(e.silentFallbackWarn)||io(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,c=ni(e.fallbackRoot)?e.fallbackRoot:!0,d=!!e.formatFallbackMessages,p=Yt(e.modifiers)?e.modifiers:{},m=e.pluralizationRules,v=Ci(e.postTranslation)?e.postTranslation:void 0,y=_t(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,_=!!e.escapeParameterHtml,S=ni(e.sync)?e.sync:!0;let T=e.messages;if(Yt(e.sharedMessages)){const H=e.sharedMessages;T=Object.keys(H).reduce((te,Y)=>{const ee=te[Y]||(te[Y]={});return cn(ee,H[Y]),te},T||{})}const{__i18n:C,__root:O,__injectWithOption:P}=e,I=e.datetimeFormats,N=e.numberFormats,M=e.flatJson,D=e.translateExistCompatible;return{locale:t,fallbackLocale:i,messages:T,flatJson:M,datetimeFormats:I,numberFormats:N,missing:n,missingWarn:o,fallbackWarn:l,fallbackRoot:c,fallbackFormat:d,modifiers:p,pluralRules:m,postTranslation:v,warnHtmlMessage:y,escapeParameter:_,messageResolver:e.messageResolver,inheritLocale:S,translateExistCompatible:D,__i18n:C,__root:O,__injectWithOption:P}}function Ip(e={},t){{const i=Zg(BO(e)),{__extender:n}=e,o={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 ni(i.missingWarn)?!i.missingWarn:i.missingWarn},set silentTranslationWarn(l){i.missingWarn=ni(l)?!l:l},get silentFallbackWarn(){return ni(i.fallbackWarn)?!i.fallbackWarn:i.fallbackWarn},set silentFallbackWarn(l){i.fallbackWarn=ni(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 v=null,y=null;if(!_t(c))throw sn(Qi.INVALID_ARGUMENT);const _=c;return _t(d)?m.locale=d:ki(d)?v=d:Yt(d)&&(y=d),ki(p)?v=p:Yt(p)&&(y=p),Reflect.apply(i.t,i,[_,v||y||{},m])},rt(...l){return Reflect.apply(i.rt,i,[...l])},tc(...l){const[c,d,p]=l,m={plural:1};let v=null,y=null;if(!_t(c))throw sn(Qi.INVALID_ARGUMENT);const _=c;return _t(d)?m.locale=d:Wi(d)?m.plural=d:ki(d)?v=d:Yt(d)&&(y=d),_t(p)?m.locale=p:ki(p)?v=p:Yt(p)&&(y=p),Reflect.apply(i.t,i,[_,v||y||{},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 o.__extender=n,o}}const Jg={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function WO({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,o)=>[...n,...o.type===lt?o.children:[o]],[]):t.reduce((i,n)=>{const o=e[n];return o&&(i[n]=o()),i},vi())}function E1(e){return lt}const jO=ot({name:"i18n-t",props:cn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Wi(e)||!isNaN(e)}},Jg),setup(e,t){const{slots:i,attrs:n}=t,o=e.i18n||vh({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(i).filter(y=>y!=="_"),c=vi();e.locale&&(c.locale=e.locale),e.plural!==void 0&&(c.plural=_t(e.plural)?+e.plural:e.plural);const d=WO(t,l),p=o[Cp](e.keypath,d,c),m=cn(vi(),n),v=_t(e.tag)||ui(e.tag)?e.tag:E1();return co(v,m,p)}}}),xb=jO;function YO(e){return ki(e)&&!_t(e[0])}function C1(e,t,i,n){const{slots:o,attrs:l}=t;return()=>{const c={part:!0};let d=vi();e.locale&&(c.locale=e.locale),_t(e.format)?c.key=e.format:ui(e.format)&&(_t(e.format.key)&&(c.key=e.format.key),d=Object.keys(e.format).reduce((_,S)=>i.includes(S)?cn(vi(),_,{[S]:e.format[S]}):_,vi()));const p=n(e.value,c,d);let m=[c.key];ki(p)?m=p.map((_,S)=>{const T=o[_.type],C=T?T({[_.type]:_.value,index:S,parts:p}):[_.value];return YO(C)&&(C[0].key=`${_.type}-${S}`),C}):_t(p)&&(m=[p]);const v=cn(vi(),l),y=_t(e.tag)||ui(e.tag)?e.tag:E1();return co(y,v,m)}}const UO=ot({name:"i18n-n",props:cn({value:{type:Number,required:!0},format:{type:[String,Object]}},Jg),setup(e,t){const i=e.i18n||vh({useScope:e.scope,__useComponent:!0});return C1(e,t,v1,(...n)=>i[kp](...n))}}),wb=UO,GO=ot({name:"i18n-d",props:cn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Jg),setup(e,t){const i=e.i18n||vh({useScope:e.scope,__useComponent:!0});return C1(e,t,m1,(...n)=>i[Ap](...n))}}),_b=GO;function XO(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 KO(e){const t=c=>{const{instance:d,modifiers:p,value:m}=c;if(!d||!d.$)throw sn(Qi.UNEXPECTED_ERROR);const v=XO(e,d.$),y=Sb(m);return[Reflect.apply(v.t,v,[...Eb(y)]),v]};return{created:(c,d)=>{const[p,m]=t(d);_d&&e.global===m&&(c.__i18nWatcher=ft(m.locale,()=>{d.instance&&d.instance.$forceUpdate()})),c.__composer=m,c.textContent=p},unmounted:c=>{_d&&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=Sb(d);c.textContent=Reflect.apply(p.t,p,[...Eb(m)])}},getSSRProps:c=>{const[d]=t(c);return{textContent:d}}}}function Sb(e){if(_t(e))return{path:e};if(Yt(e)){if(!("path"in e))throw sn(Qi.REQUIRED_VALUE,"path");return e}else throw sn(Qi.INVALID_VALUE)}function Eb(e){const{path:t,locale:i,args:n,choice:o,plural:l}=e,c={},d=n||{};return _t(i)&&(c.locale=i),Wi(o)&&(c.plural=o),Wi(l)&&(c.plural=l),[t,d,c]}function qO(e,t,...i){const n=Yt(i[0])?i[0]:{},o=!!n.useI18nComponentName;(ni(n.globalInstall)?n.globalInstall:!0)&&([o?"i18n":xb.name,"I18nT"].forEach(c=>e.component(c,xb)),[wb.name,"I18nN"].forEach(c=>e.component(c,wb)),[_b.name,"I18nD"].forEach(c=>e.component(c,_b))),e.directive("t",KO(t))}function ZO(e,t,i){return{beforeCreate(){const n=Xi();if(!n)throw sn(Qi.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const l=o.i18n;if(o.__i18n&&(l.__i18n=o.__i18n),l.__root=t,this===this.$root)this.$i18n=Cb(e,l);else{l.__injectWithOption=!0,l.__extender=i.__vueI18nExtend,this.$i18n=Ip(l);const c=this.$i18n;c.__extender&&(c.__disposer=c.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=Cb(e,o);else{this.$i18n=Ip({__i18n:o.__i18n,__injectWithOption:!0,__extender:i.__vueI18nExtend,__root:t});const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&S1(t,o,o),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=Xi();if(!n)throw sn(Qi.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),i.__deleteInstance(n),delete this.$i18n}}}function Cb(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[x1](t.pluralizationRules||e.pluralizationRules);const i=mh(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 JO=uo("global-vue-i18n");function QO(e={},t){const i=__VUE_I18N_LEGACY_API__&&ni(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=ni(e.globalInjection)?e.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&i?!!e.allowComposition:!0,l=new Map,[c,d]=eP(e,i),p=uo("");function m(_){return l.get(_)||null}function v(_,S){l.set(_,S)}function y(_){l.delete(_)}{const _={get mode(){return __VUE_I18N_LEGACY_API__&&i?"legacy":"composition"},get allowComposition(){return o},async install(S,...T){if(S.__VUE_I18N_SYMBOL__=p,S.provide(S.__VUE_I18N_SYMBOL__,_),Yt(T[0])){const P=T[0];_.__composerExtend=P.__composerExtend,_.__vueI18nExtend=P.__vueI18nExtend}let C=null;!i&&n&&(C=cP(S,_.global)),__VUE_I18N_FULL_INSTALL__&&qO(S,_,...T),__VUE_I18N_LEGACY_API__&&i&&S.mixin(ZO(d,d.__composer,_));const O=S.unmount;S.unmount=()=>{C&&C(),_.dispose(),O()}},get global(){return d},dispose(){c.stop()},__instances:l,__getInstance:m,__setInstance:v,__deleteInstance:y};return _}}function vh(e={}){const t=Xi();if(t==null)throw sn(Qi.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw sn(Qi.NOT_INSTALLED);const i=tP(t),n=nP(i),o=_1(t),l=iP(e,o);if(__VUE_I18N_LEGACY_API__&&i.mode==="legacy"&&!e.__useComponent){if(!i.allowComposition)throw sn(Qi.NOT_AVAILABLE_IN_LEGACY_MODE);return aP(t,l,n,e)}if(l==="global")return S1(n,e,o),n;if(l==="parent"){let p=sP(i,t,e.__useComponent);return p==null&&(p=n),p}const c=i;let d=c.__getInstance(t);if(d==null){const p=cn({},e);"__i18n"in o&&(p.__i18n=o.__i18n),n&&(p.__root=n),d=Zg(p),c.__composerExtend&&(d[Tp]=c.__composerExtend(d)),oP(c,t,d),c.__setInstance(t,d)}return d}function eP(e,t,i){const n=Zd();{const o=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Ip(e)):n.run(()=>Zg(e));if(o==null)throw sn(Qi.UNEXPECTED_ERROR);return[n,o]}}function tP(e){{const t=vn(e.isCE?JO:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw sn(e.isCE?Qi.NOT_INSTALLED_WITH_PROVIDE:Qi.UNEXPECTED_ERROR);return t}}function iP(e,t){return fh(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function nP(e){return e.mode==="composition"?e.global:e.global.__composer}function sP(e,t,i=!1){let n=null;const o=t.root;let l=rP(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[w1]&&(n=null))}if(n!=null||o===l)break;l=l.parent}return n}function rP(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function oP(e,t,i){Rt(()=>{},t),ds(()=>{const n=i;e.__deleteInstance(t);const o=n[Tp];o&&(o(),delete n[Tp])},t)}function aP(e,t,i,n={}){const o=t==="local",l=on(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw sn(Qi.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const c=ni(n.inheritLocale)?n.inheritLocale:!_t(n.locale),d=Ae(!o||c?i.locale.value:_t(n.locale)?n.locale:Ha),p=Ae(!o||c?i.fallbackLocale.value:_t(n.fallbackLocale)||ki(n.fallbackLocale)||Yt(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:d.value),m=Ae(mh(d.value,n)),v=Ae(Yt(n.datetimeFormats)?n.datetimeFormats:{[d.value]:{}}),y=Ae(Yt(n.numberFormats)?n.numberFormats:{[d.value]:{}}),_=o?i.missingWarn:ni(n.missingWarn)||io(n.missingWarn)?n.missingWarn:!0,S=o?i.fallbackWarn:ni(n.fallbackWarn)||io(n.fallbackWarn)?n.fallbackWarn:!0,T=o?i.fallbackRoot:ni(n.fallbackRoot)?n.fallbackRoot:!0,C=!!n.fallbackFormat,O=Ci(n.missing)?n.missing:null,P=Ci(n.postTranslation)?n.postTranslation:null,I=o?i.warnHtmlMessage:ni(n.warnHtmlMessage)?n.warnHtmlMessage:!0,N=!!n.escapeParameter,M=o?i.modifiers:Yt(n.modifiers)?n.modifiers:{},D=n.pluralRules||o&&i.pluralRules;function H(){return[d.value,p.value,m.value,v.value,y.value]}const Z=Ee({get:()=>l.value?l.value.locale.value:d.value,set:se=>{l.value&&(l.value.locale.value=se),d.value=se}}),te=Ee({get:()=>l.value?l.value.fallbackLocale.value:p.value,set:se=>{l.value&&(l.value.fallbackLocale.value=se),p.value=se}}),Y=Ee(()=>l.value?l.value.messages.value:m.value),ee=Ee(()=>v.value),le=Ee(()=>y.value);function oe(){return l.value?l.value.getPostTranslationHandler():P}function pe(se){l.value&&l.value.setPostTranslationHandler(se)}function ge(){return l.value?l.value.getMissingHandler():O}function Ce(se){l.value&&l.value.setMissingHandler(se)}function ue(se){return H(),se()}function ie(...se){return l.value?ue(()=>Reflect.apply(l.value.t,null,[...se])):ue(()=>"")}function X(...se){return l.value?Reflect.apply(l.value.rt,null,[...se]):""}function fe(...se){return l.value?ue(()=>Reflect.apply(l.value.d,null,[...se])):ue(()=>"")}function me(...se){return l.value?ue(()=>Reflect.apply(l.value.n,null,[...se])):ue(()=>"")}function de(se){return l.value?l.value.tm(se):{}}function ye(se,Te){return l.value?l.value.te(se,Te):!1}function ze(se){return l.value?l.value.getLocaleMessage(se):{}}function st(se,Te){l.value&&(l.value.setLocaleMessage(se,Te),m.value[se]=Te)}function Oe(se,Te){l.value&&l.value.mergeLocaleMessage(se,Te)}function Pe(se){return l.value?l.value.getDateTimeFormat(se):{}}function we(se,Te){l.value&&(l.value.setDateTimeFormat(se,Te),v.value[se]=Te)}function De(se,Te){l.value&&l.value.mergeDateTimeFormat(se,Te)}function Se(se){return l.value?l.value.getNumberFormat(se):{}}function Ie(se,Te){l.value&&(l.value.setNumberFormat(se,Te),y.value[se]=Te)}function Fe(se,Te){l.value&&l.value.mergeNumberFormat(se,Te)}const Ge={get id(){return l.value?l.value.id:-1},locale:Z,fallbackLocale:te,messages:Y,datetimeFormats:ee,numberFormats:le,get inheritLocale(){return l.value?l.value.inheritLocale:c},set inheritLocale(se){l.value&&(l.value.inheritLocale=se)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(m.value)},get modifiers(){return l.value?l.value.modifiers:M},get pluralRules(){return l.value?l.value.pluralRules:D},get isGlobal(){return l.value?l.value.isGlobal:!1},get missingWarn(){return l.value?l.value.missingWarn:_},set missingWarn(se){l.value&&(l.value.missingWarn=se)},get fallbackWarn(){return l.value?l.value.fallbackWarn:S},set fallbackWarn(se){l.value&&(l.value.missingWarn=se)},get fallbackRoot(){return l.value?l.value.fallbackRoot:T},set fallbackRoot(se){l.value&&(l.value.fallbackRoot=se)},get fallbackFormat(){return l.value?l.value.fallbackFormat:C},set fallbackFormat(se){l.value&&(l.value.fallbackFormat=se)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:I},set warnHtmlMessage(se){l.value&&(l.value.warnHtmlMessage=se)},get escapeParameter(){return l.value?l.value.escapeParameter:N},set escapeParameter(se){l.value&&(l.value.escapeParameter=se)},t:ie,getPostTranslationHandler:oe,setPostTranslationHandler:pe,getMissingHandler:ge,setMissingHandler:Ce,rt:X,d:fe,n:me,tm:de,te:ye,getLocaleMessage:ze,setLocaleMessage:st,mergeLocaleMessage:Oe,getDateTimeFormat:Pe,setDateTimeFormat:we,mergeDateTimeFormat:De,getNumberFormat:Se,setNumberFormat:Ie,mergeNumberFormat:Fe};function he(se){se.locale.value=d.value,se.fallbackLocale.value=p.value,Object.keys(m.value).forEach(Te=>{se.mergeLocaleMessage(Te,m.value[Te])}),Object.keys(v.value).forEach(Te=>{se.mergeDateTimeFormat(Te,v.value[Te])}),Object.keys(y.value).forEach(Te=>{se.mergeNumberFormat(Te,y.value[Te])}),se.escapeParameter=N,se.fallbackFormat=C,se.fallbackRoot=T,se.fallbackWarn=S,se.missingWarn=_,se.warnHtmlMessage=I}return ah(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw sn(Qi.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const se=l.value=e.proxy.$i18n.__composer;t==="global"?(d.value=se.locale.value,p.value=se.fallbackLocale.value,m.value=se.messages.value,v.value=se.datetimeFormats.value,y.value=se.numberFormats.value):o&&he(se)}),Ge}const lP=["locale","fallbackLocale","availableLocales"],Ab=["t","rt","d","n","tm","te"];function cP(e,t){const i=Object.create(null);return lP.forEach(o=>{const l=Object.getOwnPropertyDescriptor(t,o);if(!l)throw sn(Qi.UNEXPECTED_ERROR);const c=Ti(l.value)?{get(){return l.value.value},set(d){l.value.value=d}}:{get(){return l.get&&l.get()}};Object.defineProperty(i,o,c)}),e.config.globalProperties.$i18n=i,Ab.forEach(o=>{const l=Object.getOwnPropertyDescriptor(t,o);if(!l||!l.value)throw sn(Qi.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,l)}),()=>{delete e.config.globalProperties.$i18n,Ab.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}VO();__INTLIFY_JIT_COMPILATION__?rb(MO):rb(LO);cO(jI);uO(o1);if(__INTLIFY_PROD_DEVTOOLS__){const e=ur();e.__INTLIFY__=!0,QI(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const kb={onStart:()=>{},onPreviousStep:e=>{},onNextStep:e=>{},onStop:()=>{},onSkip:()=>{},onFinish:()=>{}},Ed={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},tr={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},uP={enableScrolling:!0,highlight:Ed.highlight,enabledButtons:Ed.enabledButtons,modifiers:[{name:"offset",options:{offset:({placement:e})=>e==="top"||e==="bottom"?[0,8]:[8,0]}}],placement:"bottom"},ff={ARROW_RIGHT:39,ARROW_LEFT:37,ESCAPE:27};var A1=(e,t)=>{const i=e.__vccOpts||e;for(const[n,o]of t)i[n]=o;return i};const dP={name:"v-tour",props:{steps:{type:Array,default:()=>[]},name:{type:String},options:{type:Object,default:()=>Ed},callbacks:{type:Object,default:()=>kb}},setup(e,t){const i=Ae(-1),n=Ee(()=>({...Ed,...e.options})),o=Ee(()=>({...kb,...e.callbacks})),l=Ee(()=>i.value>-1&&i.valuei.value===0),d=Ee(()=>i.value===e.steps.length-1),p=Ee(()=>e.steps.length),m=Ee(()=>e.steps[i.value]),v=async I=>{I=typeof I<"u"?parseInt(I,10):0;let N=e.steps[I],M=()=>new Promise((D,H)=>{setTimeout(()=>{o.value.onStart(),i.value=I,D()},n.value.startTimeout)});if(typeof N.before<"u")try{await N.before("start")}catch(D){return Promise.reject(D)}return await M(),Promise.resolve()},y=async()=>{let I=i.value-1,N=()=>new Promise((M,D)=>{o.value.onPreviousStep(i.value),i.value=I,M()});if(I>-1){let M=e.steps[I];if(typeof M.before<"u")try{await M.before("previous")}catch(D){return Promise.reject(D)}await N()}return Promise.resolve()},_=async()=>{let I=i.value+1,N=()=>new Promise((M,D)=>{o.value.onNextStep(i.value),i.value=I,M()});if(I{o.value.onStop(),document.body.classList.remove("v-tour--active"),i.value=-1},T=()=>{o.value.onSkip(),S()},C=()=>{o.value.onFinish(),S()},O=I=>{switch(n.value.debug&&console.log("[Vue Tour] A keyup event occured:",I),I.keyCode){case ff.ARROW_RIGHT:P("ARROW_RIGHT")&&_();break;case ff.ARROW_LEFT:P("ARROW_LEFT")&&y();break;case ff.ESCAPE:P("ESCAPE")&&S();break}},P=I=>{const{enabledNavigationKeys:N}=n.value;return N.hasOwnProperty(I)?N[I]:!0};return Rt(()=>{const I=Xi();I.appContext.config.globalProperties.$tours[e.name]={step:m,start:v,isRunning:l,customOptions:n,currentStep:i,isFirst:c,isLast:d,previousStep:y,nextStep:_,stop:S,skip:T,finish:C,numberOfSteps:p},n.value.useKeyboardNavigation&&window.addEventListener("keyup",O)}),rl(()=>{n.value.useKeyboardNavigation&&window.removeEventListener("keyup",O)}),{customOptions:n,currentStep:i,isFirst:c,isLast:d,previousStep:y,nextStep:_,stop:S,skip:T,finish:C}}},hP={class:"v-tour"};function fP(e,t,i,n,o,l){const c=eo("v-step");return B(),G("div",hP,[xi(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]?(B(),ct(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"])):Me("",!0)])])}var Tb=A1(dP,[["render",fP]]),Fn="top",os="bottom",as="right",Vn="left",Qg="auto",Vc=[Fn,os,as,Vn],Wa="start",wc="end",pP="clippingParents",k1="viewport",Sl="popper",gP="reference",Ib=Vc.reduce(function(e,t){return e.concat([t+"-"+Wa,t+"-"+wc])},[]),T1=[].concat(Vc,[Qg]).reduce(function(e,t){return e.concat([t,t+"-"+Wa,t+"-"+wc])},[]),mP="beforeRead",vP="read",bP="afterRead",yP="beforeMain",xP="main",wP="afterMain",_P="beforeWrite",SP="write",EP="afterWrite",CP=[mP,vP,bP,yP,xP,wP,_P,SP,EP];function Gs(e){return e?(e.nodeName||"").toLowerCase():null}function hs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wo(e){var t=hs(e).Element;return e instanceof t||e instanceof Element}function ns(e){var t=hs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function em(e){if(typeof ShadowRoot>"u")return!1;var t=hs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function AP(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var n=t.styles[i]||{},o=t.attributes[i]||{},l=t.elements[i];!ns(l)||!Gs(l)||(Object.assign(l.style,n),Object.keys(o).forEach(function(c){var d=o[c];d===!1?l.removeAttribute(c):l.setAttribute(c,d===!0?"":d)}))})}function kP(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 o=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},{});!ns(o)||!Gs(o)||(Object.assign(o.style,d),Object.keys(l).forEach(function(p){o.removeAttribute(p)}))})}}var TP={name:"applyStyles",enabled:!0,phase:"write",fn:AP,effect:kP,requires:["computeStyles"]};function Hs(e){return e.split("-")[0]}var $o=Math.max,Cd=Math.min,ja=Math.round;function Op(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function I1(){return!/^((?!chrome|android).)*safari/i.test(Op())}function Ya(e,t,i){t===void 0&&(t=!1),i===void 0&&(i=!1);var n=e.getBoundingClientRect(),o=1,l=1;t&&ns(e)&&(o=e.offsetWidth>0&&ja(n.width)/e.offsetWidth||1,l=e.offsetHeight>0&&ja(n.height)/e.offsetHeight||1);var c=Wo(e)?hs(e):window,d=c.visualViewport,p=!I1()&&i,m=(n.left+(p&&d?d.offsetLeft:0))/o,v=(n.top+(p&&d?d.offsetTop:0))/l,y=n.width/o,_=n.height/l;return{width:y,height:_,top:v,right:m+y,bottom:v+_,left:m,x:m,y:v}}function tm(e){var t=Ya(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 O1(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&em(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function _r(e){return hs(e).getComputedStyle(e)}function IP(e){return["table","td","th"].indexOf(Gs(e))>=0}function po(e){return((Wo(e)?e.ownerDocument:e.document)||window.document).documentElement}function bh(e){return Gs(e)==="html"?e:e.assignedSlot||e.parentNode||(em(e)?e.host:null)||po(e)}function Ob(e){return!ns(e)||_r(e).position==="fixed"?null:e.offsetParent}function OP(e){var t=/firefox/i.test(Op()),i=/Trident/i.test(Op());if(i&&ns(e)){var n=_r(e);if(n.position==="fixed")return null}var o=bh(e);for(em(o)&&(o=o.host);ns(o)&&["html","body"].indexOf(Gs(o))<0;){var l=_r(o);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 o;o=o.parentNode}return null}function zc(e){for(var t=hs(e),i=Ob(e);i&&IP(i)&&_r(i).position==="static";)i=Ob(i);return i&&(Gs(i)==="html"||Gs(i)==="body"&&_r(i).position==="static")?t:i||OP(e)||t}function im(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xl(e,t,i){return $o(e,Cd(t,i))}function PP(e,t,i){var n=Xl(e,t,i);return n>i?i:n}function P1(){return{top:0,right:0,bottom:0,left:0}}function L1(e){return Object.assign({},P1(),e)}function M1(e,t){return t.reduce(function(i,n){return i[n]=e,i},{})}var LP=function(t,i){return t=typeof t=="function"?t(Object.assign({},i.rects,{placement:i.placement})):t,L1(typeof t!="number"?t:M1(t,Vc))};function MP(e){var t,i=e.state,n=e.name,o=e.options,l=i.elements.arrow,c=i.modifiersData.popperOffsets,d=Hs(i.placement),p=im(d),m=[Vn,as].indexOf(d)>=0,v=m?"height":"width";if(!(!l||!c)){var y=LP(o.padding,i),_=tm(l),S=p==="y"?Fn:Vn,T=p==="y"?os:as,C=i.rects.reference[v]+i.rects.reference[p]-c[p]-i.rects.popper[v],O=c[p]-i.rects.reference[p],P=zc(l),I=P?p==="y"?P.clientHeight||0:P.clientWidth||0:0,N=C/2-O/2,M=y[S],D=I-_[v]-y[T],H=I/2-_[v]/2+N,Z=Xl(M,H,D),te=p;i.modifiersData[n]=(t={},t[te]=Z,t.centerOffset=Z-H,t)}}function NP(e){var t=e.state,i=e.options,n=i.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||O1(t.elements.popper,o)&&(t.elements.arrow=o))}var RP={name:"arrow",enabled:!0,phase:"main",fn:MP,effect:NP,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ua(e){return e.split("-")[1]}var DP={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $P(e){var t=e.x,i=e.y,n=window,o=n.devicePixelRatio||1;return{x:ja(t*o)/o||0,y:ja(i*o)/o||0}}function Pb(e){var t,i=e.popper,n=e.popperRect,o=e.placement,l=e.variation,c=e.offsets,d=e.position,p=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,y=e.isFixed,_=c.x,S=_===void 0?0:_,T=c.y,C=T===void 0?0:T,O=typeof v=="function"?v({x:S,y:C}):{x:S,y:C};S=O.x,C=O.y;var P=c.hasOwnProperty("x"),I=c.hasOwnProperty("y"),N=Vn,M=Fn,D=window;if(m){var H=zc(i),Z="clientHeight",te="clientWidth";if(H===hs(i)&&(H=po(i),_r(H).position!=="static"&&d==="absolute"&&(Z="scrollHeight",te="scrollWidth")),H=H,o===Fn||(o===Vn||o===as)&&l===wc){M=os;var Y=y&&H===D&&D.visualViewport?D.visualViewport.height:H[Z];C-=Y-n.height,C*=p?1:-1}if(o===Vn||(o===Fn||o===os)&&l===wc){N=as;var ee=y&&H===D&&D.visualViewport?D.visualViewport.width:H[te];S-=ee-n.width,S*=p?1:-1}}var le=Object.assign({position:d},m&&DP),oe=v===!0?$P({x:S,y:C}):{x:S,y:C};if(S=oe.x,C=oe.y,p){var pe;return Object.assign({},le,(pe={},pe[M]=I?"0":"",pe[N]=P?"0":"",pe.transform=(D.devicePixelRatio||1)<=1?"translate("+S+"px, "+C+"px)":"translate3d("+S+"px, "+C+"px, 0)",pe))}return Object.assign({},le,(t={},t[M]=I?C+"px":"",t[N]=P?S+"px":"",t.transform="",t))}function FP(e){var t=e.state,i=e.options,n=i.gpuAcceleration,o=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:Hs(t.placement),variation:Ua(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Pb(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,Pb(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 VP={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:FP,data:{}},gu={passive:!0};function zP(e){var t=e.state,i=e.instance,n=e.options,o=n.scroll,l=o===void 0?!0:o,c=n.resize,d=c===void 0?!0:c,p=hs(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&m.forEach(function(v){v.addEventListener("scroll",i.update,gu)}),d&&p.addEventListener("resize",i.update,gu),function(){l&&m.forEach(function(v){v.removeEventListener("scroll",i.update,gu)}),d&&p.removeEventListener("resize",i.update,gu)}}var HP={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zP,data:{}},BP={left:"right",right:"left",bottom:"top",top:"bottom"};function Bu(e){return e.replace(/left|right|bottom|top/g,function(t){return BP[t]})}var WP={start:"end",end:"start"};function Lb(e){return e.replace(/start|end/g,function(t){return WP[t]})}function nm(e){var t=hs(e),i=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:i,scrollTop:n}}function sm(e){return Ya(po(e)).left+nm(e).scrollLeft}function jP(e,t){var i=hs(e),n=po(e),o=i.visualViewport,l=n.clientWidth,c=n.clientHeight,d=0,p=0;if(o){l=o.width,c=o.height;var m=I1();(m||!m&&t==="fixed")&&(d=o.offsetLeft,p=o.offsetTop)}return{width:l,height:c,x:d+sm(e),y:p}}function YP(e){var t,i=po(e),n=nm(e),o=(t=e.ownerDocument)==null?void 0:t.body,l=$o(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=$o(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),d=-n.scrollLeft+sm(e),p=-n.scrollTop;return _r(o||i).direction==="rtl"&&(d+=$o(i.clientWidth,o?o.clientWidth:0)-l),{width:l,height:c,x:d,y:p}}function rm(e){var t=_r(e),i=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function N1(e){return["html","body","#document"].indexOf(Gs(e))>=0?e.ownerDocument.body:ns(e)&&rm(e)?e:N1(bh(e))}function Kl(e,t){var i;t===void 0&&(t=[]);var n=N1(e),o=n===((i=e.ownerDocument)==null?void 0:i.body),l=hs(n),c=o?[l].concat(l.visualViewport||[],rm(n)?n:[]):n,d=t.concat(c);return o?d:d.concat(Kl(bh(c)))}function Pp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function UP(e,t){var i=Ya(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 Mb(e,t,i){return t===k1?Pp(jP(e,i)):Wo(t)?UP(t,i):Pp(YP(po(e)))}function GP(e){var t=Kl(bh(e)),i=["absolute","fixed"].indexOf(_r(e).position)>=0,n=i&&ns(e)?zc(e):e;return Wo(n)?t.filter(function(o){return Wo(o)&&O1(o,n)&&Gs(o)!=="body"}):[]}function XP(e,t,i,n){var o=t==="clippingParents"?GP(e):[].concat(t),l=[].concat(o,[i]),c=l[0],d=l.reduce(function(p,m){var v=Mb(e,m,n);return p.top=$o(v.top,p.top),p.right=Cd(v.right,p.right),p.bottom=Cd(v.bottom,p.bottom),p.left=$o(v.left,p.left),p},Mb(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 R1(e){var t=e.reference,i=e.element,n=e.placement,o=n?Hs(n):null,l=n?Ua(n):null,c=t.x+t.width/2-i.width/2,d=t.y+t.height/2-i.height/2,p;switch(o){case Fn:p={x:c,y:t.y-i.height};break;case os:p={x:c,y:t.y+t.height};break;case as:p={x:t.x+t.width,y:d};break;case Vn:p={x:t.x-i.width,y:d};break;default:p={x:t.x,y:t.y}}var m=o?im(o):null;if(m!=null){var v=m==="y"?"height":"width";switch(l){case Wa:p[m]=p[m]-(t[v]/2-i[v]/2);break;case wc:p[m]=p[m]+(t[v]/2-i[v]/2);break}}return p}function _c(e,t){t===void 0&&(t={});var i=t,n=i.placement,o=n===void 0?e.placement:n,l=i.strategy,c=l===void 0?e.strategy:l,d=i.boundary,p=d===void 0?pP:d,m=i.rootBoundary,v=m===void 0?k1:m,y=i.elementContext,_=y===void 0?Sl:y,S=i.altBoundary,T=S===void 0?!1:S,C=i.padding,O=C===void 0?0:C,P=L1(typeof O!="number"?O:M1(O,Vc)),I=_===Sl?gP:Sl,N=e.rects.popper,M=e.elements[T?I:_],D=XP(Wo(M)?M:M.contextElement||po(e.elements.popper),p,v,c),H=Ya(e.elements.reference),Z=R1({reference:H,element:N,strategy:"absolute",placement:o}),te=Pp(Object.assign({},N,Z)),Y=_===Sl?te:H,ee={top:D.top-Y.top+P.top,bottom:Y.bottom-D.bottom+P.bottom,left:D.left-Y.left+P.left,right:Y.right-D.right+P.right},le=e.modifiersData.offset;if(_===Sl&&le){var oe=le[o];Object.keys(ee).forEach(function(pe){var ge=[as,os].indexOf(pe)>=0?1:-1,Ce=[Fn,os].indexOf(pe)>=0?"y":"x";ee[pe]+=oe[Ce]*ge})}return ee}function KP(e,t){t===void 0&&(t={});var i=t,n=i.placement,o=i.boundary,l=i.rootBoundary,c=i.padding,d=i.flipVariations,p=i.allowedAutoPlacements,m=p===void 0?T1:p,v=Ua(n),y=v?d?Ib:Ib.filter(function(T){return Ua(T)===v}):Vc,_=y.filter(function(T){return m.indexOf(T)>=0});_.length===0&&(_=y);var S=_.reduce(function(T,C){return T[C]=_c(e,{placement:C,boundary:o,rootBoundary:l,padding:c})[Hs(C)],T},{});return Object.keys(S).sort(function(T,C){return S[T]-S[C]})}function qP(e){if(Hs(e)===Qg)return[];var t=Bu(e);return[Lb(e),t,Lb(t)]}function ZP(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=i.mainAxis,l=o===void 0?!0:o,c=i.altAxis,d=c===void 0?!0:c,p=i.fallbackPlacements,m=i.padding,v=i.boundary,y=i.rootBoundary,_=i.altBoundary,S=i.flipVariations,T=S===void 0?!0:S,C=i.allowedAutoPlacements,O=t.options.placement,P=Hs(O),I=P===O,N=p||(I||!T?[Bu(O)]:qP(O)),M=[O].concat(N).reduce(function(st,Oe){return st.concat(Hs(Oe)===Qg?KP(t,{placement:Oe,boundary:v,rootBoundary:y,padding:m,flipVariations:T,allowedAutoPlacements:C}):Oe)},[]),D=t.rects.reference,H=t.rects.popper,Z=new Map,te=!0,Y=M[0],ee=0;ee=0,Ce=ge?"width":"height",ue=_c(t,{placement:le,boundary:v,rootBoundary:y,altBoundary:_,padding:m}),ie=ge?pe?as:Vn:pe?os:Fn;D[Ce]>H[Ce]&&(ie=Bu(ie));var X=Bu(ie),fe=[];if(l&&fe.push(ue[oe]<=0),d&&fe.push(ue[ie]<=0,ue[X]<=0),fe.every(function(st){return st})){Y=le,te=!1;break}Z.set(le,fe)}if(te)for(var me=T?3:1,de=function(Oe){var Pe=M.find(function(we){var De=Z.get(we);if(De)return De.slice(0,Oe).every(function(Se){return Se})});if(Pe)return Y=Pe,"break"},ye=me;ye>0;ye--){var ze=de(ye);if(ze==="break")break}t.placement!==Y&&(t.modifiersData[n]._skip=!0,t.placement=Y,t.reset=!0)}}var JP={name:"flip",enabled:!0,phase:"main",fn:ZP,requiresIfExists:["offset"],data:{_skip:!1}};function Nb(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 Rb(e){return[Fn,as,os,Vn].some(function(t){return e[t]>=0})}function QP(e){var t=e.state,i=e.name,n=t.rects.reference,o=t.rects.popper,l=t.modifiersData.preventOverflow,c=_c(t,{elementContext:"reference"}),d=_c(t,{altBoundary:!0}),p=Nb(c,n),m=Nb(d,o,l),v=Rb(p),y=Rb(m);t.modifiersData[i]={referenceClippingOffsets:p,popperEscapeOffsets:m,isReferenceHidden:v,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":y})}var eL={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:QP};function tL(e,t,i){var n=Hs(e),o=[Vn,Fn].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)*o,[Vn,as].indexOf(n)>=0?{x:d,y:c}:{x:c,y:d}}function iL(e){var t=e.state,i=e.options,n=e.name,o=i.offset,l=o===void 0?[0,0]:o,c=T1.reduce(function(v,y){return v[y]=tL(y,t.rects,l),v},{}),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 nL={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:iL};function sL(e){var t=e.state,i=e.name;t.modifiersData[i]=R1({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var rL={name:"popperOffsets",enabled:!0,phase:"read",fn:sL,data:{}};function oL(e){return e==="x"?"y":"x"}function aL(e){var t=e.state,i=e.options,n=e.name,o=i.mainAxis,l=o===void 0?!0:o,c=i.altAxis,d=c===void 0?!1:c,p=i.boundary,m=i.rootBoundary,v=i.altBoundary,y=i.padding,_=i.tether,S=_===void 0?!0:_,T=i.tetherOffset,C=T===void 0?0:T,O=_c(t,{boundary:p,rootBoundary:m,padding:y,altBoundary:v}),P=Hs(t.placement),I=Ua(t.placement),N=!I,M=im(P),D=oL(M),H=t.modifiersData.popperOffsets,Z=t.rects.reference,te=t.rects.popper,Y=typeof C=="function"?C(Object.assign({},t.rects,{placement:t.placement})):C,ee=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),le=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,oe={x:0,y:0};if(H){if(l){var pe,ge=M==="y"?Fn:Vn,Ce=M==="y"?os:as,ue=M==="y"?"height":"width",ie=H[M],X=ie+O[ge],fe=ie-O[Ce],me=S?-te[ue]/2:0,de=I===Wa?Z[ue]:te[ue],ye=I===Wa?-te[ue]:-Z[ue],ze=t.elements.arrow,st=S&&ze?tm(ze):{width:0,height:0},Oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:P1(),Pe=Oe[ge],we=Oe[Ce],De=Xl(0,Z[ue],st[ue]),Se=N?Z[ue]/2-me-De-Pe-ee.mainAxis:de-De-Pe-ee.mainAxis,Ie=N?-Z[ue]/2+me+De+we+ee.mainAxis:ye+De+we+ee.mainAxis,Fe=t.elements.arrow&&zc(t.elements.arrow),Ge=Fe?M==="y"?Fe.clientTop||0:Fe.clientLeft||0:0,he=(pe=le==null?void 0:le[M])!=null?pe:0,se=ie+Se-he-Ge,Te=ie+Ie-he,Ke=Xl(S?Cd(X,se):X,ie,S?$o(fe,Te):fe);H[M]=Ke,oe[M]=Ke-ie}if(d){var Be,Qe=M==="x"?Fn:Vn,ht=M==="x"?os:as,ae=H[D],ce=D==="y"?"height":"width",ke=ae+O[Qe],et=ae-O[ht],nt=[Fn,Vn].indexOf(P)!==-1,tt=(Be=le==null?void 0:le[D])!=null?Be:0,Re=nt?ke:ae-Z[ce]-te[ce]-tt+ee.altAxis,Ye=nt?ae+Z[ce]+te[ce]-tt-ee.altAxis:et,St=S&&nt?PP(Re,ae,Ye):Xl(S?Re:ke,ae,S?Ye:et);H[D]=St,oe[D]=St-ae}t.modifiersData[n]=oe}}var lL={name:"preventOverflow",enabled:!0,phase:"main",fn:aL,requiresIfExists:["offset"]};function cL(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function uL(e){return e===hs(e)||!ns(e)?nm(e):cL(e)}function dL(e){var t=e.getBoundingClientRect(),i=ja(t.width)/e.offsetWidth||1,n=ja(t.height)/e.offsetHeight||1;return i!==1||n!==1}function hL(e,t,i){i===void 0&&(i=!1);var n=ns(t),o=ns(t)&&dL(t),l=po(t),c=Ya(e,o,i),d={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(n||!n&&!i)&&((Gs(t)!=="body"||rm(l))&&(d=uL(t)),ns(t)?(p=Ya(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):l&&(p.x=sm(l))),{x:c.left+d.scrollLeft-p.x,y:c.top+d.scrollTop-p.y,width:c.width,height:c.height}}function fL(e){var t=new Map,i=new Set,n=[];e.forEach(function(l){t.set(l.name,l)});function o(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&&o(p)}}),n.push(l)}return e.forEach(function(l){i.has(l.name)||o(l)}),n}function pL(e){var t=fL(e);return CP.reduce(function(i,n){return i.concat(t.filter(function(o){return o.phase===n}))},[])}function gL(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}function mL(e){var t=e.reduce(function(i,n){var o=i[n.name];return i[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,i},{});return Object.keys(t).map(function(i){return t[i]})}var Db={placement:"bottom",modifiers:[],strategy:"absolute"};function $b(){for(var e=arguments.length,t=new Array(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:{};switch(p=N.duration||1e3,o=N.offset||0,_=N.callback,l=N.easing||xL,c=N.a11y||!1,i=S(),typeof I>"u"?"undefined":Fb(I)){case"number":t=void 0,c=!1,n=i+I;break;case"object":t=I,n=T(t);break;case"string":t=document.querySelector(I),n=T(t);break}switch(d=n-i+o,Fb(N.duration)){case"number":p=N.duration;break;case"function":p=N.duration(d);break}window.requestAnimationFrame(C)}return P},_L=wL();function SL(e,t){for(;e.length({...uP,highlight:e.highlight,enabledButtons:Object.assign({},e.enabledButtons),...e.step.params})),l=Ee(()=>!e.step.target),c=Ae(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(),v(),yL(n,c.value,o.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(o.value.enableScrolling)if(e.step.duration||e.step.offset){let S={duration:e.step.duration||1e3,offset:e.step.offset||0,callback:void 0,a11y:!1};_L(n,S)}else n.scrollIntoView({behavior:"smooth"})},m=()=>(e.debug&&console.log(`[Vue Tour] Highlight is ${o.value.highlight?"enabled":"disabled"} for .v-step[id="${i}"]`),o.value.highlight),v=()=>{if(m()){document.body.classList.add(tr.CLASSES.ACTIVE);const S=window.getComputedStyle(n).getPropertyValue("transition");S!=="all 0s ease 0s"&&(n.style.transition=`${S}, ${tr.TRANSITION}`),n.classList.add(tr.CLASSES.TARGET_HIGHLIGHTED),n.style.position||n.classList.add(tr.CLASSES.TARGET_RELATIVE)}else document.body.classList.remove(tr.CLASSES.ACTIVE)},y=()=>{if(m()){const S=n.style.transition;n.classList.remove(tr.CLASSES.TARGET_HIGHLIGHTED),n.classList.remove(tr.CLASSES.TARGET_RELATIVE),S.includes(tr.TRANSITION)&&setTimeout(()=>{n.style.transition=S.replace(`, ${tr.TRANSITION}`,"")},0)}},_=S=>o.value.enabledButtons.hasOwnProperty(S)?o.value.enabledButtons[S]:!0;return Rt(d),ds(y),{hash:i,isButtonEnabled:_,VStep:c,isSticky:l}}},IL=["id"],OL={key:0,class:"v-step__header"},PL=["innerHTML"],LL={class:"v-step__content"},ML=["innerHTML"],NL={key:1},RL={class:"v-step__buttons"};function DL(e,t,i,n,o,l){return B(),G("div",{class:mt([{"v-step--sticky":n.isSticky},"v-step"]),id:"v-step-"+n.hash,ref:"VStep"},[xi(e.$slots,"header",{},()=>[i.step.header?(B(),G("div",OL,[i.step.header.title?(B(),G("div",{key:0,innerHTML:i.step.header.title},null,8,PL)):Me("",!0)])):Me("",!0)],!0),xi(e.$slots,"content",{},()=>[z("div",LL,[i.step.content?(B(),G("div",{key:0,innerHTML:i.step.content},null,8,ML)):(B(),G("div",NL,"props is a demo step! The id of props step is "+Ne(n.hash)+" and it targets "+Ne(i.step.target)+".",1))])],!0),xi(e.$slots,"actions",{},()=>[z("div",RL,[!i.isLast&&n.isButtonEnabled("buttonSkip")?(B(),G("button",{key:0,onClick:t[0]||(t[0]=li((...c)=>i.skip&&i.skip(...c),["prevent"])),class:"v-step__button v-step__button-skip"},Ne(i.labels.buttonSkip),1)):Me("",!0),!i.isFirst&&n.isButtonEnabled("buttonPrevious")?(B(),G("button",{key:1,onClick:t[1]||(t[1]=li((...c)=>i.previousStep&&i.previousStep(...c),["prevent"])),class:"v-step__button v-step__button-previous"},Ne(i.labels.buttonPrevious),1)):Me("",!0),!i.isLast&&n.isButtonEnabled("buttonNext")?(B(),G("button",{key:2,onClick:t[2]||(t[2]=li((...c)=>i.nextStep&&i.nextStep(...c),["prevent"])),class:"v-step__button v-step__button-next"},Ne(i.labels.buttonNext),1)):Me("",!0),i.isLast&&n.isButtonEnabled("buttonStop")?(B(),G("button",{key:3,onClick:t[3]||(t[3]=li((...c)=>i.finish&&i.finish(...c),["prevent"])),class:"v-step__button v-step__button-stop"},Ne(i.labels.buttonStop),1)):Me("",!0)])],!0),z("div",{class:mt(["v-step__arrow",{"v-step__arrow--dark":i.step.header&&i.step.header.title}]),"data-popper-arrow":""},null,2)],10,IL)}var Vb=A1(TL,[["render",DL],["__scopeId","data-v-da2d894c"]]);const $L=e=>{e.config.globalProperties.$tours={},e.component(Tb.name,Tb),e.component(Vb.name,Vb)};/*! + * vue-router v4.1.6 + * (c) 2022 Eduardo San Martin Morote + * @license MIT + */const ya=typeof window<"u";function FL(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const mi=Object.assign;function pf(e,t){const i={};for(const n in t){const o=t[n];i[n]=Os(o)?o.map(e):e(o)}return i}const ql=()=>{},Os=Array.isArray,VL=/\/$/,zL=e=>e.replace(VL,"");function gf(e,t,i="/"){let n,o={},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),o=e(l)),d>-1&&(n=n||t.slice(0,d),c=t.slice(d,t.length)),n=jL(n??t,i),{fullPath:n+(l&&"?")+l+c,path:n,query:o,hash:c}}function HL(e,t){const i=t.query?e(t.query):"";return t.path+(i&&"?")+i+(t.hash||"")}function zb(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function BL(e,t,i){const n=t.matched.length-1,o=i.matched.length-1;return n>-1&&n===o&&Ga(t.matched[n],i.matched[o])&&$1(t.params,i.params)&&e(t.query)===e(i.query)&&t.hash===i.hash}function Ga(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function $1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!WL(e[i],t[i]))return!1;return!0}function WL(e,t){return Os(e)?Hb(e,t):Os(t)?Hb(t,e):e===t}function Hb(e,t){return Os(t)?e.length===t.length&&e.every((i,n)=>i===t[n]):e.length===1&&e[0]===t}function jL(e,t){if(e.startsWith("/"))return e;if(!e)return t;const i=t.split("/"),n=e.split("/");let o=i.length-1,l,c;for(l=0;l1&&o--;else break;return i.slice(0,o).join("/")+"/"+n.slice(l-(l===n.length?1:0)).join("/")}var Sc;(function(e){e.pop="pop",e.push="push"})(Sc||(Sc={}));var Zl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Zl||(Zl={}));function YL(e){if(!e)if(ya){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),zL(e)}const UL=/^[^#]+#/;function GL(e,t){return e.replace(UL,"#")+t}function XL(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 yh=()=>({left:window.pageXOffset,top:window.pageYOffset});function KL(e){let t;if("el"in e){const i=e.el,n=typeof i=="string"&&i.startsWith("#"),o=typeof i=="string"?n?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!o)return;t=XL(o,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 Bb(e,t){return(history.state?history.state.position-t:-1)+e}const Lp=new Map;function qL(e,t){Lp.set(e,t)}function ZL(e){const t=Lp.get(e);return Lp.delete(e),t}let JL=()=>location.protocol+"//"+location.host;function F1(e,t){const{pathname:i,search:n,hash:o}=t,l=e.indexOf("#");if(l>-1){let d=o.includes(e.slice(l))?e.slice(l).length:1,p=o.slice(d);return p[0]!=="/"&&(p="/"+p),zb(p,"")}return zb(i,e)+n+o}function QL(e,t,i,n){let o=[],l=[],c=null;const d=({state:_})=>{const S=F1(e,location),T=i.value,C=t.value;let O=0;if(_){if(i.value=S,t.value=_,c&&c===T){c=null;return}O=C?_.position-C.position:0}else n(S);o.forEach(P=>{P(i.value,T,{delta:O,type:Sc.pop,direction:O?O>0?Zl.forward:Zl.back:Zl.unknown})})};function p(){c=i.value}function m(_){o.push(_);const S=()=>{const T=o.indexOf(_);T>-1&&o.splice(T,1)};return l.push(S),S}function v(){const{history:_}=window;_.state&&_.replaceState(mi({},_.state,{scroll:yh()}),"")}function y(){for(const _ of l)_();l=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",v),{pauseListeners:p,listen:m,destroy:y}}function Wb(e,t,i,n=!1,o=!1){return{back:e,current:t,forward:i,replaced:n,position:window.history.length,scroll:o?yh():null}}function eM(e){const{history:t,location:i}=window,n={value:F1(e,i)},o={value:t.state};o.value||l(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(p,m,v){const y=e.indexOf("#"),_=y>-1?(i.host&&document.querySelector("base")?e:e.slice(y))+p:JL()+e+p;try{t[v?"replaceState":"pushState"](m,"",_),o.value=m}catch(S){console.error(S),i[v?"replace":"assign"](_)}}function c(p,m){const v=mi({},t.state,Wb(o.value.back,p,o.value.forward,!0),m,{position:o.value.position});l(p,v,!0),n.value=p}function d(p,m){const v=mi({},o.value,t.state,{forward:p,scroll:yh()});l(v.current,v,!0);const y=mi({},Wb(n.value,p,null),{position:v.position+1},m);l(p,y,!1),n.value=p}return{location:n,state:o,push:d,replace:c}}function tM(e){e=YL(e);const t=eM(e),i=QL(e,t.state,t.location,t.replace);function n(l,c=!0){c||i.pauseListeners(),history.go(l)}const o=mi({location:"",base:e,go:n,createHref:GL.bind(null,e)},t,i);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function iM(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),tM(e)}function nM(e){return typeof e=="string"||e&&typeof e=="object"}function V1(e){return typeof e=="string"||typeof e=="symbol"}const Lr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},z1=Symbol("");var jb;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(jb||(jb={}));function Xa(e,t){return mi(new Error,{type:e,[z1]:!0},t)}function nr(e,t){return e instanceof Error&&z1 in e&&(t==null||!!(e.type&t))}const Yb="[^/]+?",sM={sensitive:!1,strict:!1,start:!0,end:!0},rM=/[.+*?^${}()[\]/\\]/g;function oM(e,t){const i=mi({},sM,t),n=[];let o=i.start?"^":"";const l=[];for(const m of e){const v=m.length?[]:[90];i.strict&&!m.length&&(o+="/");for(let y=0;yt.length?t.length===1&&t[0]===40+40?1:-1:0}function lM(e,t){let i=0;const n=e.score,o=t.score;for(;i0&&t[t.length-1]<0}const cM={type:0,value:""},uM=/[a-zA-Z0-9_]/;function dM(e){if(!e)return[[]];if(e==="/")return[[cM]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(S){throw new Error(`ERR (${i})/"${m}": ${S}`)}let i=0,n=i;const o=[];let l;function c(){l&&o.push(l),l=[]}let d=0,p,m="",v="";function y(){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:v,repeatable:p==="*"||p==="+",optional:p==="*"||p==="?"})):t("Invalid state to consume buffer"),m="")}function _(){m+=p}for(;d{c(I)}:ql}function c(v){if(V1(v)){const y=n.get(v);y&&(n.delete(v),i.splice(i.indexOf(y),1),y.children.forEach(c),y.alias.forEach(c))}else{const y=i.indexOf(v);y>-1&&(i.splice(y,1),v.record.name&&n.delete(v.record.name),v.children.forEach(c),v.alias.forEach(c))}}function d(){return i}function p(v){let y=0;for(;y=0&&(v.record.path!==i[y].record.path||!H1(v,i[y]));)y++;i.splice(y,0,v),v.record.name&&!Xb(v)&&n.set(v.record.name,v)}function m(v,y){let _,S={},T,C;if("name"in v&&v.name){if(_=n.get(v.name),!_)throw Xa(1,{location:v});C=_.record.name,S=mi(Gb(y.params,_.keys.filter(I=>!I.optional).map(I=>I.name)),v.params&&Gb(v.params,_.keys.map(I=>I.name))),T=_.stringify(S)}else if("path"in v)T=v.path,_=i.find(I=>I.re.test(T)),_&&(S=_.parse(T),C=_.record.name);else{if(_=y.name?n.get(y.name):i.find(I=>I.re.test(y.path)),!_)throw Xa(1,{location:v,currentLocation:y});C=_.record.name,S=mi({},y.params,v.params),T=_.stringify(S)}const O=[];let P=_;for(;P;)O.unshift(P.record),P=P.parent;return{name:C,path:T,params:S,matched:O,meta:mM(O)}}return e.forEach(v=>l(v)),{addRoute:l,resolve:m,removeRoute:c,getRoutes:d,getRecordMatcher:o}}function Gb(e,t){const i={};for(const n of t)n in e&&(i[n]=e[n]);return i}function pM(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:gM(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 gM(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 Xb(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mM(e){return e.reduce((t,i)=>mi(t,i.meta),{})}function Kb(e,t){const i={};for(const n in e)i[n]=n in t?t[n]:e[n];return i}function H1(e,t){return t.children.some(i=>i===e||H1(e,i))}const B1=/#/g,vM=/&/g,bM=/\//g,yM=/=/g,xM=/\?/g,W1=/\+/g,wM=/%5B/g,_M=/%5D/g,j1=/%5E/g,SM=/%60/g,Y1=/%7B/g,EM=/%7C/g,U1=/%7D/g,CM=/%20/g;function om(e){return encodeURI(""+e).replace(EM,"|").replace(wM,"[").replace(_M,"]")}function AM(e){return om(e).replace(Y1,"{").replace(U1,"}").replace(j1,"^")}function Mp(e){return om(e).replace(W1,"%2B").replace(CM,"+").replace(B1,"%23").replace(vM,"%26").replace(SM,"`").replace(Y1,"{").replace(U1,"}").replace(j1,"^")}function kM(e){return Mp(e).replace(yM,"%3D")}function TM(e){return om(e).replace(B1,"%23").replace(xM,"%3F")}function IM(e){return e==null?"":TM(e).replace(bM,"%2F")}function Ad(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function OM(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;ol&&Mp(l)):[n&&Mp(n)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+i,l!=null&&(t+="="+l))})}return t}function PM(e){const t={};for(const i in e){const n=e[i];n!==void 0&&(t[i]=Os(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return t}const LM=Symbol(""),Zb=Symbol(""),am=Symbol(""),G1=Symbol(""),Np=Symbol("");function El(){let e=[];function t(n){return e.push(n),()=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)}}function i(){e=[]}return{add:t,list:()=>e,reset:i}}function Yr(e,t,i,n,o){const l=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((c,d)=>{const p=y=>{y===!1?d(Xa(4,{from:i,to:t})):y instanceof Error?d(y):nM(y)?d(Xa(2,{from:t,to:y})):(l&&n.enterCallbacks[o]===l&&typeof y=="function"&&l.push(y),c())},m=e.call(n&&n.instances[o],t,i,p);let v=Promise.resolve(m);e.length<3&&(v=v.then(p)),v.catch(y=>d(y))})}function mf(e,t,i,n){const o=[];for(const l of e)for(const c in l.components){let d=l.components[c];if(!(t!=="beforeRouteEnter"&&!l.instances[c]))if(MM(d)){const m=(d.__vccOpts||d)[t];m&&o.push(Yr(m,i,n,l,c))}else{let p=d();o.push(()=>p.then(m=>{if(!m)return Promise.reject(new Error(`Couldn't resolve component "${c}" at "${l.path}"`));const v=FL(m)?m.default:m;l.components[c]=v;const _=(v.__vccOpts||v)[t];return _&&Yr(_,i,n,l,c)()}))}}return o}function MM(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Jb(e){const t=vn(am),i=vn(G1),n=Ee(()=>t.resolve(Ue(e.to))),o=Ee(()=>{const{matched:p}=n.value,{length:m}=p,v=p[m-1],y=i.matched;if(!v||!y.length)return-1;const _=y.findIndex(Ga.bind(null,v));if(_>-1)return _;const S=Qb(p[m-2]);return m>1&&Qb(v)===S&&y[y.length-1].path!==S?y.findIndex(Ga.bind(null,p[m-2])):_}),l=Ee(()=>o.value>-1&&$M(i.params,n.value.params)),c=Ee(()=>o.value>-1&&o.value===i.matched.length-1&&$1(i.params,n.value.params));function d(p={}){return DM(p)?t[Ue(e.replace)?"replace":"push"](Ue(e.to)).catch(ql):Promise.resolve()}return{route:n,href:Ee(()=>n.value.href),isActive:l,isExactActive:c,navigate:d}}const NM=ot({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:Jb,setup(e,{slots:t}){const i=ti(Jb(e)),{options:n}=vn(am),o=Ee(()=>({[ey(e.activeClass,n.linkActiveClass,"router-link-active")]:i.isActive,[ey(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:i.isExactActive}));return()=>{const l=t.default&&t.default(i);return e.custom?l:co("a",{"aria-current":i.isExactActive?e.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:o.value},l)}}}),RM=NM;function DM(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 $M(e,t){for(const i in t){const n=t[i],o=e[i];if(typeof n=="string"){if(n!==o)return!1}else if(!Os(o)||o.length!==n.length||n.some((l,c)=>l!==o[c]))return!1}return!0}function Qb(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ey=(e,t,i)=>e??t??i,FM=ot({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:i}){const n=vn(Np),o=Ee(()=>e.route||n.value),l=vn(Zb,0),c=Ee(()=>{let m=Ue(l);const{matched:v}=o.value;let y;for(;(y=v[m])&&!y.components;)m++;return m}),d=Ee(()=>o.value.matched[c.value]);pr(Zb,Ee(()=>c.value+1)),pr(LM,d),pr(Np,o);const p=Ae();return ft(()=>[p.value,d.value,e.name],([m,v,y],[_,S,T])=>{v&&(v.instances[y]=m,S&&S!==v&&m&&m===_&&(v.leaveGuards.size||(v.leaveGuards=S.leaveGuards),v.updateGuards.size||(v.updateGuards=S.updateGuards))),m&&v&&(!S||!Ga(v,S)||!_)&&(v.enterCallbacks[y]||[]).forEach(C=>C(m))},{flush:"post"}),()=>{const m=o.value,v=e.name,y=d.value,_=y&&y.components[v];if(!_)return ty(i.default,{Component:_,route:m});const S=y.props[v],T=S?S===!0?m.params:typeof S=="function"?S(m):S:null,O=co(_,mi({},T,t,{onVnodeUnmounted:P=>{P.component.isUnmounted&&(y.instances[v]=null)},ref:p}));return ty(i.default,{Component:O,route:m})||O}}});function ty(e,t){if(!e)return null;const i=e(t);return i.length===1?i[0]:i}const X1=FM;function VM(e){const t=fM(e.routes,e),i=e.parseQuery||OM,n=e.stringifyQuery||qb,o=e.history,l=El(),c=El(),d=El(),p=on(Lr);let m=Lr;ya&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=pf.bind(null,Oe=>""+Oe),y=pf.bind(null,IM),_=pf.bind(null,Ad);function S(Oe,Pe){let we,De;return V1(Oe)?(we=t.getRecordMatcher(Oe),De=Pe):De=Oe,t.addRoute(De,we)}function T(Oe){const Pe=t.getRecordMatcher(Oe);Pe&&t.removeRoute(Pe)}function C(){return t.getRoutes().map(Oe=>Oe.record)}function O(Oe){return!!t.getRecordMatcher(Oe)}function P(Oe,Pe){if(Pe=mi({},Pe||p.value),typeof Oe=="string"){const Ge=gf(i,Oe,Pe.path),he=t.resolve({path:Ge.path},Pe),se=o.createHref(Ge.fullPath);return mi(Ge,he,{params:_(he.params),hash:Ad(Ge.hash),redirectedFrom:void 0,href:se})}let we;if("path"in Oe)we=mi({},Oe,{path:gf(i,Oe.path,Pe.path).path});else{const Ge=mi({},Oe.params);for(const he in Ge)Ge[he]==null&&delete Ge[he];we=mi({},Oe,{params:y(Oe.params)}),Pe.params=y(Pe.params)}const De=t.resolve(we,Pe),Se=Oe.hash||"";De.params=v(_(De.params));const Ie=HL(n,mi({},Oe,{hash:AM(Se),path:De.path})),Fe=o.createHref(Ie);return mi({fullPath:Ie,hash:Se,query:n===qb?PM(Oe.query):Oe.query||{}},De,{redirectedFrom:void 0,href:Fe})}function I(Oe){return typeof Oe=="string"?gf(i,Oe,p.value.path):mi({},Oe)}function N(Oe,Pe){if(m!==Oe)return Xa(8,{from:Pe,to:Oe})}function M(Oe){return Z(Oe)}function D(Oe){return M(mi(I(Oe),{replace:!0}))}function H(Oe){const Pe=Oe.matched[Oe.matched.length-1];if(Pe&&Pe.redirect){const{redirect:we}=Pe;let De=typeof we=="function"?we(Oe):we;return typeof De=="string"&&(De=De.includes("?")||De.includes("#")?De=I(De):{path:De},De.params={}),mi({query:Oe.query,hash:Oe.hash,params:"path"in De?{}:Oe.params},De)}}function Z(Oe,Pe){const we=m=P(Oe),De=p.value,Se=Oe.state,Ie=Oe.force,Fe=Oe.replace===!0,Ge=H(we);if(Ge)return Z(mi(I(Ge),{state:typeof Ge=="object"?mi({},Se,Ge.state):Se,force:Ie,replace:Fe}),Pe||we);const he=we;he.redirectedFrom=Pe;let se;return!Ie&&BL(n,De,we)&&(se=Xa(16,{to:he,from:De}),me(De,De,!0,!1)),(se?Promise.resolve(se):Y(he,De)).catch(Te=>nr(Te)?nr(Te,2)?Te:fe(Te):ie(Te,he,De)).then(Te=>{if(Te){if(nr(Te,2))return Z(mi({replace:Fe},I(Te.to),{state:typeof Te.to=="object"?mi({},Se,Te.to.state):Se,force:Ie}),Pe||he)}else Te=le(he,De,!0,Fe,Se);return ee(he,De,Te),Te})}function te(Oe,Pe){const we=N(Oe,Pe);return we?Promise.reject(we):Promise.resolve()}function Y(Oe,Pe){let we;const[De,Se,Ie]=zM(Oe,Pe);we=mf(De.reverse(),"beforeRouteLeave",Oe,Pe);for(const Ge of De)Ge.leaveGuards.forEach(he=>{we.push(Yr(he,Oe,Pe))});const Fe=te.bind(null,Oe,Pe);return we.push(Fe),ca(we).then(()=>{we=[];for(const Ge of l.list())we.push(Yr(Ge,Oe,Pe));return we.push(Fe),ca(we)}).then(()=>{we=mf(Se,"beforeRouteUpdate",Oe,Pe);for(const Ge of Se)Ge.updateGuards.forEach(he=>{we.push(Yr(he,Oe,Pe))});return we.push(Fe),ca(we)}).then(()=>{we=[];for(const Ge of Oe.matched)if(Ge.beforeEnter&&!Pe.matched.includes(Ge))if(Os(Ge.beforeEnter))for(const he of Ge.beforeEnter)we.push(Yr(he,Oe,Pe));else we.push(Yr(Ge.beforeEnter,Oe,Pe));return we.push(Fe),ca(we)}).then(()=>(Oe.matched.forEach(Ge=>Ge.enterCallbacks={}),we=mf(Ie,"beforeRouteEnter",Oe,Pe),we.push(Fe),ca(we))).then(()=>{we=[];for(const Ge of c.list())we.push(Yr(Ge,Oe,Pe));return we.push(Fe),ca(we)}).catch(Ge=>nr(Ge,8)?Ge:Promise.reject(Ge))}function ee(Oe,Pe,we){for(const De of d.list())De(Oe,Pe,we)}function le(Oe,Pe,we,De,Se){const Ie=N(Oe,Pe);if(Ie)return Ie;const Fe=Pe===Lr,Ge=ya?history.state:{};we&&(De||Fe?o.replace(Oe.fullPath,mi({scroll:Fe&&Ge&&Ge.scroll},Se)):o.push(Oe.fullPath,Se)),p.value=Oe,me(Oe,Pe,we,Fe),fe()}let oe;function pe(){oe||(oe=o.listen((Oe,Pe,we)=>{if(!st.listening)return;const De=P(Oe),Se=H(De);if(Se){Z(mi(Se,{replace:!0}),De).catch(ql);return}m=De;const Ie=p.value;ya&&qL(Bb(Ie.fullPath,we.delta),yh()),Y(De,Ie).catch(Fe=>nr(Fe,12)?Fe:nr(Fe,2)?(Z(Fe.to,De).then(Ge=>{nr(Ge,20)&&!we.delta&&we.type===Sc.pop&&o.go(-1,!1)}).catch(ql),Promise.reject()):(we.delta&&o.go(-we.delta,!1),ie(Fe,De,Ie))).then(Fe=>{Fe=Fe||le(De,Ie,!1),Fe&&(we.delta&&!nr(Fe,8)?o.go(-we.delta,!1):we.type===Sc.pop&&nr(Fe,20)&&o.go(-1,!1)),ee(De,Ie,Fe)}).catch(ql)}))}let ge=El(),Ce=El(),ue;function ie(Oe,Pe,we){fe(Oe);const De=Ce.list();return De.length?De.forEach(Se=>Se(Oe,Pe,we)):console.error(Oe),Promise.reject(Oe)}function X(){return ue&&p.value!==Lr?Promise.resolve():new Promise((Oe,Pe)=>{ge.add([Oe,Pe])})}function fe(Oe){return ue||(ue=!Oe,pe(),ge.list().forEach(([Pe,we])=>Oe?we(Oe):Pe()),ge.reset()),Oe}function me(Oe,Pe,we,De){const{scrollBehavior:Se}=e;if(!ya||!Se)return Promise.resolve();const Ie=!we&&ZL(Bb(Oe.fullPath,0))||(De||!we)&&history.state&&history.state.scroll||null;return Ft().then(()=>Se(Oe,Pe,Ie)).then(Fe=>Fe&&KL(Fe)).catch(Fe=>ie(Fe,Oe,Pe))}const de=Oe=>o.go(Oe);let ye;const ze=new Set,st={currentRoute:p,listening:!0,addRoute:S,removeRoute:T,hasRoute:O,getRoutes:C,resolve:P,options:e,push:M,replace:D,go:de,back:()=>de(-1),forward:()=>de(1),beforeEach:l.add,beforeResolve:c.add,afterEach:d.add,onError:Ce.add,isReady:X,install(Oe){const Pe=this;Oe.component("RouterLink",RM),Oe.component("RouterView",X1),Oe.config.globalProperties.$router=Pe,Object.defineProperty(Oe.config.globalProperties,"$route",{enumerable:!0,get:()=>Ue(p)}),ya&&!ye&&p.value===Lr&&(ye=!0,M(o.location).catch(Se=>{}));const we={};for(const Se in Lr)we[Se]=Ee(()=>p.value[Se]);Oe.provide(am,Pe),Oe.provide(G1,ti(we)),Oe.provide(Np,p);const De=Oe.unmount;ze.add(Oe),Oe.unmount=function(){ze.delete(Oe),ze.size<1&&(m=Lr,oe&&oe(),oe=null,p.value=Lr,ye=!1,ue=!1),De()}}};return st}function ca(e){return e.reduce((t,i)=>t.then(()=>i()),Promise.resolve())}function zM(e,t){const i=[],n=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let c=0;cGa(m,d))?n.push(d):i.push(d));const p=e.matched[c];p&&(t.matched.find(m=>Ga(m,p))||o.push(p))}return[i,n,o]}function K1(e,t){return function(){return e.apply(t,arguments)}}const{toString:HM}=Object.prototype,{getPrototypeOf:lm}=Object,xh=(e=>t=>{const i=HM.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Ps=e=>(e=e.toLowerCase(),t=>xh(t)===e),wh=e=>t=>typeof t===e,{isArray:ll}=Array,Ec=wh("undefined");function BM(e){return e!==null&&!Ec(e)&&e.constructor!==null&&!Ec(e.constructor)&&Gn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const q1=Ps("ArrayBuffer");function WM(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&q1(e.buffer),t}const jM=wh("string"),Gn=wh("function"),Z1=wh("number"),_h=e=>e!==null&&typeof e=="object",YM=e=>e===!0||e===!1,Wu=e=>{if(xh(e)!=="object")return!1;const t=lm(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},UM=Ps("Date"),GM=Ps("File"),XM=Ps("Blob"),KM=Ps("FileList"),qM=e=>_h(e)&&Gn(e.pipe),ZM=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Gn(e.append)&&((t=xh(e))==="formdata"||t==="object"&&Gn(e.toString)&&e.toString()==="[object FormData]"))},JM=Ps("URLSearchParams"),[QM,eN,tN,iN]=["ReadableStream","Request","Response","Headers"].map(Ps),nN=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Hc(e,t,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),ll(e))for(n=0,o=e.length;n0;)if(o=i[n],t===o.toLowerCase())return o;return null}const Oo=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Q1=e=>!Ec(e)&&e!==Oo;function Rp(){const{caseless:e}=Q1(this)&&this||{},t={},i=(n,o)=>{const l=e&&J1(t,o)||o;Wu(t[l])&&Wu(n)?t[l]=Rp(t[l],n):Wu(n)?t[l]=Rp({},n):ll(n)?t[l]=n.slice():t[l]=n};for(let n=0,o=arguments.length;n(Hc(t,(o,l)=>{i&&Gn(o)?e[l]=K1(o,i):e[l]=o},{allOwnKeys:n}),e),rN=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),oN=(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)},aN=(e,t,i,n)=>{let o,l,c;const d={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)c=o[l],(!n||n(c,e,t))&&!d[c]&&(t[c]=e[c],d[c]=!0);e=i!==!1&&lm(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},lN=(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},cN=e=>{if(!e)return null;if(ll(e))return e;let t=e.length;if(!Z1(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},uN=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&lm(Uint8Array)),dN=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},hN=(e,t)=>{let i;const n=[];for(;(i=e.exec(t))!==null;)n.push(i);return n},fN=Ps("HTMLFormElement"),pN=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,n,o){return n.toUpperCase()+o}),iy=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),gN=Ps("RegExp"),e_=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),n={};Hc(i,(o,l)=>{let c;(c=t(o,l,e))!==!1&&(n[l]=c||o)}),Object.defineProperties(e,n)},mN=e=>{e_(e,(t,i)=>{if(Gn(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const n=e[i];if(Gn(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+"'")})}})},vN=(e,t)=>{const i={},n=o=>{o.forEach(l=>{i[l]=!0})};return ll(e)?n(e):n(String(e).split(t)),i},bN=()=>{},yN=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,vf="abcdefghijklmnopqrstuvwxyz",ny="0123456789",t_={DIGIT:ny,ALPHA:vf,ALPHA_DIGIT:vf+vf.toUpperCase()+ny},xN=(e=16,t=t_.ALPHA_DIGIT)=>{let i="";const{length:n}=t;for(;e--;)i+=t[Math.random()*n|0];return i};function wN(e){return!!(e&&Gn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const _N=e=>{const t=new Array(10),i=(n,o)=>{if(_h(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const l=ll(n)?[]:{};return Hc(n,(c,d)=>{const p=i(c,o+1);!Ec(p)&&(l[d]=p)}),t[o]=void 0,l}}return n};return i(e,0)},SN=Ps("AsyncFunction"),EN=e=>e&&(_h(e)||Gn(e))&&Gn(e.then)&&Gn(e.catch),i_=((e,t)=>e?setImmediate:t?((i,n)=>(Oo.addEventListener("message",({source:o,data:l})=>{o===Oo&&l===i&&n.length&&n.shift()()},!1),o=>{n.push(o),Oo.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Gn(Oo.postMessage)),CN=typeof queueMicrotask<"u"?queueMicrotask.bind(Oo):typeof process<"u"&&process.nextTick||i_,qe={isArray:ll,isArrayBuffer:q1,isBuffer:BM,isFormData:ZM,isArrayBufferView:WM,isString:jM,isNumber:Z1,isBoolean:YM,isObject:_h,isPlainObject:Wu,isReadableStream:QM,isRequest:eN,isResponse:tN,isHeaders:iN,isUndefined:Ec,isDate:UM,isFile:GM,isBlob:XM,isRegExp:gN,isFunction:Gn,isStream:qM,isURLSearchParams:JM,isTypedArray:uN,isFileList:KM,forEach:Hc,merge:Rp,extend:sN,trim:nN,stripBOM:rN,inherits:oN,toFlatObject:aN,kindOf:xh,kindOfTest:Ps,endsWith:lN,toArray:cN,forEachEntry:dN,matchAll:hN,isHTMLForm:fN,hasOwnProperty:iy,hasOwnProp:iy,reduceDescriptors:e_,freezeMethods:mN,toObjectSet:vN,toCamelCase:pN,noop:bN,toFiniteNumber:yN,findKey:J1,global:Oo,isContextDefined:Q1,ALPHABET:t_,generateString:xN,isSpecCompliantForm:wN,toJSONObject:_N,isAsyncFn:SN,isThenable:EN,setImmediate:i_,asap:CN};function qt(e,t,i,n,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}qe.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:qe.toJSONObject(this.config),code:this.code,status:this.status}}});const n_=qt.prototype,s_={};["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=>{s_[e]={value:e}});Object.defineProperties(qt,s_);Object.defineProperty(n_,"isAxiosError",{value:!0});qt.from=(e,t,i,n,o,l)=>{const c=Object.create(n_);return qe.toFlatObject(e,c,function(p){return p!==Error.prototype},d=>d!=="isAxiosError"),qt.call(c,e.message,t,i,n,o),c.cause=e,c.name=e.name,l&&Object.assign(c,l),c};const AN=null;function Dp(e){return qe.isPlainObject(e)||qe.isArray(e)}function r_(e){return qe.endsWith(e,"[]")?e.slice(0,-2):e}function sy(e,t,i){return e?e.concat(t).map(function(o,l){return o=r_(o),!i&&l?"["+o+"]":o}).join(i?".":""):t}function kN(e){return qe.isArray(e)&&!e.some(Dp)}const TN=qe.toFlatObject(qe,{},null,function(t){return/^is[A-Z]/.test(t)});function Sh(e,t,i){if(!qe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,i=qe.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,O){return!qe.isUndefined(O[C])});const n=i.metaTokens,o=i.visitor||v,l=i.dots,c=i.indexes,p=(i.Blob||typeof Blob<"u"&&Blob)&&qe.isSpecCompliantForm(t);if(!qe.isFunction(o))throw new TypeError("visitor must be a function");function m(T){if(T===null)return"";if(qe.isDate(T))return T.toISOString();if(!p&&qe.isBlob(T))throw new qt("Blob is not supported. Use a Buffer instead.");return qe.isArrayBuffer(T)||qe.isTypedArray(T)?p&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function v(T,C,O){let P=T;if(T&&!O&&typeof T=="object"){if(qe.endsWith(C,"{}"))C=n?C:C.slice(0,-2),T=JSON.stringify(T);else if(qe.isArray(T)&&kN(T)||(qe.isFileList(T)||qe.endsWith(C,"[]"))&&(P=qe.toArray(T)))return C=r_(C),P.forEach(function(N,M){!(qe.isUndefined(N)||N===null)&&t.append(c===!0?sy([C],M,l):c===null?C:C+"[]",m(N))}),!1}return Dp(T)?!0:(t.append(sy(O,C,l),m(T)),!1)}const y=[],_=Object.assign(TN,{defaultVisitor:v,convertValue:m,isVisitable:Dp});function S(T,C){if(!qe.isUndefined(T)){if(y.indexOf(T)!==-1)throw Error("Circular reference detected in "+C.join("."));y.push(T),qe.forEach(T,function(P,I){(!(qe.isUndefined(P)||P===null)&&o.call(t,P,qe.isString(I)?I.trim():I,C,_))===!0&&S(P,C?C.concat(I):[I])}),y.pop()}}if(!qe.isObject(e))throw new TypeError("data must be an object");return S(e),t}function ry(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function cm(e,t){this._pairs=[],e&&Sh(e,this,t)}const o_=cm.prototype;o_.append=function(t,i){this._pairs.push([t,i])};o_.toString=function(t){const i=t?function(n){return t.call(this,n,ry)}:ry;return this._pairs.map(function(o){return i(o[0])+"="+i(o[1])},"").join("&")};function IN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function a_(e,t,i){if(!t)return e;const n=i&&i.encode||IN;qe.isFunction(i)&&(i={serialize:i});const o=i&&i.serialize;let l;if(o?l=o(t,i):l=qe.isURLSearchParams(t)?t.toString():new cm(t,i).toString(n),l){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class ON{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){qe.forEach(this.handlers,function(n){n!==null&&t(n)})}}const oy=ON,l_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},PN=typeof URLSearchParams<"u"?URLSearchParams:cm,LN=typeof FormData<"u"?FormData:null,MN=typeof Blob<"u"?Blob:null,NN={isBrowser:!0,classes:{URLSearchParams:PN,FormData:LN,Blob:MN},protocols:["http","https","file","blob","url","data"]},um=typeof window<"u"&&typeof document<"u",$p=typeof navigator=="object"&&navigator||void 0,RN=um&&(!$p||["ReactNative","NativeScript","NS"].indexOf($p.product)<0),DN=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),$N=um&&window.location.href||"http://localhost",FN=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:um,hasStandardBrowserEnv:RN,hasStandardBrowserWebWorkerEnv:DN,navigator:$p,origin:$N},Symbol.toStringTag,{value:"Module"})),fn={...FN,...NN};function VN(e,t){return Sh(e,new fn.classes.URLSearchParams,Object.assign({visitor:function(i,n,o,l){return fn.isNode&&qe.isBuffer(i)?(this.append(n,i.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function zN(e){return qe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function HN(e){const t={},i=Object.keys(e);let n;const o=i.length;let l;for(n=0;n=i.length;return c=!c&&qe.isArray(o)?o.length:c,p?(qe.hasOwnProp(o,c)?o[c]=[o[c],n]:o[c]=n,!d):((!o[c]||!qe.isObject(o[c]))&&(o[c]=[]),t(i,n,o[c],l)&&qe.isArray(o[c])&&(o[c]=HN(o[c])),!d)}if(qe.isFormData(e)&&qe.isFunction(e.entries)){const i={};return qe.forEachEntry(e,(n,o)=>{t(zN(n),o,i,0)}),i}return null}function BN(e,t,i){if(qe.isString(e))try{return(t||JSON.parse)(e),qe.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(e)}const dm={transitional:l_,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const n=i.getContentType()||"",o=n.indexOf("application/json")>-1,l=qe.isObject(t);if(l&&qe.isHTMLForm(t)&&(t=new FormData(t)),qe.isFormData(t))return o?JSON.stringify(c_(t)):t;if(qe.isArrayBuffer(t)||qe.isBuffer(t)||qe.isStream(t)||qe.isFile(t)||qe.isBlob(t)||qe.isReadableStream(t))return t;if(qe.isArrayBufferView(t))return t.buffer;if(qe.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 VN(t,this.formSerializer).toString();if((d=qe.isFileList(t))||n.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Sh(d?{"files[]":t}:t,p&&new p,this.formSerializer)}}return l||o?(i.setContentType("application/json",!1),BN(t)):t}],transformResponse:[function(t){const i=this.transitional||dm.transitional,n=i&&i.forcedJSONParsing,o=this.responseType==="json";if(qe.isResponse(t)||qe.isReadableStream(t))return t;if(t&&qe.isString(t)&&(n&&!this.responseType||o)){const c=!(i&&i.silentJSONParsing)&&o;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:fn.classes.FormData,Blob:fn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qe.forEach(["delete","get","head","post","put","patch"],e=>{dm.headers[e]={}});const hm=dm,WN=qe.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"]),jN=e=>{const t={};let i,n,o;return e&&e.split(` +`).forEach(function(c){o=c.indexOf(":"),i=c.substring(0,o).trim().toLowerCase(),n=c.substring(o+1).trim(),!(!i||t[i]&&WN[i])&&(i==="set-cookie"?t[i]?t[i].push(n):t[i]=[n]:t[i]=t[i]?t[i]+", "+n:n)}),t},ay=Symbol("internals");function Cl(e){return e&&String(e).trim().toLowerCase()}function ju(e){return e===!1||e==null?e:qe.isArray(e)?e.map(ju):String(e)}function YN(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 UN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function bf(e,t,i,n,o){if(qe.isFunction(n))return n.call(this,t,i);if(o&&(t=i),!!qe.isString(t)){if(qe.isString(n))return t.indexOf(n)!==-1;if(qe.isRegExp(n))return n.test(t)}}function GN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,i,n)=>i.toUpperCase()+n)}function XN(e,t){const i=qe.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+i,{value:function(o,l,c){return this[n].call(this,t,o,l,c)},configurable:!0})})}class Eh{constructor(t){t&&this.set(t)}set(t,i,n){const o=this;function l(d,p,m){const v=Cl(p);if(!v)throw new Error("header name must be a non-empty string");const y=qe.findKey(o,v);(!y||o[y]===void 0||m===!0||m===void 0&&o[y]!==!1)&&(o[y||p]=ju(d))}const c=(d,p)=>qe.forEach(d,(m,v)=>l(m,v,p));if(qe.isPlainObject(t)||t instanceof this.constructor)c(t,i);else if(qe.isString(t)&&(t=t.trim())&&!UN(t))c(jN(t),i);else if(qe.isHeaders(t))for(const[d,p]of t.entries())l(p,d,n);else t!=null&&l(i,t,n);return this}get(t,i){if(t=Cl(t),t){const n=qe.findKey(this,t);if(n){const o=this[n];if(!i)return o;if(i===!0)return YN(o);if(qe.isFunction(i))return i.call(this,o,n);if(qe.isRegExp(i))return i.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,i){if(t=Cl(t),t){const n=qe.findKey(this,t);return!!(n&&this[n]!==void 0&&(!i||bf(this,this[n],n,i)))}return!1}delete(t,i){const n=this;let o=!1;function l(c){if(c=Cl(c),c){const d=qe.findKey(n,c);d&&(!i||bf(n,n[d],d,i))&&(delete n[d],o=!0)}}return qe.isArray(t)?t.forEach(l):l(t),o}clear(t){const i=Object.keys(this);let n=i.length,o=!1;for(;n--;){const l=i[n];(!t||bf(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const i=this,n={};return qe.forEach(this,(o,l)=>{const c=qe.findKey(n,l);if(c){i[c]=ju(o),delete i[l];return}const d=t?GN(l):String(l).trim();d!==l&&delete i[l],i[d]=ju(o),n[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const i=Object.create(null);return qe.forEach(this,(n,o)=>{n!=null&&n!==!1&&(i[o]=t&&qe.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(o=>n.set(o)),n}static accessor(t){const n=(this[ay]=this[ay]={accessors:{}}).accessors,o=this.prototype;function l(c){const d=Cl(c);n[d]||(XN(o,c),n[d]=!0)}return qe.isArray(t)?t.forEach(l):l(t),this}}Eh.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);qe.reduceDescriptors(Eh.prototype,({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[i]=n}}});qe.freezeMethods(Eh);const ks=Eh;function yf(e,t){const i=this||hm,n=t||i,o=ks.from(n.headers);let l=n.data;return qe.forEach(e,function(d){l=d.call(i,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function u_(e){return!!(e&&e.__CANCEL__)}function cl(e,t,i){qt.call(this,e??"canceled",qt.ERR_CANCELED,t,i),this.name="CanceledError"}qe.inherits(cl,qt,{__CANCEL__:!0});function d_(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))}function KN(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function qN(e,t){e=e||10;const i=new Array(e),n=new Array(e);let o=0,l=0,c;return t=t!==void 0?t:1e3,function(p){const m=Date.now(),v=n[l];c||(c=m),i[o]=p,n[o]=m;let y=l,_=0;for(;y!==o;)_+=i[y++],y=y%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),m-c{i=v,o=null,l&&(clearTimeout(l),l=null),e.apply(null,m)};return[(...m)=>{const v=Date.now(),y=v-i;y>=n?c(m,v):(o=m,l||(l=setTimeout(()=>{l=null,c(o)},n-y)))},()=>o&&c(o)]}const kd=(e,t,i=3)=>{let n=0;const o=qN(50,250);return ZN(l=>{const c=l.loaded,d=l.lengthComputable?l.total:void 0,p=c-n,m=o(p),v=c<=d;n=c;const y={loaded:c,total:d,progress:d?c/d:void 0,bytes:p,rate:m||void 0,estimated:m&&d&&v?(d-c)/m:void 0,event:l,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(y)},i)},ly=(e,t)=>{const i=e!=null;return[n=>t[0]({lengthComputable:i,total:e,loaded:n}),t[1]]},cy=e=>(...t)=>qe.asap(()=>e(...t)),JN=fn.hasStandardBrowserEnv?((e,t)=>i=>(i=new URL(i,fn.origin),e.protocol===i.protocol&&e.host===i.host&&(t||e.port===i.port)))(new URL(fn.origin),fn.navigator&&/(msie|trident)/i.test(fn.navigator.userAgent)):()=>!0,QN=fn.hasStandardBrowserEnv?{write(e,t,i,n,o,l){const c=[e+"="+encodeURIComponent(t)];qe.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),qe.isString(n)&&c.push("path="+n),qe.isString(o)&&c.push("domain="+o),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 eR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function h_(e,t){return e&&!eR(t)?tR(e,t):t}const uy=e=>e instanceof ks?{...e}:e;function jo(e,t){t=t||{};const i={};function n(m,v,y,_){return qe.isPlainObject(m)&&qe.isPlainObject(v)?qe.merge.call({caseless:_},m,v):qe.isPlainObject(v)?qe.merge({},v):qe.isArray(v)?v.slice():v}function o(m,v,y,_){if(qe.isUndefined(v)){if(!qe.isUndefined(m))return n(void 0,m,y,_)}else return n(m,v,y,_)}function l(m,v){if(!qe.isUndefined(v))return n(void 0,v)}function c(m,v){if(qe.isUndefined(v)){if(!qe.isUndefined(m))return n(void 0,m)}else return n(void 0,v)}function d(m,v,y){if(y in t)return n(m,v);if(y 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,v,y)=>o(uy(m),uy(v),y,!0)};return qe.forEach(Object.keys(Object.assign({},e,t)),function(v){const y=p[v]||o,_=y(e[v],t[v],v);qe.isUndefined(_)&&y!==d||(i[v]=_)}),i}const f_=e=>{const t=jo({},e);let{data:i,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:l,headers:c,auth:d}=t;t.headers=c=ks.from(c),t.url=a_(h_(t.baseURL,t.url),e.params,e.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let p;if(qe.isFormData(i)){if(fn.hasStandardBrowserEnv||fn.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((p=c.getContentType())!==!1){const[m,...v]=p?p.split(";").map(y=>y.trim()).filter(Boolean):[];c.setContentType([m||"multipart/form-data",...v].join("; "))}}if(fn.hasStandardBrowserEnv&&(n&&qe.isFunction(n)&&(n=n(t)),n||n!==!1&&JN(t.url))){const m=o&&l&&QN.read(l);m&&c.set(o,m)}return t},iR=typeof XMLHttpRequest<"u",nR=iR&&function(e){return new Promise(function(i,n){const o=f_(e);let l=o.data;const c=ks.from(o.headers).normalize();let{responseType:d,onUploadProgress:p,onDownloadProgress:m}=o,v,y,_,S,T;function C(){S&&S(),T&&T(),o.cancelToken&&o.cancelToken.unsubscribe(v),o.signal&&o.signal.removeEventListener("abort",v)}let O=new XMLHttpRequest;O.open(o.method.toUpperCase(),o.url,!0),O.timeout=o.timeout;function P(){if(!O)return;const N=ks.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),D={data:!d||d==="text"||d==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:N,config:e,request:O};d_(function(Z){i(Z),C()},function(Z){n(Z),C()},D),O=null}"onloadend"in O?O.onloadend=P:O.onreadystatechange=function(){!O||O.readyState!==4||O.status===0&&!(O.responseURL&&O.responseURL.indexOf("file:")===0)||setTimeout(P)},O.onabort=function(){O&&(n(new qt("Request aborted",qt.ECONNABORTED,e,O)),O=null)},O.onerror=function(){n(new qt("Network Error",qt.ERR_NETWORK,e,O)),O=null},O.ontimeout=function(){let M=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const D=o.transitional||l_;o.timeoutErrorMessage&&(M=o.timeoutErrorMessage),n(new qt(M,D.clarifyTimeoutError?qt.ETIMEDOUT:qt.ECONNABORTED,e,O)),O=null},l===void 0&&c.setContentType(null),"setRequestHeader"in O&&qe.forEach(c.toJSON(),function(M,D){O.setRequestHeader(D,M)}),qe.isUndefined(o.withCredentials)||(O.withCredentials=!!o.withCredentials),d&&d!=="json"&&(O.responseType=o.responseType),m&&([_,T]=kd(m,!0),O.addEventListener("progress",_)),p&&O.upload&&([y,S]=kd(p),O.upload.addEventListener("progress",y),O.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(v=N=>{O&&(n(!N||N.type?new cl(null,e,O):N),O.abort(),O=null)},o.cancelToken&&o.cancelToken.subscribe(v),o.signal&&(o.signal.aborted?v():o.signal.addEventListener("abort",v)));const I=KN(o.url);if(I&&fn.protocols.indexOf(I)===-1){n(new qt("Unsupported protocol "+I+":",qt.ERR_BAD_REQUEST,e));return}O.send(l||null)})},sR=(e,t)=>{const{length:i}=e=e?e.filter(Boolean):[];if(t||i){let n=new AbortController,o;const l=function(m){if(!o){o=!0,d();const v=m instanceof Error?m:this.reason;n.abort(v instanceof qt?v:new cl(v instanceof Error?v.message:v))}};let c=t&&setTimeout(()=>{c=null,l(new qt(`timeout ${t} of ms exceeded`,qt.ETIMEDOUT))},t);const d=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(m=>{m.unsubscribe?m.unsubscribe(l):m.removeEventListener("abort",l)}),e=null)};e.forEach(m=>m.addEventListener("abort",l));const{signal:p}=n;return p.unsubscribe=()=>qe.asap(d),p}},rR=sR,oR=function*(e,t){let i=e.byteLength;if(!t||i{const o=aR(e,t);let l=0,c,d=p=>{c||(c=!0,n&&n(p))};return new ReadableStream({async pull(p){try{const{done:m,value:v}=await o.next();if(m){d(),p.close();return}let y=v.byteLength;if(i){let _=l+=y;i(_)}p.enqueue(new Uint8Array(v))}catch(m){throw d(m),m}},cancel(p){return d(p),o.return()}},{highWaterMark:2})},Ch=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",p_=Ch&&typeof ReadableStream=="function",cR=Ch&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),g_=(e,...t)=>{try{return!!e(...t)}catch{return!1}},uR=p_&&g_(()=>{let e=!1;const t=new Request(fn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),hy=64*1024,Fp=p_&&g_(()=>qe.isReadableStream(new Response("").body)),Td={stream:Fp&&(e=>e.body)};Ch&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Td[t]&&(Td[t]=qe.isFunction(e[t])?i=>i[t]():(i,n)=>{throw new qt(`Response type '${t}' is not supported`,qt.ERR_NOT_SUPPORT,n)})})})(new Response);const dR=async e=>{if(e==null)return 0;if(qe.isBlob(e))return e.size;if(qe.isSpecCompliantForm(e))return(await new Request(fn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(qe.isArrayBufferView(e)||qe.isArrayBuffer(e))return e.byteLength;if(qe.isURLSearchParams(e)&&(e=e+""),qe.isString(e))return(await cR(e)).byteLength},hR=async(e,t)=>{const i=qe.toFiniteNumber(e.getContentLength());return i??dR(t)},fR=Ch&&(async e=>{let{url:t,method:i,data:n,signal:o,cancelToken:l,timeout:c,onDownloadProgress:d,onUploadProgress:p,responseType:m,headers:v,withCredentials:y="same-origin",fetchOptions:_}=f_(e);m=m?(m+"").toLowerCase():"text";let S=rR([o,l&&l.toAbortSignal()],c),T;const C=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let O;try{if(p&&uR&&i!=="get"&&i!=="head"&&(O=await hR(v,n))!==0){let D=new Request(t,{method:"POST",body:n,duplex:"half"}),H;if(qe.isFormData(n)&&(H=D.headers.get("content-type"))&&v.setContentType(H),D.body){const[Z,te]=ly(O,kd(cy(p)));n=dy(D.body,hy,Z,te)}}qe.isString(y)||(y=y?"include":"omit");const P="credentials"in Request.prototype;T=new Request(t,{..._,signal:S,method:i.toUpperCase(),headers:v.normalize().toJSON(),body:n,duplex:"half",credentials:P?y:void 0});let I=await fetch(T);const N=Fp&&(m==="stream"||m==="response");if(Fp&&(d||N&&C)){const D={};["status","statusText","headers"].forEach(Y=>{D[Y]=I[Y]});const H=qe.toFiniteNumber(I.headers.get("content-length")),[Z,te]=d&&ly(H,kd(cy(d),!0))||[];I=new Response(dy(I.body,hy,Z,()=>{te&&te(),C&&C()}),D)}m=m||"text";let M=await Td[qe.findKey(Td,m)||"text"](I,e);return!N&&C&&C(),await new Promise((D,H)=>{d_(D,H,{data:M,headers:ks.from(I.headers),status:I.status,statusText:I.statusText,config:e,request:T})})}catch(P){throw C&&C(),P&&P.name==="TypeError"&&/fetch/i.test(P.message)?Object.assign(new qt("Network Error",qt.ERR_NETWORK,e,T),{cause:P.cause||P}):qt.from(P,P&&P.code,e,T)}}),Vp={http:AN,xhr:nR,fetch:fR};qe.forEach(Vp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const fy=e=>`- ${e}`,pR=e=>qe.isFunction(e)||e===null||e===!1,m_={getAdapter:e=>{e=qe.isArray(e)?e:[e];const{length:t}=e;let i,n;const o={};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(fy).join(` +`):" "+fy(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:Vp};function xf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cl(null,e)}function py(e){return xf(e),e.headers=ks.from(e.headers),e.data=yf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),m_.getAdapter(e.adapter||hm.adapter)(e).then(function(n){return xf(e),n.data=yf.call(e,e.transformResponse,n),n.headers=ks.from(n.headers),n},function(n){return u_(n)||(xf(e),n&&n.response&&(n.response.data=yf.call(e,e.transformResponse,n.response),n.response.headers=ks.from(n.response.headers))),Promise.reject(n)})}const v_="1.7.9",Ah={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ah[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const gy={};Ah.transitional=function(t,i,n){function o(l,c){return"[Axios v"+v_+"] Transitional option '"+l+"'"+c+(n?". "+n:"")}return(l,c,d)=>{if(t===!1)throw new qt(o(c," has been removed"+(i?" in "+i:"")),qt.ERR_DEPRECATED);return i&&!gy[c]&&(gy[c]=!0,console.warn(o(c," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(l,c,d):!0}};Ah.spelling=function(t){return(i,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function gR(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 o=n.length;for(;o-- >0;){const l=n[o],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 Yu={assertOptions:gR,validators:Ah},Rs=Yu.validators;class Id{constructor(t){this.defaults=t,this.interceptors={request:new oy,response:new oy}}async request(t,i){try{return await this._request(t,i)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const l=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?l&&!String(n.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(n.stack+=` +`+l):n.stack=l}catch{}}throw n}}_request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=jo(this.defaults,i);const{transitional:n,paramsSerializer:o,headers:l}=i;n!==void 0&&Yu.assertOptions(n,{silentJSONParsing:Rs.transitional(Rs.boolean),forcedJSONParsing:Rs.transitional(Rs.boolean),clarifyTimeoutError:Rs.transitional(Rs.boolean)},!1),o!=null&&(qe.isFunction(o)?i.paramsSerializer={serialize:o}:Yu.assertOptions(o,{encode:Rs.function,serialize:Rs.function},!0)),Yu.assertOptions(i,{baseUrl:Rs.spelling("baseURL"),withXsrfToken:Rs.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let c=l&&qe.merge(l.common,l[i.method]);l&&qe.forEach(["delete","get","head","post","put","patch","common"],T=>{delete l[T]}),i.headers=ks.concat(c,l);const d=[];let p=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(i)===!1||(p=p&&C.synchronous,d.unshift(C.fulfilled,C.rejected))});const m=[];this.interceptors.response.forEach(function(C){m.push(C.fulfilled,C.rejected)});let v,y=0,_;if(!p){const T=[py.bind(this),void 0];for(T.unshift.apply(T,d),T.push.apply(T,m),_=T.length,v=Promise.resolve(i);y<_;)v=v.then(T[y++],T[y++]);return v}_=d.length;let S=i;for(y=0;y<_;){const T=d[y++],C=d[y++];try{S=T(S)}catch(O){C.call(this,O);break}}try{v=py.call(this,S)}catch(T){return Promise.reject(T)}for(y=0,_=m.length;y<_;)v=v.then(m[y++],m[y++]);return v}getUri(t){t=jo(this.defaults,t);const i=h_(t.baseURL,t.url);return a_(i,t.params,t.paramsSerializer)}}qe.forEach(["delete","get","head","options"],function(t){Id.prototype[t]=function(i,n){return this.request(jo(n||{},{method:t,url:i,data:(n||{}).data}))}});qe.forEach(["post","put","patch"],function(t){function i(n){return function(l,c,d){return this.request(jo(d||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:l,data:c}))}}Id.prototype[t]=i(),Id.prototype[t+"Form"]=i(!0)});const Uu=Id;class fm{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(o=>{if(!n._listeners)return;let l=n._listeners.length;for(;l-- >0;)n._listeners[l](o);n._listeners=null}),this.promise.then=o=>{let l;const c=new Promise(d=>{n.subscribe(d),l=d}).then(o);return c.cancel=function(){n.unsubscribe(l)},c},t(function(l,c,d){n.reason||(n.reason=new cl(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)}toAbortSignal(){const t=new AbortController,i=n=>{t.abort(n)};return this.subscribe(i),t.signal.unsubscribe=()=>this.unsubscribe(i),t.signal}static source(){let t;return{token:new fm(function(o){t=o}),cancel:t}}}const mR=fm;function vR(e){return function(i){return e.apply(null,i)}}function bR(e){return qe.isObject(e)&&e.isAxiosError===!0}const zp={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(zp).forEach(([e,t])=>{zp[t]=e});const yR=zp;function b_(e){const t=new Uu(e),i=K1(Uu.prototype.request,t);return qe.extend(i,Uu.prototype,t,{allOwnKeys:!0}),qe.extend(i,t,null,{allOwnKeys:!0}),i.create=function(o){return b_(jo(e,o))},i}const Ki=b_(hm);Ki.Axios=Uu;Ki.CanceledError=cl;Ki.CancelToken=mR;Ki.isCancel=u_;Ki.VERSION=v_;Ki.toFormData=Sh;Ki.AxiosError=qt;Ki.Cancel=Ki.CanceledError;Ki.all=function(t){return Promise.all(t)};Ki.spread=vR;Ki.isAxiosError=bR;Ki.mergeConfig=jo;Ki.AxiosHeaders=ks;Ki.formToJSON=e=>c_(qe.isHTMLForm(e)?new FormData(e):e);Ki.getAdapter=m_.getAdapter;Ki.HttpStatusCode=yR;Ki.default=Ki;const ei=Ki;var Xe=(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))(Xe||{}),zi=(e=>(e.sha1="sha1",e.id="id",e))(zi||{}),Od=(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))(Od||{});function Hp(e,t,i,n,o=-1){return{id:e,propertyId:t,value:i,parents:n??[],color:o}}var Ri=(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.NOTIF="notif",e))(Ri||{});const no=[{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 fi=(e=>(e.Year="Year",e.Month="Month",e.Week="Week",e.Day="Day",e.Hour="Hour",e.Minute="Minute",e.Second="Second",e))(fi||{});const xR={Year:1,Month:1,Week:60*60*24*7,Day:60*60*24,Hour:60*60,Minute:60,Second:1};var ws=(e=>(e.DEBUG="debug",e.INFO="info",e.WARNING="warning",e.ERROR="error",e))(ws||{});class wR{constructor(t,i,n,o,l,c){Zt(this,"images");Zt(this,"state");Zt(this,"filterManager");Zt(this,"sortManager");Zt(this,"groupManager");Zt(this,"options");this.filterManager=new TR(i),this.sortManager=new DR(n),this.groupManager=new Qo(o,l),this.state=ti({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},$t().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=$t();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(Qn(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 _R{constructor(t){Zt(this,"isLoaded");Zt(this,"state");Zt(this,"collection");Zt(this,"onLoad");this.isLoaded=!1,this.state=ti({}),this.collection=new wR(void 0,void 0,void 0,void 0,void 0,this.state),this.onLoad=new Ka,t&&this.load(t)}async load(t){const i=$t();Object.assign(this.state,Ss(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=$t();this.collection.verifyState(),this.state.propertyOptions==null&&(this.state.propertyOptions={});for(let i in t.properties)this.state.propertyOptions[i]=Object.assign(S_(),this.state.propertyOptions[i])}saveState(){ji().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 $t().propertyList.filter(i=>this.isVisibleProperty(i.id))}getVisibleSha1Properties(){return this.getVisibleProperties().filter(t=>t.mode==zi.sha1)}}let Mr;on({count:0});const y_=2,ji=Fc("projectStore",()=>{let e=0;const t=$t(),i=Ae(!1),n=on({}),o=ti({tabs:{},selectedTabId:void 0,plugins:[],vectors:{},counter:0,settings:{}}),l=ti({loaded:!1,projectNotOpen:!1,changed:!1,renderNb:0,onUndo:0,import:{}}),c=Ae({}),d=Ae(null);async function p(){console.log("init"),Mr||(Mr=new _R);let ue=await Ey(),ie=await Cy(),X=await wD(),fe=await iD(),me=await kD();d.value=(await Ay()).status,o.plugins=ue,o.vectors=X,c.value=ie,o.settings=me,e+=1,m(e),H(),localStorage.getItem("tutorialFinished")!="true"&&(i.value=!0),await t.init(),await D(fe),S(),l.loaded=!0}async function m(ue){for(;e==ue;){const ie=await Ay();if(e!=ue)return;if(ie&&(ie.status&&await T(ie.status),ie.actions&&v(ie.actions),ie.plugins&&y(ie.plugins),ie.commits)){for(let X of ie.commits)t.applyCommit(X);Mr.collection.update()}await I_(1e3)}}function v(ue){c.value={},ue.forEach(ie=>c.value[ie.id]=ie)}function y(ue){o.plugins=ue}function _(){Object.assign(o,{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,Mr=void 0,e=0,t.clear()}function S(){Mr.verifyState()}async function T(ue){d.value=ue}async function C(){await Ft(),p()}function O(){return Y().state}async function P(ue){let ie=IR();ie.name=ue;const X=Math.max(-1,...Object.keys(o.tabs).map(Number))+1;ie.id=X,o.tabs[X]=ie,_f(o.tabs),await M(X)}async function I(ue){if(jn(o.tabs).length==1)await P("Tab1");else{let ie=jn(o.tabs).sort((X,fe)=>X.id-fe.id).findIndex(X=>X.id==ue);ie=ie!=0?ie-1:1,await M(jn(o.tabs)[ie].id)}delete o.tabs[ue],await _f(o.tabs)}async function N(){Object.assign(o.tabs[o.selectedTabId],Mr.state),await _f(o.tabs)}async function M(ue){jn(o.tabs).forEach(ie=>{ie.id==ue?ie.selected=!0:ie.selected=!1}),o.selectedTabId=ue,await Mr.load(o.tabs[o.selectedTabId]),H()}async function D(ue){for(let ie of Object.values(ue))ie.version==y_&&(o.tabs[ie.id]=ie);if(Object.keys(o.tabs).length==0)await P("Tab1");else{const ie=jn(o.tabs).find(X=>X.selected);ie?await M(ie.id):await M(ue[0].id)}H()}function H(){for(let ue in o.tabs){const ie=o.tabs[ue];ie.propertyOptions==null&&(ie.propertyOptions={});for(let X in t.properties)ie.propertyOptions[X]=Object.assign(S_(),ie.propertyOptions[X])}}function Z(){l.renderNb+=1}async function te(ue){const ie=await nD(ue);return p(),ie}function Y(){return Mr}function ee(){l.import.to_import=void 0}async function le(){o.plugins=await Ey(),c.value=await Cy()}async function oe(ue,ie){const X=await yD(ue,ie);o.plugins=X}async function pe(ue){o.vectors=await _D(ue)}async function ge(ue){const ie=await xD(ue);if(ie)return ie.notifs&&en().notify(ie.notifs),ie.commit&&(t.applyCommit(ie.commit),ie.commit.properties&&ie.commit.properties.forEach(X=>O().visibleProperties[X.id]=!0)),ie}async function Ce(ue){const ie=await TD(ue);o.settings=ie}return{data:o,status:l,images:n,init:p,clear:_,rerender:Z,addTab:P,removeTab:I,updateTabs:N,selectTab:M,getTab:O,getTabManager:Y,updateSettings:Ce,uploadPropFile:te,clearImport:ee,updatePluginInfos:le,setPluginParams:oe,call:ge,actions:c,setDefaultVectors:pe,backendStatus:d,reload:C,updatePropertyOptions:H,showTutorial:i}});function C7(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 SR(e){switch(e){case Xe.checkbox:return["isTrue","isFalse"];case Xe.color:return["isSet","notSet","equal","equalNot"];case Xe.date:return["isSet","notSet","equal","equalNot","leq","lower","greater","geq"];case Xe.image_link:return["isSet","notSet","equal","equalNot"];case Xe.multi_tags:return["isSet","notSet","containsAll","containsAny","containsNot"];case Xe.number:return["isSet","notSet","equal","equalNot","leq","lower","greater","geq"];case Xe.path:return["isSet","notSet","equal","equalNot","startsWith","like","notLike"];case Xe.string:return["isSet","notSet","equal","equalNot","startsWith","like","notLike"];case Xe.tag:return["isSet","notSet","containsAny","containsNot"];case Xe.url:return["isSet","notSet","equal","equalNot","like","notLike","startsWith"];case Xe._ahash:case Xe._sha1:return["equal","equalNot","like","notLike"];case Xe._width:case Xe._height:return["equal","lower","leq","greater","geq"];case Xe._id:return["equal","equalNot"];default:return[]}}var ER=(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))(ER||{});const CR={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)=>Bi(t)?!0:Bi(e)?!1:e.includes(t),containsAll:(e,t)=>{if(Bi(t))return!0;if(Bi(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(Bi(t))return!0;if(Bi(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(Bi(t)||Bi(e))return!0;for(let i of e)for(let n of t)if(n.has(i))return!1;return!0},equal:(e,t)=>Bi(t)?!0:Bi(e)?!1:e==t,equalNot:(e,t)=>Bi(t)||Bi(e)?!0:e!=t,isFalse:e=>Bi(e)?!0:e==!1,isTrue:e=>e,isSet:e=>!Bi(e),notSet:e=>Bi(e),startsWith:(e,t)=>Bi(t)?!0:Bi(e)?!1:e.startsWith(t),like:(e,t)=>Bi(t)?!0:Bi(e)?!1:e.match(t),notLike:(e,t)=>Bi(t)?!0:Bi(e)?!1:!e.match(t)};function x_(){return{filters:[],groupOperator:"and",depth:0,isGroup:!0,id:-1}}function w_(){const e=x_();return ti({folders:[],filter:e,query:""})}function AR(e){switch(e){case Xe.checkbox:return"isTrue";case Xe.color:case Xe.image_link:case Xe.number:case Xe.string:case Xe.path:case Xe.url:case Xe.multi_tags:case Xe.tag:return"isSet";case Xe.date:return"greater";default:return"equal"}}function Bi(e){return e===void 0||e===""||Array.isArray(e)&&e.length===0||e===null}function kR(e,t,i,n){const o=i[e.propertyId],l=t.map(v=>v.properties[o.id]),c=CR[e.operator];let d=e.value;if(an(o.type)&&d){const v=d.map(y=>new Set([...n[y].allChildren,y]));d=new Set(v)}if(o.type==Xe.date){d&&(d=new Date(d));for(let[v,y]of l.entries())y&&(l[v]=new Date(y))}if(o.type==Xe.string){d&&(d=d.toLowerCase());for(let[v,y]of l.entries())y&&(l[v]=y.toLowerCase())}const p=[],m=[];for(let v=0;vi.instances[d]),o=[];for(let d of this.result.images)t.has(d.id)||o.push(d.id);const l=this.filterInstances(n);for(let d of l.valid)o.push(d.id);return this.result.images=o.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=$t();let n=t;if(this.state.query){const l=this.state.query.toLocaleLowerCase();ji();const c=Qn(i.properties),d=c.filter(m=>m.type==Xe.string),p=c.filter(m=>an(m.type));n=n.filter(m=>{for(let v of d)if(m.properties[v.id]&&m.properties[v.id]&&m.properties[v.id].toLocaleLowerCase().includes(l))return!0;for(let v of p){const y=m.properties[v.id];if(!y)continue;const _=y.map(S=>i.tags[S].value.toLocaleLowerCase());for(let S of _)if(S.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 __(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=x_();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 o=n.filters[n.filters.length-1];return this.registerFilter(o),this.onDirty.emit(),o}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 o=this.state.filter;o.filters.push(n);const l=o.filters[o.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(o=>o.id!=t)}),delete this.filterIndex[t],this.onDirty.emit()}updateFilter(t,i){const n=$t();if(this.filterIndex[t]==null||this.filterIndex[t].isGroup)return;const o=this.filterIndex[t];i.propertyId!=null&&this.changeFilter(o,i.propertyId);const l=n.properties[o.propertyId].type;i.operator!=null&&SR(l).includes(i.operator)&&(o.operator=i.operator),i.value?o.value=i.value:o.value=my(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 o=new Set;n.filters.forEach(l=>{if(l.isGroup)i(l);else{const c=l;(t[c.propertyId]==null||t[c.propertyId].id==Hi)&&o.add(c.id)}}),n.filters=n.filters.filter(l=>!o.has(l.id))};i(this.state.filter)}initFilterState(){const t=w_();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=$t().properties[t];return{propertyId:n.id,operator:AR(n.type),value:my(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 IR(){return ti({version:y_,id:-1,name:"Tab",display:"tree",filterState:w_(),sortState:C_(),groupState:T_(),imageSize:100,visibleProperties:{},visibleFolders:{},selectedFolders:{},propertyOptions:{},similarityDist:.7,sha1Mode:!0,autoReload:!0})}function my(e){switch(e){case Xe.checkbox:return!1;case Xe.color:return;case Xe.date:return;case Xe.number:return;case Xe.string:case Xe.image_link:case Xe.path:case Xe._sha1:case Xe.url:case Xe._ahash:return"";case Xe.multi_tags:case Xe.tag:return[];default:return""}}function S_(){return{size:200}}function jn(e){return Object.keys(e).map(t=>e[t])}function OR(e){let t=e.width/e.height;return Math.max(Math.min(2,t),1)}function vy(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(o=>{t[n].children.push(o)})}),t}function PR(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 Hi=-999999999,by="Deleted",$t=Fc("dataStore",()=>{const e=new Ka,t=new Set;let i=-100;const n=on({}),o=on({}),l=on({}),c=on({}),d=Ae({undo:[],redo:[]}),p=on({}),m=Ae(0),v=Ee(()=>Object.values(n.value).filter(Se=>Se.parent==null)),y=Ee(()=>jn(o.value)),_=Ee(()=>jn(l.value)),S=Ee(()=>jn(c.value).filter(Se=>Se.id!=Hi));async function T(){let Se=await _y();const Ie=vy(Se);n.value=Ie,console.time("Request");let Fe=await JR();console.timeEnd("Request"),console.time("commit"),Z(Fe),console.timeEnd("commit"),await Oe()}function C(){return i-=1,i}function O(){e.emit(t),t.clear()}function P(Se){for(let Ie of Se){const Fe=UR(Ie);Ie.urlSmall=Rl+"/image/small/"+Ie.sha1,Ie.urlMedium=Rl+"/image/medium/"+Ie.sha1,Ie.urlLarge=Rl+"/image/large/"+Ie.sha1,Ie.urlRaw=Rl+"/image/raw/"+Ie.sha1,Ie.containerRatio=OR(Ie),o.value[Ie.id]?Ie.properties=Object.assign(o.value[Ie.id].properties,Ie.properties):(Array.isArray(p.value[Ie.sha1])||(p.value[Ie.sha1]=[]),p.value[Ie.sha1].push(Ie));for(let Ge=0;Gel.value[Fe.id]==null);for(let Fe of Se)Fe.id in l.value&&(Fe.tags=l.value[Fe.id].tags),l.value[Fe.id]=Fe;Ie&&ji().getTabManager().verifyState()}function N(Se){const Ie=new Set;for(let Fe of Se)if(Fe.id!=Hi){if(c.value[Fe.id]?(Fe.count=c.value[Fe.id].count,y.value.forEach(Ge=>t.add(Ge.id))):Fe.count=0,Fe.parents=Fe.parents.filter(Ge=>Ge!=0),c.value[Fe.id]=Fe,!(Fe.propertyId in l.value)){console.warn("Property "+Fe.propertyId+" must be loaded before importing tags");continue}l.value[Fe.propertyId].tags||(l.value[Fe.propertyId].tags={}),l.value[Fe.propertyId].tags[Fe.id]=Fe,Ie.add(Fe.propertyId)}for(let Fe of Ie)PR(l.value[Fe].tags);for(let Fe of jn(c.value))Fe.allChildren=BR(Fe,c.value),Fe.allChildren.splice(Fe.allChildren.indexOf(Fe.id),1),Fe.allParents=WR(Fe,c.value)}async function M(Se){const Ie=await QR(Se);Z(Ie)}function D(Se){for(let Ie of Se)Ie.value!=null&&(an(l.value[Ie.propertyId].type)&&ye(o.value[Ie.instanceId].properties[Ie.propertyId],Ie.value),o.value[Ie.instanceId].properties[Ie.propertyId]=Ie.value,t.add(Ie.instanceId))}function H(Se){for(let Ie of Se)if(Ie.value!=null&&p.value[Ie.sha1]!=null)for(let Fe of p.value[Ie.sha1])an(l.value[Ie.propertyId].type)&&ye(o.value[Fe.id].properties[Ie.propertyId],Ie.value),o.value[Fe.id].properties[Ie.propertyId]=Ie.value,t.add(Fe.id)}function Z(Se,Ie){var Fe,Ge,he,se,Te,Ke;De(Se.instances,Se.emptyInstances),Se.emptyImageValues&&Se.emptyImageValues.forEach(Be=>{p.value[Be.sha1].forEach(Qe=>{an(l.value[Be.propertyId].type)&&ye(o.value[Qe.id].properties[Be.propertyId],[]),delete o.value[Qe.id].properties[Be.propertyId],t.add(Qe.id)})}),Se.emptyInstanceValues&&Se.emptyInstanceValues.forEach(Be=>{an(l.value[Be.propertyId].type)&&ye(o.value[Be.instanceId].properties[Be.propertyId],[]),delete o.value[Be.instanceId].properties[Be.propertyId],t.add(Be.instanceId)}),Se.emptyTags&&Se.emptyTags.forEach(Be=>{c.value[Be].id=Hi,c.value[Be].value=by}),(Fe=Se.emptyProperties)!=null&&Fe.length&&Se.emptyProperties.forEach(Be=>{l.value[Be].id=Hi,l.value[Be].name=by}),Se.emptyInstances&&Se.emptyInstances.forEach(Be=>{o.value[Be].id=Hi,t.add(Be)}),(Ge=Se.instances)!=null&&Ge.length&&P(Se.instances),(he=Se.properties)!=null&&he.length&&I(Se.properties),(se=Se.tags)!=null&&se.length&&N(Se.tags),(Te=Se.instanceValues)!=null&&Te.length&&D(Se.instanceValues),(Ke=Se.imageValues)!=null&&Ke.length&&H(Se.imageValues),Se.history&&(d.value=Se.history),!Ie&&(rr(l),rr(n),rr(o),rr(p),rr(c),O())}function te(){n.value={},o.value={},l.value={},c.value={},p.value={},e.clear(),t.clear(),d.value={undo:[],redo:[]},m.value=0}async function Y(Se,Ie,Fe){Ie&&(Se.undo=!0);const Ge=await CD(Se);return Z(Ge,Fe),Ge}async function ee(Se,Ie,Fe=void 0,Ge=-1){const se=await Y({tags:[{id:-1,propertyId:Se,value:Ie,parents:Fe??[],color:Ge}]},!0,!0);return rr(c),se.tags[0]}async function le(Se,Ie){const Fe=Object.assign({},c.value[Se]);Fe.parents.push(Ie),await Y({tags:[Fe]})}async function oe(Se,Ie){const Fe=Object.assign({},c.value[Se]);Fe.parents=Fe.parents.filter(Ge=>Ge!=Ie),await Y({tags:[Fe]})}async function pe(Se,Ie){if(!Ie){const Fe=c.value[Se];if(!confirm("Delete tag: "+Fe.value+" (ID: "+Se+") ?"))return}Y({emptyTags:[Se]})}async function ge(Se,Ie,Fe){return(await Y({properties:[{id:-1,name:Se,type:Ie,mode:Fe}]})).properties[0]}async function Ce(Se,Ie,Fe,Ge){Array.isArray(Ie)||(Ie=[Ie]);const he=l.value[Se].mode,se=[],Te=[];if(he==zi.id){const Ke=Ie.map(Be=>({propertyId:Se,instanceId:Be.id,value:Fe}));se.push(...Ke)}if(he==zi.sha1){const Ke=Ie.map(Be=>({propertyId:Se,sha1:Be.sha1,value:Fe}));Te.push(...Ke)}await Y({instanceValues:se,imageValues:Te},!0)}async function ue(Se,Ie,Fe){await Y({instanceValues:Se,imageValues:Ie},!0)}async function ie(Se,Ie,Fe,Ge){Array.isArray(Ie)||(Ie=[Ie]);const he=Ie.map(se=>({value:se.properties[Se]??[],img:se}));if(l.value[Se].mode==zi.id){const se=he.map(Te=>({propertyId:Se,instanceId:Te.img.id,value:Array.from(new Set([...Te.value,...Fe]))}));await Y({instanceValues:se})}else{const se=he.map(Te=>({propertyId:Se,sha1:Te.img.sha1,value:Array.from(new Set([...Te.value,...Fe]))}));await Y({imageValues:se},!0)}}async function X(Se,Ie,Fe){const Ge=Object.assign({},c.value[Se]);Ie&&(Ge.value=Ie),Fe!=null&&(Ge.color=Fe),await Y({tags:[Ge]})}async function fe(Se){await eD(Se);const Ie=await _y(),Fe=vy(Ie);for(let Ge of jn(Fe))Ge.id in n.value&&(Ge.count=n.value[Ge.id].count);n.value=Fe}async function me(Se,Ie){const Fe=pn(l.value[Se]);Fe.name=Ie,Y({properties:[Fe]})}async function de(Se){await Y({emptyProperties:[Se]});const Ie=ji();Ie.getTabManager().verifyState(),Ie.getTabManager().collection.update()}function ye(Se,Ie){Se==null&&(Se=[]),Ie==null&&(Ie=[]),Array.isArray(Se)||(Se=[Se]),Array.isArray(Ie)||(Ie=[Ie]);const Fe=new Set(Se),Ge=new Set(Ie),he=Ie.filter(Te=>!Fe.has(Te)),se=Se.filter(Te=>!Ge.has(Te));he.forEach(Te=>c.value[Te].count+=1),se.forEach(Te=>c.value[Te].count-=1)}async function ze(){if(!d.value.undo.length)return;const Se=await SD();Z(Se),m.value++}async function st(){if(!d.value.redo.length)return;const Se=await ED();Z(Se),m.value++}async function Oe(){const Se=await AD();d.value=Se}function Pe(Se){mD(Se)}async function we(Se){await tD(Se),te(),await T()}function De(Se,Ie){Se=Se??[],Ie=Ie??[];for(let Fe of Se){if(o.value[Fe.id]!=null)continue;let Ge=n.value[Fe.folderId];for(Ge.count+=1,Ge=n.value[Ge.parent];Ge;)Ge.count+=1,Ge=n.value[Ge.parent]}for(let Fe of Ie){if(o.value[Fe]==null)continue;let Ge=n.value[Fe];for(Ge.count-=1,Ge=n.value[Ge.parent];Ge;)Ge.count-=1,Ge=n.value[Ge.parent]}}return{init:T,getTmpId:C,onChange:e,folders:n,instances:o,properties:l,tags:c,history:d,folderRoots:v,sha1Index:p,instanceList:y,propertyList:_,tagList:S,addFolder:fe,reImportFolder:Pe,deleteFolder:we,addProperty:ge,deleteProperty:de,updateProperty:me,setPropertyValue:Ce,setTagPropertyValue:ie,setPropertyValues:ue,addTag:ee,deleteTagParent:oe,updateTag:X,addTagParent:le,deleteTag:pe,mergeTags:M,applyCommit:Z,sendCommit:Y,undo:ze,redo:st,onUndo:m,clear:te}});var E_=(e=>(e[e.Ascending=1]="Ascending",e[e.Descending=-1]="Descending",e))(E_||{});function C_(){return ti({sortBy:[],options:{}})}function LR(){return{direction:1}}const A_={[Xe.checkbox]:e=>e?1:0,[Xe.color]:e=>isNaN(e)?-1:e,[Xe.date]:e=>e?new Date(e).getTime():0,[Xe.multi_tags]:e=>e?e.length:0,[Xe.number]:e=>e??Number.NEGATIVE_INFINITY,[Xe.path]:e=>e?e.toLocaleLowerCase():"",[Xe.string]:e=>e?e.toLocaleLowerCase():"",[Xe.tag]:e=>e||"",[Xe.url]:e=>e?e.toLocaleLowerCase():"",[Xe._ahash]:e=>e,[Xe._sha1]:e=>e,[Xe._folders]:(e,t)=>t[e].name,[Xe._height]:e=>e,[Xe._width]:e=>e,[Xe._id]:e=>e};function MR(e,t,i){let n=e.properties[t.id];const o=t.type;return o==Xe.tag&&(Array.isArray(n)&&n.length>0?n=t.tags[n[0]].value:n=void 0),n=A_[o](n,i),n}function k_(e,t){return e.sort((i,n)=>Bp(i,n,t)),e}function Bp(e,t,i){for(let n=0;nl[y]),p=k_(Pd(d,n),o);let m=0,v=0;for(;v=e.length)return i;let l=e.length,c=l-i;for(;c>10;){const d=Math.floor(i+c/2),p=Pd([e[d]],n)[0],m=Bp(t,p,o);if(m==0)return d;m<0?l=d+1:i=d,c=l-i}for(let d=i;dl.values.push(MR(o,c,n.folders))),i.push(l)}return i}class DR{constructor(t){Zt(this,"state");Zt(this,"result");Zt(this,"onChange");this.state=t,this.onChange=new Ka,this.state||(this.state=C_()),this.result={images:[],order:{}}}load(t){Object.assign(this.state,Ss(t)),this.clear()}clear(){this.result={images:[],order:[]}}sort(t,i){console.time("Sort");const n=$t(),o=this.state.sortBy.map(d=>n.properties[d]),l=Pd(t,o),c=this.state.sortBy.map(d=>this.state.options[d].direction==1?1:-1);k_(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=NR(this.result.images,t,i,o,l,n.instances);this.result.images=[],this.result.order={};for(let d=0;dt[i]&&t[i].id!=Hi),Object.keys(this.state.options).filter(i=>!t[i]||t[i].id==Hi).forEach(i=>delete this.state.options[i])}}var Sn=(e=>(e.All="all",e.Selection="selection",e.Property="property",e.Cluster="cluster",e.Sha1="sha1",e))(Sn||{}),$R=(e=>(e[e.Size=0]="Size",e[e.Property=1]="Property",e))($R||{});function Na(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 FR(e){return Na(0,e)}function VR(e,t){const i={direction:E_.Ascending,type:1};return t[e].type==Xe.date&&(i.stepUnit=fi.Day),i}const yy={[Xe.checkbox]:e=>!!e,[Xe.color]:e=>{if(!isNaN(e))return e},[Xe.date]:e=>{if(e)return e},[Xe.number]:e=>{if(e!=null)return e},[Xe.path]:e=>{if(e)return e},[Xe.string]:e=>{if(e)return e},[Xe.url]:e=>{if(e)return e},[Xe._ahash]:e=>e,[Xe._sha1]:e=>e,[Xe._folders]:e=>e,[Xe._id]:e=>e,[Xe._height]:e=>e,[Xe._width]:e=>e,[Xe.tag]:e=>{if(Array.isArray(e))return e},[Xe.multi_tags]:e=>{if(Array.isArray(e))return e}};function xy(e,t,i){if(t||(t=1),i||(i=fi.Day),e==null)return;e=new Date(e);let n=t*xR[i];if(i==fi.Second||i==fi.Minute||i==fi.Hour||i==fi.Day||i==fi.Week){n*=1e3;let o=Math.floor(e.getTime()/n),l=new Date(o*n),c=new Date(o*n+n-1);return{first:l,last:c}}if(i==fi.Year){let o=Math.floor(e.getUTCFullYear()/n),l=new Date(o*n,0,1);l=new Date(l.getTime()-l.getTimezoneOffset()*60*1e3);let c=new Date(o*n+n,0,1);return c=new Date(c.getTime()-c.getTimezoneOffset()*60*1e3),{first:l,last:c}}if(i==fi.Month){let o=e.getUTCFullYear()*12+e.getUTCMonth(),l=Math.floor(o/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(o/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 wf(e,t){const i=$t();if(e.children.length!=0){t.type==1?zR(e,t.direction,i.properties,i.folders):HR(e,t.direction);for(let n=0;n{let d=o[l.id],p=o[c.id];for(let m=0;m(i.images.length-n.images.length)*t)}function mu(e,t){e.images.sort((i,n)=>t[i.id]-t[n.id])}function vu(e){let t=0;const i=()=>t++,n=o=>{o.order=i(),o.children.forEach(l=>n(l))};n(e)}function T_(){return{groupBy:[],options:{},sha1Mode:!1}}class wy{constructor(){Zt(this,"index");Zt(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 Qo{constructor(t,i){Zt(this,"state");Zt(this,"result");Zt(this,"lastOrder");Zt(this,"customGroups");Zt(this,"onChange");Zt(this,"selectedImages");Zt(this,"selection");Zt(this,"iterators");t?this.state=t:this.state=ti(T_()),this.result={root:void 0,index:{},imageToGroups:{},valueIndex:new wy},this.customGroups={},this.onChange=new Ka,this.selectedImages=i??on({}),this.selection={lastImage:void 0,lastGroup:void 0},this.iterators=[]}load(t){Object.assign(this.state,Ss(t)),this.clear()}addUpdatedToGroups(t,i){console.time("Group Update");const n=$t();if(this.invalidateIterators(),this.state.groupBy.length>0)for(let o of t)this.addInstanceToGroups(o,n.properties,n.tags);else this.result.root.images.push(...t);if(i)for(let o of Qn(this.result.index))o.type!="cluster"&&mu(o,i);this.result.imageToGroups={};for(let o of Object.values(this.result.index))o.children.length>0&&o.subGroupType!="sha1"||this.saveImagesToGroup(o);return vu(this.result.root),console.timeEnd("Group Update"),this.onChange.emit(this.result),this.result}addInstanceToGroups(t,i,n){const o=[];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=yy[d.type](m);const v={};if(an(d.type)&&d.tags)for(let S of Qn(d.tags))v[S.id]=new Set(S.allParents),v[S.id].add(S.id);let y;if(d.type==Xe.date){const S=xy(m,p.stepSize,p.stepUnit);S&&(m=S.first.toISOString(),y=S.last)}let _=Array.isArray(m)?m:[m];if(an(d.type)&&_[0]!==void 0){const S=new Set;for(let T of _)if(T)for(let C of v[T])S.add(C);_=Array.from(S)}if(l.length==0)o.push(..._.map(S=>[S])),l=_.map(S=>[S]);else{let S=[];for(let T of l)for(let C of _)S.push([...T,C]);o.push(...S),l=S}for(let S of l){const T=this.result.valueIndex.get(S);if(!this.result.index[T]){const O=Na(T,[],"property");let P=S[S.length-1];d.type==Xe.date&&(P=new Date(P));let I=[{propertyId:d.id,value:P,valueEnd:y,unit:p.stepUnit}];if(O.meta.propertyValues=I,this.regsiterGroup(O),S.length==1)this.addChildGroup(this.result.root,O),this.result.root.dirty=!0;else{const N=this.result.valueIndex.get(S.slice(0,-1)),M=this.result.index[N];this.addChildGroup(M,O),M.dirty=!0}}const C=this.result.index[T];C.images.push(t),C.dirty=!0}}}group(t,i,n,o){o=!0,o&&console.time("Group");const l=$t();this.invalidateIterators(),this.lastOrder=i;const c=this.result.index??{};this.result.root=FR(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 v of Qn(this.result.index))mu(v,i);for(let v of Object.values(this.result.index))v.children.length>0&&v.subGroupType!="sha1"||this.saveImagesToGroup(v);let p=!0,m=new Set(Object.keys(d).map(Number));for(;p;){p=!1;for(let v of Array.from(m))this.result.index[v]&&(this.addCustomGroups(v,d[v]),m.delete(v),p=!0)}return this.state.sha1Mode&&this.groupLeafsBySha1(),Object.keys(this.result.index).map(v=>{const y=this.result.index[v];c[v]&&(y.view=c[v].view)}),vu(this.result.root),o&&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&&wf(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 wy,this.clearLastSelected(),this.clearSelection(),this.customGroups={},this.lastOrder={},t&&this.onChange.emit()}emptyRoot(t){this.clear(),this.group([],void 0,t)}verifyState(t){this.state.groupBy=this.state.groupBy.filter(i=>t[i]&&t[i].id!=Hi),Object.keys(this.state.options).filter(i=>!t[i]||t[i].id==Hi).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]=Na(d,[l],"sha1"),n[l.sha1].key=c,n[l.sha1].meta.propertyValues.push({propertyId:-1,value:l.sha1}),i.push(l.sha1)}const o=i.map(l=>n[l]);o.forEach(l=>this.regsiterGroup(l)),this.setChildGroup(t,o)}update(t){this.invalidateIterators(),this.result.root&&this.group(this.result.root.images,this.lastOrder,t,!0)}updateSelection(t,i){const n=$t();this.invalidateIterators(),this.removeSha1Groups();let o=new Set;for(let l of i)this.result.imageToGroups[l]&&this.result.imageToGroups[l].forEach(c=>o.add(c));for(let l of t)this.result.imageToGroups[l]&&this.result.imageToGroups[l].forEach(c=>o.add(c));for(let l of o){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 Qn(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=>{mu(n,t)}),this.state.sha1Mode&&this.groupLeafsBySha1(),i&&this.onChange.emit(this.result)}setGroupOption(t,i){const n=$t();this.state.options[t]||(this.state.options[t]=VR(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 o=this.result.index[t];o&&(this.customGroups[t]=i,this.setChildGroup(o,i),o.subGroupType=="cluster"&&this.state.sha1Mode&&i.forEach(l=>{this.groupBySha1(l)}),vu(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 or(this,t,i)}getImageIterator(t,i,n){return new Wn(this,t,i,n)}findImageIterator(t,i){const n=$t(),o=this.result.index[t],l=n.instances[i];let c=0;return o.subGroupType=="sha1"?c=o.children.findIndex(d=>d.images[0].sha1==l.sha1):c=o.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,o){const l=n[i[0]],c=this.state.options[l.id],d={};if(an(l.type)&&l.tags)for(let T of Qn(l.tags))d[T.id]=new Set(T.allParents),d[T.id].add(T.id);t.subGroupType="property";let p=0,m=0,v=0,y=0;const _=[];for(let T in t.images){const C=t.images[T];let O=performance.now(),P=C.properties[l.id];y+=performance.now()-O,P=yy[l.type](P),O=performance.now();let I;if(l.type==Xe.date){const M=xy(P,c.stepSize,c.stepUnit);M&&(P=M.first,I=M.last)}p+=performance.now()-O,O=performance.now();let N=Array.isArray(P)?P:[P];if(an(l.type)&&N[0]!==void 0){const M=new Set;for(let D of N)if(D)for(let H of d[D])M.add(H);N=Array.from(M)}m+=performance.now()-O,O=performance.now();for(let M of N){let D=M;M&&l.type==Xe.date&&(D=D.toISOString());const H=[...t.key,D],Z=this.result.valueIndex.get(H);if(!this.result.index[Z]){let Y=[{propertyId:l.id,value:M,valueEnd:I,unit:c.stepUnit}];const ee=Na(Z,[],"property");ee.meta.propertyValues=Y,ee.key=H,this.regsiterGroup(ee),_.push(ee)}this.result.index[Z].images.push(C)}v+=performance.now()-O}const S=_;if(this.setChildGroup(t,S),i.length>1)for(let T of S)this.computePropertySubGroup(T,i.slice(1),n,o);wf(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(o=>this.selectedImages.value[o.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,o=[],l=i.clone();for(;l&&!n.isImageBefore(l);)l.sha1Group?o.push(...l.sha1Group.images.map(c=>c.id)):o.push(l.image.id),l=l.nextImages();return o.length?(this.selectImages(o),!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,o=[],l=i.clone();for(;l&&!n.isGroupBefore(l);){const c=l.group;c.images.length&&o.push(...c.images.map(d=>d.id)),l=l.nextGroup()}return o.length?(this.selectImages(o),!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),rr(this.selectedImages)}unselectImages(t){t.forEach(i=>delete this.selectedImages.value[i]),rr(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(o=>!this.selectedImages.value[o.id])?this.unselectGroupIterator(t):this.selectGroupIterator(t,i)}}class or{constructor(t,i,n){Zt(this,"isValid");Zt(this,"group");Zt(this,"manager");Zt(this,"groupId");Zt(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 or(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 or(this.manager,t.children[0].id);let i=t.parent;for(;i!=null;){const n=i.children[t.parentIdx+1];if(n)return new or(this.manager,n.id);t=i,i=t.parent}}prevGroup(){var o;let t=this.group;const i=(o=t.parent)==null?void 0:o.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 or(this.manager,l.id)}else return new or(this.manager,i.id);const n=t.parent;if(n&&n.parent)return new or(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 Wn(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 o=n.subGroupType=="sha1"?n.children.length-1:n.images.length-1;return new Wn(this.manager,i.group.id,o,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 Wn(this.manager,i.group.id,0,this.options);i=i.prevGroup()}}nextImages(){let i=this.clone(),n=i.imageIdx+1;for(;i;){const o=i.group;if(o.subGroupType=="sha1"){if(o.children[n])return new Wn(this.manager,i.groupId,n,this.options)}else if(o.images[n])return new Wn(this.manager,i.groupId,n,this.options);i=i.nextGroup(),n=0}}prevImages(){let i=this.clone(),n=i.imageIdx-1;for(;i;){const o=i.group;if(o.subGroupType=="sha1"){if(o.children[n])return new Wn(this.manager,i.groupId,n,this.options)}else if(o.images[n])return new Wn(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[o].children;i.push(...l),l.forEach(c=>n(c.id))};return n(e),i}const I_=e=>new Promise(t=>setTimeout(t,e));class Ka{constructor(){Zt(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 Wp(e){const t=[];let i=e.parent;for(;i;)t.push(i),i=i.parent;return t}function BR(e,t){const i=[],n=o=>{i.push(o.id),o.children&&o.children.filter(l=>l!=Hi).forEach(l=>n(t[l]))};return n(e),i}function WR(e,t){const i=[],n=o=>{if(o)for(let l of o.parents)l!=0&&(i.push(l),n(t[l]))};return n(e),i}function Qn(e){return Object.keys(e).map(t=>e[t])}function Nr(e){return e=e.toString(),e.length<2&&(e="0"+e),e}function pm(){let e=document.getElementsByClassName("v-step__button-next")[0];e&&e.click()}function On(e){if(e===Object(e)&&!Array.isArray(e)&&typeof e!="function"){const t={};return Object.keys(e).forEach(i=>{t[jR(i)]=On(e[i])}),t}else if(Array.isArray(e))return e.map(t=>On(t));return e}function jR(e){return e.replace(/([-_][a-z])/gi,t=>t.toUpperCase().replace("-","").replace("_",""))}function Vs(e){if(e===Object(e)&&!Array.isArray(e)&&typeof e!="function"){const t={};return Object.keys(e).forEach(i=>{t[YR(i)]=Vs(e[i])}),t}else if(Array.isArray(e))return e.map(t=>Vs(t));return e}function YR(e){return e.replace(/[A-Z]/g,t=>`_${t.toLowerCase()}`)}function pn(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e)){const i=[];for(const n of e)i.push(pn(n));return i}if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map){const i=new Map;return e.forEach((n,o)=>{i.set(pn(o),pn(n))}),i}if(e instanceof Set){const i=new Set;return e.forEach(n=>{i.add(pn(n))}),i}const t={};for(const i in e)e.hasOwnProperty(i)&&(t[i]=pn(e[i]));return t}function UR(e){return[e.id,e.sha1,e.ahash,e.folderId,e.width,e.height,e.url]}function GR(e,t,i,n){const o={};for(let l of i)o[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(v=>p.add(v)),p.add(m);Array.from(p).forEach(m=>{o[m].push(l)})}return o}const kh=e=>e.reduce((t,i)=>t+i,0);function nn(e,t){let i=String(e),n="";i[0]=="-"&&(n="-",i=i.substring(1));let o=t-i.length;if(o)for(let l=0;l{const l=i.instances[o].sha1;n[l]||(n[l]=[]),n[l].push(o)}),e.map(o=>{var d;let l=[];o.ids?l=o.ids.map(p=>i.instances[p]):(o.scores&&o.sha1s.forEach((p,m)=>{o.scores.values[m]}),o.sha1s.forEach(p=>n[p].forEach(m=>l.push(i.instances[m]))));const c=Na(i.getTmpId(),l,Sn.Cluster);return c.meta.score=Math.round(((d=o.score)==null?void 0:d.value)??void 0),c.name=o.name,c.isSha1Group=!o.ids,c.score=o.score,c.scores=P_(o,i.sha1Index),c})}function KR(e,t){const i=$t();return e.map(n=>{var c;let o=[];n.ids?o=n.ids.map(d=>i.instances[d]):(n.scores&&n.sha1s.forEach((d,p)=>{n.scores.values[p]}),n.sha1s.forEach(d=>i.sha1Index[d].forEach(p=>o.push(p))));const l=Na(i.getTmpId(),o,Sn.Cluster);return l.meta.score=Math.round((c=n.score)==null?void 0:c.value),l.name=n.name,l.isSha1Group=!n.ids,l.score=n.score,l.scores=P_(n,i.sha1Index),l})}function qR(e){let t=e.scores.maxIsBest?-1:1;return e.images.sort((i,n)=>(e.scores.valueIndex[i.id]-e.scores.valueIndex[n.id])*t),e}function P_(e,t){if(!e.scores)return;const i={};if(e.sha1s)for(let o=0;o{i[o]=e.scores.values[l]}),{min:e.scores.min,max:e.scores.max,maxIsBest:e.scores.maxIsBest,valueIndex:i,description:e.scores.description}}const Rl="";ei.defaults.baseURL=Rl;async function ZR(e,t){let i=new FormData;return i.append("file",t),await ei.post(e,i,{headers:{"Content-Type":"multipart/form-data"}})}ei.interceptors.response.use(e=>e,e=>{const t=en(),i=e.config.baseURL,n=e.config.method,o=e.config.url,l=e.config.data,c={type:ws.ERROR,name:"BackendError",message:"Unexpected Error during backend call",data:{method:n,baseURL:i,url:o,data:l}};t.notify(c)});async function JR(){const e=await ei.get("/db_state");return On(e.data)}async function QR(e){const t=await ei.post("/tags/merge",{tag_ids:e});return On(t.data)}const eD=async e=>await ei.post("/folders",{path:e}),_y=async()=>(await ei.get("/folders")).data;async function tD(e){return(await ei.delete("/folder",{params:{folder_id:e}})).data}async function iD(){let e=await Gu("tabs");return e||{}}async function _f(e){return(await jp("tabs",e)).data}const nD=async e=>{let t=new FormData;return t.append("file",e),await ei.post("/property/file",t,{headers:{"Content-Type":"multipart/form-data"}})};async function sD(e){return(await ZR("/import/upload",e)).data}async function rD(e){const t=await ei.post("/import/parse",e);return On(t.data)}async function oD(){const e=await ei.post("/import/confirm");return On(e.data)}const aD=async(e,t,i,n,o=!1)=>{await ei.post("/export",{name:e,images:t,properties:n,exportImages:o,key:i})};async function lD(){return(await ei.get("/filesystem/info")).data}async function Sy(e){return(await ei.get("/filesystem/ls/"+e)).data}async function cD(e){return(await ei.get("/filesystem/count/"+e)).data}async function uD(){return(await ei.get("/status")).data}async function dD(e){return(await ei.post("/load",{path:e})).data}async function hD(){return(await ei.post("/close")).data}async function fD(e){return(await ei.post("/delete_project",{path:e})).data}async function pD(e,t){return(await ei.post("/create_project",{path:e,name:t})).data}async function gD(e){return(await ei.post("/import_project",{path:e})).data}async function mD(e){return(await ei.post("/reimport_folder",{id:e})).data}async function Sf(){let e=await ei.get("/plugins");return On(e.data)}async function vD(e){return(await ei.post("/plugins",e)).data}async function bD(e){return(await ei.delete("/plugins",{params:{path:e}})).data}async function Ey(){return(await ei.get("/plugins_info")).data}async function yD(e,t){return(await ei.post("/plugin_params",{plugin:e,params:t})).data}async function Cy(){return(await ei.get("/actions")).data}async function xD(e){let t=await ei.post("/action_execute",Vs(e));if(!t)return;const i=t.data;return i.commit&&(i.commit=On(i.commit)),i.groups&&(i.groups=On(i.groups)),i}async function wD(){return(await ei.get("/vectors_info")).data}async function _D(e){return(await ei.post("/default_vectors",e)).data}async function Gu(e){return(await ei.get("/ui_data/"+e)).data}async function jp(e,t){return(await ei.post("/ui_data",{key:e,data:t})).data}async function SD(){const e=await ei.post("/undo");return On(e.data)}async function ED(){const e=await ei.post("/redo");return On(e.data)}async function CD(e){const t=Vs(pn(e));e.instances&&(t.instances=e.instances.map(n=>Vs(n))),e.properties&&(t.properties=e.properties.map(n=>Vs(n))),e.tags&&(t.tags=e.tags.map(n=>Vs(n))),e.instanceValues&&(t.instance_values=e.instanceValues.map(n=>Vs(n))),e.imageValues&&(t.image_values=e.imageValues.map(n=>Vs(n)));const i=await ei.post("/commit",t);return On(i.data)}async function AD(){return(await ei.get("/history")).data}async function Ay(){const e=await ei.get("/update");return On(e.data)}async function kD(){const e=await ei.get("/settings");return On(e.data)}async function TD(e){const t=await ei.post("/settings",Vs(e));return On(t.data)}const ID="modulepreload",OD=function(e){return"/"+e},ky={},Ef=function(t,i,n){if(!i||i.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(i.map(l=>{if(l=OD(l),l in ky)return;ky[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(!!n)for(let v=o.length-1;v>=0;v--){const y=o[v];if(y.href===l&&(!c||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${d}`))return;const m=document.createElement("link");if(m.rel=c?"stylesheet":ID,c||(m.as="script",m.crossOrigin=""),m.href=l,document.head.appendChild(m),c)return new Promise((v,y)=>{m.addEventListener("load",v),m.addEventListener("error",()=>y(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})},Yp=VM({history:iM("/"),routes:[{path:"/",name:"home",component:()=>Ef(()=>import("./HomeView-1865112a.js"),["assets/HomeView-1865112a.js","assets/Tutorial-3004321d.js","assets/Tutorial-37229e07.css","assets/HomeView-487589ba.css"])},{path:"/test",name:"test",component:()=>Ef(()=>import("./TestView-e46f42b0.js"),["assets/TestView-e46f42b0.js","assets/TestView-a6608232.css"])},{path:"/view",name:"view",component:()=>Ef(()=>import("./PanopticView-06ae2245.js"),["assets/PanopticView-06ae2245.js","assets/Tutorial-3004321d.js","assets/Tutorial-37229e07.css","assets/PanopticView-d5ad3924.css"])}]}),Cc=Fc("modalStore",()=>{const e=ti({}),t=ti({}),i=Ee(()=>{const p={};for(let m of Object.values(t))p[m.id]=!0;return p});function n(p,m=0){e[p]=m}function o(p,m){m=m??{};const v=e[p];v!==void 0&&(t[v]={id:p,data:m})}function l(p){const m=e[p];m!==void 0&&delete t[m]}function c(p){var y;const m=e[p],v=(y=t[m])==null?void 0:y.data;if(m!==void 0&&i.value[p])return v}function d(p){return i.value[p]}return{idIndex:e,layerOpen:t,openIndex:i,registerModal:n,openModal:o,closeModal:l,isOpen:d,getData:c}});let Ty=0;const en=Fc("panopticStore",()=>{const e=ji(),t=ti({status:{},plugins:[],init:!1}),i=ti({hasError:!1,error:""}),n=Ae(null),o=Ae(null),l=Ae([]),c=Ee(()=>t.status.isLoaded);async function d(){t.init=!1;try{t.status=await uD(),t.plugins=await Sf(),t.init=!0,t.status.isLoaded&&e.init()}catch{setTimeout(()=>d(),1e3)}}async function p(D,H){e.clear(),H||(t.status=await dD(D)),await Yp.push("/view"),setTimeout(()=>e.init(),10)}async function m(){e.status.loaded=!1,e.clear(),l.value=[],t.status=await hD(),Yp.push("/")}async function v(D){t.status=await fD(D)}async function y(D,H){D=D.endsWith("\\")?D:D+"/";const Z=D+H;t.status=await pD(Z,H),await p(Z,!0)}async function _(D){t.status=await gD(D),await p(D,!0)}function S(D,H){n.value=D,o.value=H,Cc().openModal(D,H)}function T(D){n.value=null,o.value=null,Cc().closeModal(D)}async function C(D){D&&(await vD(D),t.plugins=await Sf())}async function O(D){await bD(D),t.plugins=await Sf()}function P(){l.value=[]}function I(D){Array.isArray(D)||(D=[D]);for(let H of D)H.id=M(),H.receivedAt=new Date,l.value.push(H);S(Ri.NOTIF,D[D.length-1].id)}function N(D){const H=l.value.findIndex(Z=>Z.id==D);console.log(H),!(H<0)&&l.value.splice(H,1)}function M(){return Ty+=1,Ty}return{init:d,data:t,state:i,modalData:o,hideModal:T,showModal:S,openModalId:n,isProjectLoaded:c,loadProject:p,closeProject:m,deleteProject:v,createProject:y,importProject:_,addPlugin:C,delPlugin:O,notifs:l,clearNotif:P,notify:I,delNotif:N}});var kn="top",Xn="bottom",Kn="right",Tn="left",Th="auto",ul=[kn,Xn,Kn,Tn],Yo="start",qa="end",L_="clippingParents",gm="viewport",xa="popper",M_="reference",Up=ul.reduce(function(e,t){return e.concat([t+"-"+Yo,t+"-"+qa])},[]),mm=[].concat(ul,[Th]).reduce(function(e,t){return e.concat([t,t+"-"+Yo,t+"-"+qa])},[]),N_="beforeRead",R_="read",D_="afterRead",$_="beforeMain",F_="main",V_="afterMain",z_="beforeWrite",H_="write",B_="afterWrite",W_=[N_,R_,D_,$_,F_,V_,z_,H_,B_];function Xs(e){return e?(e.nodeName||"").toLowerCase():null}function fs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Uo(e){var t=fs(e).Element;return e instanceof t||e instanceof Element}function ss(e){var t=fs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function vm(e){if(typeof ShadowRoot>"u")return!1;var t=fs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function PD(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var n=t.styles[i]||{},o=t.attributes[i]||{},l=t.elements[i];!ss(l)||!Xs(l)||(Object.assign(l.style,n),Object.keys(o).forEach(function(c){var d=o[c];d===!1?l.removeAttribute(c):l.setAttribute(c,d===!0?"":d)}))})}function LD(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 o=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},{});!ss(o)||!Xs(o)||(Object.assign(o.style,d),Object.keys(l).forEach(function(p){o.removeAttribute(p)}))})}}const bm={name:"applyStyles",enabled:!0,phase:"write",fn:PD,effect:LD,requires:["computeStyles"]};function Bs(e){return e.split("-")[0]}var Fo=Math.max,Ld=Math.min,Za=Math.round;function Gp(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function j_(){return!/^((?!chrome|android).)*safari/i.test(Gp())}function Ja(e,t,i){t===void 0&&(t=!1),i===void 0&&(i=!1);var n=e.getBoundingClientRect(),o=1,l=1;t&&ss(e)&&(o=e.offsetWidth>0&&Za(n.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Za(n.height)/e.offsetHeight||1);var c=Uo(e)?fs(e):window,d=c.visualViewport,p=!j_()&&i,m=(n.left+(p&&d?d.offsetLeft:0))/o,v=(n.top+(p&&d?d.offsetTop:0))/l,y=n.width/o,_=n.height/l;return{width:y,height:_,top:v,right:m+y,bottom:v+_,left:m,x:m,y:v}}function ym(e){var t=Ja(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 Y_(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&vm(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Sr(e){return fs(e).getComputedStyle(e)}function MD(e){return["table","td","th"].indexOf(Xs(e))>=0}function go(e){return((Uo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ih(e){return Xs(e)==="html"?e:e.assignedSlot||e.parentNode||(vm(e)?e.host:null)||go(e)}function Iy(e){return!ss(e)||Sr(e).position==="fixed"?null:e.offsetParent}function ND(e){var t=/firefox/i.test(Gp()),i=/Trident/i.test(Gp());if(i&&ss(e)){var n=Sr(e);if(n.position==="fixed")return null}var o=Ih(e);for(vm(o)&&(o=o.host);ss(o)&&["html","body"].indexOf(Xs(o))<0;){var l=Sr(o);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 o;o=o.parentNode}return null}function Bc(e){for(var t=fs(e),i=Iy(e);i&&MD(i)&&Sr(i).position==="static";)i=Iy(i);return i&&(Xs(i)==="html"||Xs(i)==="body"&&Sr(i).position==="static")?t:i||ND(e)||t}function xm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jl(e,t,i){return Fo(e,Ld(t,i))}function RD(e,t,i){var n=Jl(e,t,i);return n>i?i:n}function U_(){return{top:0,right:0,bottom:0,left:0}}function G_(e){return Object.assign({},U_(),e)}function X_(e,t){return t.reduce(function(i,n){return i[n]=e,i},{})}var DD=function(t,i){return t=typeof t=="function"?t(Object.assign({},i.rects,{placement:i.placement})):t,G_(typeof t!="number"?t:X_(t,ul))};function $D(e){var t,i=e.state,n=e.name,o=e.options,l=i.elements.arrow,c=i.modifiersData.popperOffsets,d=Bs(i.placement),p=xm(d),m=[Tn,Kn].indexOf(d)>=0,v=m?"height":"width";if(!(!l||!c)){var y=DD(o.padding,i),_=ym(l),S=p==="y"?kn:Tn,T=p==="y"?Xn:Kn,C=i.rects.reference[v]+i.rects.reference[p]-c[p]-i.rects.popper[v],O=c[p]-i.rects.reference[p],P=Bc(l),I=P?p==="y"?P.clientHeight||0:P.clientWidth||0:0,N=C/2-O/2,M=y[S],D=I-_[v]-y[T],H=I/2-_[v]/2+N,Z=Jl(M,H,D),te=p;i.modifiersData[n]=(t={},t[te]=Z,t.centerOffset=Z-H,t)}}function FD(e){var t=e.state,i=e.options,n=i.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Y_(t.elements.popper,o)&&(t.elements.arrow=o))}const K_={name:"arrow",enabled:!0,phase:"main",fn:$D,effect:FD,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qa(e){return e.split("-")[1]}var VD={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zD(e){var t=e.x,i=e.y,n=window,o=n.devicePixelRatio||1;return{x:Za(t*o)/o||0,y:Za(i*o)/o||0}}function Oy(e){var t,i=e.popper,n=e.popperRect,o=e.placement,l=e.variation,c=e.offsets,d=e.position,p=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,y=e.isFixed,_=c.x,S=_===void 0?0:_,T=c.y,C=T===void 0?0:T,O=typeof v=="function"?v({x:S,y:C}):{x:S,y:C};S=O.x,C=O.y;var P=c.hasOwnProperty("x"),I=c.hasOwnProperty("y"),N=Tn,M=kn,D=window;if(m){var H=Bc(i),Z="clientHeight",te="clientWidth";if(H===fs(i)&&(H=go(i),Sr(H).position!=="static"&&d==="absolute"&&(Z="scrollHeight",te="scrollWidth")),H=H,o===kn||(o===Tn||o===Kn)&&l===qa){M=Xn;var Y=y&&H===D&&D.visualViewport?D.visualViewport.height:H[Z];C-=Y-n.height,C*=p?1:-1}if(o===Tn||(o===kn||o===Xn)&&l===qa){N=Kn;var ee=y&&H===D&&D.visualViewport?D.visualViewport.width:H[te];S-=ee-n.width,S*=p?1:-1}}var le=Object.assign({position:d},m&&VD),oe=v===!0?zD({x:S,y:C}):{x:S,y:C};if(S=oe.x,C=oe.y,p){var pe;return Object.assign({},le,(pe={},pe[M]=I?"0":"",pe[N]=P?"0":"",pe.transform=(D.devicePixelRatio||1)<=1?"translate("+S+"px, "+C+"px)":"translate3d("+S+"px, "+C+"px, 0)",pe))}return Object.assign({},le,(t={},t[M]=I?C+"px":"",t[N]=P?S+"px":"",t.transform="",t))}function HD(e){var t=e.state,i=e.options,n=i.gpuAcceleration,o=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:Bs(t.placement),variation:Qa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Oy(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,Oy(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 wm={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:HD,data:{}};var bu={passive:!0};function BD(e){var t=e.state,i=e.instance,n=e.options,o=n.scroll,l=o===void 0?!0:o,c=n.resize,d=c===void 0?!0:c,p=fs(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&m.forEach(function(v){v.addEventListener("scroll",i.update,bu)}),d&&p.addEventListener("resize",i.update,bu),function(){l&&m.forEach(function(v){v.removeEventListener("scroll",i.update,bu)}),d&&p.removeEventListener("resize",i.update,bu)}}const _m={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:BD,data:{}};var WD={left:"right",right:"left",bottom:"top",top:"bottom"};function Xu(e){return e.replace(/left|right|bottom|top/g,function(t){return WD[t]})}var jD={start:"end",end:"start"};function Py(e){return e.replace(/start|end/g,function(t){return jD[t]})}function Sm(e){var t=fs(e),i=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:i,scrollTop:n}}function Em(e){return Ja(go(e)).left+Sm(e).scrollLeft}function YD(e,t){var i=fs(e),n=go(e),o=i.visualViewport,l=n.clientWidth,c=n.clientHeight,d=0,p=0;if(o){l=o.width,c=o.height;var m=j_();(m||!m&&t==="fixed")&&(d=o.offsetLeft,p=o.offsetTop)}return{width:l,height:c,x:d+Em(e),y:p}}function UD(e){var t,i=go(e),n=Sm(e),o=(t=e.ownerDocument)==null?void 0:t.body,l=Fo(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=Fo(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),d=-n.scrollLeft+Em(e),p=-n.scrollTop;return Sr(o||i).direction==="rtl"&&(d+=Fo(i.clientWidth,o?o.clientWidth:0)-l),{width:l,height:c,x:d,y:p}}function Cm(e){var t=Sr(e),i=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function q_(e){return["html","body","#document"].indexOf(Xs(e))>=0?e.ownerDocument.body:ss(e)&&Cm(e)?e:q_(Ih(e))}function Ql(e,t){var i;t===void 0&&(t=[]);var n=q_(e),o=n===((i=e.ownerDocument)==null?void 0:i.body),l=fs(n),c=o?[l].concat(l.visualViewport||[],Cm(n)?n:[]):n,d=t.concat(c);return o?d:d.concat(Ql(Ih(c)))}function Xp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function GD(e,t){var i=Ja(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 Ly(e,t,i){return t===gm?Xp(YD(e,i)):Uo(t)?GD(t,i):Xp(UD(go(e)))}function XD(e){var t=Ql(Ih(e)),i=["absolute","fixed"].indexOf(Sr(e).position)>=0,n=i&&ss(e)?Bc(e):e;return Uo(n)?t.filter(function(o){return Uo(o)&&Y_(o,n)&&Xs(o)!=="body"}):[]}function KD(e,t,i,n){var o=t==="clippingParents"?XD(e):[].concat(t),l=[].concat(o,[i]),c=l[0],d=l.reduce(function(p,m){var v=Ly(e,m,n);return p.top=Fo(v.top,p.top),p.right=Ld(v.right,p.right),p.bottom=Ld(v.bottom,p.bottom),p.left=Fo(v.left,p.left),p},Ly(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 Z_(e){var t=e.reference,i=e.element,n=e.placement,o=n?Bs(n):null,l=n?Qa(n):null,c=t.x+t.width/2-i.width/2,d=t.y+t.height/2-i.height/2,p;switch(o){case kn:p={x:c,y:t.y-i.height};break;case Xn:p={x:c,y:t.y+t.height};break;case Kn:p={x:t.x+t.width,y:d};break;case Tn:p={x:t.x-i.width,y:d};break;default:p={x:t.x,y:t.y}}var m=o?xm(o):null;if(m!=null){var v=m==="y"?"height":"width";switch(l){case Yo:p[m]=p[m]-(t[v]/2-i[v]/2);break;case qa:p[m]=p[m]+(t[v]/2-i[v]/2);break}}return p}function el(e,t){t===void 0&&(t={});var i=t,n=i.placement,o=n===void 0?e.placement:n,l=i.strategy,c=l===void 0?e.strategy:l,d=i.boundary,p=d===void 0?L_:d,m=i.rootBoundary,v=m===void 0?gm:m,y=i.elementContext,_=y===void 0?xa:y,S=i.altBoundary,T=S===void 0?!1:S,C=i.padding,O=C===void 0?0:C,P=G_(typeof O!="number"?O:X_(O,ul)),I=_===xa?M_:xa,N=e.rects.popper,M=e.elements[T?I:_],D=KD(Uo(M)?M:M.contextElement||go(e.elements.popper),p,v,c),H=Ja(e.elements.reference),Z=Z_({reference:H,element:N,strategy:"absolute",placement:o}),te=Xp(Object.assign({},N,Z)),Y=_===xa?te:H,ee={top:D.top-Y.top+P.top,bottom:Y.bottom-D.bottom+P.bottom,left:D.left-Y.left+P.left,right:Y.right-D.right+P.right},le=e.modifiersData.offset;if(_===xa&&le){var oe=le[o];Object.keys(ee).forEach(function(pe){var ge=[Kn,Xn].indexOf(pe)>=0?1:-1,Ce=[kn,Xn].indexOf(pe)>=0?"y":"x";ee[pe]+=oe[Ce]*ge})}return ee}function qD(e,t){t===void 0&&(t={});var i=t,n=i.placement,o=i.boundary,l=i.rootBoundary,c=i.padding,d=i.flipVariations,p=i.allowedAutoPlacements,m=p===void 0?mm:p,v=Qa(n),y=v?d?Up:Up.filter(function(T){return Qa(T)===v}):ul,_=y.filter(function(T){return m.indexOf(T)>=0});_.length===0&&(_=y);var S=_.reduce(function(T,C){return T[C]=el(e,{placement:C,boundary:o,rootBoundary:l,padding:c})[Bs(C)],T},{});return Object.keys(S).sort(function(T,C){return S[T]-S[C]})}function ZD(e){if(Bs(e)===Th)return[];var t=Xu(e);return[Py(e),t,Py(t)]}function JD(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=i.mainAxis,l=o===void 0?!0:o,c=i.altAxis,d=c===void 0?!0:c,p=i.fallbackPlacements,m=i.padding,v=i.boundary,y=i.rootBoundary,_=i.altBoundary,S=i.flipVariations,T=S===void 0?!0:S,C=i.allowedAutoPlacements,O=t.options.placement,P=Bs(O),I=P===O,N=p||(I||!T?[Xu(O)]:ZD(O)),M=[O].concat(N).reduce(function(st,Oe){return st.concat(Bs(Oe)===Th?qD(t,{placement:Oe,boundary:v,rootBoundary:y,padding:m,flipVariations:T,allowedAutoPlacements:C}):Oe)},[]),D=t.rects.reference,H=t.rects.popper,Z=new Map,te=!0,Y=M[0],ee=0;ee=0,Ce=ge?"width":"height",ue=el(t,{placement:le,boundary:v,rootBoundary:y,altBoundary:_,padding:m}),ie=ge?pe?Kn:Tn:pe?Xn:kn;D[Ce]>H[Ce]&&(ie=Xu(ie));var X=Xu(ie),fe=[];if(l&&fe.push(ue[oe]<=0),d&&fe.push(ue[ie]<=0,ue[X]<=0),fe.every(function(st){return st})){Y=le,te=!1;break}Z.set(le,fe)}if(te)for(var me=T?3:1,de=function(Oe){var Pe=M.find(function(we){var De=Z.get(we);if(De)return De.slice(0,Oe).every(function(Se){return Se})});if(Pe)return Y=Pe,"break"},ye=me;ye>0;ye--){var ze=de(ye);if(ze==="break")break}t.placement!==Y&&(t.modifiersData[n]._skip=!0,t.placement=Y,t.reset=!0)}}const J_={name:"flip",enabled:!0,phase:"main",fn:JD,requiresIfExists:["offset"],data:{_skip:!1}};function My(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 Ny(e){return[kn,Kn,Xn,Tn].some(function(t){return e[t]>=0})}function QD(e){var t=e.state,i=e.name,n=t.rects.reference,o=t.rects.popper,l=t.modifiersData.preventOverflow,c=el(t,{elementContext:"reference"}),d=el(t,{altBoundary:!0}),p=My(c,n),m=My(d,o,l),v=Ny(p),y=Ny(m);t.modifiersData[i]={referenceClippingOffsets:p,popperEscapeOffsets:m,isReferenceHidden:v,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":y})}const Q_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:QD};function e2(e,t,i){var n=Bs(e),o=[Tn,kn].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)*o,[Tn,Kn].indexOf(n)>=0?{x:d,y:c}:{x:c,y:d}}function t2(e){var t=e.state,i=e.options,n=e.name,o=i.offset,l=o===void 0?[0,0]:o,c=mm.reduce(function(v,y){return v[y]=e2(y,t.rects,l),v},{}),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 eS={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:t2};function i2(e){var t=e.state,i=e.name;t.modifiersData[i]=Z_({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Am={name:"popperOffsets",enabled:!0,phase:"read",fn:i2,data:{}};function n2(e){return e==="x"?"y":"x"}function s2(e){var t=e.state,i=e.options,n=e.name,o=i.mainAxis,l=o===void 0?!0:o,c=i.altAxis,d=c===void 0?!1:c,p=i.boundary,m=i.rootBoundary,v=i.altBoundary,y=i.padding,_=i.tether,S=_===void 0?!0:_,T=i.tetherOffset,C=T===void 0?0:T,O=el(t,{boundary:p,rootBoundary:m,padding:y,altBoundary:v}),P=Bs(t.placement),I=Qa(t.placement),N=!I,M=xm(P),D=n2(M),H=t.modifiersData.popperOffsets,Z=t.rects.reference,te=t.rects.popper,Y=typeof C=="function"?C(Object.assign({},t.rects,{placement:t.placement})):C,ee=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),le=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,oe={x:0,y:0};if(H){if(l){var pe,ge=M==="y"?kn:Tn,Ce=M==="y"?Xn:Kn,ue=M==="y"?"height":"width",ie=H[M],X=ie+O[ge],fe=ie-O[Ce],me=S?-te[ue]/2:0,de=I===Yo?Z[ue]:te[ue],ye=I===Yo?-te[ue]:-Z[ue],ze=t.elements.arrow,st=S&&ze?ym(ze):{width:0,height:0},Oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:U_(),Pe=Oe[ge],we=Oe[Ce],De=Jl(0,Z[ue],st[ue]),Se=N?Z[ue]/2-me-De-Pe-ee.mainAxis:de-De-Pe-ee.mainAxis,Ie=N?-Z[ue]/2+me+De+we+ee.mainAxis:ye+De+we+ee.mainAxis,Fe=t.elements.arrow&&Bc(t.elements.arrow),Ge=Fe?M==="y"?Fe.clientTop||0:Fe.clientLeft||0:0,he=(pe=le==null?void 0:le[M])!=null?pe:0,se=ie+Se-he-Ge,Te=ie+Ie-he,Ke=Jl(S?Ld(X,se):X,ie,S?Fo(fe,Te):fe);H[M]=Ke,oe[M]=Ke-ie}if(d){var Be,Qe=M==="x"?kn:Tn,ht=M==="x"?Xn:Kn,ae=H[D],ce=D==="y"?"height":"width",ke=ae+O[Qe],et=ae-O[ht],nt=[kn,Tn].indexOf(P)!==-1,tt=(Be=le==null?void 0:le[D])!=null?Be:0,Re=nt?ke:ae-Z[ce]-te[ce]-tt+ee.altAxis,Ye=nt?ae+Z[ce]+te[ce]-tt-ee.altAxis:et,St=S&&nt?RD(Re,ae,Ye):Jl(S?Re:ke,ae,S?Ye:et);H[D]=St,oe[D]=St-ae}t.modifiersData[n]=oe}}const tS={name:"preventOverflow",enabled:!0,phase:"main",fn:s2,requiresIfExists:["offset"]};function r2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function o2(e){return e===fs(e)||!ss(e)?Sm(e):r2(e)}function a2(e){var t=e.getBoundingClientRect(),i=Za(t.width)/e.offsetWidth||1,n=Za(t.height)/e.offsetHeight||1;return i!==1||n!==1}function l2(e,t,i){i===void 0&&(i=!1);var n=ss(t),o=ss(t)&&a2(t),l=go(t),c=Ja(e,o,i),d={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(n||!n&&!i)&&((Xs(t)!=="body"||Cm(l))&&(d=o2(t)),ss(t)?(p=Ja(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):l&&(p.x=Em(l))),{x:c.left+d.scrollLeft-p.x,y:c.top+d.scrollTop-p.y,width:c.width,height:c.height}}function c2(e){var t=new Map,i=new Set,n=[];e.forEach(function(l){t.set(l.name,l)});function o(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&&o(p)}}),n.push(l)}return e.forEach(function(l){i.has(l.name)||o(l)}),n}function u2(e){var t=c2(e);return W_.reduce(function(i,n){return i.concat(t.filter(function(o){return o.phase===n}))},[])}function d2(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}function h2(e){var t=e.reduce(function(i,n){var o=i[n.name];return i[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,i},{});return Object.keys(t).map(function(i){return t[i]})}var Ry={placement:"bottom",modifiers:[],strategy:"absolute"};function Dy(){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(),x2=e=>{do e+=Math.floor(Math.random()*v2);while(document.getElementById(e));return e},nS=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},sS=e=>{const t=nS(e);return t&&document.querySelector(t)?t:null},mr=e=>{const t=nS(e);return t?document.querySelector(t):null},w2=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),o=Number.parseFloat(i);return!n&&!o?0:(t=t.split(",")[0],i=i.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(i))*b2)},rS=e=>{e.dispatchEvent(new Event(Kp))},vr=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),so=e=>vr(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(e):null,dl=e=>{if(!vr(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},ro=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",oS=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?oS(e.parentNode):null},Md=()=>{},Wc=e=>{e.offsetHeight},aS=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Cf=[],_2=e=>{document.readyState==="loading"?(Cf.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of Cf)t()}),Cf.push(e)):e()},ls=()=>document.documentElement.dir==="rtl",ps=e=>{_2(()=>{const t=aS();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)}})},dr=e=>{typeof e=="function"&&e()},lS=(e,t,i=!0)=>{if(!i){dr(e);return}const n=5,o=w2(t)+n;let l=!1;const c=({target:d})=>{d===t&&(l=!0,t.removeEventListener(Kp,c),dr(e))};t.addEventListener(Kp,c),setTimeout(()=>{l||rS(t)},o)},Tm=(e,t,i,n)=>{const o=e.length;let l=e.indexOf(t);return l===-1?!i&&n?e[o-1]:e[0]:(l+=i?1:-1,n&&(l=(l+o)%o),e[Math.max(0,Math.min(l,o-1))])},S2=/[^.]*(?=\..*)\.|.*/,E2=/\..*/,C2=/::\d+$/,Af={};let $y=1;const cS={mouseenter:"mouseover",mouseleave:"mouseout"},A2=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 uS(e,t){return t&&`${t}::${$y++}`||e.uidEvent||$y++}function dS(e){const t=uS(e);return e.uidEvent=t,Af[t]=Af[t]||{},Af[t]}function k2(e,t){return function i(n){return Im(n,{delegateTarget:e}),i.oneOff&&ut.off(e,n.type,t),t.apply(e,[n])}}function T2(e,t,i){return function n(o){const l=e.querySelectorAll(t);for(let{target:c}=o;c&&c!==this;c=c.parentNode)for(const d of l)if(d===c)return Im(o,{delegateTarget:c}),n.oneOff&&ut.off(e,o.type,t,i),i.apply(c,[o])}}function hS(e,t,i=null){return Object.values(e).find(n=>n.callable===t&&n.delegationSelector===i)}function fS(e,t,i){const n=typeof t=="string",o=n?i:t||i;let l=pS(e);return A2.has(l)||(l=e),[n,o,l]}function Fy(e,t,i,n,o){if(typeof t!="string"||!e)return;let[l,c,d]=fS(t,i,n);t in cS&&(c=(T=>function(C){if(!C.relatedTarget||C.relatedTarget!==C.delegateTarget&&!C.delegateTarget.contains(C.relatedTarget))return T.call(this,C)})(c));const p=dS(e),m=p[d]||(p[d]={}),v=hS(m,c,l?i:null);if(v){v.oneOff=v.oneOff&&o;return}const y=uS(c,t.replace(S2,"")),_=l?T2(e,i,c):k2(e,c);_.delegationSelector=l?i:null,_.callable=c,_.oneOff=o,_.uidEvent=y,m[y]=_,e.addEventListener(d,_,l)}function qp(e,t,i,n,o){const l=hS(t[i],n,o);l&&(e.removeEventListener(i,l,!!o),delete t[i][l.uidEvent])}function I2(e,t,i,n){const o=t[i]||{};for(const l of Object.keys(o))if(l.includes(n)){const c=o[l];qp(e,t,i,c.callable,c.delegationSelector)}}function pS(e){return e=e.replace(E2,""),cS[e]||e}const ut={on(e,t,i,n){Fy(e,t,i,n,!1)},one(e,t,i,n){Fy(e,t,i,n,!0)},off(e,t,i,n){if(typeof t!="string"||!e)return;const[o,l,c]=fS(t,i,n),d=c!==t,p=dS(e),m=p[c]||{},v=t.startsWith(".");if(typeof l<"u"){if(!Object.keys(m).length)return;qp(e,p,c,l,o?i:null);return}if(v)for(const y of Object.keys(p))I2(e,p,y,t.slice(1));for(const y of Object.keys(m)){const _=y.replace(C2,"");if(!d||t.includes(_)){const S=m[y];qp(e,p,c,S.callable,S.delegationSelector)}}},trigger(e,t,i){if(typeof t!="string"||!e)return null;const n=aS(),o=pS(t),l=t!==o;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 v=new Event(t,{bubbles:d,cancelable:!0});return v=Im(v,i),m&&v.preventDefault(),p&&e.dispatchEvent(v),v.defaultPrevented&&c&&c.preventDefault(),v}};function Im(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 Rr=new Map,kf={set(e,t,i){Rr.has(e)||Rr.set(e,new Map);const n=Rr.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 Rr.has(e)&&Rr.get(e).get(t)||null},remove(e,t){if(!Rr.has(e))return;const i=Rr.get(e);i.delete(t),i.size===0&&Rr.delete(e)}};function Vy(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 Tf(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const br={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${Tf(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${Tf(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 o=n.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),t[o]=Vy(e.dataset[n])}return t},getDataAttribute(e,t){return Vy(e.getAttribute(`data-bs-${Tf(t)}`))}};class jc{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=vr(i)?br.getDataAttribute(i,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...vr(i)?br.getDataAttributes(i):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,i=this.constructor.DefaultType){for(const n of Object.keys(i)){const o=i[n],l=t[n],c=vr(l)?"element":y2(l);if(!new RegExp(o).test(c))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${c}" but expected type "${o}".`)}}}const O2="5.2.3";class Ls extends jc{constructor(t,i){super(),t=so(t),t&&(this._element=t,this._config=this._getConfig(i),kf.set(this._element,this.constructor.DATA_KEY,this))}dispose(){kf.remove(this._element,this.constructor.DATA_KEY),ut.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,i,n=!0){lS(t,i,n)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return kf.get(so(t),this.DATA_KEY)}static getOrCreateInstance(t,i={}){return this.getInstance(t)||new this(t,typeof i=="object"?i:null)}static get VERSION(){return O2}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 Ph=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;ut.on(document,i,`[data-bs-dismiss="${n}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),ro(this))return;const l=mr(this)||this.closest(`.${n}`);e.getOrCreateInstance(l)[t]()})},P2="alert",L2="bs.alert",gS=`.${L2}`,M2=`close${gS}`,N2=`closed${gS}`,R2="fade",D2="show";class Lh extends Ls{static get NAME(){return P2}close(){if(ut.trigger(this._element,M2).defaultPrevented)return;this._element.classList.remove(D2);const i=this._element.classList.contains(R2);this._queueCallback(()=>this._destroyElement(),this._element,i)}_destroyElement(){this._element.remove(),ut.trigger(this._element,N2),this.dispose()}static jQueryInterface(t){return this.each(function(){const i=Lh.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)}})}}Ph(Lh,"close");ps(Lh);const $2="button",F2="bs.button",V2=`.${F2}`,z2=".data-api",H2="active",zy='[data-bs-toggle="button"]',B2=`click${V2}${z2}`;class Mh extends Ls{static get NAME(){return $2}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(H2))}static jQueryInterface(t){return this.each(function(){const i=Mh.getOrCreateInstance(this);t==="toggle"&&i[t]()})}}ut.on(document,B2,zy,e=>{e.preventDefault();const t=e.target.closest(zy);Mh.getOrCreateInstance(t).toggle()});ps(Mh);const Qt={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=>!ro(i)&&dl(i))}},W2="swipe",hl=".bs.swipe",j2=`touchstart${hl}`,Y2=`touchmove${hl}`,U2=`touchend${hl}`,G2=`pointerdown${hl}`,X2=`pointerup${hl}`,K2="touch",q2="pen",Z2="pointer-event",J2=40,Q2={endCallback:null,leftCallback:null,rightCallback:null},e$={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Nd extends jc{constructor(t,i){super(),this._element=t,!(!t||!Nd.isSupported())&&(this._config=this._getConfig(i),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Q2}static get DefaultType(){return e$}static get NAME(){return W2}dispose(){ut.off(this._element,hl)}_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(),dr(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<=J2)return;const i=t/this._deltaX;this._deltaX=0,i&&dr(i>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ut.on(this._element,G2,t=>this._start(t)),ut.on(this._element,X2,t=>this._end(t)),this._element.classList.add(Z2)):(ut.on(this._element,j2,t=>this._start(t)),ut.on(this._element,Y2,t=>this._move(t)),ut.on(this._element,U2,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===q2||t.pointerType===K2)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const t$="carousel",i$="bs.carousel",mo=`.${i$}`,mS=".data-api",n$="ArrowLeft",s$="ArrowRight",r$=500,Al="next",ua="prev",wa="left",Ku="right",o$=`slide${mo}`,If=`slid${mo}`,a$=`keydown${mo}`,l$=`mouseenter${mo}`,c$=`mouseleave${mo}`,u$=`dragstart${mo}`,d$=`load${mo}${mS}`,h$=`click${mo}${mS}`,vS="carousel",yu="active",f$="slide",p$="carousel-item-end",g$="carousel-item-start",m$="carousel-item-next",v$="carousel-item-prev",bS=".active",yS=".carousel-item",b$=bS+yS,y$=".carousel-item img",x$=".carousel-indicators",w$="[data-bs-slide], [data-bs-slide-to]",_$='[data-bs-ride="carousel"]',S$={[n$]:Ku,[s$]:wa},E$={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},C$={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Yc extends Ls{constructor(t,i){super(t,i),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Qt.findOne(x$,this._element),this._addEventListeners(),this._config.ride===vS&&this.cycle()}static get Default(){return E$}static get DefaultType(){return C$}static get NAME(){return t$}next(){this._slide(Al)}nextWhenVisible(){!document.hidden&&dl(this._element)&&this.next()}prev(){this._slide(ua)}pause(){this._isSliding&&rS(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){ut.one(this._element,If,()=>this.cycle());return}this.cycle()}}to(t){const i=this._getItems();if(t>i.length-1||t<0)return;if(this._isSliding){ut.one(this._element,If,()=>this.to(t));return}const n=this._getItemIndex(this._getActive());if(n===t)return;const o=t>n?Al:ua;this._slide(o,i[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&ut.on(this._element,a$,t=>this._keydown(t)),this._config.pause==="hover"&&(ut.on(this._element,l$,()=>this.pause()),ut.on(this._element,c$,()=>this._maybeEnableCycle())),this._config.touch&&Nd.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of Qt.find(y$,this._element))ut.on(n,u$,o=>o.preventDefault());const i={leftCallback:()=>this._slide(this._directionToOrder(wa)),rightCallback:()=>this._slide(this._directionToOrder(Ku)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),r$+this._config.interval))}};this._swipeHelper=new Nd(this._element,i)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const i=S$[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=Qt.findOne(bS,this._indicatorsElement);i.classList.remove(yu),i.removeAttribute("aria-current");const n=Qt.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);n&&(n.classList.add(yu),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(),o=t===Al,l=i||Tm(this._getItems(),n,o,this._config.wrap);if(l===n)return;const c=this._getItemIndex(l),d=S=>ut.trigger(this._element,S,{relatedTarget:l,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:c});if(d(o$).defaultPrevented||!n||!l)return;const m=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(c),this._activeElement=l;const v=o?g$:p$,y=o?m$:v$;l.classList.add(y),Wc(l),n.classList.add(v),l.classList.add(v);const _=()=>{l.classList.remove(v,y),l.classList.add(yu),n.classList.remove(yu,y,v),this._isSliding=!1,d(If)};this._queueCallback(_,n,this._isAnimated()),m&&this.cycle()}_isAnimated(){return this._element.classList.contains(f$)}_getActive(){return Qt.findOne(b$,this._element)}_getItems(){return Qt.find(yS,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return ls()?t===wa?ua:Al:t===wa?Al:ua}_orderToDirection(t){return ls()?t===ua?wa:Ku:t===ua?Ku:wa}static jQueryInterface(t){return this.each(function(){const i=Yc.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]()}})}}ut.on(document,h$,w$,function(e){const t=mr(this);if(!t||!t.classList.contains(vS))return;e.preventDefault();const i=Yc.getOrCreateInstance(t),n=this.getAttribute("data-bs-slide-to");if(n){i.to(n),i._maybeEnableCycle();return}if(br.getDataAttribute(this,"slide")==="next"){i.next(),i._maybeEnableCycle();return}i.prev(),i._maybeEnableCycle()});ut.on(window,d$,()=>{const e=Qt.find(_$);for(const t of e)Yc.getOrCreateInstance(t)});ps(Yc);const A$="collapse",k$="bs.collapse",Uc=`.${k$}`,T$=".data-api",I$=`show${Uc}`,O$=`shown${Uc}`,P$=`hide${Uc}`,L$=`hidden${Uc}`,M$=`click${Uc}${T$}`,Of="show",Aa="collapse",xu="collapsing",N$="collapsed",R$=`:scope .${Aa} .${Aa}`,D$="collapse-horizontal",$$="width",F$="height",V$=".collapse.show, .collapse.collapsing",Zp='[data-bs-toggle="collapse"]',z$={parent:null,toggle:!0},H$={parent:"(null|element)",toggle:"boolean"};class Ac extends Ls{constructor(t,i){super(t,i),this._isTransitioning=!1,this._triggerArray=[];const n=Qt.find(Zp);for(const o of n){const l=sS(o),c=Qt.find(l).filter(d=>d===this._element);l!==null&&c.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return z$}static get DefaultType(){return H$}static get NAME(){return A$}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(V$).filter(d=>d!==this._element).map(d=>Ac.getOrCreateInstance(d,{toggle:!1}))),t.length&&t[0]._isTransitioning||ut.trigger(this._element,I$).defaultPrevented)return;for(const d of t)d.hide();const n=this._getDimension();this._element.classList.remove(Aa),this._element.classList.add(xu),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(xu),this._element.classList.add(Aa,Of),this._element.style[n]="",ut.trigger(this._element,O$)},c=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[n]=`${this._element[c]}px`}hide(){if(this._isTransitioning||!this._isShown()||ut.trigger(this._element,P$).defaultPrevented)return;const i=this._getDimension();this._element.style[i]=`${this._element.getBoundingClientRect()[i]}px`,Wc(this._element),this._element.classList.add(xu),this._element.classList.remove(Aa,Of);for(const o of this._triggerArray){const l=mr(o);l&&!this._isShown(l)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(xu),this._element.classList.add(Aa),ut.trigger(this._element,L$)};this._element.style[i]="",this._queueCallback(n,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Of)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=so(t.parent),t}_getDimension(){return this._element.classList.contains(D$)?$$:F$}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Zp);for(const i of t){const n=mr(i);n&&this._addAriaAndCollapsedClass([i],this._isShown(n))}}_getFirstLevelChildren(t){const i=Qt.find(R$,this._config.parent);return Qt.find(t,this._config.parent).filter(n=>!i.includes(n))}_addAriaAndCollapsedClass(t,i){if(t.length)for(const n of t)n.classList.toggle(N$,!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=Ac.getOrCreateInstance(this,i);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}ut.on(document,M$,Zp,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();const t=sS(this),i=Qt.find(t);for(const n of i)Ac.getOrCreateInstance(n,{toggle:!1}).toggle()});ps(Ac);const Hy="dropdown",B$="bs.dropdown",ea=`.${B$}`,Om=".data-api",W$="Escape",By="Tab",j$="ArrowUp",Wy="ArrowDown",Y$=2,U$=`hide${ea}`,G$=`hidden${ea}`,X$=`show${ea}`,K$=`shown${ea}`,xS=`click${ea}${Om}`,wS=`keydown${ea}${Om}`,q$=`keyup${ea}${Om}`,_a="show",Z$="dropup",J$="dropend",Q$="dropstart",eF="dropup-center",tF="dropdown-center",Po='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',iF=`${Po}.${_a}`,qu=".dropdown-menu",nF=".navbar",sF=".navbar-nav",rF=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",oF=ls()?"top-end":"top-start",aF=ls()?"top-start":"top-end",lF=ls()?"bottom-end":"bottom-start",cF=ls()?"bottom-start":"bottom-end",uF=ls()?"left-start":"right-start",dF=ls()?"right-start":"left-start",hF="top",fF="bottom",pF={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},gF={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};let fl=class Zu extends Ls{constructor(t,i){super(t,i),this._popper=null,this._parent=this._element.parentNode,this._menu=Qt.next(this._element,qu)[0]||Qt.prev(this._element,qu)[0]||Qt.findOne(qu,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return pF}static get DefaultType(){return gF}static get NAME(){return Hy}toggle(){return this._isShown()?this.hide():this.show()}show(){if(ro(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!ut.trigger(this._element,X$,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(sF))for(const n of[].concat(...document.body.children))ut.on(n,"mouseover",Md);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(_a),this._element.classList.add(_a),ut.trigger(this._element,K$,t)}}hide(){if(ro(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(!ut.trigger(this._element,U$,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))ut.off(n,"mouseover",Md);this._popper&&this._popper.destroy(),this._menu.classList.remove(_a),this._element.classList.remove(_a),this._element.setAttribute("aria-expanded","false"),br.removeDataAttribute(this._menu,"popper"),ut.trigger(this._element,G$,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!vr(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Hy.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof iS>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:vr(this._config.reference)?t=so(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const i=this._getPopperConfig();this._popper=km(t,this._menu,i)}_isShown(){return this._menu.classList.contains(_a)}_getPlacement(){const t=this._parent;if(t.classList.contains(J$))return uF;if(t.classList.contains(Q$))return dF;if(t.classList.contains(eF))return hF;if(t.classList.contains(tF))return fF;const i=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Z$)?i?aF:oF:i?cF:lF}_detectNavbar(){return this._element.closest(nF)!==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")&&(br.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=Qt.find(rF,this._menu).filter(o=>dl(o));n.length&&Tm(n,i,t===Wy,!n.includes(i)).focus()}static jQueryInterface(t){return this.each(function(){const i=Zu.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===Y$||t.type==="keyup"&&t.key!==By)return;const i=Qt.find(iF);for(const n of i){const o=Zu.getInstance(n);if(!o||o._config.autoClose===!1)continue;const l=t.composedPath(),c=l.includes(o._menu);if(l.includes(o._element)||o._config.autoClose==="inside"&&!c||o._config.autoClose==="outside"&&c||o._menu.contains(t.target)&&(t.type==="keyup"&&t.key===By||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const d={relatedTarget:o._element};t.type==="click"&&(d.clickEvent=t),o._completeHide(d)}}static dataApiKeydownHandler(t){const i=/input|textarea/i.test(t.target.tagName),n=t.key===W$,o=[j$,Wy].includes(t.key);if(!o&&!n||i&&!n)return;t.preventDefault();const l=this.matches(Po)?this:Qt.prev(this,Po)[0]||Qt.next(this,Po)[0]||Qt.findOne(Po,t.delegateTarget.parentNode),c=Zu.getOrCreateInstance(l);if(o){t.stopPropagation(),c.show(),c._selectMenuItem(t);return}c._isShown()&&(t.stopPropagation(),c.hide(),l.focus())}};ut.on(document,wS,Po,fl.dataApiKeydownHandler);ut.on(document,wS,qu,fl.dataApiKeydownHandler);ut.on(document,xS,fl.clearMenus);ut.on(document,q$,fl.clearMenus);ut.on(document,xS,Po,function(e){e.preventDefault(),fl.getOrCreateInstance(this).toggle()});ps(fl);const jy=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Yy=".sticky-top",wu="padding-right",Uy="margin-right";class Jp{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,wu,i=>i+t),this._setElementAttributes(jy,wu,i=>i+t),this._setElementAttributes(Yy,Uy,i=>i-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,wu),this._resetElementAttributes(jy,wu),this._resetElementAttributes(Yy,Uy)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,i,n){const o=this.getWidth(),l=c=>{if(c!==this._element&&window.innerWidth>c.clientWidth+o)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&&br.setDataAttribute(t,i,n)}_resetElementAttributes(t,i){const n=o=>{const l=br.getDataAttribute(o,i);if(l===null){o.style.removeProperty(i);return}br.removeDataAttribute(o,i),o.style.setProperty(i,l)};this._applyManipulationCallback(t,n)}_applyManipulationCallback(t,i){if(vr(t)){i(t);return}for(const n of Qt.find(t,this._element))i(n)}}const _S="backdrop",mF="fade",Gy="show",Xy=`mousedown.bs.${_S}`,vF={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},bF={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class SS extends jc{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return vF}static get DefaultType(){return bF}static get NAME(){return _S}show(t){if(!this._config.isVisible){dr(t);return}this._append();const i=this._getElement();this._config.isAnimated&&Wc(i),i.classList.add(Gy),this._emulateAnimation(()=>{dr(t)})}hide(t){if(!this._config.isVisible){dr(t);return}this._getElement().classList.remove(Gy),this._emulateAnimation(()=>{this.dispose(),dr(t)})}dispose(){this._isAppended&&(ut.off(this._element,Xy),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(mF),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=so(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),ut.on(t,Xy,()=>{dr(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){lS(t,this._getElement(),this._config.isAnimated)}}const yF="focustrap",xF="bs.focustrap",Rd=`.${xF}`,wF=`focusin${Rd}`,_F=`keydown.tab${Rd}`,SF="Tab",EF="forward",Ky="backward",CF={autofocus:!0,trapElement:null},AF={autofocus:"boolean",trapElement:"element"};class ES extends jc{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return CF}static get DefaultType(){return AF}static get NAME(){return yF}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ut.off(document,Rd),ut.on(document,wF,t=>this._handleFocusin(t)),ut.on(document,_F,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ut.off(document,Rd))}_handleFocusin(t){const{trapElement:i}=this._config;if(t.target===document||t.target===i||i.contains(t.target))return;const n=Qt.focusableChildren(i);n.length===0?i.focus():this._lastTabNavDirection===Ky?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){t.key===SF&&(this._lastTabNavDirection=t.shiftKey?Ky:EF)}}const kF="modal",TF="bs.modal",Ms=`.${TF}`,IF=".data-api",OF="Escape",PF=`hide${Ms}`,LF=`hidePrevented${Ms}`,CS=`hidden${Ms}`,AS=`show${Ms}`,MF=`shown${Ms}`,NF=`resize${Ms}`,RF=`click.dismiss${Ms}`,DF=`mousedown.dismiss${Ms}`,$F=`keydown.dismiss${Ms}`,FF=`click${Ms}${IF}`,qy="modal-open",VF="fade",Zy="show",Pf="modal-static",zF=".modal.show",HF=".modal-dialog",BF=".modal-body",WF='[data-bs-toggle="modal"]',jF={backdrop:!0,focus:!0,keyboard:!0},YF={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};let Go=class kS extends Ls{constructor(t,i){super(t,i),this._dialog=Qt.findOne(HF,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Jp,this._addEventListeners()}static get Default(){return jF}static get DefaultType(){return YF}static get NAME(){return kF}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||ut.trigger(this._element,AS,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(qy),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||ut.trigger(this._element,PF).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Zy),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){for(const t of[window,this._dialog])ut.off(t,Ms);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new SS({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ES({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=Qt.findOne(BF,this._dialog);i&&(i.scrollTop=0),Wc(this._element),this._element.classList.add(Zy);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ut.trigger(this._element,MF,{relatedTarget:t})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){ut.on(this._element,$F,t=>{if(t.key===OF){if(this._config.keyboard){t.preventDefault(),this.hide();return}this._triggerBackdropTransition()}}),ut.on(window,NF,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ut.on(this._element,DF,t=>{ut.one(this._element,RF,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(qy),this._resetAdjustments(),this._scrollBar.reset(),ut.trigger(this._element,CS)})}_isAnimated(){return this._element.classList.contains(VF)}_triggerBackdropTransition(){if(ut.trigger(this._element,LF).defaultPrevented)return;const i=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(Pf)||(i||(this._element.style.overflowY="hidden"),this._element.classList.add(Pf),this._queueCallback(()=>{this._element.classList.remove(Pf),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 o=ls()?"paddingLeft":"paddingRight";this._element.style[o]=`${i}px`}if(!n&&t){const o=ls()?"paddingRight":"paddingLeft";this._element.style[o]=`${i}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,i){return this.each(function(){const n=kS.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](i)}})}};ut.on(document,FF,WF,function(e){const t=mr(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),ut.one(t,AS,o=>{o.defaultPrevented||ut.one(t,CS,()=>{dl(this)&&this.focus()})});const i=Qt.findOne(zF);i&&Go.getInstance(i).hide(),Go.getOrCreateInstance(t).toggle(this)});Ph(Go);ps(Go);const UF="offcanvas",GF="bs.offcanvas",kr=`.${GF}`,TS=".data-api",XF=`load${kr}${TS}`,KF="Escape",Jy="show",Qy="showing",ex="hiding",qF="offcanvas-backdrop",IS=".offcanvas.show",ZF=`show${kr}`,JF=`shown${kr}`,QF=`hide${kr}`,tx=`hidePrevented${kr}`,OS=`hidden${kr}`,eV=`resize${kr}`,tV=`click${kr}${TS}`,iV=`keydown.dismiss${kr}`,nV='[data-bs-toggle="offcanvas"]',sV={backdrop:!0,keyboard:!0,scroll:!1},rV={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class oo extends Ls{constructor(t,i){super(t,i),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return sV}static get DefaultType(){return rV}static get NAME(){return UF}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||ut.trigger(this._element,ZF,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Jp().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Qy);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Jy),this._element.classList.remove(Qy),ut.trigger(this._element,JF,{relatedTarget:t})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||ut.trigger(this._element,QF).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(ex),this._backdrop.hide();const i=()=>{this._element.classList.remove(Jy,ex),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Jp().reset(),ut.trigger(this._element,OS)};this._queueCallback(i,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){ut.trigger(this._element,tx);return}this.hide()},i=!!this._config.backdrop;return new SS({className:qF,isVisible:i,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:i?t:null})}_initializeFocusTrap(){return new ES({trapElement:this._element})}_addEventListeners(){ut.on(this._element,iV,t=>{if(t.key===KF){if(!this._config.keyboard){ut.trigger(this._element,tx);return}this.hide()}})}static jQueryInterface(t){return this.each(function(){const i=oo.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)}})}}ut.on(document,tV,nV,function(e){const t=mr(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),ro(this))return;ut.one(t,OS,()=>{dl(this)&&this.focus()});const i=Qt.findOne(IS);i&&i!==t&&oo.getInstance(i).hide(),oo.getOrCreateInstance(t).toggle(this)});ut.on(window,XF,()=>{for(const e of Qt.find(IS))oo.getOrCreateInstance(e).show()});ut.on(window,eV,()=>{for(const e of Qt.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&oo.getOrCreateInstance(e).hide()});Ph(oo);ps(oo);const oV=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),aV=/^aria-[\w-]*$/i,lV=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,cV=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,uV=(e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?oV.has(i)?!!(lV.test(e.nodeValue)||cV.test(e.nodeValue)):!0:t.filter(n=>n instanceof RegExp).some(n=>n.test(i))},PS={"*":["class","dir","id","lang","role",aV],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 dV(e,t,i){if(!e.length)return e;if(i&&typeof i=="function")return i(e);const o=new window.DOMParser().parseFromString(e,"text/html"),l=[].concat(...o.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 v of p)uV(v,m)||c.removeAttribute(v.nodeName)}return o.body.innerHTML}const hV="TemplateFactory",fV={allowList:PS,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},pV={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},gV={entry:"(string|element|function|null)",selector:"(string|element)"};class mV extends jc{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return fV}static get DefaultType(){return pV}static get NAME(){return hV}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[o,l]of Object.entries(this._config.content))this._setContent(t,l,o);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},gV)}_setContent(t,i,n){const o=Qt.findOne(n,t);if(o){if(i=this._resolvePossibleFunction(i),!i){o.remove();return}if(vr(i)){this._putElementInTemplate(so(i),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(i);return}o.textContent=i}}_maybeSanitize(t){return this._config.sanitize?dV(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 vV="tooltip",bV=new Set(["sanitize","allowList","sanitizeFn"]),Lf="fade",yV="modal",_u="show",xV=".tooltip-inner",ix=`.${yV}`,nx="hide.bs.modal",kl="hover",Mf="focus",wV="click",_V="manual",SV="hide",EV="hidden",CV="show",AV="shown",kV="inserted",TV="click",IV="focusin",OV="focusout",PV="mouseenter",LV="mouseleave",MV={AUTO:"auto",TOP:"top",RIGHT:ls()?"left":"right",BOTTOM:"bottom",LEFT:ls()?"right":"left"},NV={allowList:PS,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"},RV={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 pl extends Ls{constructor(t,i){if(typeof iS>"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 NV}static get DefaultType(){return RV}static get NAME(){return vV}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),ut.off(this._element.closest(ix),nx,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=ut.trigger(this._element,this.constructor.eventName(CV)),n=(oS(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!n)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:l}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(l.append(o),ut.trigger(this._element,this.constructor.eventName(kV))),this._popper=this._createPopper(o),o.classList.add(_u),"ontouchstart"in document.documentElement)for(const d of[].concat(...document.body.children))ut.on(d,"mouseover",Md);const c=()=>{ut.trigger(this._element,this.constructor.eventName(AV)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(c,this.tip,this._isAnimated())}hide(){if(!this._isShown()||ut.trigger(this._element,this.constructor.eventName(SV)).defaultPrevented)return;if(this._getTipElement().classList.remove(_u),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))ut.off(o,"mouseover",Md);this._activeTrigger[wV]=!1,this._activeTrigger[Mf]=!1,this._activeTrigger[kl]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ut.trigger(this._element,this.constructor.eventName(EV)))};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(Lf,_u),i.classList.add(`bs-${this.constructor.NAME}-auto`);const n=x2(this.constructor.NAME).toString();return i.setAttribute("id",n),this._isAnimated()&&i.classList.add(Lf),i}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new mV({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[xV]: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(Lf)}_isShown(){return this.tip&&this.tip.classList.contains(_u)}_createPopper(t){const i=typeof this._config.placement=="function"?this._config.placement.call(this,t,this._element):this._config.placement,n=MV[i.toUpperCase()];return km(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")ut.on(this._element,this.constructor.eventName(TV),this._config.selector,n=>{this._initializeOnDelegatedTarget(n).toggle()});else if(i!==_V){const n=i===kl?this.constructor.eventName(PV):this.constructor.eventName(IV),o=i===kl?this.constructor.eventName(LV):this.constructor.eventName(OV);ut.on(this._element,n,this._config.selector,l=>{const c=this._initializeOnDelegatedTarget(l);c._activeTrigger[l.type==="focusin"?Mf:kl]=!0,c._enter()}),ut.on(this._element,o,this._config.selector,l=>{const c=this._initializeOnDelegatedTarget(l);c._activeTrigger[l.type==="focusout"?Mf:kl]=c._element.contains(l.relatedTarget),c._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ut.on(this._element.closest(ix),nx,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=br.getDataAttributes(this._element);for(const n of Object.keys(i))bV.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:so(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=pl.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t]()}})}}ps(pl);const DV="popover",$V=".popover-header",FV=".popover-body",VV={...pl.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},zV={...pl.DefaultType,content:"(null|string|element|function)"};class Pm extends pl{static get Default(){return VV}static get DefaultType(){return zV}static get NAME(){return DV}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[$V]:this._getTitle(),[FV]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const i=Pm.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t]()}})}}ps(Pm);const HV="scrollspy",BV="bs.scrollspy",Lm=`.${BV}`,WV=".data-api",jV=`activate${Lm}`,sx=`click${Lm}`,YV=`load${Lm}${WV}`,UV="dropdown-item",da="active",GV='[data-bs-spy="scroll"]',Nf="[href]",XV=".nav, .list-group",rx=".nav-link",KV=".nav-item",qV=".list-group-item",ZV=`${rx}, ${KV} > ${rx}, ${qV}`,JV=".dropdown",QV=".dropdown-toggle",ez={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},tz={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Nh extends Ls{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 ez}static get DefaultType(){return tz}static get NAME(){return HV}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=so(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&&(ut.off(this._config.target,sx),ut.on(this._config.target,sx,Nf,t=>{const i=this._observableSections.get(t.target.hash);if(i){t.preventDefault();const n=this._rootElement||window,o=i.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:o,behavior:"smooth"});return}n.scrollTop=o}}))}_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))},o=(this._rootElement||document.documentElement).scrollTop,l=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;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),!o)return;continue}!l&&!d&&n(c)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=Qt.find(Nf,this._config.target);for(const i of t){if(!i.hash||ro(i))continue;const n=Qt.findOne(i.hash,this._element);dl(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(da),this._activateParents(t),ut.trigger(this._element,jV,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(UV)){Qt.findOne(QV,t.closest(JV)).classList.add(da);return}for(const i of Qt.parents(t,XV))for(const n of Qt.prev(i,ZV))n.classList.add(da)}_clearActiveClass(t){t.classList.remove(da);const i=Qt.find(`${Nf}.${da}`,t);for(const n of i)n.classList.remove(da)}static jQueryInterface(t){return this.each(function(){const i=Nh.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]()}})}}ut.on(window,YV,()=>{for(const e of Qt.find(GV))Nh.getOrCreateInstance(e)});ps(Nh);const iz="tab",nz="bs.tab",ta=`.${nz}`,sz=`hide${ta}`,rz=`hidden${ta}`,oz=`show${ta}`,az=`shown${ta}`,lz=`click${ta}`,cz=`keydown${ta}`,uz=`load${ta}`,dz="ArrowLeft",ox="ArrowRight",hz="ArrowUp",ax="ArrowDown",Lo="active",lx="fade",Rf="show",fz="dropdown",pz=".dropdown-toggle",gz=".dropdown-menu",Df=":not(.dropdown-toggle)",mz='.list-group, .nav, [role="tablist"]',vz=".nav-item, .list-group-item",bz=`.nav-link${Df}, .list-group-item${Df}, [role="tab"]${Df}`,LS='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',$f=`${bz}, ${LS}`,yz=`.${Lo}[data-bs-toggle="tab"], .${Lo}[data-bs-toggle="pill"], .${Lo}[data-bs-toggle="list"]`;class tl extends Ls{constructor(t){super(t),this._parent=this._element.closest(mz),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ut.on(this._element,cz,i=>this._keydown(i)))}static get NAME(){return iz}show(){const t=this._element;if(this._elemIsActive(t))return;const i=this._getActiveElem(),n=i?ut.trigger(i,sz,{relatedTarget:t}):null;ut.trigger(t,oz,{relatedTarget:i}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(i,t),this._activate(t,i))}_activate(t,i){if(!t)return;t.classList.add(Lo),this._activate(mr(t));const n=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(Rf);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),ut.trigger(t,az,{relatedTarget:i})};this._queueCallback(n,t,t.classList.contains(lx))}_deactivate(t,i){if(!t)return;t.classList.remove(Lo),t.blur(),this._deactivate(mr(t));const n=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(Rf);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),ut.trigger(t,rz,{relatedTarget:i})};this._queueCallback(n,t,t.classList.contains(lx))}_keydown(t){if(![dz,ox,hz,ax].includes(t.key))return;t.stopPropagation(),t.preventDefault();const i=[ox,ax].includes(t.key),n=Tm(this._getChildren().filter(o=>!ro(o)),t.target,i,!0);n&&(n.focus({preventScroll:!0}),tl.getOrCreateInstance(n).show())}_getChildren(){return Qt.find($f,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=mr(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(fz))return;const o=(l,c)=>{const d=Qt.findOne(l,n);d&&d.classList.toggle(c,i)};o(pz,Lo),o(gz,Rf),n.setAttribute("aria-expanded",i)}_setAttributeIfNotExists(t,i,n){t.hasAttribute(i)||t.setAttribute(i,n)}_elemIsActive(t){return t.classList.contains(Lo)}_getInnerElement(t){return t.matches($f)?t:Qt.findOne($f,t)}_getOuterElement(t){return t.closest(vz)||t}static jQueryInterface(t){return this.each(function(){const i=tl.getOrCreateInstance(this);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t]()}})}}ut.on(document,lz,LS,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!ro(this)&&tl.getOrCreateInstance(this).show()});ut.on(window,uz,()=>{for(const e of Qt.find(yz))tl.getOrCreateInstance(e)});ps(tl);const xz="toast",wz="bs.toast",vo=`.${wz}`,_z=`mouseover${vo}`,Sz=`mouseout${vo}`,Ez=`focusin${vo}`,Cz=`focusout${vo}`,Az=`hide${vo}`,kz=`hidden${vo}`,Tz=`show${vo}`,Iz=`shown${vo}`,Oz="fade",cx="hide",Su="show",Eu="showing",Pz={animation:"boolean",autohide:"boolean",delay:"number"},Lz={animation:!0,autohide:!0,delay:5e3};class Rh extends Ls{constructor(t,i){super(t,i),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Lz}static get DefaultType(){return Pz}static get NAME(){return xz}show(){if(ut.trigger(this._element,Tz).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Oz);const i=()=>{this._element.classList.remove(Eu),ut.trigger(this._element,Iz),this._maybeScheduleHide()};this._element.classList.remove(cx),Wc(this._element),this._element.classList.add(Su,Eu),this._queueCallback(i,this._element,this._config.animation)}hide(){if(!this.isShown()||ut.trigger(this._element,Az).defaultPrevented)return;const i=()=>{this._element.classList.add(cx),this._element.classList.remove(Eu,Su),ut.trigger(this._element,kz)};this._element.classList.add(Eu),this._queueCallback(i,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Su),super.dispose()}isShown(){return this._element.classList.contains(Su)}_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(){ut.on(this._element,_z,t=>this._onInteraction(t,!0)),ut.on(this._element,Sz,t=>this._onInteraction(t,!1)),ut.on(this._element,Ez,t=>this._onInteraction(t,!0)),ut.on(this._element,Cz,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const i=Rh.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t](this)}})}}Ph(Rh);ps(Rh);const Mz={key:0,class:"bi bi-text-left"},Nz={key:1,class:"bi bi-123"},Rz={key:2,class:"bi bi-calendar-date"},Dz={key:3,class:"bi bi-code-slash"},$z={key:4,class:"bi bi-card-image"},Fz={key:5,class:"bi bi-globe"},Vz={key:6,class:"bi bi-palette"},zz={key:7,class:"bi bi-check-square"},Hz={key:8,class:"bi bi-tag-fill"},Bz={key:9,class:"bi bi-tags-fill"},Wz={key:10,class:"bi bi-folder"},jz={key:11,style:{"padding-left":"2px"}},Yz={key:12,class:"bi bi-arrows"},Uz={key:13,class:"bi bi-arrows-vertical"},Gz={key:14,class:"bi bi-hash"},cs=ot({__name:"PropertyIcon",props:["type"],setup(e){const t=e;return(i,n)=>(B(),G("span",null,[t.type==Ue(Xe).string?(B(),G("i",Mz)):t.type==Ue(Xe).number?(B(),G("i",Nz)):t.type==Ue(Xe).date?(B(),G("i",Rz)):t.type==Ue(Xe).path?(B(),G("i",Dz)):t.type==Ue(Xe).image_link?(B(),G("i",$z)):t.type==Ue(Xe).url?(B(),G("i",Fz)):t.type==Ue(Xe).color?(B(),G("i",Vz)):t.type==Ue(Xe).checkbox?(B(),G("i",zz)):e.type==Ue(Xe).tag?(B(),G("i",Hz)):e.type==Ue(Xe).multi_tags?(B(),G("i",Bz)):t.type==Ue(Xe)._folders?(B(),G("i",Wz)):t.type==Ue(Xe)._id?(B(),G("b",jz,"ID")):t.type==Ue(Xe)._width?(B(),G("i",Yz)):t.type==Ue(Xe)._height?(B(),G("i",Uz)):(B(),G("i",Gz))]))}}),Xz=["top","right","bottom","left"],ux=["start","end"],dx=Xz.reduce((e,t)=>e.concat(t,t+"-"+ux[0],t+"-"+ux[1]),[]),kc=Math.min,ko=Math.max,Kz={left:"right",right:"left",bottom:"top",top:"bottom"},qz={start:"end",end:"start"};function Qp(e,t,i){return ko(e,kc(t,i))}function ia(e,t){return typeof e=="function"?e(t):e}function Ks(e){return e.split("-")[0]}function Ts(e){return e.split("-")[1]}function MS(e){return e==="x"?"y":"x"}function Mm(e){return e==="y"?"height":"width"}function Gc(e){return["top","bottom"].includes(Ks(e))?"y":"x"}function Nm(e){return MS(Gc(e))}function NS(e,t,i){i===void 0&&(i=!1);const n=Ts(e),o=Nm(e),l=Mm(o);let c=o==="x"?n===(i?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=$d(c)),[c,$d(c)]}function Zz(e){const t=$d(e);return[Dd(e),t,Dd(t)]}function Dd(e){return e.replace(/start|end/g,t=>qz[t])}function Jz(e,t,i){const n=["left","right"],o=["right","left"],l=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return i?t?o:n:t?n:o;case"left":case"right":return t?l:c;default:return[]}}function Qz(e,t,i,n){const o=Ts(e);let l=Jz(Ks(e),i==="start",n);return o&&(l=l.map(c=>c+"-"+o),t&&(l=l.concat(l.map(Dd)))),l}function $d(e){return e.replace(/left|right|bottom|top/g,t=>Kz[t])}function eH(e){return{top:0,right:0,bottom:0,left:0,...e}}function RS(e){return typeof e!="number"?eH(e):{top:e,right:e,bottom:e,left:e}}function ec(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function hx(e,t,i){let{reference:n,floating:o}=e;const l=Gc(t),c=Nm(t),d=Mm(c),p=Ks(t),m=l==="y",v=n.x+n.width/2-o.width/2,y=n.y+n.height/2-o.height/2,_=n[d]/2-o[d]/2;let S;switch(p){case"top":S={x:v,y:n.y-o.height};break;case"bottom":S={x:v,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y};break;case"left":S={x:n.x-o.width,y};break;default:S={x:n.x,y:n.y}}switch(Ts(t)){case"start":S[c]-=_*(i&&m?-1:1);break;case"end":S[c]+=_*(i&&m?-1:1);break}return S}const tH=async(e,t,i)=>{const{placement:n="bottom",strategy:o="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:o}),{x:v,y}=hx(m,n,p),_=n,S={},T=0;for(let C=0;C({name:"arrow",options:e,async fn(t){const{x:i,y:n,placement:o,rects:l,platform:c,elements:d,middlewareData:p}=t,{element:m,padding:v=0}=ia(e,t)||{};if(m==null)return{};const y=RS(v),_={x:i,y:n},S=Nm(o),T=Mm(S),C=await c.getDimensions(m),O=S==="y",P=O?"top":"left",I=O?"bottom":"right",N=O?"clientHeight":"clientWidth",M=l.reference[T]+l.reference[S]-_[S]-l.floating[T],D=_[S]-l.reference[S],H=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m));let Z=H?H[N]:0;(!Z||!await(c.isElement==null?void 0:c.isElement(H)))&&(Z=d.floating[N]||l.floating[T]);const te=M/2-D/2,Y=Z/2-C[T]/2-1,ee=kc(y[P],Y),le=kc(y[I],Y),oe=ee,pe=Z-C[T]-le,ge=Z/2-C[T]/2+te,Ce=Qp(oe,ge,pe),ue=!p.arrow&&Ts(o)!=null&&ge!=Ce&&l.reference[T]/2-(geTs(o)===e),...i.filter(o=>Ts(o)!==e)]:i.filter(o=>Ks(o)===o)).filter(o=>e?Ts(o)===e||(t?Dd(o)!==o:!1):!0)}const sH=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var i,n,o;const{rects:l,middlewareData:c,placement:d,platform:p,elements:m}=t,{crossAxis:v=!1,alignment:y,allowedPlacements:_=dx,autoAlignment:S=!0,...T}=ia(e,t),C=y!==void 0||_===dx?nH(y||null,S,_):_,O=await Dh(t,T),P=((i=c.autoPlacement)==null?void 0:i.index)||0,I=C[P];if(I==null)return{};const N=NS(I,l,await(p.isRTL==null?void 0:p.isRTL(m.floating)));if(d!==I)return{reset:{placement:C[0]}};const M=[O[Ks(I)],O[N[0]],O[N[1]]],D=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:I,overflows:M}],H=C[P+1];if(H)return{data:{index:P+1,overflows:D},reset:{placement:H}};const Z=D.map(ee=>{const le=Ts(ee.placement);return[ee.placement,le&&v?ee.overflows.slice(0,2).reduce((oe,pe)=>oe+pe,0):ee.overflows[0],ee.overflows]}).sort((ee,le)=>ee[1]-le[1]),Y=((o=Z.filter(ee=>ee[2].slice(0,Ts(ee[0])?2:3).every(le=>le<=0))[0])==null?void 0:o[0])||Z[0][0];return Y!==d?{data:{index:P+1,overflows:D},reset:{placement:Y}}:{}}}},rH=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var i,n;const{placement:o,middlewareData:l,rects:c,initialPlacement:d,platform:p,elements:m}=t,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:_,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:C=!0,...O}=ia(e,t);if((i=l.arrow)!=null&&i.alignmentOffset)return{};const P=Ks(o),I=Ks(d)===d,N=await(p.isRTL==null?void 0:p.isRTL(m.floating)),M=_||(I||!C?[$d(d)]:Zz(d));!_&&T!=="none"&&M.push(...Qz(d,C,T,N));const D=[d,...M],H=await Dh(t,O),Z=[];let te=((n=l.flip)==null?void 0:n.overflows)||[];if(v&&Z.push(H[P]),y){const oe=NS(o,c,N);Z.push(H[oe[0]],H[oe[1]])}if(te=[...te,{placement:o,overflows:Z}],!Z.every(oe=>oe<=0)){var Y,ee;const oe=(((Y=l.flip)==null?void 0:Y.index)||0)+1,pe=D[oe];if(pe)return{data:{index:oe,overflows:te},reset:{placement:pe}};let ge=(ee=te.filter(Ce=>Ce.overflows[0]<=0).sort((Ce,ue)=>Ce.overflows[1]-ue.overflows[1])[0])==null?void 0:ee.placement;if(!ge)switch(S){case"bestFit":{var le;const Ce=(le=te.map(ue=>[ue.placement,ue.overflows.filter(ie=>ie>0).reduce((ie,X)=>ie+X,0)]).sort((ue,ie)=>ue[1]-ie[1])[0])==null?void 0:le[0];Ce&&(ge=Ce);break}case"initialPlacement":ge=d;break}if(o!==ge)return{reset:{placement:ge}}}return{}}}};async function oH(e,t){const{placement:i,platform:n,elements:o}=e,l=await(n.isRTL==null?void 0:n.isRTL(o.floating)),c=Ks(i),d=Ts(i),p=Gc(i)==="y",m=["left","top"].includes(c)?-1:1,v=l&&p?-1:1,y=ia(t,e);let{mainAxis:_,crossAxis:S,alignmentAxis:T}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return d&&typeof T=="number"&&(S=d==="end"?T*-1:T),p?{x:S*v,y:_*m}:{x:_*m,y:S*v}}const aH=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:i,y:n}=t,o=await oH(t,e);return{x:i+o.x,y:n+o.y,data:o}}}},lH=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:n,placement:o}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:d={fn:O=>{let{x:P,y:I}=O;return{x:P,y:I}}},...p}=ia(e,t),m={x:i,y:n},v=await Dh(t,p),y=Gc(Ks(o)),_=MS(y);let S=m[_],T=m[y];if(l){const O=_==="y"?"top":"left",P=_==="y"?"bottom":"right",I=S+v[O],N=S-v[P];S=Qp(I,S,N)}if(c){const O=y==="y"?"top":"left",P=y==="y"?"bottom":"right",I=T+v[O],N=T-v[P];T=Qp(I,T,N)}const C=d.fn({...t,[_]:S,[y]:T});return{...C,data:{x:C.x-i,y:C.y-n}}}}},cH=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:i,rects:n,platform:o,elements:l}=t,{apply:c=()=>{},...d}=ia(e,t),p=await Dh(t,d),m=Ks(i),v=Ts(i),y=Gc(i)==="y",{width:_,height:S}=n.floating;let T,C;m==="top"||m==="bottom"?(T=m,C=v===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(C=m,T=v==="end"?"top":"bottom");const O=S-p[T],P=_-p[C],I=!t.middlewareData.shift;let N=O,M=P;if(y){const H=_-p.left-p.right;M=v||I?kc(P,H):H}else{const H=S-p.top-p.bottom;N=v||I?kc(O,H):H}if(I&&!v){const H=ko(p.left,0),Z=ko(p.right,0),te=ko(p.top,0),Y=ko(p.bottom,0);y?M=_-2*(H!==0||Z!==0?H+Z:ko(p.left,p.right)):N=S-2*(te!==0||Y!==0?te+Y:ko(p.top,p.bottom))}await c({...t,availableWidth:M,availableHeight:N});const D=await o.getDimensions(l.floating);return _!==D.width||S!==D.height?{reset:{rects:!0}}:{}}}};function es(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ws(e){return es(e).getComputedStyle(e)}const fx=Math.min,tc=Math.max,Fd=Math.round;function DS(e){const t=Ws(e);let i=parseFloat(t.width),n=parseFloat(t.height);const o=e.offsetWidth,l=e.offsetHeight,c=Fd(i)!==o||Fd(n)!==l;return c&&(i=o,n=l),{width:i,height:n,fallback:c}}function ao(e){return FS(e)?(e.nodeName||"").toLowerCase():""}let Cu;function $S(){if(Cu)return Cu;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Cu=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Cu):navigator.userAgent}function js(e){return e instanceof es(e).HTMLElement}function qr(e){return e instanceof es(e).Element}function FS(e){return e instanceof es(e).Node}function px(e){return typeof ShadowRoot>"u"?!1:e instanceof es(e).ShadowRoot||e instanceof ShadowRoot}function $h(e){const{overflow:t,overflowX:i,overflowY:n,display:o}=Ws(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+i)&&!["inline","contents"].includes(o)}function uH(e){return["table","td","th"].includes(ao(e))}function eg(e){const t=/firefox/i.test($S()),i=Ws(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(o=>i.willChange.includes(o))||["paint","layout","strict","content"].some(o=>{const l=i.contain;return l!=null&&l.includes(o)})}function VS(){return!/^((?!chrome|android).)*safari/i.test($S())}function Rm(e){return["html","body","#document"].includes(ao(e))}function zS(e){return qr(e)?e:e.contextElement}const HS={x:1,y:1};function Ra(e){const t=zS(e);if(!js(t))return HS;const i=t.getBoundingClientRect(),{width:n,height:o,fallback:l}=DS(t);let c=(l?Fd(i.width):i.width)/n,d=(l?Fd(i.height):i.height)/o;return c&&Number.isFinite(c)||(c=1),d&&Number.isFinite(d)||(d=1),{x:c,y:d}}function Tc(e,t,i,n){var o,l;t===void 0&&(t=!1),i===void 0&&(i=!1);const c=e.getBoundingClientRect(),d=zS(e);let p=HS;t&&(n?qr(n)&&(p=Ra(n)):p=Ra(e));const m=d?es(d):window,v=!VS()&&i;let y=(c.left+(v&&((o=m.visualViewport)==null?void 0:o.offsetLeft)||0))/p.x,_=(c.top+(v&&((l=m.visualViewport)==null?void 0:l.offsetTop)||0))/p.y,S=c.width/p.x,T=c.height/p.y;if(d){const C=es(d),O=n&&qr(n)?es(n):n;let P=C.frameElement;for(;P&&n&&O!==C;){const I=Ra(P),N=P.getBoundingClientRect(),M=getComputedStyle(P);N.x+=(P.clientLeft+parseFloat(M.paddingLeft))*I.x,N.y+=(P.clientTop+parseFloat(M.paddingTop))*I.y,y*=I.x,_*=I.y,S*=I.x,T*=I.y,y+=N.x,_+=N.y,P=es(P).frameElement}}return{width:S,height:T,top:_,right:y+S,bottom:_+T,left:y,x:y,y:_}}function Zr(e){return((FS(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fh(e){return qr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function BS(e){return Tc(Zr(e)).left+Fh(e).scrollLeft}function Ic(e){if(ao(e)==="html")return e;const t=e.assignedSlot||e.parentNode||px(e)&&e.host||Zr(e);return px(t)?t.host:t}function WS(e){const t=Ic(e);return Rm(t)?t.ownerDocument.body:js(t)&&$h(t)?t:WS(t)}function Vd(e,t){var i;t===void 0&&(t=[]);const n=WS(e),o=n===((i=e.ownerDocument)==null?void 0:i.body),l=es(n);return o?t.concat(l,l.visualViewport||[],$h(n)?n:[]):t.concat(n,Vd(n))}function gx(e,t,i){return t==="viewport"?ec(function(n,o){const l=es(n),c=Zr(n),d=l.visualViewport;let p=c.clientWidth,m=c.clientHeight,v=0,y=0;if(d){p=d.width,m=d.height;const _=VS();(_||!_&&o==="fixed")&&(v=d.offsetLeft,y=d.offsetTop)}return{width:p,height:m,x:v,y}}(e,i)):qr(t)?ec(function(n,o){const l=Tc(n,!0,o==="fixed"),c=l.top+n.clientTop,d=l.left+n.clientLeft,p=js(n)?Ra(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)):ec(function(n){const o=Zr(n),l=Fh(n),c=n.ownerDocument.body,d=tc(o.scrollWidth,o.clientWidth,c.scrollWidth,c.clientWidth),p=tc(o.scrollHeight,o.clientHeight,c.scrollHeight,c.clientHeight);let m=-l.scrollLeft+BS(n);const v=-l.scrollTop;return Ws(c).direction==="rtl"&&(m+=tc(o.clientWidth,c.clientWidth)-d),{width:d,height:p,x:m,y:v}}(Zr(e)))}function mx(e){return js(e)&&Ws(e).position!=="fixed"?e.offsetParent:null}function vx(e){const t=es(e);let i=mx(e);for(;i&&uH(i)&&Ws(i).position==="static";)i=mx(i);return i&&(ao(i)==="html"||ao(i)==="body"&&Ws(i).position==="static"&&!eg(i))?t:i||function(n){let o=Ic(n);for(;js(o)&&!Rm(o);){if(eg(o))return o;o=Ic(o)}return null}(e)||t}function dH(e,t,i){const n=js(t),o=Zr(t),l=Tc(e,!0,i==="fixed",t);let c={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(n||!n&&i!=="fixed")if((ao(t)!=="body"||$h(o))&&(c=Fh(t)),js(t)){const p=Tc(t,!0);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else o&&(d.x=BS(o));return{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}const hH={getClippingRect:function(e){let{element:t,boundary:i,rootBoundary:n,strategy:o}=e;const l=i==="clippingAncestors"?function(m,v){const y=v.get(m);if(y)return y;let _=Vd(m).filter(O=>qr(O)&&ao(O)!=="body"),S=null;const T=Ws(m).position==="fixed";let C=T?Ic(m):m;for(;qr(C)&&!Rm(C);){const O=Ws(C),P=eg(C);(T?P||S:P||O.position!=="static"||!S||!["absolute","fixed"].includes(S.position))?S=O:_=_.filter(I=>I!==C),C=Ic(C)}return v.set(m,_),_}(t,this._c):[].concat(i),c=[...l,n],d=c[0],p=c.reduce((m,v)=>{const y=gx(t,v,o);return m.top=tc(y.top,m.top),m.right=fx(y.right,m.right),m.bottom=fx(y.bottom,m.bottom),m.left=tc(y.left,m.left),m},gx(t,d,o));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 o=js(i),l=Zr(i);if(i===l)return t;let c={scrollLeft:0,scrollTop:0},d={x:1,y:1};const p={x:0,y:0};if((o||!o&&n!=="fixed")&&((ao(i)!=="body"||$h(l))&&(c=Fh(i)),js(i))){const m=Tc(i);d=Ra(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:qr,getDimensions:function(e){return js(e)?DS(e):e.getBoundingClientRect()},getOffsetParent:vx,getDocumentElement:Zr,getScale:Ra,async getElementRects(e){let{reference:t,floating:i,strategy:n}=e;const o=this.getOffsetParent||vx,l=this.getDimensions;return{reference:dH(t,await o(i),n),floating:{x:0,y:0,...await l(i)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Ws(e).direction==="rtl"},fH=(e,t,i)=>{const n=new Map,o={platform:hH,...i},l={...o.platform,_c:n};return tH(e,t,{...o,platform:l})},Vo={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 tg(e,t){let i=Vo.themes[e]||{},n;do n=i[t],typeof n>"u"?i.$extend?i=Vo.themes[i.$extend]||{}:(i=null,n=Vo[t]):i=null;while(i);return n}function pH(e){const t=[e];let i=Vo.themes[e]||{};do i.$extend&&!i.$resetCss?(t.push(i.$extend),i=Vo.themes[i.$extend]||{}):i=null;while(i);return t.map(n=>`v-popper--theme-${n}`)}function bx(e){const t=[e];let i=Vo.themes[e]||{};do i.$extend?(t.push(i.$extend),i=Vo.themes[i.$extend]||{}):i=null;while(i);return t}let il=!1;if(typeof window<"u"){il=!1;try{const e=Object.defineProperty({},"passive",{get(){il=!0}});window.addEventListener("test",null,e)}catch{}}let jS=!1;typeof window<"u"&&typeof navigator<"u"&&(jS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const gH=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),yx={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},xx={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function wx(e,t){const i=e.indexOf(t);i!==-1&&e.splice(i,1)}function Ff(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const _s=[];let Eo=null;const _x={};function Sx(e){let t=_x[e];return t||(t=_x[e]=[]),t}let ig=function(){};typeof window<"u"&&(ig=window.Element);function ai(e){return function(t){return tg(t.theme,e)}}const Vf="__floating-vue__popper",YS=()=>ot({name:"VPopper",provide(){return{[Vf]:{parentPopper:this}}},inject:{[Vf]:{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:ai("disabled")},positioningDisabled:{type:Boolean,default:ai("positioningDisabled")},placement:{type:String,default:ai("placement"),validator:e=>gH.includes(e)},delay:{type:[String,Number,Object],default:ai("delay")},distance:{type:[Number,String],default:ai("distance")},skidding:{type:[Number,String],default:ai("skidding")},triggers:{type:Array,default:ai("triggers")},showTriggers:{type:[Array,Function],default:ai("showTriggers")},hideTriggers:{type:[Array,Function],default:ai("hideTriggers")},popperTriggers:{type:Array,default:ai("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ai("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ai("popperHideTriggers")},container:{type:[String,Object,ig,Boolean],default:ai("container")},boundary:{type:[String,ig],default:ai("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ai("strategy")},autoHide:{type:[Boolean,Function],default:ai("autoHide")},handleResize:{type:Boolean,default:ai("handleResize")},instantMove:{type:Boolean,default:ai("instantMove")},eagerMount:{type:Boolean,default:ai("eagerMount")},popperClass:{type:[String,Array,Object],default:ai("popperClass")},computeTransformOrigin:{type:Boolean,default:ai("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ai("autoMinSize")},autoSize:{type:[Boolean,String],default:ai("autoSize")},autoMaxSize:{type:Boolean,default:ai("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ai("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ai("preventOverflow")},overflowPadding:{type:[Number,String],default:ai("overflowPadding")},arrowPadding:{type:[Number,String],default:ai("arrowPadding")},arrowOverflow:{type:Boolean,default:ai("arrowOverflow")},flip:{type:Boolean,default:ai("flip")},shift:{type:Boolean,default:ai("shift")},shiftCrossAxis:{type:Boolean,default:ai("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ai("noAutoFocus")},disposeTimeout:{type:Number,default:ai("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[Vf])==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,o;(n=this.parentPopper)!=null&&n.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(i||!this.disabled)&&(((o=this.parentPopper)==null?void 0:o.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(aH({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(sH({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(lH({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(rH({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(iH({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:n,rects:o,middlewareData:l})=>{let c;const{centerOffset:d}=l.arrow;return n.startsWith("top")||n.startsWith("bottom")?c=Math.abs(d)>o.reference.width/2:c=Math.abs(d)>o.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:o,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=o.reference.width:m=o.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(cH({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:n,availableHeight:o})=>{this.$_innerNode.style.maxWidth=n!=null?`${n}px`:null,this.$_innerNode.style.maxHeight=o!=null?`${o}px`:null}})));const i=await fH(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),Eo&&this.instantMove&&Eo.instantMove&&Eo!==this.parentPopper){Eo.$_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&&(Eo=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 Ff(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Vd(this.$_referenceNode),...Vd(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(),o=t.x+t.width/2-(n.left+i.offsetLeft),l=t.y+t.height/2-(n.top+i.offsetTop);this.result.transformOrigin=`${o}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;i<_s.length;i++)t=_s[i],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}_s.push(this),document.body.classList.add("v-popper--some-open");for(const t of bx(this.theme))Sx(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Ff(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,wx(_s,this),_s.length===0&&document.body.classList.remove("v-popper--some-open");for(const i of bx(this.theme)){const n=Sx(i);wx(n,this),n.length===0&&document.body.classList.remove(`v-popper--some-open--${i}`)}Eo===this&&(Eo=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 Ff(),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,yx,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],yx,this.popperTriggers,this.popperShowTriggers,e);const t=i=>{i.usedByTooltip||this.hide({event:i})};this.$_registerTriggerListeners(this.$_targetNodes,xx,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],xx,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,il?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,i,n,o){let l=i;n!=null&&(l=typeof n=="function"?n(l):n),l.forEach(c=>{const d=t[c];d&&this.$_registerEventListeners(e,d,o)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(i=>{const{targetNodes:n,eventType:o,handler:l}=i;!e||e===o?n.forEach(c=>c.removeEventListener(o,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(ic>=e.left&&ic<=e.right&&nc>=e.top&&nc<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),i=ic-Vr,n=nc-zr,o=t.left+t.width/2-Vr+(t.top+t.height/2)-zr+t.width+t.height,l=Vr+i*o,c=zr+n*o;return Au(Vr,zr,l,c,t.left,t.top,t.left,t.bottom)||Au(Vr,zr,l,c,t.left,t.top,t.right,t.top)||Au(Vr,zr,l,c,t.right,t.top,t.right,t.bottom)||Au(Vr,zr,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"&&(jS?(document.addEventListener("touchstart",Ex,il?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",vH,il?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Ex,!0),window.addEventListener("click",mH,!0)),window.addEventListener("resize",xH));function Ex(e){for(let t=0;t<_s.length;t++){const i=_s[t];try{const n=i.popperNode();i.$_mouseDownContains=n.contains(e.target)}catch{}}}function mH(e){US(e)}function vH(e){US(e,!0)}function US(e,t=!1){const i={};for(let n=_s.length-1;n>=0;n--){const o=_s[n];try{const l=o.$_containsGlobalTarget=bH(o,e);o.$_pendingHide=!1,requestAnimationFrame(()=>{if(o.$_pendingHide=!1,!i[o.randomId]&&Cx(o,l,e)){if(o.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&l){let d=o.parentPopper;for(;d;)i[d.randomId]=!0,d=d.parentPopper;return}let c=o.parentPopper;for(;c&&Cx(c,c.$_containsGlobalTarget,e);)c.$_handleGlobalClose(e,t),c=c.parentPopper}})}catch{}}}function bH(e,t){const i=e.popperNode();return e.$_mouseDownContains||i.contains(t.target)}function Cx(e,t,i){return i.closeAllPopover||i.closePopover&&t||yH(e,i)&&!t}function yH(e,t){if(typeof e.autoHide=="function"){const i=e.autoHide(t);return e.lastAutoHide=i,i}return e.autoHide}function xH(e){for(let t=0;t<_s.length;t++)_s[t].$_computePosition(e)}let Vr=0,zr=0,ic=0,nc=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Vr=ic,zr=nc,ic=e.clientX,nc=e.clientY},il?{passive:!0}:void 0);function Au(e,t,i,n,o,l,c,d){const p=((c-o)*(t-l)-(d-l)*(e-o))/((d-l)*(i-e)-(c-o)*(n-t)),m=((i-e)*(t-l)-(n-t)*(e-o))/((d-l)*(i-e)-(c-o)*(n-t));return p>=0&&p<=1&&m>=0&&m<=1}const wH={extends:YS()},Dm=(e,t)=>{const i=e.__vccOpts||e;for(const[n,o]of t)i[n]=o;return i};function _H(e,t,i,n,o,l){return B(),G("div",{ref:"reference",class:mt(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[xi(e.$slots,"default",xg(uh(e.slotData)))],2)}const SH=Dm(wH,[["render",_H]]);function EH(){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 o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let Ju;function ng(){ng.init||(ng.init=!0,Ju=EH()!==-1)}var Vh={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ng(),Ft(()=>{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",Ju&&this.$el.appendChild(e),e.data="about:blank",Ju||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&&(!Ju&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const CH=Mg();Pg("data-v-b329ee4c");const AH={class:"resize-observer",tabindex:"-1"};Lg();const kH=CH((e,t,i,n,o,l)=>(B(),ct("div",AH)));Vh.render=kH;Vh.__scopeId="data-v-b329ee4c";Vh.__file="src/components/ResizeObserver.vue";const GS=(e="theme")=>({computed:{themeClass(){return pH(this[e])}}}),TH=ot({name:"VPopperContent",components:{ResizeObserver:Vh},mixins:[GS()],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}}}),IH=["id","aria-hidden","tabindex","data-popper-placement"],OH={ref:"inner",class:"v-popper__inner"},PH=z("div",{class:"v-popper__arrow-outer"},null,-1),LH=z("div",{class:"v-popper__arrow-inner"},null,-1),MH=[PH,LH];function NH(e,t,i,n,o,l){const c=eo("ResizeObserver");return B(),G("div",{id:e.popperId,ref:"popover",class:mt(["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:Ct(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]=hi(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[z("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),z("div",{class:"v-popper__wrapper",style:Ct(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[z("div",OH,[e.mounted?(B(),G(lt,{key:0},[z("div",null,[xi(e.$slots,"default")]),e.handleResize?(B(),ct(c,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Me("",!0)],64)):Me("",!0)],512),z("div",{ref:"arrow",class:"v-popper__arrow-container",style:Ct(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},MH,4)],4)],46,IH)}const XS=Dm(TH,[["render",NH]]),KS={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)}}},RH=ot({name:"VPopperWrapper",components:{Popper:SH,PopperContent:XS},mixins:[KS,GS("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 DH(e,t,i,n,o,l){const c=eo("PopperContent"),d=eo("Popper");return B(),ct(d,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:mt([e.themeClass])},{default:dt(({popperId:p,isShown:m,shouldMountContent:v,skipTransition:y,autoHide:_,show:S,hide:T,handleResize:C,onResize:O,classes:P,result:I})=>[xi(e.$slots,"default",{shown:m,show:S,hide:T}),$e(c,{ref:"popperContent","popper-id":p,theme:e.finalTheme,shown:m,mounted:v,"skip-transition":y,"auto-hide":_,"handle-resize":C,classes:P,result:I,onHide:T,onResize:O},{default:dt(()=>[xi(e.$slots,"popper",{shown:m,hide:T})]),_: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 $m=Dm(RH,[["render",DH]]),$H={...$m,name:"VDropdown",vPopperTheme:"dropdown"};({...$m});const FH={...$m,name:"VTooltip",vPopperTheme:"tooltip"};YS();const VH=$H,zH=FH,HH={class:"text-nowrap d-flex m-0 p-0"},BH={key:0,style:{cursor:"pointer"},class:"flex-center"},WH={key:1,style:{cursor:"pointer"}},jH={style:{"max-width":"300px"}},YH=ot({__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}=vh({useScope:"global"}),i=e,n=Ee(()=>{if(!i.message)return;let o="";return["main","modals","dropdown","btn"].indexOf(i.message.split(".")[0])>-1?o=t(i.message):i.message.startsWith(".")?o=t(i.message.slice(1)):o=i.message,o.split(` +`)});return(o,l)=>(B(),ct(Ue(zH),{style:{display:"inline"},teleport:!0,placement:i.pos,disabled:!i.message,class:"m-0 p-0"},{popper:dt(()=>[z("div",jH,[(B(!0),G(lt,null,Ot(n.value,c=>(B(),G("span",null,[Gt(Ne(c),1),l[2]||(l[2]=z("br",null,null,-1))]))),256))])]),default:dt(()=>[z("div",HH,[i.icon&&i.iconPos==="left"?(B(),G("div",BH,l[0]||(l[0]=[z("div",{class:"bi bi-question-circle small-icon"},null,-1)]))):Me("",!0),xi(o.$slots,"default",{},void 0,!0),i.icon&&i.iconPos==="right"?(B(),G("span",WH,l[1]||(l[1]=[z("i",{class:"bi bi-question-circle small-icon"},null,-1)]))):Me("",!0)])]),_:3},8,["placement","disabled"]))}});const Pt=(e,t)=>{const i=e.__vccOpts||e;for(const[n,o]of t)i[n]=o;return i},Ai=Pt(YH,[["__scopeId","data-v-fcbb9949"]]),UH={class:"dropdown"},GH={class:"input-lg text-nowrap",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},XH={key:0},KH={key:1},qH={class:"dropdown-menu"},ZH=["onClick"],JH={class:"dropdown-item",style:{cursor:"pointer"}},QH=ot({__name:"PropertyTypeDropdown",props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,n=t,o=Object.keys(Xe).filter(c=>c[0]!="_").map(c=>Xe[c]),l=Ee(()=>o.filter(c=>c!=Xe.image_link&&c!=Xe.path));return(c,d)=>(B(),G("div",UH,[z("button",GH,[i.modelValue==null?(B(),G("span",XH,Ne(c.$t("modals.properties.type")),1)):(B(),G("span",KH,[$e(cs,{type:i.modelValue},null,8,["type"]),Gt(" "+Ne(c.$t("modals.properties."+i.modelValue)),1)]))]),z("ul",qH,[(B(!0),G(lt,null,Ot(l.value,p=>(B(),G("li",{onClick:m=>{n("update:modelValue",p),Ue(pm)()}},[z("span",JH,[$e(Ai,{message:"modals.properties."+p+"_tooltip"},{default:dt(()=>[$e(cs,{type:p},null,8,["type"]),Gt(" "+Ne(c.$t("modals.properties."+p)),1)]),_:2},1032,["message"])])],8,ZH))),256))])]))}});const eB=["onKeydown"],tB=ot({__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,o=i;t({hide:_,show:S,focus:T});const l=ji(),c=Ae(null),d=Ae(null),p=Ae(null),m=Ae(null),v=Ae(document.getElementsByTagName("body")[0]),y=Ae(!1);async function _(){c.value.hide()}function S(){c.value.show()}async function T(){d.value&&d.value.focus()}async function C(){y.value=!0,n.autoFocus&&(await Ft(),T()),o("show"),document.addEventListener("click",P,!0)}function O(){l.status.loaded&&y.value&&(y.value=!1,o("hide")),document.removeEventListener("click",P,!0)}function P(M){d.value.contains(M.target)||p.value.contains(M.target)||_()}function I(){o("esc")}function N(M){o("enter",M)}return ds(()=>{document.removeEventListener("click",P,!0)}),(M,D)=>(B(),G("div",{class:"p-0 m-0",ref_key:"globalElem",ref:m},[$e(Ue(VH),{onApplyShow:C,onHide:O,ref_key:"popperElem",ref:c,distance:n.offset,skidding:n.skidding,"no-auto-focus":"",boundary:v.value,"auto-hide":!1,"prevent-overflow":!0,placement:n.placement,container:n.teleport?"#popup":m.value},{popper:dt(({hide:H})=>[y.value?(B(),G("div",{key:0,class:mt(["popup bg-white m-0 p-0 rounded",n.noShadow?"":"dropdown-input"]),onKeydown:[hi(li(Z=>{I(),H()},["stop"]),["escape"]),hi(li(Z=>N(H),["stop"]),["enter"])],style:{"z-index":"999"},tabindex:"0",ref_key:"popupElem",ref:d},[xi(M.$slots,"popup",{hide:H,focus:T},void 0,!0)],42,eB)):Me("",!0)]),default:dt(()=>[z("div",{class:"m-0 p-0",ref_key:"buttonElem",ref:p},[xi(M.$slots,"button",{},void 0,!0)],512)]),_:3},8,["distance","skidding","boundary","placement","container"])],512))}});const zn=Pt(tB,[["__scopeId","data-v-7cccb384"]]),iB={class:"bbb"},nB={key:0},sB={key:1},rB={key:2},oB={class:"p-2"},aB=["onClick"],lB=["onClick"],cB=ot({__name:"PropertyModeDropdown",props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,n=t,o=Object.values(zi);return Rt(()=>{i.modelValue||n("update:modelValue",o[0])}),(l,c)=>(B(),ct(zn,null,{button:dt(()=>[z("div",iB,[i.modelValue==null?(B(),G("span",nB,"Mode..")):Me("",!0),i.modelValue==Ue(zi).id?(B(),G("span",sB,Ne(l.$t("modals.properties.instance")),1)):Me("",!0),i.modelValue==Ue(zi).sha1?(B(),G("span",rB,Ne(l.$t("modals.properties.image")),1)):Me("",!0)])]),popup:dt(({hide:d})=>[z("div",oB,[z("div",{class:"bb",onClick:p=>{n("update:modelValue",Ue(zi).id),d()}},Ne(l.$t("modals.properties.instance")),9,aB),z("div",{class:"bb",onClick:p=>{n("update:modelValue",Ue(zi).sha1),d()}},Ne(l.$t("modals.properties.image")),9,lB)])]),_:1}))}}),uB={class:"modal-dialog"},dB={key:0,class:"modal-content"},hB={class:"modal-header m-0 p-2 ps-3 pe-3"},fB={class:"modal-title",id:"exampleModalLabel"},pB={class:"modal-body",id:"tmp1"},gB={class:"me-1"},mB={class:"flex-grow-1 me-1"},vB=["placeholder"],bB={class:"invalid-feedback"},yB={class:""},xB={class:"modal-footer pt-2 pb-2"},wB=ot({__name:"PropertyModal",props:{id:{type:String,required:!0}},setup(e){const t=en(),i=ji(),n=$t(),o=Ae(null);let l=null;const c=e,d=Ee(()=>t.openModalId==c.id);function p(){t.openModalId==c.id&&t.hideModal(),S()}function m(){l.hide()}function v(){l.show()}const y=ti({}),_=Ae("");function S(){y.name="",y.type=Xe.multi_tags,y.mode=zi.sha1,_.value=""}async function T(){if(!y.name){_.value="Name is Empty!";return}if(n.propertyList.map(P=>P.name).includes(y.name)){_.value="A Property with same name already exist! Please choose a new name";return}const O=await n.addProperty(y.name,y.type,y.mode);i.getTabManager().setVisibleProperty(O.id,!0),m()}return ft(()=>t.openModalId,C=>{C==c.id?v():m()}),Rt(()=>{l=Go.getOrCreateInstance(o.value),o.value.addEventListener("hide.bs.modal",p),S()}),(C,O)=>(B(),G("div",{class:"modal fade text-dark modal-m",role:"dialog",ref_key:"modalElem",ref:o},[z("div",uB,[d.value?(B(),G("div",dB,[z("div",hB,[z("b",fB,Ne(C.$t("modals.properties.title")),1),z("button",{type:"button",class:"btn-close",onClick:m,"aria-label":"Close"})]),z("div",pB,[z("form",{onSubmit:li(T,["prevent"]),class:"d-flex flex-row",style:{"font-size":"15px"}},[z("div",gB,[$e(cB,{modelValue:y.mode,"onUpdate:modelValue":O[0]||(O[0]=P=>y.mode=P)},null,8,["modelValue"])]),z("div",mB,[Kt(z("input",{type:"text",style:{width:"100%"},class:"",id:"propertyName",name:"propertyName","onUpdate:modelValue":O[1]||(O[1]=P=>y.name=P),placeholder:C.$t("modals.properties.input"),required:""},null,8,vB),[[yi,y.name]]),z("div",bB,Ne(_.value),1)]),z("div",yB,[$e(QH,{id:"select-property",modelValue:y.type,"onUpdate:modelValue":O[2]||(O[2]=P=>y.type=P),class:"input-lg"},null,8,["modelValue"])])],32)]),z("div",xB,[z("button",{type:"button",onClick:m},Ne(C.$t("modals.properties.cancel")),1),z("button",{id:"confirm-property",type:"button",onClick:O[3]||(O[3]=P=>{T(),Ue(pm)()})},Ne(C.$t("modals.properties.confirm")),1)])])):Me("",!0)])],512))}}),_B={key:0,class:"panoptic-icon"},SB={key:1,class:"bi bi-house"},EB={key:2,class:"bi bi-file-earmark"},CB={key:3,class:"bi bi-file-earmark-arrow-down"},AB={key:4,class:"bi bi-display"},kB={key:5,class:"bi bi-image"},TB={key:6,class:"bi bi-folder"},IB={style:{"margin-left":"2px"}},OB={key:7,class:"ms-2 end"},PB=ot({__name:"FolderItem",props:{dir:Object,selected:Boolean,isParent:Boolean,light:Boolean},setup(e){const t=e;Ee(()=>t.dir.name);const i=Ee(()=>t.selected?"folder-name is-select":t.isParent?t.light?"folder-name parent-select-light":"folder-name parent-select":"folder-name");return(n,o)=>(B(),G("div",{class:mt([i.value,"d-flex"])},[t.dir.isProject?(B(),G("div",_B,"👀")):t.dir.name=="Home"?(B(),G("div",SB)):t.dir.name=="Documents"?(B(),G("div",EB)):t.dir.name=="Downloads"?(B(),G("div",CB)):t.dir.name=="Desktop"?(B(),G("div",AB)):t.dir.name=="Images"||t.dir.name=="Pictures"?(B(),G("div",kB)):(B(),G("div",TB)),z("div",IB,Ne(t.dir.name),1),o[1]||(o[1]=z("div",{class:"flex-grow-1"},null,-1)),e.dir.images?(B(),G("div",OB,[Gt(Ne(e.dir.images),1),o[0]||(o[0]=z("i",{class:"bi bi-images ms-1"},null,-1))])):Me("",!0)],2))}});const zf=Pt(PB,[["__scopeId","data-v-ff9dd3bd"]]),LB={class:"d-flex m-0 p-0 bg-info",style:{width:"100%",height:"500px"}},MB={class:"dir-list"},NB={class:"fs-title mb-1"},RB={class:"fs-title mb-1"},DB={class:"flex-grow-1 d-flex flex-column"},$B={class:"d-flex bg-warning flex-grow-1 overflow-hidden"},FB={class:"folder-list flex-shrink-0"},VB={style:{"margin-bottom":"2px"}},zB={class:"image-list flex-shrink-0 bg-white"},HB=["src"],BB={class:"bg-success"},WB={class:"path d-flex"},jB={class:"path-string flex-grow-1"},YB={key:0,class:"me-1"},UB={key:1},GB={key:2},XB=ot({__name:"FileExplorer",props:{mode:{type:String,default:"images"}},emits:{select:String},setup(e,{emit:t}){const i=e,n=t,o=ti([]),l=ti([]),c=ti([]),d=ti([]),p=Ae({path:""}),m=Ae(null),v=Ae(null),y=Ae(!1),_=Ee(()=>{if(d.length==0||d[0].length==0)return"/";let M=d[0][0].path;return M=M.slice(0,M.lastIndexOf("/")),M==""?"/":M}),S=Ee(()=>{const M=[];let D=p.value.path;for(;D.lastIndexOf("/")>0;)D=D.slice(0,D.lastIndexOf("/")),D==""&&(D="/"),M.push(D);return M}),T=Ee(()=>i.mode==="images"||i.mode==="import"&&p.value.isProject?!0:i.mode==="create"&&!p.value.isProject);async function C(){let{fast:M,partitions:D}=await lD();o.length=0,o.push(...M),l.length=0,l.push(...D)}async function O(M){let D=await Sy(M.path);D.directories.sort((H,Z)=>H.name.localeCompare(Z.name)),d.length=0,d.push(D.directories.filter(H=>!H.name.startsWith("."))),p.value=M,c.length=0,c.push(...D.images),m.value=null,y.value=!1}async function P(M,D){const H=await Sy(M.path);H.directories.sort((Z,te)=>Z.name.localeCompare(te.name)),D{await C(),O(o.filter(M=>M.name=="Home")[0])}),Nc(()=>{v.value.scrollLeft=v.value.scrollWidth}),(M,D)=>(B(),G("div",LB,[z("div",MB,[z("div",null,[z("div",NB,Ne(M.$t("modals.fs.fast")),1),(B(!0),G(lt,null,Ot(o,H=>(B(),G("div",null,[$e(zf,{dir:H,"is-parent":_.value==H.path,onClick:Z=>O(H)},null,8,["dir","is-parent","onClick"])]))),256))]),z("div",null,[z("div",RB,Ne(M.$t("modals.fs.partitions")),1),(B(!0),G(lt,null,Ot(l,H=>(B(),G("div",null,[$e(zf,{dir:H,"is-parent":_.value==H.path,onClick:Z=>O(H)},null,8,["dir","is-parent","onClick"])]))),256))])]),z("div",DB,[z("div",$B,[z("div",{class:"folder-cols flex-grow-1 bg-white d-flex",ref_key:"scrollerElem",ref:v},[(B(!0),G(lt,null,Ot(d,(H,Z)=>(B(),G("div",FB,[(B(!0),G(lt,null,Ot(H,te=>(B(),G("div",VB,[$e(zf,{dir:te,"is-parent":S.value.includes(te.path),light:!0,selected:te==p.value,onClick:Y=>P(te,Z)},null,8,["dir","is-parent","selected","onClick"])]))),256))]))),256))],512),z("div",zB,[(B(!0),G(lt,null,Ot(c,H=>(B(),G("div",null,[z("img",{src:"http://localhost:8000/images/"+H,class:"mini"},null,8,HB)]))),256))])]),z("div",BB,[z("div",WB,[z("div",jB,Ne(p.value.path),1),z("div",{class:"count text-center",style:{"min-width":"70px"},onClick:N},[m.value!=null?(B(),G("span",YB,"("+Ne(m.value)+" Images)",1)):y.value?Me("",!0):(B(),G("span",UB,"Count")),y.value?(B(),G("span",GB,D[0]||(D[0]=[z("div",{class:"spinner-border spinner-border-sm text-primary",role:"status"},[z("span",{class:"visually-hidden"},"Loading...")],-1)]))):Me("",!0)]),z("div",{id:"confirm-modal",class:mt(["open flex-shrink-0",{valid:T.value}]),onClick:I},Ne(M.$t("modals.fs.open")),3)])])]),D[1]||(D[1]=z("div",null,null,-1))]))}});const KB=Pt(XB,[["__scopeId","data-v-2797a34b"]]),qB={class:"modal-dialog"},ZB={key:0,class:"modal-content overflow-hidden"},JB={class:"modal-header m-0 p-2 ps-3 pe-3",style:{"z-index":"3","background-color":"white"}},QB={class:"modal-title",id:"exampleModalLabel"},eW={class:""},tW=ot({__name:"FolderSelectionModal",props:{id:{type:String,required:!0}},setup(e){const t=en(),i=Ee(()=>t.modalData.mode),n=Ae(null);let o=null;const l=e,c=Ee(()=>t.openModalId==l.id);function d(){var y;(y=t.modalData)!=null&&y.callback&&t.modalData.callback(void 0),t.openModalId==l.id&&t.hideModal()}function p(){o.hide()}function m(){o.show()}function v(y){var _;(_=t.modalData)!=null&&_.callback&&(t.modalData.callback(y),t.modalData.callback&&(t.modalData.callback=void 0)),p()}return ft(()=>t.openModalId,y=>{y==l.id?m():p()}),Rt(()=>{o=Go.getOrCreateInstance(n.value),n.value.addEventListener("hide.bs.modal",d)}),(y,_)=>(B(),G("div",{class:"modal fade text-dark modal-xl",role:"dialog",ref_key:"modalElem",ref:n},[z("div",qB,[c.value?(B(),G("div",ZB,[z("div",JB,[z("b",QB,Ne(y.$t("modals.fs."+i.value)),1),z("button",{type:"button",class:"btn-close",onClick:p,"aria-label":"Close"})]),z("div",eW,[$e(KB,{onSelect:v,mode:i.value},null,8,["mode"])])])):Me("",!0)])],512))}}),iW={class:"center-content"},nW=["src"],sW=["src"],rW=ot({__name:"CenteredImage",props:{image:{},width:{},height:{},noClick:{type:Boolean},border:{},isZoom:{type:Boolean}},setup(e){const t=e,i=Ae(!1),n=Ae(null),o=Ae(!1),l=Ae(null),c=Ee(()=>{const v=l.value;if(!v)return{w:0,h:0};let y=v.width/v.height;return t.width/t.height>y?{w:t.height*y,h:t.height}:{w:t.width,h:t.width/y}}),d=Ee(()=>{let v=t.image;const y=Math.max(t.width,t.height);return y<150?v.urlSmall:y<300?v.urlMedium:y<1024?v.urlLarge:v.urlRaw}),p=Ee(()=>{let v=l.value;if(!v)return;const y=Math.max(t.width,t.height);return y<150?v.urlSmall:y<300?v.urlMedium:y<1024?v.urlLarge:v.urlRaw});function m(){l.value=t.image}return(v,y)=>(B(),G("div",{class:"center-container",onMouseenter:y[0]||(y[0]=_=>i.value=!0),onMouseleave:y[1]||(y[1]=_=>i.value=!1),ref_key:"imageElem",ref:n,style:Ct({width:t.width+"px",height:t.height+"px",cursor:t.noClick?"inherit":"pointer"})},[z("div",iW,[!o.value&&p.value?(B(),G("img",{key:0,src:p.value,style:Ct({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,nW)):Me("",!0),z("img",{style:{opacity:"0",position:"absolute",width:"0",height:"0"},src:d.value,onLoad:m},null,40,sW)])],36))}});const Xc=Pt(rW,[["__scopeId","data-v-6f800535"]]),Mi=ti({ctrl:!1,alt:!1,shift:!1,left:!1,right:!1,mouseX:0,mouseY:0}),hr=ti({open:!1,image:void 0,show:e=>{hr.image=e,hr.open=!0},hide:()=>{hr.open=!1}}),Fm=ot({__name:"Zoomable",props:{image:{}},setup(e){const t=e,i=Ae(!1),n=Ae(null);return ft(Mi,()=>{const o=hr.open&&hr.image.id===t.image.id,l=i.value;if(!o&&!l)return;l&&!o&&Mi.ctrl&&hr.show(t.image);const c=n.value.getBoundingClientRect(),d=Mi.mouseX>=c.x&&Mi.mouseX<=c.right&&Mi.mouseY>=c.y&&Mi.mouseY<=c.bottom;o&&(!d||!Mi.ctrl)&&hr.hide()}),(o,l)=>(B(),G("div",{onMouseenter:l[0]||(l[0]=c=>i.value=!0),onMouseleave:l[1]||(l[1]=c=>i.value=!1),ref_key:"elem",ref:n},[xi(o.$slots,"default")],544))}}),oW={class:"m-0 p-0"},aW=ot({__name:"TagBadge",props:{showDelete:{type:Boolean},id:{},name:{},color:{}},setup(e){const t=$t(),i=e,n=Ee(()=>t.tags[i.id]),o=Ee(()=>i.color>=0&&i.color<=12?no[i.color].color:!n.value||n.value.color<0||n.value.color>12?"grey":no[n.value.color].color),l=Ee(()=>i.name?i.name:n.value?n.value.value:"undefined");function c(){if(!n.value)return;en().showModal(Ri.TAG,{propId:n.value.propertyId,tagId:n.value.id})}return(d,p)=>(B(),G("div",{class:"badge tag-badge",style:Ct("background: "+o.value),onDblclick:c},[z("span",oW,[d.showDelete?(B(),G("span",{key:0,onClick:p[0]||(p[0]=li(m=>d.$emit("delete"),["prevent","stop"])),class:"bi bi-x tag-x"})):Me("",!0),z("span",null,Ne(l.value),1)])],36))}});const In=Pt(aW,[["__scopeId","data-v-02b731c1"]]);const lW=["onClick"],cW={class:"color-name"},uW=["onClick"],dW=ot({__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,o=i,l=Ae(null),c=Ae(null),d=Ae(100),p=Ae(null),m=Ee(()=>n.width?n.width+"px":"100%"),v=Ee(()=>{if(n.modelValue==null)return"white";let O=Number(n.modelValue);return isNaN(O)||O>12?"gray":no[O].color}),y=Ae(!1);function _(){y.value||(y.value=!0,c.value.show())}function S(){l.value=n.modelValue}function T(O){o("update:modelValue",O)}function C(){p.value&&(d.value=Math.max(p.value.offsetWidth,100))}return Rt(S),t({focus:_}),(O,P)=>(B(),ct(zn,{teleport:n.teleport,offset:0,onShow:C,ref_key:"dropdown",ref:c},{button:dt(()=>[n.modelValue!==void 0?(B(),G("div",{key:0,style:Ct([{height:n.minHeight+"px"},{cursor:"pointer"}]),ref_key:"previewElem",ref:p},[z("div",{class:mt(n.rounded?"rounded":""),style:Ct([{margin:"auto"},{width:m.value,backgroundColor:v.value,height:"calc(100% - 3px)",position:"relative",top:n.offset+"px"}])},null,6)],4)):(B(),G("div",{key:1,class:"text-secondary",style:Ct([{cursor:"pointer"},{width:m.value}])},Ne(O.$t("none")),5))]),popup:dt(({hide:I})=>[z("div",{style:Ct({width:d.value+8+"px"}),class:"p-1"},[(B(!0),G(lt,null,Ot(Ue(no),(N,M)=>(B(),G("div",{class:"d-flex flex-row color-option",onClick:D=>{T(M),I()}},[z("div",{style:Ct({backgroundColor:N.color}),class:"color"},null,4),z("div",cW,Ne(N.name),1)],8,lW))),256)),P[1]||(P[1]=z("div",{class:"hr m-1"},null,-1)),z("div",{class:"d-flex flex-row color-option",onClick:N=>{T(void 0),I()}},P[0]||(P[0]=[z("div",{style:{backgroundColor:"#ffffff"},class:"color"},null,-1),z("div",{class:"color-name"}," None ",-1)]),8,uW)],4)]),_:1},8,["teleport"]))}});const Vm=Pt(dW,[["__scopeId","data-v-49ce84c8"]]),hW={class:"bg-white"},fW=["onClick"],pW={class:"color-name"},gW=ot({__name:"ColorInput",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,n=t;function o(l){n("update:modelValue",l)}return(l,c)=>(B(),G("div",hW,[z("div",null,[(B(!0),G(lt,null,Ot(Ue(no),(d,p)=>(B(),G("div",{class:mt(["d-flex flex-row color-option",i.modelValue==p?"selected":""]),onClick:m=>o(p)},[z("div",{style:Ct({backgroundColor:d.color}),class:"color"},null,4),z("div",pW,Ne(d.name),1)],10,fW))),256)),c[2]||(c[2]=z("div",{class:"hr m-1"},null,-1)),z("div",{class:mt(["d-flex flex-row color-option",i.modelValue==null?"selected":""]),onClick:c[0]||(c[0]=d=>o(void 0))},c[1]||(c[1]=[z("div",{style:{backgroundColor:"#ffffff"},class:"color"},null,-1),z("div",{class:"color-name"}," None ",-1)]),2)])]))}});const qS=Pt(gW,[["__scopeId","data-v-1e3c151f"]]),mW={class:"main-box pt-1"},vW={class:"ps-1 pe-1"},bW={key:0,class:"mt-1",style:{height:"317px"}},yW=ot({__name:"TagOptionsDropdown",props:{propertyId:Number,tagId:Number,canCustomize:Boolean,canDelete:Boolean},emits:["delete","hide"],setup(e,{emit:t}){const i=$t(),n=e,o=t,l=Ae(null),c=Ae(""),d=Ae(null),p=Ae(null),m=Ae(!1),v=Ee(()=>i.properties[n.propertyId].tags[n.tagId]);async function y(){v.value&&(c.value=v.value.value,d.value=v.value.color,await Ft(),p.value&&p.value.focus())}function _(P){i.updateTag(n.tagId,void 0,Number(P)),l.value.hide()}function S(P){P!=v.value.value&&(console.log("set"),i.updateTag(n.tagId,P))}function T(){i.deleteTag(n.tagId),o("delete",n.tagId),l.value.hide()}function C(){m.value=!0,y()}function O(){m.value&&(m.value=!1,S(c.value),o("hide"))}return Rt(y),ft(()=>n.tagId,y),(P,I)=>(B(),ct(zn,{ref_key:"dropdown",ref:l,onShow:C,onHide:O,teleport:!1},{button:dt(()=>I[2]||(I[2]=[z("span",{class:"pe-1"},[z("i",{class:"bi bi-three-dots sm-btn",style:{position:"relative",top:"1.5px"}})],-1)])),popup:dt(()=>[z("div",mW,[z("div",vW,[n.canCustomize?Kt((B(),G("input",{key:0,"onUpdate:modelValue":I[0]||(I[0]=N=>c.value=N),ref_key:"nameInput",ref:p,class:"w-100 mb-2",onChange:I[1]||(I[1]=N=>S(c.value))},null,544)),[[yi,c.value]]):Me("",!0),n.canDelete?(B(),G("div",{key:1,class:"mb-1 base-btn",onClick:T},I[3]||(I[3]=[z("i",{class:"bi bi-trash"},null,-1),Gt(" Delete Tag")]))):Me("",!0)]),I[4]||(I[4]=z("div",{class:"hr w-100"},null,-1)),n.canCustomize?(B(),G("div",bW,[$e(qS,{"hide-preview":!0,"hide-white":!0,"model-value":d.value,"onUpdate:modelValue":_},null,8,["model-value"])])):Me("",!0)])]),_:1},512))}});const ZS=Pt(yW,[["__scopeId","data-v-de2d087e"]]),xW={class:"overflow-hidden mb-1 text-wrap"},wW=ot({__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,o=i;t({focus:S});const l=Ae(null),c=Ee(()=>n.modelValue??[]),d=Ee(()=>c.value.map(T=>n.property.tags[T])),p=Ee(()=>n.excluded?[...n.excluded,...c.value]:[...c.value]);function m(T){n.property.type==Xe.tag&&!n.forceMulti?o("update:modelValue",[T.id]):o("update:modelValue",[...c.value,T.id]),o("select",T),S()}function v(T){m(T)}function y(T){o("update:modelValue",[...c.value.filter(C=>C!=T)]),o("remove",T),S()}function _(T){y(T.id)}function S(){l.value.focus()}return(T,C)=>(B(),G("div",null,[z("div",xW,[(B(!0),G(lt,null,Ot(d.value,O=>(B(),ct(In,{onDelete:P=>_(O),"show-delete":!0,id:O.id,class:"me-1"},null,8,["onDelete","id"]))),256))]),$e(JS,{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:v,onDelete:y,ref_key:"tagMenuElem",ref:l},null,8,["property","excluded","can-create","can-customize","can-link","can-delete","auto-focus"])]))}}),_W={class:"text-nowrap sm-btn"},SW={style:{"font-size":"10px"}},EW={class:"p-1 main-box"},CW=ot({__name:"TagChildSelectDropdown",props:{propertyId:Number,tagId:Number},emits:["hide"],setup(e,{emit:t}){const i=$t(),n=e,o=t,l=Ae([]),c=Ee(()=>i.properties[n.propertyId].tags[n.tagId]),d=Ee(()=>{var _;return((_=c.value)==null?void 0:_.children)??[]}),p=Ee(()=>{const _=new Set,S=T=>{T!=null&&(_.add(T.id),T.parents.forEach(C=>S(i.properties[n.propertyId].tags[C])))};return S(c.value),Array.from(_)});function m(_){i.addTagParent(_.id,n.tagId)}function v(_){const S=i.properties[n.propertyId].tags[_];i.deleteTagParent(S.id,n.tagId)}function y(){l.value.length=0,l.value.push(...d.value.map(_=>_))}return Rt(y),ft(d,y),(_,S)=>(B(),ct(zn,{onHide:S[1]||(S[1]=T=>o("hide")),"auto-focus":!1,teleport:!0},{button:dt(()=>[z("span",_W,[S[2]||(S[2]=z("i",{class:"bi bi-node-plus me-1",style:{position:"relative",top:"1.5px"}},null,-1)),z("span",SW,Ne(d.value.length),1)])]),popup:dt(()=>[z("div",EW,[$e(wW,{modelValue:l.value,"onUpdate:modelValue":S[0]||(S[0]=T=>l.value=T),property:Ue(i).properties[n.propertyId],excluded:p.value,onSelect:m,onRemove:v,"auto-focus":!0},null,8,["modelValue","property","excluded"])])]),_:1}))}});const AW=Pt(CW,[["__scopeId","data-v-c37442f7"]]),kW={class:"m-0 p-0"},TW={class:"w-100 mb-1"},IW={class:"pb-0",style:{"max-height":"300px","overflow-y":"auto"}},OW=["onMouseover","onMouseleave"],PW={class:"ms-2 d-flex"},LW={class:"text-secondary",style:{"font-size":"10px","line-height":"20px","padding-right":"2px"}},MW=ot({__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=$t(),o=e,l=i;t({focus:S});const c=Ae(null),d=Ae("");Ae(null);const p=Ae(0),m=Ee(()=>d.value.length>0&&!_.value.some(I=>I.value==d.value)),v=Ee(()=>p.value==_.value.length&&m.value),y=Ee(()=>{const I={};return Qn(n.tags).filter(N=>N.propertyId==o.property.id&&N.id!=Hi).forEach(N=>I[N.id]=N),I}),_=Ee(()=>{let I=Object.values(y.value).filter(N=>N.value.toLowerCase().includes(d.value.toLowerCase()));return o.excluded&&(I=I.filter(N=>!o.excluded.includes(N.id))),I.sort((N,M)=>M.count-N.count),I=I.filter(N=>!N.deleted),I});async function S(){c.value&&c.value.focus()}Rt(()=>{if(o.property.type!=Xe.multi_tags&&o.property.type!=Xe.tag)throw`TagDropdown got propertyId that does not correspond to a tag | multi_tags type.. +Given type: `+o.property.type;o.autoFocus&&S()});const T=I=>p.value==I?"bg-selected":"bg-white";function C(I){if(p.value==null){p.value=0;return}let N=m.value?0:-1;I>0&&p.value<_.value.length+N?p.value+=1:I<0&&p.value>0&&(p.value-=1)}const O=async function(){if(p.value!=null){if(v.value){const I=await n.addTag(o.property.id,d.value);l("create",I)}else if(p.value<_.value.length){let I=_.value[p.value];l("select",I)}d.value="",S()}};function P(I){p.value==I&&(p.value=void 0)}return ft(_,()=>{_.value.length==0&&m.value&&(p.value=0)}),(I,N)=>(B(),G("div",kW,[z("div",TW,[Kt(z("input",{type:"text",class:"w-100","onUpdate:modelValue":N[0]||(N[0]=M=>d.value=M),ref_key:"searchElem",ref:c,style:{"font-size":"13px","min-width":"100px"},onKeydown:[N[1]||(N[1]=hi(M=>C(1),["down"])),N[2]||(N[2]=hi(M=>C(-1),["up"])),hi(O,["enter"])],onKeydownCapture:N[3]||(N[3]=hi(()=>{},["escape"]))},null,544),[[yi,d.value]])]),z("div",IW,[(B(!0),G(lt,null,Ot(_.value,(M,D)=>(B(),G("div",{class:mt(T(D)),style:{cursor:"pointer"},onMouseover:H=>p.value=D,onMouseleave:H=>P(D)},[z("div",PW,[z("div",{class:"flex-grow-1",style:{overflow:"hidden"},onClick:O},[$e(In,{id:M.id},null,8,["id"])]),o.canLink?(B(),G("div",{key:0,style:Ct({color:p.value==D?"var(--text-color)":"white"})},[$e(AW,{"property-id":M.propertyId,"tag-id":M.id,onHide:S},null,8,["property-id","tag-id"])],4)):Me("",!0),o.canCustomize||o.canDelete?(B(),G("div",{key:1,style:Ct({color:p.value==D?"var(--text-color)":"white"})},[$e(ZS,{"property-id":e.property.id,"tag-id":M.id,"can-delete":o.canDelete,"can-customize":o.canCustomize,onDelete:N[4]||(N[4]=H=>l("delete",H)),onHide:S},null,8,["property-id","tag-id","can-delete","can-customize"])],4)):Me("",!0),z("div",LW,Ne(M.count+Ue(kh)(M.allChildren.map(H=>Ue(n).tags[H].count))),1)])],42,OW))),256)),o.canCreate&&m.value?(B(),G("div",{key:0,class:mt(T(_.value.length)),style:{cursor:"pointer"},onMouseover:N[5]||(N[5]=M=>p.value=_.value.length),onClick:li(O,["prevent","stop"])},[N[6]||(N[6]=z("span",{class:"text-muted ms-1"},"Create ",-1)),$e(In,{name:d.value,color:-1},null,8,["name"])],34)):Me("",!0)])]))}});const JS=Pt(MW,[["__scopeId","data-v-c69b6a05"]]),NW={class:"overflow-hidden mb-1 text-wrap"},RW=ot({__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,o=i;t({focus:S});const l=Ae(null),c=Ee(()=>n.modelValue??[]),d=Ee(()=>c.value.map(T=>n.property.tags[T])),p=Ee(()=>n.excluded?[...n.excluded,...c.value]:[...c.value]);function m(T){n.property.type==Xe.tag&&!n.forceMulti?o("update:modelValue",[T.id]):o("update:modelValue",[...c.value,T.id]),o("select",T),S()}function v(T){m(T)}function y(T){o("update:modelValue",[...c.value.filter(C=>C!=T)]),o("remove",T),S()}function _(T){y(T.id)}function S(){l.value.focus()}return(T,C)=>(B(),G("div",null,[z("div",NW,[(B(!0),G(lt,null,Ot(d.value,O=>(B(),ct(In,{onDelete:P=>_(O),"show-delete":!0,id:O.id,class:"me-1"},null,8,["onDelete","id"]))),256))]),$e(JS,{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:v,onDelete:y,ref_key:"tagMenuElem",ref:l},null,8,["property","excluded","can-create","can-customize","can-link","can-delete","auto-focus"])]))}}),DW={key:0,style:{"font-size":"14px"},class:"text-secondary"},$W={class:"p-1",style:{"max-width":"250px"}},FW=ot({__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:{},forceMulti:{type:Boolean}},emits:["update:modelValue","hide","update:height"],setup(e,{expose:t,emit:i}){const n=e,o=i;t({getHeight:y,focus:T});const l=Ae(null),c=Ae(null),d=Ae(null),p=Ee(()=>v.value??[]),m=Ee(()=>p.value.map(P=>n.property.tags[P])),v=Ae(void 0);function y(){return l.value==null?0:l.value.clientHeight}async function _(P,I){v.value=P,S(),n.property.type==Xe.tag&&!n.forceMulti&&I()}async function S(){await Ft(),o("update:height",y())}function T(){d.value&&d.value.show()}function C(){v.value=n.modelValue}function O(){o("hide"),o("update:modelValue",v.value)}return ft(()=>n.width,S),ft(()=>n.modelValue,C),Rt(S),Rt(C),(P,I)=>(B(),ct(zn,{"auto-focus":!1,onHide:O,teleport:n.teleport,ref_key:"dropdownElem",ref:d,offset:-25,placement:"bottom-start"},{button:dt(()=>[z("div",{class:mt(["btn-class",n.noWrap?"text-nowrap":"text-wrap"]),style:Ct({width:n.width?n.width+"px":"100%"}),ref_key:"heightElem",ref:l},[(B(!0),G(lt,null,Ot(m.value,N=>(B(),G("span",null,[$e(In,{id:N.id,class:"me-1"},null,8,["id"])]))),256)),m.value.length==0?(B(),G("span",DW,Ne(P.$t("none")),1)):Me("",!0)],6)]),popup:dt(({hide:N})=>[z("div",$W,[$e(RW,{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":M=>_(M,N),"force-multi":!0,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 zm=Pt(FW,[["__scopeId","data-v-bc0a33a3"]]),VW={class:"h-100 w-100"},zW=["contenteditable"],HW=ot({__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,o=i;t({focus:d});const l=Ae(!1),c=Ae(null);function d(){p(c.value),l.value=!0}function p(P){var I,N;document.createRange&&(I=document.createRange(),I.selectNodeContents(P),I.collapse(!1),N=window.getSelection(),N.removeAllRanges(),N.addRange(I))}function m(){return c.value?(n.noHtml?c.value.innerText:c.value.innerHTML)??"":""}function v(P){return n.onlyNumber&&(P=P.replace(/[^\d.]/g,""),P=P.replace(/\.(?=.*\.)/g,"")),P||(P=""),P}function y(P){n.onlyNumber&&(P=v(P)),n.noHtml?c.value.innerText=P:c.value.innerHTML=P}function _(P){c.value&&o("update:modelValue",m())}function S(P){o("blur"),_(),l.value=!1}function T(P){var H;P.preventDefault();let I=((H=P.clipboardData)==null?void 0:H.getData("text/plain"))||"";n.onlyNumber&&(I=v(I));const N=window.getSelection();if(!(N!=null&&N.rangeCount))return;const M=N.getRangeAt(0);M.deleteContents(),n.onlyNumber&&m().includes(".")&&(I=I.replace(/\./g,"")),I.split(` +`).forEach((Z,te)=>{if(te>0){const ee=document.createElement("br");M.insertNode(ee),M.setStartAfter(ee)}const Y=document.createTextNode(Z);M.insertNode(Y),M.setStartAfter(Y)}),N.removeAllRanges(),N.addRange(M),o("update:modelValue",m())}function C(P){if(P.key=="Enter"&&n.noNl&&(P.preventDefault(),o("returned",m())),n.onlyNumber){let I=P.key.replace(/[^\d.]/g,"");I=="."&&m().includes(".")&&(I=""),I==""&&(P.preventDefault(),o("returned",m()))}}function O(){l.value||(l.value=!0)}return Rt(()=>{y(n.modelValue??"")}),ft(()=>n.modelValue,(P,I)=>{P!=m()&&y(P??"")}),ft(()=>n.noHtml,(P,I)=>{y(n.modelValue??"")}),(P,I)=>(B(),G("div",VW,[z("div",{contenteditable:P.contenteditable,onInput:_,onBlur:S,onPaste:T,onKeypress:C,ref_key:"element",ref:c,onFocus:I[0]||(I[0]=N=>{o("focus"),O()})},null,40,zW)]))}}),BW=ot({__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,o=i,l=Ae(null),c=Ae(!1),d=Ae(!1),p=Ee(()=>n.minHeight-6+"px"),m=Ee(()=>n.modelValue??""),v=Ee(()=>n.urlMode&&Mi.ctrl&&d.value);function y(){l.value.focus(),o("focus")}t({focus:y,isFocus:c});let _=0;function S(M){(M==""||M==` +`)&&(M=void 0),o("update:modelValue",M),T()}function T(){Ft(()=>{if(!l.value)return;let M=l.value.$refs.element.clientHeight;_!=M&&o("update:height",M),_=M})}function C(){if(n.urlMode&&Mi.ctrl&&n.modelValue){let M=n.modelValue;M.startsWith("http")||(M="http://"+M),window.open(M,"_blank").focus()}}function O(M){!Mi.shift&&n.blurOnEnter&&(M.target.blur(),M.preventDefault(),M.stopPropagation(),o("submit"))}function P(){o("cancel")}function I(){c.value=!1,o("blur")}function N(){c.value=!0,o("focus")}return Rt(async()=>{T(),n.autoFocus&&(await Ft(),y())}),ft(()=>n.width,()=>{T()}),ft(()=>n.modelValue,()=>{S(n.modelValue)}),(M,D)=>(B(),G("div",{style:Ct({width:n.width>0?n.width+"px":"100%",minHeight:p.value,cursor:v.value?"pointer":"inherit",color:v.value?"blue":""}),class:mt(["container m-0 p-0",c.value&&!n.noShadow||n.alwaysShadow?"focus":"container"]),onMouseenter:D[1]||(D[1]=H=>d.value=!0),onMouseleave:D[2]||(D[2]=H=>d.value=!1),onClick:y},[$e(HW,{ref_key:"elem",ref:l,"onUpdate:modelValue":S,"model-value":m.value,"no-nl":n.urlMode||n.noNl,contenteditable:n.editable&&!v.value,style:Ct({width:n.width-5+"px"}),class:"contenteditable",onKeydown:[D[0]||(D[0]=hi(H=>H.target.blur(),["escape"])),hi(li(P,["stop"]),["esc"]),hi(O,["enter"])],onFocus:N,onBlur:I,onClick:li(C,["stop"])},null,8,["model-value","no-nl","contenteditable","style","onKeydown"])],38))}});const Kc=Pt(BW,[["__scopeId","data-v-ed70e7ce"]]),WW={key:0,class:"ellipsis"},jW={key:1,class:"text-secondary"},YW=ot({__name:"TextPreview",props:{text:{}},setup(e){const t=e;return(i,n)=>t.text?(B(),G("div",WW,Ne(t.text),1)):(B(),G("div",jW,Ne(i.$t("none")),1))}});const QS=Pt(YW,[["__scopeId","data-v-92de6c48"]]),eE=ot({__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,o=i;t({focus:y});const l=Ae(null),c=Ae(void 0);function d(){c.value=n.modelValue}async function p(){await Ft(),c.value===""||c.value===void 0?o("update:modelValue",void 0):o("update:modelValue",c.value),await Ft(),c.value==""&&(c.value=void 0)}function m(T){o("update:height",T)}async function v(){c.value===void 0&&(c.value=""),await Ft(),l.value&&l.value.focus()}function y(){v()}function _(){d()}function S(T){T===void 0&&(T=""),c.value=T}return Rt(d),ft(n,d),(T,C)=>(B(),G("div",null,[c.value===void 0?(B(),ct(QS,{key:0,text:n.modelValue,onClick:v,style:{"font-size":"inherit",cursor:"pointer"}},null,8,["text"])):(B(),ct(Kc,{key:1,"model-value":c.value,"onUpdate:modelValue":S,"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:C[0]||(C[0]=O=>_()),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"]))]))}}),UW={key:1,class:"text-secondary"},GW=ot({__name:"UrlPreview",props:{url:{}},setup(e){const t=e,i=Ae(!1),n=Ee(()=>Mi.ctrl&&i.value);function o(){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?(B(),G("div",{key:0,class:"ellipsis",style:Ct({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:o},Ne(t.url),37)):(B(),G("div",UW,Ne(l.$t("none")),1))}});const tE=Pt(GW,[["__scopeId","data-v-55f0af12"]]),iE=ot({__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,o=i;t({focus:y});const l=Ae(null),c=Ae(void 0);function d(){c.value=n.modelValue}async function p(){await Ft(),c.value===""||c.value===void 0?o("update:modelValue",void 0):o("update:modelValue",c.value),await Ft(),c.value==""&&(c.value=void 0)}function m(T){o("update:height",T)}async function v(){c.value===void 0&&(c.value=""),await Ft(),l.value&&l.value.focus()}function y(){v()}function _(){d()}function S(T){T===void 0&&(T=""),c.value=T}return Rt(d),ft(n,d),(T,C)=>(B(),G("div",null,[c.value===void 0?(B(),ct(tE,{key:0,url:n.modelValue,onClick:v,style:{"font-size":"inherit",cursor:"pointer"}},null,8,["url"])):(B(),ct(Kc,{key:1,"model-value":c.value,"onUpdate:modelValue":S,"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"]))]))}}),XW={class:"d-flex"},KW=["checked"],qW=ot({__name:"CheckboxInput",props:{modelValue:{type:Boolean},label:{}},emits:["update:modelValue"],setup(e,{expose:t,emit:i}){const n=e,o=i;t({focus:c});const l=Ae(null);function c(){l.value&&l.value.focus()}function d(p){p.target.checked?o("update:modelValue",!0):o("update:modelValue",void 0)}return(p,m)=>(B(),G("div",XW,[z("div",null,[z("input",{class:"offset-input",type:"checkbox",checked:n.modelValue,onInput:d,ref_key:"inputElem",ref:l},null,40,KW)]),z("div",null,[n.label?(B(),G("span",{key:0,class:"ms-1 bb",onClick:m[0]||(m[0]=v=>o("update:modelValue",!n.modelValue))},Ne(p.label),1)):Me("",!0)])]))}});const Hm=Pt(qW,[["__scopeId","data-v-6a92b66c"]]),nE=ot({__name:"DBInput",props:{instance:{},propertyId:{}},emits:[],setup(e,{emit:t}){const i=$t(),n=e,o=Ee(()=>i.instances[n.instance.id].properties[n.propertyId]),l=Ae(void 0),c=Ae(!0);async function d(m){c.value&&JSON.stringify(m)!==JSON.stringify(o.value)&&(l.value=m,await i.setPropertyValue(n.propertyId,n.instance,m),p())}function p(){l.value=o.value}return Rt(p),ft(o,p),ft(n,async()=>{c.value=!1,await Ft(),c.value=!0}),(m,v)=>c.value?xi(m.$slots,"default",{key:0,set:d,value:l.value}):Me("",!0)}}),ZW={key:0,class:"text-secondary"},JW={key:1},QW=ot({__name:"DatePreview",props:{date:{},format:{default:"YMDhms"},resolution:{default:5}},setup(e){const t=e,i=Ee(()=>{let o=new Date(t.date);if(!isNaN(+o))return n(o)});function n(o){let l="",c=t.format;for(let d=0;d(B(),G("div",null,[i.value?(B(),G("span",JW,Ne(i.value),1)):(B(),G("span",ZW,Ne(o.$t("none")),1))]))}}),ej={class:""},tj={key:0},ij={class:"d-flex"},nj=["onInput","onUpdate:modelValue","onClick","onKeydown","onBlur"],sj={key:1},rj={class:"d-flex"},oj={key:2},aj={class:"d-flex"},lj={key:3},cj={class:"d-flex"},uj={key:4},dj={class:"d-flex"},hj={key:5},fj={class:"d-flex"},pj={key:6,class:"slash"},gj={key:7,class:"me-2"},mj={key:8},vj={class:"d-flex"},bj={class:"ms-2"},yj={key:0,style:{width:"50px"},class:"text-warning"},xj={key:1,class:"text-warning",style:{width:"50px"}},wj={key:2,style:{width:"50px"}},_j={class:"text-success"},Sj={key:0},Ej={key:1},Cj={key:0,class:"text-center"},Aj=ot({__name:"DateInput",props:{modelValue:{},extended:{type:Boolean},autoFocus:{type:Boolean}},emits:["update:modelValue","cancel","submit"],setup(e,{emit:t}){const i=e,n=t,o=Ae({}),l=Ae({}),c=Ae({}),d=Ae("YMDhms"),p=Ae("YMDhms"),m=Ae(5),v=Ae(null),y=Ee(()=>o.value.Y0=="-"?["Y0","Y1","Y2","Y3","Y4"]:["Y0","Y1","Y2","Y3"]),_=Ee(()=>{let ie=o.value;if(Object.values(ie).some(we=>we=="x"))return{};const X=new Date;let fe="",me=y.value.length;for(let we=0;we{const ie=p.value.substring(0,m.value+1);return Array.from(d.value).filter(X=>ie.includes(X))});function T(ie){let X="",fe=S.value;for(let me=0;me1){oe(de,me);return}if(!O(me)){l.value[de]=o.value[de];return}if(me=="-")if(ye.Y0!="-"){let st=y.value.length;for(let Oe=st;Oe>0;Oe--)ye["Y"+Oe]=ye["Y"+(Oe-1)];ye.Y0="-";for(let Oe=1;Oe<=X;Oe++)ye["Y"+Oe]=0;o.value=ye,P(),ee("Y"+X)}else{ye.Y0="-";for(let st=1;st1){oe(de,me);return}isNaN(me)||(ye[de]=me),ye.M0>1&&(ye.M0=0),ye.M0>0&&ye.M1>2&&(X==0?ye.M1=2:ye.M0=0),ye.M0==0&&ye.M1==0&&(ye.M1=1),o.value=ye,P(),ee(de),fe&&n("update:modelValue",(ze=_.value.date)==null?void 0:ze.toISOString())}function D(ie,X,fe=!0){var ze;let me=ie.data,de="D"+X,ye=o.value;if(me==null&&(me="0"),me.length>1){oe(de,me);return}isNaN(me)||(ye[de]=me),ye.D0>3&&(ye.D0=0),ye.D0==3&&ye.D1>1&&(X==0?ye.D1=1:ye.D0=0),ye.D0==0&&ye.D1==0&&(ye.D1=1),o.value=ye,P(),ee(de),fe&&n("update:modelValue",(ze=_.value.date)==null?void 0:ze.toISOString())}function H(ie,X,fe=!0){var ze;let me=ie.data,de="h"+X,ye=o.value;if(me==null&&(me="0"),me.length>1){oe(de,me);return}isNaN(me)||(ye[de]=me),ye.h0>2&&(ye.h0=0),ye.h0==2&&ye.h1>3&&(X==0?ye.h1=3:ye.h0=0),o.value=ye,P(),ee(de),fe&&n("update:modelValue",(ze=_.value.date)==null?void 0:ze.toISOString())}function Z(ie,X,fe=!0){var ze;let me=ie.data,de="m"+X,ye=o.value;if(me==null&&(me="0"),me.length>1){oe(de,me);return}isNaN(me)||(ye[de]=me),ye.m0>5&&(ye.m0=0),o.value=ye,P(),ee(de),fe&&n("update:modelValue",(ze=_.value.date)==null?void 0:ze.toISOString())}function te(ie,X,fe=!0){var ze;let me=ie.data,de="s"+X,ye=o.value;if(me==null&&(me="0"),me.length>1){oe(de,me);return}isNaN(me)||(ye[de]=me),ye.s0>5&&(ye.s0=0),o.value=ye,P(),ee(de),fe&&n("update:modelValue",(ze=_.value.date)==null?void 0:ze.toISOString())}function Y(ie){let X=o.value;X[ie]=="x"&&(X[ie]=ie=="M1"||ie=="D1"?1:0),o.value=X,P()}function ee(ie){let X=le(ie);X!=null&&c.value[X].focus()}function le(ie){let X=ie[0],fe=Number(ie.substring(1)),me=2;if(X=="Y"&&(me=y.value.length),fe+1ye=="-"||!isNaN(Number(ye))).filter(ye=>ye!=" ");for(;ie&&me[fe]!=null;){let ye=ie[0],ze=Number(ie[1]);ye=="Y"&&N({data:me[fe]},ze,!1),ye=="M"&&M({data:me[fe]},ze,!1),ye=="D"&&D({data:me[fe]},ze,!1),ye=="h"&&H({data:me[fe]},ze,!1),ye=="m"&&Z({data:me[fe]},ze,!1),ye=="s"&&te({data:me[fe]},ze,!1),fe+=1,ie=le(ie)}n("update:modelValue",(de=_.value.date)==null?void 0:de.toISOString())}function pe(){var ie;C(_.value.closest),n("update:modelValue",(ie=_.value.date)==null?void 0:ie.toISOString())}function ge(ie){var X;C(ie),n("update:modelValue",(X=_.value.date)==null?void 0:X.toISOString())}function Ce(){var ie=new Date;return ie.setTime(ie.getTime()-ie.getTimezoneOffset()*6e4),ie}async function ue(){await Ft(),v.value.getElementsByTagName("input")[0].focus()}return Rt(()=>{C(i.modelValue),i.autoFocus&&ue()}),(ie,X)=>(B(),G("div",ej,[z("div",{class:"d-flex flex-nowrap justify-content-center",style:{"line-height":"20px"},ref_key:"divElem",ref:v},[(B(!0),G(lt,null,Ot(S.value,(fe,me)=>(B(),G(lt,null,[fe=="Y"?(B(),G("div",tj,[z("div",ij,[(B(!0),G(lt,null,Ot(y.value,(de,ye)=>Kt((B(),G("input",{class:"digit",type:"text",onInput:ze=>N(ze,ye),"onUpdate:modelValue":ze=>l.value[de]=ze,ref_for:!0,ref:ze=>c.value[de]=ze,onClick:ze=>I(ye),onKeydown:hi(li(ze=>N({},ye),["prevent","stop"]),["delete"]),onBlur:ze=>Y(de)},null,40,nj)),[[yi,l.value[de]]])),256))]),X[44]||(X[44]=z("div",{class:"text-center text-secondary",style:{"font-size":"10px"}},"Y",-1))])):Me("",!0),fe=="M"?(B(),G("div",sj,[z("div",rj,[Kt(z("input",{class:"digit",type:"text",onInput:X[0]||(X[0]=de=>M(de,0)),"onUpdate:modelValue":X[1]||(X[1]=de=>l.value.M0=de),onBlur:X[2]||(X[2]=de=>Y("M0")),onKeydown:X[3]||(X[3]=hi(li(de=>M({},0),["prevent","stop"]),["delete"])),ref_for:!0,ref:de=>c.value.M0=de},null,544),[[yi,l.value.M0]]),Kt(z("input",{class:"digit",type:"text",onInput:X[4]||(X[4]=de=>M(de,1)),"onUpdate:modelValue":X[5]||(X[5]=de=>l.value.M1=de),onBlur:X[6]||(X[6]=de=>Y("M1")),onKeydown:X[7]||(X[7]=hi(li(de=>M({},1),["prevent","stop"]),["delete"])),ref_for:!0,ref:de=>c.value.M1=de},null,544),[[yi,l.value.M1]])]),X[45]||(X[45]=z("div",{class:"text-center text-secondary",style:{"font-size":"10px"}},"M",-1))])):Me("",!0),fe=="D"?(B(),G("div",oj,[z("div",aj,[Kt(z("input",{class:"digit",type:"text",onInput:X[8]||(X[8]=de=>D(de,0)),"onUpdate:modelValue":X[9]||(X[9]=de=>l.value.D0=de),onBlur:X[10]||(X[10]=de=>Y("D0")),ref_for:!0,ref:de=>c.value.D0=de,onKeydown:X[11]||(X[11]=hi(li(de=>D({},0),["prevent","stop"]),["delete"]))},null,544),[[yi,l.value.D0]]),Kt(z("input",{class:"digit",type:"text",onInput:X[12]||(X[12]=de=>D(de,1)),"onUpdate:modelValue":X[13]||(X[13]=de=>l.value.D1=de),onBlur:X[14]||(X[14]=de=>Y("D1")),ref_for:!0,ref:de=>c.value.D1=de,onKeydown:X[15]||(X[15]=hi(li(de=>D({},1),["prevent","stop"]),["delete"]))},null,544),[[yi,l.value.D1]])]),X[46]||(X[46]=z("div",{class:"text-center text-secondary",style:{"font-size":"10px"}},"D",-1))])):Me("",!0),fe=="h"?(B(),G("div",lj,[z("div",cj,[Kt(z("input",{class:"digit",type:"text",onInput:X[16]||(X[16]=de=>H(de,0)),"onUpdate:modelValue":X[17]||(X[17]=de=>l.value.h0=de),onBlur:X[18]||(X[18]=de=>Y("h0")),onKeydown:X[19]||(X[19]=hi(li(de=>H({},0),["prevent","stop"]),["delete"])),ref_for:!0,ref:de=>c.value.h0=de},null,544),[[yi,l.value.h0]]),Kt(z("input",{class:"digit",type:"text",onInput:X[20]||(X[20]=de=>H(de,1)),"onUpdate:modelValue":X[21]||(X[21]=de=>l.value.h1=de),onBlur:X[22]||(X[22]=de=>Y("h1")),ref_for:!0,ref:de=>c.value.h1=de,onKeydown:X[23]||(X[23]=hi(li(de=>H({},1),["prevent","stop"]),["delete"]))},null,544),[[yi,l.value.h1]])]),X[47]||(X[47]=z("div",{class:"text-center text-secondary",style:{"font-size":"10px"}},"h",-1))])):Me("",!0),fe=="m"?(B(),G("div",uj,[z("div",dj,[Kt(z("input",{class:"digit",type:"text",onInput:X[24]||(X[24]=de=>Z(de,0)),"onUpdate:modelValue":X[25]||(X[25]=de=>l.value.m0=de),onBlur:X[26]||(X[26]=de=>Y("m0")),onKeydown:X[27]||(X[27]=hi(li(de=>Z({},0),["prevent","stop"]),["delete"])),ref_for:!0,ref:de=>c.value.m0=de},null,544),[[yi,l.value.m0]]),Kt(z("input",{class:"digit",type:"text",onInput:X[28]||(X[28]=de=>Z(de,1)),"onUpdate:modelValue":X[29]||(X[29]=de=>l.value.m1=de),onBlur:X[30]||(X[30]=de=>Y("m1")),onKeydown:X[31]||(X[31]=hi(li(de=>Z({},1),["prevent","stop"]),["delete"])),ref_for:!0,ref:de=>c.value.m1=de},null,544),[[yi,l.value.m1]])]),X[48]||(X[48]=z("div",{class:"text-center text-secondary",style:{"font-size":"10px"}},"m",-1))])):Me("",!0),fe=="s"?(B(),G("div",hj,[z("div",fj,[Kt(z("input",{class:"digit",type:"text",onInput:X[32]||(X[32]=de=>te(de,0)),"onUpdate:modelValue":X[33]||(X[33]=de=>l.value.s0=de),onBlur:X[34]||(X[34]=de=>Y("s0")),onKeydown:X[35]||(X[35]=hi(li(de=>te({},0),["prevent","stop"]),["delete"])),ref_for:!0,ref:de=>c.value.s0=de},null,544),[[yi,l.value.s0]]),Kt(z("input",{class:"digit",type:"text",onInput:X[36]||(X[36]=de=>te(de,1)),"onUpdate:modelValue":X[37]||(X[37]=de=>l.value.s1=de),onBlur:X[38]||(X[38]=de=>Y("s1")),onKeydown:X[39]||(X[39]=hi(li(de=>te({},1),["prevent","stop"]),["delete"])),ref_for:!0,ref:de=>c.value.s1=de},null,544),[[yi,l.value.s1]])]),X[49]||(X[49]=z("div",{class:"text-center text-secondary",style:{"font-size":"10px"}},"s",-1))])):Me("",!0),"YMD".includes(S.value[me+1])?(B(),G("div",pj,"/")):Me("",!0),"YMD".includes(S.value[me])&&"hms".includes(S.value[me+1])?(B(),G("div",gj)):"hms".includes(S.value[me+1])?(B(),G("div",mj,":")):Me("",!0)],64))),256))],512),z("div",vj,[z("div",null,[z("i",{class:"bi bi-x bb",onClick:X[40]||(X[40]=fe=>ge(void 0))})]),z("div",null,[z("i",{class:"bi bi-calendar3 bb",onClick:X[41]||(X[41]=fe=>ge(Ce()))})]),z("div",bj,[!_.value.closest&&!_.value.date?(B(),G("div",yj,Ne(ie.$t("none")),1)):Me("",!0),_.value.closest&&!_.value.date?(B(),G("div",xj,Ne(ie.$t("datepicker.invalid")),1)):Me("",!0),_.value.date?(B(),G("div",wj,[z("span",_j,Ne(ie.$t("datepicker.valid")),1)])):Me("",!0)]),X[50]||(X[50]=z("div",{class:"flex-grow-1"},null,-1)),i.extended?(B(),G("div",Sj,[z("span",{class:"bb",onClick:X[42]||(X[42]=fe=>n("cancel"))},Ne(ie.$t("datepicker.cancel")),1)])):Me("",!0),i.extended?(B(),G("div",Ej,[z("span",{class:"bb",onClick:X[43]||(X[43]=fe=>n("submit"))},Ne(ie.$t("datepicker.submit")),1)])):Me("",!0)]),_.value.closest&&!_.value.date?(B(),G("div",Cj,[z("span",{class:"text-warning",style:{cursor:"pointer","font-size":"14px"},onClick:pe},Ne(ie.$t("datepicker.correct"))+": "+Ne(T(_.value.closest))+" ? ",1)])):Me("",!0)]))}});const kj=Pt(Aj,[["__scopeId","data-v-eff3d25f"]]),Tj={class:"p-2"},Ij=ot({__name:"RowDateInput",props:{modelValue:{},width:{},height:{},noNl:{type:Boolean},teleport:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:i}){const n=e,o=i;t({focus:y});const l=Ae(null),c=Ae(null),d=Ae(void 0);function p(){d.value=n.modelValue}function m(_){o("update:modelValue",d.value),_()}function v(){p()}function y(){l.value&&l.value.show()}return Rt(p),ft(()=>n.modelValue,p),(_,S)=>(B(),ct(zn,{offset:-20,"no-shadow":!1,teleport:n.teleport,onEsc:v,onEnter:m,placement:"bottom",ref_key:"dropdownElem",ref:l},{button:dt(()=>[z("div",{ref_key:"previewElem",ref:c,style:{"font-size":"14px"}},[$e(QW,{date:n.modelValue,class:"row-preview",style:Ct([{cursor:"pointer"},{width:n.width?n.width+"px":"100%"}])},null,8,["date","style"])],512)]),popup:dt(({hide:T})=>[z("div",Tj,[$e(kj,{modelValue:d.value,"onUpdate:modelValue":S[0]||(S[0]=C=>d.value=C),extended:!0,"auto-focus":!0,onCancel:C=>{v(),T()},onSubmit:C=>m(T)},null,8,["modelValue","onCancel","onSubmit"])])]),_:1},8,["teleport"]))}});const Bm=Pt(Ij,[["__scopeId","data-v-eb3da9ad"]]),Oj={key:0,class:"ellipsis"},Pj={key:1,class:"text-secondary"},Lj=ot({__name:"NumberPreview",props:{number:{},width:{}},setup(e){const t=e;return(i,n)=>(B(),G("div",{style:Ct({width:t.width?t.width+"px":"100%"})},[t.number!=null?(B(),G("div",Oj,Ne(t.number),1)):(B(),G("div",Pj,Ne(i.$t("none")),1))],4))}});const Mj=Pt(Lj,[["__scopeId","data-v-96c05d71"]]),Nj=ot({__name:"NumberInput",props:{modelValue:{},width:{}},emits:["update:modelValue","focus","blur"],setup(e,{expose:t,emit:i}){const n=e,o=i;t({focus:T});const l=Ae(!1),c=Ae(void 0),d=Ae(null);function p(){c.value=isNaN(Number(n.modelValue))?void 0:n.modelValue}function m(){if(c.value===void 0||c.value===""){o("update:modelValue",void 0);return}o("update:modelValue",c.value)}function v(){l.value=!0,o("focus")}function y(){l.value=!1,m(),o("blur")}function _(){p(),S()}function S(){d.value.blur()}function T(){d.value&&d.value.focus()}return Rt(p),ft(()=>n.modelValue,p),(C,O)=>(B(),G("div",null,[Kt(z("input",{style:Ct([{"line-height":"inherit","background-color":"inherit"},{width:n.width?n.width+"px":"100%"}]),class:mt(l.value?"dropdown-input":""),type:"number","onUpdate:modelValue":O[0]||(O[0]=P=>c.value=P),onFocus:v,onBlur:y,onKeydown:[hi(_,["esc"]),hi(S,["enter"])],ref_key:"inputElem",ref:d},null,38),[[yi,c.value]])]))}});const Rj=Pt(Nj,[["__scopeId","data-v-e94b3116"]]),Wm=ot({__name:"RowNumberInput",props:{modelValue:{},width:{},height:{},inputOffset:{}},emits:["update:modelValue"],setup(e,{expose:t,emit:i}){const n=e,o=i;t({focus:_});const l=Ae(null),c=Ae(void 0),d=Ae(n.inputOffset??0),p=Ee(()=>n.height-8);function m(){c.value=n.modelValue}function v(S){(S===""||isNaN(S))&&(S=void 0),o("update:modelValue",S)}async function y(){c.value===void 0&&(c.value=""),await Ft(),l.value&&l.value.focus()}function _(){y()}return Rt(m),ft(n,m),(S,T)=>(B(),G("div",null,[c.value===void 0?(B(),ct(Mj,{key:0,number:n.modelValue,style:{"font-size":"inherit",cursor:"pointer"},onClick:y,width:n.width},null,8,["number","width"])):(B(),G("div",{key:1,style:Ct({lineHeight:p.value+"px",top:d.value+"px",position:"relative"})},[$e(Rj,{"model-value":n.modelValue,"onUpdate:modelValue":v,width:n.width,onKeydown:T[0]||(T[0]=hi(li(()=>{},["stop"]),["esc"])),onBlur:m,ref_key:"inputElem",ref:l,class:"reduced"},null,8,["model-value","width"])],4))]))}}),Dj={style:{padding:"2px 0px"}},$j={key:0},sE=ot({__name:"GridPropInput",props:{instance:{},property:{},minHeight:{},width:{}},emits:["update:height"],setup(e,{expose:t,emit:i}){const n=$t(),o=e,l=i;t({focus:m});const c=Ae(null),d=Ee(()=>o.property.type);function p(v){l("update:height",v+4)}function m(){c.value&&c.value.focus()}return(v,y)=>(B(),G("div",null,[$e(nE,{instance:o.instance,"property-id":o.property.id},{default:dt(({value:_,set:S})=>[z("div",Dj,[Ue(an)(d.value)?(B(),ct(zm,{key:0,property:o.property,"model-value":_,"can-create":!0,"can-delete":!0,"can-customize":!0,"onUpdate:modelValue":S,"onUpdate:height":p,"min-height":o.minHeight,teleport:!0,width:o.width,"auto-focus":!0,ref_key:"inputElem",ref:c},null,8,["property","model-value","onUpdate:modelValue","min-height","width"])):d.value==Ue(Xe).string?(B(),ct(eE,{key:1,"model-value":_,"onUpdate:modelValue":S,"onUpdate:height":p,"min-height":o.minHeight,width:o.width,ref_key:"inputElem",ref:c},null,8,["model-value","onUpdate:modelValue","min-height","width"])):d.value==Ue(Xe).url?(B(),ct(iE,{key:2,"model-value":_,"onUpdate:modelValue":S,"onUpdate:height":p,"min-height":o.minHeight,"url-mode":!0,width:o.width,ref_key:"inputElem",ref:c},null,8,["model-value","onUpdate:modelValue","min-height","width"])):d.value==Ue(Xe).checkbox?(B(),ct(Hm,{key:3,"model-value":_,"onUpdate:modelValue":S,"onUpdate:height":p,ref_key:"inputElem",ref:c},null,8,["model-value","onUpdate:modelValue"])):d.value==Ue(Xe).color?(B(),ct(Vm,{key:4,"model-value":_,"onUpdate:modelValue":S,"onUpdate:height":p,"min-height":o.minHeight-2,width:o.width,ref_key:"inputElem",ref:c,teleport:!0},null,8,["model-value","onUpdate:modelValue","min-height","width"])):d.value==Ue(Xe).date?(B(),ct(Bm,{key:5,"model-value":_,"onUpdate:modelValue":S,teleport:!0,"onUpdate:height":p,ref_key:"inputElem",ref:c},null,8,["model-value","onUpdate:modelValue"])):d.value==Ue(Xe).number?(B(),ct(Wm,{key:6,"model-value":_,"onUpdate:modelValue":S,"onUpdate:height":p,ref_key:"inputElem",ref:c,height:27},null,8,["model-value","onUpdate:modelValue"])):v.property.type==Ue(Xe)._folders?(B(),G("div",{key:7,style:Ct({height:o.minHeight+"px"}),class:"ps-1 overflow-hidden"},[o.instance.properties[v.property.id]!=null?(B(),G("span",$j,[$e(In,{name:Ue(n).folders[o.instance.properties[v.property.id]].name,color:-1},null,8,["name"])])):Me("",!0)],4)):(B(),ct(Kc,{key:8,"model-value":_,"onUpdate:modelValue":S,"onUpdate:height":p,"min-height":o.minHeight,editable:!1},null,8,["model-value","onUpdate:modelValue","min-height"]))])]),_:1},8,["instance","property-id"])]))}}),Fj={class:"main"},Vj={class:"table table-sm",style:{"margin-bottom":"0","table-layout":"fixed"}},zj={class:"main"},Hj={class:"",style:{"font-size":"14px"}},Bj={class:"text-nowrap overflow-hidden",style:{width:"100px !important"}},Wj={class:"text-wrap ms-1"},jj={key:0,class:"ps-1 border-left",style:{width:"100%"}},Yj={key:1,class:"border-left",colspan:"2",style:{}},Uj={key:0,class:"m-0 p-0"},Gj={key:1},Xj=["onClick"],Kj=["onClick"],qj=ot({__name:"PropertyInputTable",props:{image:{},properties:{},visibleProperties:{}},emits:["paint","hover","hoverEnd","toggleFilter"],setup(e,{emit:t}){const i=$t(),n=e,o=t;function l(c){n.visibleProperties&&(n.visibleProperties[c.id]?delete n.visibleProperties[c.id]:n.visibleProperties[c.id]=!0)}return(c,d)=>(B(),G("div",Fj,[z("table",Vj,[z("tbody",zj,[(B(!0),G(lt,null,Ot(c.properties,p=>(B(),G("tr",Hj,[z("td",Bj,[$e(cs,{type:p.type},null,8,["type"]),z("span",Wj,Ne(Ue(i).properties[p.id].name),1)]),p.id>0?(B(),G("td",jj,[p.id>0?(B(),ct(sE,{key:0,property:Ue(i).properties[p.id],instance:c.image,width:-1,"min-height":p.type==Ue(Xe).color?24:20},null,8,["property","instance","min-height"])):Me("",!0)])):(B(),G("td",Yj,[p.type!=Ue(Xe)._folders?(B(),G("p",Uj,Ne(c.image.properties[p.id]),1)):(B(),G("span",Gj,[$e(In,{name:Ue(i).folders[c.image.properties[p.id]].name,color:-1},null,8,["name"])]))])),p.computed?Me("",!0):(B(),G("td",{key:2,class:"text-center btn-icon border-left",style:{padding:"4px 3px 0px 5px",width:"24px"},onClick:m=>o("paint",{instanceId:n.image.id,propertyId:p.id}),onMouseenter:d[0]||(d[0]=m=>o("hover")),onMouseleave:d[1]||(d[1]=m=>o("hoverEnd"))},[$e(Ai,{message:"modals.image.fill_property_tooltip"},{default:dt(()=>d[2]||(d[2]=[z("i",{class:"bi bi-paint-bucket"},null,-1)])),_:1})],40,Xj)),!p.computed&&p.mode!=Ue(zi).id?(B(),G("td",{key:3,class:"text-center btn-icon border-left",style:{padding:"3px",width:"20px"},onClick:m=>l(p)},[$e(Ai,{message:"modals.image.toggle_property_tooltip"},{default:dt(()=>[z("i",{class:mt(["bi bi-eye",n.visibleProperties[p.id]?"text-primary":""])},null,2)]),_:2},1024)],8,Kj)):Me("",!0)]))),256))])])]))}});const Hf=Pt(qj,[["__scopeId","data-v-80796a1e"]]),Zj={class:"image-container position-relative"},Jj={key:0,class:"image-nav d-flex"},Qj={style:{"overflow-y":"auto"}},eY={key:0,class:"bi bi-caret-right-fill"},tY={key:1,class:"bi bi-caret-down-fill"},iY={key:0,class:"bi bi-caret-right-fill"},nY={key:1,class:"bi bi-caret-down-fill"},sY={key:0,class:"bi bi-caret-right-fill"},rY={key:1,class:"bi bi-caret-down-fill"},oY=ot({__name:"ImagePropertyCol",props:{image:{},width:{},imageHeight:{},visibleProperties:{},groupManager:{}},emits:["paint","hover","hoverEnd"],setup(e,{emit:t}){const i=$t(),n=e,o=t,l=Ae(0);new Image;const c=vn("nextImage"),d=vn("prevImage"),p=vn("showHistory"),m=ti({});Ee(()=>{const T=[];return l.value==0&&T.push(...i.propertyList.filter(C=>C.mode==zi.sha1&&!C.computed)),l.value==1&&T.push(...i.propertyList.filter(C=>C.mode==zi.id&&!C.computed)),l.value==2&&T.push(...i.propertyList.filter(C=>C.computed)),T.filter(C=>C.id!=Hi)});const v=Ee(()=>i.propertyList.filter(T=>T.mode==zi.sha1&&!T.computed&&T.id!=Hi)),y=Ee(()=>i.propertyList.filter(T=>T.mode==zi.id&&!T.computed&&T.id!=Hi)),_=Ee(()=>i.propertyList.filter(T=>T.id<0&&T.id!=Hi));function S(T){if(m[T]){delete m[T];return}m[T]=!0}return(T,C)=>(B(),G("div",{class:"main2 bg-white h-100 d-flex flex-column",style:Ct({width:n.width+"px"})},[z("div",Zj,[$e(Fm,{image:n.image.image},{default:dt(()=>[$e(Xc,{image:n.image.image,height:n.imageHeight,width:n.width-1},null,8,["image","height","width"]),!Ue(p)&&n.image.nextImages?(B(),G("div",Jj,[z("div",{class:"arrow",onClick:C[0]||(C[0]=(...O)=>Ue(d)&&Ue(d)(...O))},C[14]||(C[14]=[z("i",{class:"bi bi-arrow-left"},null,-1)])),C[16]||(C[16]=z("div",{class:"flex-grow-1"},null,-1)),z("div",{class:"arrow",onClick:C[1]||(C[1]=(...O)=>Ue(c)&&Ue(c)(...O))},C[15]||(C[15]=[z("i",{class:"bi bi-arrow-right"},null,-1)]))])):Me("",!0)]),_:1},8,["image"])]),C[17]||(C[17]=z("div",{class:"custom-hr"},null,-1)),z("div",Qj,[z("div",{class:"option",onClick:C[2]||(C[2]=O=>S(0))},[z("span",null,[m[0]?(B(),G("i",eY)):(B(),G("i",tY))]),Gt(" "+Ne(T.$t("common.properties.image")),1)]),m[0]?Me("",!0):(B(),ct(Hf,{key:0,image:n.image.image,properties:v.value,"visible-properties":T.visibleProperties,onPaint:C[3]||(C[3]=O=>o("paint",O)),onHover:C[4]||(C[4]=O=>o("hover")),onHoverEnd:C[5]||(C[5]=O=>o("hoverEnd"))},null,8,["image","properties","visible-properties"])),z("div",{class:"option",onClick:C[6]||(C[6]=O=>S(1))},[z("span",null,[m[1]?(B(),G("i",iY)):(B(),G("i",nY))]),Gt(" "+Ne(T.$t("common.properties.instance")),1)]),m[1]?Me("",!0):(B(),ct(Hf,{key:1,image:n.image.image,properties:y.value,"visible-properties":T.visibleProperties,onPaint:C[7]||(C[7]=O=>o("paint",O)),onHover:C[8]||(C[8]=O=>o("hover")),onHoverEnd:C[9]||(C[9]=O=>o("hoverEnd"))},null,8,["image","properties","visible-properties"])),z("div",{class:"option",onClick:C[10]||(C[10]=O=>S(2))},[z("span",null,[m[2]?(B(),G("i",sY)):(B(),G("i",rY))]),Gt(" "+Ne(T.$t("common.properties.panoptic")),1)]),m[2]?Me("",!0):(B(),ct(Hf,{key:2,image:n.image.image,properties:_.value,"visible-properties":T.visibleProperties,onPaint:C[11]||(C[11]=O=>o("paint",O)),onHover:C[12]||(C[12]=O=>o("hover")),onHoverEnd:C[13]||(C[13]=O=>o("hoverEnd"))},null,8,["image","properties","visible-properties"]))])],4))}});const aY=Pt(oY,[["__scopeId","data-v-9be10555"]]),lY={class:"p-1"},cY={class:"table table-sm"},uY={style:{"border-top":"1px solid var(--border-color)"}},dY={style:{"min-height":"26px"}},hY={class:"w-100"},fY={key:0},pY=["onClick"],gY={key:1},mY=["onClick"],vY={class:"text-warning"},bY=["onClick"],yY=ot({__name:"StampForm",props:{values:Object,erase:Set},emits:["blur"],setup(e,{emit:t}){const i=$t(),n=e,o=Ee(()=>i.propertyList.filter(c=>c.id>=0)),l=Ee(()=>{const c={};return o.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)=>(B(),G(lt,null,[z("div",lY,[z("b",null,Ne(c.$t("modals.tagging.title")),1)]),z("table",cY,[z("tbody",uY,[(B(!0),G(lt,null,Ot(o.value,p=>(B(),G("tr",dY,[p.id>=0?(B(),G(lt,{key:0},[z("td",{style:{"line-height":"20px"},class:mt([l.value[p.id],"text-nowrap"])},[$e(cs,{type:p.type},null,8,["type"]),Gt(" "+Ne(p.name),1)],2),n.erase.has(p.id)?(B(),G(lt,{key:1},[z("td",vY,Ne(c.$t("modals.tagging.erase")),1),z("td",null,[$e(Ai,{message:"modals.tagging.cancel_tooltip"},{default:dt(()=>[z("i",{class:"bi bi-arrow-counterclockwise base-btn",onClick:m=>e.erase.delete(p.id)},null,8,bY)]),_:2},1024)])],64)):(B(),G(lt,{key:0},[z("td",hY,[Ue(an)(p.type)?(B(),ct(zm,{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==Ue(Xe).string?(B(),ct(eE,{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==Ue(Xe).url?(B(),ct(iE,{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==Ue(Xe).checkbox?(B(),ct(Hm,{key:3,modelValue:n.values[p.id],"onUpdate:modelValue":m=>n.values[p.id]=m},null,8,["modelValue","onUpdate:modelValue"])):p.type==Ue(Xe).color?(B(),ct(Vm,{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==Ue(Xe).date?(B(),ct(Bm,{key:5,modelValue:n.values[p.id],"onUpdate:modelValue":m=>n.values[p.id]=m},null,8,["modelValue","onUpdate:modelValue"])):p.type==Ue(Xe).number?(B(),ct(Wm,{key:6,modelValue:n.values[p.id],"onUpdate:modelValue":m=>n.values[p.id]=m,height:30},null,8,["modelValue","onUpdate:modelValue"])):Me("",!0)]),n.values[p.id]==null?(B(),G("td",fY,[$e(Ai,{message:"modals.tagging.erase_tooltip"},{default:dt(()=>[z("i",{class:"bi bi-trash base-btn",onClick:m=>e.erase.add(p.id)},null,8,pY)]),_:2},1024)])):(B(),G("td",gY,[$e(Ai,{message:"modals.tagging.erase_tooltip"},{default:dt(()=>[z("i",{class:"bi bi-arrow-counterclockwise base-btn",onClick:m=>delete n.values[p.id]},null,8,mY)]),_:2},1024)]))],64))],64)):Me("",!0)]))),256))])])],64))}}),xY={key:0},wY={key:1},_Y={class:"m-2",style:{width:"300px"}},SY={class:"d-flex pe-2 mb-2"},rE=ot({__name:"StampDropdown",props:{images:{},noBorder:{type:Boolean},showNumber:{type:Boolean}},setup(e){const t=$t(),i=ji(),n=e,o=ti({}),l=ti(new Set),c=Ae(null);function d(){var v;p(),(v=c.value)==null||v.hide()}function p(){Object.keys(o).forEach(v=>delete o[v]),l.clear(),Ft(()=>{c.value&&c.value.focus()})}async function m(){l.forEach(_=>o[_]=void 0);const v=[],y=[];for(let _ of Object.keys(o).map(Number))for(let S of n.images){let T=o[_];if(t.properties[_].type==Xe.multi_tags&&S.properties[_]&&T&&(T=Array.from(new Set([...S.properties[_],...T]))),t.properties[_].mode==zi.id){const C={propertyId:_,instanceId:S.id,value:T};v.push(C)}else{const C={propertyId:_,sha1:S.sha1,value:T};y.push(C)}}await t.setPropertyValues(v,y),i.getTabManager().collection.groupManager.clearSelection(),d()}return(v,y)=>(B(),ct(zn,{ref_key:"dropdownElem",ref:c,teleport:!0},{button:dt(()=>[z("div",{class:mt(n.noBorder?"":"button"),style:{"font-size":"10px",color:"rgb(33, 37, 41)","padding-bottom":"0.5px","padding-top":"0.5px"}},[n.showNumber?(B(),G("span",xY,Ne(v.$t("main.menu.tag_selection")+" "+n.images.length+" "+v.$t("main.menu.selected_images")),1)):(B(),G("span",wY,Ne(v.$t("modals.tagging.button")),1))],2)]),popup:dt(()=>[z("div",{onKeydown:y[0]||(y[0]=hi(li(()=>{},["prevent","stop"]),["escape"]))},[z("div",_Y,[$e(yY,{values:o,erase:l,onBlur:c.value.focus},null,8,["values","erase","onBlur"])]),z("div",SY,[y[1]||(y[1]=z("div",{class:"flex-grow-1"},null,-1)),z("button",{class:"me-2",onClick:d},Ne(v.$t("modals.tagging.cancel")),1),z("button",{class:"me-2",onClick:p},Ne(v.$t("modals.tagging.clear")),1),z("button",{class:"me",onClick:m},Ne(v.$t("modals.tagging.apply")),1)])],32)]),_:1},512))}}),EY={class:"d-flex border rounded p-0 m-0"},CY={class:"selection-counter"},AY=ot({__name:"SelectionStamp",props:{selectedImagesIds:Array},emits:["remove:selected"],setup(e,{emit:t}){const i=$t(),n=e,o=Ee(()=>n.selectedImagesIds.map(c=>i.instances[c])),l=t;return(c,d)=>(B(),G("div",EY,[$e(Ai,{message:"main.menu.remove_selection_tooltip"},{default:dt(()=>[z("div",{class:"btn-cls",onClick:d[0]||(d[0]=p=>l("remove:selected"))},d[1]||(d[1]=[z("i",{class:"bi bi-x"},null,-1)]))]),_:1}),z("div",CY,[$e(rE,{images:o.value,"no-border":!0,"show-number":!0},null,8,["images"])])]))}});const kY=Pt(AY,[["__scopeId","data-v-a2feb8e5"]]),TY=ot({__name:"SelectCircle",props:{modelValue:Boolean,lightMode:Boolean,small:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,n=Ae(!1),o=t,l=Ee(()=>{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?o("update:modelValue",!1):o("update:modelValue",!0)}return(d,p)=>(B(),G("div",{class:mt(["btn-icon",l.value]),onMouseenter:p[0]||(p[0]=m=>n.value=!0),onMouseleave:p[1]||(p[1]=m=>n.value=!1)},[i.modelValue?(B(),G("i",{key:1,class:"bi bi-check-circle-fill",onClick:li(c,["stop"])})):(B(),G("i",{key:0,class:"bi bi-check-circle-fill",onClick:li(c,["stop"])}))],34))}});const qc=Pt(TY,[["__scopeId","data-v-c25b8d50"]]),IY=ot({__name:"RowTextInput",props:{modelValue:{},width:{},height:{},teleport:{type:Boolean},offset:{default:-24}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,n=t,o=Ae(null),l=Ae(0),c=Ae(void 0);function d(){c.value=i.modelValue}function p(){var y=document.createElement("canvas"),_=y.getContext("2d");_.font="12px Arial";var S=_.measureText(i.modelValue).width;l.value=200,S>500&&(l.value=200),S>800&&(l.value=300),S>1e3&&(l.value=400);let T=o.value;T&&T.offsetWidth>l.value&&(l.value=T.offsetWidth),d()}function m(){let y=c.value;y==""&&(y=void 0),console.log("emit",y),n("update:modelValue",y)}function v(){d()}return Rt(d),ft(()=>i.modelValue,d),(y,_)=>(B(),ct(zn,{offset:i.offset,"no-shadow":!0,teleport:i.teleport,onShow:p,onHide:m,placement:"bottom-start"},{button:dt(()=>[z("div",{ref_key:"previewElem",ref:o,style:Ct({width:i.width+"px"})},[$e(QS,{text:i.modelValue,style:{cursor:"pointer","font-size":"14px"}},null,8,["text"])],4)]),popup:dt(({hide:S})=>[z("div",{class:"bg-white",style:Ct([{"font-size":"14px",position:"relative",top:"0.5px",left:"-2px"},{width:l.value+"px"}])},[$e(Kc,{modelValue:c.value,"onUpdate:modelValue":_[0]||(_[0]=T=>c.value=T),"auto-focus":!0,"min-height":26,onCancel:T=>{v(),S()},onSubmit:T=>S(),onBlur:S},null,8,["modelValue","onCancel","onSubmit","onBlur"])],4)]),_:1},8,["offset","teleport"]))}}),OY=ot({__name:"RowUrlInput",props:{modelValue:{},width:{},height:{},teleport:{type:Boolean},offset:{default:-24}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,n=t,o=Ae(null),l=Ae(0),c=Ae(void 0);function d(){c.value=i.modelValue}function p(){var _=document.createElement("canvas"),S=_.getContext("2d");S.font="12px Arial";var T=S.measureText(i.modelValue).width;l.value=200,T>500&&(l.value=200),T>800&&(l.value=300),T>1e3&&(l.value=400);let C=o.value;C&&C.offsetWidth>l.value&&(l.value=C.offsetWidth)}function m(){n("update:modelValue",c.value)}function v(){d()}function y(_){Mi.ctrl&&(_.preventDefault(),_.stopPropagation())}return Rt(d),ft(()=>i.modelValue,d),(_,S)=>(B(),ct(zn,{offset:i.offset,"no-shadow":!0,teleport:i.teleport,onShow:p,onHide:m,placement:"bottom-start"},{button:dt(()=>[z("div",{ref_key:"previewElem",ref:o,style:Ct([{},{width:i.width+"px"}])},[$e(tE,{url:i.modelValue,class:"row-preview",style:{cursor:"pointer","font-size":"14px"},onClick:y},null,8,["url"])],4)]),popup:dt(({hide:T})=>[z("div",{class:"bg-white",style:Ct([{"font-size":"14px",position:"relative",top:"0.5px",left:"0px"},{width:l.value+"px"}])},[$e(Kc,{modelValue:c.value,"onUpdate:modelValue":S[0]||(S[0]=C=>c.value=C),"auto-focus":!0,"min-height":26,onCancel:C=>{v(),T()},onSubmit:C=>T(),onBlur:T,"url-mode":!0},null,8,["modelValue","onCancel","onSubmit","onBlur"])],4)]),_:1},8,["offset","teleport"]))}});const PY=Pt(OY,[["__scopeId","data-v-e483169d"]]),LY={class:"d-flex text-nowrap overflow-hidden",style:{height:"26px","line-height":"26px","font-size":"14px"}},MY={key:8,class:"d-flex flex-row overflow-hidden text-nowrap"},NY={key:0},RY={key:1},DY=ot({__name:"TreePropertyInput",props:{instance:{},property:{},width:{}},emits:["resize","update:selected"],setup(e,{emit:t}){const i=$t(),n=e,o=Ee(()=>(n.width??100)-22);return(l,c)=>(B(),ct(nE,{instance:n.instance,"property-id":n.property.id},{default:dt(({value:d,set:p})=>[z("div",LY,[n.property.type!=Ue(Xe).checkbox&&l.property.id>0?(B(),ct(cs,{key:0,type:l.property.type,style:{"margin-right":"2px"}},null,8,["type"])):Me("",!0),Ue(an)(l.property.type)?(B(),ct(zm,{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:o.value},null,8,["model-value","onUpdate:modelValue","property","width"])):n.property.type==Ue(Xe).color?(B(),ct(Vm,{key:2,"model-value":d,"onUpdate:modelValue":p,width:o.value,rounded:!0,"min-height":20,teleport:!0,offset:4},null,8,["model-value","onUpdate:modelValue","width"])):n.property.type==Ue(Xe).number?(B(),ct(Wm,{key:3,"model-value":d,"onUpdate:modelValue":p,width:o.value,height:26,"input-offset":3},null,8,["model-value","onUpdate:modelValue","width"])):n.property.type==Ue(Xe).string?(B(),ct(IY,{key:4,"model-value":d,"onUpdate:modelValue":p,width:o.value,teleport:!0,style:{height:"25px"}},null,8,["model-value","onUpdate:modelValue","width"])):n.property.type==Ue(Xe).url?(B(),ct(PY,{key:5,"model-value":d,"onUpdate:modelValue":p,width:o.value,teleport:!0},null,8,["model-value","onUpdate:modelValue","width"])):n.property.type==Ue(Xe).checkbox?(B(),ct(Hm,{key:6,"model-value":d,"onUpdate:modelValue":p,label:n.property.name,width:o.value},null,8,["model-value","onUpdate:modelValue","label","width"])):n.property.type==Ue(Xe).date?(B(),ct(Bm,{key:7,"model-value":d,teleport:!0,"onUpdate:modelValue":p,width:o.value},null,8,["model-value","onUpdate:modelValue","width"])):(B(),G("div",MY,[$e(cs,{type:l.property.type,style:{"margin-right":"3px"}},null,8,["type"]),l.property.type==Ue(Xe)._folders?(B(),G("span",NY,[$e(In,{name:Ue(i).folders[Ue(i).instances[n.instance.id].properties[n.property.id]].name,color:-1},null,8,["name"])])):(B(),G("span",RY,Ne(Ue(i).instances[n.instance.id].properties[n.property.id]),1))]))])]),_:1},8,["instance","property-id"]))}}),$Y={key:0,class:"simi-ratio"},FY={class:"image-count"},VY={key:2,class:"prop-container"},zY={key:0,class:"custom-hr ms-2 me-2"},HY={key:3,class:"w-100 h-100",style:{position:"absolute",top:"0",left:"0","background-color":"rgba(0, 0, 255, 0.127)"}},BY=ot({__name:"Image",props:{image:Wn,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=en(),n=$t(),o=e,l=t,c=Ee(()=>Object.assign({},n.instances[o.image.image.id])),d=Ee(()=>c.value),p=Ae(null),m=Ae(!1),v=Ee(()=>{let O=d.value.width/d.value.height,P=o.size,I=P*O;return O>2&&(I=o.size*2,P=I/O),{width:I,height:P}}),y=Ee(()=>`width: ${Math.max(v.value.width,o.size)-2}px; height: ${o.size}px;`);Ee(()=>`width: ${v.value.width-2}px; height: ${v.value.height}px;`);const _=Ee(()=>Math.max(Number(o.size),v.value.width)),S=Ee(()=>`width: ${Math.max(Number(o.size),v.value.width)}px;`),T=vn("hideImg"),C=Ee(()=>{let O=o.image.group;if(O.scores)return O.scores.valueIndex[o.image.image.id]});return(O,P)=>(B(),G("div",{class:mt(["full-container",o.noBorder?"":"img-border"]),style:Ct(S.value),ref_key:"containerElem",ref:p},[Ue(T)?Me("",!0):(B(),ct(Fm,{key:0,image:o.image.image},{default:dt(()=>[z("div",{style:Ct(y.value),class:"img-container",onClick:P[1]||(P[1]=I=>Ue(i).showModal(Ue(Ri).IMAGE,o.image)),onMouseenter:P[2]||(P[2]=I=>m.value=!0),onMouseleave:P[3]||(P[3]=I=>m.value=!1)},[C.value!=null?(B(),G("div",$Y,Ne(C.value),1)):Me("",!0),$e(Xc,{image:o.image.image,width:Math.max(v.value.width,o.size)-2,height:o.size,style:{position:"absolute",top:"0"}},null,8,["image","width","height"]),m.value||o.selected?(B(),G("div",{key:1,class:"w-100 box-shadow",style:Ct(y.value)},null,4)):Me("",!0),m.value||o.selected?(B(),ct(qc,{key:2,"model-value":o.selected,"onUpdate:modelValue":P[0]||(P[0]=I=>l("update:selected",I)),class:"select","light-mode":!0},null,8,["model-value"])):Me("",!0)],36)]),_:1},8,["image"])),o.image.sha1Group&&o.image.sha1Group.images.length>1?(B(),ct(Ai,{key:1,message:"main.view.instances_tooltip",click:!1},{default:dt(()=>[z("div",FY,Ne(o.image.sha1Group.images.length),1)]),_:1})):Me("",!0),o.properties.length&&!o.hideProperties?(B(),G("div",VY,[(B(!0),G(lt,null,Ot(o.properties,(I,N)=>(B(),G("div",null,[N>0?(B(),G("div",zY)):Me("",!0),$e(DY,{property:I,instance:c.value,width:_.value},null,8,["property","instance","width"])]))),256))])):Me("",!0),o.selectedPreview?(B(),G("div",HY)):Me("",!0)],6))}});const oE=Pt(BY,[["__scopeId","data-v-ee6d0c02"]]),WY={class:"d-flex flex-row"},jY=["onClick","onMouseenter"],YY=ot({__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,o=Ee(()=>{const c={};return i.item.data.forEach(d=>c[d.image.id]=i.selectedImages.value[d.image.id]),c}),l=Ee(()=>{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)=>(B(),G("div",WY,[(B(!0),G(lt,null,Ot(i.parentIds,p=>(B(),G("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"))},[z("div",{class:mt(["image-line",i.hoverBorder==p?"active":""])},null,2)],40,jY))),256)),(B(!0),G(lt,null,Ot(i.item.data,(p,m)=>(B(),ct(oE,{image:p,index:i.inputIndex+m,groupId:c.item.groupId,size:i.imageSize,properties:i.properties,selected:o.value[p.image.id],selectedPreview:l.value[p.image.id],"onUpdate:selected":v=>n("update:selected-image",{id:p.image.id,value:v}),class:"me-2 mb-2"},null,8,["image","index","groupId","size","properties","selected","selectedPreview","onUpdate:selected"]))),256))]))}});const UY=Pt(YY,[["__scopeId","data-v-c3bfae1e"]]),GY={class:"d-flex flex-row"},XY=["onClick","onMouseenter"],KY=ot({__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,o=Ee(()=>{const c={};return i.item.data.forEach(d=>c[d.image.id]=i.selectedImages.value[d.image.id]),c}),l=Ee(()=>{const c={};return i.item.data.forEach(d=>{i.preview&&(c[d.image.id]=i.preview[d.image.id])}),c});return(c,d)=>(B(),G("div",GY,[(B(!0),G(lt,null,Ot(i.parentIds,p=>(B(),G("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"))},[z("div",{class:mt(["image-line",i.hoverBorder==p?"active":""])},null,2)],40,XY))),256)),(B(!0),G(lt,null,Ot(i.item.data,(p,m)=>(B(),ct(oE,{image:p,index:i.inputIndex+m,groupId:c.item.groupId,size:i.imageSize,properties:i.properties,selected:o.value[p.image.id],selectedPreview:l.value[p.image.id],"onUpdate:selected":v=>n("update:selected-image",{id:p.image.id,value:v}),class:"me-2 mb-2"},null,8,["image","index","groupId","size","properties","selected","selectedPreview","onUpdate:selected"]))),256))]))}});const qY=Pt(KY,[["__scopeId","data-v-81c83d38"]]),ZY={key:0,class:"d-flex text-nowrap p-0 m-0"},JY={class:"me-2"},QY={key:1},e3={key:2},t3={key:3},i3={key:4},n3={key:0},s3={key:1,class:"text-secondary"},r3={key:5},o3=ot({__name:"PropertyValue",props:{value:Object},setup(e){const t=$t(),i=e,n=Ee(()=>t.properties[i.value.propertyId]),o=Ee(()=>n.value.type),l=Ee(()=>o.value==Xe.tag||o.value==Xe.multi_tags),c=Ee(()=>{if(i.value.value==null)return"white";let v=Number(i.value.value);return isNaN(v)||v>12?"gray":no[v].color}),d=Ee(()=>{if(n.value.type!=Xe.date)return;let v=i.value.unit;const y=i.value.value;fi.Year,fi.Month,fi.Day,fi.Hour,fi.Minute;let _="";return _+=y.getUTCFullYear(),v==fi.Year||(_+="/",_+=Nr(y.getUTCMonth()+1),v==fi.Month)||(_+="/",_+=Nr(y.getUTCDate()),v==fi.Week)||v==fi.Day?_:(_+=" ",_+=Nr(y.getUTCHours()),v==fi.Hour?_+"h":(_+=":",_+=Nr(y.getUTCMinutes()),_))}),p=Ee(()=>{if(n.value.type!=Xe.date||!i.value.valueEnd)return;const v=i.value.valueEnd;fi.Year,fi.Month,fi.Day,fi.Hour,fi.Minute;let y="";return y+=v.getUTCFullYear(),i.value.unit==fi.Year||(y+="/",y+=Nr(v.getUTCMonth()+1),i.value.unit==fi.Month)||(y+="/",y+=Nr(v.getUTCDate()),i.value.unit==fi.Week)||i.value.unit==fi.Day?y:(y+=" ",y+=Nr(v.getUTCHours()),i.value.unit==fi.Hour?y+"h":(y+=":",y+=Nr(v.getUTCMinutes()),y))});function m(v){return v==null?[{value:"_indéfini",color:-1}]:[t.properties[i.value.propertyId].tags[v]]}return(v,y)=>n.value?(B(),G("div",ZY,[z("div",JY,Ne(n.value.name)+": ",1),n.value.type==Ue(Xe).color?(B(),G("div",{key:0,style:Ct({backgroundColor:c.value}),class:"color-holder"},null,4)):n.value.type==Ue(Xe)._folders?(B(),G("div",QY,[$e(In,{name:Ue(t).folders[i.value.value].name,color:-1},null,8,["name"])])):n.value.type==Ue(Xe).date&&i.value.value?(B(),G("span",e3,[Gt(Ne(d.value)+" ",1),y[0]||(y[0]=z("span",{class:"ms-1 me-1"},"to",-1)),Gt(" "+Ne(p.value),1)])):n.value.type==Ue(Xe).date?(B(),G("span",t3," undefined ")):l.value?(B(),G("span",r3,[(B(!0),G(lt,null,Ot(m(i.value.value),_=>(B(),G("span",null,[$e(In,{id:_.id},null,8,["id"])]))),256))])):(B(),G("span",i3,[i.value.value!=null?(B(),G("span",n3,Ne(i.value.value),1)):(B(),G("span",s3,"indéfini"))]))])):Me("",!0)}});const jm=Pt(o3,[["__scopeId","data-v-fa215ee6"]]),a3={class:"m-0 p-0"},l3=ot({__name:"ClusterBadge",props:{value:{required:!0,type:Number}},setup(e){const t=e,i=Ee(()=>t.value<21?9:t.value<56?10:11);return(n,o)=>(B(),G("div",{class:"badge tag-badge",style:Ct("background: "+Ue(no)[i.value].color)},[z("span",a3,Ne(t.value),1)],4))}});const c3=Pt(l3,[["__scopeId","data-v-c23f2e73"]]),u3={class:"mb-1 ps-2 pe-2"},d3=["onClick"],h3=ot({__name:"PropertySelection",props:{ignoreIds:Array},emits:["select"],setup(e,{emit:t}){const i=$t(),n=e,o=t,l=Ae(null),c=Ae(""),d=Ee(()=>{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 Rt(()=>l.value.focus()),(p,m)=>(B(),G("div",null,[z("div",u3,[Kt(z("input",{class:"w-100 bg-light",type:"text",ref_key:"searchElem",ref:l,"onUpdate:modelValue":m[0]||(m[0]=v=>c.value=v)},null,512),[[yi,c.value]])]),(B(!0),G(lt,null,Ot(d.value,v=>(B(),G("div",{class:"p-1 base-hover text-black",style:{cursor:"pointer"},onClick:y=>o("select",v.id)},[$e(cs,{type:v.type,class:"me-2"},null,8,["type"]),z("a",null,Ne(v.name),1)],8,d3))),256))]))}}),f3={class:"m-0 bb",style:{}},p3={class:"p-2"},g3=ot({__name:"PropertyDropdown",props:{modelValue:Object},emits:["update:modelValue"],setup(e,{emit:t}){const i=$t(),n=e,o=t,l=Ae(null);function c(d){l.value.hide(),o("update:modelValue",i.properties[d])}return(d,p)=>(B(),ct(zn,{ref_key:"dropdownElem",ref:l,"auto-focus":!1},{button:dt(()=>[z("div",f3,[$e(cs,{type:n.modelValue.type},null,8,["type"]),Gt(" "+Ne(n.modelValue.name),1)])]),popup:dt(()=>[z("div",p3,[$e(h3,{modelValue:n.modelValue,"onUpdate:modelValue":p[0]||(p[0]=m=>n.modelValue=m),onSelect:c,"ignore-ids":[Ue(Od).folders]},null,8,["modelValue","ignore-ids"])])]),_:1},512))}}),m3={class:"d-flex"},v3={key:0,class:"me-1"},b3={key:1},y3={key:2},x3={key:3},w3={key:4},_3={key:5},S3={key:0,class:"disabled rounded ps-1 pe-1"},E3={key:6},C3=["value"],A3=ot({__name:"ParamInput",props:{input:{}},emits:["update:modelValue"],setup(e,{expose:t,emit:i}){const n=$t(),o=e;t({focus:p});const l=Ae(null),c=Ae(o.input.defaultValue),d=Ae(n.propertyList[0]);function p(){l.value&&l.value.focus()}return ft(()=>o.input.defaultValue,()=>c.value=o.input.defaultValue),ft(c,()=>{o.input.type=="property"&&c.value in n.properties&&(d.value=n.properties[c.value]),c.value!=o.input.defaultValue&&(c.value,c.value==""||c.value==!1,o.input.defaultValue=c.value)}),Rt(()=>{var m;o.input.type=="property"&&o.input.defaultValue==null&&(c.value=(m=n.propertyList[0])==null?void 0:m.id),o.input.type=="property"&&c.value in n.properties&&(d.value=n.properties[c.value]),o.input.type=="enum"&&o.input.possibleValues.indexOf(o.input.defaultValue)<0&&(c.value=o.input.possibleValues[0]),o.input.type=="enum"&&o.input.defaultValue==null&&(c.value=o.input.possibleValues[0])}),(m,v)=>(B(),ct(Ai,{message:o.input.description},{default:dt(()=>[z("div",m3,[o.input.name?(B(),G("div",v3,Ne(o.input.name),1)):Me("",!0),o.input.type=="str"?(B(),G("div",b3,[Kt(z("input",{type:"text","onUpdate:modelValue":v[0]||(v[0]=y=>c.value=y),ref_key:"elem",ref:l},null,512),[[yi,c.value]])])):Me("",!0),o.input.type=="int"?(B(),G("div",y3,[Kt(z("input",{type:"number",step:"1","onUpdate:modelValue":v[1]||(v[1]=y=>c.value=y),ref_key:"elem",ref:l},null,512),[[yi,c.value]])])):Me("",!0),o.input.type=="float"?(B(),G("div",x3,[Kt(z("input",{type:"number","onUpdate:modelValue":v[2]||(v[2]=y=>c.value=y),ref_key:"elem",ref:l},null,512),[[yi,c.value]])])):Me("",!0),o.input.type=="bool"?(B(),G("div",w3,[Kt(z("input",{type:"checkbox","onUpdate:modelValue":v[3]||(v[3]=y=>c.value=y),ref_key:"elem",ref:l},null,512),[[is,c.value]])])):Me("",!0),o.input.type=="property"?(B(),G("div",_3,[Ue(n).propertyList.length?(B(),ct(g3,{key:1,modelValue:d.value,"onUpdate:modelValue":[v[4]||(v[4]=y=>d.value=y),v[5]||(v[5]=y=>c.value=d.value.id)]},null,8,["modelValue"])):(B(),G("div",S3,"Create Property First"))])):Me("",!0),o.input.type=="enum"?(B(),G("div",E3,[Kt(z("select",{"onUpdate:modelValue":v[6]||(v[6]=y=>c.value=y)},[(B(!0),G(lt,null,Ot(o.input.possibleValues,y=>(B(),G("option",{value:y},Ne(y),9,C3))),256))],512),[[ol,c.value]])])):Me("",!0)])]),_:1},8,["message"]))}});const Ym=Pt(A3,[["__scopeId","data-v-e9e2884d"]]),zh=Fc("actionStore",()=>{const e=ji(),t=Ae({}),i=ti({similar:void 0,group:void 0,execute:void 0,import:void 0,export:void 0}),n=Ae(0),o=Ee(()=>i.similar!=null);async function l(){if(!e.status.loaded||!Object.keys(e.actions).length)return;const S=await Gu("param_defaults");let T=e.actions;if(S)for(let C in T){const O=T[C];for(let P of O.params)S[P.id]!==void 0&&(P.defaultValue=S[P.id])}t.value=T;for(let C in i)if(i[C]&&t.value[i[C]]==null&&i[C]==null,i[C]==null){const O=jn(t.value).find(P=>P.hooks.includes(C));O&&(i[C]=O.id)}await y(),await m(),n.value+=1}async function c(S){return await e.call({function:i.similar,context:S})}function d(){t.value={},Object.keys(i).forEach(S=>i[S]=void 0)}async function p(){const S={};for(let T of jn(t.value))for(let C of T.params)S[T.id+"."+C.name]=C.defaultValue;await jp("param_defaults",S)}async function m(){const S=await Gu("param_defaults");if(S)for(let T of jn(t.value))for(let C of T.params){const O=T.id+"."+C.name;O in S&&(C.defaultValue=S[O])}}async function v(S){Object.assign(i,S),await jp("default_actions",i)}async function y(){const S=await Gu("default_actions");Object.assign(i,S)}function _(S){const T={uiInputs:{}},C=t.value[S];for(let O of C.params)T.uiInputs[O.name]=O.defaultValue;return T}return l(),ft(()=>e.status.loaded,S=>{S||d()}),ft(()=>e.actions,l),{index:t,defaultActions:i,updateDefaultParams:p,updateDefaultActions:v,hasSimilaryFunction:o,getSimilarImages:c,getContext:_,clear:d,update:n,load:l}}),k3={class:"d-flex"},T3={class:"bbb"},I3={class:"p-2"},O3=["onClick"],P3={key:0,class:"ms-1"},L3=["onSubmit"],M3={class:"mb-1"},N3={class:"d-flex flex-center mt-3",style:{height:"20px"}},R3=["onClick"],D3=["onClick"],aE=ot({__name:"ActionSelect",props:{action:{},hideGear:{type:Boolean}},emits:["changed"],setup(e,{emit:t}){const i=zh(),n=e,o=t,l=Ee(()=>i.defaultActions[n.action]),c=Ae([]),d=Ae(null),p=Ee(()=>Qn(i.index).filter(C=>C.hooks.includes(n.action)).map(C=>C.id));function m(){d.value=l.value,v()}function v(){c.value=[];const T=d.value;if(!T||!i.index[T])return;const C=i.index[T].params;c.value=JSON.parse(JSON.stringify(C))}async function y(){const T=d.value;for(let C in c.value)i.index[T].params[C].defaultValue=c.value[C].defaultValue;await i.updateDefaultParams(),o("changed")}function _(){v()}async function S(T){const C={};C[n.action]=T,await i.updateDefaultActions(C),await m(),o("changed")}return Rt(m),(T,C)=>(B(),G("div",k3,[$e(zn,null,{button:dt(()=>[z("span",T3,[Gt(Ne(d.value),1),C[0]||(C[0]=z("i",{style:{"font-size":"13px"},class:"ms-1 bi bi-chevron-down"},null,-1))])]),popup:dt(({hide:O})=>[z("div",I3,[(B(!0),G(lt,null,Ot(p.value,P=>(B(),G("div",{class:"bb",onClick:I=>{S(P),O()}},Ne(P),9,O3))),256))])]),_:1}),c.value.length&&!n.hideGear?(B(),G("div",P3,[$e(zn,null,{button:dt(()=>C[1]||(C[1]=[z("span",{class:"bbb"},[z("i",{class:"bi bi-gear"})],-1)])),popup:dt(({hide:O})=>[z("form",{onSubmit:li(P=>{y(),O()},["prevent"]),class:"p-2"},[(B(!0),G(lt,null,Ot(c.value,(P,I)=>(B(),G("div",M3,[$e(Ym,{input:P},null,8,["input"])]))),256)),z("div",N3,[C[2]||(C[2]=z("div",{class:"flex-grow-1"},null,-1)),z("div",{class:"bb",onClick:P=>{_(),O()}},Ne(T.$t("cancel")),9,R3),z("div",{class:"bb",onClick:P=>{y(),O()}},Ne(T.$t("confirm")),9,D3)])],40,L3)]),_:1})])):Me("",!0)]))}}),$3={key:0,id:"group-action-button",class:"main d-flex flex-center"},F3={key:0,class:"spinner-border spinner-border-sm text-primary me-1",role:"status"},V3={style:{"min-width":"200px"}},z3={class:"p-2 pb-1"},H3=["onSubmit"],B3={class:"mb-1"},W3={class:"d-flex flex-center mt-3",style:{height:"20px"}},j3={class:"me-1"},Y3=["onClick"],U3=["onClick"],G3=ot({__name:"ActionButton",props:{action:{},images:{},propertyIds:{}},emits:["instances","groups"],setup(e,{emit:t}){const i=ji(),n=$t(),o=zh();en();const l=e,c=t,d=Ae([]),p=Ee(()=>o.defaultActions[l.action]),m=Ae(null),v=Ae(!1),y=Ae(!1);function _(){m.value=p.value,S()}function S(){const C=m.value;if(!C||!o.index[C])return;const O=o.index[C].params;d.value=JSON.parse(JSON.stringify(O))}async function T(){if(!y.value){y.value=!0;try{const C={};for(let M of d.value)M.type=="property"&&!M.defaultValue&&n.propertyList.length&&(M.defaultValue=n.propertyList[0].id),C[M.name]=M.defaultValue;const P={instanceIds:l.images.map(M=>M.id),propertyIds:l.propertyIds,uiInputs:C},I={function:m.value,context:P},N=await i.call(I);if(N.groups){const M=XR(N.groups,P);c("groups",M)}}catch(C){console.error(C)}try{if(v.value){const C=m.value;for(let P in d.value)o.index[C].params[P].defaultValue=d.value[P].defaultValue;await o.updateDefaultParams();const O={};O[l.action]=m.value,await o.updateDefaultActions(O)}}catch{}y.value=!1}}return Rt(_),ft(()=>o.update,_),ft(p,_),ft(()=>l.action,_),ft(m,S),ft(i.actions,_),(C,O)=>m.value?(B(),G("div",$3,[y.value?(B(),G("div",F3,O[2]||(O[2]=[z("span",{class:"visually-hidden"},"Loading...",-1)]))):Me("",!0),$e(Ai,{message:"dropdown.action."+l.action},{default:dt(()=>[z("div",{onClick:T},Ne(C.$t("action."+l.action)),1)]),_:1},8,["message"]),O[6]||(O[6]=z("div",{class:"sep ms-1"},null,-1)),$e(zn,{teleport:!0},{button:dt(()=>O[3]||(O[3]=[z("div",{class:"bb",style:{margin:"0 1px","font-size":"8px"}},[z("i",{class:"bi bi-chevron-down"})],-1)])),popup:dt(({hide:P})=>[z("div",V3,[$e(aE,{style:{"font-size":"10px",margin:"2px 2px 0 4px"},modelValue:m.value,"onUpdate:modelValue":O[0]||(O[0]=I=>m.value=I),action:l.action,"hide-gear":!0},null,8,["modelValue","action"]),z("div",z3,[z("form",{onSubmit:li(I=>{T(),P()},["prevent"]),class:""},[(B(!0),G(lt,null,Ot(d.value,(I,N)=>(B(),G("div",B3,[$e(Ym,{input:I},null,8,["input"])]))),256)),z("div",W3,[z("div",j3,[Kt(z("input",{type:"checkbox","onUpdate:modelValue":O[1]||(O[1]=I=>v.value=I),style:{position:"relative",top:"2px"}},null,512),[[is,v.value]])]),O[4]||(O[4]=z("div",{class:"text-secondary"},"as default",-1)),O[5]||(O[5]=z("div",{class:"flex-grow-1"},null,-1)),z("div",{class:"bb",onClick:P},"Cancel",8,Y3),z("div",{class:"bb",onClick:I=>{T(),P()}},"Call",8,U3)])],40,H3)])])]),_:1})])):Me("",!0)}});const Ax=Pt(G3,[["__scopeId","data-v-941be193"]]),X3=["onClick","onMouseenter"],K3={key:0,class:"bi bi-caret-right-fill",style:{"margin-left":"1px"}},q3={key:1,class:"bi bi-caret-down-fill",style:{"margin-left":"1px"}},Z3={class:"me-1"},J3={key:3,class:"align-self-center me-2"},Q3={key:4,style:{"padding-top":"2.5px"},class:"me-2"},eU={class:"align-self-center me-2 text-secondary",style:{"font-size":"11px"}},tU={key:5,class:"align-self-center me-2 text-secondary",style:{"font-size":"11px"}},iU={key:6,class:"d-flex flex-row align-self-center me-2"},nU={key:0,class:"ms-2"},sU={key:1,class:"ms-2"},rU={class:"ms-2"},oU={key:2,class:"ms-2"},aU={style:{position:"relative",top:"1px"}},lU={key:0,class:"bi bi-diagram-3"},cU={key:1,class:"spinner-border spinner-border-sm text-primary",role:"status"},uU=ot({__name:"GroupLine",props:{item:Object,manager:Qo,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=$t(),n=e,o=t,l=Ae(!1),c=Ee(()=>n.item.data),d=Ee(()=>c.value.images),p=Ee(()=>{}),m=Ee(()=>c.value.children??[]),v=Ee(()=>d.value.length>0),y=Ee(()=>Array.isArray(p.value)),_=Ee(()=>n.item.data.children.length>0&&n.item.data.subGroupType!=Sn.Sha1),S=Ee(()=>c.value.meta.propertyValues.map(ge=>i.properties[ge.propertyId])),T=Ee(()=>c.value.meta.propertyValues),C=Ee(()=>n.item.data.view.closed),O=Ee(()=>n.item.data.children.some(ge=>!ge.view.closed)),P=Ee(()=>!n.item.data.images.some(ge=>!n.manager.selectedImages.value[ge.id])),I=Ee(()=>c.value.type==Sn.All?"All":c.value.type==Sn.Cluster?c.value.name??"Cluster "+c.value.parentIdx:"tmp name"),N=Ee(()=>c.value.meta.propertyValues.some(ge=>ge.value!=null)),M=Ee(()=>{const ge=d.value.filter(Ce=>n.manager.selectedImages.value[Ce.id]);return ge.length?ge:d.value});async function D(ge){n.manager.addCustomGroups(c.value.id,ge,!0)}function H(){n.manager.delCustomGroups(c.value.id,!0)}async function Z(){o("recommend",n.item.data.id)}function te(){C.value?(n.manager.toggleGroup(c.value.id,!1),o("group:open",n.item.id)):(n.manager.toggleGroup(c.value.id,!1),o("group:close",n.item.id))}function Y(){m.value.forEach(ge=>n.manager.closeGroup(ge.id)),o("group:close",m.value.map(ge=>ge.id))}function ee(){m.value.forEach(ge=>n.manager.openGroup(ge.id)),o("group:open",m.value.map(ge=>ge.id))}const le=Ae(!1);async function oe(){if(le.value)return;le.value=!0;const ge=c.value.children,Ce=O_(c.value)?zi.sha1:zi.id;console.log(Ce);const ue={id:-1,name:"Clustering",type:Xe.multi_tags,mode:Ce};let ie=0;const X=()=>(ie-=1,ie),fe={},me=pe(ge,X,void 0,fe,ue.id),de=[];for(let ze in fe){const st=fe[ze];for(let Oe of st)de.push({propertyId:ue.id,instanceId:Oe.id,value:[Number(ze)]})}const ye={properties:[ue],tags:me,instanceValues:de};await i.sendCommit(ye),le.value=!1}function pe(ge,Ce,ue,ie,X){const fe=[],me=(ue==null?void 0:ue.value)??"Clustering_"+ge.length,de=[];ue&&de.push(ue.id);for(let ye=0;ye(B(),G("div",{class:"d-flex flex-row group-line m-0 p-0 overflow-hidden",onMouseenter:Ce[2]||(Ce[2]=ue=>l.value=!0),onMouseleave:Ce[3]||(Ce[3]=ue=>l.value=!1)},[(B(!0),G(lt,null,Ot(n.parentIds,ue=>(B(),G("div",{style:{cursor:"pointer"},class:"ps-2",onClick:ie=>ge.$emit("scroll",ue),onMouseenter:ie=>ge.$emit("hover",ue),onMouseleave:Ce[0]||(Ce[0]=ie=>ge.$emit("unhover"))},[z("div",{class:mt(["group-line-border",n.hoverBorder==ue?"active":""])},null,2)],40,X3))),256)),z("div",{onClick:te,class:"align-self-center me-2",style:{cursor:"pointer"}},[C.value?(B(),G("i",K3)):(B(),G("i",q3))]),z("div",Z3,[$e(qc,{small:!0,"model-value":P.value,"onUpdate:modelValue":Ce[1]||(Ce[1]=ue=>o("select",c.value.id))},null,8,["model-value"])]),_.value&&O.value?(B(),G("div",{key:0,class:"text-secondary align-self-center bi bi-dash-square-dotted me-1",onClick:Y})):Me("",!0),_.value&&!O.value?(B(),G("div",{key:1,class:"text-secondary align-self-center bi bi-plus-square-dotted me-1",onClick:ee})):Me("",!0),S.value.length?(B(),G("div",{key:2,style:Ct("font-size: "+Math.max(17-1*n.item.depth,10)+"px;"),class:"align-self-center me-2"},[(B(!0),G(lt,null,Ot(T.value,ue=>(B(),ct(jm,{value:ue},null,8,["value"]))),256))],4)):(B(),G("div",J3,[z("b",null,Ne(I.value),1)])),c.value.type==Ue(Sn).Cluster?(B(),G("div",Q3,[c.value.score?(B(),ct(c3,{key:0,value:Math.round(c.value.score.value)},null,8,["value"])):Me("",!0)])):Me("",!0),z("div",eU,Ne(c.value.images.length)+" Images ",1),m.value.length?(B(),G("div",tU,Ne(m.value.length)+" "+Ne(ge.$t("main.view.groupes_nb")),1)):Me("",!0),!C.value&&!n.hideOptions?(B(),G("div",iU,[_.value?Me("",!0):(B(),G("div",nU,[$e(rE,{images:d.value},null,8,["images"])])),_.value?Me("",!0):(B(),G("div",sU,[$e(Ax,{action:"group",images:c.value.images,style:{"font-size":"10px"},onGroups:D},null,8,["images"])])),z("div",rU,[$e(Ax,{action:"execute",images:M.value,style:{"font-size":"10px"},onGroups:D},null,8,["images"])]),(v.value||y.value)&&!_.value&&c.value.type!=Ue(Sn).Cluster&&N.value?(B(),G("div",oU,[$e(Ai,{message:"main.recommand.tooltip"},{default:dt(()=>[z("div",{class:"button",onClick:Z},Ne(ge.$t("main.recommand.title")),1)]),_:1})])):Me("",!0),c.value.subGroupType==Ue(Sn).Cluster?(B(),ct(Ai,{key:3,class:"ms-2",message:"btn.close-clusters"},{default:dt(()=>[z("div",{class:"sbb cluster-close",onClick:H},"X Clusters")]),_:1})):Me("",!0),c.value.subGroupType==Ue(Sn).Cluster?(B(),ct(Ai,{key:4,class:"ms-2",message:"btn.save-clusters"},{default:dt(()=>[z("div",{class:"sbb cluster-close",onClick:oe},[z("span",aU,[Ce[5]||(Ce[5]=z("i",{class:"bi bi-floppy2-fill",style:{"margin-right":"3px"}},null,-1)),le.value?(B(),G("div",cU,Ce[4]||(Ce[4]=[z("span",{class:"visually-hidden"},"Loading...",-1)]))):(B(),G("i",lU))])])]),_:1})):Me("",!0)])):Me("",!0)],32))}});const dU=Pt(uU,[["__scopeId","data-v-e19f7019"]]);function hU(){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 o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let Qu;function sg(){sg.init||(sg.init=!0,Qu=hU()!==-1)}var Hh={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){sg(),Ft(()=>{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",Qu&&this.$el.appendChild(e),e.data="about:blank",Qu||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&&(!Qu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const fU=Mg();Pg("data-v-b329ee4c");const pU={class:"resize-observer",tabindex:"-1"};Lg();const gU=fU((e,t,i,n,o,l)=>(B(),ct("div",pU)));Hh.render=gU;Hh.__scopeId="data-v-b329ee4c";Hh.__file="src/components/ResizeObserver.vue";function ed(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ed=function(t){return typeof t}:ed=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ed(e)}function mU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kx(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,o,l,c=function(p){for(var m=arguments.length,v=new Array(m>1?m-1:0),y=1;y1){var m=d.find(function(y){return y.isIntersecting});m&&(p=m)}if(o.callback){var v=p.isIntersecting&&p.intersectionRatio>=o.threshold;if(v===o.oldResult)return;o.oldResult=v,o.callback(v,p)}},this.options.intersection),Ft(function(){o.observer&&o.observer.observe(o.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 cE(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 o=new EU(e,n,i);e._vue_visibilityState=o}}function CU(e,t,i){var n=t.value,o=t.oldValue;if(!lE(n,o)){var l=e._vue_visibilityState;if(!n){uE(e);return}l?l.createObserver(n,i):cE(e,{value:n},i)}}function uE(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var AU={beforeMount:cE,updated:CU,unmounted:uE};function kU(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 dE={itemsLimit:1e3},TU=/(auto|scroll)/;function hE(e,t){return e.parentNode===null?t:hE(e.parentNode,t.concat([e]))}var Bf=function(t,i){return getComputedStyle(t,null).getPropertyValue(i)},IU=function(t){return Bf(t,"overflow")+Bf(t,"overflow-y")+Bf(t,"overflow-x")},OU=function(t){return TU.test(IU(t))};function Ix(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=hE(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,o){const l=Lc({id:LU++,index:t,used:!0,key:n,type:o}),c=kg({item:i,position:0,nr:l});return e.push(c),c},unuseView(e,t=!1){const i=this.$_unusedViews,n=e.nr.type;let o=i.get(n);o||(o=[],i.set(n,o)),o.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,o=this.itemSecondarySize||i,l=this.$_computedMinItemSize,c=this.typeField,d=this.simpleArray?null:this.keyField,p=this.items,m=p.length,v=this.sizes,y=this.$_views,_=this.$_unusedViews,S=this.pool,T=this.itemIndexByKey;let C,O,P,I,N;if(!m)C=O=I=N=P=0;else if(this.$_prerender)C=I=0,O=N=Math.min(this.prerender,p.length),P=null;else{const ee=this.getScroll();if(t){let pe=ee.start-this.$_lastUpdateScrollPosition;if(pe<0&&(pe=-pe),i===null&&peee.start&&(Ce=ue),ue=~~((ge+Ce)/2);while(ue!==ie);for(ue<0&&(ue=0),C=ue,P=v[m-1].accumulator,O=ue;Om&&(O=m)),I=C;Im&&(O=m),I<0&&(I=0),N>m&&(N=m),P=Math.ceil(m/n)*i}}O-C>dE.itemsLimit&&this.itemsLimitError(),this.totalSize=P;let M;const D=C<=this.$_endIndex&&O>=this.$_startIndex;if(D)for(let ee=0,le=S.length;ee=O)&&this.unuseView(M));const H=D?null:new Map;let Z,te,Y;for(let ee=C;ee=oe.length)&&(M=this.addView(S,ee,Z,le,te),this.unuseView(M,!0),oe=_.get(te)),M=oe[Y],H.set(te,Y+1)),y.delete(M.nr.key),M.nr.used=!0,M.nr.index=ee,M.nr.key=le,M.nr.type=te,y.set(le,M),pe=!0;else if(!M.nr.used&&(M.nr.used=!0,pe=!0,oe)){const ge=oe.indexOf(M);ge!==-1&&oe.splice(ge,1)}M.item=Z,pe&&(ee===p.length-1&&this.$emit("scroll-end"),ee===0&&this.$emit("scroll-start")),i===null?(M.position=v[ee-1].accumulator,M.offset=0):(M.position=Math.floor(ee/n)*i,M.offset=ee%n*o)}return this.$_startIndex=C,this.$_endIndex=O,this.emitUpdate&&this.$emit("update",C,O,I,N),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:D}},getListenerTarget(){let e=Ix(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 o=e.getBoundingClientRect(),l=i?o.height:o.width;let c=-(i?o.top:o.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,ag?{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,o;if(this.pageMode){const l=Ix(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,o=e+c+m}else i=this.$el,n=t.scroll,o=e;i[n]=o},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 MU={key:0,ref:"before",class:"vue-recycle-scroller__slot"},NU={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function RU(e,t,i,n,o,l){const c=eo("ResizeObserver"),d=W0("observe-visibility");return Kt((B(),G("div",{class:mt(["vue-recycle-scroller",{ready:o.ready,"page-mode":i.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...p)=>l.handleScroll&&l.handleScroll(...p))},[e.$slots.before?(B(),G("div",MU,[xi(e.$slots,"before")],512)):Me("v-if",!0),(B(),ct(sp(i.listTag),{ref:"wrapper",style:Ct({[e.direction==="vertical"?"minHeight":"minWidth"]:o.totalSize+"px"}),class:mt(["vue-recycle-scroller__item-wrapper",i.listClass])},{default:dt(()=>[(B(!0),G(lt,null,Ot(o.pool,p=>(B(),ct(sp(i.itemTag),Dc({key:p.nr.id,style:o.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&&o.hoverKey===p.nr.key}]]},j0(i.skipHover?{}:{mouseenter:()=>{o.hoverKey=p.nr.key},mouseleave:()=>{o.hoverKey=null}})),{default:dt(()=>[xi(e.$slots,"default",{item:p.item,index:p.nr.index,active:p.nr.used})]),_:2},1040,["style","class"]))),128)),xi(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(B(),G("div",NU,[xi(e.$slots,"after")],512)):Me("v-if",!0),$e(c,{onNotify:l.handleResize},null,8,["onNotify"])],34)),[[d,l.handleVisibilityChange]])}Xo.render=RU;Xo.__file="src/components/RecycleScroller.vue";var zd={name:"DynamicScroller",components:{RecycleScroller:Xo},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 o=t.borderBoxSize[0];i=o.inlineSize,n=o.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:{...fE,minItemSize:{type:[Number,String],required:!0}},emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:pE,itemsWithSize(){const e=[],{items:t,keyField:i,simpleArray:n}=this,o=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,o=0;const l=Math.min(e.length,t.length);for(let d=0;d=i);d++)n+=t[d].size||this.minItemSize,o+=e[d].size||this.minItemSize;const c=o-n;c!==0&&(this.$el.scrollTop+=c)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=kU()},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 DU(e,t,i,n,o,l){const c=eo("RecycleScroller");return B(),ct(c,Dc({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:dt(({item:d,index:p,active:m})=>[xi(e.$slots,"default",xg(uh({item:d.item,index:p,active:m,itemWithSize:d})))]),before:dt(()=>[xi(e.$slots,"before")]),after:dt(()=>[xi(e.$slots,"after")]),empty:dt(()=>[xi(e.$slots,"empty")]),_:3},16,["items","min-item-size","direction","list-tag","item-tag","onResize","onVisible"])}zd.render=DU;zd.__file="src/components/DynamicScroller.vue";var lg={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 co(this.tag,this.$slots.default())}};lg.__file="src/components/DynamicScrollerItem.vue";function $U(e,t){e.component("".concat(t,"recycle-scroller"),Xo),e.component("".concat(t,"RecycleScroller"),Xo),e.component("".concat(t,"dynamic-scroller"),zd),e.component("".concat(t,"DynamicScroller"),zd),e.component("".concat(t,"dynamic-scroller-item"),lg),e.component("".concat(t,"DynamicScrollerItem"),lg)}var FU={version:"2.0.0-beta.8",install:function(t,i){var n=Object.assign({},{installComponents:!0,componentsPrefix:""},i);for(var o in n)typeof n[o]<"u"&&(dE[o]=n[o]);n.installComponents&&$U(t,n.componentsPrefix)}};const VU={key:0},zU={key:1},HU={key:2},BU={key:3},Ox=20,WU=ot({__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=en(),o=e,l=i,c={},d=on([]),p=Ae(-1),m=Ae(null),v=Ee(()=>o.properties.length),y=Ee(()=>o.properties.filter(ie=>ie.mode==zi.sha1)),_=Ee(()=>y.value.length),S=Ee(()=>Math.ceil(o.width/o.imageSize)),T=Ee(()=>{let ie=v.value,X=0;return ie>0&&(X+=28),ie>1&&(X+=(ie-1)*27),o.imageSize+X+10}),C=Ee(()=>{let ie=_.value,X=0;return ie>0&&(X+=28),ie>1&&(X+=(ie-1)*27),o.imageSize+X+10}),O=Ee(()=>o.imageSize+40),P=Ee(()=>o.hideIfModal&&(n.openModalId==Ri.IMAGE||n.openModalId==Ri.TAG));pr("hideImg",P),t({scrollTo:Z,computeLines:M,clear:I});function I(){d.value=[]}function N(ie){const X=[],fe=ie.group;return X.push({id:fe.id,type:"group",data:fe,depth:fe.depth,size:o.hideGroup?0:30,nbClusters:10}),fe.children.length>0&&fe.subGroupType!=Sn.Sha1||fe.view.closed||(fe.subGroupType!=Sn.Sha1?D(ie,X,o.imageSize,o.width-fe.depth*Ox,fe):H(ie,X,o.imageSize,o.width-fe.depth*Ox,fe)),X}function M(){if(!o.groupManager.result.root)return;I();let ie=o.groupManager.getGroupIterator();const X=[];for(;ie;){const fe=ie.group;c[fe.id]=d.value.length,X.push(...N(ie)),ie=ie.nextGroup()}d.value=X,m.value&&m.value.updateVisibleItems(!0)}function D(ie,X,fe,me,de,ye=!1){let ze=me,st=[],Oe=0,Pe=De=>{X.push({id:de.id+"|img-"+X.length,type:"images",data:De,groupId:de.id,depth:de.depth+1,size:ye?O.value:T.value,isSimilarities:ye})},we=Wn.fromGroupIterator(ie);for(;we&&we.groupId==ie.groupId&&X.length;){let De=we.image,Se=fe*De.containerRatio+10;if(Oe+Se0&&Pe(st)}function H(ie,X,fe,me,de){let ye=me,ze=[],st=0,Oe=we=>{X.push({id:de.id+"|img-"+X.length,type:"piles",data:we,groupId:de.id,depth:de.depth+1,size:C.value})},Pe=Wn.fromGroupIterator(ie);for(;Pe&&Pe.groupId==ie.groupId;){Pe.sha1Group;let we=Pe.image,De=fe*we.containerRatio+10;if(st+De0&&Oe(ze)}function Z(ie){const X=c[ie];m.value.scrollToItem(X),Ft(()=>m.value.updateVisibleItems(!0))}function te(ie){p.value=ie}function Y(ie){return ie&&ie.id!=null&&ie.parent!=null?[...Y(ie.parent),ie.parent.id]:[]}function ee(ie){return[...Y(o.groupManager.result.index[ie.groupId]),ie.groupId]}function le(ie){M()}function oe(ie){M()}function pe(ie,X){const fe=o.groupManager.findImageIterator(X.groupId,ie.id);o.groupManager.toggleImageIterator(fe,Mi.shift)}function ge(ie){const X=o.groupManager.getGroupIterator(ie);o.groupManager.toggleGroupIterator(X,Mi.shift)}function Ce(){}Rt(M),ft(()=>o.imageSize,()=>{Ft(M)}),ft(v,()=>{let ie=m.value.getScroll().start,X=m.value.totalSize,fe=ie/X;const me=[];d.value.forEach(de=>{de.type=="images"?de.size=T.value:de.type=="piles"&&(de.size=C.value),me.push(de)}),d.value=me,Ft(()=>{let de=m.value.totalSize*fe;m.value.scrollToPosition(de),m.value.updateVisibleItems(!0),Ft(()=>{m.value.scrollToPosition(de-10),Ft(()=>m.value.updateVisibleItems(!0))}),Ft(()=>m.value.updateVisibleItems(!0))})});let ue;return ft(()=>o.width,()=>{clearTimeout(ue),setTimeout(M,500)}),Rt(()=>o.groupManager.onChange.addListener(Ce)),ds(()=>o.groupManager.onChange.removeListener(Ce)),(ie,X)=>(B(),ct(Ue(Xo),{items:d.value,"key-field":"id",ref_key:"scroller",ref:m,style:Ct("height: "+o.height+"px;"),buffer:400,"min-item-size":0,emitUpdate:!1,onUpdate:X[6]||(X[6]=()=>{}),"page-mode":!1,prerender:0},{default:dt(({item:fe,index:me,active:de})=>[de?(B(),G(lt,{key:0},[fe.type=="group"&&!o.hideGroup?(B(),G("div",VU,[$e(dU,{item:fe,"hover-border":p.value,"parent-ids":Y(fe.data),manager:o.groupManager,"hide-options":o.hideOptions,data:o.groupManager.result,onScroll:Z,onHover:te,onUnhover:X[0]||(X[0]=ye=>p.value=-1),"onGroup:close":le,"onGroup:open":oe,onSelect:ge,onRecommend:X[1]||(X[1]=ye=>l("recommend",ye))},null,8,["item","hover-border","parent-ids","manager","hide-options","data"])])):fe.type=="images"?(B(),G("div",zU,[$e(UY,{"image-size":o.imageSize+1,"input-index":me*S.value,item:fe,index:o.groupManager.result.index,"hover-border":p.value,"parent-ids":ee(fe),properties:o.properties,"selected-images":o.groupManager.selectedImages,"onUpdate:selectedImage":ye=>pe(ye,fe),onScroll:Z,onHover:te,onUnhover:X[2]||(X[2]=ye=>p.value=-1),onUpdate:X[3]||(X[3]=ye=>M())},null,8,["image-size","input-index","item","index","hover-border","parent-ids","properties","selected-images","onUpdate:selectedImage"])])):fe.type=="piles"?(B(),G("div",HU,[$e(qY,{"image-size":o.imageSize+1,"input-index":me*S.value,item:fe,index:o.groupManager.result.index,"hover-border":p.value,"parent-ids":ee(fe),properties:y.value,"selected-images":o.groupManager.selectedImages,"sha1-scores":o.sha1Scores,preview:o.preview,"onUpdate:selectedImage":ye=>pe(ye,fe),onScroll:Z,onHover:te,onUnhover:X[4]||(X[4]=ye=>p.value=-1),onUpdate:X[5]||(X[5]=ye=>M())},null,8,["image-size","input-index","item","index","hover-border","parent-ids","properties","selected-images","sha1-scores","preview","onUpdate:selectedImage"])])):fe.type=="filler"?(B(),G("div",BU,[z("div",{style:Ct({height:fe.size+"px"}),class:""},null,4)])):Me("",!0)],64)):Me("",!0)]),_:1},8,["items","style"]))}});const gE=Pt(WU,[["__scopeId","data-v-e766c8b5"]]);function ku(e){return[null,void 0,!1].indexOf(e)!==-1}function jU(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mE(e){var t={exports:{}};return e(t,t.exports),t.exports}var Px=mE(function(e,t){e.exports=function(){var i=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function n(T){return T.split("").reverse().join("")}function o(T,C){return T.substring(0,C.length)===C}function l(T,C){return T.slice(-1*C.length)===C}function c(T,C,O){if((T[C]||T[O])&&T[C]===T[O])throw new Error(C)}function d(T){return typeof T=="number"&&isFinite(T)}function p(T,C){return T=T.toString().split("e"),(+((T=(T=Math.round(+(T[0]+"e"+(T[1]?+T[1]+C:C)))).toString().split("e"))[0]+"e"+(T[1]?+T[1]-C:-C))).toFixed(C)}function m(T,C,O,P,I,N,M,D,H,Z,te,Y){var ee,le,oe,pe=Y,ge="",Ce="";return N&&(Y=N(Y)),!!d(Y)&&(T!==!1&&parseFloat(Y.toFixed(T))===0&&(Y=0),Y<0&&(ee=!0,Y=Math.abs(Y)),T!==!1&&(Y=p(Y,T)),(Y=Y.toString()).indexOf(".")!==-1?(oe=(le=Y.split("."))[0],O&&(ge=O+le[1])):oe=Y,C&&(oe=n(oe).match(/.{1,3}/g),oe=n(oe.join(n(C)))),ee&&D&&(Ce+=D),P&&(Ce+=P),ee&&H&&(Ce+=H),Ce+=oe,Ce+=ge,I&&(Ce+=I),Z&&(Ce=Z(Ce,pe)),Ce)}function v(T,C,O,P,I,N,M,D,H,Z,te,Y){var ee,le="";return te&&(Y=te(Y)),!(!Y||typeof Y!="string")&&(D&&o(Y,D)&&(Y=Y.replace(D,""),ee=!0),P&&o(Y,P)&&(Y=Y.replace(P,"")),H&&o(Y,H)&&(Y=Y.replace(H,""),ee=!0),I&&l(Y,I)&&(Y=Y.slice(0,-1*I.length)),C&&(Y=Y.split(C).join("")),O&&(Y=Y.replace(O,".")),ee&&(le+="-"),(le=(le+=Y).replace(/[^0-9\.\-.]/g,""))!==""&&(le=Number(le),M&&(le=M(le)),!!d(le)&&le))}function y(T){var C,O,P,I={};for(T.suffix===void 0&&(T.suffix=T.postfix),C=0;C=0&&P<8))throw new Error(O);I[O]=P}else if(O==="encoder"||O==="decoder"||O==="edit"||O==="undo"){if(typeof P!="function")throw new Error(O);I[O]=P}else{if(typeof P!="string")throw new Error(O);I[O]=P}return c(I,"mark","thousand"),c(I,"prefix","negative"),c(I,"prefix","negativeBefore"),I}function _(T,C,O){var P,I=[];for(P=0;P0&&(O(q,W),setTimeout(function(){P(q,W)},be))}function S(q){return Math.max(Math.min(q,100),0)}function T(q){return Array.isArray(q)?q:[q]}function C(q){var W=(q=String(q)).split(".");return W.length>1?W[1].length:0}function O(q,W){q.classList&&!/\s/.test(W)?q.classList.add(W):q.className+=" "+W}function P(q,W){q.classList&&!/\s/.test(W)?q.classList.remove(W):q.className=q.className.replace(new RegExp("(^|\\b)"+W.split(" ").join("|")+"(\\b|$)","gi")," ")}function I(q,W){return q.classList?q.classList.contains(W):new RegExp("\\b"+W+"\\b").test(q.className)}function N(q){var W=window.pageXOffset!==void 0,be=(q.compatMode||"")==="CSS1Compat";return{x:W?window.pageXOffset:be?q.documentElement.scrollLeft:q.body.scrollLeft,y:W?window.pageYOffset:be?q.documentElement.scrollTop:q.body.scrollTop}}function M(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function D(){var q=!1;try{var W=Object.defineProperty({},"passive",{get:function(){q=!0}});window.addEventListener("test",null,W)}catch{}return q}function H(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function Z(q,W){return 100/(W-q)}function te(q,W,be){return 100*W/(q[be+1]-q[be])}function Y(q,W){return te(q,q[0]<0?W+Math.abs(q[0]):W-q[0],0)}function ee(q,W){return W*(q[1]-q[0])/100+q[0]}function le(q,W){for(var be=1;q>=W[be];)be+=1;return be}function oe(q,W,be){if(be>=q.slice(-1)[0])return 100;var Ve=le(be,q),We=q[Ve-1],rt=q[Ve],wt=W[Ve-1],Et=W[Ve];return wt+Y([We,rt],be)/Z(wt,Et)}function pe(q,W,be){if(be>=100)return q.slice(-1)[0];var Ve=le(be,W),We=q[Ve-1],rt=q[Ve],wt=W[Ve-1];return ee([We,rt],(be-wt)*Z(wt,W[Ve]))}function ge(q,W,be,Ve){if(Ve===100)return Ve;var We=le(Ve,q),rt=q[We-1],wt=q[We];return be?Ve-rt>(wt-rt)/2?wt:rt:W[We-1]?q[We-1]+m(Ve-q[We-1],W[We-1]):Ve}var Ce,ue;i.PipsMode=void 0,(ue=i.PipsMode||(i.PipsMode={})).Range="range",ue.Steps="steps",ue.Positions="positions",ue.Count="count",ue.Values="values",i.PipsType=void 0,(Ce=i.PipsType||(i.PipsType={}))[Ce.None=-1]="None",Ce[Ce.NoValue=0]="NoValue",Ce[Ce.LargeValue=1]="LargeValue",Ce[Ce.SmallValue=2]="SmallValue";var ie=function(){function q(W,be,Ve){var We;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[Ve||!1],this.xNumSteps=[!1],this.snap=be;var rt=[];for(Object.keys(W).forEach(function(wt){rt.push([T(W[wt]),wt])}),rt.sort(function(wt,Et){return wt[0][0]-Et[0][0]}),We=0;Wethis.xPct[rt+1];)rt++;else W===this.xPct[this.xPct.length-1]&&(rt=this.xPct.length-2);Ve||W!==this.xPct[rt+1]||rt++,be===null&&(be=[]);var wt=1,Et=be[rt],Nt=0,Tt=0,xt=0,at=0;for(We=Ve?(W-this.xPct[rt])/(this.xPct[rt+1]-this.xPct[rt]):(this.xPct[rt+1]-W)/(this.xPct[rt+1]-this.xPct[rt]);Et>0;)Nt=this.xPct[rt+1+at]-this.xPct[rt+at],be[rt+at]*wt+100-100*We>100?(Tt=Nt*We,wt=(Et-100*We)/be[rt+at],We=1):(Tt=be[rt+at]*Nt/100*wt,wt=0),Ve?(xt-=Tt,this.xPct.length+at>=1&&at--):(xt+=Tt,this.xPct.length-at>=1&&at++),Et=be[rt+at]*wt;return W+xt},q.prototype.toStepping=function(W){return W=oe(this.xVal,this.xPct,W)},q.prototype.fromStepping=function(W){return pe(this.xVal,this.xPct,W)},q.prototype.getStep=function(W){return W=ge(this.xPct,this.xSteps,this.snap,W)},q.prototype.getDefaultStep=function(W,be,Ve){var We=le(W,this.xPct);return(W===100||be&&W===this.xPct[We-1])&&(We=Math.max(We-1,1)),(this.xVal[We]-this.xVal[We-1])/Ve},q.prototype.getNearbySteps=function(W){var be=le(W,this.xPct);return{stepBefore:{startValue:this.xVal[be-2],step:this.xNumSteps[be-2],highestStep:this.xHighestCompleteStep[be-2]},thisStep:{startValue:this.xVal[be-1],step:this.xNumSteps[be-1],highestStep:this.xHighestCompleteStep[be-1]},stepAfter:{startValue:this.xVal[be],step:this.xNumSteps[be],highestStep:this.xHighestCompleteStep[be]}}},q.prototype.countStepDecimals=function(){var W=this.xNumSteps.map(C);return Math.max.apply(null,W)},q.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},q.prototype.convert=function(W){return this.getStep(this.toStepping(W))},q.prototype.handleEntryPoint=function(W,be){var Ve;if(!y(Ve=W==="min"?0:W==="max"?100:parseFloat(W))||!y(be[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(Ve),this.xVal.push(be[0]);var We=Number(be[1]);Ve?this.xSteps.push(!isNaN(We)&&We):isNaN(We)||(this.xSteps[0]=We),this.xHighestCompleteStep.push(0)},q.prototype.handleStepPoint=function(W,be){if(be)if(this.xVal[W]!==this.xVal[W+1]){this.xSteps[W]=te([this.xVal[W],this.xVal[W+1]],be,0)/Z(this.xPct[W],this.xPct[W+1]);var Ve=(this.xVal[W+1]-this.xVal[W])/this.xNumSteps[W],We=Math.ceil(Number(Ve.toFixed(3))-1),rt=this.xVal[W]+this.xNumSteps[W]*We;this.xHighestCompleteStep[W]=rt}else this.xSteps[W]=this.xHighestCompleteStep[W]=this.xVal[W]},q}(),X={to:function(q){return q===void 0?"":q.toFixed(2)},from:Number},fe={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},me={tooltips:".__tooltips",aria:".__aria"};function de(q,W){if(!y(W))throw new Error("noUiSlider: 'step' is not numeric.");q.singleStep=W}function ye(q,W){if(!y(W))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");q.keyboardPageMultiplier=W}function ze(q,W){if(!y(W))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");q.keyboardMultiplier=W}function st(q,W){if(!y(W))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");q.keyboardDefaultStep=W}function Oe(q,W){if(typeof W!="object"||Array.isArray(W))throw new Error("noUiSlider: 'range' is not an object.");if(W.min===void 0||W.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");q.spectrum=new ie(W,q.snap||!1,q.singleStep)}function Pe(q,W){if(W=T(W),!Array.isArray(W)||!W.length)throw new Error("noUiSlider: 'start' option is incorrect.");q.handles=W.length,q.start=W}function we(q,W){if(typeof W!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");q.snap=W}function De(q,W){if(typeof W!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");q.animate=W}function Se(q,W){if(typeof W!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");q.animationDuration=W}function Ie(q,W){var be,Ve=[!1];if(W==="lower"?W=[!0,!1]:W==="upper"&&(W=[!1,!0]),W===!0||W===!1){for(be=1;be1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function Te(q,W){switch(W){case"ltr":q.dir=0;break;case"rtl":q.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function Ke(q,W){if(typeof W!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var be=W.indexOf("tap")>=0,Ve=W.indexOf("drag")>=0,We=W.indexOf("fixed")>=0,rt=W.indexOf("snap")>=0,wt=W.indexOf("hover")>=0,Et=W.indexOf("unconstrained")>=0,Nt=W.indexOf("drag-all")>=0,Tt=W.indexOf("smooth-steps")>=0;if(We){if(q.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Ge(q,q.start[1]-q.start[0])}if(Et&&(q.margin||q.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");q.events={tap:be||rt,drag:Ve,dragAll:Nt,smoothSteps:Tt,fixed:We,snap:rt,hover:wt,unconstrained:Et}}function Be(q,W){if(W!==!1)if(W===!0||o(W)){q.tooltips=[];for(var be=0;be= 2) required for mode 'count'.");for(var Le=ve.values-1,He=100/Le,it=[];Le--;)it[Le]=Le*He;return it.push(100),tu(it,ve.stepped)}return ve.mode===i.PipsMode.Positions?tu(ve.values,ve.stepped):ve.mode===i.PipsMode.Values?ve.stepped?ve.values.map(function(bt){return at.fromStepping(at.getStep(at.toStepping(bt)))}):ve.values:[]}function tu(ve,Le){return ve.map(function(He){return at.fromStepping(Le?at.getStep(He):He)})}function iu(ve){function Le(Di,_i){return Number((Di+_i).toFixed(7))}var He=Gh(ve),it={},bt=at.xVal[0],pt=at.xVal[at.xVal.length-1],Mt=!1,vt=!1,Ii=0;return(He=p(He.slice().sort(function(Di,_i){return Di-_i})))[0]!==bt&&(He.unshift(bt),Mt=!0),He[He.length-1]!==pt&&(He.push(pt),vt=!0),He.forEach(function(Di,_i){var Oi,gi,tn,bn,Yi,Jm,Xh,Qm,ev,tv,Kh=Di,oa=He[_i+1],iv=ve.mode===i.PipsMode.Steps;for(iv&&(Oi=at.xNumSteps[_i]),Oi||(Oi=oa-Kh),oa===void 0&&(oa=Kh),Oi=Math.max(Oi,1e-7),gi=Kh;gi<=oa;gi=Le(gi,Oi)){for(Qm=(Yi=(bn=at.toStepping(gi))-Ii)/(ve.density||1),tv=Yi/(ev=Math.round(Qm)),tn=1;tn<=ev;tn+=1)it[(Jm=Ii+tn*tv).toFixed(5)]=[at.fromStepping(Jm),0];Xh=He.indexOf(gi)>-1?i.PipsType.LargeValue:iv?i.PipsType.SmallValue:i.PipsType.NoValue,!_i&&Mt&&gi!==oa&&(Xh=0),gi===oa&&vt||(it[bn.toFixed(5)]=[gi,Xh]),Ii=bn}}),it}function nu(ve,Le,He){var it,bt,pt=Ln.createElement("div"),Mt=((it={})[i.PipsType.None]="",it[i.PipsType.NoValue]=W.cssClasses.valueNormal,it[i.PipsType.LargeValue]=W.cssClasses.valueLarge,it[i.PipsType.SmallValue]=W.cssClasses.valueSub,it),vt=((bt={})[i.PipsType.None]="",bt[i.PipsType.NoValue]=W.cssClasses.markerNormal,bt[i.PipsType.LargeValue]=W.cssClasses.markerLarge,bt[i.PipsType.SmallValue]=W.cssClasses.markerSub,bt),Ii=[W.cssClasses.valueHorizontal,W.cssClasses.valueVertical],Di=[W.cssClasses.markerHorizontal,W.cssClasses.markerVertical];function _i(gi,tn){var bn=tn===W.cssClasses.value,Yi=bn?Mt:vt;return tn+" "+(bn?Ii:Di)[W.ort]+" "+Yi[gi]}function Oi(gi,tn,bn){if((bn=Le?Le(tn,bn):bn)!==i.PipsType.None){var Yi=gs(pt,!1);Yi.className=_i(bn,W.cssClasses.marker),Yi.style[W.style]=gi+"%",bn>i.PipsType.NoValue&&((Yi=gs(pt,!1)).className=_i(bn,W.cssClasses.value),Yi.setAttribute("data-value",String(tn)),Yi.style[W.style]=gi+"%",Yi.innerHTML=String(He.to(tn)))}}return O(pt,W.cssClasses.pips),O(pt,W.ort===0?W.cssClasses.pipsHorizontal:W.cssClasses.pipsVertical),Object.keys(ve).forEach(function(gi){Oi(gi,ve[gi][0],ve[gi][1])}),pt}function bo(){wt&&(l(wt),wt=null)}function bl(ve){bo();var Le=iu(ve),He=ve.filter,it=ve.format||{to:function(bt){return String(Math.round(bt))}};return wt=xt.appendChild(nu(Le,He,it))}function K(){var ve=Ve.getBoundingClientRect(),Le="offset"+["Width","Height"][W.ort];return W.ort===0?ve.width||Ve[Le]:ve.height||Ve[Le]}function s(ve,Le,He,it){var bt=function(Mt){var vt=r(Mt,it.pageOffset,it.target||Le);return!!vt&&!(Ns()&&!it.doNotReject)&&!(I(xt,W.cssClasses.tap)&&!it.doNotReject)&&!(ve===Nt.start&&vt.buttons!==void 0&&vt.buttons>1)&&(!it.hover||!vt.buttons)&&(Tt||vt.preventDefault(),vt.calcPoint=vt.points[W.ort],void He(vt,it))},pt=[];return ve.split(" ").forEach(function(Mt){Le.addEventListener(Mt,bt,!!Tt&&{passive:!0}),pt.push([Mt,bt])}),pt}function r(ve,Le,He){var it=ve.type.indexOf("touch")===0,bt=ve.type.indexOf("mouse")===0,pt=ve.type.indexOf("pointer")===0,Mt=0,vt=0;if(ve.type.indexOf("MSPointer")===0&&(pt=!0),ve.type==="mousedown"&&!ve.buttons&&!ve.touches)return!1;if(it){var Ii=function(Oi){var gi=Oi.target;return gi===He||He.contains(gi)||ve.composed&&ve.composedPath().shift()===He};if(ve.type==="touchstart"){var Di=Array.prototype.filter.call(ve.touches,Ii);if(Di.length>1)return!1;Mt=Di[0].pageX,vt=Di[0].pageY}else{var _i=Array.prototype.find.call(ve.changedTouches,Ii);if(!_i)return!1;Mt=_i.pageX,vt=_i.pageY}}return Le=Le||N(Ln),(bt||pt)&&(Mt=ve.clientX+Le.x,vt=ve.clientY+Le.y),ve.pageOffset=Le,ve.points=[Mt,vt],ve.cursor=bt||pt,ve}function a(ve){var Le=100*(ve-v(Ve,W.ort))/K();return Le=S(Le),W.dir?100-Le:Le}function u(ve){var Le=100,He=!1;return We.forEach(function(it,bt){if(!Ir(bt)){var pt=Lt[bt],Mt=Math.abs(pt-ve);(Mtpt||Mt===100&&Le===100)&&(He=bt,Le=Mt)}}),He}function h(ve,Le){ve.type==="mouseout"&&ve.target.nodeName==="HTML"&&ve.relatedTarget===null&&g(ve,Le)}function f(ve,Le){if(navigator.appVersion.indexOf("MSIE 9")===-1&&ve.buttons===0&&Le.buttonsProperty!==0)return g(ve,Le);var He=(W.dir?-1:1)*(ve.calcPoint-Le.startCalcPoint);x(He>0,100*He/Le.baseSize,Le.locations,Le.handleNumbers,Le.connect)}function g(ve,Le){Le.handle&&(P(Le.handle,W.cssClasses.active),Zs-=1),Le.listeners.forEach(function(He){na.removeEventListener(He[0],He[1])}),Zs===0&&(P(xt,W.cssClasses.drag),U(),ve.cursor&&(sa.style.cursor="",sa.removeEventListener("selectstart",d))),W.events.smoothSteps&&(Le.handleNumbers.forEach(function(He){Q(He,Lt[He],!0,!0,!1,!1)}),Le.handleNumbers.forEach(function(He){j("update",He)})),Le.handleNumbers.forEach(function(He){j("change",He),j("set",He),j("end",He)})}function b(ve,Le){if(!Le.handleNumbers.some(Ir)){var He;Le.handleNumbers.length===1&&(He=We[Le.handleNumbers[0]].children[0],Zs+=1,O(He,W.cssClasses.active)),ve.stopPropagation();var it=[],bt=s(Nt.move,na,f,{target:ve.target,handle:He,connect:Le.connect,listeners:it,startCalcPoint:ve.calcPoint,baseSize:K(),pageOffset:ve.pageOffset,handleNumbers:Le.handleNumbers,buttonsProperty:ve.buttons,locations:Lt.slice()}),pt=s(Nt.end,na,g,{target:ve.target,handle:He,listeners:it,doNotReject:!0,handleNumbers:Le.handleNumbers}),Mt=s("mouseout",na,h,{target:ve.target,handle:He,listeners:it,doNotReject:!0,handleNumbers:Le.handleNumbers});it.push.apply(it,bt.concat(pt,Mt)),ve.cursor&&(sa.style.cursor=getComputedStyle(ve.target).cursor,We.length>1&&O(xt,W.cssClasses.drag),sa.addEventListener("selectstart",d,!1)),Le.handleNumbers.forEach(function(vt){j("start",vt)})}}function w(ve){ve.stopPropagation();var Le=a(ve.calcPoint),He=u(Le);He!==!1&&(W.events.snap||_(xt,W.cssClasses.tap,W.animationDuration),Q(He,Le,!0,!0),U(),j("slide",He,!0),j("update",He,!0),W.events.snap?b(ve,{handleNumbers:[He]}):(j("change",He,!0),j("set",He,!0)))}function E(ve){var Le=a(ve.calcPoint),He=at.getStep(Le),it=at.fromStepping(He);Object.keys(Pn).forEach(function(bt){bt.split(".")[0]==="hover"&&Pn[bt].forEach(function(pt){pt.call(jt,it)})})}function A(ve,Le){if(Ns()||Ir(Le))return!1;var He=["Left","Right"],it=["Down","Up"],bt=["PageDown","PageUp"],pt=["Home","End"];W.dir&&!W.ort?He.reverse():W.ort&&!W.dir&&(it.reverse(),bt.reverse());var Mt,vt=ve.key.replace("Arrow",""),Ii=vt===bt[0],Di=vt===bt[1],_i=vt===it[0]||vt===He[0]||Ii,Oi=vt===it[1]||vt===He[1]||Di,gi=vt===pt[0],tn=vt===pt[1];if(!(_i||Oi||gi||tn))return!0;if(ve.preventDefault(),Oi||_i){var bn=_i?0:1,Yi=At(Le)[bn];if(Yi===null)return!1;Yi===!1&&(Yi=at.getDefaultStep(Lt[Le],_i,W.keyboardDefaultStep)),Yi*=Di||Ii?W.keyboardPageMultiplier:W.keyboardMultiplier,Yi=Math.max(Yi,1e-7),Yi*=_i?-1:1,Mt=Bt[Le]+Yi}else Mt=tn?W.spectrum.xVal[W.spectrum.xVal.length-1]:W.spectrum.xVal[0];return Q(Le,at.toStepping(Mt),!0,!0),j("slide",Le),j("update",Le),j("change",Le),j("set",Le),!1}function k(ve){ve.fixed||We.forEach(function(Le,He){s(Nt.start,Le.children[0],b,{handleNumbers:[He]})}),ve.tap&&s(Nt.start,Ve,w,{}),ve.hover&&s(Nt.move,Ve,E,{hover:!0}),ve.drag&&rt.forEach(function(Le,He){if(Le!==!1&&He!==0&&He!==rt.length-1){var it=We[He-1],bt=We[He],pt=[Le],Mt=[it,bt],vt=[He-1,He];O(Le,W.cssClasses.draggable),ve.fixed&&(pt.push(it.children[0]),pt.push(bt.children[0])),ve.dragAll&&(Mt=We,vt=ci),pt.forEach(function(Ii){s(Nt.start,Ii,b,{handles:Mt,handleNumbers:vt,connect:Le})})}})}function R(ve,Le){Pn[ve]=Pn[ve]||[],Pn[ve].push(Le),ve.split(".")[0]==="update"&&We.forEach(function(He,it){j("update",it)})}function $(ve){return ve===me.aria||ve===me.tooltips}function F(ve){var Le=ve&&ve.split(".")[0],He=Le?ve.substring(Le.length):ve;Object.keys(Pn).forEach(function(it){var bt=it.split(".")[0],pt=it.substring(bt.length);Le&&Le!==bt||He&&He!==pt||$(pt)&&He!==pt||delete Pn[it]})}function j(ve,Le,He){Object.keys(Pn).forEach(function(it){var bt=it.split(".")[0];ve===bt&&Pn[it].forEach(function(pt){pt.call(jt,Bt.map(W.format.to),Le,Bt.slice(),He||!1,Lt.slice(),jt)})})}function J(ve,Le,He,it,bt,pt,Mt){var vt;return We.length>1&&!W.events.unconstrained&&(it&&Le>0&&(vt=at.getAbsoluteDistance(ve[Le-1],W.margin,!1),He=Math.max(He,vt)),bt&&Le1&&W.limit&&(it&&Le>0&&(vt=at.getAbsoluteDistance(ve[Le-1],W.limit,!1),He=Math.min(He,vt)),bt&&Le1?it.forEach(function(Oi,gi){var tn=J(pt,Oi,pt[Oi]+Le,Ii[gi],Di[gi],!1,vt);tn===!1?Le=0:(Le=tn-pt[Oi],pt[Oi]=tn)}):Ii=Di=[!0];var _i=!1;it.forEach(function(Oi,gi){_i=Q(Oi,He[Oi]+Le,Ii[gi],Di[gi],!1,vt)||_i}),_i&&(it.forEach(function(Oi){j("update",Oi),j("slide",Oi)}),bt!=null&&j("drag",Mt))}function L(ve,Le){return W.dir?100-ve-Le:ve}function V(ve,Le){Lt[ve]=Le,Bt[ve]=at.fromStepping(Le);var He="translate("+ne(L(Le,0)-jh+"%","0")+")";We[ve].style[W.transformRule]=He,re(ve),re(ve+1)}function U(){ci.forEach(function(ve){var Le=Lt[ve]>50?-1:1,He=3+(We.length+Le*ve);We[ve].style.zIndex=String(He)})}function Q(ve,Le,He,it,bt,pt){return bt||(Le=J(Lt,ve,Le,He,it,!1,pt)),Le!==!1&&(V(ve,Le),!0)}function re(ve){if(rt[ve]){var Le=0,He=100;ve!==0&&(Le=Lt[ve-1]),ve!==rt.length-1&&(He=Lt[ve]);var it=He-Le,bt="translate("+ne(L(Le,it)+"%","0")+")",pt="scale("+ne(it/100,"1")+")";rt[ve].style[W.transformRule]=bt+" "+pt}}function _e(ve,Le){return ve===null||ve===!1||ve===void 0?Lt[Le]:(typeof ve=="number"&&(ve=String(ve)),(ve=W.format.from(ve))!==!1&&(ve=at.toStepping(ve)),ve===!1||isNaN(ve)?Lt[Le]:ve)}function xe(ve,Le,He){var it=T(ve),bt=Lt[0]===void 0;Le=Le===void 0||Le,W.animate&&!bt&&_(xt,W.cssClasses.tap,W.animationDuration),ci.forEach(function(vt){Q(vt,_e(it[vt],vt),!0,!1,He)});var pt=ci.length===1?0:1;if(bt&&at.hasNoSize()&&(He=!0,Lt[0]=0,ci.length>1)){var Mt=100/(ci.length-1);ci.forEach(function(vt){Lt[vt]=vt*Mt})}for(;pt=0&&veHe.stepAfter.startValue&&(bt=He.stepAfter.startValue-it),pt=it>He.thisStep.startValue?He.thisStep.step:He.stepBefore.step!==!1&&it-He.stepBefore.highestStep,Le===100?bt=null:Le===0&&(pt=null);var Mt=at.countStepDecimals();return bt!==null&&bt!==!1&&(bt=Number(bt.toFixed(Mt))),pt!==null&&pt!==!1&&(pt=Number(pt.toFixed(Mt))),[pt,bt]}function Dt(){return ci.map(At)}function Wt(ve,Le){var He=Ze(),it=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];it.forEach(function(pt){ve[pt]!==void 0&&(be[pt]=ve[pt])});var bt=tt(be);it.forEach(function(pt){ve[pt]!==void 0&&(W[pt]=bt[pt])}),at=bt.spectrum,W.margin=bt.margin,W.limit=bt.limit,W.padding=bt.padding,W.pips?bl(W.pips):bo(),W.tooltips?eu():vl(),Lt=[],xe(c(ve.start)?ve.start:He,Le)}function Jt(){Ve=gl(xt),Qc(W.connect,Ve),k(W.events),xe(W.start),W.pips&&bl(W.pips),W.tooltips&&eu(),Uh()}Jt();var jt={destroy:gt,steps:Dt,on:R,off:F,get:Ze,set:xe,setHandle:Je,reset:je,__moveHandles:function(ve,Le,He){x(ve,Le,Lt,He)},options:be,updateOptions:Wt,target:xt,removePips:bo,removeTooltips:vl,getPositions:function(){return Lt.slice()},getTooltips:function(){return Et},getOrigins:function(){return We},pips:bl};return jt}function Ye(q,W){if(!q||!q.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+q);if(q.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var be=Re(q,tt(W),W);return q.noUiSlider=be,be}var St={__spectrum:ie,cssClasses:fe,create:Ye};i.create=Ye,i.cssClasses=fe,i.default=St,Object.defineProperty(i,"__esModule",{value:!0})})(t)}));function Lx(e,t){if(!Array.isArray(e)||!Array.isArray(t))return!1;const i=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(n,o){return n===i[o]})}var cg={name:"Slider",emits:["input","update:modelValue","start","slide","drag","update","change","set","end"],props:{value:{validator:function(e){return t=>typeof t=="number"||t instanceof Array||t==null||t===!1},required:!1},modelValue:{validator:function(e){return t=>typeof t=="number"||t instanceof Array||t==null||t===!1},required:!1},id:{type:[String,Number],required:!1},disabled:{type:Boolean,required:!1,default:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},orientation:{type:String,required:!1,default:"horizontal"},direction:{type:String,required:!1,default:"ltr"},tooltips:{type:Boolean,required:!1,default:!0},options:{type:Object,required:!1,default:()=>({})},merge:{type:Number,required:!1,default:-1},format:{type:[Object,Function,Boolean],required:!1,default:null},classes:{type:Object,required:!1,default:()=>({})},showTooltip:{type:String,required:!1,default:"always"},tooltipPosition:{type:String,required:!1,default:null},lazy:{type:Boolean,required:!1,default:!0},ariaLabelledby:{type:String,required:!1,default:void 0},aria:{required:!1,type:Object,default:()=>({})}},setup(e,t){const i=function(c,d,p){const{value:m,modelValue:v,min:y}=Ss(c);let _=v&&v.value!==void 0?v:m;const S=Ae(_.value);if(ku(_.value)&&(_=Ae(y.value)),Array.isArray(_.value)&&_.value.length==0)throw new Error("Slider v-model must not be an empty array");return{value:_,initialValue:S}}(e),n=function(c,d,p){const{classes:m,showTooltip:v,tooltipPosition:y,orientation:_}=Ss(c),S=Ee(()=>({target:"slider-target",focused:"slider-focused",tooltipFocus:"slider-tooltip-focus",tooltipDrag:"slider-tooltip-drag",ltr:"slider-ltr",rtl:"slider-rtl",horizontal:"slider-horizontal",vertical:"slider-vertical",textDirectionRtl:"slider-txt-dir-rtl",textDirectionLtr:"slider-txt-dir-ltr",base:"slider-base",connects:"slider-connects",connect:"slider-connect",origin:"slider-origin",handle:"slider-handle",handleLower:"slider-handle-lower",handleUpper:"slider-handle-upper",touchArea:"slider-touch-area",tooltip:"slider-tooltip",tooltipTop:"slider-tooltip-top",tooltipBottom:"slider-tooltip-bottom",tooltipLeft:"slider-tooltip-left",tooltipRight:"slider-tooltip-right",tooltipHidden:"slider-tooltip-hidden",active:"slider-active",draggable:"slider-draggable",tap:"slider-state-tap",drag:"slider-state-drag",pips:"slider-pips",pipsHorizontal:"slider-pips-horizontal",pipsVertical:"slider-pips-vertical",marker:"slider-marker",markerHorizontal:"slider-marker-horizontal",markerVertical:"slider-marker-vertical",markerNormal:"slider-marker-normal",markerLarge:"slider-marker-large",markerSub:"slider-marker-sub",value:"slider-value",valueHorizontal:"slider-value-horizontal",valueVertical:"slider-value-vertical",valueNormal:"slider-value-normal",valueLarge:"slider-value-large",valueSub:"slider-value-sub",...m.value}));return{classList:Ee(()=>{const T={...S.value};return Object.keys(T).forEach(C=>{T[C]=Array.isArray(T[C])?T[C].filter(O=>O!==null).join(" "):T[C]}),v.value!=="always"&&(T.target+=` ${v.value==="drag"?T.tooltipDrag:T.tooltipFocus}`),_.value==="horizontal"&&(T.tooltip+=y.value==="bottom"?` ${T.tooltipBottom}`:` ${T.tooltipTop}`),_.value==="vertical"&&(T.tooltip+=y.value==="right"?` ${T.tooltipRight}`:` ${T.tooltipLeft}`),T})}}(e),o=function(c,d,p){const{format:m,step:v}=Ss(c),y=p.value,_=p.classList,S=Ee(()=>m&&m.value?typeof m.value=="function"?{to:m.value}:Px({...m.value}):Px({decimals:v.value>=0?0:2})),T=Ee(()=>Array.isArray(y.value)?y.value.map(C=>S.value):S.value);return{tooltipFormat:S,tooltipsFormat:T,tooltipsMerge:(C,O,P)=>{var I=getComputedStyle(C).direction==="rtl",N=C.noUiSlider.options.direction==="rtl",M=C.noUiSlider.options.orientation==="vertical",D=C.noUiSlider.getTooltips(),H=C.noUiSlider.getOrigins();D.forEach(function(Z,te){Z&&H[te].appendChild(Z)}),C.noUiSlider.on("update",function(Z,te,Y,ee,le){var oe=[[]],pe=[[]],ge=[[]],Ce=0;D[0]&&(oe[0][0]=0,pe[0][0]=le[0],ge[0][0]=S.value.to(parseFloat(Z[0])));for(var ue=1;ueO)&&(oe[++Ce]=[],ge[Ce]=[],pe[Ce]=[]),D[ue]&&(oe[Ce].push(ue),ge[Ce].push(S.value.to(parseFloat(Z[ue]))),pe[Ce].push(le[ue]));oe.forEach(function(ie,X){for(var fe=ie.length,me=0;me{D[de].classList.contains(Pe)&&D[de].classList.remove(Pe)})}else D[de].style.display="none",_.value.tooltipHidden.split(" ").forEach(Pe=>{D[de].classList.add(Pe)})}})})}}}(e,0,{value:i.value,classList:n.classList}),l=function(c,d,p){const{orientation:m,direction:v,tooltips:y,step:_,min:S,max:T,merge:C,id:O,disabled:P,options:I,classes:N,format:M,lazy:D,ariaLabelledby:H,aria:Z}=Ss(c),te=p.value,Y=p.initialValue,ee=p.tooltipsFormat,le=p.tooltipsMerge,oe=p.tooltipFormat,pe=p.classList,ge=Ae(null),Ce=Ae(null),ue=Ae(!1),ie=Ee(()=>{let Pe={cssPrefix:"",cssClasses:pe.value,orientation:m.value,direction:v.value,tooltips:!!y.value&&ee.value,connect:"lower",start:ku(te.value)?S.value:te.value,range:{min:S.value,max:T.value}};if(_.value>0&&(Pe.step=_.value),Array.isArray(te.value)&&(Pe.connect=!0),H&&H.value||Z&&Object.keys(Z.value).length){let we=Array.isArray(te.value)?te.value:[te.value];Pe.handleAttributes=we.map(De=>Object.assign({},Z.value,H&&H.value?{"aria-labelledby":H.value}:{}))}return M.value&&(Pe.ariaFormat=oe.value),Pe}),X=Ee(()=>{let Pe={id:O&&O.value?O.value:void 0};return P.value&&(Pe.disabled=!0),Pe}),fe=Ee(()=>Array.isArray(te.value)),me=()=>{let Pe=Ce.value.get();return Array.isArray(Pe)?Pe.map(we=>parseFloat(we)):parseFloat(Pe)},de=function(Pe){let we=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];Ce.value.set(Pe,we)},ye=Pe=>{d.emit("input",Pe),d.emit("update:modelValue",Pe),d.emit("update",Pe)},ze=()=>{Ce.value=YU.create(ge.value,Object.assign({},ie.value,I.value)),y.value&&fe.value&&C.value>=0&&le(ge.value,C.value," - "),Ce.value.on("set",()=>{const Pe=me();d.emit("change",Pe),d.emit("set",Pe),D.value&&ye(Pe)}),Ce.value.on("update",()=>{if(!ue.value)return;const Pe=me();fe.value&&Lx(te.value,Pe)||!fe.value&&te.value==Pe?d.emit("update",Pe):D.value||ye(Pe)}),Ce.value.on("start",()=>{d.emit("start",me())}),Ce.value.on("end",()=>{d.emit("end",me())}),Ce.value.on("slide",()=>{d.emit("slide",me())}),Ce.value.on("drag",()=>{d.emit("drag",me())}),ge.value.querySelectorAll("[data-handle]").forEach(Pe=>{Pe.onblur=()=>{ge.value&&pe.value.focused.split(" ").forEach(we=>{ge.value.classList.remove(we)})},Pe.onfocus=()=>{pe.value.focused.split(" ").forEach(we=>{ge.value.classList.add(we)})}}),ue.value=!0},st=()=>{Ce.value.off(),Ce.value.destroy(),Ce.value=null},Oe=(Pe,we)=>{ue.value=!1,st(),ze()};return Rt(ze),ds(st),ft(fe,Oe,{immediate:!1}),ft(S,Oe,{immediate:!1}),ft(T,Oe,{immediate:!1}),ft(_,Oe,{immediate:!1}),ft(m,Oe,{immediate:!1}),ft(v,Oe,{immediate:!1}),ft(y,Oe,{immediate:!1}),ft(C,Oe,{immediate:!1}),ft(M,Oe,{immediate:!1,deep:!0}),ft(I,Oe,{immediate:!1,deep:!0}),ft(N,Oe,{immediate:!1,deep:!0}),ft(te,(Pe,we)=>{we&&(typeof we=="object"&&typeof Pe=="object"&&Pe&&Object.keys(we)>Object.keys(Pe)||typeof we=="object"&&typeof Pe!="object"||ku(Pe))&&Oe()},{immediate:!1}),ft(te,Pe=>{if(ku(Pe))return void de(S.value,!1);let we=me();fe.value&&!Array.isArray(we)&&(we=[we]),(fe.value&&!Lx(Pe,we)||!fe.value&&Pe!=we)&&de(Pe,!1)},{deep:!0}),{slider:ge,slider$:Ce,isRange:fe,sliderProps:X,init:ze,destroy:st,refresh:Oe,update:de,reset:()=>{ye(Y.value)}}}(e,t,{value:i.value,initialValue:i.initialValue,tooltipFormat:o.tooltipFormat,tooltipsFormat:o.tooltipsFormat,tooltipsMerge:o.tooltipsMerge,classList:n.classList});return{...n,...o,...l}}};cg.render=function(e,t,i,n,o,l){return B(),G("div",Dc(e.sliderProps,{ref:"slider"}),null,16)},cg.__file="src/Slider.vue";const UU={key:0,class:"ps-2"},GU={key:1,class:"bg-white"},XU={class:"d-flex mb-1 flex-center",style:{height:"25px"}},KU={key:0,class:"bi bi-funnel-fill bb text-primary"},qU={key:1,class:"bi bi-funnel bb"},ZU={style:{width:"100px"},class:"me-3"},JU={key:1,class:"me-1"},QU={class:"text-secondary"},e5={key:2,class:"ms-2 text-secondary"},t5={class:"d-flex mt-1 mb-1"},i5=ot({__name:"Similarity",props:{image:{},width:{},height:{},similarGroup:{},visibleProperties:{},preview:{}},setup(e){const t=ji(),i=zh(),n=$t(),o=e,l=o.similarGroup??new Qo;l.setSha1Mode(!0);const c=Ae(!0),d=Ae(null),p=Ae(null),m=ti({min:0,max:100,maxIsBest:!0,values:[80,100],description:""}),v=Ee(()=>Object.keys(o.visibleProperties).map(C=>n.properties[C]));Ee(()=>i.defaultActions.similar),Ee(()=>({instanceIds:[o.image.id]}));async function y(){if(!i.hasSimilaryFunction)return;const C=i.defaultActions.similar,O=i.getContext(C);O.instanceIds=[o.image.id];const P=await i.getSimilarImages(O);if(!P||!P.groups)return;let N=KR(P.groups)[0];N.scores&&qR(N),p.value=N,T(N.scores),_()}function _(){if(!p.value)return;let C=pn(p.value);if(c.value){let O={};t.getTabManager().collection.filterManager.result.images.forEach(P=>O[P.id]=!0),C.images=C.images.filter(P=>O[P.id])}C.images=C.images.filter(O=>C.scores.valueIndex[O.id]>=m.values[0]&&C.scores.valueIndex[O.id]<=m.values[1]),l.emptyRoot(),l.addCustomGroups(0,[C],!0),d.value&&(d.value.computeLines(),d.value.scrollTo("0"))}function S(){c.value=!c.value}function T(C){let O=C.min!=m.min,P=C.max!=m.max,I=C.maxIsBest!=m.maxIsBest;if(O&&P&&I)return;m.min=C.min,m.max=C.max,m.maxIsBest=C.maxIsBest,m.description=C.description;let N=m.values[0],M=m.values[1];(N>C.max||NC.max||Mo.image,y),ft(()=>m.values,_),ft(()=>o.width,_),ft(c,_),(C,O)=>Ue(i).hasSimilaryFunction?(B(),G("div",GU,[z("div",XU,[Ue(l).hasResult()?(B(),ct(qc,{key:0,"model-value":Ue(l).result.root.view.selected,"onUpdate:modelValue":O[0]||(O[0]=P=>Ue(l).toggleAll()),style:{"margin-top":"-1px"}},null,8,["model-value"])):Me("",!0),O[3]||(O[3]=z("div",{class:"sep ms-1 me-1"},null,-1)),$e(Ai,{message:"modals.image.main_filter_tooltip"},{default:dt(()=>[z("div",{class:"text-secondary",onClick:S},[c.value?(B(),G("span",KU)):(B(),G("span",qU))])]),_:1}),O[4]||(O[4]=z("div",{class:"sep ms-1 me-1"},null,-1)),O[5]||(O[5]=z("div",{style:{"margin-left":"6px"},class:"me-3"},"Images Similaires",-1)),z("div",ZU,[$e(Ue(cg),{modelValue:m.values,"onUpdate:modelValue":O[1]||(O[1]=P=>m.values=P),min:m.min,max:m.max,step:-1,direction:"ltr",merge:.4,showTooltip:"drag"},null,8,["modelValue","min","max"])]),m.description.length?(B(),G("div",JU,[$e(Ai,{message:m.description},{default:dt(()=>O[2]||(O[2]=[z("i",{class:"bi bi-info-circle"},null,-1)])),_:1},8,["message"])])):Me("",!0),z("div",QU,"("+Ne(m.values[0])+" - "+Ne(m.values[1])+")",1),Ue(l).hasResult()?(B(),G("div",e5," ("+Ne(Ue(l).result.root.children[0].children.length)+" images) ",1)):Me("",!0)]),z("div",t5,[O[6]||(O[6]=z("div",{class:"me-2",style:{"margin-left":"2px"}},"Search function",-1)),z("div",null,[$e(aE,{action:"similar",onChanged:y})])]),$e(gE,{class:"","image-size":70,height:o.height-60,width:o.width,"group-manager":Ue(l),properties:v.value,"hide-options":!1,"hide-group":!0,ref_key:"scrollerElem",ref:d,preview:o.preview},null,8,["height","width","group-manager","properties","preview"])])):(B(),G("div",UU,"No Similary Function found."))}});function n5(e){return Jd()?(Sg(e),!0):!1}function s5(e){return typeof e=="function"?e():Ue(e)}const r5=typeof window<"u";function Mx(e){var t;const i=s5(e);return(t=i==null?void 0:i.$el)!=null?t:i}const o5=r5?window:void 0;function a5(){const e=Ae(!1);return Xi()&&Rt(()=>{e.value=!0}),e}function l5(e){const t=a5();return Ee(()=>(t.value,!!e()))}var Nx=Object.getOwnPropertySymbols,c5=Object.prototype.hasOwnProperty,u5=Object.prototype.propertyIsEnumerable,d5=(e,t)=>{var i={};for(var n in e)c5.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&Nx)for(var n of Nx(e))t.indexOf(n)<0&&u5.call(e,n)&&(i[n]=e[n]);return i};function h5(e,t,i={}){const n=i,{window:o=o5}=n,l=d5(n,["window"]);let c;const d=l5(()=>o&&"ResizeObserver"in o),p=()=>{c&&(c.disconnect(),c=void 0)},m=Ee(()=>Array.isArray(e)?e.map(_=>Mx(_)):[Mx(e)]),v=ft(m,_=>{if(p(),d.value&&o){c=new ResizeObserver(t);for(const S of _)S&&c.observe(S,l)}},{immediate:!0,flush:"post",deep:!0}),y=()=>{p(),v()};return n5(y),{isSupported:d,stop:y}}const f5=ot({__name:"Resizable",props:{disabled:Boolean,startWidth:Number},emits:{resize:Number},setup(e,{emit:t}){const i=e,n=t,o=Ae(null),l=Ae(""),c=Ae(!1),d=Ee(()=>{const p=["common"];return p.push("horizontal"),p});return Rt(()=>{o.value.style.width=i.startWidth+"px",h5(o.value,p=>{const m=p[0],{width:v,height:y}=m.contentRect;l.value=`width: ${v}, height: ${y}`,n("resize",o.value.clientWidth+1)})}),ft(()=>i.startWidth,()=>o.value.style.width=i.startWidth+"px"),(p,m)=>(B(),G("div",{class:mt(d.value),ref_key:"elem",ref:o,onMouseenter:m[0]||(m[0]=v=>c.value=!0),onMouseout:m[1]||(m[1]=v=>c.value=!1)},[xi(p.$slots,"default",{},void 0,!0)],34))}});const p5=Pt(f5,[["__scopeId","data-v-6370033b"]]),g5={class:"m-0 p-0"},m5={class:"header-row d-flex flex-row ps-1"},v5={key:0,class:"me-1"},b5={key:1},y5={key:0,class:"separator"},x5={style:{height:"30px"}},w5=ot({__name:"TableHeader",props:{properties:Array,missingWidth:Number,showImage:Boolean,manager:Qo,currentGroup:Object},setup(e){const t=ji(),i=e,n=Ee(()=>t.getTab()),o=Ae(0),l=Ee(()=>i.missingWidth>0);function c(m,v){n.value.propertyOptions[m].size=v}const d=Ee(()=>{const m=[];return i.currentGroup.id!=null&&(i.currentGroup.meta.propertyValues,Wp(i.currentGroup).forEach(y=>m.push(...y.meta.propertyValues))),m});function p(){o.value=i.manager.result.root.images.length}return Rt(()=>i.manager.onChange.addListener(p)),ds(()=>i.manager.onChange.removeListener(p)),(m,v)=>(B(),G("div",g5,[z("div",m5,[i.manager.hasResult()?(B(),G("span",v5,"Images: "+Ne(o.value),1)):Me("",!0),i.currentGroup.id!=null?(B(),G("span",b5," ("+Ne(i.currentGroup.images.length)+")",1)):Me("",!0),v[0]||(v[0]=z("div",{class:"ms-3 me-1"},null,-1)),i.currentGroup.id?(B(!0),G(lt,{key:2},Ot(d.value,(y,_)=>(B(),G(lt,null,[$e(jm,{class:"",value:y},null,8,["value"]),_(B(),ct(p5,{"start-width":n.value.propertyOptions[y.id].size-(l.value&&_==i.properties.length-1?1:0),class:mt(["header-cell",l.value&&_==i.properties.length-1?"":"right-border"]),onResize:S=>c(y.id,S)},{default:dt(()=>[$e(cs,{type:y.type,class:"ms-1"},null,8,["type"]),Gt(" "+Ne(y.name),1)]),_:2},1032,["start-width","class","onResize"]))),256)),l.value?(B(),G("div",{key:1,class:"header-cell right-border",style:Ct({width:i.missingWidth+"px",height:"30px"})},null,4)):Me("",!0)])]))}});const _5=Pt(w5,[["__scopeId","data-v-4870e592"]]),S5={key:0,class:"bi bi-caret-right-fill",style:{"margin-left":"1px"}},E5={key:1,class:"bi bi-caret-down-fill",style:{"margin-left":"1px"}},C5={class:"me-2"},A5={key:0,class:"separator"},k5=ot({__name:"GroupLine",props:{item:{},width:{},selectedImages:{}},emits:["close:group","open:group","toggle:group"],setup(e,{emit:t}){const i=e,n=t,o=Ee(()=>Wp(i.item.data).some(p=>p.view.closed)||i.item.data.view.closed);function l(){o.value?n("open:group",i.item.data.id):n("close:group",i.item.data.id)}const c=Ee(()=>!i.item.data.images.some(p=>!i.selectedImages.value[p.id])),d=Ee(()=>{const p=[];return i.item.data.id!=null&&(p.push(...i.item.data.meta.propertyValues),Wp(i.item.data).forEach(v=>p.push(...v.meta.propertyValues))),p});return(p,m)=>(B(),G("div",{class:"d-flex flex-row group-row m-0",style:Ct({width:i.width-0+"px",height:i.item.size+"px"})},[z("div",{onClick:l,class:"align-self-center me-2",style:{cursor:"pointer"}},[o.value?(B(),G("i",S5)):(B(),G("i",E5))]),z("div",C5,[$e(qc,{"model-value":c.value,"onUpdate:modelValue":m[0]||(m[0]=v=>n("toggle:group",i.item.data.id))},null,8,["model-value"])]),(B(!0),G(lt,null,Ot(d.value,(v,y)=>(B(),G(lt,null,[$e(jm,{class:"",value:v},null,8,["value"]),yn.getTab()),m=Ee(()=>o.item.type=="pile"?o.item.data.images[0]:o.item.data),v=Ee(()=>{if(o.item.type=="pile")return o.item.data}),y=Ee(()=>o.showImage?Math.max(C.value.h+4,30):0),_=Ee(()=>{let H=0;for(let Z in T)T[Z]>H&&(H=T[Z]);return o.showImage?Math.max(H,y.value):H+4}),S=Ee(()=>{const H={};for(let Z of o.properties){let te=0;for(let Y in T)T[Y]>te&&Number(Z.id)!=Number(Y)&&(te=T[Y]);o.showImage&&(te=Math.max(te,C.value.h+4)),te=Math.max(te,o.showImage?26:24),H[Z.id]=te}return H}),T=ti({});Ee(()=>{const H={};return o.properties.forEach(Z=>H[Z.id]==p.value.propertyOptions[Z.id].size),H});const C=Ee(()=>{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}}),O=Ee(()=>{const H={};return o.properties.forEach(Z=>{H[Z.id]=p.value.propertyOptions[Z.id].size-7,Z.id==o.properties[o.properties.length-1].id&&(o.missingWidth>0&&(H[Z.id]+=o.missingWidth),H[Z.id]-=15)}),H}),P=Ee(()=>{const H=["header-cell"];return o.item.index==0&&H.push("top-border"),H});function I(H){console.log(c.value[H]),c.value[H].focus()}let N=!1;function M(){N||(N=!0,Ft(()=>{l("resizeHeight",_.value),N=!1}))}function D(){i.showModal(Ri.IMAGE,o.item.iterator)}return Rt(M),ft(_,M),ft(()=>o.properties,()=>{console.log("cleanup");const H=new Set(o.properties.map(Z=>Z.id));Object.keys(T).filter(Z=>!H.has(Number(Z))).forEach(Z=>delete T[Z])}),(H,Z)=>(B(),G("div",{class:"d-flex",style:Ct({height:o.item.size+"px"})},[z("div",{class:"left-border",style:Ct({height:o.item.size+"px"})},null,4),e.showImage?(B(),G("div",{key:0,class:mt([P.value,"p-0 m-0"]),style:Ct({width:p.value.imageSize+"px",position:"relative",height:_.value+"px",cursor:"pointer"}),onMouseenter:Z[1]||(Z[1]=te=>d.value=!0),onMouseleave:Z[2]||(Z[2]=te=>d.value=!1),onClick:D},[$e(Fm,{image:m.value},{default:dt(()=>{var te;return[$e(Xc,{image:m.value,width:p.value.imageSize-1,height:_.value-2},null,8,["image","width","height"]),d.value||o.selected?(B(),G("div",{key:0,class:"h-100 box-shadow",style:Ct([{width:p.value.imageSize+"px"},{position:"absolute",top:"0",left:"0",right:"0px",bottom:"0px"}])},null,4)):Me("",!0),d.value||o.selected?(B(),ct(qc,{key:1,"model-value":o.selected,"onUpdate:modelValue":Z[0]||(Z[0]=Y=>l("toggle:image",{groupId:e.item.groupId,imageIndex:e.item.index})),class:"select","light-mode":!0},null,8,["model-value"])):Me("",!0),((te=v.value)==null?void 0:te.images.length)>1?(B(),G("div",I5,Ne(v.value.images.length),1)):Me("",!0)]}),_:1},8,["image"])],38)):Me("",!0),(B(!0),G(lt,null,Ot(o.properties,(te,Y)=>(B(),G("div",{class:"container22 overflow-hidden",style:Ct([{width:O.value[te.id]+7+"px"},{height:"100%",padding:"0px 3px","font-size":"14px"}]),onClick:ee=>I(Y)},[$e(sE,{instance:m.value,property:te,"min-height":S.value[te.id],width:O.value[te.id],"onUpdate:height":ee=>T[te.id]=ee,ref_for:!0,ref_key:"inputElems",ref:c,onClick:Z[3]||(Z[3]=li(()=>{},["stop"]))},null,8,["instance","property","min-height","width","onUpdate:height"])],12,O5))),256))],4))}});const Rx=Pt(P5,[["__scopeId","data-v-9c4bb153"]]),L5={key:0},M5={key:1},N5={key:2},R5={key:3,style:{height:"1000px"}},D5=ot({__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,o=Ae(!0),l=Ee(()=>{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(){o.value=!1,Ft(()=>Ft(()=>o.value=!0))}return ft(()=>i.item.id,c),(d,p)=>o.value?(B(),G(lt,{key:0},[d.item.type=="group"?(B(),G("div",L5,[$e(T5,{"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"])])):Me("",!0),d.item.type=="image"?(B(),G("div",M5,[$e(Rx,{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"])])):Me("",!0),d.item.type=="pile"?(B(),G("div",N5,[$e(Rx,{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"])])):Me("",!0),d.item.type=="filler"?(B(),G("div",R5)):Me("",!0)],64)):Me("",!0)}});const $5=Pt(D5,[["__scopeId","data-v-13a08093"]]),F5=ot({__name:"GridScroller",props:{manager:Qo,height:Number,width:Number,selectedProperties:Array,showImages:Boolean,hideIfModal:Boolean},setup(e,{expose:t}){const i=ji(),n=en(),o=e;t({computeLines:N,clear:ue});const l=Ae(60),c=Ae([]),d={},p=Ae(null),m=ti({});on(null);const v=Ee(()=>o.selectedProperties.filter(X=>X.mode==zi.sha1||o.manager.state.sha1Mode==!1)),y=Ee(()=>{const X=i.getTab().propertyOptions;let fe=v.value.map(me=>{var de;return((de=X[me.id])==null?void 0:de.size)??0}).reduce((me,de)=>me+de,0);return o.showImages&&(fe+=i.getTab().imageSize),fe}),_=Ee(()=>Math.max(y.value,o.width)),S=Ee(()=>o.width-y.value),T=Ee(()=>o.height-l.value),C=Ee(()=>({height:T.value+"px",width:_.value+"px"})),O=Ee(()=>o.hideIfModal&&(n.openModalId==Ri.IMAGE||n.openModalId==Ri.TAG));let P=[],I=0;function N(){console.time("Table compute lines");const X=[];let fe,me=o.manager.getImageIterator(void 0,void 0,{ignoreClosed:!0});for(;me;){const de=me.group;fe!=de.id&&de.id!=0&&(X.push(D(de)),fe=de.id),!de.view.closed&&de.images.length&&(me.images,de.subGroupType!=Sn.Sha1?X.push(H(me,de.id,me.imageIdx)):X.push(Z(me))),me=me.nextImages()}X.push({id:"__filler__",type:"fillter",size:300,index:X.length}),P=X,M(X,Y),p.value.updateVisibleItems(!0),console.timeEnd("Table compute lines")}function M(X,fe){const me=Math.max(fe-o.height*2,0),de=Math.max(fe+o.height*3,o.height*3);let ye=[],ze=0,st,Oe=0;for(const Pe of X)ze+Pe.size>me&&(ze=de&&(Oe+=Pe.size),ze+=Pe.size;ye=[{id:"__pre__",type:"fillter",size:st,index:X.length},...ye,{id:"__post__",type:"fillter",size:Oe,index:X.length}],c.value=ye,I=fe,p.value&&p.value.scrollToPosition(fe)}function D(X){return{id:X.id,data:X,type:"group",size:35,nbClusters:10,groupId:X.id}}function H(X,fe,me){const de=X.image;return{id:fe+"-img:"+String(de.id),data:de,type:"image",size:d[de.id]??i.getTab().imageSize+4,index:me,groupId:fe,iterator:X}}function Z(X){const fe=X.sha1Group;return{id:fe.id+"-sha1:"+String(fe.images[0].sha1),data:fe,type:"pile",size:d[fe.images[0].id]??i.getTab().imageSize+4,iterator:X}}function te(X,fe){X.size!=fe&&(X.size=fe,X.type=="image"&&(d[X.data.id]=X.size))}let Y=0,ee=0;function le(){let X=p.value.getScroll().start,fe=p.value.sizes,me=c.value.length,de=me-1;ee>de&&(Y=0,ee=0);let ye=0;if(X>Y)for(let ze=ee;zeX));ze++);else for(let ze=ee;ze>=0&&(ye=ze,!(fe[ze].accumulator-fe[ze].sizeo.height&&M(P,X)}function oe(X){o.manager.openGroup(X,!0)}function pe(X){o.manager.closeGroup(X,!0)}function ge(X,fe){const me=o.manager.getImageIterator(X,fe);o.manager.toggleImageIterator(me,Mi.shift)}function Ce(X){const fe=o.manager.getGroupIterator(X);o.manager.toggleGroupIterator(fe,Mi.shift)}function ue(){c.value=[]}function ie(){N()}return Rt(()=>{o.manager.onChange.addListener(ie),o.manager.clearCustomGroups(!0)}),ds(()=>{o.manager.onChange.removeListener(ie)}),ft(()=>i.getTab().id,()=>{Ft(()=>{M(P,0)})}),ft(()=>i.getTab().imageSize,(X,fe)=>{let me=0,de=0;for(const st of P){if(de>=Y){me=st.index;break}de+=st.size}const ye=new Set(c.value.map(st=>st.index));P.filter(st=>!ye.has(st.index)).forEach(st=>st.size=X);let ze=0;de=0;for(const st of P){if(st.index==me){ze=de;break}de+=st.size}M(P,ze)}),(X,fe)=>(B(),G("div",{class:"grid-container overflow-hidden",style:Ct({width:C.value.width})},[$e(_5,{manager:o.manager,properties:v.value,"missing-width":S.value,"show-image":o.showImages,"current-group":m,class:"p-0 m-0"},null,8,["manager","properties","missing-width","show-image","current-group"]),$e(Ue(Xo),{items:c.value,"key-field":"id",ref_key:"scroller",ref:p,style:Ct(C.value),emitUpdate:!0,"page-mode":!1,prerender:400,class:"p-0 m-0",onScroll:le,onScrollStart:le},{default:dt(({item:me,index:de,active:ye})=>[ye&&!O.value?(B(),ct($5,{key:0,item:me,properties:v.value,width:_.value,"show-images":o.showImages,"selected-images":o.manager.selectedImages,"missing-width":S.value,"onOpen:group":oe,"onClose:group":pe,"onToggle:image":fe[0]||(fe[0]=({groupId:ze,imageIndex:st})=>ge(ze,st)),"onToggle:group":Ce,onResizeHeight:ze=>te(me,ze)},null,8,["item","properties","width","show-images","selected-images","missing-width","onResizeHeight"])):Me("",!0)]),_:1},8,["items","style"])],4))}});const V5=ot({__name:"Instances",props:{image:{},width:{},height:{},groupManager:{}},setup(e){const t=$t(),i=e,n=Ee(()=>{const l=[t.properties[Od.id]];return l.push(...t.propertyList.filter(c=>c.mode==zi.id&&c.id!=Od.id)),l});function o(){i.groupManager.clear(),i.groupManager.setSha1Mode(!1);const l=t.sha1Index[i.image.sha1];i.groupManager.group(l,void 0,!0)}return Rt(o),ft(()=>i.image,o),(l,c)=>i.groupManager.hasResult()?(B(),G("div",{key:0,class:"m-0 p-0",style:Ct([{"overflow-x":"scroll","overflow-y":"hidden"},{width:i.width+"px",height:i.height+"px"}])},[$e(F5,{"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)):Me("",!0)}}),z5={class:"view-selection"},H5={class:"d-flex"},B5={class:"d-flex overflow-hidden"},W5={key:0,class:"selection-stamp",style:{"line-height":"18px",margin:"3px 5px 0 0"}},j5={key:0,class:"p-1"},Y5={key:1,class:"p-2"},U5=ot({__name:"MiddleCol",props:{image:{},width:{},height:{},mode:{},groupManager:{},visibleProperties:{},preview:{}},emits:["update:mode"],setup(e,{emit:t}){const i=e,n=t;function o(l){n("update:mode",l)}return(l,c)=>(B(),G(lt,null,[z("div",z5,[z("div",H5,[z("div",B5,[$e(Ai,{message:"modals.image.similar_images_tooltip"},{default:dt(()=>[z("div",{class:mt(["view-mode ps-2 pe-2 btn-icon",i.mode==0?"selected":""]),onClick:c[0]||(c[0]=d=>o(0))},Ne(l.$t("modals.image.similar_images")),3)]),_:1}),(B(),ct(Ai,{key:0,message:"modals.image.unique_properties_tooltip"},{default:dt(()=>[z("div",{class:mt(["view-mode ps-2 pe-2 btn-icon",i.mode==1?"selected":""]),onClick:c[1]||(c[1]=d=>o(1))},Ne(l.$t("modals.image.unique_properties")),3)]),_:1}))]),c[3]||(c[3]=z("div",{class:"flex-grow-1"},null,-1)),Object.keys(l.groupManager.selectedImages.value).length>0?(B(),G("div",W5,[$e(kY,{"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"])])):Me("",!0)])]),i.mode==0?(B(),G("div",j5,[$e(i5,{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"])])):(B(),G("div",Y5,[$e(V5,{image:l.image,height:i.height-40,width:i.width-10,"group-manager":l.groupManager},null,8,["image","height","width","group-manager"])]))],64))}});const G5=Pt(U5,[["__scopeId","data-v-990feecb"]]),X5={class:"d-flex w-100 h-100 justify-content-center align-items-center"},K5={key:0,class:"modal-content d-flex flex-column h-100"},q5={class:"d-flex"},Z5={class:"flex-grow-1"},J5=ot({__name:"Modal2",props:{id:{},layer:{},maxWidth:{},maxHeight:{},noTitle:{type:Boolean},titleStyle:{}},emits:["resize","show","hide"],setup(e,{expose:t,emit:i}){const n=Cc(),o=en(),l=e,c=i;t({hide:P});const d=Ae(null),p=Ae(0),m=Ae(0),v=Ae(!1),y=Ee(()=>m.value-56),_=Ee(()=>p.value-56),S=Ee(()=>{if(!l.titleStyle)return"title";if(l.titleStyle==1)return"title1"}),T=Ee(()=>o.modalData),C=Ee(()=>({width:y.value+"px",height:_.value+"px"})),O=Ee(()=>({width:"100%",height:"100%",overflowY:"auto"}));function P(){v.value&&(v.value=!1,c("hide"))}function I(){v.value=!0,Ft(()=>d.value.focus()),c("show")}function N(){m.value=window.innerWidth,p.value=window.innerHeight,l.maxWidth&&l.maxWidth+56{window.addEventListener("resize",N),N(),n.registerModal(l.id,l.layer)}),ft(()=>n.openIndex[l.id],(M,D)=>{M?(I(),N()):v.value&&P()}),(M,D)=>v.value?(B(),G("div",{key:0,class:"p-modal",tabindex:"-1",ref_key:"modalElem",ref:d,onClick:D[2]||(D[2]=H=>Ue(o).hideModal(l.id)),onKeydown:D[3]||(D[3]=hi(H=>Ue(o).hideModal(l.id),["esc"]))},[z("div",X5,[z("div",{class:"modal-container",style:Ct(C.value),onClick:D[1]||(D[1]=li(()=>{},["stop"]))},[v.value?(B(),G("div",K5,[l.noTitle?Me("",!0):(B(),G("div",{key:0,class:mt(S.value)},[z("div",q5,[z("div",Z5,[xi(M.$slots,"title",{},void 0,!0)]),z("div",{class:"close bi bi-x btn-icon",onClick:D[0]||(D[0]=H=>Ue(o).hideModal(l.id))})])],2)),z("div",{class:"body flex-grow-1",style:Ct(O.value)},[xi(M.$slots,"content",{data:T.value,width:y.value,height:_.value},void 0,!0)],4)])):Me("",!0)],4)])],544)):Me("",!0)}});const Um=Pt(J5,[["__scopeId","data-v-6f514083"]]),Q5={key:0,class:"h-100"},eG={class:"d-flex h-100"},tG={class:"bordered"},iG=ot({__name:"ImageModal",setup(e){const t=en(),i=$t(),n=new Qo,o=Ae(null),l=Ae(null),c=Ae(0),d=Ae(0),p=Ae(0),m=ti({}),v=Ae([]),y=Ae(null),_=on({}),S=Ee(()=>t.openModalId==Ri.IMAGE),T=Ee(()=>{var oe;return(oe=y.value)==null?void 0:oe.image}),C=Ee(()=>t.modalData),O=Ee(()=>v.value.length>0);pr("nextImage",te),pr("prevImage",Y),pr("showHistory",O);function P(){l.value&&(c.value=l.value.clientWidth,d.value=l.value.clientHeight)}function I(){_.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 N(){_.value={}}function M(oe){if(p.value!=0)return;const pe=i.properties[oe.propertyId],ge=i.instances[oe.instanceId].properties[pe.id];let Ce=n.result.root.images;Object.keys(n.selectedImages.value).length&&(Ce=Object.keys(n.selectedImages.value).map(ue=>i.instances[ue])),pe.type==Xe.multi_tags?i.setTagPropertyValue(pe.id,Ce,ge):i.setPropertyValue(pe.id,Ce,ge),m[pe.id]=!0}function D(){v.value=[]}function H(){y.value=void 0,v.value=[],n.clearSelection()}async function Z(oe){t.openModalId==Ri.IMAGE&&(y.value&&(v.value.push(y.value),await Ft(),o.value&&(o.value.scrollTop=o.value.scrollHeight)),y.value=oe)}function te(){const oe=y.value.nextImages();oe&&(y.value=oe,ee())}function Y(){const oe=y.value.prevImages();oe&&(y.value=oe,ee())}function ee(){v.value=[]}function le(oe){y.value=v.value[oe],v.value.splice(oe)}return ft(O,()=>Ft(P)),ft(l,P),ft(C,Z),ft(()=>Mi.left,oe=>{S.value&&oe&&!O.value&&Y()}),ft(()=>Mi.right,oe=>{S.value&&oe&&!O.value&&te()}),(oe,pe)=>(B(),ct(Um,{id:Ue(Ri).IMAGE,onResize:P,onShow:D,onHide:H},{title:dt(()=>[z("b",null,"ID: "+Ne(T.value.id),1),Gt(" | "+Ne(T.value.width)+" x "+Ne(T.value.height)+" | "+Ne(T.value.name),1)]),content:dt(({data:ge})=>[T.value?(B(),G("div",Q5,[z("div",eG,[$e(aY,{image:y.value,width:500,"image-height":200,groupManager:Ue(n),"visible-properties":m,onPaint:M,onHover:I,onHoverEnd:N},null,8,["image","groupManager","visible-properties"]),z("div",{class:"flex-grow-1 bg-white h-100 overflow-hidden",ref_key:"colElem",ref:l},[$e(G5,{"group-manager":Ue(n),height:d.value,width:c.value,image:T.value,mode:p.value,"visible-properties":m,"onUpdate:mode":pe[0]||(pe[0]=Ce=>p.value=Ce),preview:_.value},null,8,["group-manager","height","width","image","mode","visible-properties","preview"])],512),v.value.length>0?(B(),G("div",{key:0,class:"history text-center",ref_key:"historyElem",ref:o},[z("b",null,Ne(oe.$t("modals.image.history")),1),(B(!0),G(lt,null,Ot(v.value,(Ce,ue)=>(B(),G("div",tG,[$e(Xc,{image:Ce.image,width:100,height:100,onClick:ie=>le(ue)},null,8,["image","onClick"])]))),256))],512)):Me("",!0)])])):Me("",!0)]),_:1},8,["id"]))}});const nG=Pt(iG,[["__scopeId","data-v-a2b61aed"]]),sG={key:0,class:"p-modal"},rG={key:0,class:"w-100 h-100",style:{padding:"28px"}},oG=ot({__name:"ImageZoomModal",setup(e){const t=Ee(()=>hr.image??{width:0,height:0}),i=ti({width:500,height:500});Rt(n),Rt(()=>window.addEventListener("resize",n));function n(){i.width=window.innerWidth,i.height=window.innerHeight}return(o,l)=>Ue(hr).open?(B(),G("div",sG,[t.value?(B(),G("div",rG,[$e(Xc,{image:t.value,width:i.width-56,height:i.height-56,border:4,"is-zoom":!0},null,8,["image","width","height"])])):Me("",!0)])):Me("",!0)}});const aG=Pt(oG,[["__scopeId","data-v-a1a906ff"]]),lG={key:0,class:"modal-content d-flex flex-column h-100"},cG={key:0,class:"title"},uG={class:"d-flex"},dG={class:"flex-grow-1"},hG=ot({__name:"Modal",props:{id:{},maxWidth:{},maxHeight:{},noTitle:{type:Boolean}},emits:["resize","show","hide"],setup(e,{expose:t,emit:i}){const n=en(),o=e,l=i;t({hide:O});const c=Ae(null);let d=null;const p=Ae(0),m=Ae(0),v=Ae(!1),y=Ee(()=>m.value-56),_=Ee(()=>p.value-56),S=Ee(()=>n.modalData),T=Ee(()=>({maxWidth:y.value+"px",height:_.value+"px"})),C=Ee(()=>({width:"100%",height:"100%",overflowY:"scroll"}));function O(){d.hide()}function P(){v.value=!0,d.show()}function I(){v.value=!0,l("show")}function N(){v.value=!1,n.openModalId==o.id&&n.hideModal(),l("hide")}function M(){m.value=window.innerWidth,p.value=window.innerHeight,o.maxWidth&&o.maxWidth+56{d=Go.getOrCreateInstance(c.value),c.value.addEventListener("hide.bs.modal",N),c.value.addEventListener("show.bs.modal",I),window.addEventListener("resize",M),M()}),ft(()=>n.openModalId,()=>{n.openModalId==o.id?(P(),M()):v.value&&O()}),(D,H)=>(B(),G("div",{class:"modal",tabindex:"-1",ref_key:"modalElem",ref:c},[z("div",{class:"modal-dialog modal-container",style:Ct(T.value)},[v.value?(B(),G("div",lG,[o.noTitle?Me("",!0):(B(),G("div",cG,[z("div",uG,[z("div",dG,[xi(D.$slots,"title",{},void 0,!0)]),z("div",{class:"close bi bi-x btn-icon",onClick:O})])])),z("div",{class:"body flex-grow-1",style:Ct(C.value)},[xi(D.$slots,"content",{data:S.value},void 0,!0)],4)])):Me("",!0)],4)],512))}});const Bh=Pt(hG,[["__scopeId","data-v-74fd3586"]]),fG={class:"d-flex flex-column p-2"},pG={class:"main-table"},gG={class:""},mG={class:"option-label"},vG={class:"ps-1"},bG=["placeholder"],yG={class:"option-row"},xG={class:"option-label"},wG={class:"d-flex options"},_G={class:"option-row"},SG={class:"option-label"},EG={class:"d-flex options"},CG={class:"option-row"},AG={class:"option-label"},kG={class:"text-center"},TG=["checked"],IG={class:"property-table"},OG={class:"text-center"},PG=["onUpdate:modelValue"],LG={class:"option-row"},MG={class:"option-label"},NG={class:"ps-1"},RG={class:"mt-2 d-flex"},DG={key:0,class:"ms-5 spinner-border",role:"status"},$G=ot({__name:"ExportModal2",setup(e){const t=ji(),i=$t(),n=ti({name:void 0,mode:"instance",selection:"all",key:"id",properties:{},exportImages:!1}),o=Ae(null),l=Ae(!1),c=Ee(()=>d.value.every(C=>n.properties[C.id])),d=Ee(()=>{const C=Object.values(i.properties);C.sort((I,N)=>I.id-N.id);const O=C.filter(I=>I.id<0),P=C.filter(I=>I.id>0);return[O.pop(),...P,...O]}),p=Ee(()=>{const C=t.getTabManager();return Object.keys(C.collection.groupManager.selectedImages.value).length});Ee(()=>{const C=t.getTabManager();return n.mode=="instance"?C.getVisibleProperties().length:C.getVisibleSha1Properties().length});function m(C,O){return C==O?"selected":""}function v(C,O){n[C]=O}function y(){c.value?d.value.forEach(C=>{delete n.properties[C.id]}):d.value.forEach(C=>n.properties[C.id]=!0)}function _(){Object.assign(n,{name:void 0,mode:"instance",selection:"all",key:"id",properties:{},exportImages:!1})}function S(){_(),t.getTabManager().getVisibleProperties().forEach(O=>n.properties[O.id]=!0)}async function T(){const C={exportImages:n.exportImages,properties:void 0,images:void 0,name:void 0,key:"id"};C.properties=Object.keys(n.properties).map(Number).filter(O=>n.properties[O]),C.properties.sort((O,P)=>d.value.findIndex(I=>I.id==O)-d.value.findIndex(I=>I.id==P)),n.name&&n.name!=""&&(C.name=n.name),n.selection=="selected"&&(C.images=Object.keys(t.getTabManager().collection.groupManager.selectedImages.value).map(Number)),n.selection=="filtered"&&(C.images=t.getTabManager().collection.filterManager.result.images.map(O=>O.id)),C.key=n.key,l.value=!0,await I_(100),console.log(C),await aD(C.name,C.images,C.key,C.properties,C.exportImages),l.value=!1,o.value.hide()}return(C,O)=>(B(),ct(Bh,{id:Ue(Ri).EXPORT,onShow:S,ref_key:"modalElem",ref:o},{title:dt(()=>[Gt(Ne(C.$t("modals.export.title")),1)]),content:dt(()=>[z("div",fG,[z("div",null,[z("table",pG,[z("tbody",null,[z("tr",gG,[z("td",mG,Ne(C.$t("modals.export.name")),1),z("td",vG,[Kt(z("input",{type:"text",style:{"line-height":"20px"},placeholder:C.$t("modals.export.name_placeholder"),"onUpdate:modelValue":O[0]||(O[0]=P=>n.name=P)},null,8,bG),[[yi,n.name]])])]),z("tr",yG,[z("td",xG,Ne(C.$t("modals.export.selection_label")),1),z("td",wG,[z("div",{class:mt(["option flex-grow-1",m(n.selection,"all")]),onClick:O[1]||(O[1]=P=>v("selection","all"))},Ne(C.$t("modals.export.selection_all")),3),p.value>0?(B(),G(lt,{key:0},[O[8]||(O[8]=z("div",{class:"separator"},null,-1)),z("div",{class:mt(["option flex-grow-1",m(n.selection,"selected")]),onClick:O[2]||(O[2]=P=>v("selection","selected"))},Ne(C.$t("modals.export.selection_selected"))+" ("+Ne(p.value)+")",3)],64)):Me("",!0),O[9]||(O[9]=z("div",{class:"separator"},null,-1)),z("div",{class:mt(["option flex-grow-1",m(n.selection,"filtered")]),onClick:O[3]||(O[3]=P=>v("selection","filtered"))},Ne(C.$t("modals.export.selection_filtered")),3)])]),z("tr",_G,[z("td",SG,Ne(C.$t("modals.export.key_label")),1),z("td",EG,[z("div",{class:mt(["option flex-grow-1",m(n.key,"id")]),onClick:O[4]||(O[4]=P=>v("key","id"))},Ne(C.$t("modals.export.id")),3),O[10]||(O[10]=z("div",{class:"separator"},null,-1)),z("div",{class:mt(["option flex-grow-1",m(n.key,"local_path")]),onClick:O[5]||(O[5]=P=>v("key","local_path"))},Ne(C.$t("modals.export.local_path")),3),O[11]||(O[11]=z("div",{class:"separator"},null,-1)),z("div",{class:mt(["option flex-grow-1",m(n.key,"global_path")]),onClick:O[6]||(O[6]=P=>v("key","global_path"))},Ne(C.$t("modals.export.global_path")),3)])]),z("tr",CG,[z("td",AG,Ne(C.$t("modals.export.properties_label")),1),z("td",null,[z("table",null,[z("tbody",null,[z("tr",null,[z("td",kG,[z("input",{type:"checkbox",checked:c.value,onInput:y},null,40,TG)]),O[12]||(O[12]=z("td",null,"All",-1))]),(B(!0),G(lt,null,Ot(d.value,P=>(B(),G("tr",IG,[z("td",OG,[Kt(z("input",{type:"checkbox","onUpdate:modelValue":I=>n.properties[P.id]=I},null,8,PG),[[is,n.properties[P.id]]])]),z("td",null,[$e(cs,{type:P.type,class:"me-1"},null,8,["type"]),Gt(Ne(P.name),1)])]))),256))])])])]),z("tr",LG,[z("td",MG,Ne(C.$t("modals.export.export_images")),1),z("td",NG,[Kt(z("input",{type:"checkbox","onUpdate:modelValue":O[7]||(O[7]=P=>n.exportImages=P)},null,512),[[is,n.exportImages]])])])])])]),z("div",RG,[z("span",{class:"base-hover p-1 export-btn",onClick:T},"Export"),l.value?(B(),G("div",DG,O[13]||(O[13]=[z("span",{class:"visually-hidden"},"Loading...",-1)]))):Me("",!0)])])]),_:1},8,["id"]))}});const FG=Pt($G,[["__scopeId","data-v-ed870f92"]]),VG={class:"d-flex text-center main"},zG={key:0,class:"sep"},HG=["onClick"],BG={key:0},WG={key:1},jG=ot({__name:"TabMenu",props:{modelValue:{},options:{},langKeys:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,n=t;function o(l){n("update:modelValue",l)}return(l,c)=>(B(),G("div",VG,[(B(!0),G(lt,null,Ot(i.options,(d,p)=>(B(),G(lt,null,[p?(B(),G("div",zG)):Me("",!0),z("div",{class:mt(["option flex-grow-1",i.modelValue==d?"selected":""]),onClick:m=>o(d)},[i.langKeys&&i.langKeys[p]?(B(),G("span",BG,Ne(l.$t(i.langKeys[p])),1)):(B(),G("span",WG,Ne(d),1))],10,HG)],64))),256))]))}});const Dx=Pt(jG,[["__scopeId","data-v-5c48c107"]]),YG={key:0},UG={class:"text-center"},GG={class:""},XG={class:"function"},KG={class:"param"},qG={class:"text-secondary"},ZG={key:0,class:"d-flex"},JG=ot({__name:"PluginSettings",props:{plugin:{}},setup(e){const t=ji(),i=e,n=Ae({}),o=Ee(()=>{const p={};for(let m of i.plugin.baseParams.params)m.defaultValue=m.defaultValue??void 0,p[m.name]=m;return p}),l=Ee(()=>{for(let p in o.value)if(n.value[p]&&n.value[p].defaultValue!==o.value[p].defaultValue)return!0;return!1});Ee(()=>{const p={};return i.plugin.registeredFunctions.forEach(m=>{p[m.action]||(p[m.action]=[]);const v=JSON.parse(JSON.stringify(m));p[m.action].push(v)}),p});function c(){n.value=pn(o.value)}function d(){const p={};for(let m of Qn(n.value))p[m.id]=m.defaultValue;t.setPluginParams(i.plugin.name,p)}return Rt(c),ft(()=>i.plugin,c),(p,m)=>i.plugin&&n.value?(B(),G("div",YG,[z("h3",UG,Ne(i.plugin.name),1),z("div",GG,Ne(i.plugin.description),1),m[1]||(m[1]=z("div",{class:"custom-hr mt-2 mb-2"},null,-1)),m[2]||(m[2]=z("h5",null,"Base Settings",-1)),z("div",XG,[(B(!0),G(lt,null,Ot(i.plugin.baseParams.params,v=>(B(),G("div",KG,[n.value[v.name]?(B(),G(lt,{key:0},[$e(Ym,{input:v},null,8,["input"]),z("div",qG,Ne(v.description),1)],64)):Me("",!0)]))),256))]),l.value?(B(),G("div",ZG,[m[0]||(m[0]=z("div",{class:"flex-grow-1"},null,-1)),z("div",{class:"base-btn me-3",onClick:c},"Reset"),z("div",{class:"base-btn",onClick:d},"Update")])):Me("",!0)])):Me("",!0)}});const QG=Pt(JG,[["__scopeId","data-v-c1d4942e"]]),e4={key:0,class:"main"},t4={class:"d-flex m-2"},i4={class:"me-2",style:{width:"120px"}},n4=["onUpdate:modelValue"],s4=["value"],r4={key:1,class:"text-secondary"},o4={key:0,class:"d-flex changed"},a4=ot({__name:"ActionSettings",setup(e){const t=zh(),i=ti({similar:void 0,group:void 0,execute:void 0,import:void 0,export:void 0}),n=Ee(()=>{const d={};Object.keys(i).forEach(p=>d[p]=[]);for(let p of Qn(t.index))for(let m of p.hooks)d[m]!==void 0&&d[m].push(p);return d}),o=Ee(()=>{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 Rt(l),ft(()=>t.defaultActions,l),(d,p)=>i?(B(),G("div",e4,[p[1]||(p[1]=z("h4",{class:"text-center"},"Actions",-1)),z("div",null,[(B(!0),G(lt,null,Ot(Object.keys(n.value),m=>(B(),G("div",t4,[z("div",i4,Ne(m),1),n.value[m].length?Kt((B(),G("select",{key:0,"onUpdate:modelValue":v=>i[m]=v},[(B(!0),G(lt,null,Ot(n.value[m],v=>(B(),G("option",{value:v.id},Ne(v.name),9,s4))),256))],8,n4)),[[ol,i[m]]]):(B(),G("div",r4,"None"))]))),256))]),o.value?(B(),G("div",o4,[p[0]||(p[0]=z("div",{class:"flex-grow-1"},null,-1)),z("div",{class:"base-btn me-3",onClick:l},"Reset"),z("div",{class:"base-btn",onClick:c},"Update")])):Me("",!0)])):Me("",!0)}});const l4=Pt(a4,[["__scopeId","data-v-ffa9abe7"]]),c4={class:"main"},u4={key:0,class:"d-flex p-2"},d4=["value"],h4={key:1,class:"d-flex changed"},f4=ot({__name:"VectorSettings",setup(e){const t=ji(),i=Ae(null),n=Ee(()=>{if(!i.value)return!1;const c=JSON.stringify(i.value.defaultVectors),d=JSON.stringify(t.data.vectors.defaultVectors);return c!=d});function o(){i.value=JSON.parse(JSON.stringify(t.data.vectors))}function l(){t.setDefaultVectors(i.value.defaultVectors)}return Rt(o),ft(t.data.plugins,o),(c,d)=>(B(),G("div",c4,[d[3]||(d[3]=z("h4",{class:"text-center"},"Vectors",-1)),i.value?(B(),G("div",u4,[d[1]||(d[1]=z("div",{class:"me-2"},"Default Vectors",-1)),Kt(z("select",{"onUpdate:modelValue":d[0]||(d[0]=p=>i.value.defaultVectors=p)},[(B(!0),G(lt,null,Ot(i.value.vectors,p=>(B(),G("option",{value:p},Ne(p.source)+"."+Ne(p.type)+" ("+Ne(p.count)+")",9,d4))),256))],512),[[ol,i.value.defaultVectors]])])):Me("",!0),n.value?(B(),G("div",h4,[d[2]||(d[2]=z("div",{class:"flex-grow-1"},null,-1)),z("div",{class:"base-btn me-3",onClick:o},"Reset"),z("div",{class:"base-btn",onClick:l},"Update")])):Me("",!0)]))}});const p4=Pt(f4,[["__scopeId","data-v-3d627aac"]]),g4={key:0,class:"main"},m4={key:0,class:"d-flex changed"},v4=ot({__name:"ProjectSettings",setup(e){const t=ji(),i=ti({}),n=Ee(()=>{for(let c in i)if(i[c]!==t.data.settings[c])return!0;return!1});function o(){Object.assign(i,t.data.settings)}function l(){t.updateSettings(i)}return Rt(o),ft(()=>t.data.settings,o),(c,d)=>i?(B(),G("div",g4,[d[7]||(d[7]=z("h4",{class:"text-center"},"Project",-1)),z("table",null,[z("tbody",null,[z("tr",null,[d[3]||(d[3]=z("td",null,"Save small image",-1)),z("td",null,[Kt(z("input",{type:"checkbox","onUpdate:modelValue":d[0]||(d[0]=p=>i.saveImageSmall=p)},null,512),[[is,i.saveImageSmall]])])]),z("tr",null,[d[4]||(d[4]=z("td",null,"Save medium image",-1)),z("td",null,[Kt(z("input",{type:"checkbox","onUpdate:modelValue":d[1]||(d[1]=p=>i.saveImageMedium=p)},null,512),[[is,i.saveImageMedium]])])]),z("tr",null,[d[5]||(d[5]=z("td",null,"Save large image",-1)),z("td",null,[Kt(z("input",{type:"checkbox","onUpdate:modelValue":d[2]||(d[2]=p=>i.saveImageLarge=p)},null,512),[[is,i.saveImageLarge]])])])])]),n.value?(B(),G("div",m4,[d[6]||(d[6]=z("div",{class:"flex-grow-1"},null,-1)),z("div",{class:"base-btn me-3",onClick:o},"Reset"),z("div",{class:"base-btn",onClick:l},"Update")])):Me("",!0)])):Me("",!0)}});const b4=Pt(v4,[["__scopeId","data-v-4643a794"]]),y4={class:"row"},x4={class:"col category"},w4={class:"col category"},_4={class:"col category"},S4=ot({__name:"GeneralSettings",setup(e){return(t,i)=>(B(),G("div",y4,[z("div",x4,[$e(b4)]),z("div",w4,[$e(l4)]),z("div",_4,[$e(p4)])]))}});const E4=Pt(S4,[["__scopeId","data-v-7a64527b"]]),C4={class:"h-100 overflow-scroll"},A4={class:"w-100"},k4={key:0},T4={key:1},I4={class:"p-3",style:{"max-width":"700px",margin:"auto"}},O4=ot({__name:"SettingsModal",setup(e){const t=ji(),i=Ae(["general","plugins"]),n=Ae(i.value[0]),o=Ae("");async function l(){await t.updatePluginInfos(),o.value=t.data.plugins[0].name,caches.keys().then(c=>Promise.all(c.map(d=>caches.delete(d))))}return(c,d)=>(B(),ct(Bh,{id:Ue(Ri).SETTINGS,onShow:l},{title:dt(()=>[Gt(Ne(c.$t("modals.settings.title")),1)]),content:dt(()=>[z("div",C4,[z("div",A4,[$e(Dx,{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"?(B(),G("div",k4,[$e(E4)])):Me("",!0),n.value=="plugins"&&o.value?(B(),G("div",T4,[$e(Dx,{options:Ue(t).data.plugins.map(p=>p.name),modelValue:o.value,"onUpdate:modelValue":d[1]||(d[1]=p=>o.value=p)},null,8,["options","modelValue"]),z("div",I4,[$e(QG,{plugin:Ue(t).data.plugins.find(p=>p.name==o.value)},null,8,["plugin"])])])):Me("",!0)])]),_:1},8,["id"]))}}),P4={class:"dropdown"},L4={class:"input-lg text-nowrap",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},M4={class:"dropdown-menu"},N4=["onClick"],R4={class:"dropdown-item",style:{cursor:"pointer"}},D4=ot({__name:"FusionModeDropdown",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){$t();const i=e,n=t,o=["first","last","all","new"];return(l,c)=>(B(),G("div",P4,[z("button",L4,Ne(l.$t("modals.import.fusion."+i.modelValue)),1),z("ul",M4,[(B(),G(lt,null,Ot(o,d=>z("li",{onClick:p=>n("update:modelValue",d)},[z("span",R4,[$e(Ai,{message:"modals.import.fusion."+d+"_tooltip"},{default:dt(()=>[Gt(Ne(l.$t("modals.import.fusion."+d)),1)]),_:2},1032,["message"])])],8,N4)),64))])]))}});const $4=Pt(D4,[["__scopeId","data-v-314c6ccc"]]),F4={class:"d-flex p-2"},V4={key:0,class:"p-2"},z4={class:"border text-center"},H4=["onUpdate:modelValue"],B4={class:"border text-center"},W4={class:"border"},j4={class:"border text-center"},Y4={key:0,class:"exist"},U4={class:"border"},G4={key:0},X4=["onUpdate:modelValue","disabled"],K4={key:1},q4={key:0},Z4={key:1},J4={key:0},Q4={class:"d-flex mt-3"},eX={class:"me-1"},tX={class:"d-flex mt-3"},iX={class:"d-flex mt-2 flex-center w-20",style:{width:"300px"}},nX={key:0,class:"d-flex mt-2 flex-center w-100"},sX={key:1,class:"text-center w-100 border rounded"},rX={key:1},oX={class:"text-warning mb-2"},aX={key:1,class:"text-center w-100 border rounded"},lX={class:"mt-2 p-2",style:{"max-height":"200px","overflow-y":"auto",border:"1px solid var(--border-color)"}},cX={key:1,class:"m-4"},uX={class:"border"},dX={class:"border"},hX={class:"border text-center"},fX={class:"border text-center"},pX={class:"border text-center"},gX={class:"border text-center"},mX={class:"border text-center"},vX={class:"border text-center"},bX={class:"border text-center"},yX={class:"border text-center"},xX=ot({__name:"ImportModal",setup(e){const t=en(),i=$t(),n=Ae(null),o=Ae(null),l=Ae(null),c=Ae({}),d=Ae(!1),p=Ae("first"),m=Ae(!0),v=Ae(null);async function y(){d.value=!0;const C=Object.keys(l.value.properties).filter(P=>!c.value[P]).map(Number),O={fusion:p.value,properties:l.value.properties,exclude:C,relative:m.value};v.value=await rD(O),d.value=!1,v.value.length||_()}async function _(){d.value=!0;const C=await oD();i.applyCommit(C),d.value=!1,T(),t.hideModal(Ri.IMPORT)}async function S(C){const O=C.target.files[0];if(O==null)return;const P=await sD(O);o.value=O.name,l.value=P,Object.keys(l.value.properties).forEach(I=>c.value[I]=!0)}function T(){o.value=null,l.value=null,n.value.value=null,c.value={},m.value=!0,p.value="first",d.value=!1,v.value=null}return(C,O)=>(B(),ct(Bh,{id:Ue(Ri).IMPORT,ref:"modalElem"},{title:dt(()=>[Gt(Ne(C.$t("modals.import.title")),1)]),content:dt(()=>[z("div",F4,[O[4]||(O[4]=z("div",{class:"me-1"},"File",-1)),z("input",{type:"file",ref_key:"inputElem",ref:n,accept:"text/csv",onChange:S,hidden:""},null,544),o.value?(B(),G("div",{key:0,class:"sbb",onClick:T},Ne(o.value),1)):(B(),G("div",{key:1,class:"sbc",onClick:O[0]||(O[0]=P=>n.value.click())},O[3]||(O[3]=[Gt("Upload "),z("i",{class:"bi bi-file-earmark-arrow-up"},null,-1)]))),O[5]||(O[5]=z("br",null,null,-1))]),o.value?(B(),G("div",V4,[z("table",null,[z("tbody",null,[O[7]||(O[7]=z("tr",null,[z("th",{class:"border"},"Import"),z("th",{class:"border"},"Col"),z("th",{class:"border"},"Property"),z("th",{class:"border"},"Exist"),z("th",{class:"border"},"Mode")],-1)),(B(!0),G(lt,null,Ot(l.value.properties,(P,I)=>(B(),G("tr",{class:mt(["border",c.value[I]?"":"dimmed"])},[z("td",z4,[I!=0?Kt((B(),G("input",{key:0,type:"checkbox","onUpdate:modelValue":N=>c.value[I]=N},null,8,H4)),[[is,c.value[I]]]):Me("",!0)]),z("td",B4,Ne(I),1),z("td",W4,[$e(cs,{type:P.type},null,8,["type"]),Gt(" "+Ne(P.name),1)]),z("td",j4,[P.id>0?(B(),G("div",Y4)):Me("",!0)]),z("td",U4,[P.id<0?(B(),G("span",G4,[Kt(z("select",{id:"base",name:"base","onUpdate:modelValue":N=>P.mode=N,disabled:!c.value[I]},O[6]||(O[6]=[z("option",{value:"sha1"},"Image",-1),z("option",{value:"id"},"Instance",-1)]),8,X4),[[ol,P.mode]])])):(B(),G("span",K4,[P.mode=="id"?(B(),G("span",q4,"Instance")):Me("",!0),P.mode=="sha1"?(B(),G("span",Z4,"Image")):Me("",!0)]))])],2))),256))])]),l.value.key=="path"?(B(),G("div",J4,[z("div",Q4,[z("div",eX,Ne(C.$t("modals.import.fusion.title")),1),$e($4,{"model-value":p.value,"onUpdate:modelValue":O[1]||(O[1]=P=>p.value=P)},null,8,["model-value"]),$e(Ai,{icon:!0,message:"modals.import.fusion.tooltip"})]),z("div",tX,[Gt(Ne(C.$t("modals.import.fusion.path"))+" ",1),Kt(z("input",{type:"checkbox",style:{"margin-left":"0.5rem"},"onUpdate:modelValue":O[2]||(O[2]=P=>m.value=P)},null,512),[[is,m.value]]),$e(Ai,{icon:!0,message:"modals.import.fusion.path_tooltip"})]),z("div",null,[z("div",iX,[v.value?Me("",!0):(B(),G("div",nX,[d.value?Me("",!0):(B(),G("div",{key:0,class:"bbb text-center w-100",onClick:y},"Import ")),d.value?(B(),G("div",sX,O[8]||(O[8]=[z("div",{class:"spinner-border spinner-border-sm",style:{position:"relative",top:"-1px"},role:"status"},null,-1)]))):Me("",!0)]))])])])):Me("",!0),v.value?(B(),G("div",rX,[z("div",oX,Ne(v.value.length)+" "+Ne(C.$t("modals.import.not_found")),1),d.value?Me("",!0):(B(),G("div",{key:0,style:{width:"300px"},class:"bbb text-center",onClick:_},Ne(C.$t("confirm")),1)),d.value?(B(),G("div",aX,O[9]||(O[9]=[z("div",{class:"spinner-border spinner-border-sm",style:{position:"relative",top:"-1px"},role:"status"},null,-1)]))):Me("",!0),z("div",lX,[(B(!0),G(lt,null,Ot(v.value,P=>(B(),G("div",null,Ne(C.$t("modals.import.row"))+": "+Ne(P[0]+1)+" "+Ne(C.$t("modals.import.key"))+": "+Ne(P[1]),1))),256))])])):Me("",!0)])):(B(),G("div",cX,[Gt(Ne(C.$t("modals.import.help.0"))+" ",1),z("ul",null,[z("li",null,Ne(C.$t("modals.import.help.1")),1),z("li",null,[Gt(Ne(C.$t("modals.import.help.2"))+" ",1),z("ul",null,[z("li",null,Ne(C.$t("modals.import.help.3")),1),z("li",null,Ne(C.$t("modals.import.help.4")),1)])]),z("li",null,[Gt(Ne(C.$t("modals.import.help.5"))+" ",1),O[10]||(O[10]=z("br",null,null,-1)),Gt(" "+Ne(C.$t("modals.import.help.6")),1)]),z("li",null,Ne(C.$t("modals.import.help.7")),1)]),Gt(" "+Ne(C.$t("modals.import.help.8"))+" ",1),z("table",null,[z("tbody",null,[z("tr",null,[z("th",uX,Ne(C.$t("modals.import.help.9")),1),z("th",dX,Ne(C.$t("modals.import.help.10")),1)]),z("tr",null,[z("td",hX,Ne(C.$t("modals.properties.multi_tags")),1),O[11]||(O[11]=z("td",{class:"border text-center"},"multi_tags",-1))]),z("tr",null,[z("td",fX,Ne(C.$t("modals.properties.tag")),1),O[12]||(O[12]=z("td",{class:"border text-center"},"tag",-1))]),z("tr",null,[z("td",pX,Ne(C.$t("modals.properties.number")),1),O[13]||(O[13]=z("td",{class:"border text-center"},"number",-1))]),z("tr",null,[z("td",gX,Ne(C.$t("modals.properties.text")),1),O[14]||(O[14]=z("td",{class:"border text-center"},"text",-1))]),z("tr",null,[z("td",mX,Ne(C.$t("modals.properties.checkbox")),1),O[15]||(O[15]=z("td",{class:"border text-center"},"checkbox",-1))]),z("tr",null,[z("td",vX,Ne(C.$t("modals.properties.color")),1),O[16]||(O[16]=z("td",{class:"border text-center"},"color",-1))]),z("tr",null,[z("td",bX,Ne(C.$t("modals.properties.date")),1),O[17]||(O[17]=z("td",{class:"border text-center"},"date",-1))]),z("tr",null,[z("td",yX,Ne(C.$t("modals.properties.url")),1),O[18]||(O[18]=z("td",{class:"border text-center"},"url",-1))])])])]))]),_:1},8,["id"]))}});const wX=Pt(xX,[["__scopeId","data-v-d3d3eae8"]]);var _X=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function SX(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vE(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 o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(i,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),i}var bE={exports:{}};const EX=vE(pT);/**! + * Sortable 1.14.0 + * @author RubaXa + * @author owenm + * @license MIT + */function $x(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),i.push.apply(i,n)}return i}function qs(e){for(var t=1;t=0)&&(i[o]=e[o]);return i}function kX(e,t){if(e==null)return{};var i=AX(e,t),n,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function TX(e){return IX(e)||OX(e)||PX(e)||LX()}function IX(e){if(Array.isArray(e))return ug(e)}function OX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PX(e,t){if(e){if(typeof e=="string")return ug(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 ug(e,t)}}function ug(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 RX(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ys(e,t,i,n){if(e){i=i||document;do{if(t!=null&&(t[0]===">"?e.parentNode===i&&Hd(e,t):Hd(e,t))||n&&e===i)return e;if(e===i)break}while(e=RX(e))}return null}var Vx=/\s+/g;function Ni(e,t,i){if(e&&t)if(e.classList)e.classList[i?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(Vx," ").replace(" "+t+" "," ");e.className=(n+(i?" "+t:"")).replace(Vx," ")}}function It(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 zo(e,t){var i="";if(typeof e=="string")i=e;else do{var n=It(e,"transform");n&&n!=="none"&&(i=n+" "+i)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(i)}function wE(e,t,i){if(e){var n=e.getElementsByTagName(t),o=0,l=n.length;if(i)for(;o=l:c=o<=l,!c)return n;if(n===Ys())break;n=Xr(n,!1)}return!1}function nl(e,t,i,n){for(var o=0,l=0,c=e.children;l2&&arguments[2]!==void 0?arguments[2]:{},o=n.evt,l=kX(n,BX);Jc.pluginEvent.bind(zt)(t,i,qs({dragEl:yt,parentEl:$i,ghostEl:Xt,rootEl:Pi,nextEl:To,lastDownEl:id,cloneEl:Fi,cloneHidden:Gr,dragStarted:$l,putSortable:rn,activeSortable:zt.active,originalEvent:o,oldIndex:ka,oldDraggableIndex:oc,newIndex:Bn,newDraggableIndex:Ur,hideGhostForTarget:kE,unhideGhostForTarget:TE,cloneNowHidden:function(){Gr=!0},cloneNowShown:function(){Gr=!1},dispatchSortableEvent:function(d){xn({sortable:i,name:d,originalEvent:o})}},l))};function xn(e){Dl(qs({putSortable:rn,cloneEl:Fi,targetEl:yt,rootEl:Pi,oldIndex:ka,oldDraggableIndex:oc,newIndex:Bn,newDraggableIndex:Ur},e))}var yt,$i,Xt,Pi,To,id,Fi,Gr,ka,Bn,oc,Ur,Tu,rn,Sa=!1,Bd=!1,Wd=[],Co,vs,Uf,Gf,Wx,jx,$l,fa,ac,lc=!1,Iu=!1,nd,un,Xf=[],dg=!1,jd=[],Wh=typeof document<"u",Ou=yE,Yx=Zc||Tr?"cssFloat":"float",WX=Wh&&!NX&&!yE&&"draggable"in document.createElement("div"),EE=function(){if(Wh){if(Tr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),CE=function(t,i){var n=It(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),l=nl(t,0,i),c=nl(t,1,i),d=l&&It(l),p=c&&It(c),m=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+Li(l).width,v=p&&parseInt(p.marginLeft)+parseInt(p.marginRight)+Li(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 y=d.float==="left"?"left":"right";return c&&(p.clear==="both"||p.clear===y)?"vertical":"horizontal"}return l&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||m>=o&&n[Yx]==="none"||c&&n[Yx]==="none"&&m+v>o)?"vertical":"horizontal"},jX=function(t,i,n){var o=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 o===d||l===p||o+c/2===d+m/2},YX=function(t,i){var n;return Wd.some(function(o){var l=o[gn].options.emptyInsertThreshold;if(!(!l||Gm(o))){var c=Li(o),d=t>=c.left-l&&t<=c.right+l,p=i>=c.top-l&&i<=c.bottom+l;if(d&&p)return n=o}}),n},AE=function(t){function i(l,c){return function(d,p,m,v){var y=d.options.group.name&&p.options.group.name&&d.options.group.name===p.options.group.name;if(l==null&&(c||y))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,v),c)(d,p,m,v);var _=(c?d:p).options.group.name;return l===!0||typeof l=="string"&&l===_||l.join&&l.indexOf(_)>-1}}var n={},o=t.group;(!o||td(o)!="object")&&(o={name:o}),n.name=o.name,n.checkPull=i(o.pull,!0),n.checkPut=i(o.put),n.revertClone=o.revertClone,t.group=n},kE=function(){!EE&&Xt&&It(Xt,"display","none")},TE=function(){!EE&&Xt&&It(Xt,"display","")};Wh&&document.addEventListener("click",function(e){if(Bd)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Bd=!1,!1},!0);var Ao=function(t){if(yt){t=t.touches?t.touches[0]:t;var i=YX(t.clientX,t.clientY);if(i){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=i,n.preventDefault=void 0,n.stopPropagation=void 0,i[gn]._onDragOver(n)}}},UX=function(t){yt&&yt.parentNode[gn]._isOutsideThisEl(t.target)};function zt(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=us({},t),e[gn]=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 CE(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:zt.supportPointer!==!1&&"PointerEvent"in window&&!sc,emptyInsertThreshold:5};Jc.initializePlugins(this,e,i);for(var n in i)!(n in t)&&(t[n]=i[n]);AE(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:WX,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?ri(e,"pointerdown",this._onTapStart):(ri(e,"mousedown",this._onTapStart),ri(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(ri(e,"dragover",this),ri(e,"dragenter",this)),Wd.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),us(this,VX())}zt.prototype={constructor:zt,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(fa=null)},_getDirection:function(t,i){return typeof this.options.direction=="function"?this.options.direction.call(this,t,i,yt):this.options.direction},_onTapStart:function(t){if(t.cancelable){var i=this,n=this.el,o=this.options,l=o.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,v=o.filter;if(e8(n),!yt&&!(/mousedown|pointerdown/.test(c)&&t.button!==0||o.disabled)&&!m.isContentEditable&&!(!this.nativeDraggable&&sc&&p&&p.tagName.toUpperCase()==="SELECT")&&(p=ys(p,o.draggable,n,!1),!(p&&p.animated)&&id!==p)){if(ka=Vi(p),oc=Vi(p,o.draggable),typeof v=="function"){if(v.call(this,t,p,this)){xn({sortable:i,rootEl:m,name:"filter",targetEl:p,toEl:n,fromEl:n}),Nn("filter",i,{evt:t}),l&&t.cancelable&&t.preventDefault();return}}else if(v&&(v=v.split(",").some(function(y){if(y=ys(m,y.trim(),n,!1),y)return xn({sortable:i,rootEl:y,name:"filter",targetEl:p,fromEl:n,toEl:n}),Nn("filter",i,{evt:t}),!0}),v)){l&&t.cancelable&&t.preventDefault();return}o.handle&&!ys(m,o.handle,n,!1)||this._prepareDragStart(t,d,p)}}},_prepareDragStart:function(t,i,n){var o=this,l=o.el,c=o.options,d=l.ownerDocument,p;if(n&&!yt&&n.parentNode===l){var m=Li(n);if(Pi=l,yt=n,$i=yt.parentNode,To=yt.nextSibling,id=n,Tu=c.group,zt.dragged=yt,Co={target:yt,clientX:(i||t).clientX,clientY:(i||t).clientY},Wx=Co.clientX-m.left,jx=Co.clientY-m.top,this._lastX=(i||t).clientX,this._lastY=(i||t).clientY,yt.style["will-change"]="all",p=function(){if(Nn("delayEnded",o,{evt:t}),zt.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Fx&&o.nativeDraggable&&(yt.draggable=!0),o._triggerDragStart(t,i),xn({sortable:o,name:"choose",originalEvent:t}),Ni(yt,c.chosenClass,!0)},c.ignore.split(",").forEach(function(v){wE(yt,v.trim(),Kf)}),ri(d,"dragover",Ao),ri(d,"mousemove",Ao),ri(d,"touchmove",Ao),ri(d,"mouseup",o._onDrop),ri(d,"touchend",o._onDrop),ri(d,"touchcancel",o._onDrop),Fx&&this.nativeDraggable&&(this.options.touchStartThreshold=4,yt.draggable=!0),Nn("delayStart",this,{evt:t}),c.delay&&(!c.delayOnTouchOnly||i)&&(!this.nativeDraggable||!(Zc||Tr))){if(zt.eventCanceled){this._onDrop();return}ri(d,"mouseup",o._disableDelayedDrag),ri(d,"touchend",o._disableDelayedDrag),ri(d,"touchcancel",o._disableDelayedDrag),ri(d,"mousemove",o._delayedDragTouchMoveHandler),ri(d,"touchmove",o._delayedDragTouchMoveHandler),c.supportPointer&&ri(d,"pointermove",o._delayedDragTouchMoveHandler),o._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(){yt&&Kf(yt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;ii(t,"mouseup",this._disableDelayedDrag),ii(t,"touchend",this._disableDelayedDrag),ii(t,"touchcancel",this._disableDelayedDrag),ii(t,"mousemove",this._delayedDragTouchMoveHandler),ii(t,"touchmove",this._delayedDragTouchMoveHandler),ii(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,i){i=i||t.pointerType=="touch"&&t,!this.nativeDraggable||i?this.options.supportPointer?ri(document,"pointermove",this._onTouchMove):i?ri(document,"touchmove",this._onTouchMove):ri(document,"mousemove",this._onTouchMove):(ri(yt,"dragend",this),ri(Pi,"dragstart",this._onDragStart));try{document.selection?sd(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,i){if(Sa=!1,Pi&&yt){Nn("dragStarted",this,{evt:i}),this.nativeDraggable&&ri(document,"dragover",UX);var n=this.options;!t&&Ni(yt,n.dragClass,!1),Ni(yt,n.ghostClass,!0),zt.active=this,t&&this._appendGhost(),xn({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(vs){this._lastX=vs.clientX,this._lastY=vs.clientY,kE();for(var t=document.elementFromPoint(vs.clientX,vs.clientY),i=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(vs.clientX,vs.clientY),t!==i);)i=t;if(yt.parentNode[gn]._isOutsideThisEl(t),i)do{if(i[gn]){var n=void 0;if(n=i[gn]._onDragOver({clientX:vs.clientX,clientY:vs.clientY,target:t,rootEl:i}),n&&!this.options.dragoverBubble)break}t=i}while(i=i.parentNode);TE()}},_onTouchMove:function(t){if(Co){var i=this.options,n=i.fallbackTolerance,o=i.fallbackOffset,l=t.touches?t.touches[0]:t,c=Xt&&zo(Xt,!0),d=Xt&&c&&c.a,p=Xt&&c&&c.d,m=Ou&&un&&Hx(un),v=(l.clientX-Co.clientX+o.x)/(d||1)+(m?m[0]-Xf[0]:0)/(d||1),y=(l.clientY-Co.clientY+o.y)/(p||1)+(m?m[1]-Xf[1]:0)/(p||1);if(!zt.active&&!Sa){if(n&&Math.max(Math.abs(l.clientX-this._lastX),Math.abs(l.clientY-this._lastY))=0&&(xn({rootEl:$i,name:"add",toEl:$i,fromEl:Pi,originalEvent:t}),xn({sortable:this,name:"remove",toEl:$i,originalEvent:t}),xn({rootEl:$i,name:"sort",toEl:$i,fromEl:Pi,originalEvent:t}),xn({sortable:this,name:"sort",toEl:$i,originalEvent:t})),rn&&rn.save()):Bn!==ka&&Bn>=0&&(xn({sortable:this,name:"update",toEl:$i,originalEvent:t}),xn({sortable:this,name:"sort",toEl:$i,originalEvent:t})),zt.active&&((Bn==null||Bn===-1)&&(Bn=ka,Ur=oc),xn({sortable:this,name:"end",toEl:$i,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Nn("nulling",this),Pi=yt=$i=Xt=To=Fi=id=Gr=Co=vs=$l=Bn=Ur=ka=oc=fa=ac=rn=Tu=zt.dragged=zt.ghost=zt.clone=zt.active=null,jd.forEach(function(t){t.checked=!0}),jd.length=Uf=Gf=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":yt&&(this._onDragOver(t),GX(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],i,n=this.el.children,o=0,l=n.length,c=this.options;on.right+o||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+o}function ZX(e,t,i,n,o,l,c,d){var p=n?e.clientY:e.clientX,m=n?i.height:i.width,v=n?i.top:i.left,y=n?i.bottom:i.right,_=!1;if(!c){if(d&&ndv+m*l/2:py-nd)return-ac}else if(p>v+m*(1-o)/2&&py-m*l/2)?p>v+m/2?1:-1:0}function JX(e){return Vi(yt)1&&(Ut.forEach(function(d){l.addAnimationState({target:d,rect:Rn?Li(d):c}),jf(d),d.fromRect=c,n.removeAnimationState(d)}),Rn=!1,r8(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(i){var n=i.sortable,o=i.isOwner,l=i.insertion,c=i.activeSortable,d=i.parentEl,p=i.putSortable,m=this.options;if(l){if(o&&c._hideClone(),Il=!1,m.animation&&Ut.length>1&&(Rn||!o&&!c.options.sort&&!p)){var v=Li(Si,!1,!0,!0);Ut.forEach(function(_){_!==Si&&(Bx(_,v),d.appendChild(_))}),Rn=!0}if(!o)if(Rn||Mu(),Ut.length>1){var y=Lu;c._showClone(n),c.options.animation&&!Lu&&y&&Hn.forEach(function(_){c.addAnimationState({target:_,rect:Ol}),_.fromRect=Ol,_.thisAnimationDuration=null})}else c._showClone(n)}},dragOverAnimationCapture:function(i){var n=i.dragRect,o=i.isOwner,l=i.activeSortable;if(Ut.forEach(function(d){d.thisAnimationDuration=null}),l.options.animation&&!o&&l.multiDrag.isMultiDrag){Ol=us({},n);var c=zo(Si,!0);Ol.top-=c.f,Ol.left-=c.e}},dragOverAnimationComplete:function(){Rn&&(Rn=!1,Mu())},drop:function(i){var n=i.originalEvent,o=i.rootEl,l=i.parentEl,c=i.sortable,d=i.dispatchSortableEvent,p=i.oldIndex,m=i.putSortable,v=m||this.sortable;if(n){var y=this.options,_=l.children;if(!pa)if(y.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ni(Si,y.selectedClass,!~Ut.indexOf(Si)),~Ut.indexOf(Si))Ut.splice(Ut.indexOf(Si),1),Tl=null,Dl({sortable:c,rootEl:o,name:"deselect",targetEl:Si,originalEvt:n});else{if(Ut.push(Si),Dl({sortable:c,rootEl:o,name:"select",targetEl:Si,originalEvt:n}),n.shiftKey&&Tl&&c.el.contains(Tl)){var S=Vi(Tl),T=Vi(Si);if(~S&&~T&&S!==T){var C,O;for(T>S?(O=S,C=T):(O=T,C=S+1);O1){var P=Li(Si),I=Vi(Si,":not(."+this.options.selectedClass+")");if(!Il&&y.animation&&(Si.thisAnimationDuration=null),v.captureAnimationState(),!Il&&(y.animation&&(Si.fromRect=P,Ut.forEach(function(M){if(M.thisAnimationDuration=null,M!==Si){var D=Rn?Li(M):P;M.fromRect=D,v.addAnimationState({target:M,rect:D})}})),Mu(),Ut.forEach(function(M){_[I]?l.insertBefore(M,_[I]):l.appendChild(M),I++}),p===Vi(Si))){var N=!1;Ut.forEach(function(M){if(M.sortableIndex!==Vi(M)){N=!0;return}}),N&&d("update")}Ut.forEach(function(M){jf(M)}),v.animateAll()}bs=v}(o===l||m&&m.lastPutMode!=="clone")&&Hn.forEach(function(M){M.parentNode&&M.parentNode.removeChild(M)})}},nullingGlobal:function(){this.isMultiDrag=pa=!1,Hn.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ii(document,"pointerup",this._deselectMultiDrag),ii(document,"mouseup",this._deselectMultiDrag),ii(document,"touchend",this._deselectMultiDrag),ii(document,"keydown",this._checkKeyDown),ii(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(i){if(!(typeof pa<"u"&&pa)&&bs===this.sortable&&!(i&&ys(i.target,this.options.draggable,this.sortable.el,!1))&&!(i&&i.button!==0))for(;Ut.length;){var n=Ut[0];Ni(n,this.options.selectedClass,!1),Ut.shift(),Dl({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)}},us(e,{pluginName:"multiDrag",utils:{select:function(i){var n=i.parentNode[gn];!n||!n.options.multiDrag||~Ut.indexOf(i)||(bs&&bs!==n&&(bs.multiDrag._deselectMultiDrag(),bs=n),Ni(i,n.options.selectedClass,!0),Ut.push(i))},deselect:function(i){var n=i.parentNode[gn],o=Ut.indexOf(i);!n||!n.options.multiDrag||!~o||(Ni(i,n.options.selectedClass,!1),Ut.splice(o,1))}},eventProperties:function(){var i=this,n=[],o=[];return Ut.forEach(function(l){n.push({multiDragElement:l,index:l.sortableIndex});var c;Rn&&l!==Si?c=-1:Rn?c=Vi(l,":not(."+i.options.selectedClass+")"):c=Vi(l),o.push({multiDragElement:l,index:c})}),{items:TX(Ut),clones:[].concat(Hn),oldIndicies:n,newIndicies:o}},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 r8(e,t){Ut.forEach(function(i,n){var o=t.children[i.sortableIndex+(e?Number(n):0)];o?t.insertBefore(i,o):t.appendChild(i)})}function Gx(e,t){Hn.forEach(function(i,n){var o=t.children[i.sortableIndex+(e?Number(n):0)];o?t.insertBefore(i,o):t.appendChild(i)})}function Mu(){Ut.forEach(function(e){e!==Si&&e.parentNode&&e.parentNode.removeChild(e)})}zt.mount(new t8);zt.mount(qm,Km);const o8=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:s8,Sortable:zt,Swap:i8,default:zt},Symbol.toStringTag,{value:"Module"})),a8=vE(o8);(function(e,t){(function(n,o){e.exports=o(EX,a8)})(typeof self<"u"?self:_X,function(i,n){return function(o){var l={};function c(d){if(l[d])return l[d].exports;var p=l[d]={i:d,l:!1,exports:{}};return o[d].call(p.exports,p,p.exports,c),p.l=!0,p.exports}return c.m=o,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 v in d)c.d(m,v,(function(y){return d[y]}).bind(null,v));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(o,l,c){var d=c("b622"),p=d("toStringTag"),m={};m[p]="z",o.exports=String(m)==="[object z]"},"0366":function(o,l,c){var d=c("1c0b");o.exports=function(p,m,v){if(d(p),m===void 0)return p;switch(v){case 0:return function(){return p.call(m)};case 1:return function(y){return p.call(m,y)};case 2:return function(y,_){return p.call(m,y,_)};case 3:return function(y,_,S){return p.call(m,y,_,S)}}return function(){return p.apply(m,arguments)}}},"057f":function(o,l,c){var d=c("fc6a"),p=c("241c").f,m={}.toString,v=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],y=function(_){try{return p(_)}catch{return v.slice()}};o.exports.f=function(S){return v&&m.call(S)=="[object Window]"?y(S):p(d(S))}},"06cf":function(o,l,c){var d=c("83ab"),p=c("d1e7"),m=c("5c6c"),v=c("fc6a"),y=c("c04e"),_=c("5135"),S=c("0cfb"),T=Object.getOwnPropertyDescriptor;l.f=d?T:function(O,P){if(O=v(O),P=y(P,!0),S)try{return T(O,P)}catch{}if(_(O,P))return m(!p.f.call(O,P),O[P])}},"0cfb":function(o,l,c){var d=c("83ab"),p=c("d039"),m=c("cc12");o.exports=!d&&!p(function(){return Object.defineProperty(m("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(o,l,c){var d=c("23e7"),p=c("d58f").left,m=c("a640"),v=c("ae40"),y=m("reduce"),_=v("reduce",{1:0});d({target:"Array",proto:!0,forced:!y||!_},{reduce:function(T){return p(this,T,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(o,l,c){var d=c("c6b6"),p=c("9263");o.exports=function(m,v){var y=m.exec;if(typeof y=="function"){var _=y.call(m,v);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,v)}},"159b":function(o,l,c){var d=c("da84"),p=c("fdbc"),m=c("17c2"),v=c("9112");for(var y in p){var _=d[y],S=_&&_.prototype;if(S&&S.forEach!==m)try{v(S,"forEach",m)}catch{S.forEach=m}}},"17c2":function(o,l,c){var d=c("b727").forEach,p=c("a640"),m=c("ae40"),v=p("forEach"),y=m("forEach");o.exports=!v||!y?function(S){return d(this,S,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(o,l,c){var d=c("d066");o.exports=d("document","documentElement")},"1c0b":function(o,l){o.exports=function(c){if(typeof c!="function")throw TypeError(String(c)+" is not a function");return c}},"1c7e":function(o,l,c){var d=c("b622"),p=d("iterator"),m=!1;try{var v=0,y={next:function(){return{done:!!v++}},return:function(){m=!0}};y[p]=function(){return this},Array.from(y,function(){throw 2})}catch{}o.exports=function(_,S){if(!S&&!m)return!1;var T=!1;try{var C={};C[p]=function(){return{next:function(){return{done:T=!0}}}},_(C)}catch{}return T}},"1d80":function(o,l){o.exports=function(c){if(c==null)throw TypeError("Can't call method on "+c);return c}},"1dde":function(o,l,c){var d=c("d039"),p=c("b622"),m=c("2d00"),v=p("species");o.exports=function(y){return m>=51||!d(function(){var _=[],S=_.constructor={};return S[v]=function(){return{foo:1}},_[y](Boolean).foo!==1})}},"23cb":function(o,l,c){var d=c("a691"),p=Math.max,m=Math.min;o.exports=function(v,y){var _=d(v);return _<0?p(_+y,0):m(_,y)}},"23e7":function(o,l,c){var d=c("da84"),p=c("06cf").f,m=c("9112"),v=c("6eeb"),y=c("ce4e"),_=c("e893"),S=c("94ca");o.exports=function(T,C){var O=T.target,P=T.global,I=T.stat,N,M,D,H,Z,te;if(P?M=d:I?M=d[O]||y(O,{}):M=(d[O]||{}).prototype,M)for(D in C){if(Z=C[D],T.noTargetGet?(te=p(M,D),H=te&&te.value):H=M[D],N=S(P?D:O+(I?".":"#")+D,T.forced),!N&&H!==void 0){if(typeof Z==typeof H)continue;_(Z,H)}(T.sham||H&&H.sham)&&m(Z,"sham",!0),v(M,D,Z,T)}}},"241c":function(o,l,c){var d=c("ca84"),p=c("7839"),m=p.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(y){return d(y,m)}},"25f0":function(o,l,c){var d=c("6eeb"),p=c("825a"),m=c("d039"),v=c("ad6d"),y="toString",_=RegExp.prototype,S=_[y],T=m(function(){return S.call({source:"a",flags:"b"})!="/a/b"}),C=S.name!=y;(T||C)&&d(RegExp.prototype,y,function(){var P=p(this),I=String(P.source),N=P.flags,M=String(N===void 0&&P instanceof RegExp&&!("flags"in _)?v.call(P):N);return"/"+I+"/"+M},{unsafe:!0})},"2ca0":function(o,l,c){var d=c("23e7"),p=c("06cf").f,m=c("50c4"),v=c("5a34"),y=c("1d80"),_=c("ab13"),S=c("c430"),T="".startsWith,C=Math.min,O=_("startsWith"),P=!S&&!O&&!!function(){var I=p(String.prototype,"startsWith");return I&&!I.writable}();d({target:"String",proto:!0,forced:!P&&!O},{startsWith:function(N){var M=String(y(this));v(N);var D=m(C(arguments.length>1?arguments[1]:void 0,M.length)),H=String(N);return T?T.call(M,H,D):M.slice(D,D+H.length)===H}})},"2d00":function(o,l,c){var d=c("da84"),p=c("342f"),m=d.process,v=m&&m.versions,y=v&&v.v8,_,S;y?(_=y.split("."),S=_[0]+_[1]):p&&(_=p.match(/Edge\/(\d+)/),(!_||_[1]>=74)&&(_=p.match(/Chrome\/(\d+)/),_&&(S=_[1]))),o.exports=S&&+S},"342f":function(o,l,c){var d=c("d066");o.exports=d("navigator","userAgent")||""},"35a1":function(o,l,c){var d=c("f5df"),p=c("3f8c"),m=c("b622"),v=m("iterator");o.exports=function(y){if(y!=null)return y[v]||y["@@iterator"]||p[d(y)]}},"37e8":function(o,l,c){var d=c("83ab"),p=c("9bf2"),m=c("825a"),v=c("df75");o.exports=d?Object.defineProperties:function(_,S){m(_);for(var T=v(S),C=T.length,O=0,P;C>O;)p.f(_,P=T[O++],S[P]);return _}},"3bbe":function(o,l,c){var d=c("861d");o.exports=function(p){if(!d(p)&&p!==null)throw TypeError("Can't set "+String(p)+" as a prototype");return p}},"3ca3":function(o,l,c){var d=c("6547").charAt,p=c("69f3"),m=c("7dd0"),v="String Iterator",y=p.set,_=p.getterFor(v);m(String,"String",function(S){y(this,{type:v,string:String(S),index:0})},function(){var T=_(this),C=T.string,O=T.index,P;return O>=C.length?{value:void 0,done:!0}:(P=d(C,O),T.index+=P.length,{value:P,done:!1})})},"3f8c":function(o,l){o.exports={}},4160:function(o,l,c){var d=c("23e7"),p=c("17c2");d({target:"Array",proto:!0,forced:[].forEach!=p},{forEach:p})},"428f":function(o,l,c){var d=c("da84");o.exports=d},"44ad":function(o,l,c){var d=c("d039"),p=c("c6b6"),m="".split;o.exports=d(function(){return!Object("z").propertyIsEnumerable(0)})?function(v){return p(v)=="String"?m.call(v,""):Object(v)}:Object},"44d2":function(o,l,c){var d=c("b622"),p=c("7c73"),m=c("9bf2"),v=d("unscopables"),y=Array.prototype;y[v]==null&&m.f(y,v,{configurable:!0,value:p(null)}),o.exports=function(_){y[v][_]=!0}},"44e7":function(o,l,c){var d=c("861d"),p=c("c6b6"),m=c("b622"),v=m("match");o.exports=function(y){var _;return d(y)&&((_=y[v])!==void 0?!!_:p(y)=="RegExp")}},4930:function(o,l,c){var d=c("d039");o.exports=!!Object.getOwnPropertySymbols&&!d(function(){return!String(Symbol())})},"4d64":function(o,l,c){var d=c("fc6a"),p=c("50c4"),m=c("23cb"),v=function(y){return function(_,S,T){var C=d(_),O=p(C.length),P=m(T,O),I;if(y&&S!=S){for(;O>P;)if(I=C[P++],I!=I)return!0}else for(;O>P;P++)if((y||P in C)&&C[P]===S)return y||P||0;return!y&&-1}};o.exports={includes:v(!0),indexOf:v(!1)}},"4de4":function(o,l,c){var d=c("23e7"),p=c("b727").filter,m=c("1dde"),v=c("ae40"),y=m("filter"),_=v("filter");d({target:"Array",proto:!0,forced:!y||!_},{filter:function(T){return p(this,T,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(o,l,c){var d=c("0366"),p=c("7b0b"),m=c("9bdd"),v=c("e95a"),y=c("50c4"),_=c("8418"),S=c("35a1");o.exports=function(C){var O=p(C),P=typeof this=="function"?this:Array,I=arguments.length,N=I>1?arguments[1]:void 0,M=N!==void 0,D=S(O),H=0,Z,te,Y,ee,le,oe;if(M&&(N=d(N,I>2?arguments[2]:void 0,2)),D!=null&&!(P==Array&&v(D)))for(ee=D.call(O),le=ee.next,te=new P;!(Y=le.call(ee)).done;H++)oe=M?m(ee,N,[Y.value,H],!0):Y.value,_(te,H,oe);else for(Z=y(O.length),te=new P(Z);Z>H;H++)oe=M?N(O[H],H):O[H],_(te,H,oe);return te.length=H,te}},"4fad":function(o,l,c){var d=c("23e7"),p=c("6f53").entries;d({target:"Object",stat:!0},{entries:function(v){return p(v)}})},"50c4":function(o,l,c){var d=c("a691"),p=Math.min;o.exports=function(m){return m>0?p(d(m),9007199254740991):0}},5135:function(o,l){var c={}.hasOwnProperty;o.exports=function(d,p){return c.call(d,p)}},5319:function(o,l,c){var d=c("d784"),p=c("825a"),m=c("7b0b"),v=c("50c4"),y=c("a691"),_=c("1d80"),S=c("8aa5"),T=c("14c3"),C=Math.max,O=Math.min,P=Math.floor,I=/\$([$&'`]|\d\d?|<[^>]*>)/g,N=/\$([$&'`]|\d\d?)/g,M=function(D){return D===void 0?D:String(D)};d("replace",2,function(D,H,Z,te){var Y=te.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,ee=te.REPLACE_KEEPS_$0,le=Y?"$":"$0";return[function(ge,Ce){var ue=_(this),ie=ge==null?void 0:ge[D];return ie!==void 0?ie.call(ge,ue,Ce):H.call(String(ue),ge,Ce)},function(pe,ge){if(!Y&&ee||typeof ge=="string"&&ge.indexOf(le)===-1){var Ce=Z(H,pe,this,ge);if(Ce.done)return Ce.value}var ue=p(pe),ie=String(this),X=typeof ge=="function";X||(ge=String(ge));var fe=ue.global;if(fe){var me=ue.unicode;ue.lastIndex=0}for(var de=[];;){var ye=T(ue,ie);if(ye===null||(de.push(ye),!fe))break;var ze=String(ye[0]);ze===""&&(ue.lastIndex=S(ie,v(ue.lastIndex),me))}for(var st="",Oe=0,Pe=0;Pe=Oe&&(st+=ie.slice(Oe,De)+he,Oe=De+we.length)}return st+ie.slice(Oe)}];function oe(pe,ge,Ce,ue,ie,X){var fe=Ce+pe.length,me=ue.length,de=N;return ie!==void 0&&(ie=m(ie),de=I),H.call(X,de,function(ye,ze){var st;switch(ze.charAt(0)){case"$":return"$";case"&":return pe;case"`":return ge.slice(0,Ce);case"'":return ge.slice(fe);case"<":st=ie[ze.slice(1,-1)];break;default:var Oe=+ze;if(Oe===0)return ye;if(Oe>me){var Pe=P(Oe/10);return Pe===0?ye:Pe<=me?ue[Pe-1]===void 0?ze.charAt(1):ue[Pe-1]+ze.charAt(1):ye}st=ue[Oe-1]}return st===void 0?"":st})}})},5692:function(o,l,c){var d=c("c430"),p=c("c6cd");(o.exports=function(m,v){return p[m]||(p[m]=v!==void 0?v:{})})("versions",[]).push({version:"3.6.5",mode:d?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(o,l,c){var d=c("d066"),p=c("241c"),m=c("7418"),v=c("825a");o.exports=d("Reflect","ownKeys")||function(_){var S=p.f(v(_)),T=m.f;return T?S.concat(T(_)):S}},"5a34":function(o,l,c){var d=c("44e7");o.exports=function(p){if(d(p))throw TypeError("The method doesn't accept regular expressions");return p}},"5c6c":function(o,l){o.exports=function(c,d){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:d}}},"5db7":function(o,l,c){var d=c("23e7"),p=c("a2bf"),m=c("7b0b"),v=c("50c4"),y=c("1c0b"),_=c("65f0");d({target:"Array",proto:!0},{flatMap:function(T){var C=m(this),O=v(C.length),P;return y(T),P=_(C,0),P.length=p(P,C,C,O,0,1,T,arguments.length>1?arguments[1]:void 0),P}})},6547:function(o,l,c){var d=c("a691"),p=c("1d80"),m=function(v){return function(y,_){var S=String(p(y)),T=d(_),C=S.length,O,P;return T<0||T>=C?v?"":void 0:(O=S.charCodeAt(T),O<55296||O>56319||T+1===C||(P=S.charCodeAt(T+1))<56320||P>57343?v?S.charAt(T):O:v?S.slice(T,T+2):(O-55296<<10)+(P-56320)+65536)}};o.exports={codeAt:m(!1),charAt:m(!0)}},"65f0":function(o,l,c){var d=c("861d"),p=c("e8b5"),m=c("b622"),v=m("species");o.exports=function(y,_){var S;return p(y)&&(S=y.constructor,typeof S=="function"&&(S===Array||p(S.prototype))?S=void 0:d(S)&&(S=S[v],S===null&&(S=void 0))),new(S===void 0?Array:S)(_===0?0:_)}},"69f3":function(o,l,c){var d=c("7f9a"),p=c("da84"),m=c("861d"),v=c("9112"),y=c("5135"),_=c("f772"),S=c("d012"),T=p.WeakMap,C,O,P,I=function(Y){return P(Y)?O(Y):C(Y,{})},N=function(Y){return function(ee){var le;if(!m(ee)||(le=O(ee)).type!==Y)throw TypeError("Incompatible receiver, "+Y+" required");return le}};if(d){var M=new T,D=M.get,H=M.has,Z=M.set;C=function(Y,ee){return Z.call(M,Y,ee),ee},O=function(Y){return D.call(M,Y)||{}},P=function(Y){return H.call(M,Y)}}else{var te=_("state");S[te]=!0,C=function(Y,ee){return v(Y,te,ee),ee},O=function(Y){return y(Y,te)?Y[te]:{}},P=function(Y){return y(Y,te)}}o.exports={set:C,get:O,has:P,enforce:I,getterFor:N}},"6eeb":function(o,l,c){var d=c("da84"),p=c("9112"),m=c("5135"),v=c("ce4e"),y=c("8925"),_=c("69f3"),S=_.get,T=_.enforce,C=String(String).split("String");(o.exports=function(O,P,I,N){var M=N?!!N.unsafe:!1,D=N?!!N.enumerable:!1,H=N?!!N.noTargetGet:!1;if(typeof I=="function"&&(typeof P=="string"&&!m(I,"name")&&p(I,"name",P),T(I).source=C.join(typeof P=="string"?P:"")),O===d){D?O[P]=I:v(P,I);return}else M?!H&&O[P]&&(D=!0):delete O[P];D?O[P]=I:p(O,P,I)})(Function.prototype,"toString",function(){return typeof this=="function"&&S(this).source||y(this)})},"6f53":function(o,l,c){var d=c("83ab"),p=c("df75"),m=c("fc6a"),v=c("d1e7").f,y=function(_){return function(S){for(var T=m(S),C=p(T),O=C.length,P=0,I=[],N;O>P;)N=C[P++],(!d||v.call(T,N))&&I.push(_?[N,T[N]]:T[N]);return I}};o.exports={entries:y(!0),values:y(!1)}},"73d9":function(o,l,c){var d=c("44d2");d("flatMap")},7418:function(o,l){l.f=Object.getOwnPropertySymbols},"746f":function(o,l,c){var d=c("428f"),p=c("5135"),m=c("e538"),v=c("9bf2").f;o.exports=function(y){var _=d.Symbol||(d.Symbol={});p(_,y)||v(_,y,{value:m.f(y)})}},7839:function(o,l){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(o,l,c){var d=c("1d80");o.exports=function(p){return Object(d(p))}},"7c73":function(o,l,c){var d=c("825a"),p=c("37e8"),m=c("7839"),v=c("d012"),y=c("1be4"),_=c("cc12"),S=c("f772"),T=">",C="<",O="prototype",P="script",I=S("IE_PROTO"),N=function(){},M=function(Y){return C+P+T+Y+C+"/"+P+T},D=function(Y){Y.write(M("")),Y.close();var ee=Y.parentWindow.Object;return Y=null,ee},H=function(){var Y=_("iframe"),ee="java"+P+":",le;return Y.style.display="none",y.appendChild(Y),Y.src=String(ee),le=Y.contentWindow.document,le.open(),le.write(M("document.F=Object")),le.close(),le.F},Z,te=function(){try{Z=document.domain&&new ActiveXObject("htmlfile")}catch{}te=Z?D(Z):H();for(var Y=m.length;Y--;)delete te[O][m[Y]];return te()};v[I]=!0,o.exports=Object.create||function(ee,le){var oe;return ee!==null?(N[O]=d(ee),oe=new N,N[O]=null,oe[I]=ee):oe=te(),le===void 0?oe:p(oe,le)}},"7dd0":function(o,l,c){var d=c("23e7"),p=c("9ed3"),m=c("e163"),v=c("d2bb"),y=c("d44e"),_=c("9112"),S=c("6eeb"),T=c("b622"),C=c("c430"),O=c("3f8c"),P=c("ae93"),I=P.IteratorPrototype,N=P.BUGGY_SAFARI_ITERATORS,M=T("iterator"),D="keys",H="values",Z="entries",te=function(){return this};o.exports=function(Y,ee,le,oe,pe,ge,Ce){p(le,ee,oe);var ue=function(Pe){if(Pe===pe&&de)return de;if(!N&&Pe in fe)return fe[Pe];switch(Pe){case D:return function(){return new le(this,Pe)};case H:return function(){return new le(this,Pe)};case Z:return function(){return new le(this,Pe)}}return function(){return new le(this)}},ie=ee+" Iterator",X=!1,fe=Y.prototype,me=fe[M]||fe["@@iterator"]||pe&&fe[pe],de=!N&&me||ue(pe),ye=ee=="Array"&&fe.entries||me,ze,st,Oe;if(ye&&(ze=m(ye.call(new Y)),I!==Object.prototype&&ze.next&&(!C&&m(ze)!==I&&(v?v(ze,I):typeof ze[M]!="function"&&_(ze,M,te)),y(ze,ie,!0,!0),C&&(O[ie]=te))),pe==H&&me&&me.name!==H&&(X=!0,de=function(){return me.call(this)}),(!C||Ce)&&fe[M]!==de&&_(fe,M,de),O[ee]=de,pe)if(st={values:ue(H),keys:ge?de:ue(D),entries:ue(Z)},Ce)for(Oe in st)(N||X||!(Oe in fe))&&S(fe,Oe,st[Oe]);else d({target:ee,proto:!0,forced:N||X},st);return st}},"7f9a":function(o,l,c){var d=c("da84"),p=c("8925"),m=d.WeakMap;o.exports=typeof m=="function"&&/native code/.test(p(m))},"825a":function(o,l,c){var d=c("861d");o.exports=function(p){if(!d(p))throw TypeError(String(p)+" is not an object");return p}},"83ab":function(o,l,c){var d=c("d039");o.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(o,l,c){var d=c("c04e"),p=c("9bf2"),m=c("5c6c");o.exports=function(v,y,_){var S=d(y);S in v?p.f(v,S,m(0,_)):v[S]=_}},"861d":function(o,l){o.exports=function(c){return typeof c=="object"?c!==null:typeof c=="function"}},8875:function(o,l,c){var d,p,m;(function(v,y){p=[],d=y,m=typeof d=="function"?d.apply(l,p):d,m!==void 0&&(o.exports=m)})(typeof self<"u"?self:this,function(){function v(){var y=Object.getOwnPropertyDescriptor(document,"currentScript");if(!y&&"currentScript"in document&&document.currentScript||y&&y.get!==v&&document.currentScript)return document.currentScript;try{throw new Error}catch(Z){var _=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,S=/@([^@]*):(\d+):(\d+)\s*$/ig,T=_.exec(Z.stack)||S.exec(Z.stack),C=T&&T[1]||!1,O=T&&T[2]||!1,P=document.location.href.replace(document.location.hash,""),I,N,M,D=document.getElementsByTagName("script");C===P&&(I=document.documentElement.outerHTML,N=new RegExp("(?:[^\\n]+?\\n){0,"+(O-2)+"}[^<]*