ode-explorer 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PublishModal.js +1 -1
- package/dist/TextArea.js +1 -1
- package/dist/index.js +1 -1
- package/dist/version.txt +1 -1
- package/package.json +3 -3
package/dist/PublishModal.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as A,a2 as re,i as le,j as e,d as Y,o as K,l as te,s as se,e as ie,a3 as S,a4 as ce,a5 as Q,A as H,u as C,a as ne,M,H as U,F as f,Z as V,E as Z,a6 as j,B as G,b as oe}from"./index.js";import{u as be}from"./index.esm.js";import{I as ue,T as pe}from"./TextArea.js";import"/assets/js/edifice-ts-client/index.js";const X=A.forwardRef(({options:a,model:t,disabled:n=!1,placeholderOption:o=!1,...b},r)=>{const{isRequired:c,status:v}=re(),N=A.useId(),y={...b,id:N,disabled:n,ref:r,className:le(b.className,"form-select c-pointer",{"is-invalid":v==="invalid","is-valid":v==="valid"})};return e.jsx(e.Fragment,{children:e.jsxs("select",{...y,required:c,children:[o&&e.jsx("option",{disabled:!0,selected:t===void 0,children:o}),a==null?void 0:a.map(u=>{const g=typeof u=="object"?u.value:u,p=typeof u=="object"?u.label:u;return e.jsx("option",{value:g,selected:t===g,children:p},g)})]})})});X.displayName="Select";const D=X;function de({onSuccess:a}){var s;const{user:t,appCode:n}=Y(),o=t?t==null?void 0:t.userId:"",b=K(),r=te(),[c,v]=A.useState(((s=b[0])==null?void 0:s.thumbnail)||""),[N,y]=A.useState(!1),{hotToast:u}=se(H),{publishApi:g}=ie(),{register:p,watch:O,setValue:d,handleSubmit:q,formState:{errors:R,isSubmitting:_,isDirty:E,isValid:w}}=be({mode:"onChange"}),[m,F]=A.useState([]),[h,P]=A.useState([]);return{watch:O,setValue:d,selectedResources:b,register:p,handleSubmit:q,formState:{errors:R,isSubmitting:_,isDirty:E,isValid:w},publish:async l=>{try{y(!0);let i=new Blob;typeof c=="string"?i=await S.get(c,{responseType:"blob"}):c?i=await S.get(URL.createObjectURL(c),{responseType:"blob"}):b[0].thumbnail&&(i=await S.get(b[0].thumbnail,{responseType:"blob"}));const T=await S.get(`/userbook/avatar/${o}?thumbnail=48x48`,{responseType:"blob"}),x=await S.get(`/directory/user/${o}/attachment-school`,{responseType:"json"}),I=ce[n],ee={activityType:m,age:[l.ageMin,l.ageMax],application:Q().libraryAppFilter??I,cover:i,description:l.description,keyWords:l.keyWords,language:l.language,licence:"CC-BY",resourceId:b[0].assetId,resourceEntId:b[0].assetId,subjectArea:h,teacherAvatar:T,title:l.title,userId:o,userStructureName:x.name||(t==null?void 0:t.structureNames[0])},ae=r.types[0],W=await g(ae,ee);W.success?u.success(e.jsx(he,{result:W}),{duration:1e4}):u.error(e.jsx(J,{formData:l})),a==null||a()}catch{u.error(e.jsx(J,{formData:l}))}finally{y(!1)}},handleDeleteImage:()=>{v("")},handleUploadImage:l=>{v(l)},selectedActivities:m,selectActivities:l=>{let i=[...m];const T=i.findIndex(x=>x===l);m.includes(l)?i=m.filter((x,I)=>I!==T):i=[...m,l],F(i)},selectedSubjectAreas:h,selectSubjects:l=>{let i=[...h];const T=i.findIndex(x=>x===l);h.includes(l)?i=h.filter((x,I)=>I!==T):i=[...h,l],P(i)},loaderPublish:N,cover:c}}function me(){const{t:a}=C(),t=[{value:"bpr.activityType.classroomActivity",label:a("bpr.activityType.classroomActivity")},{value:"bpr.activityType.groupActivity",label:a("bpr.activityType.groupActivity")},{value:"bpr.activityType.personalActivity",label:a("bpr.activityType.personalActivity")},{value:"bpr.activityType.homework",label:a("bpr.activityType.homework")},{value:"bpr.activityType.exercize",label:a("bpr.activityType.exercize")},{value:"bpr.activityType.learningPath",label:a("bpr.activityType.learningPath")},{value:"bpr.activityType.courseElement",label:a("bpr.activityType.courseElement")},{value:"bpr.other",label:a("bpr.other")}],n=[{value:"bpr.subjectArea.artActivity",label:a("bpr.subjectArea.artActivity")},{value:"bpr.subjectArea.readLearning",label:a("bpr.subjectArea.readLearning")},{value:"bpr.subjectArea.chemistry",label:a("bpr.subjectArea.chemistry")},{value:"bpr.subjectArea.law",label:a("bpr.subjectArea.law")},{value:"bpr.subjectArea.worldDiscovery",label:a("bpr.subjectArea.worldDiscovery")},{value:"bpr.subjectArea.economy",label:a("bpr.subjectArea.economy")},{value:"bpr.subjectArea.mediaEducation",label:a("bpr.subjectArea.mediaEducation")},{value:"bpr.subjectArea.musicEducation",label:a("bpr.subjectArea.musicEducation")},{value:"bpr.subjectArea.sportEducation",label:a("bpr.subjectArea.sportEducation")},{value:"bpr.subjectArea.citizenshipEducation",label:a("bpr.subjectArea.citizenshipEducation")},{value:"bpr.subjectArea.geography",label:a("bpr.subjectArea.geography")},{value:"bpr.subjectArea.history",label:a("bpr.subjectArea.history")},{value:"bpr.subjectArea.artHistory",label:a("bpr.subjectArea.artHistory")},{value:"bpr.subjectArea.ComputerScience",label:a("bpr.subjectArea.ComputerScience")},{value:"bpr.subjectArea.languages",label:a("bpr.subjectArea.languages")},{value:"bpr.subjectArea.italian",label:a("bpr.subjectArea.italian")},{value:"bpr.subjectArea.spanish",label:a("bpr.subjectArea.spanish")},{value:"bpr.subjectArea.french",label:a("bpr.subjectArea.french")},{value:"bpr.subjectArea.german",label:a("bpr.subjectArea.german")},{value:"bpr.subjectArea.english",label:a("bpr.subjectArea.english")},{value:"bpr.subjectArea.ancientLanguages",label:a("bpr.subjectArea.ancientLanguages")},{value:"bpr.subjectArea.literature",label:a("bpr.subjectArea.literature")},{value:"bpr.subjectArea.mathematics",label:a("bpr.subjectArea.mathematics")},{value:"bpr.subjectArea.vocationalGuidance",label:a("bpr.subjectArea.vocationalGuidance")},{value:"bpr.subjectArea.philosohppy",label:a("bpr.subjectArea.philosohppy")},{value:"bpr.subjectArea.physics",label:a("bpr.subjectArea.physics")},{value:"bpr.subjectArea.politicalSscience",label:a("bpr.subjectArea.politicalSscience")},{value:"bpr.subjectArea.sociology",label:a("bpr.subjectArea.sociology")},{value:"bpr.subjectArea.biology",label:a("bpr.subjectArea.biology")},{value:"bpr.subjectArea.geology",label:a("bpr.subjectArea.geology")},{value:"bpr.subjectArea.technology",label:a("bpr.subjectArea.technology")},{value:"bpr.other",label:a("bpr.other")}],o=[{value:"de_DE",label:a("de_DE")},{value:"en_EN",label:a("en_EN")},{value:"ar_DZ",label:a("ar_DZ")},{value:"es_ES",label:a("es_ES")},{value:"fr_FR",label:a("fr_FR")},{value:"it_IT",label:a("it_IT")},{value:"ja_JP",label:a("ja_JP")},{value:"zh_CN",label:a("zh_CN")},{value:"pt_PT",label:a("pt_PT")},{value:"ru_RU",label:a("ru_RU")},{value:"bpr.other",label:a("bpr.other")}];return{activityTypeOptions:t,subjectAreaOptions:n,languageOptions:o,ageOptions:["3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"]}}function ye({isOpen:a,onSuccess:t,onCancel:n}){var z,B;const{currentApp:o}=Y(),[b]=oe(),{t:r}=C(),{register:c,handleSubmit:v,publish:N,formState:{isDirty:y,isValid:u},handleUploadImage:g,selectedActivities:p,selectActivities:O,selectedSubjectAreas:d,selectSubjects:q,handleDeleteImage:R,loaderPublish:_,cover:E}=de({onSuccess:t}),w=K(),{activityTypeOptions:m,subjectAreaOptions:F,languageOptions:h,ageOptions:P}=me(),k=r("bpr.form.publication.language"),$=r("bpr.form.publication.age.min"),L=r("bpr.form.publication.age.max");return ne.createPortal(e.jsxs(M,{isOpen:a,onModalClose:n,id:"libraryModal",size:"lg",children:[e.jsx(M.Header,{onModalClose:n,children:r("bpr.publish")}),e.jsx(M.Subtitle,{children:r("bpr.form.tip")}),e.jsxs(M.Body,{children:[e.jsx(U,{headingStyle:"h4",level:"h3",className:"mb-16",children:r("bpr.form.publication.heading.general")}),e.jsxs("form",{id:"libraryModalForm",onSubmit:v(N),children:[e.jsxs("div",{className:"d-block d-md-flex mb-24 gap-24",children:[e.jsxs("div",{style:{maxWidth:"160px"},children:[e.jsx("div",{className:"form-label",children:r("bpr.form.publication.cover.title")}),e.jsx(ue,{app:Q().libraryAppFilter??o,src:(z=w[0])==null?void 0:z.thumbnail,label:r("bpr.form.publication.cover.upload.label"),addButtonLabel:r("bpr.form.publication.cover.upload.add"),deleteButtonLabel:r("bpr.form.publication.cover.upload.remove"),onUploadImage:g,onDeleteImage:R,className:"align-self-center"}),!E&&e.jsx("p",{className:"form-text is-invalid",children:e.jsx("em",{children:r("bpr.form.publication.cover.upload.required.image")})})]}),e.jsxs("div",{className:"flex-fill",children:[e.jsxs(f,{id:"title",className:"mb-16",isRequired:!0,children:[e.jsx(V,{children:r("bpr.form.publication.title")}),e.jsx(Z,{type:"text",defaultValue:(B=w[0])==null?void 0:B.name,...c("title",{required:!0}),placeholder:r("bpr.form.publication.title.placeholder"),size:"md","aria-required":!0})]}),e.jsxs(f,{id:"description",isRequired:!0,children:[e.jsx(V,{children:r("bpr.form.publication.description")}),e.jsx(pe,{...c("description",{required:!0}),placeholder:r("bpr.form.publication.description.placeholder"),size:"md"})]})]})]}),e.jsx("hr",{}),e.jsx(U,{headingStyle:"h4",level:"h3",className:"mb-16",children:r("bpr.form.publication.heading.infos")}),e.jsxs("div",{className:"d-flex flex-column flex-md-row gap-16 row mb-24",children:[e.jsx("div",{className:"col d-flex",children:e.jsxs(j,{block:!0,children:[e.jsx(j.Trigger,{size:"md",label:r("bpr.form.publication.type"),badgeContent:p==null?void 0:p.length}),e.jsx(j.Menu,{children:m.map((s,l)=>e.jsx(j.CheckboxItem,{value:s.value,model:p,onChange:()=>O(s.value),children:s.label},l))})]})}),e.jsx("div",{className:"col d-flex",children:e.jsxs(j,{block:!0,children:[e.jsx(j.Trigger,{size:"md",label:r("bpr.form.publication.discipline"),badgeContent:d==null?void 0:d.length}),e.jsx(j.Menu,{children:F.map((s,l)=>e.jsx(j.CheckboxItem,{value:s.value,model:d,onChange:()=>q(s.value),children:s.label},l))})]})}),e.jsx("div",{className:"col",children:e.jsx(f,{id:"language",isRequired:!0,children:e.jsx(D,{...c("language",{required:!0,validate:s=>s!==k}),options:h,placeholderOption:k,defaultValue:k,"aria-required":!0})})})]}),e.jsxs("div",{className:"mb-24",children:[e.jsx("label",{htmlFor:"",className:"form-label",children:r("bpr.form.publication.age")}),e.jsxs("div",{className:"d-flex",children:[e.jsx("div",{className:"me-16",children:e.jsx(f,{id:"ageMin",isRequired:!0,children:e.jsx(D,{...c("ageMin",{required:!0,validate:(s,l)=>parseInt(s)<=parseInt(l.ageMax)}),options:P,placeholderOption:$,defaultValue:$,"aria-required":!0})})}),e.jsx("div",{children:e.jsx(f,{id:"ageMax",isRequired:!0,children:e.jsx(D,{...c("ageMax",{required:!0,validate:(s,l)=>parseInt(s)>=parseInt(l.ageMin)}),options:P,placeholderOption:L,defaultValue:L,"aria-required":!0})})})]})]}),e.jsx("div",{className:"mb-24",children:e.jsxs(f,{id:"keywords",isOptional:!0,children:[e.jsx(V,{children:r("bpr.form.publication.keywords")}),e.jsx(Z,{type:"text",...c("keyWords"),size:"md",placeholder:r("bpr.form.publication.keywords.placeholder")})]})}),e.jsx("hr",{}),e.jsx(U,{headingStyle:"h4",level:"h3",className:"mb-16",children:r("bpr.form.publication.licence.text")}),e.jsxs("ul",{className:"mb-12",children:[e.jsxs("li",{children:[r("bpr.form.publication.licence.text.1"),e.jsx("img",{className:"ms-8 d-inline-block",src:`${b}/common/image-creative-commons.png`,alt:"licence creative commons"})]}),e.jsx("li",{children:r("bpr.form.publication.licence.text.2")})]}),e.jsx(H,{type:"info",className:"mb-12",children:r("bpr.form.publication.licence.text.3")}),e.jsx(H,{type:"warning",children:r("bpr.form.publication.licence.text.4")})]})]}),e.jsxs(M.Footer,{children:[e.jsx(G,{color:"tertiary",onClick:n,type:"button",variant:"ghost",children:r("cancel")}),e.jsx(G,{form:"libraryModalForm",type:"submit",color:"primary",variant:"filled",isLoading:_,disabled:!E||_||!y||!u||(p==null?void 0:p.length)===0||(d==null?void 0:d.length)===0,children:r("bpr.form.submit")})]})]}),document.getElementById("portal"))}function he({result:a}){const{t}=C();return e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"pt-24",children:t("bpr.form.publication.response.success.title")}),e.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.1")}),e.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.2")}),a.details.front_url&&e.jsx("p",{className:"pt-24 pb-24",children:e.jsx("a",{className:"button right-magnet",href:a.details.front_url,target:"_blank",rel:"noreferrer",children:t("bpr.form.publication.response.success.button")})})]})}function J({formData:a}){const{t}=C(),n=o=>o.match(/^\s/);return e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"pt-24",children:t("bpr.form.publication.response.error.title")}),e.jsx("p",{className:"pt-24 pb-24",children:e.jsx("strong",{children:t("bpr.form.publication.response.error.content")})}),e.jsxs("ul",{children:[n(a.title)&&e.jsx("li",{className:"pt-2 pb-2",children:e.jsx("strong",{children:t("bpr.form.publication.response.empty.title")})}),n(a.description)&&e.jsx("li",{className:"pt-2 pb-2",children:e.jsx("strong",{children:t("bpr.form.publication.response.empty.description")})})]})]})}export{J as PublishModalError,he as PublishModalSuccess,ye as default};
|
|
1
|
+
import{r as A,a2 as re,i as le,j as e,d as Y,o as K,l as te,s as se,e as ie,a3 as S,a4 as ce,a5 as Q,A as H,u as C,a as oe,M,H as U,F as f,Z as V,E as Z,a6 as j,B as G,b as ne}from"./index.js";import{u as be}from"./index.esm.js";import{I as ue,T as pe}from"./TextArea.js";import"/assets/js/edifice-ts-client/index.js";const X=A.forwardRef(({options:a,model:t,disabled:o=!1,placeholderOption:n=!1,...b},r)=>{const{isRequired:c,status:v}=re(),N=A.useId(),y={...b,id:N,disabled:o,ref:r,className:le(b.className,"form-select c-pointer",{"is-invalid":v==="invalid","is-valid":v==="valid"})};return e.jsx(e.Fragment,{children:e.jsxs("select",{...y,required:c,children:[n&&e.jsx("option",{disabled:!0,selected:t===void 0,children:n}),a==null?void 0:a.map(u=>{const g=typeof u=="object"?u.value:u,p=typeof u=="object"?u.label:u;return e.jsx("option",{value:g,selected:t===g,children:p},g)})]})})});X.displayName="Select";const D=X;function de({onSuccess:a}){var s;const{user:t,appCode:o}=Y(),n=t?t==null?void 0:t.userId:"",b=K(),r=te(),[c,v]=A.useState(((s=b[0])==null?void 0:s.thumbnail)||""),[N,y]=A.useState(!1),{hotToast:u}=se(H),{publishApi:g}=ie(),{register:p,watch:O,setValue:d,handleSubmit:q,formState:{errors:R,isSubmitting:_,isDirty:w,isValid:E}}=be({mode:"onChange"}),[m,F]=A.useState([]),[h,P]=A.useState([]);return{watch:O,setValue:d,selectedResources:b,register:p,handleSubmit:q,formState:{errors:R,isSubmitting:_,isDirty:w,isValid:E},publish:async l=>{try{y(!0);let i=new Blob;typeof c=="string"?i=await S.get(c,{responseType:"blob"}):c?i=await S.get(URL.createObjectURL(c),{responseType:"blob"}):b[0].thumbnail&&(i=await S.get(b[0].thumbnail,{responseType:"blob"}));const T=await S.get(`/userbook/avatar/${n}?thumbnail=48x48`,{responseType:"blob"}),x=await S.get(`/directory/user/${n}/attachment-school`,{responseType:"json"}),I=ce[o],ee={activityType:m,age:[l.ageMin,l.ageMax],application:Q().libraryAppFilter??I,cover:i,description:l.description,keyWords:l.keyWords,language:l.language,licence:"CC-BY",resourceId:b[0].assetId,resourceEntId:b[0].assetId,subjectArea:h,teacherAvatar:T,title:l.title,userId:n,userStructureName:x.name||(t==null?void 0:t.structureNames[0])},ae=r.types[0],W=await g(ae,ee);W.success?u.success(e.jsx(he,{result:W}),{duration:1e4}):u.error(e.jsx(J,{formData:l})),a==null||a()}catch{u.error(e.jsx(J,{formData:l}))}finally{y(!1)}},handleDeleteImage:()=>{v("")},handleUploadImage:l=>{v(l)},selectedActivities:m,selectActivities:l=>{let i=[...m];const T=i.findIndex(x=>x===l);m.includes(l)?i=m.filter((x,I)=>I!==T):i=[...m,l],F(i)},selectedSubjectAreas:h,selectSubjects:l=>{let i=[...h];const T=i.findIndex(x=>x===l);h.includes(l)?i=h.filter((x,I)=>I!==T):i=[...h,l],P(i)},loaderPublish:N,cover:c}}function me(){const{t:a}=C(),t=[{value:"bpr.activityType.classroomActivity",label:a("bpr.activityType.classroomActivity")},{value:"bpr.activityType.groupActivity",label:a("bpr.activityType.groupActivity")},{value:"bpr.activityType.personalActivity",label:a("bpr.activityType.personalActivity")},{value:"bpr.activityType.homework",label:a("bpr.activityType.homework")},{value:"bpr.activityType.exercize",label:a("bpr.activityType.exercize")},{value:"bpr.activityType.learningPath",label:a("bpr.activityType.learningPath")},{value:"bpr.activityType.courseElement",label:a("bpr.activityType.courseElement")},{value:"bpr.other",label:a("bpr.other")}],o=[{value:"bpr.subjectArea.artActivity",label:a("bpr.subjectArea.artActivity")},{value:"bpr.subjectArea.readLearning",label:a("bpr.subjectArea.readLearning")},{value:"bpr.subjectArea.chemistry",label:a("bpr.subjectArea.chemistry")},{value:"bpr.subjectArea.law",label:a("bpr.subjectArea.law")},{value:"bpr.subjectArea.worldDiscovery",label:a("bpr.subjectArea.worldDiscovery")},{value:"bpr.subjectArea.economy",label:a("bpr.subjectArea.economy")},{value:"bpr.subjectArea.mediaEducation",label:a("bpr.subjectArea.mediaEducation")},{value:"bpr.subjectArea.musicEducation",label:a("bpr.subjectArea.musicEducation")},{value:"bpr.subjectArea.sportEducation",label:a("bpr.subjectArea.sportEducation")},{value:"bpr.subjectArea.citizenshipEducation",label:a("bpr.subjectArea.citizenshipEducation")},{value:"bpr.subjectArea.geography",label:a("bpr.subjectArea.geography")},{value:"bpr.subjectArea.history",label:a("bpr.subjectArea.history")},{value:"bpr.subjectArea.artHistory",label:a("bpr.subjectArea.artHistory")},{value:"bpr.subjectArea.ComputerScience",label:a("bpr.subjectArea.ComputerScience")},{value:"bpr.subjectArea.languages",label:a("bpr.subjectArea.languages")},{value:"bpr.subjectArea.italian",label:a("bpr.subjectArea.italian")},{value:"bpr.subjectArea.spanish",label:a("bpr.subjectArea.spanish")},{value:"bpr.subjectArea.french",label:a("bpr.subjectArea.french")},{value:"bpr.subjectArea.german",label:a("bpr.subjectArea.german")},{value:"bpr.subjectArea.english",label:a("bpr.subjectArea.english")},{value:"bpr.subjectArea.ancientLanguages",label:a("bpr.subjectArea.ancientLanguages")},{value:"bpr.subjectArea.literature",label:a("bpr.subjectArea.literature")},{value:"bpr.subjectArea.mathematics",label:a("bpr.subjectArea.mathematics")},{value:"bpr.subjectArea.vocationalGuidance",label:a("bpr.subjectArea.vocationalGuidance")},{value:"bpr.subjectArea.philosohppy",label:a("bpr.subjectArea.philosohppy")},{value:"bpr.subjectArea.physics",label:a("bpr.subjectArea.physics")},{value:"bpr.subjectArea.politicalSscience",label:a("bpr.subjectArea.politicalSscience")},{value:"bpr.subjectArea.sociology",label:a("bpr.subjectArea.sociology")},{value:"bpr.subjectArea.biology",label:a("bpr.subjectArea.biology")},{value:"bpr.subjectArea.geology",label:a("bpr.subjectArea.geology")},{value:"bpr.subjectArea.technology",label:a("bpr.subjectArea.technology")},{value:"bpr.other",label:a("bpr.other")}],n=[{value:"de_DE",label:a("de_DE")},{value:"en_EN",label:a("en_EN")},{value:"ar_DZ",label:a("ar_DZ")},{value:"es_ES",label:a("es_ES")},{value:"fr_FR",label:a("fr_FR")},{value:"it_IT",label:a("it_IT")},{value:"ja_JP",label:a("ja_JP")},{value:"zh_CN",label:a("zh_CN")},{value:"pt_PT",label:a("pt_PT")},{value:"ru_RU",label:a("ru_RU")},{value:"bpr.other",label:a("bpr.other")}];return{activityTypeOptions:t,subjectAreaOptions:o,languageOptions:n,ageOptions:["3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"]}}function ye({isOpen:a,onSuccess:t,onCancel:o}){var z,B;const{currentApp:n}=Y(),[b]=ne(),{t:r}=C(),{register:c,handleSubmit:v,publish:N,formState:{isDirty:y,isValid:u},handleUploadImage:g,selectedActivities:p,selectActivities:O,selectedSubjectAreas:d,selectSubjects:q,handleDeleteImage:R,loaderPublish:_,cover:w}=de({onSuccess:t}),E=K(),{activityTypeOptions:m,subjectAreaOptions:F,languageOptions:h,ageOptions:P}=me(),k=r("bpr.form.publication.language"),$=r("bpr.form.publication.age.min"),L=r("bpr.form.publication.age.max");return oe.createPortal(e.jsxs(M,{isOpen:a,onModalClose:o,id:"libraryModal",size:"lg",children:[e.jsx(M.Header,{onModalClose:o,children:r("bpr.publish")}),e.jsx(M.Subtitle,{children:r("bpr.form.tip")}),e.jsxs(M.Body,{children:[e.jsx(U,{headingStyle:"h4",level:"h3",className:"mb-16",children:r("bpr.form.publication.heading.general")}),e.jsxs("form",{id:"libraryModalForm",onSubmit:v(N),children:[e.jsxs("div",{className:"d-block d-md-flex mb-24 gap-24",children:[e.jsxs("div",{style:{maxWidth:"160px"},children:[e.jsx("div",{className:"form-label",children:r("bpr.form.publication.cover.title")}),e.jsx(ue,{app:Q().libraryAppFilter??n,src:(z=E[0])==null?void 0:z.thumbnail,label:r("bpr.form.publication.cover.upload.label"),addButtonLabel:r("bpr.form.publication.cover.upload.add"),deleteButtonLabel:r("bpr.form.publication.cover.upload.remove"),onUploadImage:g,onDeleteImage:R,className:"align-self-center"}),!w&&e.jsx("p",{className:"form-text is-invalid",children:e.jsx("em",{children:r("bpr.form.publication.cover.upload.required.image")})})]}),e.jsxs("div",{className:"flex-fill",children:[e.jsxs(f,{id:"title",className:"mb-16",isRequired:!0,children:[e.jsx(V,{children:r("bpr.form.publication.title")}),e.jsx(Z,{type:"text",defaultValue:(B=E[0])==null?void 0:B.name,...c("title",{required:!0}),placeholder:r("bpr.form.publication.title.placeholder"),size:"md","aria-required":!0})]}),e.jsxs(f,{id:"description",isRequired:!0,children:[e.jsx(V,{children:r("bpr.form.publication.description")}),e.jsx(pe,{...c("description",{required:!0}),placeholder:r("bpr.form.publication.description.placeholder"),size:"md"})]})]})]}),e.jsx("hr",{}),e.jsx(U,{headingStyle:"h4",level:"h3",className:"mb-16",children:r("bpr.form.publication.heading.infos")}),e.jsxs("div",{className:"d-flex flex-column flex-md-row gap-16 row mb-24",children:[e.jsx("div",{className:"col d-flex",children:e.jsxs(j,{block:!0,overflow:!0,children:[e.jsx(j.Trigger,{size:"md",label:r("bpr.form.publication.type"),badgeContent:p==null?void 0:p.length}),e.jsx(j.Menu,{children:m.map((s,l)=>e.jsx(j.CheckboxItem,{value:s.value,model:p,onChange:()=>O(s.value),children:s.label},l))})]})}),e.jsx("div",{className:"col d-flex",children:e.jsxs(j,{block:!0,overflow:!0,children:[e.jsx(j.Trigger,{size:"md",label:r("bpr.form.publication.discipline"),badgeContent:d==null?void 0:d.length}),e.jsx(j.Menu,{children:F.map((s,l)=>e.jsx(j.CheckboxItem,{value:s.value,model:d,onChange:()=>q(s.value),children:s.label},l))})]})}),e.jsx("div",{className:"col",children:e.jsx(f,{id:"language",isRequired:!0,children:e.jsx(D,{...c("language",{required:!0,validate:s=>s!==k}),options:h,placeholderOption:k,defaultValue:k,"aria-required":!0})})})]}),e.jsxs("div",{className:"mb-24",children:[e.jsx("label",{htmlFor:"",className:"form-label",children:r("bpr.form.publication.age")}),e.jsxs("div",{className:"d-flex",children:[e.jsx("div",{className:"me-16",children:e.jsx(f,{id:"ageMin",isRequired:!0,children:e.jsx(D,{...c("ageMin",{required:!0,validate:(s,l)=>parseInt(s)<=parseInt(l.ageMax)}),options:P,placeholderOption:$,defaultValue:$,"aria-required":!0})})}),e.jsx("div",{children:e.jsx(f,{id:"ageMax",isRequired:!0,children:e.jsx(D,{...c("ageMax",{required:!0,validate:(s,l)=>parseInt(s)>=parseInt(l.ageMin)}),options:P,placeholderOption:L,defaultValue:L,"aria-required":!0})})})]})]}),e.jsx("div",{className:"mb-24",children:e.jsxs(f,{id:"keywords",isOptional:!0,children:[e.jsx(V,{children:r("bpr.form.publication.keywords")}),e.jsx(Z,{type:"text",...c("keyWords"),size:"md",placeholder:r("bpr.form.publication.keywords.placeholder")})]})}),e.jsx("hr",{}),e.jsx(U,{headingStyle:"h4",level:"h3",className:"mb-16",children:r("bpr.form.publication.licence.text")}),e.jsxs("ul",{className:"mb-12",children:[e.jsxs("li",{children:[r("bpr.form.publication.licence.text.1"),e.jsx("img",{className:"ms-8 d-inline-block",src:`${b}/common/image-creative-commons.png`,alt:"licence creative commons"})]}),e.jsx("li",{children:r("bpr.form.publication.licence.text.2")})]}),e.jsx(H,{type:"info",className:"mb-12",children:r("bpr.form.publication.licence.text.3")}),e.jsx(H,{type:"warning",children:r("bpr.form.publication.licence.text.4")})]})]}),e.jsxs(M.Footer,{children:[e.jsx(G,{color:"tertiary",onClick:o,type:"button",variant:"ghost",children:r("cancel")}),e.jsx(G,{form:"libraryModalForm",type:"submit",color:"primary",variant:"filled",isLoading:_,disabled:!w||_||!y||!u||(p==null?void 0:p.length)===0||(d==null?void 0:d.length)===0,children:r("bpr.form.submit")})]})]}),document.getElementById("portal"))}function he({result:a}){const{t}=C();return e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"pt-24",children:t("bpr.form.publication.response.success.title")}),e.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.1")}),e.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.2")}),a.details.front_url&&e.jsx("p",{className:"pt-24 pb-24",children:e.jsx("a",{className:"button right-magnet",href:a.details.front_url,target:"_blank",rel:"noreferrer",children:t("bpr.form.publication.response.success.button")})})]})}function J({formData:a}){const{t}=C(),o=n=>n.match(/^\s/);return e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"pt-24",children:t("bpr.form.publication.response.error.title")}),e.jsx("p",{className:"pt-24 pb-24",children:e.jsx("strong",{children:t("bpr.form.publication.response.error.content")})}),e.jsxs("ul",{children:[o(a.title)&&e.jsx("li",{className:"pt-2 pb-2",children:e.jsx("strong",{children:t("bpr.form.publication.response.empty.title")})}),o(a.description)&&e.jsx("li",{className:"pt-2 pb-2",children:e.jsx("strong",{children:t("bpr.form.publication.response.empty.description")})})]})]})}export{J as PublishModalError,he as PublishModalSuccess,ye as default};
|
package/dist/TextArea.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as g,i as j,j as
|
|
1
|
+
import{r as g,i as j,j as e,F as D,x as f,a7 as L,a8 as N,E as P,v as w,a9 as E,a2 as T}from"./index.js";const z=(n,u)=>{const[,r]=g.useState(!1),o=g.useCallback(a=>{a.preventDefault(),a.stopPropagation(),r(!0)},[]),l=a=>{a.preventDefault(),a.stopPropagation(),r(!1)};return{handleDragging:o,handleDragLeave:l,handleDrop:a=>{var c;l(a);const i=(c=a.dataTransfer)==null?void 0:c.files;u(i),n!=null&&n.current&&i&&(n.current.files=i)}}},F=z,C=g.forwardRef(({label:n,addButtonLabel:u="Add image",deleteButtonLabel:r="Delete image",src:o,className:l,app:m,onUploadImage:a,onDeleteImage:i},c)=>{const t=g.useRef(null),[d,p]=g.useState(o||""),x=s=>{p("");const h=s==null?void 0:s[0];h&&(p(URL.createObjectURL(h)),a(h))},y=()=>{var s;(s=t.current)==null||s.click()},R=()=>{t.current&&(t.current.value=""),p(""),i()},b=s=>{x(s.target.files)},k=j("image-input",l),{handleDragging:v,handleDragLeave:I,handleDrop:A}=F(t,x);return e.jsxs(D,{id:"image-input",className:k,onDragEnter:v,onDragOver:v,onDragLeave:I,onDrop:A,ref:c,children:[e.jsxs("div",{className:"image-input-actions gap-8",children:[e.jsx(f,{"aria-label":u,color:"tertiary",icon:e.jsx(L,{}),onClick:y,type:"button",variant:"ghost"}),e.jsx(f,{"aria-label":r,color:"danger",disabled:!d,icon:e.jsx(N,{width:"20",height:"20"}),onClick:R,type:"button",variant:"ghost"})]}),e.jsxs(D.Label,{children:[e.jsx("span",{className:"visually-hidden",children:n}),e.jsx(P,{accept:"image/*",hidden:!0,onChange:b,ref:t,size:"sm",type:"file"}),d?e.jsx(w,{alt:"",src:d,size:"xl"}):e.jsx(E,{app:m,iconFit:"ratio",size:"160",variant:"rounded"})]})]})});C.displayName="ImagePicker";const S=C,$=g.forwardRef(({noValidationIcon:n,placeholder:u,size:r="md",height:o="md",className:l,...m},a)=>{const{id:i,isRequired:c,isReadOnly:t,status:d}=T(),p=j({"form-control":!t,"form-control-lg":r==="lg","form-control-sm":r==="sm","textarea-height-lg":o==="lg","textarea-height-md":o==="md","textarea-height-sm":o==="sm","is-invalid":d==="invalid","is-valid":d==="valid","form-control-plaintext":t,"no-validation-icon":n},l);return e.jsx("textarea",{ref:a,id:i,className:p,placeholder:u,required:c,readOnly:t,...m})});$.displayName="TextArea";const q=$;export{S as I,q as T};
|
package/dist/index.js
CHANGED
|
@@ -221,7 +221,7 @@ to {
|
|
|
221
221
|
> * {
|
|
222
222
|
pointer-events: auto;
|
|
223
223
|
}
|
|
224
|
-
`,ro=16,L4=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:i,containerClassName:o})=>{let{toasts:a,handlers:l}=u4(n);return x.createElement("div",{style:{position:"fixed",zIndex:9999,top:ro,left:ro,right:ro,bottom:ro,pointerEvents:"none",...i},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let c=u.position||t,d=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=I4(c,d);return x.createElement(_4,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?A4:"",style:h},u.type==="custom"?ha(u.message,u):s?s(u):x.createElement(T4,{toast:u,position:c}))}))},hs=Ge;function Ot(e){return{hotToast:{success:(n,r)=>hs.custom(f.jsx(e,{type:"success",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),error:(n,r)=>hs.custom(f.jsx(e,{type:"danger",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),info:(n,r)=>hs.custom(f.jsx(e,{type:"info",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),warning:(n,r)=>hs.custom(f.jsx(e,{type:"warning",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),loading:hs.loading}}}function M4({src:e,placeholder:t}){const[n,r]=x.useState(e||t),s=x.useCallback(()=>{r(t)},[t]);return x.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:s}}function D4(e,t){const n=x.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);x.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function F4(e=!1){const[t,n]=x.useState(e),r=x.useCallback(()=>{n(s=>!s)},[]);return[t,r]}function $4(e,t){const[n,r]=x.useState(e);return x.useEffect(()=>{const s=setTimeout(()=>{r(e)},t||500);return()=>{clearTimeout(s)}},[e,t]),n}function z4(){const e=x.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return x.useEffect(()=>{const n=e.current,r=n.querySelectorAll(t)[0],s=n.querySelectorAll(t),i=e&&(s==null?void 0:s[s.length-1]),o=a=>{a.key==="Tab"&&(a.shiftKey?document.activeElement===r&&(i.focus(),a.preventDefault()):document.activeElement===i&&(r.focus(),a.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function U4(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const i0=x.forwardRef(({children:e},t)=>f.jsx("div",{ref:t,className:"actionbar",children:e}));i0.displayName="ActionBar";const B4=i0,V4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1ZM11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z",clipRule:"evenodd"})]}),H4=V4,q4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.707 4.293a1 1 0 0 1 0 1.414L6.414 12l6.293 6.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"})]}),Q4=q4,K4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L17.586 12l-6.293-6.293a1 1 0 0 1 0-1.414Z",clipRule:"evenodd"})]}),sk=K4,W4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M7 4a1 1 0 0 0-1 1v14.06l5.42-3.87a1 1 0 0 1 1.16 0L18 19.06V5a1 1 0 0 0-1-1H7zM4.88 2.88A3 3 0 0 1 7 2h10a3 3 0 0 1 3 3v16a1 1 0 0 1-1.58.81L12 17.23 5.58 21.8A1 1 0 0 1 4 21V5a3 3 0 0 1 .88-2.12z"})]}),ik=W4,Z4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5ZM21 12c0 .828-.711 1.5-1.588 1.5H4.588C3.711 13.5 3 12.828 3 12s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5ZM21 19c0 .828-.711 1.5-1.588 1.5H4.588C3.711 20.5 3 19.828 3 19s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5Z",clipRule:"evenodd"})]}),G4=Z4,X4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.222 4.222a1.1 1.1 0 0 1 1.556 0l14 14a1.1 1.1 0 1 1-1.556 1.556l-14-14a1.1 1.1 0 0 1 0-1.556Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.778 4.222a1.1 1.1 0 0 1 0 1.556l-14 14a1.1 1.1 0 1 1-1.556-1.556l14-14a1.1 1.1 0 0 1 1.556 0Z",clipRule:"evenodd"})]}),Y4=X4,J4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.676 3c.284-.672.853-1 1.263-1h11.423c.566 0 1.438.628 1.438 1.923v13.154c0 1.056-.58 1.668-1.1 1.858V6.923C19.7 4.99 18.3 3 16.061 3H6.676Zm-2.272.007C4.765 1.41 6.056 0 7.939 0h11.423C21.599 0 23 1.99 23 3.923v13.154c0 1.865-1.303 3.782-3.403 3.916C19.235 22.59 17.944 24 16.06 24H4.638C2.401 24 1 22.01 1 20.077V6.923c0-1.865 1.303-3.782 3.404-3.916ZM3.2 6.923C3.2 5.628 4.072 5 4.638 5h11.423c.567 0 1.439.628 1.439 1.923v13.154c0 1.295-.872 1.923-1.439 1.923H4.638c-.566 0-1.438-.628-1.438-1.923V6.923Z",clipRule:"evenodd"})]}),ok=J4,e3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.955.955 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675Zm7.357.675v.954H20.636a.955.955 0 0 1 0 1.91h-.954v12.408a2.864 2.864 0 0 1-2.864 2.864H7.273a2.864 2.864 0 0 1-2.864-2.864V7.227h-.954a.955.955 0 1 1 0-1.909H7.273v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864Zm-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227H6.318Zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955Zm4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0Z",clipRule:"evenodd"})]}),t3=e3,n3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.879 3.879A3 3 0 0 1 4 3h7a1 1 0 1 1 0 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 1 1 2 0v7a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 2.879c-.297 0-.583.118-.793.328l-9.304 9.304-.529 2.115 2.115-.529 9.304-9.304A1.121 1.121 0 0 0 20 2.879Zm-2.207-1.086a3.121 3.121 0 0 1 4.414 4.414l-9.5 9.5a1 1 0 0 1-.464.263l-4 1a1 1 0 0 1-1.213-1.212l1-4a1 1 0 0 1 .263-.465l9.5-9.5Z",clipRule:"evenodd"})]}),ak=n3,r3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1ZM8.293 15.707a1 1 0 0 1 0-1.414L10.586 12 8.293 9.707a1 1 0 0 1 1.414-1.414L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414 0Z",clipRule:"evenodd"})]}),s3=r3,i3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.91 9.14v1.27H8.25a4.7 4.7 0 0 0-3.86 1.98L1.5 16.53V6.4a2.3 2.3 0 0 1 .77-1.69A2.68 2.68 0 0 1 4.11 4h3.73a2.68 2.68 0 0 1 1.84.71c.25.22.45.48.58.77.13.29.2.6.2.92v.34h7.84c.7.01 1.35.27 1.84.71.49.45.76 1.06.77 1.7ZM8.25 11.92h14.47c.63 0 1 .68.64 1.18l-3.52 5.04a3.13 3.13 0 0 1-2.57 1.32H2.79c-.62 0-.99-.68-.64-1.18l3.53-5.04a3.13 3.13 0 0 1 2.57-1.32Z",clipRule:"evenodd"})]}),lk=i3,o3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067ZM4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4H4.155Z",clipRule:"evenodd"})]}),a3=o3,l3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.057 5.5A.057.057 0 0 0 3 5.557v13.03h18V7.875h-8.697a1 1 0 0 1-1-1c0-.759-.615-1.374-1.374-1.374H3.057ZM1 5.557C1 4.42 1.92 3.5 3.057 3.5h6.872c1.515 0 2.797.999 3.223 2.374H21a2 2 0 0 1 2 2v10.714a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V5.557Z",clipRule:"evenodd"})]}),u3=l3,c3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.008 9.008 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71Zm4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.008 9.008 0 0 0-6.67-7.71Zm.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11h5.884Zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13ZM7.05 13H3.055a9.008 9.008 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13Zm7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.008 9.008 0 0 1-6.67 7.71ZM12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Z",clipRule:"evenodd"})]}),uk=c3,d3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.01 17a1 1 0 0 1-1-1v-5a1 1 0 1 1 2 0v5a1 1 0 0 1-1 1ZM13.01 7.5a1 1 0 0 1-1 1H12a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1Z",clipRule:"evenodd"})]}),f3=d3,h3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.672 5.558a7.96 7.96 0 0 0-9.841.397 7.95 7.95 0 0 0-1.908 9.66 7.964 7.964 0 0 0 8.949 4.12A7.948 7.948 0 0 0 19.962 12a1.021 1.021 0 1 1 2.045 0A9.994 9.994 0 0 1 7.83 21.083a10.01 10.01 0 0 1-5.634-11.027 9.991 9.991 0 0 1 9.402-8.048c2.244-.09 4.453.577 6.272 1.895a1.022 1.022 0 1 1-1.198 1.655Z",clipRule:"evenodd"})]}),p3=h3,m3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),ck=m3,g3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7v7a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7V4Z",clipRule:"evenodd"})]}),v3=g3,y3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117Z",clipRule:"evenodd"})]}),hc=y3,w3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.129 4.012a1.5 1.5 0 0 1-.141 2.117L9.278 12l6.71 5.871a1.5 1.5 0 0 1-1.976 2.258l-8-7a1.5 1.5 0 0 1 0-2.258l8-7a1.5 1.5 0 0 1 2.117.141Z",clipRule:"evenodd"})]}),x3=w3,S3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.871 19.988a1.5 1.5 0 0 1 .141-2.117L14.722 12l-6.71-5.871A1.5 1.5 0 0 1 9.988 3.87l8 7a1.5 1.5 0 0 1 0 2.258l-8 7a1.5 1.5 0 0 1-2.117-.141Z",clipRule:"evenodd"})]}),np=S3,b3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.988 17.129a1.5 1.5 0 0 1-2.117-.141L12 10.278l-5.871 6.71a1.5 1.5 0 0 1-2.258-1.976l7-8a1.5 1.5 0 0 1 2.258 0l7 8a1.5 1.5 0 0 1-.141 2.117Z",clipRule:"evenodd"})]}),E3=b3,C3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7h1a1 1 0 0 0 1-1V8.414L15.586 4H8v3h7a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1V4H5Zm2-2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a1 1 0 0 0-.293-.707l-5-5A1 1 0 0 0 16 2H7Zm1 12v6h8v-6H8Z",clipRule:"evenodd"})]}),dk=C3,R3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0Zm7-9a9 9 0 1 0 5.7 15.96 1 1 0 0 0 .24.4l4.35 4.35a1 1 0 0 0 1.42-1.42l-4.35-4.35a1 1 0 0 0-.4-.24A9 9 0 0 0 11 1Z",clipRule:"evenodd"})]}),k3=R3,P3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.59 8.192a1 1 0 0 1 .218 1.397l-4.375 6a1 1 0 0 1-1.584.042L8.224 12.4a1 1 0 0 1 1.552-1.261l1.806 2.223 3.61-4.951a1 1 0 0 1 1.397-.219Z",clipRule:"evenodd"})]}),O3=P3,N3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:f.jsx("path",{d:"M19.055 12.803a1 1 0 0 1 1.272-.618c1.128.39 2.061 1.247 2.7 2.351.64 1.106.972 2.435.973 3.782V21a1 1 0 1 1-2 0v-2.681c0-1.03-.258-2.009-.704-2.782-.448-.773-1.034-1.258-1.623-1.462a1 1 0 0 1-.618-1.272ZM15.187 1.384a1 1 0 0 1 1.036-.962 5.129 5.129 0 0 1 2.11 9.71 1 1 0 1 1-.896-1.788 3.129 3.129 0 0 0-1.288-5.924 1 1 0 0 1-.962-1.036ZM1.505 15.694C2.481 14.622 3.825 14 5.25 14h8.5c1.424 0 2.769.622 3.744 1.694.974 1.068 1.506 2.498 1.506 3.973V22a1 1 0 1 1-2 0v-2.333c0-1.001-.363-1.945-.984-2.627-.618-.679-1.436-1.04-2.266-1.04h-8.5c-.83 0-1.648.361-2.266 1.04-.621.682-.984 1.626-.984 2.627V22a1 1 0 1 1-2 0v-2.333c0-1.475.533-2.905 1.505-3.974ZM9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7ZM4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0Z"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"users_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),fk=N3;function o0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=o0(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function H(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=o0(e))&&(r&&(r+=" "),r+=t);return r}const a0=x.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:s=!1,isToast:i=!1,autoClose:o=!1,autoCloseDelay:a=3e3,onClose:l,onVisibilityChange:u},c)=>{const[d,h]=x.useState(!0),m=x.useRef(null),p=x.useCallback(()=>{h(!1),l==null||l()},[l]);x.useImperativeHandle(c,()=>({show:y,hide:p,...m.current})),x.useLayoutEffect(()=>{u==null||u(d)},[d,u]),x.useEffect(()=>{o&&d&&setTimeout(()=>{p()},a)},[o,a,p,d]);const y=()=>{h(!0)},S={success:{icon:f.jsx(O3,{}),classModifier:"alert-success"},warning:{icon:f.jsx(H4,{}),classModifier:"alert-warning"},info:{icon:f.jsx(f3,{}),classModifier:"alert-info"},danger:{icon:f.jsx(s3,{}),classModifier:"alert-danger"}},g={"is-dismissible":s,"is-toast ":i},v=H("alert gap-12",S[e].classModifier,g,t);return f.jsx(f.Fragment,{children:d?f.jsxs("div",{ref:m,className:v,role:"alert",children:[S[e].icon,f.jsx("div",{className:"alert-content small",children:n}),r&&f.jsx("div",{className:"ms-12",children:r}),s&&f.jsx("div",{className:"btn-close-container",children:f.jsx("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:p})}),o&&f.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});a0.displayName="Alert";const Nt=a0,l0=x.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const s=H("d-flex flex-wrap p-16 gap-8 border-bottom bg-white",{"justify-content-between":t,"mx-n16":!n,"z-3 top-0 start-0 end-0 position-fixed":n});return f.jsxs("div",{ref:r,className:s,children:[e,t?f.jsx("div",{className:"d-flex align-items-center ms-auto gap-8",children:t()}):null]})});l0.displayName="AppHeader";const j3=l0,u0=x.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:s,className:i,...o},a)=>{const[l]=Ha(),u=n??`${l}/common/image-placeholder.png`,{imgSrc:c,onError:d}=M4({src:e,placeholder:u}),h={"ratio ratio-1x1":r==="1","ratio ratio-4x3":r==="4","ratio ratio-16x9":r==="16","ratio ratio-21x9":r==="21"},m={"object-fit-contain":s==="contain","object-fit-cover":s==="cover","object-fit-fill":s==="fill","object-fit-scale":s==="scale","object-fit-none":s==="none"},p=H({...h}),y=H({...m},i),S=f.jsx("img",{alt:t,onError:d,ref:a,src:c,className:y,...o});return r?f.jsx("div",{className:p,children:S}):S});u0.displayName="Image";const c0=u0,d0=x.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},s)=>{const{isIconUrl:i,getIconCode:o}=Jg(),[,a]=Ha(),l=r==="square",u=r==="rounded",c=r==="circle",d=n==="contain",h=n==="ratio",m={"icon-xs":t==="24","icon-sm":t==="40","icon-md":t==="48","icon-lg":t==="80","icon-xl":t==="160"},p={square:l,rounded:u,"rounded-circle":c},y={"icon-contain":d,"icon-ratio":h},S=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",g=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",v=e?o(e):"",w=i(S),b=v||"placeholder",C=H("app-icon",{...m,...p,...y,[`bg-light-${b}`]:b&&!d,[`color-app-${b}`]:b});return w?f.jsx(c0,{src:S,alt:g,objectFit:"contain",width:t,height:t,className:"h-full"}):f.jsx("div",{className:C,style:{width:t+"px",height:t+"px"},children:f.jsx("svg",{ref:s,width:t,height:t,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:f.jsx("use",{xlinkHref:`${a}/apps.svg#${b}`})})})});d0.displayName="AppIcon";const pc=d0,f0=x.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:s,className:i,...o},a)=>{const[l]=Ha(),u=s||`${l}/avatar/no-avatar.svg`,y=H("avatar",{...{"avatar-xs":t==="xs","avatar-sm":t==="sm","avatar-md":t==="md","avatar-lg":t==="lg","avatar-xl":t==="xl"},...{square:e==="square",rounded:e==="rounded","rounded-circle":e==="circle"}},i);return f.jsx("div",{ref:a,className:y,children:f.jsx(c0,{src:r||u,alt:n,imgPlaceholder:u,...o})})});f0.displayName="Avatar";const rp=f0,h0=x.forwardRef(({children:e,className:t,...n},r)=>{const s=H("breadcrumb-item",t);return f.jsx("li",{ref:r,className:s,...n,children:e})});h0.displayName="BreadcrumbItem";const ql=h0,p0=x.forwardRef(({children:e,className:t},n)=>{const r=H("breadcrumb d-flex flex-nowrap align-items-center mb-0",t);return f.jsx("ol",{ref:n,className:r,children:e})});p0.displayName="BreadcrumbList";const T3=p0,m0=x.forwardRef(({children:e,app:t,className:n},r)=>{const{t:s}=ve(),{getIconClass:i}=Jg(),o=H("d-flex align-items-center mb-0",i(t),n),a={"--edifice-breadcrumb-divider":"-"};return f.jsx("nav",{ref:r,className:o,"aria-label":s("breadcrumb"),style:a,children:e})});m0.displayName="BreadcrumbNav";const _3=m0,g0=x.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:s="left",children:i,...o}=e,a=()=>{let u;return r?u=r:u=f.jsx(p3,{...o,"aria-label":"Loading"}),u},l=H("loading",{"is-loading":n});return f.jsxs("div",{className:l,role:"status",ref:t,children:[(!s||s==="left")&&a(),i,s==="right"&&a()]})});g0.displayName="Loading";const I3=g0,v0=x.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:s,loadingIcon:i,loadingPosition:o,leftIcon:a,rightIcon:l,className:u,variant:c="filled",...d},h)=>{const m=H("btn",{[`btn-filled btn-${e}`]:c==="filled",[`btn-${c}-${e}`]:c==="outline"||c==="ghost","btn-icon":!r,"btn-loading":s,"btn-lg":n==="lg","btn-sm":n==="sm"},u);return f.jsx("button",{ref:h,className:m,type:t,...d,children:s?f.jsx(I3,{isLoading:!0,loadingIcon:i,loadingPosition:o,children:r}):f.jsxs("span",{children:[a,r,l]})})});v0.displayName="Button";const Jr=v0,y0=x.forwardRef(({icon:e,className:t,...n},r)=>{const s={...n,className:H("btn-icon btn-sm",t)};return f.jsx(Jr,{ref:r,...s,children:e})});y0.displayName="IconButton";const Qa=y0,w0=x.forwardRef(({level:e="h1",headingStyle:t="h1",children:n,className:r,...s},i)=>{const o=H(t,r);return f.jsx(e,{ref:i,className:o,...s,children:n})});w0.displayName="Heading";const sp=w0,x0=x.forwardRef(({app:e,name:t},n)=>{const{t:r}=ve();return f.jsx(_3,{app:e,ref:n,className:"mw-100",children:f.jsx(T3,{className:"gap-12 mw-100",children:t?f.jsxs(f.Fragment,{children:[f.jsx(ql,{children:f.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[f.jsx(Qa,{variant:"ghost",color:"tertiary",icon:f.jsx(x3,{}),"aria-label":r(e==null?void 0:e.displayName)}),f.jsx(pc,{app:e,size:"40"})]})}),f.jsx(ql,{className:"text-truncate",children:f.jsx(sp,{level:"h1",headingStyle:"h3",className:"text-truncate",children:t})})]}):f.jsxs(ql,{className:"gap-12 d-flex align-items-center",children:[f.jsx(pc,{app:e,size:"40"}),f.jsx(sp,{level:"h1",headingStyle:"h3",className:"d-none d-md-flex",children:r(e==null?void 0:e.displayName)})]})})})});x0.displayName="Breadcrumb";const A3=x0,S0=x.forwardRef(({icon:e=f.jsx(k3,{}),onClick:t,...n},r)=>{const s=H("btn-search");return f.jsx(Qa,{ref:r,className:s,icon:e,...n,onClick:t})});S0.displayName="SearchButton";const b0=S0,L3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M19.935 17.51c.725 0 1.348.264 1.868.792.52.529.78 1.162.78 1.898 0 .737-.26 1.37-.78 1.898-.52.529-1.135.793-1.844.793-.71 0-1.333-.264-1.869-.793a2.52 2.52 0 0 1-.78-1.922c0-.288.063-.6.19-.936l-3.997-2.931c-.773.8-1.703 1.2-2.79 1.2-1.089 0-2.019-.392-2.791-1.176-.773-.785-1.167-1.738-1.183-2.86 0-.143.024-.352.071-.624l-3.168-1.057a1.248 1.248 0 0 1-.852.337c-.378 0-.693-.129-.946-.385a1.315 1.315 0 0 1-.378-.96c0-.385.126-.698.378-.938.253-.24.568-.368.946-.384.316 0 .584.104.804.312.221.208.37.457.45.745l3.192 1.08a3.798 3.798 0 0 1 1.443-1.56 3.839 3.839 0 0 1 2.033-.577c.82 0 1.577.248 2.27.745l4.706-4.781c-.252-.48-.378-.921-.378-1.321 0-.737.26-1.37.78-1.898.52-.529 1.143-.793 1.869-.793.725 0 1.34.264 1.844.793.505.528.765 1.16.78 1.898a2.417 2.417 0 0 1-.78 1.873c-.536.513-1.159.777-1.868.793-.41 0-.844-.136-1.3-.408l-4.707 4.804c.49.705.733 1.474.733 2.307 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624Z"})]}),M3=L3,D3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M22.995 13.153c0 1.393-.29 2.722-.872 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.152c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589ZM13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201Z"})]}),ip=D3,F3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M20.584 13.536v7.458c0 .28-.098.512-.294.699a1.062 1.062 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.848.848 0 0 1-.668-.307 1.162 1.162 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375c.018.018.027.055.027.111Zm3.31-1.09-.908 1.146a.543.543 0 0 1-.32.168h-.054a.59.59 0 0 1-.32-.084L11.989 4.682 1.687 13.676a.505.505 0 0 1-.347.084.544.544 0 0 1-.32-.168l-.935-1.145a.524.524 0 0 1-.08-.363.589.589 0 0 1 .16-.335l10.703-9.33c.32-.28.694-.419 1.121-.419.427 0 .81.14 1.148.419l3.63 3.156V2.56c0-.15.044-.27.133-.363a.458.458 0 0 1 .347-.14h2.856c.143 0 .258.046.347.14a.504.504 0 0 1 .134.363v6.34l3.256 2.85c.107.074.16.186.16.335 0 .149-.036.27-.107.363Z"})]}),$3=F3,z3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216Zm7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216Zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216ZM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24Z"})]}),op=z3,U3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12ZM7.123 7.667C8.276 5.958 9.745 5 12.013 5 14.425 5 17 6.941 17 9.5c0 2.113-1.377 2.932-2.418 3.552-.633.376-1.142.68-1.142 1.154v.169a.693.693 0 0 1-.682.703h-2.06a.693.693 0 0 1-.681-.703v-.287c0-1.768 1.269-2.5 2.266-3.075l.073-.042c.863-.499 1.392-.838 1.392-1.499 0-.874-1.082-1.454-1.956-1.454-1.112 0-1.64.53-2.351 1.449a.668.668 0 0 1-.945.121L7.27 8.63a.718.718 0 0 1-.147-.963ZM9.76 17.97c0-1.12.883-2.03 1.969-2.03 1.085 0 1.968.91 1.968 2.03 0 1.119-.883 2.029-1.968 2.029-1.086 0-1.969-.91-1.969-2.03Z",clipRule:"evenodd"})]}),B3=U3,V3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"m.5 21.257 7.46-8.216 4.052 2.403 4.052-2.403 7.46 8.216H.5Zm0-2.738V8.573l5.848 3.531L.5 18.52Zm0-12.084V3.048h23.023v3.387l-11.511 6.847L.5 6.435Zm17.176 5.67 5.848-3.532v9.946l-5.848-6.415Z"})]}),ap=V3,H3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M13.07 13.07V6.54h-2.14v6.53h2.14zm0 4.4v-2.2h-2.14v2.2h2.14zM24 12l-2.65 3.01.35 4.04-3.93.86-2.04 3.48L12 21.8l-3.73 1.6-2.04-3.42-3.93-.92.35-4.04L0 12l2.65-3.06-.35-3.99 3.93-.86L8.27.6 12 2.2 15.73.6l2.04 3.48 3.93.86L21.34 9z"})]}),q3=H3,Q3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M11.684 2C8.66 2 6.702 3.277 5.165 5.556A.958.958 0 0 0 5.36 6.84l1.634 1.278a.89.89 0 0 0 1.26-.162c.95-1.226 1.653-1.932 3.136-1.932 1.165 0 2.607.773 2.607 1.939 0 .88-.705 1.333-1.856 1.998-1.342.776-3.118 1.742-3.118 4.157v.382c0 .518.407.938.909.938h2.746c.502 0 .91-.42.91-.938v-.226c0-1.674 4.745-1.743 4.745-6.274 0-3.412-3.432-6-6.648-6Zm-.38 14.588c-1.446 0-2.624 1.214-2.624 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706Z"})]}),K3=Q3,W3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.051 12.366a455.802 455.802 0 0 1-2.746-1.822A6.543 6.543 0 0 1 .74 9.067C.248 8.44.002 7.859.002 7.322a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752C.935 5.222 1.462 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6.424.4.636.882.636 1.446 0 .673-.218 1.317-.657 1.93a6.217 6.217 0 0 1-1.632 1.567c-3.358 2.226-5.447 3.61-6.267 4.156l-.242.167-.323.222a15.448 15.448 0 0 1-1.42.902 4.052 4.052 0 0 1-.77.345 2.215 2.215 0 0 1-.67.115h-.026a2.222 2.222 0 0 1-.67-.116 4.052 4.052 0 0 1-.77-.344c-.272-.154-.506-.29-.697-.415a30.199 30.199 0 0 1-.723-.487c-.288-.2-.477-.33-.565-.389-.81-.545-1.98-1.323-3.51-2.334Zm10.943 3.962c1.517-1.052 3.74-2.524 6.667-4.416.478-.306.927-.68 1.339-1.113v10.16c0 .564-.209 1.044-.63 1.446-.437.405-.97.614-1.512.594H2.149c-.545.02-1.08-.192-1.52-.601C.21 21.995 0 21.52 0 20.95V10.8c.416.437.871.81 1.356 1.113 3.232 2.099 5.45 3.571 6.656 4.416.512.358.926.637 1.243.837a7.7 7.7 0 0 0 1.265.614c.475.198.97.303 1.47.313h.026c.5-.01.995-.115 1.47-.313a7.647 7.647 0 0 0 1.265-.614c.32-.2.735-.479 1.243-.837Z",clipRule:"evenodd"})]}),Z3=W3,G3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{clipPath:"url(#one-profile_svg__a)",children:f.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51Zm0 16.64a9.27 9.27 0 0 1-7.09-3.3 5.4 5.4 0 0 1 4.77-2.9c.11 0 .23.03.34.06.63.2 1.29.33 1.98.33.7 0 1.35-.13 1.98-.33.11-.03.23-.05.34-.05a5.4 5.4 0 0 1 4.77 2.89 9.27 9.27 0 0 1-7.09 3.3Z"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"one-profile_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),X3=G3,Y3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M1.27 11.552a7.745 7.745 0 0 1 0-4.156c.38-1.377 1.095-2.579 2.149-3.604a7.928 7.928 0 0 1 2.716-1.777c1.02-.4 2.074-.6 3.161-.6 1.07 0 2.115.2 3.136.6 1.02.4 1.926.993 2.716 1.777a7.904 7.904 0 0 1 1.902 2.86 7.812 7.812 0 0 1 .518 3.29 7.647 7.647 0 0 1-.889 3.171c.461.129.865.36 1.21.697l4.297 4.156c.576.56.864 1.241.864 2.042 0 .801-.288 1.482-.864 2.042-.576.56-1.276.841-2.099.841-.823 0-1.523-.28-2.099-.84l-4.272-4.18a2.423 2.423 0 0 1-.74-1.178 8.302 8.302 0 0 1-3.68.84c-1.087 0-2.14-.2-3.16-.6a8.102 8.102 0 0 1-2.717-1.753 7.854 7.854 0 0 1-2.149-3.628Zm2.495-2.066c0 1.49.535 2.755 1.605 3.796 1.086 1.04 2.395 1.561 3.926 1.561 1.515 0 2.807-.52 3.877-1.561 1.07-1.041 1.613-2.307 1.63-3.796.016-1.49-.527-2.755-1.63-3.796-1.087-1.057-2.379-1.585-3.877-1.585-1.515 0-2.823.528-3.926 1.585C4.3 6.731 3.765 7.996 3.765 9.486Z"})]}),J3=Y3,e5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z"})]}),t5=e5,E0=x.forwardRef(({label:e,disabled:t=!1,checked:n=!1,indeterminate:r=!1,...s},i)=>{const o=x.useRef(null);x.useImperativeHandle(i,()=>({...o.current})),x.useEffect(()=>{o.current.indeterminate=r},[o,r]);const a=x.useId(),l={type:"checkbox",checked:n,disabled:t,ref:o,className:H(s.className,"form-check-input c-pointer"),id:a},u={...s,...l};return f.jsxs("div",{className:"form-check d-flex align-items-center gap-8",children:[f.jsx("input",{...u}),e&&f.jsx("label",{className:"form-check-label",htmlFor:u.id,children:e})]})});E0.displayName="Checkbox";const n5=E0,C0=x.createContext(null),Ni=()=>{const e=x.useContext(C0);if(!e)throw new Error("Cannot be rendered outside the Dropdown Component");return e},R0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Ni(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),c=n.includes(t),d={value:t,model:n,checked:c,readOnly:!0},h=H("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:m=>i.current[u]=m,role:"menuitemcheckbox","aria-checked":c,onMouseUp:()=>r(t),onKeyDown:m=>a(m,()=>r(t)),onMouseEnter:l,tabIndex:t===n?0:-1,className:h,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,f.jsx(n5,{...d})]})})};R0.displayName="Dropdown.CheckboxItem";const r5=R0,k0=({icon:e,onClick:t,children:n,...r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Ni(),{onMenuItemClick:a,onMenuItemKeyDown:l,onMenuItemMouseEnter:u}=s,c=()=>{a(),t==null||t()},d=x.useId(),h=H("dropdown-item",{focus:o===d});return f.jsx("div",{id:d,role:"menuitem",ref:m=>i.current[d]=m,tabIndex:o===d?0:-1,className:h,"aria-current":o===d,onClick:c,onMouseEnter:u,onKeyDown:m=>l(m,t),...r,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center",children:[e,n]})})};k0.displayName="Dropdown.Item";const s5=k0,P0=x.forwardRef(({children:e},t)=>{const{menuProps:n,visible:r}=Ni();return r?f.jsx("div",{ref:t,...n,children:e}):null});P0.displayName="Dropdown.Menu";const i5=P0,O0=x.forwardRef(({label:e,children:t},n)=>f.jsxs("div",{ref:n,role:"group",children:[f.jsx("span",{className:"small px-4",children:f.jsx("strong",{children:e})}),t]}));O0.displayName="Dropdown.MenuGroup";const o5=O0,N0=x.forwardRef(({model:e,icon:t,label:n=!1,disabled:r=!1,checked:s,...i},o)=>{const a=x.useId(),l={type:"radio",checked:s,disabled:r,ref:o,className:H(i.className,"form-check-input c-pointer",t&&"d-none"),id:a},u={...i,...l};return f.jsxs("div",{className:H("form-check d-flex align-items-center gap-8",t&&"ps-0"),children:[f.jsx("input",{...u}),t&&f.jsx("label",{htmlFor:u.id,className:H("c-pointer",e!==i.value&&"text-muted"),children:t}),!t&&n&&f.jsx("label",{className:"form-check-label",htmlFor:u.id,children:n})]})});N0.displayName="Radio";const a5=N0,j0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Ni(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),d={value:t,model:n,checked:t===n,readOnly:!0},h=H("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:m=>i.current[u]=m,role:"menuitemradio","aria-checked":t===n,onMouseUp:()=>r(t),onKeyDown:m=>a(m,()=>r(t)),onMouseEnter:l,tabIndex:t===n?0:-1,className:h,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,f.jsx(a5,{...d,className:"position-absolute start-0 end-0 top-0 bottom-0 opacity-0"})]})})};j0.displayName="Dropdown.RadioItem";const l5=j0,T0=()=>f.jsx("div",{role:"separator",className:"px-4 my-4",children:f.jsx("hr",{className:"m-0"})});T0.displayName="Dropdown.Separator";const u5=T0,_0=x.forwardRef(({label:e,icon:t,variant:n,disabled:r=!1,size:s,badgeContent:i},o)=>{const{triggerProps:a,block:l}=Ni(),{className:u,...c}=a,d=H(s,n,{"w-100":l},u);return f.jsxs("button",{ref:o,className:d,disabled:r,...c,children:[t||null,e,i?f.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:i}):f.jsx(E3,{width:16,height:16,className:"dropdown-toggle-caret"})]})});_0.displayName="Dropdown.Trigger";const c5=_0;function In(e){return I0(e)?(e.nodeName||"").toLowerCase():"#document"}function Je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function on(e){var t;return(t=(I0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function I0(e){return e instanceof Node||e instanceof Je(e).Node}function Xe(e){return e instanceof Element||e instanceof Je(e).Element}function zt(e){return e instanceof HTMLElement||e instanceof Je(e).HTMLElement}function lp(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Je(e).ShadowRoot}function ji(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function d5(e){return["table","td","th"].includes(In(e))}function Ad(e){const t=Ld(),n=mt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function f5(e){let t=Qr(e);for(;zt(t)&&!Ka(t);){if(Ad(t))return t;t=Qr(t)}return null}function Ld(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ka(e){return["html","body","#document"].includes(In(e))}function mt(e){return Je(e).getComputedStyle(e)}function Wa(e){return Xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Qr(e){if(In(e)==="html")return e;const t=e.assignedSlot||e.parentNode||lp(e)&&e.host||on(e);return lp(t)?t.host:t}function A0(e){const t=Qr(e);return Ka(t)?e.ownerDocument?e.ownerDocument.body:e.body:zt(t)&&ji(t)?t:A0(t)}function ui(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=A0(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Je(s);return i?t.concat(o,o.visualViewport||[],ji(s)?s:[],o.frameElement&&n?ui(o.frameElement):[]):t.concat(s,ui(s,[],n))}const mc=Math.min,Ar=Math.max,pa=Math.round,so=Math.floor,An=e=>({x:e,y:e}),h5={left:"right",right:"left",bottom:"top",top:"bottom"},p5={start:"end",end:"start"};function Md(e,t){return typeof e=="function"?e(t):e}function Kr(e){return e.split("-")[0]}function Za(e){return e.split("-")[1]}function m5(e){return e==="x"?"y":"x"}function L0(e){return e==="y"?"height":"width"}function Dd(e){return["top","bottom"].includes(Kr(e))?"y":"x"}function M0(e){return m5(Dd(e))}function g5(e,t,n){n===void 0&&(n=!1);const r=Za(e),s=M0(e),i=L0(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=ma(o)),[o,ma(o)]}function v5(e){const t=ma(e);return[gc(e),t,gc(t)]}function gc(e){return e.replace(/start|end/g,t=>p5[t])}function y5(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function w5(e,t,n,r){const s=Za(e);let i=y5(Kr(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(gc)))),i}function ma(e){return e.replace(/left|right|bottom|top/g,t=>h5[t])}function x5(e){return{top:0,right:0,bottom:0,left:0,...e}}function S5(e){return typeof e!="number"?x5(e):{top:e,right:e,bottom:e,left:e}}function ga(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function up(e,t,n){let{reference:r,floating:s}=e;const i=Dd(t),o=M0(t),a=L0(o),l=Kr(t),u=i==="y",c=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let m;switch(l){case"top":m={x:c,y:r.y-s.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-s.width,y:d};break;default:m={x:r.x,y:r.y}}switch(Za(t)){case"start":m[o]-=h*(n&&u?-1:1);break;case"end":m[o]+=h*(n&&u?-1:1);break}return m}const b5=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:d}=up(u,r,l),h=r,m={},p=0;for(let y=0;y<a.length;y++){const{name:S,fn:g}=a[y],{x:v,y:w,data:b,reset:C}=await g({x:c,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:m,rects:u,platform:o,elements:{reference:e,floating:t}});if(c=v??c,d=w??d,m={...m,[S]:{...m[S],...b}},C&&p<=50){p++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:c,y:d}=up(u,h,l)),y=-1;continue}}return{x:c,y:d,placement:h,strategy:s,middlewareData:m}};async function E5(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=Md(t,e),p=S5(m),S=a[h?d==="floating"?"reference":"floating":d],g=ga(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(S)))==null||n?S:S.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="floating"?{...o.floating,x:r,y:s}:o.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},C=ga(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:w,strategy:l}):v);return{top:(g.top-C.top+p.top)/b.y,bottom:(C.bottom-g.bottom+p.bottom)/b.y,left:(g.left-C.left+p.left)/b.x,right:(C.right-g.right+p.right)/b.x}}const C5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...S}=Md(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=Kr(s),v=Kr(a)===a,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=h||(v||!y?[ma(a)]:v5(a));!h&&p!=="none"&&b.push(...w5(a,y,p,w));const C=[a,...b],k=await E5(t,S),R=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&R.push(k[g]),d){const D=g5(s,o,w);R.push(k[D[0]],k[D[1]])}if(P=[...P,{placement:s,overflows:R}],!R.every(D=>D<=0)){var L,M;const D=(((L=i.flip)==null?void 0:L.index)||0)+1,U=C[D];if(U)return{data:{index:D,overflows:P},reset:{placement:U}};let E=(M=P.filter(O=>O.overflows[0]<=0).sort((O,A)=>O.overflows[1]-A.overflows[1])[0])==null?void 0:M.placement;if(!E)switch(m){case"bestFit":{var T;const O=(T=P.map(A=>[A.placement,A.overflows.filter($=>$>0).reduce(($,N)=>$+N,0)]).sort((A,$)=>A[1]-$[1])[0])==null?void 0:T[0];O&&(E=O);break}case"initialPlacement":E=a;break}if(s!==E)return{reset:{placement:E}}}return{}}}};async function R5(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Kr(n),a=Za(n),l=Dd(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,d=Md(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof p=="number"&&(m=a==="end"?p*-1:p),l?{x:m*c,y:h*u}:{x:h*u,y:m*c}}const k5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,s=await R5(t,e);return{x:n+s.x,y:r+s.y,data:s}}}};function D0(e){const t=mt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=zt(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=pa(n)!==i||pa(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function Fd(e){return Xe(e)?e:e.contextElement}function Lr(e){const t=Fd(e);if(!zt(t))return An(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=D0(t);let o=(i?pa(n.width):n.width)/r,a=(i?pa(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const P5=An(0);function F0(e){const t=Je(e);return!Ld()||!t.visualViewport?P5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function O5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Je(e)?!1:t}function rr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=Fd(e);let o=An(1);t&&(r?Xe(r)&&(o=Lr(r)):o=Lr(e));const a=O5(i,n,r)?F0(i):An(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,c=s.width/o.x,d=s.height/o.y;if(i){const h=Je(i),m=r&&Xe(r)?Je(r):r;let p=h.frameElement;for(;p&&r&&m!==h;){const y=Lr(p),S=p.getBoundingClientRect(),g=mt(p),v=S.left+(p.clientLeft+parseFloat(g.paddingLeft))*y.x,w=S.top+(p.clientTop+parseFloat(g.paddingTop))*y.y;l*=y.x,u*=y.y,c*=y.x,d*=y.y,l+=v,u+=w,p=Je(p).frameElement}}return ga({width:c,height:d,x:l,y:u})}function N5(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=zt(n),i=on(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},a=An(1);const l=An(0);if((s||!s&&r!=="fixed")&&((In(n)!=="body"||ji(i))&&(o=Wa(n)),zt(n))){const u=rr(n);a=Lr(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-o.scrollLeft*a.x+l.x,y:t.y*a.y-o.scrollTop*a.y+l.y}}function j5(e){return Array.from(e.getClientRects())}function $0(e){return rr(on(e)).left+Wa(e).scrollLeft}function T5(e){const t=on(e),n=Wa(e),r=e.ownerDocument.body,s=Ar(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ar(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+$0(e);const a=-n.scrollTop;return mt(r).direction==="rtl"&&(o+=Ar(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function _5(e,t){const n=Je(e),r=on(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=Ld();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function I5(e,t){const n=rr(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=zt(e)?Lr(e):An(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function cp(e,t,n){let r;if(t==="viewport")r=_5(e,n);else if(t==="document")r=T5(on(e));else if(Xe(t))r=I5(t,n);else{const s=F0(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return ga(r)}function z0(e,t){const n=Qr(e);return n===t||!Xe(n)||Ka(n)?!1:mt(n).position==="fixed"||z0(n,t)}function A5(e,t){const n=t.get(e);if(n)return n;let r=ui(e,[],!1).filter(a=>Xe(a)&&In(a)!=="body"),s=null;const i=mt(e).position==="fixed";let o=i?Qr(e):e;for(;Xe(o)&&!Ka(o);){const a=mt(o),l=Ad(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||ji(o)&&!l&&z0(e,o))?r=r.filter(c=>c!==o):s=a,o=Qr(o)}return t.set(e,r),r}function L5(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?A5(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,c)=>{const d=cp(t,c,s);return u.top=Ar(d.top,u.top),u.right=mc(d.right,u.right),u.bottom=mc(d.bottom,u.bottom),u.left=Ar(d.left,u.left),u},cp(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function M5(e){return D0(e)}function D5(e,t,n){const r=zt(t),s=on(t),i=n==="fixed",o=rr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=An(0);if(r||!r&&!i)if((In(t)!=="body"||ji(s))&&(a=Wa(t)),r){const u=rr(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else s&&(l.x=$0(s));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function dp(e,t){return!zt(e)||mt(e).position==="fixed"?null:t?t(e):e.offsetParent}function U0(e,t){const n=Je(e);if(!zt(e))return n;let r=dp(e,t);for(;r&&d5(r)&&mt(r).position==="static";)r=dp(r,t);return r&&(In(r)==="html"||In(r)==="body"&&mt(r).position==="static"&&!Ad(r))?n:r||f5(e)||n}const F5=async function(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||U0,i=this.getDimensions;return{reference:D5(t,await s(n),r),floating:{x:0,y:0,...await i(n)}}};function $5(e){return mt(e).direction==="rtl"}const z5={convertOffsetParentRelativeRectToViewportRelativeRect:N5,getDocumentElement:on,getClippingRect:L5,getOffsetParent:U0,getElementRects:F5,getClientRects:j5,getDimensions:M5,getScale:Lr,isElement:Xe,isRTL:$5};function U5(e,t){let n=null,r;const s=on(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:c,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const m=so(c),p=so(s.clientWidth-(u+d)),y=so(s.clientHeight-(c+h)),S=so(u),v={rootMargin:-m+"px "+-p+"px "+-y+"px "+-S+"px",threshold:Ar(0,mc(1,l))||1};let w=!0;function b(C){const k=C[0].intersectionRatio;if(k!==l){if(!w)return o();k?o(!1,k):r=setTimeout(()=>{o(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(b,{...v,root:s.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),i}function B5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Fd(e),c=s||i?[...u?ui(u):[],...ui(t)]:[];c.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const d=u&&a?U5(u,n):null;let h=-1,m=null;o&&(m=new ResizeObserver(g=>{let[v]=g;v&&v.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{m&&m.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let p,y=l?rr(e):null;l&&S();function S(){const g=rr(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&n(),y=g,p=requestAnimationFrame(S)}return n(),()=>{c.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),d&&d(),m&&m.disconnect(),m=null,l&&cancelAnimationFrame(p)}}const V5=(e,t,n)=>{const r=new Map,s={platform:z5,...n},i={...s.platform,_c:r};return b5(e,t,{...s,platform:i})};var No=typeof document<"u"?x.useLayoutEffect:x.useEffect;function va(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!va(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!va(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function B0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fp(e,t){const n=B0(e);return Math.round(t*n)/n}function hp(e){const t=x.useRef(e);return No(()=>{t.current=e}),t}function H5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=x.useState(r);va(h,r)||m(r);const[p,y]=x.useState(null),[S,g]=x.useState(null),v=x.useCallback(A=>{A!=k.current&&(k.current=A,y(A))},[y]),w=x.useCallback(A=>{A!==R.current&&(R.current=A,g(A))},[g]),b=i||p,C=o||S,k=x.useRef(null),R=x.useRef(null),P=x.useRef(c),L=hp(l),M=hp(s),T=x.useCallback(()=>{if(!k.current||!R.current)return;const A={placement:t,strategy:n,middleware:h};M.current&&(A.platform=M.current),V5(k.current,R.current,A).then($=>{const N={...$,isPositioned:!0};D.current&&!va(P.current,N)&&(P.current=N,Pi.flushSync(()=>{d(N)}))})},[h,t,n,M]);No(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[u]);const D=x.useRef(!1);No(()=>(D.current=!0,()=>{D.current=!1}),[]),No(()=>{if(b&&(k.current=b),C&&(R.current=C),b&&C){if(L.current)return L.current(b,C,T);T()}},[b,C,T,L]);const U=x.useMemo(()=>({reference:k,floating:R,setReference:v,setFloating:w}),[v,w]),E=x.useMemo(()=>({reference:b,floating:C}),[b,C]),O=x.useMemo(()=>{const A={position:n,left:0,top:0};if(!E.floating)return A;const $=fp(E.floating,c.x),N=fp(E.floating,c.y);return a?{...A,transform:"translate("+$+"px, "+N+"px)",...B0(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:N}},[n,a,E.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:T,refs:U,elements:E,floatingStyles:O}),[c,T,U,E,O])}var V0=typeof document<"u"?x.useLayoutEffect:x.useEffect;let Ql=!1,q5=0;const pp=()=>"floating-ui-"+q5++;function Q5(){const[e,t]=x.useState(()=>Ql?pp():void 0);return V0(()=>{e==null&&t(pp())},[]),x.useEffect(()=>{Ql||(Ql=!0)},[]),e}const K5=mm["useId".toString()],W5=K5||Q5;function Z5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(s=>s(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(s=>s!==n))||[])}}}const G5=x.createContext(null),X5=()=>x.useContext(G5),Y5=mm["useInsertionEffect".toString()],J5=Y5||(e=>e());function eb(e){const t=x.useRef(()=>{});return J5(()=>{t.current=e}),x.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}function tb(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:s}=e,[i,o]=x.useState(null),a=((t=e.elements)==null?void 0:t.reference)||i,l=H5(e),u=X5(),c=eb((b,C)=>{b&&(h.current.openEvent=C),r==null||r(b,C)}),d=x.useRef(null),h=x.useRef({}),m=x.useState(()=>Z5())[0],p=W5(),y=x.useCallback(b=>{const C=Xe(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;l.refs.setReference(C)},[l.refs]),S=x.useCallback(b=>{(Xe(b)||b===null)&&(d.current=b,o(b)),(Xe(l.refs.reference.current)||l.refs.reference.current===null||b!==null&&!Xe(b))&&l.refs.setReference(b)},[l.refs]),g=x.useMemo(()=>({...l.refs,setReference:S,setPositionReference:y,domReference:d}),[l.refs,S,y]),v=x.useMemo(()=>({...l.elements,domReference:a}),[l.elements,a]),w=x.useMemo(()=>({...l,refs:g,elements:v,dataRef:h,nodeId:s,floatingId:p,events:m,open:n,onOpenChange:c}),[l,s,p,m,n,c,g,v]);return V0(()=>{const b=u==null?void 0:u.nodesRef.current.find(C=>C.id===s);b&&(b.context=w)}),x.useMemo(()=>({...l,context:w,refs:g,elements:v}),[l,g,v,w])}const nb=e=>{const t=x.useId(),[n,r]=x.useState(!1),[s,i]=x.useState(-1),[o,a]=x.useState(null),{refs:l,floatingStyles:u}=tb({placement:e,open:n,onOpenChange:r,whileElementsMounted:B5,middleware:[k5(4),C5({padding:0})]}),c=x.useRef(null),d=x.useRef(null),h=x.useRef({});x.useEffect(()=>{n?c.current&&(c.current.focus(),i(0)):(i(-1),h.current={})},[n]),x.useEffect(()=>{if(s!==-1){const T=Object.values(h.current)[s],D=T.getAttribute("id");a(D),T.focus()}},[s]);const m=()=>{const D=Object.values(h.current).length;i(U=>(U+1)%D)},p=()=>{const D=Object.values(h.current).length;i(U=>(U-1+D)%D)},y=()=>{i(0)},S=()=>{const D=Object.values(h.current).length;i(D-1)},g=x.useCallback(()=>{r(!0)},[]),v=x.useCallback(()=>{d.current&&(d.current.focus(),r(!1))},[]),w=(T,D)=>{T&&(D.stopPropagation(),D.preventDefault())},b=x.useCallback(T=>{let D=!1;switch(T.code){case" ":case"Space":case"Enter":case"ArrowDown":case"Down":g(),D=!0;break;case"Esc":case"Escape":v(),D=!0;break;case"Up":case"ArrowUp":g(),D=!0;break}w(D,T)},[v,g]),C=T=>{const U=Object.values(h.current).findIndex(E=>E.id===T.currentTarget.getAttribute("id"));i(U)},k=x.useCallback((T,D)=>{T.preventDefault();let U=!1;if(T.shiftKey)T.key==="Tab"&&(v(),U=!0);else{switch(T.code){case" ":case"Space":case"Enter":s!==-1&&(Object.values(h.current)[s].getAttribute("role")==="menuitem"&&d.current&&(d.current.focus(),r(!1)),D==null||D()),U=!0;break;case"ArrowDown":case"Down":m(),U=!0;break;case"ArrowUp":case"Up":p(),U=!0;break;case"Home":y(),U=!0;break;case"End":S(),U=!0;break}w(U,T)}},[s,v]),R=x.useCallback(T=>{r(n!==!0),T.stopPropagation(),T.preventDefault()},[n]),P=x.useCallback(()=>{v()},[v]);function L(T,...D){D.forEach(U=>{typeof U=="function"?U(T):U!=null&&(U.current=T)})}function M(...T){return D=>{L(D,...T)}}return{isFocused:o,visible:n,itemRefs:h,triggerRef:d,menuRef:c,triggerProps:{ref:M(d,l.setReference),id:`dropdown-toggle-${t}`,"aria-haspopup":"menu","aria-controls":`dropdown-${t}`,"aria-expanded":!!n,className:`dropdown-toggle ${n?"selected":""}`,onClick:R,onKeyDown:b},customTriggerProps:{ref:M(d,l.setReference),id:`dropdown-toggle-${t}`,"aria-haspopup":"menu","aria-controls":`dropdown-${t}`,"aria-expanded":!!n,"data-state":n?"selected":null,onClick:R,onKeyDown:b},menuProps:{ref:M(c,l.setFloating),className:"dropdown-menu bg-white shadow rounded-4 p-8","aria-labelledby":`dropdown-toggle-${t}`,"aria-activedescendant":o,style:{...u}},itemProps:{onMenuItemMouseEnter:C,onMenuItemClick:P,onMenuItemKeyDown:k},setVisible:r}},rb=nb,H0=({children:e,block:t,overflow:n=!0,placement:r="bottom-start"})=>{const{visible:s,isFocused:i,triggerProps:o,menuProps:a,itemProps:l,itemRefs:u,setVisible:c}=rb(r),d=t0(()=>c(!1)),h=x.useMemo(()=>({visible:s,isFocused:i,triggerProps:o,menuProps:a,itemProps:l,itemRefs:u,block:t}),[s,i,o,a,l,u,t]),m=H("dropdown",{"w-100":t,overflow:n});return f.jsx(C0.Provider,{value:h,children:f.jsx("div",{ref:d,className:m,children:typeof e=="function"?e(o,u):e})})};H0.displayName="Dropdown";const sb=Object.assign(H0,{Trigger:c5,Menu:i5,Item:s5,Separator:u5,CheckboxItem:r5,RadioItem:l5,MenuGroup:o5}),fr=sb,q0=x.createContext(null),$d=()=>{const e=x.useContext(q0);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},Q0=({children:e})=>{const{status:t}=$d(),n=H("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return f.jsx("p",{className:n,children:f.jsx("em",{children:e})})};Q0.displayName="Text";const ib=Q0,K0=x.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:s},i)=>{const{id:o,isOptional:a,isRequired:l}=$d(),u=H("form-label",{"has-icon":e},s),c=a&&!l,d=l&&!a;return x.useEffect(()=>{if(a&&l)throw new Error("Cannot be optional and required at the same time")},[a,l]),f.jsxs("label",{ref:i,htmlFor:o,className:u,children:[e,r,c&&f.jsxs("em",{className:"optional",children:["- ",t]}),d&&f.jsx("em",{className:"required",children:n})]})});K0.displayName="Label";const ob=K0,W0=x.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:s,...i},o)=>{const{id:a,isRequired:l,isReadOnly:u,status:c}=$d(),d=H({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","is-invalid":c==="invalid","is-valid":c==="valid","form-control-plaintext":u,"no-validation-icon":e},s);return f.jsx("input",{ref:o,id:a,className:d,type:r,placeholder:t,required:l,readOnly:u,...i})});W0.displayName="Input";const Z0=W0,G0=x.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:s,isRequired:i,status:o,...a},l)=>{const u=x.useMemo(()=>({id:n,isOptional:r,isRequired:i,isReadOnly:s,status:o}),[n,r,s,i,o]);return f.jsx(q0.Provider,{value:u,children:f.jsx("div",{ref:l,className:t,...a,children:e})})}),ab=Object.assign(G0,{Label:ob,Input:Z0,Text:ib});G0.displayName="FormControl";const vc=ab,Ms=({children:e,className:t,...n})=>{const r=H("grid",t);return f.jsx("div",{className:r,...n,children:e})},X0=({sm:e,md:t,lg:n,xl:r,children:s,className:i,as:o,...a})=>{const l=o||"div",u=H({[`g-col-${e}`]:e,[t?`g-col-md-${t}`:""]:t,[n?`g-col-lg-${n}`:""]:n,[r?`g-col-xl-${r}`:""]:r},i);return f.jsx(l,{className:u,...a,children:s})};Ms.displayName="Grid";X0.displayName="Grid.Col";Ms.Col=X0;const Y0=x.forwardRef(({position:e=!0},t)=>{const[n]=Ha(),r=`${n}/loading/screen-loading.gif`,s=H("loading-screen top-0 end-0 start-0 bottom-0 d-grid justify-content-center align-items-center z-2000",{"position-fixed":!e,"position-static":e});return f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:t,className:s,children:f.jsx("div",{className:"bg-white rounded-circle mx-auto",children:f.jsx("img",{src:r,alt:"loading"})})}),!e&&f.jsx("div",{className:"modal-backdrop fade show"})]})});Y0.displayName="LoadingScreen";const ze=Y0,J0=x.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const s=H("navbar-brand d-none d-md-block"),i=`logo ${t?"ONE":"NEO"}`;return f.jsx("a",{ref:r,className:s,href:"/timeline/timeline","aria-label":n,children:f.jsx("img",{className:"logo",src:e,alt:i,width:"300",height:"52"})})});J0.displayName="Logo";const mp=J0;var lb=Object.defineProperty,ub=(e,t)=>{for(var n in t)lb(e,n,{get:t[n],enumerable:!0})},Pt={};ub(Pt,{assign:()=>fb,colors:()=>jn,createStringInterpolator:()=>Qd,skipAnimation:()=>ov,to:()=>iv,willAdvance:()=>Kd});var zd=_i(),V=e=>Ti(e,zd),Ud=_i();V.write=e=>Ti(e,Ud);var Ga=_i();V.onStart=e=>Ti(e,Ga);var Bd=_i();V.onFrame=e=>Ti(e,Bd);var Vd=_i();V.onFinish=e=>Ti(e,Vd);var Mr=[];V.setTimeout=(e,t)=>{const n=V.now()+t,r=()=>{const i=Mr.findIndex(o=>o.cancel==r);~i&&Mr.splice(i,1),xn-=~i?1:0},s={time:n,handler:e,cancel:r};return Mr.splice(ev(n),0,s),xn+=1,tv(),s};var ev=e=>~(~Mr.findIndex(t=>t.time>e)||~Mr.length);V.cancel=e=>{Ga.delete(e),Bd.delete(e),Vd.delete(e),zd.delete(e),Ud.delete(e)};V.sync=e=>{yc=!0,V.batchedUpdates(e),yc=!1};V.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...s){t=s,V.onStart(n)}return r.handler=e,r.cancel=()=>{Ga.delete(n),t=null},r};var Hd=typeof window<"u"?window.requestAnimationFrame:()=>{};V.use=e=>Hd=e;V.now=typeof performance<"u"?()=>performance.now():Date.now;V.batchedUpdates=e=>e();V.catch=console.error;V.frameLoop="always";V.advance=()=>{V.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):rv()};var wn=-1,xn=0,yc=!1;function Ti(e,t){yc?(t.delete(e),e(0)):(t.add(e),tv())}function tv(){wn<0&&(wn=0,V.frameLoop!=="demand"&&Hd(nv))}function cb(){wn=-1}function nv(){~wn&&(Hd(nv),V.batchedUpdates(rv))}function rv(){const e=wn;wn=V.now();const t=ev(wn);if(t&&(sv(Mr.splice(0,t),n=>n.handler()),xn-=t),!xn){cb();return}Ga.flush(),zd.flush(e?Math.min(64,wn-e):16.667),Bd.flush(),Ud.flush(),Vd.flush()}function _i(){let e=new Set,t=e;return{add(n){xn+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return xn-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,xn-=t.size,sv(t,r=>r(n)&&e.add(r)),xn+=e.size,t=e)}}}function sv(e,t){e.forEach(n=>{try{t(n)}catch(r){V.catch(r)}})}function wc(){}var db=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),j={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Qt(e,t){if(j.arr(e)){if(!j.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var B=(e,t)=>e.forEach(t);function Ut(e,t,n){if(j.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var je=e=>j.und(e)?[]:j.arr(e)?e:[e];function Ds(e,t){if(e.size){const n=Array.from(e);e.clear(),B(n,t)}}var Es=(e,...t)=>Ds(e,n=>n(...t)),qd=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Qd,iv,jn=null,ov=!1,Kd=wc,fb=e=>{e.to&&(iv=e.to),e.now&&(V.now=e.now),e.colors!==void 0&&(jn=e.colors),e.skipAnimation!=null&&(ov=e.skipAnimation),e.createStringInterpolator&&(Qd=e.createStringInterpolator),e.requestAnimationFrame&&V.use(e.requestAnimationFrame),e.batchedUpdates&&(V.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Kd=e.willAdvance),e.frameLoop&&(V.frameLoop=e.frameLoop)},Fs=new Set,ct=[],Kl=[],ya=0,Xa={get idle(){return!Fs.size&&!ct.length},start(e){ya>e.priority?(Fs.add(e),V.onStart(hb)):(av(e),V(xc))},advance:xc,sort(e){if(ya)V.onFrame(()=>Xa.sort(e));else{const t=ct.indexOf(e);~t&&(ct.splice(t,1),lv(e))}},clear(){ct=[],Fs.clear()}};function hb(){Fs.forEach(av),Fs.clear(),V(xc)}function av(e){ct.includes(e)||lv(e)}function lv(e){ct.splice(pb(ct,t=>t.priority>e.priority),0,e)}function xc(e){const t=Kl;for(let n=0;n<ct.length;n++){const r=ct[n];ya=r.priority,r.idle||(Kd(r),r.advance(e),r.idle||t.push(r))}return ya=0,Kl=ct,Kl.length=0,ct=t,ct.length>0}function pb(e,t){const n=e.findIndex(t);return n<0?e.length:n}var mb=(e,t,n)=>Math.min(Math.max(n,e),t),gb={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Et="[-+]?\\d*\\.?\\d+",wa=Et+"%";function Ya(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var vb=new RegExp("rgb"+Ya(Et,Et,Et)),yb=new RegExp("rgba"+Ya(Et,Et,Et,Et)),wb=new RegExp("hsl"+Ya(Et,wa,wa)),xb=new RegExp("hsla"+Ya(Et,wa,wa,Et)),Sb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,bb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Eb=/^#([0-9a-fA-F]{6})$/,Cb=/^#([0-9a-fA-F]{8})$/;function Rb(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Eb.exec(e))?parseInt(t[1]+"ff",16)>>>0:jn&&jn[e]!==void 0?jn[e]:(t=vb.exec(e))?(hr(t[1])<<24|hr(t[2])<<16|hr(t[3])<<8|255)>>>0:(t=yb.exec(e))?(hr(t[1])<<24|hr(t[2])<<16|hr(t[3])<<8|yp(t[4]))>>>0:(t=Sb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Cb.exec(e))?parseInt(t[1],16)>>>0:(t=bb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=wb.exec(e))?(gp(vp(t[1]),io(t[2]),io(t[3]))|255)>>>0:(t=xb.exec(e))?(gp(vp(t[1]),io(t[2]),io(t[3]))|yp(t[4]))>>>0:null}function Wl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gp(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r,i=Wl(s,r,e+1/3),o=Wl(s,r,e),a=Wl(s,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(a*255)<<8}function hr(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function vp(e){return(parseFloat(e)%360+360)%360/360}function yp(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function io(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function wp(e){let t=Rb(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,s=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${s}, ${i})`}var ci=(e,t,n)=>{if(j.fun(e))return e;if(j.arr(e))return ci({range:e,output:t,extrapolate:n});if(j.str(e.output[0]))return Qd(e);const r=e,s=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=Pb(u,i);return kb(u,i[c],i[c+1],s[c],s[c+1],l,o,a,r.map)}};function kb(e,t,n,r,s,i,o,a,l){let u=l?l(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===s?r:t===n?e<=t?r:s:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:s===1/0?u=u+r:u=u*(s-r)+r,u)}function Pb(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var Ob=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,s=t==="end"?Math.floor(r):Math.ceil(r);return mb(0,1,s/e)},xa=1.70158,oo=xa*1.525,xp=xa+1,Sp=2*Math.PI/3,bp=2*Math.PI/4.5,ao=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Nb={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>xp*e*e*e-xa*e*e,easeOutBack:e=>1+xp*Math.pow(e-1,3)+xa*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((oo+1)*2*e-oo)/2:(Math.pow(2*e-2,2)*((oo+1)*(e*2-2)+oo)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Sp),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Sp)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*bp))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*bp)/2+1,easeInBounce:e=>1-ao(1-e),easeOutBounce:ao,easeInOutBounce:e=>e<.5?(1-ao(1-2*e))/2:(1+ao(2*e-1))/2,steps:Ob},di=Symbol.for("FluidValue.get"),Wr=Symbol.for("FluidValue.observers"),ut=e=>!!(e&&e[di]),De=e=>e&&e[di]?e[di]():e,Ep=e=>e[Wr]||null;function jb(e,t){e.eventObserved?e.eventObserved(t):e(t)}function fi(e,t){const n=e[Wr];n&&n.forEach(r=>{jb(r,t)})}var uv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Tb(this,e)}},Tb=(e,t)=>cv(e,di,t);function es(e,t){if(e[di]){let n=e[Wr];n||cv(e,Wr,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function hi(e,t){const n=e[Wr];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Wr]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var cv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),jo=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,_b=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Cp=new RegExp(`(${jo.source})(%|[a-z]+)`,"i"),Ib=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ja=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,dv=e=>{const[t,n]=Ab(e);if(!t||qd())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const s=window.getComputedStyle(document.documentElement).getPropertyValue(n);return s||e}else{if(n&&Ja.test(n))return dv(n);if(n)return n}return e},Ab=e=>{const t=Ja.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Zl,Lb=(e,t,n,r,s)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${s})`,fv=e=>{Zl||(Zl=jn?new RegExp(`(${Object.keys(jn).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>De(i).replace(Ja,dv).replace(_b,wp).replace(Zl,wp)),n=t.map(i=>i.match(jo).map(Number)),s=n[0].map((i,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(i=>ci({...e,output:i}));return i=>{var l;const o=!Cp.test(t[0])&&((l=t.find(u=>Cp.test(u)))==null?void 0:l.replace(jo,""));let a=0;return t[0].replace(jo,()=>`${s[a++](i)}${o||""}`).replace(Ib,Lb)}},Wd="react-spring: ",hv=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Wd}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Mb=hv(console.warn);function Db(){Mb(`${Wd}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Fb=hv(console.warn);function $b(){Fb(`${Wd}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function el(e){return j.str(e)&&(e[0]=="#"||/\d/.test(e)||!qd()&&Ja.test(e)||e in(jn||{}))}var Zn=qd()?x.useEffect:x.useLayoutEffect,zb=()=>{const e=x.useRef(!1);return Zn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Zd(){const e=x.useState()[1],t=zb();return()=>{t.current&&e(Math.random())}}function Ub(e,t){const[n]=x.useState(()=>({inputs:t,result:e()})),r=x.useRef(),s=r.current;let i=s;return i?t&&i.inputs&&Bb(t,i.inputs)||(i={inputs:t,result:e()}):i=n,x.useEffect(()=>{r.current=i,s==n&&(n.inputs=n.result=void 0)},[i]),i.result}function Bb(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Gd=e=>x.useEffect(e,Vb),Vb=[];function Sc(e){const t=x.useRef();return x.useEffect(()=>{t.current=e}),t.current}var pi=Symbol.for("Animated:node"),Hb=e=>!!e&&e[pi]===e,Lt=e=>e&&e[pi],Xd=(e,t)=>db(e,pi,t),tl=e=>e&&e[pi]&&e[pi].getPayload(),pv=class{constructor(){Xd(this,this)}getPayload(){return this.payload||[]}},Ii=class extends pv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,j.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Ii(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return j.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,j.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},mi=class extends Ii{constructor(e){super(0),this._string=null,this._toString=ci({output:[e,e]})}static create(e){return new mi(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(j.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=ci({output:[this.getValue(),e]})),this._value=0,super.reset()}},Sa={dependencies:null},nl=class extends pv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ut(this.source,(n,r)=>{Hb(n)?t[r]=n.getValue(e):ut(n)?t[r]=De(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&B(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Ut(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Sa.dependencies&&ut(e)&&Sa.dependencies.add(e);const t=tl(e);t&&B(t,n=>this.add(n))}},mv=class extends nl{constructor(e){super(e)}static create(e){return new mv(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(qb)),!0)}};function qb(e){return(el(e)?mi:Ii).create(e)}function bc(e){const t=Lt(e);return t?t.constructor:j.arr(e)?mv:el(e)?mi:Ii}var Rp=(e,t)=>{const n=!j.fun(e)||e.prototype&&e.prototype.isReactComponent;return x.forwardRef((r,s)=>{const i=x.useRef(null),o=n&&x.useCallback(p=>{i.current=Wb(s,p)},[s]),[a,l]=Kb(r,t),u=Zd(),c=()=>{const p=i.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,a.getValue(!0)):!1)===!1&&u()},d=new Qb(c,l),h=x.useRef();Zn(()=>(h.current=d,B(l,p=>es(p,d)),()=>{h.current&&(B(h.current.deps,p=>hi(p,h.current)),V.cancel(h.current.update))})),x.useEffect(c,[]),Gd(()=>()=>{const p=h.current;B(p.deps,y=>hi(y,p))});const m=t.getComponentProps(a.getValue());return x.createElement(e,{...m,ref:o})})},Qb=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&V.write(this.update)}};function Kb(e,t){const n=new Set;return Sa.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new nl(e),Sa.dependencies=null,[e,n]}function Wb(e,t){return e&&(j.fun(e)?e(t):e.current=t),t}var kp=Symbol.for("AnimatedComponent"),Zb=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=s=>new nl(s),getComponentProps:r=s=>s}={})=>{const s={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const a=Pp(o)||"Anonymous";return j.str(o)?o=i[o]||(i[o]=Rp(o,s)):o=o[kp]||(o[kp]=Rp(o,s)),o.displayName=`Animated(${a})`,o};return Ut(e,(o,a)=>{j.arr(e)&&(a=Pp(o)),i[a]=i(o)}),{animated:i}},Pp=e=>j.str(e)?e:e&&j.str(e.displayName)?e.displayName:j.fun(e)&&e.name||null;function Fe(e,...t){return j.fun(e)?e(...t):e}var $s=(e,t)=>e===!0||!!(t&&e&&(j.fun(e)?e(t):je(e).includes(t))),gv=(e,t)=>j.obj(e)?t&&e[t]:e,vv=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Gb=e=>e,rl=(e,t=Gb)=>{let n=Xb;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const s of n){const i=t(e[s],s);j.und(i)||(r[s]=i)}return r},Xb=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Yb={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Jb(e){const t={};let n=0;if(Ut(e,(r,s)=>{Yb[s]||(t[s]=r,n++)}),n)return t}function Yd(e){const t=Jb(e);if(t){const n={to:t};return Ut(e,(r,s)=>s in t||(n[s]=r)),n}return{...e}}function gi(e){return e=De(e),j.arr(e)?e.map(gi):el(e)?Pt.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function yv(e){for(const t in e)return!0;return!1}function Ec(e){return j.fun(e)||j.arr(e)&&j.obj(e[0])}function Cc(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function wv(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var eE={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Rc={...eE.default,mass:1,damping:1,easing:Nb.linear,clamp:!1},tE=class{constructor(){this.velocity=0,Object.assign(this,Rc)}};function nE(e,t,n){n&&(n={...n},Op(n,t),t={...n,...t}),Op(e,t),Object.assign(e,t);for(const o in Rc)e[o]==null&&(e[o]=Rc[o]);let{frequency:r,damping:s}=e;const{mass:i}=e;return j.und(r)||(r<.01&&(r=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*s*i/r),e}function Op(e,t){if(!j.und(t.decay))e.duration=void 0;else{const n=!j.und(t.tension)||!j.und(t.friction);(n||!j.und(t.frequency)||!j.und(t.damping)||!j.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Np=[],rE=class{constructor(){this.changed=!1,this.values=Np,this.toValues=null,this.fromValues=Np,this.config=new tE,this.immediate=!1}};function xv(e,{key:t,props:n,defaultProps:r,state:s,actions:i}){return new Promise((o,a)=>{let l,u,c=$s(n.cancel??(r==null?void 0:r.cancel),t);if(c)m();else{j.und(n.pause)||(s.paused=$s(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=s.paused||$s(p,t)),l=Fe(n.delay||0,t),p?(s.resumeQueue.add(h),i.pause()):(i.resume(),h())}function d(){s.resumeQueue.add(h),s.timeouts.delete(u),u.cancel(),l=u.time-V.now()}function h(){l>0&&!Pt.skipAnimation?(s.delayed=!0,u=V.setTimeout(m,l),s.pauseQueue.add(d),s.timeouts.add(u)):m()}function m(){s.delayed&&(s.delayed=!1),s.pauseQueue.delete(d),s.timeouts.delete(u),e<=(s.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},o)}catch(p){a(p)}}})}var Jd=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Dr(e.get()):t.every(n=>n.noop)?Sv(e.get()):bt(e.get(),t.every(n=>n.finished)),Sv=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),bt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Dr=e=>({value:e,cancelled:!0,finished:!1});function bv(e,t,n,r){const{callId:s,parentId:i,onRest:o}=t,{asyncTo:a,promise:l}=n;return!i&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=s,n.asyncTo=e;const u=rl(t,(S,g)=>g==="onRest"?void 0:S);let c,d;const h=new Promise((S,g)=>(c=S,d=g)),m=S=>{const g=s<=(n.cancelId||0)&&Dr(r)||s!==n.asyncId&&bt(r,!1);if(g)throw S.result=g,d(S),S},p=(S,g)=>{const v=new jp,w=new Tp;return(async()=>{if(Pt.skipAnimation)throw vi(n),w.result=bt(r,!1),d(w),w;m(v);const b=j.obj(S)?{...S}:{...g,to:S};b.parentId=s,Ut(u,(k,R)=>{j.und(b[R])&&(b[R]=k)});const C=await r.start(b);return m(v),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),C})()};let y;if(Pt.skipAnimation)return vi(n),bt(r,!1);try{let S;j.arr(e)?S=(async g=>{for(const v of g)await p(v)})(e):S=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([S.then(c),h]),y=bt(r.get(),!0,!1)}catch(S){if(S instanceof jp)y=S.result;else if(S instanceof Tp)y=S.result;else throw S}finally{s==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return j.fun(o)&&V.batchedUpdates(()=>{o(y,r,r.item)}),y})()}function vi(e,t){Ds(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var jp=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Tp=class extends Error{constructor(){super("SkipAnimationSignal")}},kc=e=>e instanceof ef,sE=1,ef=class extends uv{constructor(){super(...arguments),this.id=sE++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Lt(this);return e&&e.getValue()}to(...e){return Pt.to(this,e)}interpolate(...e){return Db(),Pt.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){fi(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Xa.sort(this),fi(this,{type:"priority",parent:this,priority:e})}},sr=Symbol.for("SpringPhase"),Ev=1,Pc=2,Oc=4,Gl=e=>(e[sr]&Ev)>0,cn=e=>(e[sr]&Pc)>0,ps=e=>(e[sr]&Oc)>0,_p=(e,t)=>t?e[sr]|=Pc|Ev:e[sr]&=~Pc,Ip=(e,t)=>t?e[sr]|=Oc:e[sr]&=~Oc,iE=class extends ef{constructor(e,t){if(super(),this.animation=new rE,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!j.und(e)||!j.und(t)){const n=j.obj(e)?{...e}:{...t,from:e};j.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(cn(this)||this._state.asyncTo)||ps(this)}get goal(){return De(this.animation.to)}get velocity(){const e=Lt(this);return e instanceof Ii?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Gl(this)}get isAnimating(){return cn(this)}get isPaused(){return ps(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:s}=r;const{config:i}=r,o=tl(r.to);!o&&ut(r.to)&&(s=je(De(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==mi?1:o?o[c].lastPosition:s[c];let h=r.immediate,m=d;if(!h){if(m=u.lastPosition,i.tension<=0){u.done=!0;return}let p=u.elapsedTime+=e;const y=r.fromValues[c],S=u.v0!=null?u.v0:u.v0=j.arr(i.velocity)?i.velocity[c]:i.velocity;let g;const v=i.precision||(y==d?.005:Math.min(1,Math.abs(d-y)*.001));if(j.und(i.duration))if(i.decay){const w=i.decay===!0?.998:i.decay,b=Math.exp(-(1-w)*p);m=y+S/(1-w)*(1-b),h=Math.abs(u.lastPosition-m)<=v,g=S*b}else{g=u.lastVelocity==null?S:u.lastVelocity;const w=i.restVelocity||v/10,b=i.clamp?0:i.bounce,C=!j.und(b),k=y==d?u.v0>0:y<d;let R,P=!1;const L=1,M=Math.ceil(e/L);for(let T=0;T<M&&(R=Math.abs(g)>w,!(!R&&(h=Math.abs(d-m)<=v,h)));++T){C&&(P=m==d||m>d==k,P&&(g=-g*b,m=d));const D=-i.tension*1e-6*(m-d),U=-i.friction*.001*g,E=(D+U)/i.mass;g=g+E*L,m=m+g*L}}else{let w=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,p=u.elapsedTime+=e)),w=(i.progress||0)+p/this._memoizedDuration,w=w>1?1:w<0?0:w,u.durationProgress=w),m=y+i.easing(w)*(d-y),g=(m-u.lastPosition)/e,h=w==1}u.lastVelocity=g,Number.isNaN(m)&&(console.warn("Got NaN while animating:",this),h=!0)}o&&!o[c].done&&(h=!1),h?u.done=!0:t=!1,u.setValue(m,i.round)&&(n=!0)});const a=Lt(this),l=a.getValue();if(t){const u=De(r.to);(l!==u||n)&&!i.decay?(a.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return V.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(cn(this)){const{to:e,config:t}=this.animation;V.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return j.und(e)?(n=this.queue||[],this.queue=[]):n=[j.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Jd(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),vi(this._state,e&&this._lastCallId),V.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=j.obj(n)?n[t]:n,(n==null||Ec(n))&&(n=void 0),r=j.obj(r)?r[t]:r,r==null&&(r=void 0);const s={to:n,from:r};return Gl(this)||(e.reverse&&([n,r]=[r,n]),r=De(r),j.und(r)?Lt(this)||this._set(n):this._set(r)),s}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,rl(e,(o,a)=>/^on/.test(a)?gv(o,n):o)),Lp(this,e,"onProps"),gs(this,"onProps",e,this);const s=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return xv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ps(this)||(Ip(this,!0),Es(i.pauseQueue),gs(this,"onPause",bt(this,ms(this,this.animation.to)),this))},resume:()=>{ps(this)&&(Ip(this,!1),cn(this)&&this._resume(),Es(i.resumeQueue),gs(this,"onResume",bt(this,ms(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=Cv(e);if(a)return this._update(a,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Dr(this));const r=!j.und(e.to),s=!j.und(e.from);if(r||s)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Dr(this));const{key:i,defaultProps:o,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;s&&!r&&(!t.default||j.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const h=!Qt(d,u);h&&(a.from=d),d=De(d);const m=!Qt(c,l);m&&this._focus(c);const p=Ec(t.to),{config:y}=a,{decay:S,velocity:g}=y;(r||s)&&(y.velocity=0),t.config&&!p&&nE(y,Fe(t.config,i),t.config!==o.config?Fe(o.config,i):void 0);let v=Lt(this);if(!v||j.und(c))return n(bt(this,!0));const w=j.und(t.reset)?s&&!t.default:!j.und(d)&&$s(t.reset,i),b=w?d:this.get(),C=gi(c),k=j.num(C)||j.arr(C)||el(C),R=!p&&(!k||$s(o.immediate||t.immediate,i));if(m){const T=bc(c);if(T!==v.constructor)if(R)v=this._set(C);else throw Error(`Cannot animate between ${v.constructor.name} and ${T.name}, as the "to" prop suggests`)}const P=v.constructor;let L=ut(c),M=!1;if(!L){const T=w||!Gl(this)&&h;(m||T)&&(M=Qt(gi(b),C),L=!M),(!Qt(a.immediate,R)&&!R||!Qt(y.decay,S)||!Qt(y.velocity,g))&&(L=!0)}if(M&&cn(this)&&(a.changed&&!w?L=!0:L||this._stop(l)),!p&&((L||ut(l))&&(a.values=v.getPayload(),a.toValues=ut(c)?null:P==mi?[1]:je(C)),a.immediate!=R&&(a.immediate=R,!R&&!w&&this._set(l)),L)){const{onRest:T}=a;B(aE,U=>Lp(this,t,U));const D=bt(this,ms(this,l));Es(this._pendingCalls,D),this._pendingCalls.add(n),a.changed&&V.batchedUpdates(()=>{var U;a.changed=!w,T==null||T(D,this),w?Fe(o.onRest,D):(U=a.onStart)==null||U.call(a,D,this)})}w&&this._set(b),p?n(bv(t.to,t,this._state,this)):L?this._start():cn(this)&&!m?this._pendingCalls.add(n):n(Sv(b))}_focus(e){const t=this.animation;e!==t.to&&(Ep(this)&&this._detach(),t.to=e,Ep(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ut(t)&&(es(t,this),kc(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ut(e)&&hi(e,this)}_set(e,t=!0){const n=De(e);if(!j.und(n)){const r=Lt(this);if(!r||!Qt(n,r.getValue())){const s=bc(n);!r||r.constructor!=s?Xd(this,s.create(n)):r.setValue(n),r&&V.batchedUpdates(()=>{this._onChange(n,t)})}}return Lt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,gs(this,"onStart",bt(this,ms(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Fe(this.animation.onChange,e,this)),Fe(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Lt(this).reset(De(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),cn(this)||(_p(this,!0),ps(this)||this._resume())}_resume(){Pt.skipAnimation?this.finish():Xa.start(this)}_stop(e,t){if(cn(this)){_p(this,!1);const n=this.animation;B(n.values,s=>{s.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),fi(this,{type:"idle",parent:this});const r=t?Dr(this.get()):bt(this.get(),ms(this,e??n.to));Es(this._pendingCalls,r),n.changed&&(n.changed=!1,gs(this,"onRest",r,this))}}};function ms(e,t){const n=gi(t),r=gi(e.get());return Qt(r,n)}function Cv(e,t=e.loop,n=e.to){const r=Fe(t);if(r){const s=r!==!0&&Yd(r),i=(s||e).reverse,o=!s||s.reset;return yi({...e,loop:t,default:!1,pause:void 0,to:!i||Ec(n)?n:void 0,from:o?e.from:void 0,reset:o,...s})}}function yi(e){const{to:t,from:n}=e=Yd(e),r=new Set;return j.obj(t)&&Ap(t,r),j.obj(n)&&Ap(n,r),e.keys=r.size?Array.from(r):null,e}function oE(e){const t=yi(e);return j.und(t.default)&&(t.default=rl(t)),t}function Ap(e,t){Ut(e,(n,r)=>n!=null&&t.add(r))}var aE=["onStart","onRest","onChange","onPause","onResume"];function Lp(e,t,n){e.animation[n]=t[n]!==vv(t,n)?gv(t[n],e.key):void 0}function gs(e,t,...n){var r,s,i,o;(s=(r=e.animation)[t])==null||s.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var lE=["onStart","onChange","onRest"],uE=1,Rv=class{constructor(e,t){this.id=uE++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];j.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(yi(e)),this}start(e){let{queue:t}=this;return e?t=je(e).map(yi):this.queue=[],this._flush?this._flush(this,t):(jv(this,t),Nc(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;B(je(t),r=>n[r].stop(!!e))}else vi(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(j.und(e))this.start({pause:!0});else{const t=this.springs;B(je(e),n=>t[n].pause())}return this}resume(e){if(j.und(e))this.start({pause:!1});else{const t=this.springs;B(je(e),n=>t[n].resume())}return this}each(e){Ut(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,Ds(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const i=!r&&this._started,o=s||i&&n.size?this.get():null;s&&t.size&&Ds(t,([a,l])=>{l.value=o,a(l,this,this._item)}),i&&(this._started=!1,Ds(n,([a,l])=>{l.value=o,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;V.onFrame(this._onFrame)}};function Nc(e,t){return Promise.all(t.map(n=>kv(e,n))).then(n=>Jd(e,n))}async function kv(e,t,n){const{keys:r,to:s,from:i,loop:o,onRest:a,onResolve:l}=t,u=j.obj(t.default)&&t.default;o&&(t.loop=!1),s===!1&&(t.to=null),i===!1&&(t.from=null);const c=j.arr(s)||j.fun(s)?s:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):B(lE,y=>{const S=t[y];if(j.fun(S)){const g=e._events[y];t[y]=({finished:v,cancelled:w})=>{const b=g.get(S);b?(v||(b.finished=!1),w&&(b.cancelled=!0)):g.set(S,{value:null,finished:v||!1,cancelled:w||!1})},u&&(u[y]=t[y])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Es(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),m=t.cancel===!0||vv(t,"cancel")===!0;(c||m&&d.asyncId)&&h.push(xv(++e._lastAsyncId,{props:t,state:d,actions:{pause:wc,resume:wc,start(y,S){m?(vi(d,e._lastAsyncId),S(Dr(e))):(y.onRest=a,S(bv(c,y,d,e)))}}})),d.paused&&await new Promise(y=>{d.resumeQueue.add(y)});const p=Jd(e,await Promise.all(h));if(o&&p.finished&&!(n&&p.noop)){const y=Cv(t,o,s);if(y)return jv(e,[y]),kv(e,y,!0)}return l&&V.batchedUpdates(()=>l(p,e,e.item)),p}function jc(e,t){const n={...e.springs};return t&&B(je(t),r=>{j.und(r.keys)&&(r=yi(r)),j.obj(r.to)||(r={...r,to:void 0}),Nv(n,r,s=>Ov(s))}),Pv(e,n),n}function Pv(e,t){Ut(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,es(n,e))})}function Ov(e,t){const n=new iE;return n.key=e,t&&es(n,t),n}function Nv(e,t,n){t.keys&&B(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function jv(e,t){B(t,n=>{Nv(e.springs,n,r=>Ov(r,e))})}var Ai=({children:e,...t})=>{const n=x.useContext(ba),r=t.pause||!!n.pause,s=t.immediate||!!n.immediate;t=Ub(()=>({pause:r,immediate:s}),[r,s]);const{Provider:i}=ba;return x.createElement(i,{value:t},e)},ba=cE(Ai,{});Ai.Provider=ba.Provider;Ai.Consumer=ba.Consumer;function cE(e,t){return Object.assign(e,x.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Tv=()=>{const e=[],t=function(r){$b();const s=[];return B(e,(i,o)=>{if(j.und(r))s.push(i.start());else{const a=n(r,i,o);a&&s.push(i.start(a))}}),s};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const s=e.indexOf(r);~s&&e.splice(s,1)},t.pause=function(){return B(e,r=>r.pause(...arguments)),this},t.resume=function(){return B(e,r=>r.resume(...arguments)),this},t.set=function(r){B(e,(s,i)=>{const o=j.fun(r)?r(i,s):r;o&&s.set(o)})},t.start=function(r){const s=[];return B(e,(i,o)=>{if(j.und(r))s.push(i.start());else{const a=this._getProps(r,i,o);a&&s.push(i.start(a))}}),s},t.stop=function(){return B(e,r=>r.stop(...arguments)),this},t.update=function(r){return B(e,(s,i)=>s.update(this._getProps(r,s,i))),this};const n=function(r,s,i){return j.fun(r)?r(i,s):r};return t._getProps=n,t};function dE(e,t,n){const r=j.fun(t)&&t;r&&!n&&(n=[]);const s=x.useMemo(()=>r||arguments.length==3?Tv():void 0,[]),i=x.useRef(0),o=Zd(),a=x.useMemo(()=>({ctrls:[],queue:[],flush(g,v){const w=jc(g,v);return i.current>0&&!a.queue.length&&!Object.keys(w).some(C=>!g.springs[C])?Nc(g,v):new Promise(C=>{Pv(g,w),a.queue.push(()=>{C(Nc(g,v))}),o()})}}),[]),l=x.useRef([...a.ctrls]),u=[],c=Sc(e)||0;x.useMemo(()=>{B(l.current.slice(e,c),g=>{Cc(g,s),g.stop(!0)}),l.current.length=e,d(c,e)},[e]),x.useMemo(()=>{d(0,Math.min(c,e))},n);function d(g,v){for(let w=g;w<v;w++){const b=l.current[w]||(l.current[w]=new Rv(null,a.flush)),C=r?r(w,b):t[w];C&&(u[w]=oE(C))}}const h=l.current.map((g,v)=>jc(g,u[v])),m=x.useContext(Ai),p=Sc(m),y=m!==p&&yv(m);Zn(()=>{i.current++,a.ctrls=l.current;const{queue:g}=a;g.length&&(a.queue=[],B(g,v=>v())),B(l.current,(v,w)=>{s==null||s.add(v),y&&v.start({default:m});const b=u[w];b&&(wv(v,b.ref),v.ref?v.queue.push(b):v.start(b))})}),Gd(()=>()=>{B(a.ctrls,g=>g.stop(!0))});const S=h.map(g=>({...g}));return s?[S,s]:S}function hk(e,t){const n=j.fun(e),[[r],s]=dE(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,s]:r}function tf(e,t,n){const r=j.fun(t)&&t,{reset:s,sort:i,trail:o=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,h=x.useMemo(()=>r||arguments.length==3?Tv():void 0,[]),m=je(e),p=[],y=x.useRef(null),S=s?null:y.current;Zn(()=>{y.current=p}),Gd(()=>(B(p,E=>{h==null||h.add(E.ctrl),E.ctrl.ref=h}),()=>{B(y.current,E=>{E.expired&&clearTimeout(E.expirationId),Cc(E.ctrl,h),E.ctrl.stop(!0)})}));const g=hE(m,r?r():t,S),v=s&&y.current||[];Zn(()=>B(v,({ctrl:E,item:O,key:A})=>{Cc(E,h),Fe(u,O,A)}));const w=[];if(S&&B(S,(E,O)=>{E.expired?(clearTimeout(E.expirationId),v.push(E)):(O=w[O]=g.indexOf(E.key),~O&&(p[O]=E))}),B(m,(E,O)=>{p[O]||(p[O]={key:g[O],item:E,phase:"mount",ctrl:new Rv},p[O].ctrl.item=E)}),w.length){let E=-1;const{leave:O}=r?r():t;B(w,(A,$)=>{const N=S[$];~A?(E=p.indexOf(N),p[E]={...N,item:m[A]}):O&&p.splice(++E,0,N)})}j.fun(i)&&p.sort((E,O)=>i(E.item,O.item));let b=-o;const C=Zd(),k=rl(t),R=new Map,P=x.useRef(new Map),L=x.useRef(!1);B(p,(E,O)=>{const A=E.key,$=E.phase,N=r?r():t;let I,z;const Z=Fe(N.delay||0,A);if($=="mount")I=N.enter,z="enter";else{const ye=g.indexOf(A)<0;if($!="leave")if(ye)I=N.leave,z="leave";else if(I=N.update)z="update";else return;else if(!ye)I=N.enter,z="enter";else return}if(I=Fe(I,E.item,O),I=j.obj(I)?Yd(I):{to:I},!I.config){const ye=d||k.config;I.config=Fe(ye,E.item,O,z)}b+=o;const W={...k,delay:Z+b,ref:c,immediate:N.immediate,reset:!1,...I};if(z=="enter"&&j.und(W.from)){const ye=r?r():t,G=j.und(ye.initial)||S?ye.from:ye.initial;W.from=Fe(G,E.item,O)}const{onResolve:an}=W;W.onResolve=ye=>{Fe(an,ye);const G=y.current,he=G.find(jt=>jt.key===A);if(he&&!(ye.cancelled&&he.phase!="update")&&he.ctrl.idle){const jt=G.every(Tt=>Tt.ctrl.idle);if(he.phase=="leave"){const Tt=Fe(a,he.item);if(Tt!==!1){const ln=Tt===!0?0:Tt;if(he.expired=!0,!jt&&ln>0){ln<=2147483647&&(he.expirationId=setTimeout(C,ln));return}}}jt&&G.some(Tt=>Tt.expired)&&(P.current.delete(he),l&&(L.current=!0),C())}};const it=jc(E.ctrl,W);z==="leave"&&l?P.current.set(E,{phase:z,springs:it,payload:W}):R.set(E,{phase:z,springs:it,payload:W})});const M=x.useContext(Ai),T=Sc(M),D=M!==T&&yv(M);Zn(()=>{D&&B(p,E=>{E.ctrl.start({default:M})})},[M]),B(R,(E,O)=>{if(P.current.size){const A=p.findIndex($=>$.key===O.key);p.splice(A,1)}}),Zn(()=>{B(P.current.size?P.current:R,({phase:E,payload:O},A)=>{const{ctrl:$}=A;A.phase=E,h==null||h.add($),D&&E=="enter"&&$.start({default:M}),O&&(wv($,O.ref),($.ref||h)&&!L.current?$.update(O):($.start(O),L.current&&(L.current=!1)))})},s?void 0:n);const U=E=>x.createElement(x.Fragment,null,p.map((O,A)=>{const{springs:$}=R.get(O)||O.ctrl,N=E({...$},O.item,O,A);return N&&N.type?x.createElement(N.type,{...N.props,key:j.str(O.key)||j.num(O.key)?O.key:O.ctrl.id,ref:N.ref}):N}));return h?[U,h]:U}var fE=1;function hE(e,{key:t,keys:n=t},r){if(n===null){const s=new Set;return e.map(i=>{const o=r&&r.find(a=>a.item===i&&a.phase!=="leave"&&!s.has(a));return o?(s.add(o),o.key):fE++})}return j.und(n)?e:j.fun(n)?e.map(n):je(n)}var pE=class extends ef{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ci(...t);const n=this._get(),r=bc(n);Xd(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Qt(t,n)||(Lt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Mp(this._active)&&Xl(this)}_get(){const e=j.arr(this.source)?this.source.map(De):je(De(this.source));return this.calc(...e)}_start(){this.idle&&!Mp(this._active)&&(this.idle=!1,B(tl(this),e=>{e.done=!1}),Pt.skipAnimation?(V.batchedUpdates(()=>this.advance()),Xl(this)):Xa.start(this))}_attach(){let e=1;B(je(this.source),t=>{ut(t)&&es(t,this),kc(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){B(je(this.source),e=>{ut(e)&&hi(e,this)}),this._active.clear(),Xl(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=je(this.source).reduce((t,n)=>Math.max(t,(kc(n)?n.priority:0)+1),0))}};function mE(e){return e.idle!==!1}function Mp(e){return!e.size||Array.from(e).every(mE)}function Xl(e){e.idle||(e.idle=!0,B(tl(e),t=>{t.done=!0}),fi(e,{type:"idle",parent:e}))}Pt.assign({createStringInterpolator:fv,to:(e,t)=>new pE(e,t)});var _v=/^--/;function gE(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!_v.test(e)&&!(zs.hasOwnProperty(e)&&zs[e])?t+"px":(""+t).trim()}var Dp={};function vE(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:s,scrollTop:i,scrollLeft:o,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:Dp[d]||(Dp[d]=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));s!==void 0&&(e.textContent=s);for(const d in r)if(r.hasOwnProperty(d)){const h=gE(d,r[d]);_v.test(d)?e.style.setProperty(d,h):e.style[d]=h}c.forEach((d,h)=>{e.setAttribute(d,u[h])}),i!==void 0&&(e.scrollTop=i),o!==void 0&&(e.scrollLeft=o),a!==void 0&&e.setAttribute("viewBox",a)}var zs={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yE=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),wE=["Webkit","Ms","Moz","O"];zs=Object.keys(zs).reduce((e,t)=>(wE.forEach(n=>e[yE(n,t)]=e[t]),e),zs);var xE=/^(matrix|translate|scale|rotate|skew)/,SE=/^(translate)/,bE=/^(rotate|skew)/,Yl=(e,t)=>j.num(e)&&e!==0?e+t:e,To=(e,t)=>j.arr(e)?e.every(n=>To(n,t)):j.num(e)?e===t:parseFloat(e)===t,EE=class extends nl{constructor({x:e,y:t,z:n,...r}){const s=[],i=[];(e||t||n)&&(s.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(a=>Yl(a,"px")).join(",")})`,To(o,0)])),Ut(r,(o,a)=>{if(a==="transform")s.push([o||""]),i.push(l=>[l,l===""]);else if(xE.test(a)){if(delete r[a],j.und(o))return;const l=SE.test(a)?"px":bE.test(a)?"deg":"";s.push(je(o)),i.push(a==="rotate3d"?([u,c,d,h])=>[`rotate3d(${u},${c},${d},${Yl(h,l)})`,To(h,0)]:u=>[`${a}(${u.map(c=>Yl(c,l)).join(",")})`,To(u,a.startsWith("scale")?1:0)])}}),s.length&&(r.transform=new CE(s,i)),super(r)}},CE=class extends uv{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return B(this.inputs,(n,r)=>{const s=De(n[0]),[i,o]=this.transforms[r](j.arr(s)?s:n.map(De));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&B(this.inputs,t=>B(t,n=>ut(n)&&es(n,this)))}observerRemoved(e){e==0&&B(this.inputs,t=>B(t,n=>ut(n)&&hi(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),fi(this,e)}},RE=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Pt.assign({batchedUpdates:Pi.unstable_batchedUpdates,createStringInterpolator:fv,colors:gb});var kE=Zb(RE,{applyAnimatedValues:vE,createAnimatedStyle:e=>new EE(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Ea=kE.animated;const nf=x.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});nf.displayName="ModalContext";const Iv=()=>{const e=x.useContext(nf);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},Av=e=>{const{ariaDescriptionId:t}=Iv(),{children:n,className:r}=e,s=H("modal-body",r);return f.jsx("div",{id:t,className:s,children:n})};Av.displayName="Modal.Body";const PE=Av,Lv=e=>f.jsx("div",{className:"modal-footer",children:e.children});Lv.displayName="Modal.Footer";const OE=Lv,Mv=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:s}=Iv(),i=x.useRef(null);return x.useEffect(()=>{var o;s||(o=i.current)==null||o.focus()},[s]),f.jsxs("div",{className:"modal-header",children:[f.jsx("h2",{id:r,className:"modal-title",tabIndex:-1,children:n}),f.jsx(Qa,{ref:i,"aria-label":"Close",color:"tertiary",icon:f.jsx(Y4,{}),type:"button",variant:"ghost",title:"Delete",onClick:t,className:"btn-close"})]})};Mv.displayName="Modal.Header";const NE=Mv,Dv=e=>f.jsx("p",{className:"modal-subtitle",children:e.children});Dv.displayName="Modal.Subtitle";const jE=Dv,Fv=x.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:s,size:i="md",viewport:o=!1,scrollable:a=!1,focusId:l,children:u}=e,c=`aria_label_${n}`,d=`aria_desc_${n}`,h=t0(s),m=z4();D4(s,["Escape"]),x.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",l)){const v=document.getElementById(l);v==null||v.focus()}return()=>{document.body.style.overflow=""}},[l,r]);const p=H("modal fade",{"show d-block":r,"modal-scrollable":a,viewport:o,[`modal-${i}`]:i}),y=H("modal-dialog"),S={ariaLabelId:c,ariaDescriptionId:d,focusId:l},g=tf(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return f.jsx(nf.Provider,{value:S,children:g((v,w)=>f.jsxs(f.Fragment,{children:[w&&f.jsx(Ea.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":c,"aria-describedby":d,className:p,style:v,tabIndex:-1,children:f.jsx("div",{id:`${n}_ref`,ref:b=>{h.current=b,w&&(m.current=b)},className:y,children:f.jsx("div",{className:"modal-content",children:u})})}),w&&f.jsx(Ea.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),TE=Object.assign(Fv,{Header:NE,Subtitle:jE,Body:PE,Footer:OE});Fv.displayName="Modal";const Sn=TE,_E=({children:e,className:t})=>{const n=H("popover-body",t);return f.jsx("div",{className:n,children:e})},IE=({children:e,className:t})=>{const n=H("popover-footer p-8",t);return f.jsx("div",{className:n,children:e})},rf=x.forwardRef(({children:e,className:t,id:n,isVisible:r,...s},i)=>{const o=H("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return tf(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}})((l,u)=>u&&f.jsx(Ea.div,{ref:i,"aria-labelledby":n,className:o,role:"tooltip",style:l,...s,children:e}))});rf.displayName="Popover";function AE(e,t,n,r,s,i,o,a,l){const u=S=>{S.preventDefault(),s==null||s(e),S.stopPropagation()},c=S=>{(S.code==="Enter"||S.code==="Space")&&(S.preventDefault(),s==null||s(e),S.stopPropagation())},d=()=>{r(!n),n?i==null||i(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:c,handleItemFoldUnfoldClick:S=>{S.preventDefault(),d(),S.stopPropagation()},handleItemFoldUnfoldKeyDown:S=>{(S.code==="Enter"||S.code==="Space")&&(S.preventDefault(),d(),S.stopPropagation())},handleItemFocus:S=>{S.preventDefault(),a==null||a(e)},handleItemBlur:S=>{S.preventDefault(),l==null||l(e)}}}const $v=e=>{const{nodeId:t,label:n,children:r,section:s,selected:i,onItemSelect:o,onItemFold:a,onItemUnfold:l,onItemFocus:u,onItemBlur:c,selectedNodesIds:d}=e,[h,m]=x.useState(!1),{handleItemClick:p,handleItemKeyDown:y,handleItemFoldUnfoldClick:S,handleItemFoldUnfoldKeyDown:g,handleItemFocus:v,handleItemBlur:w}=AE(t,n,h,m,o,a,l,u,c);x.useEffect(()=>{if(d!=null&&d.length&&(d==null?void 0:d.length)>=1){const k=d[d.length-1];d.some(R=>R===t&&t!==k?(m(!0),R===t):(m(!1),!1))}else m(!1)},[t,d]);const b=s?16:12,C=()=>f.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":i,"aria-expanded":h,children:f.jsxs("div",{children:[f.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[f.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:S,onKeyDown:g,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!h&&f.jsx(np,{title:"RafterRight",width:b,height:b}),Array.isArray(r)&&h&&f.jsx(hc,{title:"RafterDown",width:b,height:b}),!Array.isArray(r)&&f.jsx(np,{title:"RafterRight",width:b,height:b,"aria-hidden":"true",className:"opacity-0"})]}),f.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:p,onKeyDown:y,onFocus:v,onBlur:w,children:[s&&f.jsx(u3,{title:"Folder",width:20,height:20}),f.jsx("span",{className:"text-truncate",children:n})]})]}),Array.isArray(r)&&f.jsx("ul",{role:"group",children:r})]})},t);return s?f.jsx("ul",{role:"tree",className:"m-0 p-0",children:C()}):C()};$v.displayName="TreeItem";const LE=$v,zv=x.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:s,onTreeItemUnfold:i,onTreeItemFocus:o,onTreeItemBlur:a,selectedNodesIds:l}=e,[u,c]=x.useState("default");x.useEffect(()=>{l!=null&&l.length&&(l==null?void 0:l.length)>=1?c(l[l.length-1]):c("")},[l]);const d=g=>{c(g),r==null||r(g)},h=g=>{s==null||s(g)},m=g=>{i==null||i(g)},p=g=>{o==null||o(g)},y=g=>{a==null||a(g)},S=g=>f.jsx(LE,{nodeId:g.id,label:g.name,section:g.section,selectedNodesIds:l,selected:u===g.id,onItemSelect:d,onItemFold:h,onItemUnfold:m,onItemFocus:p,onItemBlur:y,children:Array.isArray(g.children)?g.children.map(v=>S(v)):null},g.id);return f.jsx("div",{ref:t,id:"treeview",className:"treeview",children:S(n)})});zv.displayName="TreeView";const ME=zv,Uv=x.forwardRef(({children:e},t)=>f.jsx("span",{className:"visually-hidden",ref:t,children:e}));Uv.displayName="VisuallyHidden";const Cs=Uv,DE=()=>{const e=Ls("fr.openent.zimbra.controllers.ZimbraController|view"),t=Ls("fr.openent.zimbra.controllers.ZimbraController|preauth"),[n,r]=x.useState(0),[s,i]=x.useState(""),o=x.useCallback(async()=>{if(e)try{const l=await X.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});l.status!==200&&r(0),r(l.count)}catch{console.error("error"),r(0)}else try{const l=await X.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});r(l.count)}catch{console.error("error"),r(0)}},[e]),a=x.useCallback(()=>{let l="";X.http().get("/userbook/preference/zimbra").then(u=>{try{u.preference&&JSON.parse(u.preference).modeExpert&&t?l="/zimbra/preauth":l=window.location.origin+"/zimbra/zimbra"}catch{l="/zimbra/zimbra"}}),i(l)},[t]);return x.useEffect(()=>{(async()=>{try{await o()}catch(l){console.error(l)}})(),a()},[a,o]),{messages:n,msgLink:s,zimbraWorkflow:e}},FE=DE;function Jl({children:e}){return f.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function eu({children:e,className:t,...n}){const r=H("navbar",t);return f.jsx("nav",{className:r,...n,children:e})}function Fp({children:e,className:t,...n}){const r=H("navbar-nav",t);return f.jsx("ul",{className:r,...n,children:e})}const ue=x.forwardRef(({children:e,className:t,...n},r)=>{const s=H("nav-item",t);return f.jsx("li",{ref:r,className:s,...n,children:e})});ue.displayName="NavItem";function vs({link:e,className:t,children:n,translate:r,...s}){const i=H("nav-link",t);return f.jsxs("a",{href:e,className:i,...s,children:[n,r&&f.jsx(Cs,{children:f.jsx("span",{className:"nav-text",children:r})})]})}const $E=()=>{const{t:e}=ve();return f.jsx("div",{className:"widget-footer",children:f.jsx("div",{className:"widget-footer-action",children:f.jsx("a",{href:"/welcome",className:"link",children:e("plus")})})})},zE=({bookmarkedApps:e})=>{const{t}=ve();return f.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!e.length&&f.jsx("div",{className:"text-dark",children:t("navbar.myapps.more")}),e.slice(0,6).map((n,r)=>f.jsx("a",{href:n.address,className:"bookmarked-app",children:f.jsx(pc,{app:n,size:"32"})},r))]})};var sf={},of={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(r){return r.type===t.Tag||r.type===t.Script||r.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(of);var q={},$n=Ue&&Ue.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Us=Ue&&Ue.__assign||function(){return Us=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Us.apply(this,arguments)};Object.defineProperty(q,"__esModule",{value:!0});q.cloneNode=q.hasChildren=q.isDocument=q.isDirective=q.isComment=q.isText=q.isCDATA=q.isTag=q.Element=q.Document=q.CDATA=q.NodeWithChildren=q.ProcessingInstruction=q.Comment=q.Text=q.DataNode=q.Node=void 0;var Qe=of,af=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),lf(this,t)},e}();q.Node=af;var sl=function(e){$n(t,e);function t(n){var r=e.call(this)||this;return r.data=n,r}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),t}(af);q.DataNode=sl;var Bv=function(e){$n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Qe.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(sl);q.Text=Bv;var Vv=function(e){$n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Qe.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(sl);q.Comment=Vv;var Hv=function(e){$n(t,e);function t(n,r){var s=e.call(this,r)||this;return s.name=n,s.type=Qe.ElementType.Directive,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(sl);q.ProcessingInstruction=Hv;var il=function(e){$n(t,e);function t(n){var r=e.call(this)||this;return r.children=n,r}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(af);q.NodeWithChildren=il;var qv=function(e){$n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Qe.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(il);q.CDATA=qv;var Qv=function(e){$n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Qe.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(il);q.Document=Qv;var Kv=function(e){$n(t,e);function t(n,r,s,i){s===void 0&&(s=[]),i===void 0&&(i=n==="script"?Qe.ElementType.Script:n==="style"?Qe.ElementType.Style:Qe.ElementType.Tag);var o=e.call(this,s)||this;return o.name=n,o.attribs=r,o.type=i,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var s,i;return{name:r,value:n.attribs[r],namespace:(s=n["x-attribsNamespace"])===null||s===void 0?void 0:s[r],prefix:(i=n["x-attribsPrefix"])===null||i===void 0?void 0:i[r]}})},enumerable:!1,configurable:!0}),t}(il);q.Element=Kv;function Wv(e){return(0,Qe.isTag)(e)}q.isTag=Wv;function Zv(e){return e.type===Qe.ElementType.CDATA}q.isCDATA=Zv;function Gv(e){return e.type===Qe.ElementType.Text}q.isText=Gv;function Xv(e){return e.type===Qe.ElementType.Comment}q.isComment=Xv;function Yv(e){return e.type===Qe.ElementType.Directive}q.isDirective=Yv;function Jv(e){return e.type===Qe.ElementType.Root}q.isDocument=Jv;function UE(e){return Object.prototype.hasOwnProperty.call(e,"children")}q.hasChildren=UE;function lf(e,t){t===void 0&&(t=!1);var n;if(Gv(e))n=new Bv(e.data);else if(Xv(e))n=new Vv(e.data);else if(Wv(e)){var r=t?tu(e.children):[],s=new Kv(e.name,Us({},e.attribs),r);r.forEach(function(l){return l.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=Us({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=Us({},e["x-attribsPrefix"])),n=s}else if(Zv(e)){var r=t?tu(e.children):[],i=new qv(r);r.forEach(function(u){return u.parent=i}),n=i}else if(Jv(e)){var r=t?tu(e.children):[],o=new Qv(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(Yv(e)){var a=new Hv(e.name,e.data);e["x-name"]!=null&&(a["x-name"]=e["x-name"],a["x-publicId"]=e["x-publicId"],a["x-systemId"]=e["x-systemId"]),n=a}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}q.cloneNode=lf;function tu(e){for(var t=e.map(function(r){return lf(r,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}(function(e){var t=Ue&&Ue.__createBinding||(Object.create?function(a,l,u,c){c===void 0&&(c=u);var d=Object.getOwnPropertyDescriptor(l,u);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(a,c,d)}:function(a,l,u,c){c===void 0&&(c=u),a[c]=l[u]}),n=Ue&&Ue.__exportStar||function(a,l){for(var u in a)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&t(l,a,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=of,s=q;n(q,e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function a(l,u,c){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=i),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??i,this.elementCB=c??null}return a.prototype.onparserinit=function(l){this.parser=l},a.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(l){this.handleCallback(l)},a.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},a.prototype.onopentag=function(l,u){var c=this.options.xmlMode?r.ElementType.Tag:void 0,d=new s.Element(l,u,void 0,c);this.addNode(d),this.tagStack.push(d)},a.prototype.ontext=function(l){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=l,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new s.Text(l);this.addNode(c),this.lastNode=c}},a.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=l;return}var u=new s.Comment(l);this.addNode(u),this.lastNode=u},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var l=new s.Text(""),u=new s.CDATA([l]);this.addNode(u),l.parent=u,this.lastNode=l},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(l,u){var c=new s.ProcessingInstruction(l,u);this.addNode(c)},a.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},a.prototype.addNode=function(l){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),u.children.push(l),c&&(l.prev=c,c.next=l),l.parent=u,this.lastNode=null},a}();e.DomHandler=o,e.default=o})(sf);var $p="html",zp="head",lo="body",BE=/<([a-zA-Z]+[0-9]?)/,Up=/<head[^]*>/i,Bp=/<body[^]*>/i,Ca=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Tc=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},Vp=typeof window=="object"&&window.DOMParser;if(typeof Vp=="function"){var VE=new Vp,HE="text/html";Tc=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),VE.parseFromString(e,HE)},Ca=Tc}if(typeof document=="object"&&document.implementation){var uo=document.implementation.createHTMLDocument();Ca=function(e,t){if(t){var n=uo.documentElement.querySelector(t);return n.innerHTML=e,uo}return uo.documentElement.innerHTML=e,uo}}var nu=typeof document=="object"?document.createElement("template"):{},_c;nu.content&&(_c=function(e){return nu.innerHTML=e,nu.content.childNodes});function qE(e){var t,n=e.match(BE);n&&n[1]&&(t=n[1].toLowerCase());var r,s,i;switch(t){case $p:return r=Tc(e),Up.test(e)||(s=r.querySelector(zp),s&&s.parentNode.removeChild(s)),Bp.test(e)||(s=r.querySelector(lo),s&&s.parentNode.removeChild(s)),r.querySelectorAll($p);case zp:case lo:return r=Ca(e),i=r.querySelectorAll(t),Bp.test(e)&&Up.test(e)?i[0].parentNode.childNodes:i;default:return _c?_c(e):(s=Ca(e,lo).querySelector(lo),s.childNodes)}}var QE=qE,uf={},ey={};ey.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];var ol=sf,KE=ey,Hp=KE.CASE_SENSITIVE_TAG_NAMES,WE=ol.Comment,ZE=ol.Element,GE=ol.ProcessingInstruction,XE=ol.Text,ty={},ru;for(var su=0,YE=Hp.length;su<YE;su++)ru=Hp[su],ty[ru.toLowerCase()]=ru;function JE(e){return ty[e]}function ny(e){for(var t={},n,r=0,s=e.length;r<s;r++)n=e[r],t[n.name]=n.value;return t}function eC(e){e=e.toLowerCase();var t=JE(e);return t||e}function ry(e,t,n){t=t||null;for(var r=[],s,i=0,o=e.length;i<o;i++){var a=e[i],l;switch(a.nodeType){case 1:s=eC(a.nodeName),l=new ZE(s,ny(a.attributes)),l.children=ry(s==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new XE(a.nodeValue);break;case 8:l=new WE(a.nodeValue);break;default:continue}var u=r[i-1]||null;u&&(u.next=l),l.parent=t,l.prev=u,l.next=null,r.push(l)}return n&&(l=new GE(n.substring(0,n.indexOf(" ")).toLowerCase(),n),l.next=r[0]||null,l.parent=t,r.unshift(l),r[1]&&(r[1].prev=r[0])),r}uf.formatAttributes=ny;uf.formatDOM=ry;var tC=QE,nC=uf,rC=nC.formatDOM,sC=/<(![a-zA-Z\s]+)>/;function iC(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(sC),n;return t&&t[1]&&(n=t[1]),rC(tC(e),null,n)}var oC=iC,vt={},al={},aC=0;al.SAME=aC;var lC=1;al.CAMELCASE=lC;al.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};Object.defineProperty(vt,"__esModule",{value:!0});function uC(e,t){return cC(e)||dC(e,t)||fC(e,t)||hC()}function cC(e){if(Array.isArray(e))return e}function dC(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function fC(e,t){if(e){if(typeof e=="string")return qp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qp(e,t)}}function qp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
224
|
+
`,ro=16,L4=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:i,containerClassName:o})=>{let{toasts:a,handlers:l}=u4(n);return x.createElement("div",{style:{position:"fixed",zIndex:9999,top:ro,left:ro,right:ro,bottom:ro,pointerEvents:"none",...i},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let c=u.position||t,d=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=I4(c,d);return x.createElement(_4,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?A4:"",style:h},u.type==="custom"?ha(u.message,u):s?s(u):x.createElement(T4,{toast:u,position:c}))}))},hs=Ge;function Ot(e){return{hotToast:{success:(n,r)=>hs.custom(f.jsx(e,{type:"success",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),error:(n,r)=>hs.custom(f.jsx(e,{type:"danger",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),info:(n,r)=>hs.custom(f.jsx(e,{type:"info",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),warning:(n,r)=>hs.custom(f.jsx(e,{type:"warning",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),loading:hs.loading}}}function M4({src:e,placeholder:t}){const[n,r]=x.useState(e||t),s=x.useCallback(()=>{r(t)},[t]);return x.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:s}}function D4(e,t){const n=x.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);x.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function F4(e=!1){const[t,n]=x.useState(e),r=x.useCallback(()=>{n(s=>!s)},[]);return[t,r]}function $4(e,t){const[n,r]=x.useState(e);return x.useEffect(()=>{const s=setTimeout(()=>{r(e)},t||500);return()=>{clearTimeout(s)}},[e,t]),n}function z4(){const e=x.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return x.useEffect(()=>{const n=e.current,r=n.querySelectorAll(t)[0],s=n.querySelectorAll(t),i=e&&(s==null?void 0:s[s.length-1]),o=a=>{a.key==="Tab"&&(a.shiftKey?document.activeElement===r&&(i.focus(),a.preventDefault()):document.activeElement===i&&(r.focus(),a.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function U4(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const i0=x.forwardRef(({children:e},t)=>f.jsx("div",{ref:t,className:"actionbar",children:e}));i0.displayName="ActionBar";const B4=i0,V4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1ZM11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z",clipRule:"evenodd"})]}),H4=V4,q4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.707 4.293a1 1 0 0 1 0 1.414L6.414 12l6.293 6.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"})]}),Q4=q4,K4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L17.586 12l-6.293-6.293a1 1 0 0 1 0-1.414Z",clipRule:"evenodd"})]}),sk=K4,W4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M7 4a1 1 0 0 0-1 1v14.06l5.42-3.87a1 1 0 0 1 1.16 0L18 19.06V5a1 1 0 0 0-1-1H7zM4.88 2.88A3 3 0 0 1 7 2h10a3 3 0 0 1 3 3v16a1 1 0 0 1-1.58.81L12 17.23 5.58 21.8A1 1 0 0 1 4 21V5a3 3 0 0 1 .88-2.12z"})]}),ik=W4,Z4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5ZM21 12c0 .828-.711 1.5-1.588 1.5H4.588C3.711 13.5 3 12.828 3 12s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5ZM21 19c0 .828-.711 1.5-1.588 1.5H4.588C3.711 20.5 3 19.828 3 19s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5Z",clipRule:"evenodd"})]}),G4=Z4,X4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.222 4.222a1.1 1.1 0 0 1 1.556 0l14 14a1.1 1.1 0 1 1-1.556 1.556l-14-14a1.1 1.1 0 0 1 0-1.556Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.778 4.222a1.1 1.1 0 0 1 0 1.556l-14 14a1.1 1.1 0 1 1-1.556-1.556l14-14a1.1 1.1 0 0 1 1.556 0Z",clipRule:"evenodd"})]}),Y4=X4,J4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.676 3c.284-.672.853-1 1.263-1h11.423c.566 0 1.438.628 1.438 1.923v13.154c0 1.056-.58 1.668-1.1 1.858V6.923C19.7 4.99 18.3 3 16.061 3H6.676Zm-2.272.007C4.765 1.41 6.056 0 7.939 0h11.423C21.599 0 23 1.99 23 3.923v13.154c0 1.865-1.303 3.782-3.403 3.916C19.235 22.59 17.944 24 16.06 24H4.638C2.401 24 1 22.01 1 20.077V6.923c0-1.865 1.303-3.782 3.404-3.916ZM3.2 6.923C3.2 5.628 4.072 5 4.638 5h11.423c.567 0 1.439.628 1.439 1.923v13.154c0 1.295-.872 1.923-1.439 1.923H4.638c-.566 0-1.438-.628-1.438-1.923V6.923Z",clipRule:"evenodd"})]}),ok=J4,e3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.955.955 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675Zm7.357.675v.954H20.636a.955.955 0 0 1 0 1.91h-.954v12.408a2.864 2.864 0 0 1-2.864 2.864H7.273a2.864 2.864 0 0 1-2.864-2.864V7.227h-.954a.955.955 0 1 1 0-1.909H7.273v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864Zm-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227H6.318Zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955Zm4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0Z",clipRule:"evenodd"})]}),t3=e3,n3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.879 3.879A3 3 0 0 1 4 3h7a1 1 0 1 1 0 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 1 1 2 0v7a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 2.879c-.297 0-.583.118-.793.328l-9.304 9.304-.529 2.115 2.115-.529 9.304-9.304A1.121 1.121 0 0 0 20 2.879Zm-2.207-1.086a3.121 3.121 0 0 1 4.414 4.414l-9.5 9.5a1 1 0 0 1-.464.263l-4 1a1 1 0 0 1-1.213-1.212l1-4a1 1 0 0 1 .263-.465l9.5-9.5Z",clipRule:"evenodd"})]}),ak=n3,r3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1ZM8.293 15.707a1 1 0 0 1 0-1.414L10.586 12 8.293 9.707a1 1 0 0 1 1.414-1.414L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414 0Z",clipRule:"evenodd"})]}),s3=r3,i3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.91 9.14v1.27H8.25a4.7 4.7 0 0 0-3.86 1.98L1.5 16.53V6.4a2.3 2.3 0 0 1 .77-1.69A2.68 2.68 0 0 1 4.11 4h3.73a2.68 2.68 0 0 1 1.84.71c.25.22.45.48.58.77.13.29.2.6.2.92v.34h7.84c.7.01 1.35.27 1.84.71.49.45.76 1.06.77 1.7ZM8.25 11.92h14.47c.63 0 1 .68.64 1.18l-3.52 5.04a3.13 3.13 0 0 1-2.57 1.32H2.79c-.62 0-.99-.68-.64-1.18l3.53-5.04a3.13 3.13 0 0 1 2.57-1.32Z",clipRule:"evenodd"})]}),lk=i3,o3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067ZM4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4H4.155Z",clipRule:"evenodd"})]}),a3=o3,l3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.057 5.5A.057.057 0 0 0 3 5.557v13.03h18V7.875h-8.697a1 1 0 0 1-1-1c0-.759-.615-1.374-1.374-1.374H3.057ZM1 5.557C1 4.42 1.92 3.5 3.057 3.5h6.872c1.515 0 2.797.999 3.223 2.374H21a2 2 0 0 1 2 2v10.714a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V5.557Z",clipRule:"evenodd"})]}),u3=l3,c3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.008 9.008 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71Zm4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.008 9.008 0 0 0-6.67-7.71Zm.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11h5.884Zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13ZM7.05 13H3.055a9.008 9.008 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13Zm7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.008 9.008 0 0 1-6.67 7.71ZM12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Z",clipRule:"evenodd"})]}),uk=c3,d3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.01 17a1 1 0 0 1-1-1v-5a1 1 0 1 1 2 0v5a1 1 0 0 1-1 1ZM13.01 7.5a1 1 0 0 1-1 1H12a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1Z",clipRule:"evenodd"})]}),f3=d3,h3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.672 5.558a7.96 7.96 0 0 0-9.841.397 7.95 7.95 0 0 0-1.908 9.66 7.964 7.964 0 0 0 8.949 4.12A7.948 7.948 0 0 0 19.962 12a1.021 1.021 0 1 1 2.045 0A9.994 9.994 0 0 1 7.83 21.083a10.01 10.01 0 0 1-5.634-11.027 9.991 9.991 0 0 1 9.402-8.048c2.244-.09 4.453.577 6.272 1.895a1.022 1.022 0 1 1-1.198 1.655Z",clipRule:"evenodd"})]}),p3=h3,m3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),ck=m3,g3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7v7a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7V4Z",clipRule:"evenodd"})]}),v3=g3,y3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117Z",clipRule:"evenodd"})]}),hc=y3,w3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.129 4.012a1.5 1.5 0 0 1-.141 2.117L9.278 12l6.71 5.871a1.5 1.5 0 0 1-1.976 2.258l-8-7a1.5 1.5 0 0 1 0-2.258l8-7a1.5 1.5 0 0 1 2.117.141Z",clipRule:"evenodd"})]}),x3=w3,S3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.871 19.988a1.5 1.5 0 0 1 .141-2.117L14.722 12l-6.71-5.871A1.5 1.5 0 0 1 9.988 3.87l8 7a1.5 1.5 0 0 1 0 2.258l-8 7a1.5 1.5 0 0 1-2.117-.141Z",clipRule:"evenodd"})]}),np=S3,b3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.988 17.129a1.5 1.5 0 0 1-2.117-.141L12 10.278l-5.871 6.71a1.5 1.5 0 0 1-2.258-1.976l7-8a1.5 1.5 0 0 1 2.258 0l7 8a1.5 1.5 0 0 1-.141 2.117Z",clipRule:"evenodd"})]}),E3=b3,C3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7h1a1 1 0 0 0 1-1V8.414L15.586 4H8v3h7a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1V4H5Zm2-2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a1 1 0 0 0-.293-.707l-5-5A1 1 0 0 0 16 2H7Zm1 12v6h8v-6H8Z",clipRule:"evenodd"})]}),dk=C3,R3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0Zm7-9a9 9 0 1 0 5.7 15.96 1 1 0 0 0 .24.4l4.35 4.35a1 1 0 0 0 1.42-1.42l-4.35-4.35a1 1 0 0 0-.4-.24A9 9 0 0 0 11 1Z",clipRule:"evenodd"})]}),k3=R3,P3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.59 8.192a1 1 0 0 1 .218 1.397l-4.375 6a1 1 0 0 1-1.584.042L8.224 12.4a1 1 0 0 1 1.552-1.261l1.806 2.223 3.61-4.951a1 1 0 0 1 1.397-.219Z",clipRule:"evenodd"})]}),O3=P3,N3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:f.jsx("path",{d:"M19.055 12.803a1 1 0 0 1 1.272-.618c1.128.39 2.061 1.247 2.7 2.351.64 1.106.972 2.435.973 3.782V21a1 1 0 1 1-2 0v-2.681c0-1.03-.258-2.009-.704-2.782-.448-.773-1.034-1.258-1.623-1.462a1 1 0 0 1-.618-1.272ZM15.187 1.384a1 1 0 0 1 1.036-.962 5.129 5.129 0 0 1 2.11 9.71 1 1 0 1 1-.896-1.788 3.129 3.129 0 0 0-1.288-5.924 1 1 0 0 1-.962-1.036ZM1.505 15.694C2.481 14.622 3.825 14 5.25 14h8.5c1.424 0 2.769.622 3.744 1.694.974 1.068 1.506 2.498 1.506 3.973V22a1 1 0 1 1-2 0v-2.333c0-1.001-.363-1.945-.984-2.627-.618-.679-1.436-1.04-2.266-1.04h-8.5c-.83 0-1.648.361-2.266 1.04-.621.682-.984 1.626-.984 2.627V22a1 1 0 1 1-2 0v-2.333c0-1.475.533-2.905 1.505-3.974ZM9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7ZM4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0Z"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"users_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),fk=N3;function o0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=o0(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function H(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=o0(e))&&(r&&(r+=" "),r+=t);return r}const a0=x.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:s=!1,isToast:i=!1,autoClose:o=!1,autoCloseDelay:a=3e3,onClose:l,onVisibilityChange:u},c)=>{const[d,h]=x.useState(!0),m=x.useRef(null),p=x.useCallback(()=>{h(!1),l==null||l()},[l]);x.useImperativeHandle(c,()=>({show:y,hide:p,...m.current})),x.useLayoutEffect(()=>{u==null||u(d)},[d,u]),x.useEffect(()=>{o&&d&&setTimeout(()=>{p()},a)},[o,a,p,d]);const y=()=>{h(!0)},S={success:{icon:f.jsx(O3,{}),classModifier:"alert-success"},warning:{icon:f.jsx(H4,{}),classModifier:"alert-warning"},info:{icon:f.jsx(f3,{}),classModifier:"alert-info"},danger:{icon:f.jsx(s3,{}),classModifier:"alert-danger"}},g={"is-dismissible":s,"is-toast ":i},v=H("alert gap-12",S[e].classModifier,g,t);return f.jsx(f.Fragment,{children:d?f.jsxs("div",{ref:m,className:v,role:"alert",children:[S[e].icon,f.jsx("div",{className:"alert-content small",children:n}),r&&f.jsx("div",{className:"ms-12",children:r}),s&&f.jsx("div",{className:"btn-close-container",children:f.jsx("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:p})}),o&&f.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});a0.displayName="Alert";const Nt=a0,l0=x.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const s=H("d-flex flex-wrap p-16 gap-8 border-bottom bg-white",{"justify-content-between":t,"mx-n16":!n,"z-3 top-0 start-0 end-0 position-fixed":n});return f.jsxs("div",{ref:r,className:s,children:[e,t?f.jsx("div",{className:"d-flex align-items-center ms-auto gap-8",children:t()}):null]})});l0.displayName="AppHeader";const j3=l0,u0=x.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:s,className:i,...o},a)=>{const[l]=Ha(),u=n??`${l}/common/image-placeholder.png`,{imgSrc:c,onError:d}=M4({src:e,placeholder:u}),h={"ratio ratio-1x1":r==="1","ratio ratio-4x3":r==="4","ratio ratio-16x9":r==="16","ratio ratio-21x9":r==="21"},m={"object-fit-contain":s==="contain","object-fit-cover":s==="cover","object-fit-fill":s==="fill","object-fit-scale":s==="scale","object-fit-none":s==="none"},p=H({...h}),y=H({...m},i),S=f.jsx("img",{alt:t,onError:d,ref:a,src:c,className:y,...o});return r?f.jsx("div",{className:p,children:S}):S});u0.displayName="Image";const c0=u0,d0=x.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},s)=>{const{isIconUrl:i,getIconCode:o}=Jg(),[,a]=Ha(),l=r==="square",u=r==="rounded",c=r==="circle",d=n==="contain",h=n==="ratio",m={"icon-xs":t==="24","icon-sm":t==="40","icon-md":t==="48","icon-lg":t==="80","icon-xl":t==="160"},p={square:l,rounded:u,"rounded-circle":c},y={"icon-contain":d,"icon-ratio":h},S=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",g=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",v=e?o(e):"",w=i(S),b=v||"placeholder",C=H("app-icon",{...m,...p,...y,[`bg-light-${b}`]:b&&!d,[`color-app-${b}`]:b});return w?f.jsx(c0,{src:S,alt:g,objectFit:"contain",width:t,height:t,className:"h-full"}):f.jsx("div",{className:C,style:{width:t+"px",height:t+"px"},children:f.jsx("svg",{ref:s,width:t,height:t,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:f.jsx("use",{xlinkHref:`${a}/apps.svg#${b}`})})})});d0.displayName="AppIcon";const pc=d0,f0=x.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:s,className:i,...o},a)=>{const[l]=Ha(),u=s||`${l}/avatar/no-avatar.svg`,y=H("avatar",{...{"avatar-xs":t==="xs","avatar-sm":t==="sm","avatar-md":t==="md","avatar-lg":t==="lg","avatar-xl":t==="xl"},...{square:e==="square",rounded:e==="rounded","rounded-circle":e==="circle"}},i);return f.jsx("div",{ref:a,className:y,children:f.jsx(c0,{src:r||u,alt:n,imgPlaceholder:u,...o})})});f0.displayName="Avatar";const rp=f0,h0=x.forwardRef(({children:e,className:t,...n},r)=>{const s=H("breadcrumb-item",t);return f.jsx("li",{ref:r,className:s,...n,children:e})});h0.displayName="BreadcrumbItem";const ql=h0,p0=x.forwardRef(({children:e,className:t},n)=>{const r=H("breadcrumb d-flex flex-nowrap align-items-center mb-0",t);return f.jsx("ol",{ref:n,className:r,children:e})});p0.displayName="BreadcrumbList";const T3=p0,m0=x.forwardRef(({children:e,app:t,className:n},r)=>{const{t:s}=ve(),{getIconClass:i}=Jg(),o=H("d-flex align-items-center mb-0",i(t),n),a={"--edifice-breadcrumb-divider":"-"};return f.jsx("nav",{ref:r,className:o,"aria-label":s("breadcrumb"),style:a,children:e})});m0.displayName="BreadcrumbNav";const _3=m0,g0=x.forwardRef(({level:e="h1",headingStyle:t="h1",children:n,className:r,...s},i)=>{const o=H(t,r);return f.jsx(e,{ref:i,className:o,...s,children:n})});g0.displayName="Heading";const sp=g0,v0=x.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:s="left",children:i,...o}=e,a=()=>{let u;return r?u=r:u=f.jsx(p3,{...o,"aria-label":"Loading"}),u},l=H("loading",{"is-loading":n});return f.jsxs("div",{className:l,role:"status",ref:t,children:[(!s||s==="left")&&a(),i,s==="right"&&a()]})});v0.displayName="Loading";const I3=v0,y0=x.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:s,loadingIcon:i,loadingPosition:o,leftIcon:a,rightIcon:l,className:u,variant:c="filled",...d},h)=>{const m=H("btn",{[`btn-filled btn-${e}`]:c==="filled",[`btn-${c}-${e}`]:c==="outline"||c==="ghost","btn-icon":!r,"btn-loading":s,"btn-lg":n==="lg","btn-sm":n==="sm"},u);return f.jsx("button",{ref:h,className:m,type:t,...d,children:s?f.jsx(I3,{isLoading:!0,loadingIcon:i,loadingPosition:o,children:r}):f.jsxs("span",{children:[a,r,l]})})});y0.displayName="Button";const Jr=y0,w0=x.forwardRef(({icon:e,className:t,...n},r)=>{const s={...n,className:H("btn-icon btn-sm",t)};return f.jsx(Jr,{ref:r,...s,children:e})});w0.displayName="IconButton";const Qa=w0,x0=x.forwardRef(({app:e,name:t},n)=>{const{t:r}=ve();return f.jsx(_3,{app:e,ref:n,className:"mw-100",children:f.jsx(T3,{className:"gap-12 mw-100",children:t?f.jsxs(f.Fragment,{children:[f.jsx(ql,{children:f.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[f.jsx(Qa,{variant:"ghost",color:"tertiary",icon:f.jsx(x3,{}),"aria-label":r(e==null?void 0:e.displayName)}),f.jsx(pc,{app:e,size:"40"})]})}),f.jsx(ql,{className:"text-truncate",children:f.jsx(sp,{level:"h1",headingStyle:"h3",className:"text-truncate",children:t})})]}):f.jsxs(ql,{className:"gap-12 d-flex align-items-center",children:[f.jsx(pc,{app:e,size:"40"}),f.jsx(sp,{level:"h1",headingStyle:"h3",className:"d-none d-md-flex",children:r(e==null?void 0:e.displayName)})]})})})});x0.displayName="Breadcrumb";const A3=x0,S0=x.forwardRef(({icon:e=f.jsx(k3,{}),onClick:t,...n},r)=>{const s=H("btn-search");return f.jsx(Qa,{ref:r,className:s,icon:e,...n,onClick:t})});S0.displayName="SearchButton";const b0=S0,L3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M19.935 17.51c.725 0 1.348.264 1.868.792.52.529.78 1.162.78 1.898 0 .737-.26 1.37-.78 1.898-.52.529-1.135.793-1.844.793-.71 0-1.333-.264-1.869-.793a2.52 2.52 0 0 1-.78-1.922c0-.288.063-.6.19-.936l-3.997-2.931c-.773.8-1.703 1.2-2.79 1.2-1.089 0-2.019-.392-2.791-1.176-.773-.785-1.167-1.738-1.183-2.86 0-.143.024-.352.071-.624l-3.168-1.057a1.248 1.248 0 0 1-.852.337c-.378 0-.693-.129-.946-.385a1.315 1.315 0 0 1-.378-.96c0-.385.126-.698.378-.938.253-.24.568-.368.946-.384.316 0 .584.104.804.312.221.208.37.457.45.745l3.192 1.08a3.798 3.798 0 0 1 1.443-1.56 3.839 3.839 0 0 1 2.033-.577c.82 0 1.577.248 2.27.745l4.706-4.781c-.252-.48-.378-.921-.378-1.321 0-.737.26-1.37.78-1.898.52-.529 1.143-.793 1.869-.793.725 0 1.34.264 1.844.793.505.528.765 1.16.78 1.898a2.417 2.417 0 0 1-.78 1.873c-.536.513-1.159.777-1.868.793-.41 0-.844-.136-1.3-.408l-4.707 4.804c.49.705.733 1.474.733 2.307 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624Z"})]}),M3=L3,D3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M22.995 13.153c0 1.393-.29 2.722-.872 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.152c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589ZM13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201Z"})]}),ip=D3,F3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M20.584 13.536v7.458c0 .28-.098.512-.294.699a1.062 1.062 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.848.848 0 0 1-.668-.307 1.162 1.162 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375c.018.018.027.055.027.111Zm3.31-1.09-.908 1.146a.543.543 0 0 1-.32.168h-.054a.59.59 0 0 1-.32-.084L11.989 4.682 1.687 13.676a.505.505 0 0 1-.347.084.544.544 0 0 1-.32-.168l-.935-1.145a.524.524 0 0 1-.08-.363.589.589 0 0 1 .16-.335l10.703-9.33c.32-.28.694-.419 1.121-.419.427 0 .81.14 1.148.419l3.63 3.156V2.56c0-.15.044-.27.133-.363a.458.458 0 0 1 .347-.14h2.856c.143 0 .258.046.347.14a.504.504 0 0 1 .134.363v6.34l3.256 2.85c.107.074.16.186.16.335 0 .149-.036.27-.107.363Z"})]}),$3=F3,z3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216Zm7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216Zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216ZM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24Z"})]}),op=z3,U3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12ZM7.123 7.667C8.276 5.958 9.745 5 12.013 5 14.425 5 17 6.941 17 9.5c0 2.113-1.377 2.932-2.418 3.552-.633.376-1.142.68-1.142 1.154v.169a.693.693 0 0 1-.682.703h-2.06a.693.693 0 0 1-.681-.703v-.287c0-1.768 1.269-2.5 2.266-3.075l.073-.042c.863-.499 1.392-.838 1.392-1.499 0-.874-1.082-1.454-1.956-1.454-1.112 0-1.64.53-2.351 1.449a.668.668 0 0 1-.945.121L7.27 8.63a.718.718 0 0 1-.147-.963ZM9.76 17.97c0-1.12.883-2.03 1.969-2.03 1.085 0 1.968.91 1.968 2.03 0 1.119-.883 2.029-1.968 2.029-1.086 0-1.969-.91-1.969-2.03Z",clipRule:"evenodd"})]}),B3=U3,V3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"m.5 21.257 7.46-8.216 4.052 2.403 4.052-2.403 7.46 8.216H.5Zm0-2.738V8.573l5.848 3.531L.5 18.52Zm0-12.084V3.048h23.023v3.387l-11.511 6.847L.5 6.435Zm17.176 5.67 5.848-3.532v9.946l-5.848-6.415Z"})]}),ap=V3,H3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M13.07 13.07V6.54h-2.14v6.53h2.14zm0 4.4v-2.2h-2.14v2.2h2.14zM24 12l-2.65 3.01.35 4.04-3.93.86-2.04 3.48L12 21.8l-3.73 1.6-2.04-3.42-3.93-.92.35-4.04L0 12l2.65-3.06-.35-3.99 3.93-.86L8.27.6 12 2.2 15.73.6l2.04 3.48 3.93.86L21.34 9z"})]}),q3=H3,Q3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M11.684 2C8.66 2 6.702 3.277 5.165 5.556A.958.958 0 0 0 5.36 6.84l1.634 1.278a.89.89 0 0 0 1.26-.162c.95-1.226 1.653-1.932 3.136-1.932 1.165 0 2.607.773 2.607 1.939 0 .88-.705 1.333-1.856 1.998-1.342.776-3.118 1.742-3.118 4.157v.382c0 .518.407.938.909.938h2.746c.502 0 .91-.42.91-.938v-.226c0-1.674 4.745-1.743 4.745-6.274 0-3.412-3.432-6-6.648-6Zm-.38 14.588c-1.446 0-2.624 1.214-2.624 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706Z"})]}),K3=Q3,W3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.051 12.366a455.802 455.802 0 0 1-2.746-1.822A6.543 6.543 0 0 1 .74 9.067C.248 8.44.002 7.859.002 7.322a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752C.935 5.222 1.462 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6.424.4.636.882.636 1.446 0 .673-.218 1.317-.657 1.93a6.217 6.217 0 0 1-1.632 1.567c-3.358 2.226-5.447 3.61-6.267 4.156l-.242.167-.323.222a15.448 15.448 0 0 1-1.42.902 4.052 4.052 0 0 1-.77.345 2.215 2.215 0 0 1-.67.115h-.026a2.222 2.222 0 0 1-.67-.116 4.052 4.052 0 0 1-.77-.344c-.272-.154-.506-.29-.697-.415a30.199 30.199 0 0 1-.723-.487c-.288-.2-.477-.33-.565-.389-.81-.545-1.98-1.323-3.51-2.334Zm10.943 3.962c1.517-1.052 3.74-2.524 6.667-4.416.478-.306.927-.68 1.339-1.113v10.16c0 .564-.209 1.044-.63 1.446-.437.405-.97.614-1.512.594H2.149c-.545.02-1.08-.192-1.52-.601C.21 21.995 0 21.52 0 20.95V10.8c.416.437.871.81 1.356 1.113 3.232 2.099 5.45 3.571 6.656 4.416.512.358.926.637 1.243.837a7.7 7.7 0 0 0 1.265.614c.475.198.97.303 1.47.313h.026c.5-.01.995-.115 1.47-.313a7.647 7.647 0 0 0 1.265-.614c.32-.2.735-.479 1.243-.837Z",clipRule:"evenodd"})]}),Z3=W3,G3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{clipPath:"url(#one-profile_svg__a)",children:f.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51Zm0 16.64a9.27 9.27 0 0 1-7.09-3.3 5.4 5.4 0 0 1 4.77-2.9c.11 0 .23.03.34.06.63.2 1.29.33 1.98.33.7 0 1.35-.13 1.98-.33.11-.03.23-.05.34-.05a5.4 5.4 0 0 1 4.77 2.89 9.27 9.27 0 0 1-7.09 3.3Z"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"one-profile_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),X3=G3,Y3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M1.27 11.552a7.745 7.745 0 0 1 0-4.156c.38-1.377 1.095-2.579 2.149-3.604a7.928 7.928 0 0 1 2.716-1.777c1.02-.4 2.074-.6 3.161-.6 1.07 0 2.115.2 3.136.6 1.02.4 1.926.993 2.716 1.777a7.904 7.904 0 0 1 1.902 2.86 7.812 7.812 0 0 1 .518 3.29 7.647 7.647 0 0 1-.889 3.171c.461.129.865.36 1.21.697l4.297 4.156c.576.56.864 1.241.864 2.042 0 .801-.288 1.482-.864 2.042-.576.56-1.276.841-2.099.841-.823 0-1.523-.28-2.099-.84l-4.272-4.18a2.423 2.423 0 0 1-.74-1.178 8.302 8.302 0 0 1-3.68.84c-1.087 0-2.14-.2-3.16-.6a8.102 8.102 0 0 1-2.717-1.753 7.854 7.854 0 0 1-2.149-3.628Zm2.495-2.066c0 1.49.535 2.755 1.605 3.796 1.086 1.04 2.395 1.561 3.926 1.561 1.515 0 2.807-.52 3.877-1.561 1.07-1.041 1.613-2.307 1.63-3.796.016-1.49-.527-2.755-1.63-3.796-1.087-1.057-2.379-1.585-3.877-1.585-1.515 0-2.823.528-3.926 1.585C4.3 6.731 3.765 7.996 3.765 9.486Z"})]}),J3=Y3,e5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z"})]}),t5=e5,E0=x.forwardRef(({label:e,disabled:t=!1,checked:n=!1,indeterminate:r=!1,...s},i)=>{const o=x.useRef(null);x.useImperativeHandle(i,()=>({...o.current})),x.useEffect(()=>{o.current.indeterminate=r},[o,r]);const a=x.useId(),l={type:"checkbox",checked:n,disabled:t,ref:o,className:H(s.className,"form-check-input c-pointer"),id:a},u={...s,...l};return f.jsxs("div",{className:"form-check d-flex align-items-center gap-8",children:[f.jsx("input",{...u}),e&&f.jsx("label",{className:"form-check-label",htmlFor:u.id,children:e})]})});E0.displayName="Checkbox";const n5=E0,C0=x.createContext(null),Ni=()=>{const e=x.useContext(C0);if(!e)throw new Error("Cannot be rendered outside the Dropdown Component");return e},R0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Ni(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),c=n.includes(t),d={value:t,model:n,checked:c,readOnly:!0},h=H("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:m=>i.current[u]=m,role:"menuitemcheckbox","aria-checked":c,onMouseUp:()=>r(t),onKeyDown:m=>a(m,()=>r(t)),onMouseEnter:l,tabIndex:t===n?0:-1,className:h,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,f.jsx(n5,{...d})]})})};R0.displayName="Dropdown.CheckboxItem";const r5=R0,k0=({icon:e,onClick:t,children:n,...r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Ni(),{onMenuItemClick:a,onMenuItemKeyDown:l,onMenuItemMouseEnter:u}=s,c=()=>{a(),t==null||t()},d=x.useId(),h=H("dropdown-item",{focus:o===d});return f.jsx("div",{id:d,role:"menuitem",ref:m=>i.current[d]=m,tabIndex:o===d?0:-1,className:h,"aria-current":o===d,onClick:c,onMouseEnter:u,onKeyDown:m=>l(m,t),...r,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center",children:[e,n]})})};k0.displayName="Dropdown.Item";const s5=k0,P0=x.forwardRef(({children:e},t)=>{const{menuProps:n,visible:r}=Ni();return r?f.jsx("div",{ref:t,...n,children:e}):null});P0.displayName="Dropdown.Menu";const i5=P0,O0=x.forwardRef(({label:e,children:t},n)=>f.jsxs("div",{ref:n,role:"group",children:[f.jsx("span",{className:"small px-4",children:f.jsx("strong",{children:e})}),t]}));O0.displayName="Dropdown.MenuGroup";const o5=O0,N0=x.forwardRef(({model:e,icon:t,label:n=!1,disabled:r=!1,checked:s,...i},o)=>{const a=x.useId(),l={type:"radio",checked:s,disabled:r,ref:o,className:H(i.className,"form-check-input c-pointer",t&&"d-none"),id:a},u={...i,...l};return f.jsxs("div",{className:H("form-check d-flex align-items-center gap-8",t&&"ps-0"),children:[f.jsx("input",{...u}),t&&f.jsx("label",{htmlFor:u.id,className:H("c-pointer",e!==i.value&&"text-muted"),children:t}),!t&&n&&f.jsx("label",{className:"form-check-label",htmlFor:u.id,children:n})]})});N0.displayName="Radio";const a5=N0,j0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Ni(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),d={value:t,model:n,checked:t===n,readOnly:!0},h=H("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:m=>i.current[u]=m,role:"menuitemradio","aria-checked":t===n,onMouseUp:()=>r(t),onKeyDown:m=>a(m,()=>r(t)),onMouseEnter:l,tabIndex:t===n?0:-1,className:h,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,f.jsx(a5,{...d,className:"position-absolute start-0 end-0 top-0 bottom-0 opacity-0"})]})})};j0.displayName="Dropdown.RadioItem";const l5=j0,T0=()=>f.jsx("div",{role:"separator",className:"px-4 my-4",children:f.jsx("hr",{className:"m-0"})});T0.displayName="Dropdown.Separator";const u5=T0,_0=x.forwardRef(({label:e,icon:t,variant:n,disabled:r=!1,size:s,badgeContent:i},o)=>{const{triggerProps:a,block:l}=Ni(),{className:u,...c}=a,d=H(s,n,{"w-100":l},u);return f.jsxs("button",{ref:o,className:d,disabled:r,...c,children:[t||null,e,i?f.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:i}):f.jsx(E3,{width:16,height:16,className:"dropdown-toggle-caret"})]})});_0.displayName="Dropdown.Trigger";const c5=_0;function In(e){return I0(e)?(e.nodeName||"").toLowerCase():"#document"}function Je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function on(e){var t;return(t=(I0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function I0(e){return e instanceof Node||e instanceof Je(e).Node}function Xe(e){return e instanceof Element||e instanceof Je(e).Element}function zt(e){return e instanceof HTMLElement||e instanceof Je(e).HTMLElement}function lp(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Je(e).ShadowRoot}function ji(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function d5(e){return["table","td","th"].includes(In(e))}function Ad(e){const t=Ld(),n=mt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function f5(e){let t=Qr(e);for(;zt(t)&&!Ka(t);){if(Ad(t))return t;t=Qr(t)}return null}function Ld(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ka(e){return["html","body","#document"].includes(In(e))}function mt(e){return Je(e).getComputedStyle(e)}function Wa(e){return Xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Qr(e){if(In(e)==="html")return e;const t=e.assignedSlot||e.parentNode||lp(e)&&e.host||on(e);return lp(t)?t.host:t}function A0(e){const t=Qr(e);return Ka(t)?e.ownerDocument?e.ownerDocument.body:e.body:zt(t)&&ji(t)?t:A0(t)}function ui(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=A0(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Je(s);return i?t.concat(o,o.visualViewport||[],ji(s)?s:[],o.frameElement&&n?ui(o.frameElement):[]):t.concat(s,ui(s,[],n))}const mc=Math.min,Ar=Math.max,pa=Math.round,so=Math.floor,An=e=>({x:e,y:e}),h5={left:"right",right:"left",bottom:"top",top:"bottom"},p5={start:"end",end:"start"};function Md(e,t){return typeof e=="function"?e(t):e}function Kr(e){return e.split("-")[0]}function Za(e){return e.split("-")[1]}function m5(e){return e==="x"?"y":"x"}function L0(e){return e==="y"?"height":"width"}function Dd(e){return["top","bottom"].includes(Kr(e))?"y":"x"}function M0(e){return m5(Dd(e))}function g5(e,t,n){n===void 0&&(n=!1);const r=Za(e),s=M0(e),i=L0(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=ma(o)),[o,ma(o)]}function v5(e){const t=ma(e);return[gc(e),t,gc(t)]}function gc(e){return e.replace(/start|end/g,t=>p5[t])}function y5(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function w5(e,t,n,r){const s=Za(e);let i=y5(Kr(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(gc)))),i}function ma(e){return e.replace(/left|right|bottom|top/g,t=>h5[t])}function x5(e){return{top:0,right:0,bottom:0,left:0,...e}}function S5(e){return typeof e!="number"?x5(e):{top:e,right:e,bottom:e,left:e}}function ga(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function up(e,t,n){let{reference:r,floating:s}=e;const i=Dd(t),o=M0(t),a=L0(o),l=Kr(t),u=i==="y",c=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let m;switch(l){case"top":m={x:c,y:r.y-s.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-s.width,y:d};break;default:m={x:r.x,y:r.y}}switch(Za(t)){case"start":m[o]-=h*(n&&u?-1:1);break;case"end":m[o]+=h*(n&&u?-1:1);break}return m}const b5=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:d}=up(u,r,l),h=r,m={},p=0;for(let y=0;y<a.length;y++){const{name:S,fn:g}=a[y],{x:v,y:w,data:b,reset:C}=await g({x:c,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:m,rects:u,platform:o,elements:{reference:e,floating:t}});if(c=v??c,d=w??d,m={...m,[S]:{...m[S],...b}},C&&p<=50){p++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:c,y:d}=up(u,h,l)),y=-1;continue}}return{x:c,y:d,placement:h,strategy:s,middlewareData:m}};async function E5(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=Md(t,e),p=S5(m),S=a[h?d==="floating"?"reference":"floating":d],g=ga(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(S)))==null||n?S:S.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="floating"?{...o.floating,x:r,y:s}:o.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},C=ga(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:w,strategy:l}):v);return{top:(g.top-C.top+p.top)/b.y,bottom:(C.bottom-g.bottom+p.bottom)/b.y,left:(g.left-C.left+p.left)/b.x,right:(C.right-g.right+p.right)/b.x}}const C5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...S}=Md(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=Kr(s),v=Kr(a)===a,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=h||(v||!y?[ma(a)]:v5(a));!h&&p!=="none"&&b.push(...w5(a,y,p,w));const C=[a,...b],k=await E5(t,S),R=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&R.push(k[g]),d){const D=g5(s,o,w);R.push(k[D[0]],k[D[1]])}if(P=[...P,{placement:s,overflows:R}],!R.every(D=>D<=0)){var L,M;const D=(((L=i.flip)==null?void 0:L.index)||0)+1,U=C[D];if(U)return{data:{index:D,overflows:P},reset:{placement:U}};let E=(M=P.filter(O=>O.overflows[0]<=0).sort((O,A)=>O.overflows[1]-A.overflows[1])[0])==null?void 0:M.placement;if(!E)switch(m){case"bestFit":{var T;const O=(T=P.map(A=>[A.placement,A.overflows.filter($=>$>0).reduce(($,N)=>$+N,0)]).sort((A,$)=>A[1]-$[1])[0])==null?void 0:T[0];O&&(E=O);break}case"initialPlacement":E=a;break}if(s!==E)return{reset:{placement:E}}}return{}}}};async function R5(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Kr(n),a=Za(n),l=Dd(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,d=Md(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof p=="number"&&(m=a==="end"?p*-1:p),l?{x:m*c,y:h*u}:{x:h*u,y:m*c}}const k5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,s=await R5(t,e);return{x:n+s.x,y:r+s.y,data:s}}}};function D0(e){const t=mt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=zt(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=pa(n)!==i||pa(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function Fd(e){return Xe(e)?e:e.contextElement}function Lr(e){const t=Fd(e);if(!zt(t))return An(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=D0(t);let o=(i?pa(n.width):n.width)/r,a=(i?pa(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const P5=An(0);function F0(e){const t=Je(e);return!Ld()||!t.visualViewport?P5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function O5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Je(e)?!1:t}function rr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=Fd(e);let o=An(1);t&&(r?Xe(r)&&(o=Lr(r)):o=Lr(e));const a=O5(i,n,r)?F0(i):An(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,c=s.width/o.x,d=s.height/o.y;if(i){const h=Je(i),m=r&&Xe(r)?Je(r):r;let p=h.frameElement;for(;p&&r&&m!==h;){const y=Lr(p),S=p.getBoundingClientRect(),g=mt(p),v=S.left+(p.clientLeft+parseFloat(g.paddingLeft))*y.x,w=S.top+(p.clientTop+parseFloat(g.paddingTop))*y.y;l*=y.x,u*=y.y,c*=y.x,d*=y.y,l+=v,u+=w,p=Je(p).frameElement}}return ga({width:c,height:d,x:l,y:u})}function N5(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=zt(n),i=on(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},a=An(1);const l=An(0);if((s||!s&&r!=="fixed")&&((In(n)!=="body"||ji(i))&&(o=Wa(n)),zt(n))){const u=rr(n);a=Lr(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-o.scrollLeft*a.x+l.x,y:t.y*a.y-o.scrollTop*a.y+l.y}}function j5(e){return Array.from(e.getClientRects())}function $0(e){return rr(on(e)).left+Wa(e).scrollLeft}function T5(e){const t=on(e),n=Wa(e),r=e.ownerDocument.body,s=Ar(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ar(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+$0(e);const a=-n.scrollTop;return mt(r).direction==="rtl"&&(o+=Ar(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function _5(e,t){const n=Je(e),r=on(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=Ld();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function I5(e,t){const n=rr(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=zt(e)?Lr(e):An(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function cp(e,t,n){let r;if(t==="viewport")r=_5(e,n);else if(t==="document")r=T5(on(e));else if(Xe(t))r=I5(t,n);else{const s=F0(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return ga(r)}function z0(e,t){const n=Qr(e);return n===t||!Xe(n)||Ka(n)?!1:mt(n).position==="fixed"||z0(n,t)}function A5(e,t){const n=t.get(e);if(n)return n;let r=ui(e,[],!1).filter(a=>Xe(a)&&In(a)!=="body"),s=null;const i=mt(e).position==="fixed";let o=i?Qr(e):e;for(;Xe(o)&&!Ka(o);){const a=mt(o),l=Ad(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||ji(o)&&!l&&z0(e,o))?r=r.filter(c=>c!==o):s=a,o=Qr(o)}return t.set(e,r),r}function L5(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?A5(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,c)=>{const d=cp(t,c,s);return u.top=Ar(d.top,u.top),u.right=mc(d.right,u.right),u.bottom=mc(d.bottom,u.bottom),u.left=Ar(d.left,u.left),u},cp(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function M5(e){return D0(e)}function D5(e,t,n){const r=zt(t),s=on(t),i=n==="fixed",o=rr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=An(0);if(r||!r&&!i)if((In(t)!=="body"||ji(s))&&(a=Wa(t)),r){const u=rr(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else s&&(l.x=$0(s));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function dp(e,t){return!zt(e)||mt(e).position==="fixed"?null:t?t(e):e.offsetParent}function U0(e,t){const n=Je(e);if(!zt(e))return n;let r=dp(e,t);for(;r&&d5(r)&&mt(r).position==="static";)r=dp(r,t);return r&&(In(r)==="html"||In(r)==="body"&&mt(r).position==="static"&&!Ad(r))?n:r||f5(e)||n}const F5=async function(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||U0,i=this.getDimensions;return{reference:D5(t,await s(n),r),floating:{x:0,y:0,...await i(n)}}};function $5(e){return mt(e).direction==="rtl"}const z5={convertOffsetParentRelativeRectToViewportRelativeRect:N5,getDocumentElement:on,getClippingRect:L5,getOffsetParent:U0,getElementRects:F5,getClientRects:j5,getDimensions:M5,getScale:Lr,isElement:Xe,isRTL:$5};function U5(e,t){let n=null,r;const s=on(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:c,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const m=so(c),p=so(s.clientWidth-(u+d)),y=so(s.clientHeight-(c+h)),S=so(u),v={rootMargin:-m+"px "+-p+"px "+-y+"px "+-S+"px",threshold:Ar(0,mc(1,l))||1};let w=!0;function b(C){const k=C[0].intersectionRatio;if(k!==l){if(!w)return o();k?o(!1,k):r=setTimeout(()=>{o(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(b,{...v,root:s.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),i}function B5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Fd(e),c=s||i?[...u?ui(u):[],...ui(t)]:[];c.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const d=u&&a?U5(u,n):null;let h=-1,m=null;o&&(m=new ResizeObserver(g=>{let[v]=g;v&&v.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{m&&m.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let p,y=l?rr(e):null;l&&S();function S(){const g=rr(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&n(),y=g,p=requestAnimationFrame(S)}return n(),()=>{c.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),d&&d(),m&&m.disconnect(),m=null,l&&cancelAnimationFrame(p)}}const V5=(e,t,n)=>{const r=new Map,s={platform:z5,...n},i={...s.platform,_c:r};return b5(e,t,{...s,platform:i})};var No=typeof document<"u"?x.useLayoutEffect:x.useEffect;function va(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!va(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!va(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function B0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fp(e,t){const n=B0(e);return Math.round(t*n)/n}function hp(e){const t=x.useRef(e);return No(()=>{t.current=e}),t}function H5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=x.useState(r);va(h,r)||m(r);const[p,y]=x.useState(null),[S,g]=x.useState(null),v=x.useCallback(A=>{A!=k.current&&(k.current=A,y(A))},[y]),w=x.useCallback(A=>{A!==R.current&&(R.current=A,g(A))},[g]),b=i||p,C=o||S,k=x.useRef(null),R=x.useRef(null),P=x.useRef(c),L=hp(l),M=hp(s),T=x.useCallback(()=>{if(!k.current||!R.current)return;const A={placement:t,strategy:n,middleware:h};M.current&&(A.platform=M.current),V5(k.current,R.current,A).then($=>{const N={...$,isPositioned:!0};D.current&&!va(P.current,N)&&(P.current=N,Pi.flushSync(()=>{d(N)}))})},[h,t,n,M]);No(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[u]);const D=x.useRef(!1);No(()=>(D.current=!0,()=>{D.current=!1}),[]),No(()=>{if(b&&(k.current=b),C&&(R.current=C),b&&C){if(L.current)return L.current(b,C,T);T()}},[b,C,T,L]);const U=x.useMemo(()=>({reference:k,floating:R,setReference:v,setFloating:w}),[v,w]),E=x.useMemo(()=>({reference:b,floating:C}),[b,C]),O=x.useMemo(()=>{const A={position:n,left:0,top:0};if(!E.floating)return A;const $=fp(E.floating,c.x),N=fp(E.floating,c.y);return a?{...A,transform:"translate("+$+"px, "+N+"px)",...B0(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:N}},[n,a,E.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:T,refs:U,elements:E,floatingStyles:O}),[c,T,U,E,O])}var V0=typeof document<"u"?x.useLayoutEffect:x.useEffect;let Ql=!1,q5=0;const pp=()=>"floating-ui-"+q5++;function Q5(){const[e,t]=x.useState(()=>Ql?pp():void 0);return V0(()=>{e==null&&t(pp())},[]),x.useEffect(()=>{Ql||(Ql=!0)},[]),e}const K5=mm["useId".toString()],W5=K5||Q5;function Z5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(s=>s(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(s=>s!==n))||[])}}}const G5=x.createContext(null),X5=()=>x.useContext(G5),Y5=mm["useInsertionEffect".toString()],J5=Y5||(e=>e());function eb(e){const t=x.useRef(()=>{});return J5(()=>{t.current=e}),x.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}function tb(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:s}=e,[i,o]=x.useState(null),a=((t=e.elements)==null?void 0:t.reference)||i,l=H5(e),u=X5(),c=eb((b,C)=>{b&&(h.current.openEvent=C),r==null||r(b,C)}),d=x.useRef(null),h=x.useRef({}),m=x.useState(()=>Z5())[0],p=W5(),y=x.useCallback(b=>{const C=Xe(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;l.refs.setReference(C)},[l.refs]),S=x.useCallback(b=>{(Xe(b)||b===null)&&(d.current=b,o(b)),(Xe(l.refs.reference.current)||l.refs.reference.current===null||b!==null&&!Xe(b))&&l.refs.setReference(b)},[l.refs]),g=x.useMemo(()=>({...l.refs,setReference:S,setPositionReference:y,domReference:d}),[l.refs,S,y]),v=x.useMemo(()=>({...l.elements,domReference:a}),[l.elements,a]),w=x.useMemo(()=>({...l,refs:g,elements:v,dataRef:h,nodeId:s,floatingId:p,events:m,open:n,onOpenChange:c}),[l,s,p,m,n,c,g,v]);return V0(()=>{const b=u==null?void 0:u.nodesRef.current.find(C=>C.id===s);b&&(b.context=w)}),x.useMemo(()=>({...l,context:w,refs:g,elements:v}),[l,g,v,w])}const nb=e=>{const t=x.useId(),[n,r]=x.useState(!1),[s,i]=x.useState(-1),[o,a]=x.useState(null),{refs:l,floatingStyles:u}=tb({placement:e,open:n,onOpenChange:r,whileElementsMounted:B5,middleware:[k5(4),C5({padding:0})]}),c=x.useRef(null),d=x.useRef(null),h=x.useRef({});x.useEffect(()=>{n?c.current&&(c.current.focus(),i(0)):(i(-1),h.current={})},[n]),x.useEffect(()=>{if(s!==-1){const T=Object.values(h.current)[s],D=T.getAttribute("id");a(D),T.focus()}},[s]);const m=()=>{const D=Object.values(h.current).length;i(U=>(U+1)%D)},p=()=>{const D=Object.values(h.current).length;i(U=>(U-1+D)%D)},y=()=>{i(0)},S=()=>{const D=Object.values(h.current).length;i(D-1)},g=x.useCallback(()=>{r(!0)},[]),v=x.useCallback(()=>{d.current&&(d.current.focus(),r(!1))},[]),w=(T,D)=>{T&&(D.stopPropagation(),D.preventDefault())},b=x.useCallback(T=>{let D=!1;switch(T.code){case" ":case"Space":case"Enter":case"ArrowDown":case"Down":g(),D=!0;break;case"Esc":case"Escape":v(),D=!0;break;case"Up":case"ArrowUp":g(),D=!0;break}w(D,T)},[v,g]),C=T=>{const U=Object.values(h.current).findIndex(E=>E.id===T.currentTarget.getAttribute("id"));i(U)},k=x.useCallback((T,D)=>{T.preventDefault();let U=!1;if(T.shiftKey)T.key==="Tab"&&(v(),U=!0);else{switch(T.code){case" ":case"Space":case"Enter":s!==-1&&(Object.values(h.current)[s].getAttribute("role")==="menuitem"&&d.current&&(d.current.focus(),r(!1)),D==null||D()),U=!0;break;case"ArrowDown":case"Down":m(),U=!0;break;case"ArrowUp":case"Up":p(),U=!0;break;case"Home":y(),U=!0;break;case"End":S(),U=!0;break}w(U,T)}},[s,v]),R=x.useCallback(T=>{r(n!==!0),T.stopPropagation(),T.preventDefault()},[n]),P=x.useCallback(()=>{v()},[v]);function L(T,...D){D.forEach(U=>{typeof U=="function"?U(T):U!=null&&(U.current=T)})}function M(...T){return D=>{L(D,...T)}}return{isFocused:o,visible:n,itemRefs:h,triggerRef:d,menuRef:c,triggerProps:{ref:M(d,l.setReference),id:`dropdown-toggle-${t}`,"aria-haspopup":"menu","aria-controls":`dropdown-${t}`,"aria-expanded":!!n,className:`dropdown-toggle ${n?"selected":""}`,onClick:R,onKeyDown:b},menuProps:{ref:M(c,l.setFloating),className:"dropdown-menu bg-white shadow rounded-4 p-8","aria-labelledby":`dropdown-toggle-${t}`,"aria-activedescendant":o,style:{...u}},itemProps:{onMenuItemMouseEnter:C,onMenuItemClick:P,onMenuItemKeyDown:k},setVisible:r}},rb=nb,H0=({children:e,block:t,overflow:n=!0,placement:r="bottom-start"})=>{const{visible:s,isFocused:i,triggerProps:o,menuProps:a,itemProps:l,itemRefs:u,setVisible:c}=rb(r),d=t0(()=>c(!1)),h=x.useMemo(()=>({visible:s,isFocused:i,triggerProps:o,menuProps:a,itemProps:l,itemRefs:u,block:t}),[s,i,o,a,l,u,t]),m=H("dropdown",{"w-100":t,overflow:n});return f.jsx(C0.Provider,{value:h,children:f.jsx("div",{ref:d,className:m,children:typeof e=="function"?e(o,u):e})})};H0.displayName="Dropdown";const sb=Object.assign(H0,{Trigger:c5,Menu:i5,Item:s5,Separator:u5,CheckboxItem:r5,RadioItem:l5,MenuGroup:o5}),fr=sb,q0=x.createContext(null),$d=()=>{const e=x.useContext(q0);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},Q0=({children:e})=>{const{status:t}=$d(),n=H("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return f.jsx("p",{className:n,children:f.jsx("em",{children:e})})};Q0.displayName="Text";const ib=Q0,K0=x.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:s},i)=>{const{id:o,isOptional:a,isRequired:l}=$d(),u=H("form-label",{"has-icon":e},s),c=a&&!l,d=l&&!a;return x.useEffect(()=>{if(a&&l)throw new Error("Cannot be optional and required at the same time")},[a,l]),f.jsxs("label",{ref:i,htmlFor:o,className:u,children:[e,r,c&&f.jsxs("em",{className:"optional",children:["- ",t]}),d&&f.jsx("em",{className:"required",children:n})]})});K0.displayName="Label";const ob=K0,W0=x.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:s,...i},o)=>{const{id:a,isRequired:l,isReadOnly:u,status:c}=$d(),d=H({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","is-invalid":c==="invalid","is-valid":c==="valid","form-control-plaintext":u,"no-validation-icon":e},s);return f.jsx("input",{ref:o,id:a,className:d,type:r,placeholder:t,required:l,readOnly:u,...i})});W0.displayName="Input";const Z0=W0,G0=x.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:s,isRequired:i,status:o,...a},l)=>{const u=x.useMemo(()=>({id:n,isOptional:r,isRequired:i,isReadOnly:s,status:o}),[n,r,s,i,o]);return f.jsx(q0.Provider,{value:u,children:f.jsx("div",{ref:l,className:t,...a,children:e})})}),ab=Object.assign(G0,{Label:ob,Input:Z0,Text:ib});G0.displayName="FormControl";const vc=ab,Ms=({children:e,className:t,...n})=>{const r=H("grid",t);return f.jsx("div",{className:r,...n,children:e})},X0=({sm:e,md:t,lg:n,xl:r,children:s,className:i,as:o,...a})=>{const l=o||"div",u=H({[`g-col-${e}`]:e,[t?`g-col-md-${t}`:""]:t,[n?`g-col-lg-${n}`:""]:n,[r?`g-col-xl-${r}`:""]:r},i);return f.jsx(l,{className:u,...a,children:s})};Ms.displayName="Grid";X0.displayName="Grid.Col";Ms.Col=X0;const Y0=x.forwardRef(({position:e=!0},t)=>{const[n]=Ha(),r=`${n}/loading/screen-loading.gif`,s=H("loading-screen top-0 end-0 start-0 bottom-0 d-grid justify-content-center align-items-center z-2000",{"position-fixed":!e,"position-static":e});return f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:t,className:s,children:f.jsx("div",{className:"bg-white rounded-circle mx-auto",children:f.jsx("img",{src:r,alt:"loading"})})}),!e&&f.jsx("div",{className:"modal-backdrop fade show"})]})});Y0.displayName="LoadingScreen";const ze=Y0,J0=x.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const s=H("navbar-brand d-none d-md-block"),i=`logo ${t?"ONE":"NEO"}`;return f.jsx("a",{ref:r,className:s,href:"/timeline/timeline","aria-label":n,children:f.jsx("img",{className:"logo",src:e,alt:i,width:"300",height:"52"})})});J0.displayName="Logo";const mp=J0;var lb=Object.defineProperty,ub=(e,t)=>{for(var n in t)lb(e,n,{get:t[n],enumerable:!0})},Pt={};ub(Pt,{assign:()=>fb,colors:()=>jn,createStringInterpolator:()=>Qd,skipAnimation:()=>ov,to:()=>iv,willAdvance:()=>Kd});var zd=_i(),V=e=>Ti(e,zd),Ud=_i();V.write=e=>Ti(e,Ud);var Ga=_i();V.onStart=e=>Ti(e,Ga);var Bd=_i();V.onFrame=e=>Ti(e,Bd);var Vd=_i();V.onFinish=e=>Ti(e,Vd);var Mr=[];V.setTimeout=(e,t)=>{const n=V.now()+t,r=()=>{const i=Mr.findIndex(o=>o.cancel==r);~i&&Mr.splice(i,1),xn-=~i?1:0},s={time:n,handler:e,cancel:r};return Mr.splice(ev(n),0,s),xn+=1,tv(),s};var ev=e=>~(~Mr.findIndex(t=>t.time>e)||~Mr.length);V.cancel=e=>{Ga.delete(e),Bd.delete(e),Vd.delete(e),zd.delete(e),Ud.delete(e)};V.sync=e=>{yc=!0,V.batchedUpdates(e),yc=!1};V.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...s){t=s,V.onStart(n)}return r.handler=e,r.cancel=()=>{Ga.delete(n),t=null},r};var Hd=typeof window<"u"?window.requestAnimationFrame:()=>{};V.use=e=>Hd=e;V.now=typeof performance<"u"?()=>performance.now():Date.now;V.batchedUpdates=e=>e();V.catch=console.error;V.frameLoop="always";V.advance=()=>{V.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):rv()};var wn=-1,xn=0,yc=!1;function Ti(e,t){yc?(t.delete(e),e(0)):(t.add(e),tv())}function tv(){wn<0&&(wn=0,V.frameLoop!=="demand"&&Hd(nv))}function cb(){wn=-1}function nv(){~wn&&(Hd(nv),V.batchedUpdates(rv))}function rv(){const e=wn;wn=V.now();const t=ev(wn);if(t&&(sv(Mr.splice(0,t),n=>n.handler()),xn-=t),!xn){cb();return}Ga.flush(),zd.flush(e?Math.min(64,wn-e):16.667),Bd.flush(),Ud.flush(),Vd.flush()}function _i(){let e=new Set,t=e;return{add(n){xn+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return xn-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,xn-=t.size,sv(t,r=>r(n)&&e.add(r)),xn+=e.size,t=e)}}}function sv(e,t){e.forEach(n=>{try{t(n)}catch(r){V.catch(r)}})}function wc(){}var db=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),j={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Qt(e,t){if(j.arr(e)){if(!j.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var B=(e,t)=>e.forEach(t);function Ut(e,t,n){if(j.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var je=e=>j.und(e)?[]:j.arr(e)?e:[e];function Ds(e,t){if(e.size){const n=Array.from(e);e.clear(),B(n,t)}}var Es=(e,...t)=>Ds(e,n=>n(...t)),qd=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Qd,iv,jn=null,ov=!1,Kd=wc,fb=e=>{e.to&&(iv=e.to),e.now&&(V.now=e.now),e.colors!==void 0&&(jn=e.colors),e.skipAnimation!=null&&(ov=e.skipAnimation),e.createStringInterpolator&&(Qd=e.createStringInterpolator),e.requestAnimationFrame&&V.use(e.requestAnimationFrame),e.batchedUpdates&&(V.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Kd=e.willAdvance),e.frameLoop&&(V.frameLoop=e.frameLoop)},Fs=new Set,ct=[],Kl=[],ya=0,Xa={get idle(){return!Fs.size&&!ct.length},start(e){ya>e.priority?(Fs.add(e),V.onStart(hb)):(av(e),V(xc))},advance:xc,sort(e){if(ya)V.onFrame(()=>Xa.sort(e));else{const t=ct.indexOf(e);~t&&(ct.splice(t,1),lv(e))}},clear(){ct=[],Fs.clear()}};function hb(){Fs.forEach(av),Fs.clear(),V(xc)}function av(e){ct.includes(e)||lv(e)}function lv(e){ct.splice(pb(ct,t=>t.priority>e.priority),0,e)}function xc(e){const t=Kl;for(let n=0;n<ct.length;n++){const r=ct[n];ya=r.priority,r.idle||(Kd(r),r.advance(e),r.idle||t.push(r))}return ya=0,Kl=ct,Kl.length=0,ct=t,ct.length>0}function pb(e,t){const n=e.findIndex(t);return n<0?e.length:n}var mb=(e,t,n)=>Math.min(Math.max(n,e),t),gb={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Et="[-+]?\\d*\\.?\\d+",wa=Et+"%";function Ya(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var vb=new RegExp("rgb"+Ya(Et,Et,Et)),yb=new RegExp("rgba"+Ya(Et,Et,Et,Et)),wb=new RegExp("hsl"+Ya(Et,wa,wa)),xb=new RegExp("hsla"+Ya(Et,wa,wa,Et)),Sb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,bb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Eb=/^#([0-9a-fA-F]{6})$/,Cb=/^#([0-9a-fA-F]{8})$/;function Rb(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Eb.exec(e))?parseInt(t[1]+"ff",16)>>>0:jn&&jn[e]!==void 0?jn[e]:(t=vb.exec(e))?(hr(t[1])<<24|hr(t[2])<<16|hr(t[3])<<8|255)>>>0:(t=yb.exec(e))?(hr(t[1])<<24|hr(t[2])<<16|hr(t[3])<<8|yp(t[4]))>>>0:(t=Sb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Cb.exec(e))?parseInt(t[1],16)>>>0:(t=bb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=wb.exec(e))?(gp(vp(t[1]),io(t[2]),io(t[3]))|255)>>>0:(t=xb.exec(e))?(gp(vp(t[1]),io(t[2]),io(t[3]))|yp(t[4]))>>>0:null}function Wl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gp(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r,i=Wl(s,r,e+1/3),o=Wl(s,r,e),a=Wl(s,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(a*255)<<8}function hr(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function vp(e){return(parseFloat(e)%360+360)%360/360}function yp(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function io(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function wp(e){let t=Rb(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,s=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${s}, ${i})`}var ci=(e,t,n)=>{if(j.fun(e))return e;if(j.arr(e))return ci({range:e,output:t,extrapolate:n});if(j.str(e.output[0]))return Qd(e);const r=e,s=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=Pb(u,i);return kb(u,i[c],i[c+1],s[c],s[c+1],l,o,a,r.map)}};function kb(e,t,n,r,s,i,o,a,l){let u=l?l(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===s?r:t===n?e<=t?r:s:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:s===1/0?u=u+r:u=u*(s-r)+r,u)}function Pb(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var Ob=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,s=t==="end"?Math.floor(r):Math.ceil(r);return mb(0,1,s/e)},xa=1.70158,oo=xa*1.525,xp=xa+1,Sp=2*Math.PI/3,bp=2*Math.PI/4.5,ao=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Nb={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>xp*e*e*e-xa*e*e,easeOutBack:e=>1+xp*Math.pow(e-1,3)+xa*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((oo+1)*2*e-oo)/2:(Math.pow(2*e-2,2)*((oo+1)*(e*2-2)+oo)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Sp),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Sp)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*bp))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*bp)/2+1,easeInBounce:e=>1-ao(1-e),easeOutBounce:ao,easeInOutBounce:e=>e<.5?(1-ao(1-2*e))/2:(1+ao(2*e-1))/2,steps:Ob},di=Symbol.for("FluidValue.get"),Wr=Symbol.for("FluidValue.observers"),ut=e=>!!(e&&e[di]),De=e=>e&&e[di]?e[di]():e,Ep=e=>e[Wr]||null;function jb(e,t){e.eventObserved?e.eventObserved(t):e(t)}function fi(e,t){const n=e[Wr];n&&n.forEach(r=>{jb(r,t)})}var uv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Tb(this,e)}},Tb=(e,t)=>cv(e,di,t);function es(e,t){if(e[di]){let n=e[Wr];n||cv(e,Wr,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function hi(e,t){const n=e[Wr];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Wr]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var cv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),jo=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,_b=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Cp=new RegExp(`(${jo.source})(%|[a-z]+)`,"i"),Ib=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ja=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,dv=e=>{const[t,n]=Ab(e);if(!t||qd())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const s=window.getComputedStyle(document.documentElement).getPropertyValue(n);return s||e}else{if(n&&Ja.test(n))return dv(n);if(n)return n}return e},Ab=e=>{const t=Ja.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Zl,Lb=(e,t,n,r,s)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${s})`,fv=e=>{Zl||(Zl=jn?new RegExp(`(${Object.keys(jn).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>De(i).replace(Ja,dv).replace(_b,wp).replace(Zl,wp)),n=t.map(i=>i.match(jo).map(Number)),s=n[0].map((i,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(i=>ci({...e,output:i}));return i=>{var l;const o=!Cp.test(t[0])&&((l=t.find(u=>Cp.test(u)))==null?void 0:l.replace(jo,""));let a=0;return t[0].replace(jo,()=>`${s[a++](i)}${o||""}`).replace(Ib,Lb)}},Wd="react-spring: ",hv=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Wd}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Mb=hv(console.warn);function Db(){Mb(`${Wd}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Fb=hv(console.warn);function $b(){Fb(`${Wd}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function el(e){return j.str(e)&&(e[0]=="#"||/\d/.test(e)||!qd()&&Ja.test(e)||e in(jn||{}))}var Zn=qd()?x.useEffect:x.useLayoutEffect,zb=()=>{const e=x.useRef(!1);return Zn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Zd(){const e=x.useState()[1],t=zb();return()=>{t.current&&e(Math.random())}}function Ub(e,t){const[n]=x.useState(()=>({inputs:t,result:e()})),r=x.useRef(),s=r.current;let i=s;return i?t&&i.inputs&&Bb(t,i.inputs)||(i={inputs:t,result:e()}):i=n,x.useEffect(()=>{r.current=i,s==n&&(n.inputs=n.result=void 0)},[i]),i.result}function Bb(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Gd=e=>x.useEffect(e,Vb),Vb=[];function Sc(e){const t=x.useRef();return x.useEffect(()=>{t.current=e}),t.current}var pi=Symbol.for("Animated:node"),Hb=e=>!!e&&e[pi]===e,Lt=e=>e&&e[pi],Xd=(e,t)=>db(e,pi,t),tl=e=>e&&e[pi]&&e[pi].getPayload(),pv=class{constructor(){Xd(this,this)}getPayload(){return this.payload||[]}},Ii=class extends pv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,j.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Ii(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return j.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,j.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},mi=class extends Ii{constructor(e){super(0),this._string=null,this._toString=ci({output:[e,e]})}static create(e){return new mi(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(j.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=ci({output:[this.getValue(),e]})),this._value=0,super.reset()}},Sa={dependencies:null},nl=class extends pv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ut(this.source,(n,r)=>{Hb(n)?t[r]=n.getValue(e):ut(n)?t[r]=De(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&B(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Ut(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Sa.dependencies&&ut(e)&&Sa.dependencies.add(e);const t=tl(e);t&&B(t,n=>this.add(n))}},mv=class extends nl{constructor(e){super(e)}static create(e){return new mv(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(qb)),!0)}};function qb(e){return(el(e)?mi:Ii).create(e)}function bc(e){const t=Lt(e);return t?t.constructor:j.arr(e)?mv:el(e)?mi:Ii}var Rp=(e,t)=>{const n=!j.fun(e)||e.prototype&&e.prototype.isReactComponent;return x.forwardRef((r,s)=>{const i=x.useRef(null),o=n&&x.useCallback(p=>{i.current=Wb(s,p)},[s]),[a,l]=Kb(r,t),u=Zd(),c=()=>{const p=i.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,a.getValue(!0)):!1)===!1&&u()},d=new Qb(c,l),h=x.useRef();Zn(()=>(h.current=d,B(l,p=>es(p,d)),()=>{h.current&&(B(h.current.deps,p=>hi(p,h.current)),V.cancel(h.current.update))})),x.useEffect(c,[]),Gd(()=>()=>{const p=h.current;B(p.deps,y=>hi(y,p))});const m=t.getComponentProps(a.getValue());return x.createElement(e,{...m,ref:o})})},Qb=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&V.write(this.update)}};function Kb(e,t){const n=new Set;return Sa.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new nl(e),Sa.dependencies=null,[e,n]}function Wb(e,t){return e&&(j.fun(e)?e(t):e.current=t),t}var kp=Symbol.for("AnimatedComponent"),Zb=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=s=>new nl(s),getComponentProps:r=s=>s}={})=>{const s={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const a=Pp(o)||"Anonymous";return j.str(o)?o=i[o]||(i[o]=Rp(o,s)):o=o[kp]||(o[kp]=Rp(o,s)),o.displayName=`Animated(${a})`,o};return Ut(e,(o,a)=>{j.arr(e)&&(a=Pp(o)),i[a]=i(o)}),{animated:i}},Pp=e=>j.str(e)?e:e&&j.str(e.displayName)?e.displayName:j.fun(e)&&e.name||null;function Fe(e,...t){return j.fun(e)?e(...t):e}var $s=(e,t)=>e===!0||!!(t&&e&&(j.fun(e)?e(t):je(e).includes(t))),gv=(e,t)=>j.obj(e)?t&&e[t]:e,vv=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Gb=e=>e,rl=(e,t=Gb)=>{let n=Xb;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const s of n){const i=t(e[s],s);j.und(i)||(r[s]=i)}return r},Xb=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Yb={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Jb(e){const t={};let n=0;if(Ut(e,(r,s)=>{Yb[s]||(t[s]=r,n++)}),n)return t}function Yd(e){const t=Jb(e);if(t){const n={to:t};return Ut(e,(r,s)=>s in t||(n[s]=r)),n}return{...e}}function gi(e){return e=De(e),j.arr(e)?e.map(gi):el(e)?Pt.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function yv(e){for(const t in e)return!0;return!1}function Ec(e){return j.fun(e)||j.arr(e)&&j.obj(e[0])}function Cc(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function wv(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var eE={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Rc={...eE.default,mass:1,damping:1,easing:Nb.linear,clamp:!1},tE=class{constructor(){this.velocity=0,Object.assign(this,Rc)}};function nE(e,t,n){n&&(n={...n},Op(n,t),t={...n,...t}),Op(e,t),Object.assign(e,t);for(const o in Rc)e[o]==null&&(e[o]=Rc[o]);let{frequency:r,damping:s}=e;const{mass:i}=e;return j.und(r)||(r<.01&&(r=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*s*i/r),e}function Op(e,t){if(!j.und(t.decay))e.duration=void 0;else{const n=!j.und(t.tension)||!j.und(t.friction);(n||!j.und(t.frequency)||!j.und(t.damping)||!j.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Np=[],rE=class{constructor(){this.changed=!1,this.values=Np,this.toValues=null,this.fromValues=Np,this.config=new tE,this.immediate=!1}};function xv(e,{key:t,props:n,defaultProps:r,state:s,actions:i}){return new Promise((o,a)=>{let l,u,c=$s(n.cancel??(r==null?void 0:r.cancel),t);if(c)m();else{j.und(n.pause)||(s.paused=$s(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=s.paused||$s(p,t)),l=Fe(n.delay||0,t),p?(s.resumeQueue.add(h),i.pause()):(i.resume(),h())}function d(){s.resumeQueue.add(h),s.timeouts.delete(u),u.cancel(),l=u.time-V.now()}function h(){l>0&&!Pt.skipAnimation?(s.delayed=!0,u=V.setTimeout(m,l),s.pauseQueue.add(d),s.timeouts.add(u)):m()}function m(){s.delayed&&(s.delayed=!1),s.pauseQueue.delete(d),s.timeouts.delete(u),e<=(s.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},o)}catch(p){a(p)}}})}var Jd=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Dr(e.get()):t.every(n=>n.noop)?Sv(e.get()):bt(e.get(),t.every(n=>n.finished)),Sv=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),bt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Dr=e=>({value:e,cancelled:!0,finished:!1});function bv(e,t,n,r){const{callId:s,parentId:i,onRest:o}=t,{asyncTo:a,promise:l}=n;return!i&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=s,n.asyncTo=e;const u=rl(t,(S,g)=>g==="onRest"?void 0:S);let c,d;const h=new Promise((S,g)=>(c=S,d=g)),m=S=>{const g=s<=(n.cancelId||0)&&Dr(r)||s!==n.asyncId&&bt(r,!1);if(g)throw S.result=g,d(S),S},p=(S,g)=>{const v=new jp,w=new Tp;return(async()=>{if(Pt.skipAnimation)throw vi(n),w.result=bt(r,!1),d(w),w;m(v);const b=j.obj(S)?{...S}:{...g,to:S};b.parentId=s,Ut(u,(k,R)=>{j.und(b[R])&&(b[R]=k)});const C=await r.start(b);return m(v),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),C})()};let y;if(Pt.skipAnimation)return vi(n),bt(r,!1);try{let S;j.arr(e)?S=(async g=>{for(const v of g)await p(v)})(e):S=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([S.then(c),h]),y=bt(r.get(),!0,!1)}catch(S){if(S instanceof jp)y=S.result;else if(S instanceof Tp)y=S.result;else throw S}finally{s==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return j.fun(o)&&V.batchedUpdates(()=>{o(y,r,r.item)}),y})()}function vi(e,t){Ds(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var jp=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Tp=class extends Error{constructor(){super("SkipAnimationSignal")}},kc=e=>e instanceof ef,sE=1,ef=class extends uv{constructor(){super(...arguments),this.id=sE++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Lt(this);return e&&e.getValue()}to(...e){return Pt.to(this,e)}interpolate(...e){return Db(),Pt.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){fi(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Xa.sort(this),fi(this,{type:"priority",parent:this,priority:e})}},sr=Symbol.for("SpringPhase"),Ev=1,Pc=2,Oc=4,Gl=e=>(e[sr]&Ev)>0,cn=e=>(e[sr]&Pc)>0,ps=e=>(e[sr]&Oc)>0,_p=(e,t)=>t?e[sr]|=Pc|Ev:e[sr]&=~Pc,Ip=(e,t)=>t?e[sr]|=Oc:e[sr]&=~Oc,iE=class extends ef{constructor(e,t){if(super(),this.animation=new rE,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!j.und(e)||!j.und(t)){const n=j.obj(e)?{...e}:{...t,from:e};j.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(cn(this)||this._state.asyncTo)||ps(this)}get goal(){return De(this.animation.to)}get velocity(){const e=Lt(this);return e instanceof Ii?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Gl(this)}get isAnimating(){return cn(this)}get isPaused(){return ps(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:s}=r;const{config:i}=r,o=tl(r.to);!o&&ut(r.to)&&(s=je(De(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==mi?1:o?o[c].lastPosition:s[c];let h=r.immediate,m=d;if(!h){if(m=u.lastPosition,i.tension<=0){u.done=!0;return}let p=u.elapsedTime+=e;const y=r.fromValues[c],S=u.v0!=null?u.v0:u.v0=j.arr(i.velocity)?i.velocity[c]:i.velocity;let g;const v=i.precision||(y==d?.005:Math.min(1,Math.abs(d-y)*.001));if(j.und(i.duration))if(i.decay){const w=i.decay===!0?.998:i.decay,b=Math.exp(-(1-w)*p);m=y+S/(1-w)*(1-b),h=Math.abs(u.lastPosition-m)<=v,g=S*b}else{g=u.lastVelocity==null?S:u.lastVelocity;const w=i.restVelocity||v/10,b=i.clamp?0:i.bounce,C=!j.und(b),k=y==d?u.v0>0:y<d;let R,P=!1;const L=1,M=Math.ceil(e/L);for(let T=0;T<M&&(R=Math.abs(g)>w,!(!R&&(h=Math.abs(d-m)<=v,h)));++T){C&&(P=m==d||m>d==k,P&&(g=-g*b,m=d));const D=-i.tension*1e-6*(m-d),U=-i.friction*.001*g,E=(D+U)/i.mass;g=g+E*L,m=m+g*L}}else{let w=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,p=u.elapsedTime+=e)),w=(i.progress||0)+p/this._memoizedDuration,w=w>1?1:w<0?0:w,u.durationProgress=w),m=y+i.easing(w)*(d-y),g=(m-u.lastPosition)/e,h=w==1}u.lastVelocity=g,Number.isNaN(m)&&(console.warn("Got NaN while animating:",this),h=!0)}o&&!o[c].done&&(h=!1),h?u.done=!0:t=!1,u.setValue(m,i.round)&&(n=!0)});const a=Lt(this),l=a.getValue();if(t){const u=De(r.to);(l!==u||n)&&!i.decay?(a.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return V.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(cn(this)){const{to:e,config:t}=this.animation;V.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return j.und(e)?(n=this.queue||[],this.queue=[]):n=[j.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Jd(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),vi(this._state,e&&this._lastCallId),V.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=j.obj(n)?n[t]:n,(n==null||Ec(n))&&(n=void 0),r=j.obj(r)?r[t]:r,r==null&&(r=void 0);const s={to:n,from:r};return Gl(this)||(e.reverse&&([n,r]=[r,n]),r=De(r),j.und(r)?Lt(this)||this._set(n):this._set(r)),s}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,rl(e,(o,a)=>/^on/.test(a)?gv(o,n):o)),Lp(this,e,"onProps"),gs(this,"onProps",e,this);const s=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return xv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ps(this)||(Ip(this,!0),Es(i.pauseQueue),gs(this,"onPause",bt(this,ms(this,this.animation.to)),this))},resume:()=>{ps(this)&&(Ip(this,!1),cn(this)&&this._resume(),Es(i.resumeQueue),gs(this,"onResume",bt(this,ms(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=Cv(e);if(a)return this._update(a,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Dr(this));const r=!j.und(e.to),s=!j.und(e.from);if(r||s)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Dr(this));const{key:i,defaultProps:o,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;s&&!r&&(!t.default||j.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const h=!Qt(d,u);h&&(a.from=d),d=De(d);const m=!Qt(c,l);m&&this._focus(c);const p=Ec(t.to),{config:y}=a,{decay:S,velocity:g}=y;(r||s)&&(y.velocity=0),t.config&&!p&&nE(y,Fe(t.config,i),t.config!==o.config?Fe(o.config,i):void 0);let v=Lt(this);if(!v||j.und(c))return n(bt(this,!0));const w=j.und(t.reset)?s&&!t.default:!j.und(d)&&$s(t.reset,i),b=w?d:this.get(),C=gi(c),k=j.num(C)||j.arr(C)||el(C),R=!p&&(!k||$s(o.immediate||t.immediate,i));if(m){const T=bc(c);if(T!==v.constructor)if(R)v=this._set(C);else throw Error(`Cannot animate between ${v.constructor.name} and ${T.name}, as the "to" prop suggests`)}const P=v.constructor;let L=ut(c),M=!1;if(!L){const T=w||!Gl(this)&&h;(m||T)&&(M=Qt(gi(b),C),L=!M),(!Qt(a.immediate,R)&&!R||!Qt(y.decay,S)||!Qt(y.velocity,g))&&(L=!0)}if(M&&cn(this)&&(a.changed&&!w?L=!0:L||this._stop(l)),!p&&((L||ut(l))&&(a.values=v.getPayload(),a.toValues=ut(c)?null:P==mi?[1]:je(C)),a.immediate!=R&&(a.immediate=R,!R&&!w&&this._set(l)),L)){const{onRest:T}=a;B(aE,U=>Lp(this,t,U));const D=bt(this,ms(this,l));Es(this._pendingCalls,D),this._pendingCalls.add(n),a.changed&&V.batchedUpdates(()=>{var U;a.changed=!w,T==null||T(D,this),w?Fe(o.onRest,D):(U=a.onStart)==null||U.call(a,D,this)})}w&&this._set(b),p?n(bv(t.to,t,this._state,this)):L?this._start():cn(this)&&!m?this._pendingCalls.add(n):n(Sv(b))}_focus(e){const t=this.animation;e!==t.to&&(Ep(this)&&this._detach(),t.to=e,Ep(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ut(t)&&(es(t,this),kc(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ut(e)&&hi(e,this)}_set(e,t=!0){const n=De(e);if(!j.und(n)){const r=Lt(this);if(!r||!Qt(n,r.getValue())){const s=bc(n);!r||r.constructor!=s?Xd(this,s.create(n)):r.setValue(n),r&&V.batchedUpdates(()=>{this._onChange(n,t)})}}return Lt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,gs(this,"onStart",bt(this,ms(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Fe(this.animation.onChange,e,this)),Fe(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Lt(this).reset(De(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),cn(this)||(_p(this,!0),ps(this)||this._resume())}_resume(){Pt.skipAnimation?this.finish():Xa.start(this)}_stop(e,t){if(cn(this)){_p(this,!1);const n=this.animation;B(n.values,s=>{s.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),fi(this,{type:"idle",parent:this});const r=t?Dr(this.get()):bt(this.get(),ms(this,e??n.to));Es(this._pendingCalls,r),n.changed&&(n.changed=!1,gs(this,"onRest",r,this))}}};function ms(e,t){const n=gi(t),r=gi(e.get());return Qt(r,n)}function Cv(e,t=e.loop,n=e.to){const r=Fe(t);if(r){const s=r!==!0&&Yd(r),i=(s||e).reverse,o=!s||s.reset;return yi({...e,loop:t,default:!1,pause:void 0,to:!i||Ec(n)?n:void 0,from:o?e.from:void 0,reset:o,...s})}}function yi(e){const{to:t,from:n}=e=Yd(e),r=new Set;return j.obj(t)&&Ap(t,r),j.obj(n)&&Ap(n,r),e.keys=r.size?Array.from(r):null,e}function oE(e){const t=yi(e);return j.und(t.default)&&(t.default=rl(t)),t}function Ap(e,t){Ut(e,(n,r)=>n!=null&&t.add(r))}var aE=["onStart","onRest","onChange","onPause","onResume"];function Lp(e,t,n){e.animation[n]=t[n]!==vv(t,n)?gv(t[n],e.key):void 0}function gs(e,t,...n){var r,s,i,o;(s=(r=e.animation)[t])==null||s.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var lE=["onStart","onChange","onRest"],uE=1,Rv=class{constructor(e,t){this.id=uE++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];j.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(yi(e)),this}start(e){let{queue:t}=this;return e?t=je(e).map(yi):this.queue=[],this._flush?this._flush(this,t):(jv(this,t),Nc(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;B(je(t),r=>n[r].stop(!!e))}else vi(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(j.und(e))this.start({pause:!0});else{const t=this.springs;B(je(e),n=>t[n].pause())}return this}resume(e){if(j.und(e))this.start({pause:!1});else{const t=this.springs;B(je(e),n=>t[n].resume())}return this}each(e){Ut(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,Ds(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const i=!r&&this._started,o=s||i&&n.size?this.get():null;s&&t.size&&Ds(t,([a,l])=>{l.value=o,a(l,this,this._item)}),i&&(this._started=!1,Ds(n,([a,l])=>{l.value=o,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;V.onFrame(this._onFrame)}};function Nc(e,t){return Promise.all(t.map(n=>kv(e,n))).then(n=>Jd(e,n))}async function kv(e,t,n){const{keys:r,to:s,from:i,loop:o,onRest:a,onResolve:l}=t,u=j.obj(t.default)&&t.default;o&&(t.loop=!1),s===!1&&(t.to=null),i===!1&&(t.from=null);const c=j.arr(s)||j.fun(s)?s:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):B(lE,y=>{const S=t[y];if(j.fun(S)){const g=e._events[y];t[y]=({finished:v,cancelled:w})=>{const b=g.get(S);b?(v||(b.finished=!1),w&&(b.cancelled=!0)):g.set(S,{value:null,finished:v||!1,cancelled:w||!1})},u&&(u[y]=t[y])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Es(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),m=t.cancel===!0||vv(t,"cancel")===!0;(c||m&&d.asyncId)&&h.push(xv(++e._lastAsyncId,{props:t,state:d,actions:{pause:wc,resume:wc,start(y,S){m?(vi(d,e._lastAsyncId),S(Dr(e))):(y.onRest=a,S(bv(c,y,d,e)))}}})),d.paused&&await new Promise(y=>{d.resumeQueue.add(y)});const p=Jd(e,await Promise.all(h));if(o&&p.finished&&!(n&&p.noop)){const y=Cv(t,o,s);if(y)return jv(e,[y]),kv(e,y,!0)}return l&&V.batchedUpdates(()=>l(p,e,e.item)),p}function jc(e,t){const n={...e.springs};return t&&B(je(t),r=>{j.und(r.keys)&&(r=yi(r)),j.obj(r.to)||(r={...r,to:void 0}),Nv(n,r,s=>Ov(s))}),Pv(e,n),n}function Pv(e,t){Ut(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,es(n,e))})}function Ov(e,t){const n=new iE;return n.key=e,t&&es(n,t),n}function Nv(e,t,n){t.keys&&B(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function jv(e,t){B(t,n=>{Nv(e.springs,n,r=>Ov(r,e))})}var Ai=({children:e,...t})=>{const n=x.useContext(ba),r=t.pause||!!n.pause,s=t.immediate||!!n.immediate;t=Ub(()=>({pause:r,immediate:s}),[r,s]);const{Provider:i}=ba;return x.createElement(i,{value:t},e)},ba=cE(Ai,{});Ai.Provider=ba.Provider;Ai.Consumer=ba.Consumer;function cE(e,t){return Object.assign(e,x.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Tv=()=>{const e=[],t=function(r){$b();const s=[];return B(e,(i,o)=>{if(j.und(r))s.push(i.start());else{const a=n(r,i,o);a&&s.push(i.start(a))}}),s};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const s=e.indexOf(r);~s&&e.splice(s,1)},t.pause=function(){return B(e,r=>r.pause(...arguments)),this},t.resume=function(){return B(e,r=>r.resume(...arguments)),this},t.set=function(r){B(e,(s,i)=>{const o=j.fun(r)?r(i,s):r;o&&s.set(o)})},t.start=function(r){const s=[];return B(e,(i,o)=>{if(j.und(r))s.push(i.start());else{const a=this._getProps(r,i,o);a&&s.push(i.start(a))}}),s},t.stop=function(){return B(e,r=>r.stop(...arguments)),this},t.update=function(r){return B(e,(s,i)=>s.update(this._getProps(r,s,i))),this};const n=function(r,s,i){return j.fun(r)?r(i,s):r};return t._getProps=n,t};function dE(e,t,n){const r=j.fun(t)&&t;r&&!n&&(n=[]);const s=x.useMemo(()=>r||arguments.length==3?Tv():void 0,[]),i=x.useRef(0),o=Zd(),a=x.useMemo(()=>({ctrls:[],queue:[],flush(g,v){const w=jc(g,v);return i.current>0&&!a.queue.length&&!Object.keys(w).some(C=>!g.springs[C])?Nc(g,v):new Promise(C=>{Pv(g,w),a.queue.push(()=>{C(Nc(g,v))}),o()})}}),[]),l=x.useRef([...a.ctrls]),u=[],c=Sc(e)||0;x.useMemo(()=>{B(l.current.slice(e,c),g=>{Cc(g,s),g.stop(!0)}),l.current.length=e,d(c,e)},[e]),x.useMemo(()=>{d(0,Math.min(c,e))},n);function d(g,v){for(let w=g;w<v;w++){const b=l.current[w]||(l.current[w]=new Rv(null,a.flush)),C=r?r(w,b):t[w];C&&(u[w]=oE(C))}}const h=l.current.map((g,v)=>jc(g,u[v])),m=x.useContext(Ai),p=Sc(m),y=m!==p&&yv(m);Zn(()=>{i.current++,a.ctrls=l.current;const{queue:g}=a;g.length&&(a.queue=[],B(g,v=>v())),B(l.current,(v,w)=>{s==null||s.add(v),y&&v.start({default:m});const b=u[w];b&&(wv(v,b.ref),v.ref?v.queue.push(b):v.start(b))})}),Gd(()=>()=>{B(a.ctrls,g=>g.stop(!0))});const S=h.map(g=>({...g}));return s?[S,s]:S}function hk(e,t){const n=j.fun(e),[[r],s]=dE(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,s]:r}function tf(e,t,n){const r=j.fun(t)&&t,{reset:s,sort:i,trail:o=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,h=x.useMemo(()=>r||arguments.length==3?Tv():void 0,[]),m=je(e),p=[],y=x.useRef(null),S=s?null:y.current;Zn(()=>{y.current=p}),Gd(()=>(B(p,E=>{h==null||h.add(E.ctrl),E.ctrl.ref=h}),()=>{B(y.current,E=>{E.expired&&clearTimeout(E.expirationId),Cc(E.ctrl,h),E.ctrl.stop(!0)})}));const g=hE(m,r?r():t,S),v=s&&y.current||[];Zn(()=>B(v,({ctrl:E,item:O,key:A})=>{Cc(E,h),Fe(u,O,A)}));const w=[];if(S&&B(S,(E,O)=>{E.expired?(clearTimeout(E.expirationId),v.push(E)):(O=w[O]=g.indexOf(E.key),~O&&(p[O]=E))}),B(m,(E,O)=>{p[O]||(p[O]={key:g[O],item:E,phase:"mount",ctrl:new Rv},p[O].ctrl.item=E)}),w.length){let E=-1;const{leave:O}=r?r():t;B(w,(A,$)=>{const N=S[$];~A?(E=p.indexOf(N),p[E]={...N,item:m[A]}):O&&p.splice(++E,0,N)})}j.fun(i)&&p.sort((E,O)=>i(E.item,O.item));let b=-o;const C=Zd(),k=rl(t),R=new Map,P=x.useRef(new Map),L=x.useRef(!1);B(p,(E,O)=>{const A=E.key,$=E.phase,N=r?r():t;let I,z;const Z=Fe(N.delay||0,A);if($=="mount")I=N.enter,z="enter";else{const ye=g.indexOf(A)<0;if($!="leave")if(ye)I=N.leave,z="leave";else if(I=N.update)z="update";else return;else if(!ye)I=N.enter,z="enter";else return}if(I=Fe(I,E.item,O),I=j.obj(I)?Yd(I):{to:I},!I.config){const ye=d||k.config;I.config=Fe(ye,E.item,O,z)}b+=o;const W={...k,delay:Z+b,ref:c,immediate:N.immediate,reset:!1,...I};if(z=="enter"&&j.und(W.from)){const ye=r?r():t,G=j.und(ye.initial)||S?ye.from:ye.initial;W.from=Fe(G,E.item,O)}const{onResolve:an}=W;W.onResolve=ye=>{Fe(an,ye);const G=y.current,he=G.find(jt=>jt.key===A);if(he&&!(ye.cancelled&&he.phase!="update")&&he.ctrl.idle){const jt=G.every(Tt=>Tt.ctrl.idle);if(he.phase=="leave"){const Tt=Fe(a,he.item);if(Tt!==!1){const ln=Tt===!0?0:Tt;if(he.expired=!0,!jt&&ln>0){ln<=2147483647&&(he.expirationId=setTimeout(C,ln));return}}}jt&&G.some(Tt=>Tt.expired)&&(P.current.delete(he),l&&(L.current=!0),C())}};const it=jc(E.ctrl,W);z==="leave"&&l?P.current.set(E,{phase:z,springs:it,payload:W}):R.set(E,{phase:z,springs:it,payload:W})});const M=x.useContext(Ai),T=Sc(M),D=M!==T&&yv(M);Zn(()=>{D&&B(p,E=>{E.ctrl.start({default:M})})},[M]),B(R,(E,O)=>{if(P.current.size){const A=p.findIndex($=>$.key===O.key);p.splice(A,1)}}),Zn(()=>{B(P.current.size?P.current:R,({phase:E,payload:O},A)=>{const{ctrl:$}=A;A.phase=E,h==null||h.add($),D&&E=="enter"&&$.start({default:M}),O&&(wv($,O.ref),($.ref||h)&&!L.current?$.update(O):($.start(O),L.current&&(L.current=!1)))})},s?void 0:n);const U=E=>x.createElement(x.Fragment,null,p.map((O,A)=>{const{springs:$}=R.get(O)||O.ctrl,N=E({...$},O.item,O,A);return N&&N.type?x.createElement(N.type,{...N.props,key:j.str(O.key)||j.num(O.key)?O.key:O.ctrl.id,ref:N.ref}):N}));return h?[U,h]:U}var fE=1;function hE(e,{key:t,keys:n=t},r){if(n===null){const s=new Set;return e.map(i=>{const o=r&&r.find(a=>a.item===i&&a.phase!=="leave"&&!s.has(a));return o?(s.add(o),o.key):fE++})}return j.und(n)?e:j.fun(n)?e.map(n):je(n)}var pE=class extends ef{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ci(...t);const n=this._get(),r=bc(n);Xd(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Qt(t,n)||(Lt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Mp(this._active)&&Xl(this)}_get(){const e=j.arr(this.source)?this.source.map(De):je(De(this.source));return this.calc(...e)}_start(){this.idle&&!Mp(this._active)&&(this.idle=!1,B(tl(this),e=>{e.done=!1}),Pt.skipAnimation?(V.batchedUpdates(()=>this.advance()),Xl(this)):Xa.start(this))}_attach(){let e=1;B(je(this.source),t=>{ut(t)&&es(t,this),kc(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){B(je(this.source),e=>{ut(e)&&hi(e,this)}),this._active.clear(),Xl(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=je(this.source).reduce((t,n)=>Math.max(t,(kc(n)?n.priority:0)+1),0))}};function mE(e){return e.idle!==!1}function Mp(e){return!e.size||Array.from(e).every(mE)}function Xl(e){e.idle||(e.idle=!0,B(tl(e),t=>{t.done=!0}),fi(e,{type:"idle",parent:e}))}Pt.assign({createStringInterpolator:fv,to:(e,t)=>new pE(e,t)});var _v=/^--/;function gE(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!_v.test(e)&&!(zs.hasOwnProperty(e)&&zs[e])?t+"px":(""+t).trim()}var Dp={};function vE(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:s,scrollTop:i,scrollLeft:o,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:Dp[d]||(Dp[d]=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));s!==void 0&&(e.textContent=s);for(const d in r)if(r.hasOwnProperty(d)){const h=gE(d,r[d]);_v.test(d)?e.style.setProperty(d,h):e.style[d]=h}c.forEach((d,h)=>{e.setAttribute(d,u[h])}),i!==void 0&&(e.scrollTop=i),o!==void 0&&(e.scrollLeft=o),a!==void 0&&e.setAttribute("viewBox",a)}var zs={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yE=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),wE=["Webkit","Ms","Moz","O"];zs=Object.keys(zs).reduce((e,t)=>(wE.forEach(n=>e[yE(n,t)]=e[t]),e),zs);var xE=/^(matrix|translate|scale|rotate|skew)/,SE=/^(translate)/,bE=/^(rotate|skew)/,Yl=(e,t)=>j.num(e)&&e!==0?e+t:e,To=(e,t)=>j.arr(e)?e.every(n=>To(n,t)):j.num(e)?e===t:parseFloat(e)===t,EE=class extends nl{constructor({x:e,y:t,z:n,...r}){const s=[],i=[];(e||t||n)&&(s.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(a=>Yl(a,"px")).join(",")})`,To(o,0)])),Ut(r,(o,a)=>{if(a==="transform")s.push([o||""]),i.push(l=>[l,l===""]);else if(xE.test(a)){if(delete r[a],j.und(o))return;const l=SE.test(a)?"px":bE.test(a)?"deg":"";s.push(je(o)),i.push(a==="rotate3d"?([u,c,d,h])=>[`rotate3d(${u},${c},${d},${Yl(h,l)})`,To(h,0)]:u=>[`${a}(${u.map(c=>Yl(c,l)).join(",")})`,To(u,a.startsWith("scale")?1:0)])}}),s.length&&(r.transform=new CE(s,i)),super(r)}},CE=class extends uv{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return B(this.inputs,(n,r)=>{const s=De(n[0]),[i,o]=this.transforms[r](j.arr(s)?s:n.map(De));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&B(this.inputs,t=>B(t,n=>ut(n)&&es(n,this)))}observerRemoved(e){e==0&&B(this.inputs,t=>B(t,n=>ut(n)&&hi(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),fi(this,e)}},RE=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Pt.assign({batchedUpdates:Pi.unstable_batchedUpdates,createStringInterpolator:fv,colors:gb});var kE=Zb(RE,{applyAnimatedValues:vE,createAnimatedStyle:e=>new EE(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Ea=kE.animated;const nf=x.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});nf.displayName="ModalContext";const Iv=()=>{const e=x.useContext(nf);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},Av=e=>{const{ariaDescriptionId:t}=Iv(),{children:n,className:r}=e,s=H("modal-body",r);return f.jsx("div",{id:t,className:s,children:n})};Av.displayName="Modal.Body";const PE=Av,Lv=e=>f.jsx("div",{className:"modal-footer",children:e.children});Lv.displayName="Modal.Footer";const OE=Lv,Mv=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:s}=Iv(),i=x.useRef(null);return x.useEffect(()=>{var o;s||(o=i.current)==null||o.focus()},[s]),f.jsxs("div",{className:"modal-header",children:[f.jsx("h2",{id:r,className:"modal-title",tabIndex:-1,children:n}),f.jsx(Qa,{ref:i,"aria-label":"Close",color:"tertiary",icon:f.jsx(Y4,{}),type:"button",variant:"ghost",title:"Delete",onClick:t,className:"btn-close"})]})};Mv.displayName="Modal.Header";const NE=Mv,Dv=e=>f.jsx("p",{className:"modal-subtitle",children:e.children});Dv.displayName="Modal.Subtitle";const jE=Dv,Fv=x.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:s,size:i="md",viewport:o=!1,scrollable:a=!1,focusId:l,children:u}=e,c=`aria_label_${n}`,d=`aria_desc_${n}`,h=t0(s),m=z4();D4(s,["Escape"]),x.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",l)){const v=document.getElementById(l);v==null||v.focus()}return()=>{document.body.style.overflow=""}},[l,r]);const p=H("modal fade",{"show d-block":r,"modal-scrollable":a,viewport:o,[`modal-${i}`]:i}),y=H("modal-dialog"),S={ariaLabelId:c,ariaDescriptionId:d,focusId:l},g=tf(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return f.jsx(nf.Provider,{value:S,children:g((v,w)=>f.jsxs(f.Fragment,{children:[w&&f.jsx(Ea.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":c,"aria-describedby":d,className:p,style:v,tabIndex:-1,children:f.jsx("div",{id:`${n}_ref`,ref:b=>{h.current=b,w&&(m.current=b)},className:y,children:f.jsx("div",{className:"modal-content",children:u})})}),w&&f.jsx(Ea.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),TE=Object.assign(Fv,{Header:NE,Subtitle:jE,Body:PE,Footer:OE});Fv.displayName="Modal";const Sn=TE,_E=({children:e,className:t})=>{const n=H("popover-body",t);return f.jsx("div",{className:n,children:e})},IE=({children:e,className:t})=>{const n=H("popover-footer p-8",t);return f.jsx("div",{className:n,children:e})},rf=x.forwardRef(({children:e,className:t,id:n,isVisible:r,...s},i)=>{const o=H("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return tf(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}})((l,u)=>u&&f.jsx(Ea.div,{ref:i,"aria-labelledby":n,className:o,role:"tooltip",style:l,...s,children:e}))});rf.displayName="Popover";function AE(e,t,n,r,s,i,o,a,l){const u=S=>{S.preventDefault(),s==null||s(e),S.stopPropagation()},c=S=>{(S.code==="Enter"||S.code==="Space")&&(S.preventDefault(),s==null||s(e),S.stopPropagation())},d=()=>{r(!n),n?i==null||i(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:c,handleItemFoldUnfoldClick:S=>{S.preventDefault(),d(),S.stopPropagation()},handleItemFoldUnfoldKeyDown:S=>{(S.code==="Enter"||S.code==="Space")&&(S.preventDefault(),d(),S.stopPropagation())},handleItemFocus:S=>{S.preventDefault(),a==null||a(e)},handleItemBlur:S=>{S.preventDefault(),l==null||l(e)}}}const $v=e=>{const{nodeId:t,label:n,children:r,section:s,selected:i,onItemSelect:o,onItemFold:a,onItemUnfold:l,onItemFocus:u,onItemBlur:c,selectedNodesIds:d}=e,[h,m]=x.useState(!1),{handleItemClick:p,handleItemKeyDown:y,handleItemFoldUnfoldClick:S,handleItemFoldUnfoldKeyDown:g,handleItemFocus:v,handleItemBlur:w}=AE(t,n,h,m,o,a,l,u,c);x.useEffect(()=>{if(d!=null&&d.length&&(d==null?void 0:d.length)>=1){const k=d[d.length-1];d.some(R=>R===t&&t!==k?(m(!0),R===t):(m(!1),!1))}else m(!1)},[t,d]);const b=s?16:12,C=()=>f.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":i,"aria-expanded":h,children:f.jsxs("div",{children:[f.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[f.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:S,onKeyDown:g,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!h&&f.jsx(np,{title:"RafterRight",width:b,height:b}),Array.isArray(r)&&h&&f.jsx(hc,{title:"RafterDown",width:b,height:b}),!Array.isArray(r)&&f.jsx(np,{title:"RafterRight",width:b,height:b,"aria-hidden":"true",className:"opacity-0"})]}),f.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:p,onKeyDown:y,onFocus:v,onBlur:w,children:[s&&f.jsx(u3,{title:"Folder",width:20,height:20}),f.jsx("span",{className:"text-truncate",children:n})]})]}),Array.isArray(r)&&f.jsx("ul",{role:"group",children:r})]})},t);return s?f.jsx("ul",{role:"tree",className:"m-0 p-0",children:C()}):C()};$v.displayName="TreeItem";const LE=$v,zv=x.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:s,onTreeItemUnfold:i,onTreeItemFocus:o,onTreeItemBlur:a,selectedNodesIds:l}=e,[u,c]=x.useState("default");x.useEffect(()=>{l!=null&&l.length&&(l==null?void 0:l.length)>=1?c(l[l.length-1]):c("")},[l]);const d=g=>{c(g),r==null||r(g)},h=g=>{s==null||s(g)},m=g=>{i==null||i(g)},p=g=>{o==null||o(g)},y=g=>{a==null||a(g)},S=g=>f.jsx(LE,{nodeId:g.id,label:g.name,section:g.section,selectedNodesIds:l,selected:u===g.id,onItemSelect:d,onItemFold:h,onItemUnfold:m,onItemFocus:p,onItemBlur:y,children:Array.isArray(g.children)?g.children.map(v=>S(v)):null},g.id);return f.jsx("div",{ref:t,id:"treeview",className:"treeview",children:S(n)})});zv.displayName="TreeView";const ME=zv,Uv=x.forwardRef(({children:e},t)=>f.jsx("span",{className:"visually-hidden",ref:t,children:e}));Uv.displayName="VisuallyHidden";const Cs=Uv,DE=()=>{const e=Ls("fr.openent.zimbra.controllers.ZimbraController|view"),t=Ls("fr.openent.zimbra.controllers.ZimbraController|preauth"),[n,r]=x.useState(0),[s,i]=x.useState(""),o=x.useCallback(async()=>{if(e)try{const l=await X.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});l.status!==200&&r(0),r(l.count)}catch{console.error("error"),r(0)}else try{const l=await X.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});r(l.count)}catch{console.error("error"),r(0)}},[e]),a=x.useCallback(()=>{let l="";X.http().get("/userbook/preference/zimbra").then(u=>{try{u.preference&&JSON.parse(u.preference).modeExpert&&t?l="/zimbra/preauth":l=window.location.origin+"/zimbra/zimbra"}catch{l="/zimbra/zimbra"}}),i(l)},[t]);return x.useEffect(()=>{(async()=>{try{await o()}catch(l){console.error(l)}})(),a()},[a,o]),{messages:n,msgLink:s,zimbraWorkflow:e}},FE=DE;function Jl({children:e}){return f.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function eu({children:e,className:t,...n}){const r=H("navbar",t);return f.jsx("nav",{className:r,...n,children:e})}function Fp({children:e,className:t,...n}){const r=H("navbar-nav",t);return f.jsx("ul",{className:r,...n,children:e})}const ue=x.forwardRef(({children:e,className:t,...n},r)=>{const s=H("nav-item",t);return f.jsx("li",{ref:r,className:s,...n,children:e})});ue.displayName="NavItem";function vs({link:e,className:t,children:n,translate:r,...s}){const i=H("nav-link",t);return f.jsxs("a",{href:e,className:i,...s,children:[n,r&&f.jsx(Cs,{children:f.jsx("span",{className:"nav-text",children:r})})]})}const $E=()=>{const{t:e}=ve();return f.jsx("div",{className:"widget-footer",children:f.jsx("div",{className:"widget-footer-action",children:f.jsx("a",{href:"/welcome",className:"link",children:e("plus")})})})},zE=({bookmarkedApps:e})=>{const{t}=ve();return f.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!e.length&&f.jsx("div",{className:"text-dark",children:t("navbar.myapps.more")}),e.slice(0,6).map((n,r)=>f.jsx("a",{href:n.address,className:"bookmarked-app",children:f.jsx(pc,{app:n,size:"32"})},r))]})};var sf={},of={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(r){return r.type===t.Tag||r.type===t.Script||r.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(of);var q={},$n=Ue&&Ue.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Us=Ue&&Ue.__assign||function(){return Us=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Us.apply(this,arguments)};Object.defineProperty(q,"__esModule",{value:!0});q.cloneNode=q.hasChildren=q.isDocument=q.isDirective=q.isComment=q.isText=q.isCDATA=q.isTag=q.Element=q.Document=q.CDATA=q.NodeWithChildren=q.ProcessingInstruction=q.Comment=q.Text=q.DataNode=q.Node=void 0;var Qe=of,af=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),lf(this,t)},e}();q.Node=af;var sl=function(e){$n(t,e);function t(n){var r=e.call(this)||this;return r.data=n,r}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),t}(af);q.DataNode=sl;var Bv=function(e){$n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Qe.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(sl);q.Text=Bv;var Vv=function(e){$n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Qe.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(sl);q.Comment=Vv;var Hv=function(e){$n(t,e);function t(n,r){var s=e.call(this,r)||this;return s.name=n,s.type=Qe.ElementType.Directive,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(sl);q.ProcessingInstruction=Hv;var il=function(e){$n(t,e);function t(n){var r=e.call(this)||this;return r.children=n,r}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(af);q.NodeWithChildren=il;var qv=function(e){$n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Qe.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(il);q.CDATA=qv;var Qv=function(e){$n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Qe.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(il);q.Document=Qv;var Kv=function(e){$n(t,e);function t(n,r,s,i){s===void 0&&(s=[]),i===void 0&&(i=n==="script"?Qe.ElementType.Script:n==="style"?Qe.ElementType.Style:Qe.ElementType.Tag);var o=e.call(this,s)||this;return o.name=n,o.attribs=r,o.type=i,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var s,i;return{name:r,value:n.attribs[r],namespace:(s=n["x-attribsNamespace"])===null||s===void 0?void 0:s[r],prefix:(i=n["x-attribsPrefix"])===null||i===void 0?void 0:i[r]}})},enumerable:!1,configurable:!0}),t}(il);q.Element=Kv;function Wv(e){return(0,Qe.isTag)(e)}q.isTag=Wv;function Zv(e){return e.type===Qe.ElementType.CDATA}q.isCDATA=Zv;function Gv(e){return e.type===Qe.ElementType.Text}q.isText=Gv;function Xv(e){return e.type===Qe.ElementType.Comment}q.isComment=Xv;function Yv(e){return e.type===Qe.ElementType.Directive}q.isDirective=Yv;function Jv(e){return e.type===Qe.ElementType.Root}q.isDocument=Jv;function UE(e){return Object.prototype.hasOwnProperty.call(e,"children")}q.hasChildren=UE;function lf(e,t){t===void 0&&(t=!1);var n;if(Gv(e))n=new Bv(e.data);else if(Xv(e))n=new Vv(e.data);else if(Wv(e)){var r=t?tu(e.children):[],s=new Kv(e.name,Us({},e.attribs),r);r.forEach(function(l){return l.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=Us({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=Us({},e["x-attribsPrefix"])),n=s}else if(Zv(e)){var r=t?tu(e.children):[],i=new qv(r);r.forEach(function(u){return u.parent=i}),n=i}else if(Jv(e)){var r=t?tu(e.children):[],o=new Qv(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(Yv(e)){var a=new Hv(e.name,e.data);e["x-name"]!=null&&(a["x-name"]=e["x-name"],a["x-publicId"]=e["x-publicId"],a["x-systemId"]=e["x-systemId"]),n=a}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}q.cloneNode=lf;function tu(e){for(var t=e.map(function(r){return lf(r,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}(function(e){var t=Ue&&Ue.__createBinding||(Object.create?function(a,l,u,c){c===void 0&&(c=u);var d=Object.getOwnPropertyDescriptor(l,u);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(a,c,d)}:function(a,l,u,c){c===void 0&&(c=u),a[c]=l[u]}),n=Ue&&Ue.__exportStar||function(a,l){for(var u in a)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&t(l,a,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=of,s=q;n(q,e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function a(l,u,c){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=i),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??i,this.elementCB=c??null}return a.prototype.onparserinit=function(l){this.parser=l},a.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(l){this.handleCallback(l)},a.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},a.prototype.onopentag=function(l,u){var c=this.options.xmlMode?r.ElementType.Tag:void 0,d=new s.Element(l,u,void 0,c);this.addNode(d),this.tagStack.push(d)},a.prototype.ontext=function(l){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=l,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new s.Text(l);this.addNode(c),this.lastNode=c}},a.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=l;return}var u=new s.Comment(l);this.addNode(u),this.lastNode=u},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var l=new s.Text(""),u=new s.CDATA([l]);this.addNode(u),l.parent=u,this.lastNode=l},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(l,u){var c=new s.ProcessingInstruction(l,u);this.addNode(c)},a.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},a.prototype.addNode=function(l){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),u.children.push(l),c&&(l.prev=c,c.next=l),l.parent=u,this.lastNode=null},a}();e.DomHandler=o,e.default=o})(sf);var $p="html",zp="head",lo="body",BE=/<([a-zA-Z]+[0-9]?)/,Up=/<head[^]*>/i,Bp=/<body[^]*>/i,Ca=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Tc=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},Vp=typeof window=="object"&&window.DOMParser;if(typeof Vp=="function"){var VE=new Vp,HE="text/html";Tc=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),VE.parseFromString(e,HE)},Ca=Tc}if(typeof document=="object"&&document.implementation){var uo=document.implementation.createHTMLDocument();Ca=function(e,t){if(t){var n=uo.documentElement.querySelector(t);return n.innerHTML=e,uo}return uo.documentElement.innerHTML=e,uo}}var nu=typeof document=="object"?document.createElement("template"):{},_c;nu.content&&(_c=function(e){return nu.innerHTML=e,nu.content.childNodes});function qE(e){var t,n=e.match(BE);n&&n[1]&&(t=n[1].toLowerCase());var r,s,i;switch(t){case $p:return r=Tc(e),Up.test(e)||(s=r.querySelector(zp),s&&s.parentNode.removeChild(s)),Bp.test(e)||(s=r.querySelector(lo),s&&s.parentNode.removeChild(s)),r.querySelectorAll($p);case zp:case lo:return r=Ca(e),i=r.querySelectorAll(t),Bp.test(e)&&Up.test(e)?i[0].parentNode.childNodes:i;default:return _c?_c(e):(s=Ca(e,lo).querySelector(lo),s.childNodes)}}var QE=qE,uf={},ey={};ey.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];var ol=sf,KE=ey,Hp=KE.CASE_SENSITIVE_TAG_NAMES,WE=ol.Comment,ZE=ol.Element,GE=ol.ProcessingInstruction,XE=ol.Text,ty={},ru;for(var su=0,YE=Hp.length;su<YE;su++)ru=Hp[su],ty[ru.toLowerCase()]=ru;function JE(e){return ty[e]}function ny(e){for(var t={},n,r=0,s=e.length;r<s;r++)n=e[r],t[n.name]=n.value;return t}function eC(e){e=e.toLowerCase();var t=JE(e);return t||e}function ry(e,t,n){t=t||null;for(var r=[],s,i=0,o=e.length;i<o;i++){var a=e[i],l;switch(a.nodeType){case 1:s=eC(a.nodeName),l=new ZE(s,ny(a.attributes)),l.children=ry(s==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new XE(a.nodeValue);break;case 8:l=new WE(a.nodeValue);break;default:continue}var u=r[i-1]||null;u&&(u.next=l),l.parent=t,l.prev=u,l.next=null,r.push(l)}return n&&(l=new GE(n.substring(0,n.indexOf(" ")).toLowerCase(),n),l.next=r[0]||null,l.parent=t,r.unshift(l),r[1]&&(r[1].prev=r[0])),r}uf.formatAttributes=ny;uf.formatDOM=ry;var tC=QE,nC=uf,rC=nC.formatDOM,sC=/<(![a-zA-Z\s]+)>/;function iC(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(sC),n;return t&&t[1]&&(n=t[1]),rC(tC(e),null,n)}var oC=iC,vt={},al={},aC=0;al.SAME=aC;var lC=1;al.CAMELCASE=lC;al.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};Object.defineProperty(vt,"__esModule",{value:!0});function uC(e,t){return cC(e)||dC(e,t)||fC(e,t)||hC()}function cC(e){if(Array.isArray(e))return e}function dC(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function fC(e,t){if(e){if(typeof e=="string")return qp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qp(e,t)}}function qp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
225
225
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var sy=0,zn=1,ll=2,ul=3,cf=4,iy=5,oy=6;function pC(e){return be.hasOwnProperty(e)?be[e]:null}function Ae(e,t,n,r,s,i,o){this.acceptsBooleans=t===ll||t===ul||t===cf,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var be={},mC=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];mC.forEach(function(e){be[e]=new Ae(e,sy,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=uC(e,2),n=t[0],r=t[1];be[n]=new Ae(n,zn,!1,r,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){be[e]=new Ae(e,ll,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){be[e]=new Ae(e,ll,!1,e,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){be[e]=new Ae(e,ul,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){be[e]=new Ae(e,ul,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){be[e]=new Ae(e,cf,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){be[e]=new Ae(e,oy,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){be[e]=new Ae(e,iy,!1,e.toLowerCase(),null,!1,!1)});var df=/[\-\:]([a-z])/g,ff=function(t){return t[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(df,ff);be[t]=new Ae(t,zn,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(df,ff);be[t]=new Ae(t,zn,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(df,ff);be[t]=new Ae(t,zn,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){be[e]=new Ae(e,zn,!1,e.toLowerCase(),null,!1,!1)});var gC="xlinkHref";be[gC]=new Ae("xlinkHref",zn,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){be[e]=new Ae(e,zn,!1,e.toLowerCase(),null,!0,!0)});var hf=al,vC=hf.CAMELCASE,yC=hf.SAME,Qp=hf.possibleStandardNames,wC=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",xC=wC+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",SC=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+xC+"]*$")),bC=Object.keys(Qp).reduce(function(e,t){var n=Qp[t];return n===yC?e[t]=t:n===vC?e[t.toLowerCase()]=t:e[t]=n,e},{});vt.BOOLEAN=ul;vt.BOOLEANISH_STRING=ll;vt.NUMERIC=iy;vt.OVERLOADED_BOOLEAN=cf;vt.POSITIVE_NUMERIC=oy;vt.RESERVED=sy;vt.STRING=zn;vt.getPropertyInfo=pC;vt.isCustomAttribute=SC;vt.possibleStandardNames=bC;var pf={},mf={exports:{}},Kp=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,EC=/\n/g,CC=/^\s*/,RC=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,kC=/^:\s*/,PC=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,OC=/^[;\s]*/,NC=/^\s+|\s+$/g,jC=`
|
|
226
226
|
`,Wp="/",Zp="*",Hn="",TC="comment",_C="declaration",IC=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function s(p){var y=p.match(EC);y&&(n+=y.length);var S=p.lastIndexOf(jC);r=~S?p.length-S:r+p.length}function i(){var p={line:n,column:r};return function(y){return y.position=new o(p),u(),y}}function o(p){this.start=p,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(p){var y=new Error(t.source+":"+n+":"+r+": "+p);if(y.reason=p,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(p){var y=p.exec(e);if(y){var S=y[0];return s(S),e=e.slice(S.length),y}}function u(){l(CC)}function c(p){var y;for(p=p||[];y=d();)y!==!1&&p.push(y);return p}function d(){var p=i();if(!(Wp!=e.charAt(0)||Zp!=e.charAt(1))){for(var y=2;Hn!=e.charAt(y)&&(Zp!=e.charAt(y)||Wp!=e.charAt(y+1));)++y;if(y+=2,Hn===e.charAt(y-1))return a("End of comment missing");var S=e.slice(2,y-2);return r+=2,s(S),e=e.slice(y),r+=2,p({type:TC,comment:S})}}function h(){var p=i(),y=l(RC);if(y){if(d(),!l(kC))return a("property missing ':'");var S=l(PC),g=p({type:_C,property:Gp(y[0].replace(Kp,Hn)),value:S?Gp(S[0].replace(Kp,Hn)):Hn});return l(OC),g}}function m(){var p=[];c(p);for(var y;y=h();)y!==!1&&(p.push(y),c(p));return p}return u(),m()};function Gp(e){return e?e.replace(NC,Hn):Hn}var AC=IC;function ay(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,s=AC(e),i=typeof t=="function",o,a,l=0,u=s.length;l<u;l++)r=s[l],o=r.property,a=r.value,i?t(o,a,r):a&&(n||(n={}),n[o]=a);return n}mf.exports=ay;mf.exports.default=ay;var LC=mf.exports,cl={};Object.defineProperty(cl,"__esModule",{value:!0});cl.camelCase=void 0;var MC=/^--[a-zA-Z0-9-]+$/,DC=/-([a-z])/g,FC=/^[^-]+$/,$C=/^-(webkit|moz|ms|o|khtml)-/,zC=/^-(ms)-/,UC=function(e){return!e||FC.test(e)||MC.test(e)},BC=function(e,t){return t.toUpperCase()},Xp=function(e,t){return"".concat(t,"-")},VC=function(e,t){return t===void 0&&(t={}),UC(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(zC,Xp):e=e.replace($C,Xp),e.replace(DC,BC))};cl.camelCase=VC;var HC=Ue&&Ue.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pf,"__esModule",{value:!0});var qC=HC(LC),QC=cl;function KC(e,t){var n={};return!e||typeof e!="string"||(0,qC.default)(e,function(r,s){r&&s&&(n[(0,QC.camelCase)(r,t)]=s)}),n}pf.default=KC;var WC=x,ZC=pf.default;function GC(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n=typeof t=="function",r={},s={};for(var i in e){var o=e[i];if(n&&(r=t(i,o),r&&r.length===2)){s[r[0]]=r[1];continue}typeof o=="string"&&(s[o]=i)}return s}var XC=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function YC(e,t){return e.indexOf("-")===-1?t&&typeof t.is=="string":!XC.has(e)}var JC={reactCompat:!0};function eR(e,t){if(e!=null)try{t.style=ZC(e,JC)}catch{t.style={}}}var tR=WC.version.split(".")[0]>=16,ly=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function nR(e){return!ly.has(e.name)}function rR(e){return e}var uy={PRESERVE_CUSTOM_ATTRIBUTES:tR,ELEMENTS_WITH_NO_TEXT_CHILDREN:ly,invertObject:GC,isCustomComponent:YC,setStyleProp:eR,canTextBeChildOfNode:nR,returnFirstArg:rR},Rs=vt,Yp=uy,sR=["checked","value"],iR=["input","select","textarea"],oR={reset:!0,submit:!0},cy=function(t,n){t=t||{};var r,s,i,o,a,l={},u=t.type&&oR[t.type];for(r in t){if(i=t[r],Rs.isCustomAttribute(r)){l[r]=i;continue}if(s=r.toLowerCase(),o=Jp(s),o){switch(a=Rs.getPropertyInfo(o),sR.indexOf(o)!==-1&&iR.indexOf(n)!==-1&&!u&&(o=Jp("default"+s)),l[o]=i,a&&a.type){case Rs.BOOLEAN:l[o]=!0;break;case Rs.OVERLOADED_BOOLEAN:i===""&&(l[o]=!0);break}continue}Yp.PRESERVE_CUSTOM_ATTRIBUTES&&(l[r]=i)}return Yp.setStyleProp(t.style,l),l};function Jp(e){return Rs.possibleStandardNames[e]}var aR=x,lR=cy,wi=uy,uR=wi.setStyleProp,cR=wi.canTextBeChildOfNode;function dy(e,t){t=t||{};for(var n=t.library||aR,r=n.cloneElement,s=n.createElement,i=n.isValidElement,o=[],a,l,u=typeof t.replace=="function",c=t.transform||wi.returnFirstArg,d,h,m,p=t.trim,y=0,S=e.length;y<S;y++){if(a=e[y],u&&(d=t.replace(a),i(d))){S>1&&(d=r(d,{key:d.key||y})),o.push(c(d,a,y));continue}if(a.type==="text"){if(l=!a.data.trim().length,l&&a.parent&&!cR(a.parent)||p&&l)continue;o.push(c(a.data,a,y));continue}switch(h=a.attribs,dR(a)?uR(h.style,h):h&&(h=lR(h,a.name)),m=null,a.type){case"script":case"style":a.children[0]&&(h.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":a.name==="textarea"&&a.children[0]?h.defaultValue=a.children[0].data:a.children&&a.children.length&&(m=dy(a.children,t));break;default:continue}S>1&&(h.key=y),o.push(c(s(a.name,h,m),a,y))}return o.length===1?o[0]:o}function dR(e){return wi.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&wi.isCustomComponent(e.name,e.attribs)}var fR=dy,dl=sf,Pr=oC,hR=cy,fy=fR;Pr=typeof Pr.default=="function"?Pr.default:Pr;var pR={lowerCaseAttributeNames:!1};function Bt(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},fy(Pr(e,t.htmlparser2||pR),t))}Bt.domToReact=fy;Bt.htmlToDOM=Pr;Bt.attributesToProps=hR;Bt.Comment=dl.Comment;Bt.Element=dl.Element;Bt.ProcessingInstruction=dl.ProcessingInstruction;Bt.Text=dl.Text;var mR=Bt;Bt.default=Bt;const Un=Ra(mR);var co=Un.domToReact;Un.htmlToDOM;var iu=Un.attributesToProps;Un.Comment;Un.Element;Un.ProcessingInstruction;Un.Text;function gR(){var y;const{appCode:e}=gt(),{theme:t}=_d(),[n,r]=x.useState(""),[s,i]=x.useState(!0),[o,a]=x.useState(!1),[l,u]=x.useState(!1),c=t!=null&&t.is1d?"/help-1d":"/help-2d";x.useEffect(()=>{(async()=>{let S="";S=c+"/application/"+e+"/",!e&&window.location.pathname!=="/adapter"?S=c+"/application/portal/":window.location.pathname==="/adapter"?S=c+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?S=c+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(S=c+"/application/userbook/");try{const g=await fetch(S),v=await g.text();if(g.status===404){u(!0);return}r(v),u(!1)}catch(g){u(!0),console.error(g)}})()},[e,c]);const h=Un(n,{replace:S=>{const g=S;if(g.attribs&&g.attribs.id==="TOC")return f.jsxs("nav",{id:"TOC",children:[f.jsx(Jr,{onClick:()=>{i(!s)},children:f.jsx(G4,{})}),co(g.children,{replace:v=>{const w=v;if(w.attribs&&w.name==="ul")return f.jsx("ul",{id:"TOC-list",style:{display:s?"block":"none"},children:co(w.children,{replace:b=>{const C=b;if(C.attribs&&C.name==="a")return f.jsx("a",{...iu(C.attribs),children:f.jsx("span",{onClick:()=>{i(!1)},children:co(C.children)})})}})})}})]});if(g.attribs&&g.attribs.class==="section level2"){const v=iu(S.attribs);return f.jsx("div",{...v,className:"section level2",style:{display:g.attribs.id!=="présentation"?"none":"block"},children:co(g.children,{replace:w=>{const b=w;if(b.attribs&&b.name==="p")return f.jsx(f.Fragment,{});if(b.attribs&&b.name==="img"){const C=w.attribs.src;return f.jsx("img",{...iu(b.attribs),src:`${c}/${C}`,alt:""})}}})})}}}),m=(y=h==null?void 0:h.props)==null?void 0:y.children.find(S=>S.type==="body").props.children,p=m==null?void 0:m.find(S=>S.type==="p").props.children;return{html:n,visibility:s,isModalOpen:o,setIsModalOpen:a,parsedContent:m,parsedHeadline:p,error:l}}const hy=()=>{const[e,t]=Yg(),n=x.useRef(null),r=x.useId(),{t:s}=ve();function i(){if(n.current){const o=n.current.value;window.location.href=`/searchengine#/${o}`}}return f.jsxs(ue,{id:r,ref:e,className:"position-relative","aria-haspopup":"true","aria-expanded":t,children:[f.jsxs("a",{href:"/searchengine",className:"nav-link dropdown-item",children:[f.jsx(J3,{className:"icon search"}),f.jsx("span",{className:"nav-text",children:s("navbar.search")})]}),f.jsx(rf,{id:r,isVisible:t,className:"d-none d-md-flex",children:f.jsxs(vc,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[f.jsx(vc.Input,{ref:n,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),f.jsx(b0,{type:"submit",size:"sm",onClick:i,"aria-label":s("navbar.search")})]})})]})};hy.displayName="SearchEngine";const vR=hy;function em({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:s}){const{t:i}=ve(),o=()=>{t(!1)};return e?Pi.createPortal(f.jsxs(Sn,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"lg",children:[f.jsx(Sn.Header,{onModalClose:o,children:i("navbar.help")}),f.jsx(Sn.Subtitle,{children:s?i("help.notfound.title"):n}),f.jsx(Sn.Body,{className:s?"d-flex":null,children:s?i("help.notfound.text"):r})]}),document.getElementById("portal")):null}const py=({is1d:e=!1,src:t=""})=>{const{t:n}=ve(),{messages:r,msgLink:s,zimbraWorkflow:i}=FE(),{user:o,avatar:a}=Id(),{isModalOpen:l,setIsModalOpen:u,parsedContent:c,parsedHeadline:d,error:h}=gR(),m=H("header",{"no-2d":e,"no-1d":!e}),{title:p,bookmarkedApps:y,appsRef:S,isAppsHovered:g,popoverAppsId:v,userAvatar:w,userName:b,welcomeUser:C,communityWorkflow:k,conversationWorflow:R,searchWorkflow:P,isCollapsed:L,toggleCollapsedNav:M,handleLogout:T}=VS({user:o,avatar:a}),D=r>0;return f.jsx("header",{className:m,children:e?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"container-fluid",children:f.jsxs(eu,{children:[f.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:p}),f.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[f.jsx(rp,{alt:b,size:"sm",src:w,variant:"circle",width:"32",height:"32"}),f.jsx("span",{className:"navbar-text",children:C})]}),f.jsxs(Fp,{className:"gap-8","aria-hidden":"false","aria-label":n("navbar.main.navigation"),children:[R&&f.jsx(ue,{children:f.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[f.jsx(Z3,{className:"icon notification"}),D&&f.jsx(Jl,{children:r}),f.jsx(Cs,{children:n("navbar.messages")})]})}),f.jsx(ue,{children:f.jsx(vs,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:f.jsx(X3,{className:"icon user"})})}),f.jsxs(ue,{children:[f.jsxs("button",{className:"nav-link",onClick:()=>{u(!0)},children:[f.jsx(K3,{className:"icon help"}),f.jsx(Cs,{children:n("navbar.help")})]}),f.jsx(em,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(ue,{children:f.jsxs("button",{className:"nav-link",onClick:T,children:[f.jsx(ip,{className:"icon logout"}),f.jsx(Cs,{children:n("navbar.disconnect")})]})}),f.jsx(ue,{className:"d-md-none",children:f.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!L,"aria-label":n("navbar.secondary.navigation"),onClick:M,children:f.jsx(hc,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),f.jsx(eu,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":n("navbar.secondary.navigation"),children:f.jsx("div",{className:"container-fluid",children:f.jsxs("div",{className:`collapse navbar-collapse ${L?"":"show"}`,id:"navbarCollapsed",children:[f.jsx(mp,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),f.jsxs(Fp,{className:"gap-8",children:[f.jsx(ue,{children:f.jsxs("a",{href:"/timeline/timeline",className:"button",children:[f.jsx(q3,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.whatsnew")})]})}),f.jsx(ue,{children:f.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[f.jsx(t5,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.classMembers")})]})}),f.jsx(ue,{children:f.jsxs("a",{href:"/welcome",className:"button",children:[f.jsx(op,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.myapps")})]})})]})]})})})]}):f.jsx(eu,{className:"navbar-expand-md",children:f.jsxs("div",{className:"container-fluid",children:[f.jsx(mp,{src:`${t}/img/illustrations/logo.png`}),f.jsx("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:p}),f.jsxs("ul",{className:"navbar-nav",children:[f.jsx(ue,{children:f.jsx(vs,{link:"/timeline/timeline",translate:n("navbar.home"),children:f.jsx($3,{color:"#fff"})})}),f.jsxs(ue,{className:"position-relative",ref:S,id:v,"aria-haspopup":"true","aria-expanded":g,children:[f.jsx(vs,{link:"/welcome",translate:n("navbar.applications"),children:f.jsx(op,{color:"#fff"})}),f.jsxs(rf,{className:"top-100 widget",id:v,isVisible:g,children:[f.jsx(_E,{children:f.jsx(zE,{bookmarkedApps:y})}),f.jsx(IE,{className:"widget-footer border-top border-ghost",children:f.jsx($E,{})})]})]}),R&&f.jsx(ue,{children:f.jsxs(vs,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[f.jsx(ap,{color:"#fff"}),D&&f.jsx(Jl,{children:r})]})}),i&&f.jsx(ue,{children:f.jsxs(vs,{className:"position-relative",link:s,translate:n("conversation"),children:[f.jsx(ap,{color:"#fff"}),D&&f.jsx(Jl,{children:r})]})}),f.jsxs(ue,{children:[f.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{u(!0)},children:[f.jsx(B3,{color:"#fff"}),f.jsx(Cs,{children:n("support")})]}),f.jsx(em,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(ue,{children:f.jsxs("div",{className:"dropdown",children:[f.jsx("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!L,"aria-label":n("navbar.open.menu"),onClick:M,children:f.jsx(hc,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),f.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${L?"":"show"}`,id:"dropdown-navbar",children:[k&&f.jsx(ue,{children:f.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[f.jsx(M3,{className:"icon community"}),f.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),P?f.jsx(vR,{}):null,f.jsx(ue,{children:f.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[f.jsx(rp,{alt:b,size:"sm",src:w,variant:"circle",className:"bg-white",width:"32",height:"32"}),f.jsx("span",{className:"nav-text",children:n("navbar.myaccount")})]})}),f.jsx(ue,{children:f.jsx("hr",{className:"dropdown-divider"})}),f.jsx(ue,{children:f.jsxs("a",{href:"/auth/logout?callback=",className:"nav-link dropdown-item",children:[f.jsx(ip,{className:"icon logout"}),f.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};py.displayName="Header";const yR=py;function my({children:e,className:t,...n}){const r=H("container-fluid",t);return f.jsx("main",{className:r,...n,children:e})}my.displayName="Main";const gy=({children:e,...t})=>{const{theme:n}=_d();return f.jsxs(f.Fragment,{children:[f.jsx(yR,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),f.jsx(my,{className:H("d-flex flex-column bg-white",{"rounded-4 border":n==null?void 0:n.is1d,"mt-24":n==null?void 0:n.is1d}),...t,children:e}),f.jsx(L4,{toastOptions:{position:"top-right"}})]})};gy.displayName="Layout";const wR=gy,xR=function(){return null};var vy,tm=Pi;vy=tm.createRoot,tm.hydrateRoot;const It=document.querySelector("[data-ode-app]");let ys;function fl(){var e;if(ys)return ys;if(ys={app:fo.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=It==null?void 0:It.dataset)!=null&&e.odeApp){const{odeApp:t}=It.dataset;try{const n=JSON.parse(t);Object.assign(ys,n)}catch(n){console.error("[AppParams] could not parse app params from root data attributes:",It==null?void 0:It.dataset,n)}}else console.error("[AppParams] could not found app params from root data attributes:",It==null?void 0:It.dataset);return ys}const nm=e=>{let t;const n=new Set,r=(l,u)=>{const c=typeof l=="function"?l(t):l;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(h=>h(t,d))}},s=()=>t,a={setState:r,getState:s,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(r,s,a),a},SR=e=>e?nm(e):nm;var yy={exports:{}},wy={};/**
|
|
227
227
|
* @license React
|
package/dist/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ode-explorer=1.0-SNAPSHOT
|
|
1
|
+
ode-explorer=1.0-SNAPSHOT 06/11/2023 13:40:53
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ode-explorer",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Open Digital Education Explorer",
|
|
5
5
|
"homepage": "https://github.com/opendigitaleducation/explorer#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@edifice-ui/icons": "
|
|
32
|
-
"@edifice-ui/react": "
|
|
31
|
+
"@edifice-ui/icons": "1.1.1",
|
|
32
|
+
"@edifice-ui/react": "1.1.1",
|
|
33
33
|
"@react-spring/web": "9.7.3",
|
|
34
34
|
"@tanstack/react-query": "4.32.6",
|
|
35
35
|
"dayjs": "1.11.9",
|