ode-explorer 2.1.1-develop-wl.202502041729 → 2.1.1-objectstorage.202502051148
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/index.js +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -225,7 +225,7 @@ to {
|
|
|
225
225
|
}
|
|
226
226
|
`,v$1=16,De$1=({reverseOrder:tt,position:et="top-center",toastOptions:rt,gutter:nt,children:st,containerStyle:ot,containerClassName:at})=>{let{toasts:lt,handlers:ut}=O$1(rt);return reactExports.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:v$1,left:v$1,right:v$1,bottom:v$1,pointerEvents:"none",...ot},className:at,onMouseEnter:ut.startPause,onMouseLeave:ut.endPause},lt.map(ct=>{let dt=ct.position||et,ht=ut.calculateOffset(ct,{reverseOrder:tt,gutter:nt,defaultPosition:et}),ft=Ee$1(dt,ht);return reactExports.createElement(ve$1,{id:ct.id,key:ct.id,onHeightUpdate:ut.updateHeight,className:ct.visible?Re$1:"",style:ft},ct.type==="custom"?f$1(ct.message,ct):st?st(ct):reactExports.createElement(C$1,{toast:ct,position:dt}))}))},kt=c$1;const DEFAULT_POSITION="top-right";function useToast(){return{success:(tt,et)=>kt.custom(jsxRuntimeExports.jsx(Alert,{type:"success",isToast:!0,isDismissible:et==null?void 0:et.isDismissible,className:"mb-12",children:tt}),{id:et==null?void 0:et.id,duration:et==null?void 0:et.duration,position:(et==null?void 0:et.position)??DEFAULT_POSITION}),error:(tt,et)=>kt.custom(jsxRuntimeExports.jsx(Alert,{type:"danger",isToast:!0,isDismissible:et==null?void 0:et.isDismissible,className:"mb-12",children:tt}),{id:et==null?void 0:et.id,duration:et==null?void 0:et.duration,position:(et==null?void 0:et.position)??DEFAULT_POSITION}),info:(tt,et)=>kt.custom(jsxRuntimeExports.jsx(Alert,{type:"info",isToast:!0,isDismissible:et==null?void 0:et.isDismissible,className:"mb-12",children:tt}),{id:et==null?void 0:et.id,duration:et==null?void 0:et.duration,position:(et==null?void 0:et.position)??DEFAULT_POSITION}),warning:(tt,et)=>kt.custom(jsxRuntimeExports.jsx(Alert,{type:"warning",isToast:!0,isDismissible:et==null?void 0:et.isDismissible,className:"mb-12",children:tt}),{id:et==null?void 0:et.id,duration:et==null?void 0:et.duration,position:(et==null?void 0:et.position)??DEFAULT_POSITION}),loading:kt.loading,dismiss:tt=>kt.dismiss(tt),remove:tt=>kt.remove(tt)}}const useHttpErrorToast=tt=>{const et=reactExports.useRef(),rt=useToast(),{t:nt}=useTranslation();return reactExports.useEffect(()=>{const st=odeServices.notify().events().subscribe(LAYER_NAME.TRANSPORT,ot=>{var at,lt;et.current=nt(((lt=(at=ot==null?void 0:ot.data)==null?void 0:at.payload)==null?void 0:lt.error)||ot.data.response.statusText),rt.error(React$4.createElement("div",{children:[et.current]}),tt)});return()=>st.revoke()},[nt,rt]),et.current};function useIsAdml(){const[tt,et]=reactExports.useState(!1);reactExports.useEffect(()=>{rt()},[]);const rt=reactExports.useCallback(async()=>{const nt=await odeServices.session().isAdml();et(nt)},[]);return{isAdml:tt}}function useKeyPress(tt,et){const rt=reactExports.useCallback(({code:nt})=>{et.includes(nt)&&tt()},[tt,et]);reactExports.useEffect(()=>(window.addEventListener("keydown",rt),()=>{window.removeEventListener("keydown",rt)}),[rt])}const useLibraryUrl=()=>{var tt;const{user:et,appCode:rt}=useEdificeClient(),nt=e$3[rt],st=et==null?void 0:et.apps.find(ct=>ct.isExternal&&ct.address.includes("library"));if(!st)return null;const ot=(tt=st.address)==null?void 0:tt.split("?");if(!ot||ot.length<2)return null;let at=ot[0];at.endsWith("/")||(at=`${at}/`);const lt=ot==null?void 0:ot[1],ut=`application%5B0%5D=${nt}&page=1&sort_field=views&sort_order=desc`;return`${at}search/?${lt}&${ut}`};function useScrollToTop(){const tt=document.querySelector("html");return()=>{tt&&tt.scrollIntoView()}}function useToggle(tt=!1){const[et,rt]=reactExports.useState(tt),nt=reactExports.useCallback(()=>{rt(st=>!st)},[]);return[et,nt]}function useTrapFocus(tt){const et=reactExports.useRef(null),rt='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return reactExports.useEffect(()=>{if(!tt)return;const nt=et.current,st=nt.querySelectorAll(rt)[0],ot=nt.querySelectorAll(rt),at=et&&(ot==null?void 0:ot[ot.length-1]),lt=ut=>{ut.key==="Tab"&&(ut.shiftKey?document.activeElement===st&&(at.focus(),ut.preventDefault()):document.activeElement===at&&(st.focus(),ut.preventDefault()))};if(nt)return nt.addEventListener("keydown",lt),()=>{nt.removeEventListener("keydown",lt)}},[tt]),et}const EdificeThemeContext=reactExports.createContext(null);function useEdificeTheme(){const tt=reactExports.useContext(EdificeThemeContext);if(!tt)throw new Error("Cannot be used outside of EdificeThemeProvider");return tt}function useUser(){const{user:tt,userDescription:et}=useEdificeClient(),{theme:rt}=useEdificeTheme();function nt(){let st=et==null?void 0:et.picture;return(!st||st==="no-avatar.jpg"||st==="no-avatar.svg")&&(st=`${rt==null?void 0:rt.basePath}/img/illustrations/no-avatar.svg`),st}return{user:tt,avatar:nt(),userDescription:et}}const useWorkspaceFile=()=>({createOrUpdate:async({alt:tt,uri:et,blob:rt,legend:nt,parentId:st,application:ot,visibility:at})=>{const lt=/\/workspace\/document\/([0-9a-fA-F-]+)/,ut=(et??"").match(lt);if(ut&&ut.length===2){const ct=ut[1],dt=await odeServices.workspace().searchDocuments({filter:"all",id:ct,limit:1}),ht=dt.length?dt[0].name:void 0;await odeServices.workspace().updateFile(ct,rt,{alt:tt,legend:nt,name:ht});const ft=(await odeServices.workspace().searchDocuments({filter:"all",id:ct,limit:1}))[0];return{file:ft,src:`/workspace/${ft.public?"pub/":""}document/${ct}`}}else{const ct=await odeServices.workspace().saveFile(rt,{application:ot,parentId:st,visibility:at});return`/workspace/${ct.public?"pub/":""}document/${ct._id}`}},create:async(tt,et)=>await odeServices.workspace().saveFile(tt,et),remove:async tt=>!tt||Array.isArray(tt)&&tt.length===0?Promise.resolve():await odeServices.workspace().deleteFile(Array.isArray(tt)?tt:[tt])}),useUpload=(tt,et="media-library")=>{const[rt,nt]=reactExports.useState({}),{browser:st,device:ot}=useBrowserInfo(navigator.userAgent),{create:at}=useWorkspaceFile(),lt=reactExports.useCallback(yt=>rt[s$2(yt)],[rt]),ut=(yt,vt)=>{nt(Et=>{const bt=s$2(yt);return{...Et,[bt]:vt}})},ct=yt=>{nt(vt=>{const Et=s$2(yt),{[Et]:bt,...St}=vt;return St})};async function dt(yt,vt){ut(yt,"loading");try{let Et;return et==="media-library"&&yt.type.includes("video")?Et=await ft(yt,{filename:yt.name,...vt}):Et=await at(yt,{application:et,visibility:tt}),ut(yt,"success"),Et}catch(Et){return console.error(Et),ut(yt,"error"),null}}async function ht(yt,vt){ut(yt,"loading");try{let Et;if(yt.type.includes("video"))Et=await ft(yt,vt);else throw new Error(ERROR_CODE.NOT_SUPPORTED);return ut(yt,"success"),Et}catch(Et){return console.error(Et),ut(yt,"error"),null}}const ft=async(yt,vt)=>{const Et={data:{device:ot.type,browser:{name:st.name,version:st.version},url:window.location.hostname,file:yt,filename:(vt==null?void 0:vt.filename)??"filename",weight:yt.size},appCode:et,captation:!(yt instanceof File),duration:(vt==null?void 0:vt.duration)??0},bt=await odeServices.video().upload(Et);if(bt.state==="succeed")return{_id:bt.videoworkspaceid,file:bt.videoid,name:Et.data.filename,eType:"file",eParent:"",children:[],created:new Date,_shared:[],_isShared:!1,owner:{userId:"",displayName:""}};throw bt.state==="error"?new Error(bt.code||"Error while uploading video"):new Error("Video encoding is still running")};function xt(yt,vt,Et){return s$2(vt,s$2(yt)),dt(vt,Et)}return{getUploadStatus:lt,setUploadStatus:ut,clearUploadStatus:ct,uploadFile:dt,uploadAlternateFile:xt,uploadBlob:ht}},useUploadFiles=({handleOnChange:tt,visibility:et,application:rt})=>{const[nt,st]=reactExports.useState([]),[ot,at]=reactExports.useState(void 0),{files:lt,deleteFile:ut,replaceFileAt:ct}=useDropzoneContext(),{remove:dt,createOrUpdate:ht}=useWorkspaceFile(),{getUploadStatus:ft,setUploadStatus:xt,clearUploadStatus:yt,uploadFile:vt,uploadAlternateFile:Et}=useUpload(et,rt),bt=reactExports.useCallback(Pt=>{Pt.forEach(async(It,jt)=>{if(It==null)return;let Dt;if(It.type.startsWith("image"))try{const Vt=await p$3.resizeImageFile(It);Dt=await Et(It,Vt),ct(jt,Vt)}catch(Vt){console.error(Vt)}Dt||(Dt=await vt(It)),Dt&&st(Vt=>[...Vt,Dt])})},[Et,vt,ct]);reactExports.useEffect(()=>{let Pt=0;const It=lt.map(jt=>{if(Pt>=5)return null;const Dt=ft(jt);return Dt==="loading"&&Pt++,Dt?null:jt});It.forEach(jt=>jt&&xt(jt,"idle")),bt(It)},[lt,nt,ft,xt,bt]),reactExports.useEffect(()=>{const Pt=St(lt,nt);tt(Pt)},[nt]);const St=(Pt,It)=>{const jt=Pt.reduce((Dt,Vt,Ft)=>(Dt[Vt.name]=Ft,Dt),{});return It.sort((Dt,Vt)=>jt[Dt.name]-jt[Vt.name])};async function wt(Pt){const It=nt.find(jt=>jt.name===Pt.name);It&&(await dt(It),yt(Pt),st(jt=>jt.filter(Dt=>Dt.name!==(It==null?void 0:It.name)))),ut(Pt)}async function Rt({blob:Pt,legend:It,altText:jt}){if(ot)try{const Dt=await ht({blob:Pt,legend:It,alt:jt,uri:Ct(ot)});Dt&&typeof Dt=="object"&&st(Vt=>Vt.map(Ft=>Ft._id===Dt.file._id?{...Dt.file,title:It,alt:jt}:Ft))}finally{at(void 0)}}const Ct=(Pt,It)=>{const jt=`/workspace/${Pt!=null&&Pt.public?"pub/":""}document/${Pt==null?void 0:Pt._id}`;return Pt?It?m$2(jt):jt:""};return{files:lt,getUploadStatus:ft,clearUploadStatus:yt,uploadedFiles:nt,editingImage:ot,setEditingImage:at,getUrl:Ct,updateImage:Rt,uploadFile:vt,removeFile:wt}};function useWorkspaceSearch(tt,et,rt,nt){const st=useHasWorkflow("org.entcore.workspace.controllers.WorkspaceController|listDocuments"),ot=useHasWorkflow("org.entcore.workspace.controllers.WorkspaceController|listFolders");function at(dt,ht){switch(ht.type){case"update":{const ft=findNodeById(dt,ht.folderId);return ft&&(ft.children=ht.subfolders.map(xt=>({id:xt._id||"",name:xt.name})),ft.files=ht.files),{...dt}}default:throw Error("[useWorkspaceSearch] Unknown action type: "+ht.type)}}const[lt,ut]=reactExports.useReducer(at,{id:tt,name:et,section:!0}),ct=reactExports.useCallback(async dt=>{if(st&&ot){const ht=dt===tt?"":dt,ft=await odeServices.workspace().listDocuments(rt,ht),xt=[],yt=[];ft.filter(vt=>{if(!nt||vt.eType==="folder")return!0;const Et=DocumentHelper.getRole(vt);return typeof nt=="string"?nt===Et:Array.isArray(nt)?nt.findIndex(bt=>bt===Et)>=0:!1}).forEach(vt=>{vt.eType==="folder"?xt.push(vt):yt.push(vt)}),ut({folderId:dt,subfolders:xt,files:yt,type:"update"})}},[st,ot,tt,rt,nt]);return{root:lt,loadContent:ct}}function useXitiTrackPageLoad(){const[tt,et]=reactExports.useState("pending"),{currentApp:rt}=useEdificeClient();reactExports.useEffect(()=>{nt()},[]);const nt=async()=>{if(!rt){et("[Xiti] Error, currentApp is not defined.");return}try{await odeServices.analytics().trackPageLoad(window.location.pathname,rt),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),et(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(st){console.error("[Xiti] Error Tracking Page Load",st),et(`[Xiti] Error Tracking Page Load: ${st}`)}};return{xitiStatus:tt}}function useZendeskGuide(){const{currentLanguage:tt}=useEdificeClient(),{userDescription:et}=useUser(),{isAdml:rt}=useIsAdml(),{theme:nt}=useEdificeTheme(),st=window.innerWidth<=768,ot=useHasWorkflow("net.atos.entng.support.controllers.DisplayController|view"),[at,lt]=reactExports.useState(""),[ut,ct]=reactExports.useState(void 0),dt=()=>{const ht=at.split("/");let ft="",xt="";if(ut!=null&&ut.labels&&Object.keys(ut==null?void 0:ut.labels).length>0&&ht.length>1){for(let yt=1;yt<ht.length;yt++)ht[yt].length>0&&ht[yt].match(/\d/)==null&&(ft.length===0?ft=ht[yt]:ft=ft+"/"+ht[yt]);ut!=null&&ut.labels&&Object.prototype.hasOwnProperty.call(ut==null?void 0:ut.labels,ft)?xt=ut==null?void 0:ut.labels[ft]:ut!=null&&ut.default&&String(ut.default).length>0&&(xt=ut==null?void 0:ut.default)}else ut!=null&&ut.default&&String(ut==null?void 0:ut.default).length>0&&(xt=ut==null?void 0:ut.default);if(ht.includes("collaborativewall")&&ht.includes("id")&&st&&window.zE("webWidget","hide"),xt.includes("${adml}")&&(rt?xt=xt.replace("${adml}","adml"):xt=xt.replace("/${adml}","")),xt.includes("${profile}")){const yt=et==null?void 0:et.profiles;xt=xt.replace("${profile}",yt[0].toLowerCase())}xt.includes("${theme")&&(nt!=null&&nt.is1d?xt=xt.replace("${theme}","1D"):xt=xt.replace("${theme}","2D")),window.zE("webWidget","helpCenter:setSuggestions",{labels:[xt]})};return reactExports.useEffect(()=>{window.location.pathname!==at&<(window.location.pathname),!(ut===void 0||Object.keys(ut).length===0)&&dt()},[window.location.pathname,ut]),reactExports.useEffect(()=>{document.getElementById("ze-snippet")||ot===void 0||(async()=>{const ht=await odeServices.http().get("/zendeskGuide/config");if(ht&&ht.key&&ht.key!==""){const ft=document.createElement("script");ft.id="ze-snippet",ft.src=`https://static.zdassets.com/ekr/snippet.js?key=${ht.key}`,document.body.appendChild(ft).onload=()=>{tt==="es"?window.zE(function(){window.zE.setLocale("es-419")}):window.zE(function(){window.zE.setLocale("fr")}),Object.keys(ht.module).length>0&&ct(ht.module),window.zE("webWidget","show"),window.zE("webWidget","updateSettings",{webWidget:{color:{theme:ht.color||"#ffc400"},zIndex:3,launcher:{mobile:{labelVisible:!0}},contactForm:{suppress:!ot},helpCenter:{messageButton:{"*":"Assistance ENT","es-419":"Asistencia ENT"}}}}),window.addEventListener("scroll",()=>{window.zE("webWidget","updateSettings",{webWidget:{launcher:{mobile:{labelVisible:window.scrollY<=5}}}})}),window.zE("webWidget:on","open",function(){ot&&window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!1}}})}),window.zE("webWidget:on","userEvent",function(xt){const yt=xt.category,vt=xt.action,Et=xt.properties;vt==="Contact Form Shown"&&yt==="Zendesk Web Widget"&&Et&&Et.name==="contact-form"&&ot&&(window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!0}}}),window.zE("webWidget","close"),window.open("/support","_blank"))})}}})()},[ot]),null}const ComboboxTrigger=({placeholder:tt,value:et="",searchMinLength:rt=3,handleSearchInputChange:nt})=>{const{triggerProps:st,itemProps:ot,setVisible:at}=useDropdownContext(),lt={...st,role:"combobox",onClick:()=>{et.length>=rt&&at(!0)},onChange:nt};return reactExports.useEffect(()=>{at(et.length>=rt)},[at,et,rt]),jsxRuntimeExports.jsx(FormControl,{className:"d-flex align-items-center",id:"search",children:jsxRuntimeExports.jsx(Input,{...lt,className:"max-w-512",noValidationIcon:!0,placeholder:tt,size:"md",type:"search",onKeyDown:ot.onMenuItemKeyDown})})},Combobox=({onSearchResultsChange:tt,onSearchInputChange:et,options:rt,value:nt,isLoading:st,noResult:ot,searchMinLength:at,placeholder:lt})=>{const{t:ut}=useTranslation(),[ct,dt]=reactExports.useState([]);reactExports.useEffect(()=>{tt(ct)},[ct]);const ht=xt=>{dt([xt])},ft=()=>st?jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center p-4",children:[jsxRuntimeExports.jsx(Loading,{isLoading:st}),jsxRuntimeExports.jsx("span",{className:"ps-4",children:ut("explorer.search.pending")})]}):ot?jsxRuntimeExports.jsx("div",{className:"p-4",children:ut("portal.no.result")}):rt.map((xt,yt)=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(Dropdown.Item,{type:"select",icon:xt.icon,onClick:()=>ht(xt.value),children:xt.label}),yt<rt.length-1&&jsxRuntimeExports.jsx(Dropdown.Separator,{})]},yt));return jsxRuntimeExports.jsxs(Dropdown,{block:!0,children:[jsxRuntimeExports.jsx(Combobox.Trigger,{placeholder:lt,searchMinLength:at,handleSearchInputChange:et,value:nt}),jsxRuntimeExports.jsx(Dropdown.Menu,{children:ft()})]})};Combobox.Trigger=ComboboxTrigger;const Grid=({children:tt,className:et,...rt})=>{const nt=clsx("grid",et);return jsxRuntimeExports.jsx("div",{className:nt,...rt,children:tt})},Column=({sm:tt,md:et,lg:rt,xl:nt,children:st,className:ot,as:at,...lt})=>{const ut=at||"div",ct=clsx({[`g-col-${tt}`]:tt,[et?`g-col-md-${et}`:""]:et,[rt?`g-col-lg-${rt}`:""]:rt,[nt?`g-col-xl-${nt}`:""]:nt},ot);return jsxRuntimeExports.jsx(ut,{className:ct,...lt,children:st})};Grid.Col=Column;const SvgIconCommunity=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M19.935 17.51q1.088 0 1.868.792.78.794.78 1.898 0 1.106-.78 1.898-.78.793-1.844.793t-1.869-.793a2.52 2.52 0 0 1-.78-1.922q0-.432.19-.936l-3.997-2.931q-1.16 1.2-2.79 1.2-1.633 0-2.791-1.176-1.16-1.177-1.183-2.86 0-.215.071-.624l-3.168-1.057a1.25 1.25 0 0 1-.852.337q-.567 0-.946-.385a1.32 1.32 0 0 1-.378-.96q0-.578.378-.938.38-.36.946-.384.474 0 .804.312.33.313.45.745l3.192 1.08a3.8 3.8 0 0 1 1.443-1.56 3.84 3.84 0 0 1 2.033-.577q1.23 0 2.27.745l4.706-4.781q-.378-.72-.378-1.321 0-1.106.78-1.898.78-.793 1.869-.793t1.844.793q.758.792.78 1.898a2.42 2.42 0 0 1-.78 1.873q-.804.77-1.868.793-.616 0-1.3-.408l-4.707 4.805q.734 1.056.733 2.306 0 .888-.402 1.753l3.997 2.907q.78-.624 1.679-.624"})]}),SvgIconDisconnect=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M22.996 13.153q0 2.09-.873 3.987a10.6 10.6 0 0 1-2.336 3.292q-1.462 1.393-3.516 2.21t-4.26.817-4.287-.817-3.49-2.21a12.3 12.3 0 0 1-2.362-3.291A8.1 8.1 0 0 1 1 13.153q0-2.451 1.155-4.589t3.234-3.627q.616-.433 1.386-.337t1.181.673q.462.553.36 1.273-.104.72-.72 1.13a7 7 0 0 0-2.155 2.426 6.38 6.38 0 0 0-.18 5.717 7 7 0 0 0 1.566 2.186q.975.913 2.335 1.466a7.5 7.5 0 0 0 2.85.552 7.3 7.3 0 0 0 2.823-.552 8.3 8.3 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186q.538-1.274.564-2.666 0-1.635-.77-3.051T16.4 7.675a1.75 1.75 0 0 1-.719-1.129q-.128-.697.36-1.273.436-.577 1.206-.673t1.36.337q2.079 1.466 3.234 3.627a9.6 9.6 0 0 1 1.155 4.589M13.833 2.846v8.6q0 .698-.54 1.202-.538.505-1.283.505t-1.309-.505q-.564-.505-.539-1.201v-8.6q0-.697.54-1.202.538-.504 1.308-.504t1.284.504.539 1.201"})]}),SvgIconHome=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M20.584 13.536v7.458q0 .42-.294.699a1.06 1.06 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.85.85 0 0 1-.668-.307 1.16 1.16 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375q.027.027.027.111m3.31-1.09-.908 1.146a.54.54 0 0 1-.32.168h-.054a.6.6 0 0 1-.32-.084L11.989 4.682 1.687 13.676a.5.5 0 0 1-.347.084.54.54 0 0 1-.32-.168l-.935-1.145a.52.52 0 0 1-.08-.363.6.6 0 0 1 .16-.335l10.703-9.33q.48-.42 1.121-.419.64 0 1.148.419l3.63 3.156V2.56q0-.224.133-.363a.46.46 0 0 1 .347-.14h2.856q.214 0 .347.14a.5.5 0 0 1 .134.363v6.34l3.256 2.85q.16.111.16.335 0 .223-.107.363"})]}),SvgIconMyApps=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.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-.216m7.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-.216m7.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-.216m-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-.216m7.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-.216m7.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-.216M1.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-.24m7.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-.24m7.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-.24"})]}),SvgIconNeoAssistance=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.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 12M7.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.67.67 0 0 1-.945.121L7.27 8.63a.72.72 0 0 1-.147-.963M9.76 17.97c0-1.12.883-2.03 1.969-2.03 1.085 0 1.968.91 1.968 2.03S12.814 20 11.73 20c-1.086 0-1.969-.91-1.969-2.03",clipRule:"evenodd"})]}),SvgIconNeoMessaging=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"m.5 21.257 7.46-8.216 4.052 2.403 4.052-2.403 7.46 8.216zm0-2.738V8.573l5.848 3.531zm0-12.084V3.048h23.024v3.387l-11.512 6.847zm17.176 5.67 5.848-3.532v9.946z"})]}),SvgIconNewRelease=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M13.07 13.07V6.54h-2.14v6.53zm0 4.4v-2.2h-2.14v2.2zM24 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"})]}),SvgIconOneAssistance=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M11.685 2C8.66 2 6.7 3.277 5.164 5.556A.96.96 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-6m-.38 14.588c-1.447 0-2.625 1.214-2.625 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706"})]}),SvgIconOneMessaging=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.051 12.366a456 456 0 0 1-2.746-1.822A6.5 6.5 0 0 1 .74 9.067q-.737-.94-.737-1.745a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752Q1.12 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6q.636.6.636 1.446 0 1.01-.657 1.93a6.2 6.2 0 0 1-1.632 1.567q-5.037 3.338-6.267 4.156l-.242.167-.323.222q-.436.303-.724.487-.288.183-.696.415a4 4 0 0 1-.77.345 2.2 2.2 0 0 1-.67.115h-.026a2.2 2.2 0 0 1-.67-.116 4 4 0 0 1-.77-.344q-.41-.23-.697-.415a30 30 0 0 1-.723-.487q-.433-.3-.565-.389-1.215-.817-3.51-2.334m10.943 3.962q2.276-1.578 6.667-4.416c.478-.306.927-.68 1.339-1.113v10.16q0 .845-.63 1.446c-.437.405-.97.614-1.512.594H2.149c-.545.02-1.08-.192-1.52-.601C.21 21.996 0 21.52 0 20.95V10.8c.416.437.871.81 1.356 1.113q4.848 3.148 6.656 4.416.768.537 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.7 7.7 0 0 0 1.265-.614q.48-.3 1.243-.837",clipRule:"evenodd"})]}),SvgIconUserbook=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.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"})]});function useHeader({user:tt,avatar:et}){const{appCode:rt}=useEdificeClient(),{t:nt}=useTranslation(),{theme:st}=useEdificeTheme(),ot=nt(rt),[at,lt]=reactExports.useState(!0),[ut,ct]=useHover$1(),dt=reactExports.useId(),ht=reactExports.useId(),ft=et,xt=tt==null?void 0:tt.username,yt=nt("welcome",{username:tt==null?void 0:tt.firstName}),vt=useBookmark(),Et=useHasWorkflow("net.atos.entng.community.controllers.CommunityController|view"),bt=useHasWorkflow("org.entcore.conversation.controllers.ConversationController|view"),St=useHasWorkflow("fr.openent.searchengine.controllers.SearchEngineController|view"),wt=reactExports.useCallback(()=>{lt(!at)},[at]),Rt=async()=>{await odeServices.session().logout(),window.location.href=(st==null?void 0:st.logoutCallback)??"/auth/login"};return reactExports.useMemo(()=>({title:ot,bookmarkedApps:vt,appsRef:ut,isAppsHovered:ct,popoverAppsId:dt,popoverSearchId:ht,userAvatar:ft,userName:xt,welcomeUser:yt,communityWorkflow:Et,conversationWorflow:bt,searchWorkflow:St,isCollapsed:at,toggleCollapsedNav:wt,handleLogout:Rt}),[ut,vt,Et,bt,Rt,ct,at,dt,ht,St,ot,wt,ft,xt,yt])}var updateQueue=makeQueue(),raf=tt=>schedule(tt,updateQueue),writeQueue=makeQueue();raf.write=tt=>schedule(tt,writeQueue);var onStartQueue=makeQueue();raf.onStart=tt=>schedule(tt,onStartQueue);var onFrameQueue=makeQueue();raf.onFrame=tt=>schedule(tt,onFrameQueue);var onFinishQueue=makeQueue();raf.onFinish=tt=>schedule(tt,onFinishQueue);var timeouts=[];raf.setTimeout=(tt,et)=>{const rt=raf.now()+et,nt=()=>{const ot=timeouts.findIndex(at=>at.cancel==nt);~ot&&timeouts.splice(ot,1),pendingCount-=~ot?1:0},st={time:rt,handler:tt,cancel:nt};return timeouts.splice(findTimeout(rt),0,st),pendingCount+=1,start$3(),st};var findTimeout=tt=>~(~timeouts.findIndex(et=>et.time>tt)||~timeouts.length);raf.cancel=tt=>{onStartQueue.delete(tt),onFrameQueue.delete(tt),onFinishQueue.delete(tt),updateQueue.delete(tt),writeQueue.delete(tt)};raf.sync=tt=>{sync=!0,raf.batchedUpdates(tt),sync=!1};raf.throttle=tt=>{let et;function rt(){try{tt(...et)}finally{et=null}}function nt(...st){et=st,raf.onStart(rt)}return nt.handler=tt,nt.cancel=()=>{onStartQueue.delete(rt),et=null},nt};var nativeRaf=typeof window<"u"?window.requestAnimationFrame:()=>{};raf.use=tt=>nativeRaf=tt;raf.now=typeof performance<"u"?()=>performance.now():Date.now;raf.batchedUpdates=tt=>tt();raf.catch=console.error;raf.frameLoop="always";raf.advance=()=>{raf.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):update$1()};var ts=-1,pendingCount=0,sync=!1;function schedule(tt,et){sync?(et.delete(tt),tt(0)):(et.add(tt),start$3())}function start$3(){ts<0&&(ts=0,raf.frameLoop!=="demand"&&nativeRaf(loop$1))}function stop$3(){ts=-1}function loop$1(){~ts&&(nativeRaf(loop$1),raf.batchedUpdates(update$1))}function update$1(){const tt=ts;ts=raf.now();const et=findTimeout(ts);if(et&&(eachSafely(timeouts.splice(0,et),rt=>rt.handler()),pendingCount-=et),!pendingCount){stop$3();return}onStartQueue.flush(),updateQueue.flush(tt?Math.min(64,ts-tt):16.667),onFrameQueue.flush(),writeQueue.flush(),onFinishQueue.flush()}function makeQueue(){let tt=new Set,et=tt;return{add(rt){pendingCount+=et==tt&&!tt.has(rt)?1:0,tt.add(rt)},delete(rt){return pendingCount-=et==tt&&tt.has(rt)?1:0,tt.delete(rt)},flush(rt){et.size&&(tt=new Set,pendingCount-=et.size,eachSafely(et,nt=>nt(rt)&&tt.add(nt)),pendingCount+=tt.size,et=tt)}}}function eachSafely(tt,et){tt.forEach(rt=>{try{et(rt)}catch(nt){raf.catch(nt)}})}var __defProp=Object.defineProperty,__export=(tt,et)=>{for(var rt in et)__defProp(tt,rt,{get:et[rt],enumerable:!0})},globals_exports={};__export(globals_exports,{assign:()=>assign$1,colors:()=>colors,createStringInterpolator:()=>createStringInterpolator,skipAnimation:()=>skipAnimation,to:()=>to,willAdvance:()=>willAdvance});function noop$2(){}var defineHidden=(tt,et,rt)=>Object.defineProperty(tt,et,{value:rt,writable:!0,configurable:!0}),is$2={arr:Array.isArray,obj:tt=>!!tt&&tt.constructor.name==="Object",fun:tt=>typeof tt=="function",str:tt=>typeof tt=="string",num:tt=>typeof tt=="number",und:tt=>tt===void 0};function isEqual(tt,et){if(is$2.arr(tt)){if(!is$2.arr(et)||tt.length!==et.length)return!1;for(let rt=0;rt<tt.length;rt++)if(tt[rt]!==et[rt])return!1;return!0}return tt===et}var each=(tt,et)=>tt.forEach(et);function eachProp(tt,et,rt){if(is$2.arr(tt)){for(let nt=0;nt<tt.length;nt++)et.call(rt,tt[nt],`${nt}`);return}for(const nt in tt)tt.hasOwnProperty(nt)&&et.call(rt,tt[nt],nt)}var toArray=tt=>is$2.und(tt)?[]:is$2.arr(tt)?tt:[tt];function flush(tt,et){if(tt.size){const rt=Array.from(tt);tt.clear(),each(rt,et)}}var flushCalls=(tt,...et)=>flush(tt,rt=>rt(...et)),isSSR=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),createStringInterpolator,to,colors=null,skipAnimation=!1,willAdvance=noop$2,assign$1=tt=>{tt.to&&(to=tt.to),tt.now&&(raf.now=tt.now),tt.colors!==void 0&&(colors=tt.colors),tt.skipAnimation!=null&&(skipAnimation=tt.skipAnimation),tt.createStringInterpolator&&(createStringInterpolator=tt.createStringInterpolator),tt.requestAnimationFrame&&raf.use(tt.requestAnimationFrame),tt.batchedUpdates&&(raf.batchedUpdates=tt.batchedUpdates),tt.willAdvance&&(willAdvance=tt.willAdvance),tt.frameLoop&&(raf.frameLoop=tt.frameLoop)},startQueue=new Set,currentFrame=[],prevFrame=[],priority=0,frameLoop={get idle(){return!startQueue.size&&!currentFrame.length},start(tt){priority>tt.priority?(startQueue.add(tt),raf.onStart(flushStartQueue)):(startSafely(tt),raf(advance))},advance,sort(tt){if(priority)raf.onFrame(()=>frameLoop.sort(tt));else{const et=currentFrame.indexOf(tt);~et&&(currentFrame.splice(et,1),startUnsafely(tt))}},clear(){currentFrame=[],startQueue.clear()}};function flushStartQueue(){startQueue.forEach(startSafely),startQueue.clear(),raf(advance)}function startSafely(tt){currentFrame.includes(tt)||startUnsafely(tt)}function startUnsafely(tt){currentFrame.splice(findIndex(currentFrame,et=>et.priority>tt.priority),0,tt)}function advance(tt){const et=prevFrame;for(let rt=0;rt<currentFrame.length;rt++){const nt=currentFrame[rt];priority=nt.priority,nt.idle||(willAdvance(nt),nt.advance(tt),nt.idle||et.push(nt))}return priority=0,prevFrame=currentFrame,prevFrame.length=0,currentFrame=et,currentFrame.length>0}function findIndex(tt,et){const rt=tt.findIndex(et);return rt<0?tt.length:rt}var colors2={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},NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function call(...tt){return"\\(\\s*("+tt.join(")\\s*,\\s*(")+")\\s*\\)"}var rgb=new RegExp("rgb"+call(NUMBER,NUMBER,NUMBER)),rgba=new RegExp("rgba"+call(NUMBER,NUMBER,NUMBER,NUMBER)),hsl=new RegExp("hsl"+call(NUMBER,PERCENTAGE,PERCENTAGE)),hsla=new RegExp("hsla"+call(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6=/^#([0-9a-fA-F]{6})$/,hex8=/^#([0-9a-fA-F]{8})$/;function normalizeColor(tt){let et;return typeof tt=="number"?tt>>>0===tt&&tt>=0&&tt<=4294967295?tt:null:(et=hex6.exec(tt))?parseInt(et[1]+"ff",16)>>>0:colors&&colors[tt]!==void 0?colors[tt]:(et=rgb.exec(tt))?(parse255(et[1])<<24|parse255(et[2])<<16|parse255(et[3])<<8|255)>>>0:(et=rgba.exec(tt))?(parse255(et[1])<<24|parse255(et[2])<<16|parse255(et[3])<<8|parse1(et[4]))>>>0:(et=hex3.exec(tt))?parseInt(et[1]+et[1]+et[2]+et[2]+et[3]+et[3]+"ff",16)>>>0:(et=hex8.exec(tt))?parseInt(et[1],16)>>>0:(et=hex4.exec(tt))?parseInt(et[1]+et[1]+et[2]+et[2]+et[3]+et[3]+et[4]+et[4],16)>>>0:(et=hsl.exec(tt))?(hslToRgb(parse360(et[1]),parsePercentage(et[2]),parsePercentage(et[3]))|255)>>>0:(et=hsla.exec(tt))?(hslToRgb(parse360(et[1]),parsePercentage(et[2]),parsePercentage(et[3]))|parse1(et[4]))>>>0:null}function hue2rgb(tt,et,rt){return rt<0&&(rt+=1),rt>1&&(rt-=1),rt<1/6?tt+(et-tt)*6*rt:rt<1/2?et:rt<2/3?tt+(et-tt)*(2/3-rt)*6:tt}function hslToRgb(tt,et,rt){const nt=rt<.5?rt*(1+et):rt+et-rt*et,st=2*rt-nt,ot=hue2rgb(st,nt,tt+1/3),at=hue2rgb(st,nt,tt),lt=hue2rgb(st,nt,tt-1/3);return Math.round(ot*255)<<24|Math.round(at*255)<<16|Math.round(lt*255)<<8}function parse255(tt){const et=parseInt(tt,10);return et<0?0:et>255?255:et}function parse360(tt){return(parseFloat(tt)%360+360)%360/360}function parse1(tt){const et=parseFloat(tt);return et<0?0:et>1?255:Math.round(et*255)}function parsePercentage(tt){const et=parseFloat(tt);return et<0?0:et>100?1:et/100}function colorToRgba(tt){let et=normalizeColor(tt);if(et===null)return tt;et=et||0;const rt=(et&4278190080)>>>24,nt=(et&16711680)>>>16,st=(et&65280)>>>8,ot=(et&255)/255;return`rgba(${rt}, ${nt}, ${st}, ${ot})`}var createInterpolator=(tt,et,rt)=>{if(is$2.fun(tt))return tt;if(is$2.arr(tt))return createInterpolator({range:tt,output:et,extrapolate:rt});if(is$2.str(tt.output[0]))return createStringInterpolator(tt);const nt=tt,st=nt.output,ot=nt.range||[0,1],at=nt.extrapolateLeft||nt.extrapolate||"extend",lt=nt.extrapolateRight||nt.extrapolate||"extend",ut=nt.easing||(ct=>ct);return ct=>{const dt=findRange(ct,ot);return interpolate(ct,ot[dt],ot[dt+1],st[dt],st[dt+1],ut,at,lt,nt.map)}};function interpolate(tt,et,rt,nt,st,ot,at,lt,ut){let ct=ut?ut(tt):tt;if(ct<et){if(at==="identity")return ct;at==="clamp"&&(ct=et)}if(ct>rt){if(lt==="identity")return ct;lt==="clamp"&&(ct=rt)}return nt===st?nt:et===rt?tt<=et?nt:st:(et===-1/0?ct=-ct:rt===1/0?ct=ct-et:ct=(ct-et)/(rt-et),ct=ot(ct),nt===-1/0?ct=-ct:st===1/0?ct=ct+nt:ct=ct*(st-nt)+nt,ct)}function findRange(tt,et){for(var rt=1;rt<et.length-1&&!(et[rt]>=tt);++rt);return rt-1}var easings={linear:tt=>tt},$get=Symbol.for("FluidValue.get"),$observers=Symbol.for("FluidValue.observers"),hasFluidValue=tt=>!!(tt&&tt[$get]),getFluidValue=tt=>tt&&tt[$get]?tt[$get]():tt,getFluidObservers=tt=>tt[$observers]||null;function callFluidObserver(tt,et){tt.eventObserved?tt.eventObserved(et):tt(et)}function callFluidObservers(tt,et){const rt=tt[$observers];rt&&rt.forEach(nt=>{callFluidObserver(nt,et)})}var FluidValue=class{constructor(tt){if(!tt&&!(tt=this.get))throw Error("Unknown getter");setFluidGetter(this,tt)}},setFluidGetter=(tt,et)=>setHidden(tt,$get,et);function addFluidObserver(tt,et){if(tt[$get]){let rt=tt[$observers];rt||setHidden(tt,$observers,rt=new Set),rt.has(et)||(rt.add(et),tt.observerAdded&&tt.observerAdded(rt.size,et))}return et}function removeFluidObserver(tt,et){const rt=tt[$observers];if(rt&&rt.has(et)){const nt=rt.size-1;nt?rt.delete(et):tt[$observers]=null,tt.observerRemoved&&tt.observerRemoved(nt,et)}}var setHidden=(tt,et,rt)=>Object.defineProperty(tt,et,{value:rt,writable:!0,configurable:!0}),numberRegex=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,colorRegex=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,unitRegex=new RegExp(`(${numberRegex.source})(%|[a-z]+)`,"i"),rgbaRegex=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cssVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,variableToRgba=tt=>{const[et,rt]=parseCSSVariable(tt);if(!et||isSSR())return tt;const nt=window.getComputedStyle(document.documentElement).getPropertyValue(et);if(nt)return nt.trim();if(rt&&rt.startsWith("--")){const st=window.getComputedStyle(document.documentElement).getPropertyValue(rt);return st||tt}else{if(rt&&cssVariableRegex.test(rt))return variableToRgba(rt);if(rt)return rt}return tt},parseCSSVariable=tt=>{const et=cssVariableRegex.exec(tt);if(!et)return[,];const[,rt,nt]=et;return[rt,nt]},namedColorRegex,rgbaRound=(tt,et,rt,nt,st)=>`rgba(${Math.round(et)}, ${Math.round(rt)}, ${Math.round(nt)}, ${st})`,createStringInterpolator2=tt=>{namedColorRegex||(namedColorRegex=colors?new RegExp(`(${Object.keys(colors).join("|")})(?!\\w)`,"g"):/^\b$/);const et=tt.output.map(ot=>getFluidValue(ot).replace(cssVariableRegex,variableToRgba).replace(colorRegex,colorToRgba).replace(namedColorRegex,colorToRgba)),rt=et.map(ot=>ot.match(numberRegex).map(Number)),st=rt[0].map((ot,at)=>rt.map(lt=>{if(!(at in lt))throw Error('The arity of each "output" value must be equal');return lt[at]})).map(ot=>createInterpolator({...tt,output:ot}));return ot=>{var ut;const at=!unitRegex.test(et[0])&&((ut=et.find(ct=>unitRegex.test(ct)))==null?void 0:ut.replace(numberRegex,""));let lt=0;return et[0].replace(numberRegex,()=>`${st[lt++](ot)}${at||""}`).replace(rgbaRegex,rgbaRound)}},prefix="react-spring: ",once=tt=>{const et=tt;let rt=!1;if(typeof et!="function")throw new TypeError(`${prefix}once requires a function parameter`);return(...nt)=>{rt||(et(...nt),rt=!0)}},warnInterpolate=once(console.warn);function deprecateInterpolate(){warnInterpolate(`${prefix}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var warnDirectCall=once(console.warn);function deprecateDirectCall(){warnDirectCall(`${prefix}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 isAnimatedString(tt){return is$2.str(tt)&&(tt[0]=="#"||/\d/.test(tt)||!isSSR()&&cssVariableRegex.test(tt)||tt in(colors||{}))}var useIsomorphicLayoutEffect$1=isSSR()?reactExports.useEffect:reactExports.useLayoutEffect,useIsMounted=()=>{const tt=reactExports.useRef(!1);return useIsomorphicLayoutEffect$1(()=>(tt.current=!0,()=>{tt.current=!1}),[]),tt};function useForceUpdate(){const tt=reactExports.useState()[1],et=useIsMounted();return()=>{et.current&&tt(Math.random())}}function useMemoOne(tt,et){const[rt]=reactExports.useState(()=>({inputs:et,result:tt()})),nt=reactExports.useRef(),st=nt.current;let ot=st;return ot?et&&ot.inputs&&areInputsEqual(et,ot.inputs)||(ot={inputs:et,result:tt()}):ot=rt,reactExports.useEffect(()=>{nt.current=ot,st==rt&&(rt.inputs=rt.result=void 0)},[ot]),ot.result}function areInputsEqual(tt,et){if(tt.length!==et.length)return!1;for(let rt=0;rt<tt.length;rt++)if(tt[rt]!==et[rt])return!1;return!0}var useOnce=tt=>reactExports.useEffect(tt,emptyDeps),emptyDeps=[];function usePrev(tt){const et=reactExports.useRef();return reactExports.useEffect(()=>{et.current=tt}),et.current}var $node=Symbol.for("Animated:node"),isAnimated=tt=>!!tt&&tt[$node]===tt,getAnimated=tt=>tt&&tt[$node],setAnimated=(tt,et)=>defineHidden(tt,$node,et),getPayload=tt=>tt&&tt[$node]&&tt[$node].getPayload(),Animated=class{constructor(){setAnimated(this,this)}getPayload(){return this.payload||[]}},AnimatedValue=class extends Animated{constructor(tt){super(),this._value=tt,this.done=!0,this.durationProgress=0,is$2.num(this._value)&&(this.lastPosition=this._value)}static create(tt){return new AnimatedValue(tt)}getPayload(){return[this]}getValue(){return this._value}setValue(tt,et){return is$2.num(tt)&&(this.lastPosition=tt,et&&(tt=Math.round(tt/et)*et,this.done&&(this.lastPosition=tt))),this._value===tt?!1:(this._value=tt,!0)}reset(){const{done:tt}=this;this.done=!1,is$2.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,tt&&(this.lastVelocity=null),this.v0=null)}},AnimatedString=class extends AnimatedValue{constructor(tt){super(0),this._string=null,this._toString=createInterpolator({output:[tt,tt]})}static create(tt){return new AnimatedString(tt)}getValue(){const tt=this._string;return tt??(this._string=this._toString(this._value))}setValue(tt){if(is$2.str(tt)){if(tt==this._string)return!1;this._string=tt,this._value=1}else if(super.setValue(tt))this._string=null;else return!1;return!0}reset(tt){tt&&(this._toString=createInterpolator({output:[this.getValue(),tt]})),this._value=0,super.reset()}},TreeContext={dependencies:null},AnimatedObject=class extends Animated{constructor(tt){super(),this.source=tt,this.setValue(tt)}getValue(tt){const et={};return eachProp(this.source,(rt,nt)=>{isAnimated(rt)?et[nt]=rt.getValue(tt):hasFluidValue(rt)?et[nt]=getFluidValue(rt):tt||(et[nt]=rt)}),et}setValue(tt){this.source=tt,this.payload=this._makePayload(tt)}reset(){this.payload&&each(this.payload,tt=>tt.reset())}_makePayload(tt){if(tt){const et=new Set;return eachProp(tt,this._addToPayload,et),Array.from(et)}}_addToPayload(tt){TreeContext.dependencies&&hasFluidValue(tt)&&TreeContext.dependencies.add(tt);const et=getPayload(tt);et&&each(et,rt=>this.add(rt))}},AnimatedArray=class extends AnimatedObject{constructor(tt){super(tt)}static create(tt){return new AnimatedArray(tt)}getValue(){return this.source.map(tt=>tt.getValue())}setValue(tt){const et=this.getPayload();return tt.length==et.length?et.map((rt,nt)=>rt.setValue(tt[nt])).some(Boolean):(super.setValue(tt.map(makeAnimated)),!0)}};function makeAnimated(tt){return(isAnimatedString(tt)?AnimatedString:AnimatedValue).create(tt)}function getAnimatedType(tt){const et=getAnimated(tt);return et?et.constructor:is$2.arr(tt)?AnimatedArray:isAnimatedString(tt)?AnimatedString:AnimatedValue}var withAnimated=(tt,et)=>{const rt=!is$2.fun(tt)||tt.prototype&&tt.prototype.isReactComponent;return reactExports.forwardRef((nt,st)=>{const ot=reactExports.useRef(null),at=rt&&reactExports.useCallback(yt=>{ot.current=updateRef(st,yt)},[st]),[lt,ut]=getAnimatedState(nt,et),ct=useForceUpdate(),dt=()=>{const yt=ot.current;if(rt&&!yt)return;(yt?et.applyAnimatedValues(yt,lt.getValue(!0)):!1)===!1&&ct()},ht=new PropsObserver(dt,ut),ft=reactExports.useRef();useIsomorphicLayoutEffect$1(()=>(ft.current=ht,each(ut,yt=>addFluidObserver(yt,ht)),()=>{ft.current&&(each(ft.current.deps,yt=>removeFluidObserver(yt,ft.current)),raf.cancel(ft.current.update))})),reactExports.useEffect(dt,[]),useOnce(()=>()=>{const yt=ft.current;each(yt.deps,vt=>removeFluidObserver(vt,yt))});const xt=et.getComponentProps(lt.getValue());return reactExports.createElement(tt,{...xt,ref:at})})},PropsObserver=class{constructor(tt,et){this.update=tt,this.deps=et}eventObserved(tt){tt.type=="change"&&raf.write(this.update)}};function getAnimatedState(tt,et){const rt=new Set;return TreeContext.dependencies=rt,tt.style&&(tt={...tt,style:et.createAnimatedStyle(tt.style)}),tt=new AnimatedObject(tt),TreeContext.dependencies=null,[tt,rt]}function updateRef(tt,et){return tt&&(is$2.fun(tt)?tt(et):tt.current=et),et}var cacheKey=Symbol.for("AnimatedComponent"),createHost=(tt,{applyAnimatedValues:et=()=>!1,createAnimatedStyle:rt=st=>new AnimatedObject(st),getComponentProps:nt=st=>st}={})=>{const st={applyAnimatedValues:et,createAnimatedStyle:rt,getComponentProps:nt},ot=at=>{const lt=getDisplayName(at)||"Anonymous";return is$2.str(at)?at=ot[at]||(ot[at]=withAnimated(at,st)):at=at[cacheKey]||(at[cacheKey]=withAnimated(at,st)),at.displayName=`Animated(${lt})`,at};return eachProp(tt,(at,lt)=>{is$2.arr(tt)&&(lt=getDisplayName(at)),ot[lt]=ot(at)}),{animated:ot}},getDisplayName=tt=>is$2.str(tt)?tt:tt&&is$2.str(tt.displayName)?tt.displayName:is$2.fun(tt)&&tt.name||null;function callProp(tt,...et){return is$2.fun(tt)?tt(...et):tt}var matchProp=(tt,et)=>tt===!0||!!(et&&tt&&(is$2.fun(tt)?tt(et):toArray(tt).includes(et))),resolveProp=(tt,et)=>is$2.obj(tt)?et&&tt[et]:tt,getDefaultProp=(tt,et)=>tt.default===!0?tt[et]:tt.default?tt.default[et]:void 0,noopTransform=tt=>tt,getDefaultProps=(tt,et=noopTransform)=>{let rt=DEFAULT_PROPS;tt.default&&tt.default!==!0&&(tt=tt.default,rt=Object.keys(tt));const nt={};for(const st of rt){const ot=et(tt[st],st);is$2.und(ot)||(nt[st]=ot)}return nt},DEFAULT_PROPS=["config","onProps","onStart","onChange","onPause","onResume","onRest"],RESERVED_PROPS={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 getForwardProps(tt){const et={};let rt=0;if(eachProp(tt,(nt,st)=>{RESERVED_PROPS[st]||(et[st]=nt,rt++)}),rt)return et}function inferTo(tt){const et=getForwardProps(tt);if(et){const rt={to:et};return eachProp(tt,(nt,st)=>st in et||(rt[st]=nt)),rt}return{...tt}}function computeGoal(tt){return tt=getFluidValue(tt),is$2.arr(tt)?tt.map(computeGoal):isAnimatedString(tt)?globals_exports.createStringInterpolator({range:[0,1],output:[tt,tt]})(1):tt}function hasProps(tt){for(const et in tt)return!0;return!1}function isAsyncTo(tt){return is$2.fun(tt)||is$2.arr(tt)&&is$2.obj(tt[0])}function detachRefs(tt,et){var rt;(rt=tt.ref)==null||rt.delete(tt),et==null||et.delete(tt)}function replaceRef(tt,et){var rt;et&&tt.ref!==et&&((rt=tt.ref)==null||rt.delete(tt),et.add(tt),tt.ref=et)}var config$1={default:{tension:170,friction:26}},defaults$4={...config$1.default,mass:1,damping:1,easing:easings.linear,clamp:!1},AnimationConfig=class{constructor(){this.velocity=0,Object.assign(this,defaults$4)}};function mergeConfig(tt,et,rt){rt&&(rt={...rt},sanitizeConfig(rt,et),et={...rt,...et}),sanitizeConfig(tt,et),Object.assign(tt,et);for(const at in defaults$4)tt[at]==null&&(tt[at]=defaults$4[at]);let{frequency:nt,damping:st}=tt;const{mass:ot}=tt;return is$2.und(nt)||(nt<.01&&(nt=.01),st<0&&(st=0),tt.tension=Math.pow(2*Math.PI/nt,2)*ot,tt.friction=4*Math.PI*st*ot/nt),tt}function sanitizeConfig(tt,et){if(!is$2.und(et.decay))tt.duration=void 0;else{const rt=!is$2.und(et.tension)||!is$2.und(et.friction);(rt||!is$2.und(et.frequency)||!is$2.und(et.damping)||!is$2.und(et.mass))&&(tt.duration=void 0,tt.decay=void 0),rt&&(tt.frequency=void 0)}}var emptyArray=[],Animation=class{constructor(){this.changed=!1,this.values=emptyArray,this.toValues=null,this.fromValues=emptyArray,this.config=new AnimationConfig,this.immediate=!1}};function scheduleProps(tt,{key:et,props:rt,defaultProps:nt,state:st,actions:ot}){return new Promise((at,lt)=>{let ut,ct,dt=matchProp(rt.cancel??(nt==null?void 0:nt.cancel),et);if(dt)xt();else{is$2.und(rt.pause)||(st.paused=matchProp(rt.pause,et));let yt=nt==null?void 0:nt.pause;yt!==!0&&(yt=st.paused||matchProp(yt,et)),ut=callProp(rt.delay||0,et),yt?(st.resumeQueue.add(ft),ot.pause()):(ot.resume(),ft())}function ht(){st.resumeQueue.add(ft),st.timeouts.delete(ct),ct.cancel(),ut=ct.time-raf.now()}function ft(){ut>0&&!globals_exports.skipAnimation?(st.delayed=!0,ct=raf.setTimeout(xt,ut),st.pauseQueue.add(ht),st.timeouts.add(ct)):xt()}function xt(){st.delayed&&(st.delayed=!1),st.pauseQueue.delete(ht),st.timeouts.delete(ct),tt<=(st.cancelId||0)&&(dt=!0);try{ot.start({...rt,callId:tt,cancel:dt},at)}catch(yt){lt(yt)}}})}var getCombinedResult=(tt,et)=>et.length==1?et[0]:et.some(rt=>rt.cancelled)?getCancelledResult(tt.get()):et.every(rt=>rt.noop)?getNoopResult(tt.get()):getFinishedResult(tt.get(),et.every(rt=>rt.finished)),getNoopResult=tt=>({value:tt,noop:!0,finished:!0,cancelled:!1}),getFinishedResult=(tt,et,rt=!1)=>({value:tt,finished:et,cancelled:rt}),getCancelledResult=tt=>({value:tt,cancelled:!0,finished:!1});function runAsync(tt,et,rt,nt){const{callId:st,parentId:ot,onRest:at}=et,{asyncTo:lt,promise:ut}=rt;return!ot&&tt===lt&&!et.reset?ut:rt.promise=(async()=>{rt.asyncId=st,rt.asyncTo=tt;const ct=getDefaultProps(et,(Et,bt)=>bt==="onRest"?void 0:Et);let dt,ht;const ft=new Promise((Et,bt)=>(dt=Et,ht=bt)),xt=Et=>{const bt=st<=(rt.cancelId||0)&&getCancelledResult(nt)||st!==rt.asyncId&&getFinishedResult(nt,!1);if(bt)throw Et.result=bt,ht(Et),Et},yt=(Et,bt)=>{const St=new BailSignal,wt=new SkipAnimationSignal;return(async()=>{if(globals_exports.skipAnimation)throw stopAsync(rt),wt.result=getFinishedResult(nt,!1),ht(wt),wt;xt(St);const Rt=is$2.obj(Et)?{...Et}:{...bt,to:Et};Rt.parentId=st,eachProp(ct,(Pt,It)=>{is$2.und(Rt[It])&&(Rt[It]=Pt)});const Ct=await nt.start(Rt);return xt(St),rt.paused&&await new Promise(Pt=>{rt.resumeQueue.add(Pt)}),Ct})()};let vt;if(globals_exports.skipAnimation)return stopAsync(rt),getFinishedResult(nt,!1);try{let Et;is$2.arr(tt)?Et=(async bt=>{for(const St of bt)await yt(St)})(tt):Et=Promise.resolve(tt(yt,nt.stop.bind(nt))),await Promise.all([Et.then(dt),ft]),vt=getFinishedResult(nt.get(),!0,!1)}catch(Et){if(Et instanceof BailSignal)vt=Et.result;else if(Et instanceof SkipAnimationSignal)vt=Et.result;else throw Et}finally{st==rt.asyncId&&(rt.asyncId=ot,rt.asyncTo=ot?lt:void 0,rt.promise=ot?ut:void 0)}return is$2.fun(at)&&raf.batchedUpdates(()=>{at(vt,nt,nt.item)}),vt})()}function stopAsync(tt,et){flush(tt.timeouts,rt=>rt.cancel()),tt.pauseQueue.clear(),tt.resumeQueue.clear(),tt.asyncId=tt.asyncTo=tt.promise=void 0,et&&(tt.cancelId=et)}var BailSignal=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.")}},SkipAnimationSignal=class extends Error{constructor(){super("SkipAnimationSignal")}},isFrameValue=tt=>tt instanceof FrameValue,nextId=1,FrameValue=class extends FluidValue{constructor(){super(...arguments),this.id=nextId++,this._priority=0}get priority(){return this._priority}set priority(tt){this._priority!=tt&&(this._priority=tt,this._onPriorityChange(tt))}get(){const tt=getAnimated(this);return tt&&tt.getValue()}to(...tt){return globals_exports.to(this,tt)}interpolate(...tt){return deprecateInterpolate(),globals_exports.to(this,tt)}toJSON(){return this.get()}observerAdded(tt){tt==1&&this._attach()}observerRemoved(tt){tt==0&&this._detach()}_attach(){}_detach(){}_onChange(tt,et=!1){callFluidObservers(this,{type:"change",parent:this,value:tt,idle:et})}_onPriorityChange(tt){this.idle||frameLoop.sort(this),callFluidObservers(this,{type:"priority",parent:this,priority:tt})}},$P=Symbol.for("SpringPhase"),HAS_ANIMATED=1,IS_ANIMATING=2,IS_PAUSED=4,hasAnimated=tt=>(tt[$P]&HAS_ANIMATED)>0,isAnimating=tt=>(tt[$P]&IS_ANIMATING)>0,isPaused=tt=>(tt[$P]&IS_PAUSED)>0,setActiveBit=(tt,et)=>et?tt[$P]|=IS_ANIMATING|HAS_ANIMATED:tt[$P]&=-3,setPausedBit=(tt,et)=>et?tt[$P]|=IS_PAUSED:tt[$P]&=-5,SpringValue=class extends FrameValue{constructor(tt,et){if(super(),this.animation=new Animation,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,!is$2.und(tt)||!is$2.und(et)){const rt=is$2.obj(tt)?{...tt}:{...et,from:tt};is$2.und(rt.default)&&(rt.default=!0),this.start(rt)}}get idle(){return!(isAnimating(this)||this._state.asyncTo)||isPaused(this)}get goal(){return getFluidValue(this.animation.to)}get velocity(){const tt=getAnimated(this);return tt instanceof AnimatedValue?tt.lastVelocity||0:tt.getPayload().map(et=>et.lastVelocity||0)}get hasAnimated(){return hasAnimated(this)}get isAnimating(){return isAnimating(this)}get isPaused(){return isPaused(this)}get isDelayed(){return this._state.delayed}advance(tt){let et=!0,rt=!1;const nt=this.animation;let{toValues:st}=nt;const{config:ot}=nt,at=getPayload(nt.to);!at&&hasFluidValue(nt.to)&&(st=toArray(getFluidValue(nt.to))),nt.values.forEach((ct,dt)=>{if(ct.done)return;const ht=ct.constructor==AnimatedString?1:at?at[dt].lastPosition:st[dt];let ft=nt.immediate,xt=ht;if(!ft){if(xt=ct.lastPosition,ot.tension<=0){ct.done=!0;return}let yt=ct.elapsedTime+=tt;const vt=nt.fromValues[dt],Et=ct.v0!=null?ct.v0:ct.v0=is$2.arr(ot.velocity)?ot.velocity[dt]:ot.velocity;let bt;const St=ot.precision||(vt==ht?.005:Math.min(1,Math.abs(ht-vt)*.001));if(is$2.und(ot.duration))if(ot.decay){const wt=ot.decay===!0?.998:ot.decay,Rt=Math.exp(-(1-wt)*yt);xt=vt+Et/(1-wt)*(1-Rt),ft=Math.abs(ct.lastPosition-xt)<=St,bt=Et*Rt}else{bt=ct.lastVelocity==null?Et:ct.lastVelocity;const wt=ot.restVelocity||St/10,Rt=ot.clamp?0:ot.bounce,Ct=!is$2.und(Rt),Pt=vt==ht?ct.v0>0:vt<ht;let It,jt=!1;const Dt=1,Vt=Math.ceil(tt/Dt);for(let Ft=0;Ft<Vt&&(It=Math.abs(bt)>wt,!(!It&&(ft=Math.abs(ht-xt)<=St,ft)));++Ft){Ct&&(jt=xt==ht||xt>ht==Pt,jt&&(bt=-bt*Rt,xt=ht));const Ht=-ot.tension*1e-6*(xt-ht),Nt=-ot.friction*.001*bt,Lt=(Ht+Nt)/ot.mass;bt=bt+Lt*Dt,xt=xt+bt*Dt}}else{let wt=1;ot.duration>0&&(this._memoizedDuration!==ot.duration&&(this._memoizedDuration=ot.duration,ct.durationProgress>0&&(ct.elapsedTime=ot.duration*ct.durationProgress,yt=ct.elapsedTime+=tt)),wt=(ot.progress||0)+yt/this._memoizedDuration,wt=wt>1?1:wt<0?0:wt,ct.durationProgress=wt),xt=vt+ot.easing(wt)*(ht-vt),bt=(xt-ct.lastPosition)/tt,ft=wt==1}ct.lastVelocity=bt,Number.isNaN(xt)&&(console.warn("Got NaN while animating:",this),ft=!0)}at&&!at[dt].done&&(ft=!1),ft?ct.done=!0:et=!1,ct.setValue(xt,ot.round)&&(rt=!0)});const lt=getAnimated(this),ut=lt.getValue();if(et){const ct=getFluidValue(nt.to);(ut!==ct||rt)&&!ot.decay?(lt.setValue(ct),this._onChange(ct)):rt&&ot.decay&&this._onChange(ut),this._stop()}else rt&&this._onChange(ut)}set(tt){return raf.batchedUpdates(()=>{this._stop(),this._focus(tt),this._set(tt)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(isAnimating(this)){const{to:tt,config:et}=this.animation;raf.batchedUpdates(()=>{this._onStart(),et.decay||this._set(tt,!1),this._stop()})}return this}update(tt){return(this.queue||(this.queue=[])).push(tt),this}start(tt,et){let rt;return is$2.und(tt)?(rt=this.queue||[],this.queue=[]):rt=[is$2.obj(tt)?tt:{...et,to:tt}],Promise.all(rt.map(nt=>this._update(nt))).then(nt=>getCombinedResult(this,nt))}stop(tt){const{to:et}=this.animation;return this._focus(this.get()),stopAsync(this._state,tt&&this._lastCallId),raf.batchedUpdates(()=>this._stop(et,tt)),this}reset(){this._update({reset:!0})}eventObserved(tt){tt.type=="change"?this._start():tt.type=="priority"&&(this.priority=tt.priority+1)}_prepareNode(tt){const et=this.key||"";let{to:rt,from:nt}=tt;rt=is$2.obj(rt)?rt[et]:rt,(rt==null||isAsyncTo(rt))&&(rt=void 0),nt=is$2.obj(nt)?nt[et]:nt,nt==null&&(nt=void 0);const st={to:rt,from:nt};return hasAnimated(this)||(tt.reverse&&([rt,nt]=[nt,rt]),nt=getFluidValue(nt),is$2.und(nt)?getAnimated(this)||this._set(rt):this._set(nt)),st}_update({...tt},et){const{key:rt,defaultProps:nt}=this;tt.default&&Object.assign(nt,getDefaultProps(tt,(at,lt)=>/^on/.test(lt)?resolveProp(at,rt):at)),mergeActiveFn(this,tt,"onProps"),sendEvent(this,"onProps",tt,this);const st=this._prepareNode(tt);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 ot=this._state;return scheduleProps(++this._lastCallId,{key:rt,props:tt,defaultProps:nt,state:ot,actions:{pause:()=>{isPaused(this)||(setPausedBit(this,!0),flushCalls(ot.pauseQueue),sendEvent(this,"onPause",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},resume:()=>{isPaused(this)&&(setPausedBit(this,!1),isAnimating(this)&&this._resume(),flushCalls(ot.resumeQueue),sendEvent(this,"onResume",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},start:this._merge.bind(this,st)}}).then(at=>{if(tt.loop&&at.finished&&!(et&&at.noop)){const lt=createLoopUpdate(tt);if(lt)return this._update(lt,!0)}return at})}_merge(tt,et,rt){if(et.cancel)return this.stop(!0),rt(getCancelledResult(this));const nt=!is$2.und(tt.to),st=!is$2.und(tt.from);if(nt||st)if(et.callId>this._lastToId)this._lastToId=et.callId;else return rt(getCancelledResult(this));const{key:ot,defaultProps:at,animation:lt}=this,{to:ut,from:ct}=lt;let{to:dt=ut,from:ht=ct}=tt;st&&!nt&&(!et.default||is$2.und(dt))&&(dt=ht),et.reverse&&([dt,ht]=[ht,dt]);const ft=!isEqual(ht,ct);ft&&(lt.from=ht),ht=getFluidValue(ht);const xt=!isEqual(dt,ut);xt&&this._focus(dt);const yt=isAsyncTo(et.to),{config:vt}=lt,{decay:Et,velocity:bt}=vt;(nt||st)&&(vt.velocity=0),et.config&&!yt&&mergeConfig(vt,callProp(et.config,ot),et.config!==at.config?callProp(at.config,ot):void 0);let St=getAnimated(this);if(!St||is$2.und(dt))return rt(getFinishedResult(this,!0));const wt=is$2.und(et.reset)?st&&!et.default:!is$2.und(ht)&&matchProp(et.reset,ot),Rt=wt?ht:this.get(),Ct=computeGoal(dt),Pt=is$2.num(Ct)||is$2.arr(Ct)||isAnimatedString(Ct),It=!yt&&(!Pt||matchProp(at.immediate||et.immediate,ot));if(xt){const Ft=getAnimatedType(dt);if(Ft!==St.constructor)if(It)St=this._set(Ct);else throw Error(`Cannot animate between ${St.constructor.name} and ${Ft.name}, as the "to" prop suggests`)}const jt=St.constructor;let Dt=hasFluidValue(dt),Vt=!1;if(!Dt){const Ft=wt||!hasAnimated(this)&&ft;(xt||Ft)&&(Vt=isEqual(computeGoal(Rt),Ct),Dt=!Vt),(!isEqual(lt.immediate,It)&&!It||!isEqual(vt.decay,Et)||!isEqual(vt.velocity,bt))&&(Dt=!0)}if(Vt&&isAnimating(this)&&(lt.changed&&!wt?Dt=!0:Dt||this._stop(ut)),!yt&&((Dt||hasFluidValue(ut))&&(lt.values=St.getPayload(),lt.toValues=hasFluidValue(dt)?null:jt==AnimatedString?[1]:toArray(Ct)),lt.immediate!=It&&(lt.immediate=It,!It&&!wt&&this._set(ut)),Dt)){const{onRest:Ft}=lt;each(ACTIVE_EVENTS,Nt=>mergeActiveFn(this,et,Nt));const Ht=getFinishedResult(this,checkFinished(this,ut));flushCalls(this._pendingCalls,Ht),this._pendingCalls.add(rt),lt.changed&&raf.batchedUpdates(()=>{var Nt;lt.changed=!wt,Ft==null||Ft(Ht,this),wt?callProp(at.onRest,Ht):(Nt=lt.onStart)==null||Nt.call(lt,Ht,this)})}wt&&this._set(Rt),yt?rt(runAsync(et.to,et,this._state,this)):Dt?this._start():isAnimating(this)&&!xt?this._pendingCalls.add(rt):rt(getNoopResult(Rt))}_focus(tt){const et=this.animation;tt!==et.to&&(getFluidObservers(this)&&this._detach(),et.to=tt,getFluidObservers(this)&&this._attach())}_attach(){let tt=0;const{to:et}=this.animation;hasFluidValue(et)&&(addFluidObserver(et,this),isFrameValue(et)&&(tt=et.priority+1)),this.priority=tt}_detach(){const{to:tt}=this.animation;hasFluidValue(tt)&&removeFluidObserver(tt,this)}_set(tt,et=!0){const rt=getFluidValue(tt);if(!is$2.und(rt)){const nt=getAnimated(this);if(!nt||!isEqual(rt,nt.getValue())){const st=getAnimatedType(rt);!nt||nt.constructor!=st?setAnimated(this,st.create(rt)):nt.setValue(rt),nt&&raf.batchedUpdates(()=>{this._onChange(rt,et)})}}return getAnimated(this)}_onStart(){const tt=this.animation;tt.changed||(tt.changed=!0,sendEvent(this,"onStart",getFinishedResult(this,checkFinished(this,tt.to)),this))}_onChange(tt,et){et||(this._onStart(),callProp(this.animation.onChange,tt,this)),callProp(this.defaultProps.onChange,tt,this),super._onChange(tt,et)}_start(){const tt=this.animation;getAnimated(this).reset(getFluidValue(tt.to)),tt.immediate||(tt.fromValues=tt.values.map(et=>et.lastPosition)),isAnimating(this)||(setActiveBit(this,!0),isPaused(this)||this._resume())}_resume(){globals_exports.skipAnimation?this.finish():frameLoop.start(this)}_stop(tt,et){if(isAnimating(this)){setActiveBit(this,!1);const rt=this.animation;each(rt.values,st=>{st.done=!0}),rt.toValues&&(rt.onChange=rt.onPause=rt.onResume=void 0),callFluidObservers(this,{type:"idle",parent:this});const nt=et?getCancelledResult(this.get()):getFinishedResult(this.get(),checkFinished(this,tt??rt.to));flushCalls(this._pendingCalls,nt),rt.changed&&(rt.changed=!1,sendEvent(this,"onRest",nt,this))}}};function checkFinished(tt,et){const rt=computeGoal(et),nt=computeGoal(tt.get());return isEqual(nt,rt)}function createLoopUpdate(tt,et=tt.loop,rt=tt.to){const nt=callProp(et);if(nt){const st=nt!==!0&&inferTo(nt),ot=(st||tt).reverse,at=!st||st.reset;return createUpdate({...tt,loop:et,default:!1,pause:void 0,to:!ot||isAsyncTo(rt)?rt:void 0,from:at?tt.from:void 0,reset:at,...st})}}function createUpdate(tt){const{to:et,from:rt}=tt=inferTo(tt),nt=new Set;return is$2.obj(et)&&findDefined(et,nt),is$2.obj(rt)&&findDefined(rt,nt),tt.keys=nt.size?Array.from(nt):null,tt}function declareUpdate(tt){const et=createUpdate(tt);return is$2.und(et.default)&&(et.default=getDefaultProps(et)),et}function findDefined(tt,et){eachProp(tt,(rt,nt)=>rt!=null&&et.add(nt))}var ACTIVE_EVENTS=["onStart","onRest","onChange","onPause","onResume"];function mergeActiveFn(tt,et,rt){tt.animation[rt]=et[rt]!==getDefaultProp(et,rt)?resolveProp(et[rt],tt.key):void 0}function sendEvent(tt,et,...rt){var nt,st,ot,at;(st=(nt=tt.animation)[et])==null||st.call(nt,...rt),(at=(ot=tt.defaultProps)[et])==null||at.call(ot,...rt)}var BATCHED_EVENTS=["onStart","onChange","onRest"],nextId2=1,Controller$1=class{constructor(et,rt){this.id=nextId2++,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),rt&&(this._flush=rt),et&&this.start({default:!0,...et})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(et=>et.idle&&!et.isDelayed&&!et.isPaused)}get item(){return this._item}set item(et){this._item=et}get(){const et={};return this.each((rt,nt)=>et[nt]=rt.get()),et}set(et){for(const rt in et){const nt=et[rt];is$2.und(nt)||this.springs[rt].set(nt)}}update(et){return et&&this.queue.push(createUpdate(et)),this}start(et){let{queue:rt}=this;return et?rt=toArray(et).map(createUpdate):this.queue=[],this._flush?this._flush(this,rt):(prepareKeys(this,rt),flushUpdateQueue(this,rt))}stop(et,rt){if(et!==!!et&&(rt=et),rt){const nt=this.springs;each(toArray(rt),st=>nt[st].stop(!!et))}else stopAsync(this._state,this._lastAsyncId),this.each(nt=>nt.stop(!!et));return this}pause(et){if(is$2.und(et))this.start({pause:!0});else{const rt=this.springs;each(toArray(et),nt=>rt[nt].pause())}return this}resume(et){if(is$2.und(et))this.start({pause:!1});else{const rt=this.springs;each(toArray(et),nt=>rt[nt].resume())}return this}each(et){eachProp(this.springs,et)}_onFrame(){const{onStart:et,onChange:rt,onRest:nt}=this._events,st=this._active.size>0,ot=this._changed.size>0;(st&&!this._started||ot&&!this._started)&&(this._started=!0,flush(et,([ut,ct])=>{ct.value=this.get(),ut(ct,this,this._item)}));const at=!st&&this._started,lt=ot||at&&nt.size?this.get():null;ot&&rt.size&&flush(rt,([ut,ct])=>{ct.value=lt,ut(ct,this,this._item)}),at&&(this._started=!1,flush(nt,([ut,ct])=>{ct.value=lt,ut(ct,this,this._item)}))}eventObserved(et){if(et.type=="change")this._changed.add(et.parent),et.idle||this._active.add(et.parent);else if(et.type=="idle")this._active.delete(et.parent);else return;raf.onFrame(this._onFrame)}};function flushUpdateQueue(tt,et){return Promise.all(et.map(rt=>flushUpdate(tt,rt))).then(rt=>getCombinedResult(tt,rt))}async function flushUpdate(tt,et,rt){const{keys:nt,to:st,from:ot,loop:at,onRest:lt,onResolve:ut}=et,ct=is$2.obj(et.default)&&et.default;at&&(et.loop=!1),st===!1&&(et.to=null),ot===!1&&(et.from=null);const dt=is$2.arr(st)||is$2.fun(st)?st:void 0;dt?(et.to=void 0,et.onRest=void 0,ct&&(ct.onRest=void 0)):each(BATCHED_EVENTS,vt=>{const Et=et[vt];if(is$2.fun(Et)){const bt=tt._events[vt];et[vt]=({finished:St,cancelled:wt})=>{const Rt=bt.get(Et);Rt?(St||(Rt.finished=!1),wt&&(Rt.cancelled=!0)):bt.set(Et,{value:null,finished:St||!1,cancelled:wt||!1})},ct&&(ct[vt]=et[vt])}});const ht=tt._state;et.pause===!ht.paused?(ht.paused=et.pause,flushCalls(et.pause?ht.pauseQueue:ht.resumeQueue)):ht.paused&&(et.pause=!0);const ft=(nt||Object.keys(tt.springs)).map(vt=>tt.springs[vt].start(et)),xt=et.cancel===!0||getDefaultProp(et,"cancel")===!0;(dt||xt&&ht.asyncId)&&ft.push(scheduleProps(++tt._lastAsyncId,{props:et,state:ht,actions:{pause:noop$2,resume:noop$2,start(vt,Et){xt?(stopAsync(ht,tt._lastAsyncId),Et(getCancelledResult(tt))):(vt.onRest=lt,Et(runAsync(dt,vt,ht,tt)))}}})),ht.paused&&await new Promise(vt=>{ht.resumeQueue.add(vt)});const yt=getCombinedResult(tt,await Promise.all(ft));if(at&&yt.finished&&!(rt&&yt.noop)){const vt=createLoopUpdate(et,at,st);if(vt)return prepareKeys(tt,[vt]),flushUpdate(tt,vt,!0)}return ut&&raf.batchedUpdates(()=>ut(yt,tt,tt.item)),yt}function getSprings(tt,et){const rt={...tt.springs};return et&&each(toArray(et),nt=>{is$2.und(nt.keys)&&(nt=createUpdate(nt)),is$2.obj(nt.to)||(nt={...nt,to:void 0}),prepareSprings(rt,nt,st=>createSpring(st))}),setSprings(tt,rt),rt}function setSprings(tt,et){eachProp(et,(rt,nt)=>{tt.springs[nt]||(tt.springs[nt]=rt,addFluidObserver(rt,tt))})}function createSpring(tt,et){const rt=new SpringValue;return rt.key=tt,et&&addFluidObserver(rt,et),rt}function prepareSprings(tt,et,rt){et.keys&&each(et.keys,nt=>{(tt[nt]||(tt[nt]=rt(nt)))._prepareNode(et)})}function prepareKeys(tt,et){each(et,rt=>{prepareSprings(tt.springs,rt,nt=>createSpring(nt,tt))})}var SpringContext=({children:tt,...et})=>{const rt=reactExports.useContext(ctx),nt=et.pause||!!rt.pause,st=et.immediate||!!rt.immediate;et=useMemoOne(()=>({pause:nt,immediate:st}),[nt,st]);const{Provider:ot}=ctx;return reactExports.createElement(ot,{value:et},tt)},ctx=makeContext(SpringContext,{});SpringContext.Provider=ctx.Provider;SpringContext.Consumer=ctx.Consumer;function makeContext(tt,et){return Object.assign(tt,reactExports.createContext(et)),tt.Provider._context=tt,tt.Consumer._context=tt,tt}var SpringRef=()=>{const tt=[],et=function(nt){deprecateDirectCall();const st=[];return each(tt,(ot,at)=>{if(is$2.und(nt))st.push(ot.start());else{const lt=rt(nt,ot,at);lt&&st.push(ot.start(lt))}}),st};et.current=tt,et.add=function(nt){tt.includes(nt)||tt.push(nt)},et.delete=function(nt){const st=tt.indexOf(nt);~st&&tt.splice(st,1)},et.pause=function(){return each(tt,nt=>nt.pause(...arguments)),this},et.resume=function(){return each(tt,nt=>nt.resume(...arguments)),this},et.set=function(nt){each(tt,(st,ot)=>{const at=is$2.fun(nt)?nt(ot,st):nt;at&&st.set(at)})},et.start=function(nt){const st=[];return each(tt,(ot,at)=>{if(is$2.und(nt))st.push(ot.start());else{const lt=this._getProps(nt,ot,at);lt&&st.push(ot.start(lt))}}),st},et.stop=function(){return each(tt,nt=>nt.stop(...arguments)),this},et.update=function(nt){return each(tt,(st,ot)=>st.update(this._getProps(nt,st,ot))),this};const rt=function(nt,st,ot){return is$2.fun(nt)?nt(ot,st):nt};return et._getProps=rt,et};function useSprings(tt,et,rt){const nt=is$2.fun(et)&&et;nt&&!rt&&(rt=[]);const st=reactExports.useMemo(()=>nt||arguments.length==3?SpringRef():void 0,[]),ot=reactExports.useRef(0),at=useForceUpdate(),lt=reactExports.useMemo(()=>({ctrls:[],queue:[],flush(bt,St){const wt=getSprings(bt,St);return ot.current>0&&!lt.queue.length&&!Object.keys(wt).some(Ct=>!bt.springs[Ct])?flushUpdateQueue(bt,St):new Promise(Ct=>{setSprings(bt,wt),lt.queue.push(()=>{Ct(flushUpdateQueue(bt,St))}),at()})}}),[]),ut=reactExports.useRef([...lt.ctrls]),ct=[],dt=usePrev(tt)||0;reactExports.useMemo(()=>{each(ut.current.slice(tt,dt),bt=>{detachRefs(bt,st),bt.stop(!0)}),ut.current.length=tt,ht(dt,tt)},[tt]),reactExports.useMemo(()=>{ht(0,Math.min(dt,tt))},rt);function ht(bt,St){for(let wt=bt;wt<St;wt++){const Rt=ut.current[wt]||(ut.current[wt]=new Controller$1(null,lt.flush)),Ct=nt?nt(wt,Rt):et[wt];Ct&&(ct[wt]=declareUpdate(Ct))}}const ft=ut.current.map((bt,St)=>getSprings(bt,ct[St])),xt=reactExports.useContext(SpringContext),yt=usePrev(xt),vt=xt!==yt&&hasProps(xt);useIsomorphicLayoutEffect$1(()=>{ot.current++,lt.ctrls=ut.current;const{queue:bt}=lt;bt.length&&(lt.queue=[],each(bt,St=>St())),each(ut.current,(St,wt)=>{st==null||st.add(St),vt&&St.start({default:xt});const Rt=ct[wt];Rt&&(replaceRef(St,Rt.ref),St.ref?St.queue.push(Rt):St.start(Rt))})}),useOnce(()=>()=>{each(lt.ctrls,bt=>bt.stop(!0))});const Et=ft.map(bt=>({...bt}));return st?[Et,st]:Et}function useSpring(tt,et){const rt=is$2.fun(tt),[[nt],st]=useSprings(1,rt?tt:[tt],rt?[]:et);return rt||arguments.length==2?[nt,st]:nt}function useTransition(tt,et,rt){const nt=is$2.fun(et)&&et,{reset:st,sort:ot,trail:at=0,expires:lt=!0,exitBeforeEnter:ut=!1,onDestroyed:ct,ref:dt,config:ht}=nt?nt():et,ft=reactExports.useMemo(()=>nt||arguments.length==3?SpringRef():void 0,[]),xt=toArray(tt),yt=[],vt=reactExports.useRef(null),Et=st?null:vt.current;useIsomorphicLayoutEffect$1(()=>{vt.current=yt}),useOnce(()=>(each(yt,Lt=>{ft==null||ft.add(Lt.ctrl),Lt.ctrl.ref=ft}),()=>{each(vt.current,Lt=>{Lt.expired&&clearTimeout(Lt.expirationId),detachRefs(Lt.ctrl,ft),Lt.ctrl.stop(!0)})}));const bt=getKeys(xt,nt?nt():et,Et),St=st&&vt.current||[];useIsomorphicLayoutEffect$1(()=>each(St,({ctrl:Lt,item:Mt,key:zt})=>{detachRefs(Lt,ft),callProp(ct,Mt,zt)}));const wt=[];if(Et&&each(Et,(Lt,Mt)=>{Lt.expired?(clearTimeout(Lt.expirationId),St.push(Lt)):(Mt=wt[Mt]=bt.indexOf(Lt.key),~Mt&&(yt[Mt]=Lt))}),each(xt,(Lt,Mt)=>{yt[Mt]||(yt[Mt]={key:bt[Mt],item:Lt,phase:"mount",ctrl:new Controller$1},yt[Mt].ctrl.item=Lt)}),wt.length){let Lt=-1;const{leave:Mt}=nt?nt():et;each(wt,(zt,Gt)=>{const Ot=Et[Gt];~zt?(Lt=yt.indexOf(Ot),yt[Lt]={...Ot,item:xt[zt]}):Mt&&yt.splice(++Lt,0,Ot)})}is$2.fun(ot)&&yt.sort((Lt,Mt)=>ot(Lt.item,Mt.item));let Rt=-at;const Ct=useForceUpdate(),Pt=getDefaultProps(et),It=new Map,jt=reactExports.useRef(new Map),Dt=reactExports.useRef(!1);each(yt,(Lt,Mt)=>{const zt=Lt.key,Gt=Lt.phase,Ot=nt?nt():et;let Ut,Bt;const Yt=callProp(Ot.delay||0,zt);if(Gt=="mount")Ut=Ot.enter,Bt="enter";else{const cr=bt.indexOf(zt)<0;if(Gt!="leave")if(cr)Ut=Ot.leave,Bt="leave";else if(Ut=Ot.update)Bt="update";else return;else if(!cr)Ut=Ot.enter,Bt="enter";else return}if(Ut=callProp(Ut,Lt.item,Mt),Ut=is$2.obj(Ut)?inferTo(Ut):{to:Ut},!Ut.config){const cr=ht||Pt.config;Ut.config=callProp(cr,Lt.item,Mt,Bt)}Rt+=at;const Zt={...Pt,delay:Yt+Rt,ref:dt,immediate:Ot.immediate,reset:!1,...Ut};if(Bt=="enter"&&is$2.und(Zt.from)){const cr=nt?nt():et,ur=is$2.und(cr.initial)||Et?cr.from:cr.initial;Zt.from=callProp(ur,Lt.item,Mt)}const{onResolve:Xt}=Zt;Zt.onResolve=cr=>{callProp(Xt,cr);const ur=vt.current,mr=ur.find(vr=>vr.key===zt);if(mr&&!(cr.cancelled&&mr.phase!="update")&&mr.ctrl.idle){const vr=ur.every(Er=>Er.ctrl.idle);if(mr.phase=="leave"){const Er=callProp(lt,mr.item);if(Er!==!1){const br=Er===!0?0:Er;if(mr.expired=!0,!vr&&br>0){br<=2147483647&&(mr.expirationId=setTimeout(Ct,br));return}}}vr&&ur.some(Er=>Er.expired)&&(jt.current.delete(mr),ut&&(Dt.current=!0),Ct())}};const rr=getSprings(Lt.ctrl,Zt);Bt==="leave"&&ut?jt.current.set(Lt,{phase:Bt,springs:rr,payload:Zt}):It.set(Lt,{phase:Bt,springs:rr,payload:Zt})});const Vt=reactExports.useContext(SpringContext),Ft=usePrev(Vt),Ht=Vt!==Ft&&hasProps(Vt);useIsomorphicLayoutEffect$1(()=>{Ht&&each(yt,Lt=>{Lt.ctrl.start({default:Vt})})},[Vt]),each(It,(Lt,Mt)=>{if(jt.current.size){const zt=yt.findIndex(Gt=>Gt.key===Mt.key);yt.splice(zt,1)}}),useIsomorphicLayoutEffect$1(()=>{each(jt.current.size?jt.current:It,({phase:Lt,payload:Mt},zt)=>{const{ctrl:Gt}=zt;zt.phase=Lt,ft==null||ft.add(Gt),Ht&&Lt=="enter"&&Gt.start({default:Vt}),Mt&&(replaceRef(Gt,Mt.ref),(Gt.ref||ft)&&!Dt.current?Gt.update(Mt):(Gt.start(Mt),Dt.current&&(Dt.current=!1)))})},st?void 0:rt);const Nt=Lt=>reactExports.createElement(reactExports.Fragment,null,yt.map((Mt,zt)=>{const{springs:Gt}=It.get(Mt)||Mt.ctrl,Ot=Lt({...Gt},Mt.item,Mt,zt);return Ot&&Ot.type?reactExports.createElement(Ot.type,{...Ot.props,key:is$2.str(Mt.key)||is$2.num(Mt.key)?Mt.key:Mt.ctrl.id,ref:Ot.ref}):Ot}));return ft?[Nt,ft]:Nt}var nextKey=1;function getKeys(tt,{key:et,keys:rt=et},nt){if(rt===null){const st=new Set;return tt.map(ot=>{const at=nt&&nt.find(lt=>lt.item===ot&<.phase!=="leave"&&!st.has(lt));return at?(st.add(at),at.key):nextKey++})}return is$2.und(rt)?tt:is$2.fun(rt)?tt.map(rt):toArray(rt)}var Interpolation=class extends FrameValue{constructor(tt,et){super(),this.source=tt,this.idle=!0,this._active=new Set,this.calc=createInterpolator(...et);const rt=this._get(),nt=getAnimatedType(rt);setAnimated(this,nt.create(rt))}advance(tt){const et=this._get(),rt=this.get();isEqual(et,rt)||(getAnimated(this).setValue(et),this._onChange(et,this.idle)),!this.idle&&checkIdle(this._active)&&becomeIdle(this)}_get(){const tt=is$2.arr(this.source)?this.source.map(getFluidValue):toArray(getFluidValue(this.source));return this.calc(...tt)}_start(){this.idle&&!checkIdle(this._active)&&(this.idle=!1,each(getPayload(this),tt=>{tt.done=!1}),globals_exports.skipAnimation?(raf.batchedUpdates(()=>this.advance()),becomeIdle(this)):frameLoop.start(this))}_attach(){let tt=1;each(toArray(this.source),et=>{hasFluidValue(et)&&addFluidObserver(et,this),isFrameValue(et)&&(et.idle||this._active.add(et),tt=Math.max(tt,et.priority+1))}),this.priority=tt,this._start()}_detach(){each(toArray(this.source),tt=>{hasFluidValue(tt)&&removeFluidObserver(tt,this)}),this._active.clear(),becomeIdle(this)}eventObserved(tt){tt.type=="change"?tt.idle?this.advance():(this._active.add(tt.parent),this._start()):tt.type=="idle"?this._active.delete(tt.parent):tt.type=="priority"&&(this.priority=toArray(this.source).reduce((et,rt)=>Math.max(et,(isFrameValue(rt)?rt.priority:0)+1),0))}};function isIdle(tt){return tt.idle!==!1}function checkIdle(tt){return!tt.size||Array.from(tt).every(isIdle)}function becomeIdle(tt){tt.idle||(tt.idle=!0,each(getPayload(tt),et=>{et.done=!0}),callFluidObservers(tt,{type:"idle",parent:tt}))}globals_exports.assign({createStringInterpolator:createStringInterpolator2,to:(tt,et)=>new Interpolation(tt,et)});var isCustomPropRE=/^--/;function dangerousStyleValue(tt,et){return et==null||typeof et=="boolean"||et===""?"":typeof et=="number"&&et!==0&&!isCustomPropRE.test(tt)&&!(isUnitlessNumber.hasOwnProperty(tt)&&isUnitlessNumber[tt])?et+"px":(""+et).trim()}var attributeCache={};function applyAnimatedValues(tt,et){if(!tt.nodeType||!tt.setAttribute)return!1;const rt=tt.nodeName==="filter"||tt.parentNode&&tt.parentNode.nodeName==="filter",{className:nt,style:st,children:ot,scrollTop:at,scrollLeft:lt,viewBox:ut,...ct}=et,dt=Object.values(ct),ht=Object.keys(ct).map(ft=>rt||tt.hasAttribute(ft)?ft:attributeCache[ft]||(attributeCache[ft]=ft.replace(/([A-Z])/g,xt=>"-"+xt.toLowerCase())));ot!==void 0&&(tt.textContent=ot);for(const ft in st)if(st.hasOwnProperty(ft)){const xt=dangerousStyleValue(ft,st[ft]);isCustomPropRE.test(ft)?tt.style.setProperty(ft,xt):tt.style[ft]=xt}ht.forEach((ft,xt)=>{tt.setAttribute(ft,dt[xt])}),nt!==void 0&&(tt.className=nt),at!==void 0&&(tt.scrollTop=at),lt!==void 0&&(tt.scrollLeft=lt),ut!==void 0&&tt.setAttribute("viewBox",ut)}var isUnitlessNumber={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},prefixKey=(tt,et)=>tt+et.charAt(0).toUpperCase()+et.substring(1),prefixes=["Webkit","Ms","Moz","O"];isUnitlessNumber=Object.keys(isUnitlessNumber).reduce((tt,et)=>(prefixes.forEach(rt=>tt[prefixKey(rt,et)]=tt[et]),tt),isUnitlessNumber);var domTransforms=/^(matrix|translate|scale|rotate|skew)/,pxTransforms=/^(translate)/,degTransforms=/^(rotate|skew)/,addUnit=(tt,et)=>is$2.num(tt)&&tt!==0?tt+et:tt,isValueIdentity=(tt,et)=>is$2.arr(tt)?tt.every(rt=>isValueIdentity(rt,et)):is$2.num(tt)?tt===et:parseFloat(tt)===et,AnimatedStyle=class extends AnimatedObject{constructor({x:tt,y:et,z:rt,...nt}){const st=[],ot=[];(tt||et||rt)&&(st.push([tt||0,et||0,rt||0]),ot.push(at=>[`translate3d(${at.map(lt=>addUnit(lt,"px")).join(",")})`,isValueIdentity(at,0)])),eachProp(nt,(at,lt)=>{if(lt==="transform")st.push([at||""]),ot.push(ut=>[ut,ut===""]);else if(domTransforms.test(lt)){if(delete nt[lt],is$2.und(at))return;const ut=pxTransforms.test(lt)?"px":degTransforms.test(lt)?"deg":"";st.push(toArray(at)),ot.push(lt==="rotate3d"?([ct,dt,ht,ft])=>[`rotate3d(${ct},${dt},${ht},${addUnit(ft,ut)})`,isValueIdentity(ft,0)]:ct=>[`${lt}(${ct.map(dt=>addUnit(dt,ut)).join(",")})`,isValueIdentity(ct,lt.startsWith("scale")?1:0)])}}),st.length&&(nt.transform=new FluidTransform(st,ot)),super(nt)}},FluidTransform=class extends FluidValue{constructor(tt,et){super(),this.inputs=tt,this.transforms=et,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let tt="",et=!0;return each(this.inputs,(rt,nt)=>{const st=getFluidValue(rt[0]),[ot,at]=this.transforms[nt](is$2.arr(st)?st:rt.map(getFluidValue));tt+=" "+ot,et=et&&at}),et?"none":tt}observerAdded(tt){tt==1&&each(this.inputs,et=>each(et,rt=>hasFluidValue(rt)&&addFluidObserver(rt,this)))}observerRemoved(tt){tt==0&&each(this.inputs,et=>each(et,rt=>hasFluidValue(rt)&&removeFluidObserver(rt,this)))}eventObserved(tt){tt.type=="change"&&(this._value=null),callFluidObservers(this,tt)}},primitives=["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"];globals_exports.assign({batchedUpdates:reactDomExports.unstable_batchedUpdates,createStringInterpolator:createStringInterpolator2,colors:colors2});var host=createHost(primitives,{applyAnimatedValues,createAnimatedStyle:tt=>new AnimatedStyle(tt),getComponentProps:({scrollTop:tt,scrollLeft:et,...rt})=>rt}),animated=host.animated;const ModalContext=reactExports.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""}),useModalContext=()=>{const tt=reactExports.useContext(ModalContext);if(!tt)throw new Error("Cannot be rendered outside the Modal component");return tt},ModalBody=tt=>{const{ariaDescriptionId:et}=useModalContext(),{children:rt,className:nt}=tt,st=clsx("modal-body",nt);return jsxRuntimeExports.jsx("div",{id:et,className:st,children:rt})},ModalFooter=tt=>jsxRuntimeExports.jsx("div",{className:"modal-footer",children:tt.children}),SvgIconClose=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.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.556",clipRule:"evenodd"}),jsxRuntimeExports.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 0",clipRule:"evenodd"})]}),ModalHeader=tt=>{const{onModalClose:et,children:rt}=tt,{ariaLabelId:nt,focusId:st}=useModalContext(),ot=reactExports.useRef(null),{t:at}=useTranslation();return reactExports.useEffect(()=>{var lt;st||(lt=ot.current)==null||lt.focus()},[st]),jsxRuntimeExports.jsxs("div",{className:"modal-header",children:[jsxRuntimeExports.jsx("h2",{id:nt,className:"modal-title",tabIndex:-1,children:rt}),jsxRuntimeExports.jsx(IconButton,{ref:ot,"aria-label":at("close"),color:"tertiary",icon:jsxRuntimeExports.jsx(SvgIconClose,{}),type:"button",variant:"ghost",title:at("close"),onClick:et,className:"btn-close"})]})},ModalSubtitle=tt=>jsxRuntimeExports.jsx("p",{className:"modal-subtitle",children:tt.children}),Root$1=reactExports.forwardRef((tt,et)=>{const{id:rt,isOpen:nt,onModalClose:st,size:ot="md",viewport:at=!1,scrollable:lt=!1,focusId:ut,children:ct}=tt,dt=`aria_label_${rt}`,ht=`aria_desc_${rt}`,ft=useClickOutside(st),xt=useTrapFocus(nt);useKeyPress(st,["Escape"]),reactExports.useEffect(()=>{if(nt&&(document.body.style.overflow="hidden",ut)){const St=document.getElementById(ut);St==null||St.focus()}return()=>{document.body.style.overflow=""}},[ut,nt]);const yt=clsx("modal fade",{"show d-block":nt,"modal-scrollable":lt,viewport:at,[`modal-${ot}`]:ot}),vt=clsx("modal-dialog"),Et={ariaLabelId:dt,ariaDescriptionId:ht,focusId:ut},bt=useTransition(nt,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return jsxRuntimeExports.jsx(ModalContext.Provider,{value:Et,children:bt((St,wt)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[wt&&jsxRuntimeExports.jsx(animated.div,{id:rt,ref:et,role:"dialog","aria-modal":"true","aria-labelledby":dt,"aria-describedby":ht,className:yt,style:St,tabIndex:-1,children:jsxRuntimeExports.jsx("div",{id:`${rt}_ref`,ref:Rt=>{ft.current=Rt,wt&&(xt.current=Rt)},className:vt,children:jsxRuntimeExports.jsx("div",{className:"modal-content",children:ct})})}),wt&&jsxRuntimeExports.jsx(animated.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),Modal=Object.assign(Root$1,{Header:ModalHeader,Subtitle:ModalSubtitle,Body:ModalBody,Footer:ModalFooter});function Help({isHelpOpen:tt,setIsHelpOpen:et,parsedHeadline:rt,parsedContent:nt,error:st}){const{t:ot}=useTranslation(),at=()=>{et(!1)};return tt?reactDomExports.createPortal(jsxRuntimeExports.jsxs(Modal,{id:"help-modal",isOpen:tt,onModalClose:at,scrollable:!0,size:"lg",children:[jsxRuntimeExports.jsx(Modal.Header,{onModalClose:at,children:ot("navbar.help")}),jsxRuntimeExports.jsx(Modal.Subtitle,{children:st?ot("help.notfound.title"):rt}),jsxRuntimeExports.jsx(Modal.Body,{className:st?"d-flex":null,children:st?ot("help.notfound.text"):nt})]}),document.getElementById("portal")):null}function Navbar({children:tt,className:et,...rt}){const nt=clsx("navbar",et);return jsxRuntimeExports.jsx("nav",{className:nt,...rt,children:tt})}function NavBarNav({children:tt,className:et,...rt}){const nt=clsx("navbar-nav",et);return jsxRuntimeExports.jsx("ul",{className:nt,...rt,children:tt})}const NavItem=reactExports.forwardRef(({children:tt,className:et,...rt},nt)=>{const st=clsx("nav-item",et);return jsxRuntimeExports.jsx("li",{ref:nt,className:st,...rt,children:tt})}),VisuallyHidden=reactExports.forwardRef(({children:tt},et)=>jsxRuntimeExports.jsx("span",{className:"visually-hidden",ref:et,children:tt}));function NavLink({link:tt,className:et,children:rt,translate:nt,...st}){const ot=clsx("nav-link",et);return jsxRuntimeExports.jsxs("a",{href:tt,className:ot,...st,children:[rt,nt&&jsxRuntimeExports.jsx(VisuallyHidden,{children:jsxRuntimeExports.jsx("span",{className:"nav-text",children:nt})})]})}const SvgIconSearch=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M1.27 11.552a7.75 7.75 0 0 1 0-4.156Q1.84 5.33 3.42 3.792a7.9 7.9 0 0 1 2.716-1.777q1.53-.6 3.161-.6 1.605 0 3.136.6 1.53.6 2.716 1.777a7.9 7.9 0 0 1 1.902 2.86 7.8 7.8 0 0 1 .518 3.29 7.65 7.65 0 0 1-.889 3.171q.692.192 1.21.697l4.297 4.156q.864.84.864 2.042t-.864 2.042-2.099.841-2.099-.84l-4.272-4.18a2.42 2.42 0 0 1-.74-1.178 8.3 8.3 0 0 1-3.68.84q-1.63 0-3.16-.6a8.1 8.1 0 0 1-2.717-1.753 7.85 7.85 0 0 1-2.149-3.628m2.495-2.066q0 2.235 1.605 3.796 1.63 1.56 3.926 1.561 2.272 0 3.877-1.561 1.605-1.562 1.63-3.796t-1.63-3.796q-1.63-1.585-3.877-1.585-2.272 0-3.926 1.585-1.605 1.561-1.605 3.796"})]}),PopoverBody=({children:tt,className:et})=>{const rt=clsx("popover-body",et);return jsxRuntimeExports.jsx("div",{className:rt,children:tt})},PopoverFooter=({children:tt,className:et})=>{const rt=clsx("popover-footer p-8",et);return jsxRuntimeExports.jsx("div",{className:rt,children:tt})},Popover=reactExports.forwardRef(({children:tt,className:et,id:rt,isVisible:nt,...st},ot)=>{const at=clsx("popover d-block position-absolute top-100 start-50 translate-middle-x",et);return useTransition(nt,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:{duration:0}})((lt,ut)=>ut&&jsxRuntimeExports.jsx(animated.div,{ref:ot,"aria-labelledby":rt,className:at,role:"tooltip",style:lt,...st,children:tt}))}),SearchEngine=()=>{const[tt,et]=useHover(),rt=reactExports.useRef(null),nt=reactExports.useId(),{t:st}=useTranslation();function ot(){if(rt.current){const at=rt.current.value;window.location.href=`/searchengine#/${at}`}}return jsxRuntimeExports.jsxs(NavItem,{id:nt,ref:tt,className:"position-relative","aria-haspopup":"true","aria-expanded":et,children:[jsxRuntimeExports.jsxs("a",{href:"/searchengine",className:"nav-link dropdown-item",children:[jsxRuntimeExports.jsx(SvgIconSearch,{className:"icon search"}),jsxRuntimeExports.jsx("span",{className:"nav-text",children:st("navbar.search")})]}),jsxRuntimeExports.jsx(Popover,{id:nt,isVisible:et,className:"d-none d-md-flex",children:jsxRuntimeExports.jsxs(FormControl,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[jsxRuntimeExports.jsx(FormControl.Input,{ref:rt,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),jsxRuntimeExports.jsx(SearchButton,{type:"submit",size:"sm",onClick:ot,"aria-label":st("navbar.search")})]})})]})},WidgetAppsFooter=()=>{const{t:tt}=useTranslation();return jsxRuntimeExports.jsx("div",{className:"widget-footer",children:jsxRuntimeExports.jsx("div",{className:"widget-footer-action",children:jsxRuntimeExports.jsx("a",{href:"/welcome",className:"link",children:tt("plus")})})})},WidgetAppsBody=({bookmarkedApps:tt})=>{const{t:et}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!tt.length&&jsxRuntimeExports.jsx("div",{className:"text-dark",children:et("navbar.myapps.more")}),tt.slice(0,6).map((rt,nt)=>jsxRuntimeExports.jsx("a",{href:rt.address,className:"bookmarked-app",children:jsxRuntimeExports.jsx(AppIcon,{app:rt,size:"32"})},nt))]})};var lib$3={},lib$2={};(function(tt){Object.defineProperty(tt,"__esModule",{value:!0}),tt.Doctype=tt.CDATA=tt.Tag=tt.Style=tt.Script=tt.Comment=tt.Directive=tt.Text=tt.Root=tt.isTag=tt.ElementType=void 0;var et;(function(nt){nt.Root="root",nt.Text="text",nt.Directive="directive",nt.Comment="comment",nt.Script="script",nt.Style="style",nt.Tag="tag",nt.CDATA="cdata",nt.Doctype="doctype"})(et=tt.ElementType||(tt.ElementType={}));function rt(nt){return nt.type===et.Tag||nt.type===et.Script||nt.type===et.Style}tt.isTag=rt,tt.Root=et.Root,tt.Text=et.Text,tt.Directive=et.Directive,tt.Comment=et.Comment,tt.Script=et.Script,tt.Style=et.Style,tt.Tag=et.Tag,tt.CDATA=et.CDATA,tt.Doctype=et.Doctype})(lib$2);var node={},__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var tt=function(et,rt){return tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(nt,st){nt.__proto__=st}||function(nt,st){for(var ot in st)Object.prototype.hasOwnProperty.call(st,ot)&&(nt[ot]=st[ot])},tt(et,rt)};return function(et,rt){if(typeof rt!="function"&&rt!==null)throw new TypeError("Class extends value "+String(rt)+" is not a constructor or null");tt(et,rt);function nt(){this.constructor=et}et.prototype=rt===null?Object.create(rt):(nt.prototype=rt.prototype,new nt)}}(),__assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(tt){for(var et,rt=1,nt=arguments.length;rt<nt;rt++){et=arguments[rt];for(var st in et)Object.prototype.hasOwnProperty.call(et,st)&&(tt[st]=et[st])}return tt},__assign.apply(this,arguments)};Object.defineProperty(node,"__esModule",{value:!0});node.cloneNode=node.hasChildren=node.isDocument=node.isDirective=node.isComment=node.isText=node.isCDATA=node.isTag=node.Element=node.Document=node.CDATA=node.NodeWithChildren=node.ProcessingInstruction=node.Comment=node.Text=node.DataNode=node.Node=void 0;var domelementtype_1=lib$2,Node$2=function(){function tt(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(tt.prototype,"parentNode",{get:function(){return this.parent},set:function(et){this.parent=et},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"previousSibling",{get:function(){return this.prev},set:function(et){this.prev=et},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"nextSibling",{get:function(){return this.next},set:function(et){this.next=et},enumerable:!1,configurable:!0}),tt.prototype.cloneNode=function(et){return et===void 0&&(et=!1),cloneNode(this,et)},tt}();node.Node=Node$2;var DataNode=function(tt){__extends(et,tt);function et(rt){var nt=tt.call(this)||this;return nt.data=rt,nt}return Object.defineProperty(et.prototype,"nodeValue",{get:function(){return this.data},set:function(rt){this.data=rt},enumerable:!1,configurable:!0}),et}(Node$2);node.DataNode=DataNode;var Text$2=function(tt){__extends(et,tt);function et(){var rt=tt!==null&&tt.apply(this,arguments)||this;return rt.type=domelementtype_1.ElementType.Text,rt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),et}(DataNode);node.Text=Text$2;var Comment$1=function(tt){__extends(et,tt);function et(){var rt=tt!==null&&tt.apply(this,arguments)||this;return rt.type=domelementtype_1.ElementType.Comment,rt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),et}(DataNode);node.Comment=Comment$1;var ProcessingInstruction$1=function(tt){__extends(et,tt);function et(rt,nt){var st=tt.call(this,nt)||this;return st.name=rt,st.type=domelementtype_1.ElementType.Directive,st}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),et}(DataNode);node.ProcessingInstruction=ProcessingInstruction$1;var NodeWithChildren=function(tt){__extends(et,tt);function et(rt){var nt=tt.call(this)||this;return nt.children=rt,nt}return Object.defineProperty(et.prototype,"firstChild",{get:function(){var rt;return(rt=this.children[0])!==null&&rt!==void 0?rt:null},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"childNodes",{get:function(){return this.children},set:function(rt){this.children=rt},enumerable:!1,configurable:!0}),et}(Node$2);node.NodeWithChildren=NodeWithChildren;var CDATA=function(tt){__extends(et,tt);function et(){var rt=tt!==null&&tt.apply(this,arguments)||this;return rt.type=domelementtype_1.ElementType.CDATA,rt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),et}(NodeWithChildren);node.CDATA=CDATA;var Document=function(tt){__extends(et,tt);function et(){var rt=tt!==null&&tt.apply(this,arguments)||this;return rt.type=domelementtype_1.ElementType.Root,rt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),et}(NodeWithChildren);node.Document=Document;var Element$2=function(tt){__extends(et,tt);function et(rt,nt,st,ot){st===void 0&&(st=[]),ot===void 0&&(ot=rt==="script"?domelementtype_1.ElementType.Script:rt==="style"?domelementtype_1.ElementType.Style:domelementtype_1.ElementType.Tag);var at=tt.call(this,st)||this;return at.name=rt,at.attribs=nt,at.type=ot,at}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"tagName",{get:function(){return this.name},set:function(rt){this.name=rt},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"attributes",{get:function(){var rt=this;return Object.keys(this.attribs).map(function(nt){var st,ot;return{name:nt,value:rt.attribs[nt],namespace:(st=rt["x-attribsNamespace"])===null||st===void 0?void 0:st[nt],prefix:(ot=rt["x-attribsPrefix"])===null||ot===void 0?void 0:ot[nt]}})},enumerable:!1,configurable:!0}),et}(NodeWithChildren);node.Element=Element$2;function isTag(tt){return(0,domelementtype_1.isTag)(tt)}node.isTag=isTag;function isCDATA(tt){return tt.type===domelementtype_1.ElementType.CDATA}node.isCDATA=isCDATA;function isText(tt){return tt.type===domelementtype_1.ElementType.Text}node.isText=isText;function isComment(tt){return tt.type===domelementtype_1.ElementType.Comment}node.isComment=isComment;function isDirective(tt){return tt.type===domelementtype_1.ElementType.Directive}node.isDirective=isDirective;function isDocument(tt){return tt.type===domelementtype_1.ElementType.Root}node.isDocument=isDocument;function hasChildren(tt){return Object.prototype.hasOwnProperty.call(tt,"children")}node.hasChildren=hasChildren;function cloneNode(tt,et){et===void 0&&(et=!1);var rt;if(isText(tt))rt=new Text$2(tt.data);else if(isComment(tt))rt=new Comment$1(tt.data);else if(isTag(tt)){var nt=et?cloneChildren(tt.children):[],st=new Element$2(tt.name,__assign({},tt.attribs),nt);nt.forEach(function(ut){return ut.parent=st}),tt.namespace!=null&&(st.namespace=tt.namespace),tt["x-attribsNamespace"]&&(st["x-attribsNamespace"]=__assign({},tt["x-attribsNamespace"])),tt["x-attribsPrefix"]&&(st["x-attribsPrefix"]=__assign({},tt["x-attribsPrefix"])),rt=st}else if(isCDATA(tt)){var nt=et?cloneChildren(tt.children):[],ot=new CDATA(nt);nt.forEach(function(ct){return ct.parent=ot}),rt=ot}else if(isDocument(tt)){var nt=et?cloneChildren(tt.children):[],at=new Document(nt);nt.forEach(function(ct){return ct.parent=at}),tt["x-mode"]&&(at["x-mode"]=tt["x-mode"]),rt=at}else if(isDirective(tt)){var lt=new ProcessingInstruction$1(tt.name,tt.data);tt["x-name"]!=null&&(lt["x-name"]=tt["x-name"],lt["x-publicId"]=tt["x-publicId"],lt["x-systemId"]=tt["x-systemId"]),rt=lt}else throw new Error("Not implemented yet: ".concat(tt.type));return rt.startIndex=tt.startIndex,rt.endIndex=tt.endIndex,tt.sourceCodeLocation!=null&&(rt.sourceCodeLocation=tt.sourceCodeLocation),rt}node.cloneNode=cloneNode;function cloneChildren(tt){for(var et=tt.map(function(nt){return cloneNode(nt,!0)}),rt=1;rt<et.length;rt++)et[rt].prev=et[rt-1],et[rt-1].next=et[rt];return et}(function(tt){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(lt,ut,ct,dt){dt===void 0&&(dt=ct);var ht=Object.getOwnPropertyDescriptor(ut,ct);(!ht||("get"in ht?!ut.__esModule:ht.writable||ht.configurable))&&(ht={enumerable:!0,get:function(){return ut[ct]}}),Object.defineProperty(lt,dt,ht)}:function(lt,ut,ct,dt){dt===void 0&&(dt=ct),lt[dt]=ut[ct]}),rt=commonjsGlobal&&commonjsGlobal.__exportStar||function(lt,ut){for(var ct in lt)ct!=="default"&&!Object.prototype.hasOwnProperty.call(ut,ct)&&et(ut,lt,ct)};Object.defineProperty(tt,"__esModule",{value:!0}),tt.DomHandler=void 0;var nt=lib$2,st=node;rt(node,tt);var ot={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},at=function(){function lt(ut,ct,dt){this.dom=[],this.root=new st.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof ct=="function"&&(dt=ct,ct=ot),typeof ut=="object"&&(ct=ut,ut=void 0),this.callback=ut??null,this.options=ct??ot,this.elementCB=dt??null}return lt.prototype.onparserinit=function(ut){this.parser=ut},lt.prototype.onreset=function(){this.dom=[],this.root=new st.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},lt.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},lt.prototype.onerror=function(ut){this.handleCallback(ut)},lt.prototype.onclosetag=function(){this.lastNode=null;var ut=this.tagStack.pop();this.options.withEndIndices&&(ut.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(ut)},lt.prototype.onopentag=function(ut,ct){var dt=this.options.xmlMode?nt.ElementType.Tag:void 0,ht=new st.Element(ut,ct,void 0,dt);this.addNode(ht),this.tagStack.push(ht)},lt.prototype.ontext=function(ut){var ct=this.lastNode;if(ct&&ct.type===nt.ElementType.Text)ct.data+=ut,this.options.withEndIndices&&(ct.endIndex=this.parser.endIndex);else{var dt=new st.Text(ut);this.addNode(dt),this.lastNode=dt}},lt.prototype.oncomment=function(ut){if(this.lastNode&&this.lastNode.type===nt.ElementType.Comment){this.lastNode.data+=ut;return}var ct=new st.Comment(ut);this.addNode(ct),this.lastNode=ct},lt.prototype.oncommentend=function(){this.lastNode=null},lt.prototype.oncdatastart=function(){var ut=new st.Text(""),ct=new st.CDATA([ut]);this.addNode(ct),ut.parent=ct,this.lastNode=ut},lt.prototype.oncdataend=function(){this.lastNode=null},lt.prototype.onprocessinginstruction=function(ut,ct){var dt=new st.ProcessingInstruction(ut,ct);this.addNode(dt)},lt.prototype.handleCallback=function(ut){if(typeof this.callback=="function")this.callback(ut,this.dom);else if(ut)throw ut},lt.prototype.addNode=function(ut){var ct=this.tagStack[this.tagStack.length-1],dt=ct.children[ct.children.length-1];this.options.withStartIndices&&(ut.startIndex=this.parser.startIndex),this.options.withEndIndices&&(ut.endIndex=this.parser.endIndex),ct.children.push(ut),dt&&(ut.prev=dt,dt.next=ut),ut.parent=ct,this.lastNode=null},lt}();tt.DomHandler=at,tt.default=at})(lib$3);var HTML="html",HEAD="head",BODY="body",FIRST_TAG_REGEX=/<([a-zA-Z]+[0-9]?)/,HEAD_TAG_REGEX=/<head[^]*>/i,BODY_TAG_REGEX=/<body[^]*>/i,parseFromDocument=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},parseFromString=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},DOMParser$1=typeof window=="object"&&window.DOMParser;if(typeof DOMParser$1=="function"){var domParser=new DOMParser$1,mimeType="text/html";parseFromString=function(tt,et){return et&&(tt="<"+et+">"+tt+"</"+et+">"),domParser.parseFromString(tt,mimeType)},parseFromDocument=parseFromString}if(typeof document=="object"&&document.implementation){var doc=document.implementation.createHTMLDocument();parseFromDocument=function(tt,et){if(et){var rt=doc.documentElement.querySelector(et);return rt.innerHTML=tt,doc}return doc.documentElement.innerHTML=tt,doc}}var template=typeof document=="object"?document.createElement("template"):{},parseFromTemplate;template.content&&(parseFromTemplate=function(tt){return template.innerHTML=tt,template.content.childNodes});function domparser$1(tt){var et,rt=tt.match(FIRST_TAG_REGEX);rt&&rt[1]&&(et=rt[1].toLowerCase());var nt,st,ot;switch(et){case HTML:return nt=parseFromString(tt),HEAD_TAG_REGEX.test(tt)||(st=nt.querySelector(HEAD),st&&st.parentNode.removeChild(st)),BODY_TAG_REGEX.test(tt)||(st=nt.querySelector(BODY),st&&st.parentNode.removeChild(st)),nt.querySelectorAll(HTML);case HEAD:case BODY:return nt=parseFromDocument(tt),ot=nt.querySelectorAll(et),BODY_TAG_REGEX.test(tt)&&HEAD_TAG_REGEX.test(tt)?ot[0].parentNode.childNodes:ot;default:return parseFromTemplate?parseFromTemplate(tt):(st=parseFromDocument(tt,BODY).querySelector(BODY),st.childNodes)}}var domparser_1=domparser$1,utilities$5={},constants$1={};constants$1.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 domhandler$1=lib$3,constants=constants$1,CASE_SENSITIVE_TAG_NAMES=constants.CASE_SENSITIVE_TAG_NAMES,Comment=domhandler$1.Comment,Element$1=domhandler$1.Element,ProcessingInstruction=domhandler$1.ProcessingInstruction,Text$1=domhandler$1.Text,caseSensitiveTagNamesMap={},tagName;for(var i$1=0,len=CASE_SENSITIVE_TAG_NAMES.length;i$1<len;i$1++)tagName=CASE_SENSITIVE_TAG_NAMES[i$1],caseSensitiveTagNamesMap[tagName.toLowerCase()]=tagName;function getCaseSensitiveTagName(tt){return caseSensitiveTagNamesMap[tt]}function formatAttributes(tt){for(var et={},rt,nt=0,st=tt.length;nt<st;nt++)rt=tt[nt],et[rt.name]=rt.value;return et}function formatTagName(tt){tt=tt.toLowerCase();var et=getCaseSensitiveTagName(tt);return et||tt}function formatDOM$1(tt,et,rt){et=et||null;for(var nt=[],st,ot=0,at=tt.length;ot<at;ot++){var lt=tt[ot],ut;switch(lt.nodeType){case 1:st=formatTagName(lt.nodeName),ut=new Element$1(st,formatAttributes(lt.attributes)),ut.children=formatDOM$1(st==="template"?lt.content.childNodes:lt.childNodes,ut);break;case 3:ut=new Text$1(lt.nodeValue);break;case 8:ut=new Comment(lt.nodeValue);break;default:continue}var ct=nt[ot-1]||null;ct&&(ct.next=ut),ut.parent=et,ut.prev=ct,ut.next=null,nt.push(ut)}return rt&&(ut=new ProcessingInstruction(rt.substring(0,rt.indexOf(" ")).toLowerCase(),rt),ut.next=nt[0]||null,ut.parent=et,nt.unshift(ut),nt[1]&&(nt[1].prev=nt[0])),nt}utilities$5.formatAttributes=formatAttributes;utilities$5.formatDOM=formatDOM$1;var domparser=domparser_1,utilities$4=utilities$5,formatDOM=utilities$4.formatDOM,DIRECTIVE_REGEX=/<(![a-zA-Z\s]+)>/;function HTMLDOMParser(tt){if(typeof tt!="string")throw new TypeError("First argument must be a string");if(tt==="")return[];var et=tt.match(DIRECTIVE_REGEX),rt;return et&&et[1]&&(rt=et[1]),formatDOM(domparser(tt),null,rt)}var htmlToDom=HTMLDOMParser,lib$1={},possibleStandardNamesOptimized$1={},SAME$1=0;possibleStandardNamesOptimized$1.SAME=SAME$1;var CAMELCASE$1=1;possibleStandardNamesOptimized$1.CAMELCASE=CAMELCASE$1;possibleStandardNamesOptimized$1.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(lib$1,"__esModule",{value:!0});function _slicedToArray(tt,et){return _arrayWithHoles(tt)||_iterableToArrayLimit(tt,et)||_unsupportedIterableToArray(tt,et)||_nonIterableRest()}function _arrayWithHoles(tt){if(Array.isArray(tt))return tt}function _iterableToArrayLimit(tt,et){var rt=tt==null?null:typeof Symbol<"u"&&tt[Symbol.iterator]||tt["@@iterator"];if(rt!=null){var nt=[],st=!0,ot=!1,at,lt;try{for(rt=rt.call(tt);!(st=(at=rt.next()).done)&&(nt.push(at.value),!(et&&nt.length===et));st=!0);}catch(ut){ot=!0,lt=ut}finally{try{!st&&rt.return!=null&&rt.return()}finally{if(ot)throw lt}}return nt}}function _unsupportedIterableToArray(tt,et){if(tt){if(typeof tt=="string")return _arrayLikeToArray(tt,et);var rt=Object.prototype.toString.call(tt).slice(8,-1);if(rt==="Object"&&tt.constructor&&(rt=tt.constructor.name),rt==="Map"||rt==="Set")return Array.from(tt);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray(tt,et)}}function _arrayLikeToArray(tt,et){(et==null||et>tt.length)&&(et=tt.length);for(var rt=0,nt=new Array(et);rt<et;rt++)nt[rt]=tt[rt];return nt}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
227
227
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var RESERVED=0,STRING=1,BOOLEANISH_STRING=2,BOOLEAN=3,OVERLOADED_BOOLEAN=4,NUMERIC=5,POSITIVE_NUMERIC=6;function getPropertyInfo(tt){return properties.hasOwnProperty(tt)?properties[tt]:null}function PropertyInfoRecord(tt,et,rt,nt,st,ot,at){this.acceptsBooleans=et===BOOLEANISH_STRING||et===BOOLEAN||et===OVERLOADED_BOOLEAN,this.attributeName=nt,this.attributeNamespace=st,this.mustUseProperty=rt,this.propertyName=tt,this.type=et,this.sanitizeURL=ot,this.removeEmptyString=at}var properties={},reservedProps=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];reservedProps.forEach(function(tt){properties[tt]=new PropertyInfoRecord(tt,RESERVED,!1,tt,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(tt){var et=_slicedToArray(tt,2),rt=et[0],nt=et[1];properties[rt]=new PropertyInfoRecord(rt,STRING,!1,nt,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(tt){properties[tt]=new PropertyInfoRecord(tt,BOOLEANISH_STRING,!1,tt.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(tt){properties[tt]=new PropertyInfoRecord(tt,BOOLEANISH_STRING,!1,tt,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(tt){properties[tt]=new PropertyInfoRecord(tt,BOOLEAN,!1,tt.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(tt){properties[tt]=new PropertyInfoRecord(tt,BOOLEAN,!0,tt,null,!1,!1)});["capture","download"].forEach(function(tt){properties[tt]=new PropertyInfoRecord(tt,OVERLOADED_BOOLEAN,!1,tt,null,!1,!1)});["cols","rows","size","span"].forEach(function(tt){properties[tt]=new PropertyInfoRecord(tt,POSITIVE_NUMERIC,!1,tt,null,!1,!1)});["rowSpan","start"].forEach(function(tt){properties[tt]=new PropertyInfoRecord(tt,NUMERIC,!1,tt.toLowerCase(),null,!1,!1)});var CAMELIZE=/[\-\:]([a-z])/g,capitalize$1=function tt(et){return et[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(tt){var et=tt.replace(CAMELIZE,capitalize$1);properties[et]=new PropertyInfoRecord(et,STRING,!1,tt,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(tt){var et=tt.replace(CAMELIZE,capitalize$1);properties[et]=new PropertyInfoRecord(et,STRING,!1,tt,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(tt){var et=tt.replace(CAMELIZE,capitalize$1);properties[et]=new PropertyInfoRecord(et,STRING,!1,tt,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(tt){properties[tt]=new PropertyInfoRecord(tt,STRING,!1,tt.toLowerCase(),null,!1,!1)});var xlinkHref="xlinkHref";properties[xlinkHref]=new PropertyInfoRecord("xlinkHref",STRING,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(tt){properties[tt]=new PropertyInfoRecord(tt,STRING,!1,tt.toLowerCase(),null,!0,!0)});var _require=possibleStandardNamesOptimized$1,CAMELCASE=_require.CAMELCASE,SAME=_require.SAME,possibleStandardNamesOptimized=_require.possibleStandardNames,ATTRIBUTE_NAME_START_CHAR=":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",ATTRIBUTE_NAME_CHAR=ATTRIBUTE_NAME_START_CHAR+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",isCustomAttribute=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+ATTRIBUTE_NAME_CHAR+"]*$")),possibleStandardNames=Object.keys(possibleStandardNamesOptimized).reduce(function(tt,et){var rt=possibleStandardNamesOptimized[et];return rt===SAME?tt[et]=et:rt===CAMELCASE?tt[et.toLowerCase()]=et:tt[et]=rt,tt},{});lib$1.BOOLEAN=BOOLEAN;lib$1.BOOLEANISH_STRING=BOOLEANISH_STRING;lib$1.NUMERIC=NUMERIC;lib$1.OVERLOADED_BOOLEAN=OVERLOADED_BOOLEAN;lib$1.POSITIVE_NUMERIC=POSITIVE_NUMERIC;lib$1.RESERVED=RESERVED;lib$1.STRING=STRING;lib$1.getPropertyInfo=getPropertyInfo;lib$1.isCustomAttribute=isCustomAttribute;lib$1.possibleStandardNames=possibleStandardNames;var cjs={},styleToObject={exports:{}},COMMENT_REGEX=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,NEWLINE_REGEX=/\n/g,WHITESPACE_REGEX=/^\s*/,PROPERTY_REGEX=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,COLON_REGEX=/^:\s*/,VALUE_REGEX=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,SEMICOLON_REGEX=/^[;\s]*/,TRIM_REGEX=/^\s+|\s+$/g,NEWLINE=`
|
|
228
|
-
`,FORWARD_SLASH="/",ASTERISK="*",EMPTY_STRING="",TYPE_COMMENT="comment",TYPE_DECLARATION="declaration",inlineStyleParser=function(tt,et){if(typeof tt!="string")throw new TypeError("First argument must be a string");if(!tt)return[];et=et||{};var rt=1,nt=1;function st(yt){var vt=yt.match(NEWLINE_REGEX);vt&&(rt+=vt.length);var Et=yt.lastIndexOf(NEWLINE);nt=~Et?yt.length-Et:nt+yt.length}function ot(){var yt={line:rt,column:nt};return function(vt){return vt.position=new at(yt),ct(),vt}}function at(yt){this.start=yt,this.end={line:rt,column:nt},this.source=et.source}at.prototype.content=tt;function lt(yt){var vt=new Error(et.source+":"+rt+":"+nt+": "+yt);if(vt.reason=yt,vt.filename=et.source,vt.line=rt,vt.column=nt,vt.source=tt,!et.silent)throw vt}function ut(yt){var vt=yt.exec(tt);if(vt){var Et=vt[0];return st(Et),tt=tt.slice(Et.length),vt}}function ct(){ut(WHITESPACE_REGEX)}function dt(yt){var vt;for(yt=yt||[];vt=ht();)vt!==!1&&yt.push(vt);return yt}function ht(){var yt=ot();if(!(FORWARD_SLASH!=tt.charAt(0)||ASTERISK!=tt.charAt(1))){for(var vt=2;EMPTY_STRING!=tt.charAt(vt)&&(ASTERISK!=tt.charAt(vt)||FORWARD_SLASH!=tt.charAt(vt+1));)++vt;if(vt+=2,EMPTY_STRING===tt.charAt(vt-1))return lt("End of comment missing");var Et=tt.slice(2,vt-2);return nt+=2,st(Et),tt=tt.slice(vt),nt+=2,yt({type:TYPE_COMMENT,comment:Et})}}function ft(){var yt=ot(),vt=ut(PROPERTY_REGEX);if(vt){if(ht(),!ut(COLON_REGEX))return lt("property missing ':'");var Et=ut(VALUE_REGEX),bt=yt({type:TYPE_DECLARATION,property:trim(vt[0].replace(COMMENT_REGEX,EMPTY_STRING)),value:Et?trim(Et[0].replace(COMMENT_REGEX,EMPTY_STRING)):EMPTY_STRING});return ut(SEMICOLON_REGEX),bt}}function xt(){var yt=[];dt(yt);for(var vt;vt=ft();)vt!==!1&&(yt.push(vt),dt(yt));return yt}return ct(),xt()};function trim(tt){return tt?tt.replace(TRIM_REGEX,EMPTY_STRING):EMPTY_STRING}var parse$2=inlineStyleParser;function StyleToObject(tt,et){var rt=null;if(!tt||typeof tt!="string")return rt;for(var nt,st=parse$2(tt),ot=typeof et=="function",at,lt,ut=0,ct=st.length;ut<ct;ut++)nt=st[ut],at=nt.property,lt=nt.value,ot?et(at,lt,nt):lt&&(rt||(rt={}),rt[at]=lt);return rt}styleToObject.exports=StyleToObject;styleToObject.exports.default=StyleToObject;var styleToObjectExports=styleToObject.exports,utilities$3={};utilities$3.__esModule=!0;utilities$3.camelCase=void 0;var CUSTOM_PROPERTY_REGEX=/^--[a-zA-Z0-9-]+$/,HYPHEN_REGEX=/-([a-z])/g,NO_HYPHEN_REGEX=/^[^-]+$/,VENDOR_PREFIX_REGEX=/^-(webkit|moz|ms|o|khtml)-/,MS_VENDOR_PREFIX_REGEX=/^-(ms)-/,skipCamelCase=function(tt){return!tt||NO_HYPHEN_REGEX.test(tt)||CUSTOM_PROPERTY_REGEX.test(tt)},capitalize=function(tt,et){return et.toUpperCase()},trimHyphen=function(tt,et){return"".concat(et,"-")},camelCase=function(tt,et){return et===void 0&&(et={}),skipCamelCase(tt)?tt:(tt=tt.toLowerCase(),et.reactCompat?tt=tt.replace(MS_VENDOR_PREFIX_REGEX,trimHyphen):tt=tt.replace(VENDOR_PREFIX_REGEX,trimHyphen),tt.replace(HYPHEN_REGEX,capitalize))};utilities$3.camelCase=camelCase;(function(tt){var et=commonjsGlobal&&commonjsGlobal.__importDefault||function(ot){return ot&&ot.__esModule?ot:{default:ot}};tt.__esModule=!0;var rt=et(styleToObjectExports),nt=utilities$3;function st(ot,at){var lt={};return!ot||typeof ot!="string"||(0,rt.default)(ot,function(ut,ct){ut&&ct&&(lt[(0,nt.camelCase)(ut,at)]=ct)}),lt}tt.default=st})(cjs);var React$3=reactExports,styleToJS=cjs.default;function invertObject(tt,et){if(!tt||typeof tt!="object")throw new TypeError("First argument must be an object");var rt=typeof et=="function",nt={},st={};for(var ot in tt){var at=tt[ot];if(rt&&(nt=et(ot,at),nt&&nt.length===2)){st[nt[0]]=nt[1];continue}typeof at=="string"&&(st[at]=ot)}return st}var RESERVED_SVG_MATHML_ELEMENTS=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function isCustomComponent(tt,et){return tt.indexOf("-")===-1?et&&typeof et.is=="string":!RESERVED_SVG_MATHML_ELEMENTS.has(tt)}var STYLE_TO_JS_OPTIONS={reactCompat:!0};function setStyleProp$1(tt,et){if(tt!=null)try{et.style=styleToJS(tt,STYLE_TO_JS_OPTIONS)}catch{et.style={}}}var PRESERVE_CUSTOM_ATTRIBUTES=React$3.version.split(".")[0]>=16,ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function canTextBeChildOfNode$1(tt){return!ELEMENTS_WITH_NO_TEXT_CHILDREN.has(tt.name)}function returnFirstArg(tt){return tt}var utilities$2={PRESERVE_CUSTOM_ATTRIBUTES,ELEMENTS_WITH_NO_TEXT_CHILDREN,invertObject,isCustomComponent,setStyleProp:setStyleProp$1,canTextBeChildOfNode:canTextBeChildOfNode$1,returnFirstArg},reactProperty=lib$1,utilities$1=utilities$2,UNCONTROLLED_COMPONENT_ATTRIBUTES=["checked","value"],UNCONTROLLED_COMPONENT_NAMES=["input","select","textarea"],VALUE_ONLY_INPUTS={reset:!0,submit:!0},attributesToProps$3=function tt(et,rt){et=et||{};var nt,st,ot,at,lt,ut={},ct=et.type&&VALUE_ONLY_INPUTS[et.type];for(nt in et){if(ot=et[nt],reactProperty.isCustomAttribute(nt)){ut[nt]=ot;continue}if(st=nt.toLowerCase(),at=getPropName(st),at){switch(lt=reactProperty.getPropertyInfo(at),UNCONTROLLED_COMPONENT_ATTRIBUTES.indexOf(at)!==-1&&UNCONTROLLED_COMPONENT_NAMES.indexOf(rt)!==-1&&!ct&&(at=getPropName("default"+st)),ut[at]=ot,lt&<.type){case reactProperty.BOOLEAN:ut[at]=!0;break;case reactProperty.OVERLOADED_BOOLEAN:ot===""&&(ut[at]=!0);break}continue}utilities$1.PRESERVE_CUSTOM_ATTRIBUTES&&(ut[nt]=ot)}return utilities$1.setStyleProp(et.style,ut),ut};function getPropName(tt){return reactProperty.possibleStandardNames[tt]}var React$2=reactExports,attributesToProps$2=attributesToProps$3,utilities=utilities$2,setStyleProp=utilities.setStyleProp,canTextBeChildOfNode=utilities.canTextBeChildOfNode;function domToReact$2(tt,et){et=et||{};for(var rt=et.library||React$2,nt=rt.cloneElement,st=rt.createElement,ot=rt.isValidElement,at=[],lt,ut,ct=typeof et.replace=="function",dt=et.transform||utilities.returnFirstArg,ht,ft,xt,yt=et.trim,vt=0,Et=tt.length;vt<Et;vt++){if(lt=tt[vt],ct&&(ht=et.replace(lt),ot(ht))){Et>1&&(ht=nt(ht,{key:ht.key||vt})),at.push(dt(ht,lt,vt));continue}if(lt.type==="text"){if(ut=!lt.data.trim().length,ut&<.parent&&!canTextBeChildOfNode(lt.parent)||yt&&ut)continue;at.push(dt(lt.data,lt,vt));continue}switch(ft=lt.attribs,skipAttributesToProps(lt)?setStyleProp(ft.style,ft):ft&&(ft=attributesToProps$2(ft,lt.name)),xt=null,lt.type){case"script":case"style":lt.children[0]&&(ft.dangerouslySetInnerHTML={__html:lt.children[0].data});break;case"tag":lt.name==="textarea"&<.children[0]?ft.defaultValue=lt.children[0].data:lt.children&<.children.length&&(xt=domToReact$2(lt.children,et));break;default:continue}Et>1&&(ft.key=vt),at.push(dt(st(lt.name,ft,xt),lt,vt))}return at.length===1?at[0]:at}function skipAttributesToProps(tt){return utilities.PRESERVE_CUSTOM_ATTRIBUTES&&tt.type==="tag"&&utilities.isCustomComponent(tt.name,tt.attribs)}var domToReact_1=domToReact$2,domhandler=lib$3,htmlToDOM=htmlToDom,attributesToProps$1=attributesToProps$3,domToReact$1=domToReact_1;htmlToDOM=typeof htmlToDOM.default=="function"?htmlToDOM.default:htmlToDOM;var domParserOptions={lowerCaseAttributeNames:!1};function HTMLReactParser(tt,et){if(typeof tt!="string")throw new TypeError("First argument must be a string");return tt===""?[]:(et=et||{},domToReact$1(htmlToDOM(tt,et.htmlparser2||domParserOptions),et))}HTMLReactParser.domToReact=domToReact$1;HTMLReactParser.htmlToDOM=htmlToDOM;HTMLReactParser.attributesToProps=attributesToProps$1;HTMLReactParser.Comment=domhandler.Comment;HTMLReactParser.Element=domhandler.Element;HTMLReactParser.ProcessingInstruction=domhandler.ProcessingInstruction;HTMLReactParser.Text=domhandler.Text;var htmlReactParser=HTMLReactParser;HTMLReactParser.default=HTMLReactParser;const HTMLReactParser$1=getDefaultExportFromCjs(htmlReactParser);var domToReact=HTMLReactParser$1.domToReact;HTMLReactParser$1.htmlToDOM;var attributesToProps=HTMLReactParser$1.attributesToProps;HTMLReactParser$1.Comment;HTMLReactParser$1.Element;HTMLReactParser$1.ProcessingInstruction;HTMLReactParser$1.Text;const SvgIconBurgerMenu=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.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 5M21 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.5M21 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.5",clipRule:"evenodd"})]});function useHelp(){var tt,et,rt,nt,st;const{appCode:ot}=useEdificeClient(),{theme:at}=useEdificeTheme(),[lt,ut]=reactExports.useState(""),[ct,dt]=reactExports.useState(!0),[ht,ft]=reactExports.useState(!1),[xt,yt]=reactExports.useState(!1),vt=at!=null&&at.is1d?"/help-1d":"/help-2d";reactExports.useEffect(()=>{(async()=>{let wt="";wt=vt+"/application/"+ot+"/",!ot&&window.location.pathname!=="/adapter"?wt=vt+"/application/portal/":window.location.pathname==="/adapter"?wt=vt+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?wt=vt+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(wt=vt+"/application/userbook/");try{const Rt=await fetch(wt),Ct=await Rt.text();if(Rt.status===404){yt(!0);return}ut(Ct),yt(!1)}catch(Rt){yt(!0),console.error(Rt)}})()},[ot,vt]);const Et=HTMLReactParser$1(lt,{replace:wt=>{const Rt=wt;if(Rt.attribs&&Rt.attribs.id==="TOC")return jsxRuntimeExports.jsxs("nav",{id:"TOC",children:[jsxRuntimeExports.jsx(Button,{onClick:()=>{dt(!ct)},children:jsxRuntimeExports.jsx(SvgIconBurgerMenu,{})}),domToReact(Rt.children,{replace:Ct=>{const Pt=Ct;if(Pt.attribs&&Pt.name==="ul")return jsxRuntimeExports.jsx("ul",{id:"TOC-list",style:{display:ct?"block":"none"},children:domToReact(Pt.children,{replace:It=>{const jt=It;if(jt.attribs&&jt.name==="a")return jsxRuntimeExports.jsx("a",{...attributesToProps(jt.attribs),children:jsxRuntimeExports.jsx("span",{onClick:()=>{dt(!1)},children:domToReact(jt.children)})})}})})}})]});if(Rt.attribs&&Rt.attribs.class==="section level2"){const Ct=attributesToProps(wt.attribs);return jsxRuntimeExports.jsx("div",{...Ct,className:"section level2",style:{display:Rt.attribs.id!=="présentation"?"none":"block"},children:domToReact(Rt.children,{replace:Pt=>{const It=Pt;if(It.attribs&&It.name==="img"){const jt=Pt.attribs.src;return jsxRuntimeExports.jsx("img",{...attributesToProps(It.attribs),src:`${vt}/${jt}`,alt:""})}}})})}}}),bt=(rt=(et=(tt=Et==null?void 0:Et.props)==null?void 0:tt.children.find(wt=>wt.type==="body"))==null?void 0:et.props)==null?void 0:rt.children,St=(st=(nt=bt==null?void 0:bt.find(wt=>wt.type==="p"))==null?void 0:nt.props)==null?void 0:st.children;return{html:lt,visibility:ct,isModalOpen:ht,setIsModalOpen:ft,parsedContent:bt,parsedHeadline:St,error:xt}}const Header=({is1d:tt=!1,src:et=""})=>{const{t:rt}=useTranslation(),{messages:nt,msgLink:st,zimbraWorkflow:ot}=useConversation(),{user:at,avatar:lt}=useUser(),{currentLanguage:ut,currentApp:ct}=useEdificeClient(),dt=useHasWorkflow("org.entcore.portal.controllers.PortalController|oldHelpEnable")||!1,{isModalOpen:ht,setIsModalOpen:ft,parsedContent:xt,parsedHeadline:yt,error:vt}=useHelp(),Et=clsx("header",{"no-2d":tt,"no-1d":!tt}),{title:bt,bookmarkedApps:St,appsRef:wt,isAppsHovered:Rt,popoverAppsId:Ct,userAvatar:Pt,userName:It,welcomeUser:jt,communityWorkflow:Dt,conversationWorflow:Vt,searchWorkflow:Ft,isCollapsed:Ht,toggleCollapsedNav:Nt,handleLogout:Lt}=useHeader({user:at,avatar:lt}),Mt=nt>0,{theme:zt}=useEdificeTheme();return jsxRuntimeExports.jsx("header",{className:Et,children:tt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"container-fluid",children:jsxRuntimeExports.jsxs(Navbar,{children:[jsxRuntimeExports.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:ct?ct.address:"/timeline/timeline",children:bt}),jsxRuntimeExports.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[jsxRuntimeExports.jsx(Avatar,{alt:It,size:"sm",src:Pt,variant:"circle",width:"32",height:"32"}),jsxRuntimeExports.jsx("span",{className:"navbar-text",children:jt})]}),jsxRuntimeExports.jsxs(NavBarNav,{className:"gap-8","aria-hidden":"false","aria-label":rt("navbar.main.navigation"),children:[Vt&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[jsxRuntimeExports.jsx(SvgIconOneMessaging,{className:"icon notification"}),Mt&&jsxRuntimeExports.jsx(Badge,{variant:{type:"notification",level:"danger"},className:"position-absolute",children:nt}),jsxRuntimeExports.jsx(VisuallyHidden,{children:rt("navbar.messages")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsx(NavLink,{link:"/userbook/mon-compte",className:"dropdown-item",translate:rt("navbar.myaccount"),children:jsxRuntimeExports.jsx(SvgIconOneProfile,{className:"icon user"})})}),ut==="fr"&&dt?jsxRuntimeExports.jsxs(NavItem,{children:[jsxRuntimeExports.jsxs("button",{className:"nav-link",onClick:()=>{ft(!0)},children:[jsxRuntimeExports.jsx(SvgIconOneAssistance,{className:"icon help"}),jsxRuntimeExports.jsx(VisuallyHidden,{children:rt("navbar.help")})]}),jsxRuntimeExports.jsx(Help,{isHelpOpen:ht,setIsHelpOpen:ft,parsedContent:xt,parsedHeadline:yt,error:vt})]}):null,jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("button",{className:"nav-link",onClick:Lt,children:[jsxRuntimeExports.jsx(SvgIconDisconnect,{className:"icon logout"}),jsxRuntimeExports.jsx(VisuallyHidden,{children:rt("navbar.disconnect")})]})}),jsxRuntimeExports.jsx(NavItem,{className:"d-md-none",children:jsxRuntimeExports.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!Ht,"aria-label":rt("navbar.secondary.navigation"),onClick:Nt,children:jsxRuntimeExports.jsx(SvgIconRafterDown,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),jsxRuntimeExports.jsx(Navbar,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":rt("navbar.secondary.navigation"),children:jsxRuntimeExports.jsx("div",{className:"container-fluid",children:jsxRuntimeExports.jsxs("div",{className:`collapse navbar-collapse ${Ht?"":"show"}`,id:"navbarCollapsed",children:[jsxRuntimeExports.jsx(Logo,{is1d:!0,src:`${et}/img/illustrations/logo.png`,translate:rt("navbar.home")}),jsxRuntimeExports.jsxs(NavBarNav,{className:"gap-8",children:[jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/timeline/timeline",className:"button",children:[jsxRuntimeExports.jsx(SvgIconNewRelease,{color:"#fff",className:"d-md-none"}),jsxRuntimeExports.jsx("span",{className:"d-inline-block",children:rt("portal.header.navigation.whatsnew")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[jsxRuntimeExports.jsx(SvgIconUserbook,{color:"#fff",className:"d-md-none"}),jsxRuntimeExports.jsx("span",{className:"d-inline-block",children:rt("portal.header.navigation.classMembers")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/welcome",className:"button",children:[jsxRuntimeExports.jsx(SvgIconMyApps,{color:"#fff",className:"d-md-none"}),jsxRuntimeExports.jsx("span",{className:"d-inline-block",children:rt("portal.header.navigation.myapps")})]})})]})]})})})]}):jsxRuntimeExports.jsx(Navbar,{className:"navbar-expand-md",children:jsxRuntimeExports.jsxs("div",{className:"container-fluid",children:[jsxRuntimeExports.jsx(Logo,{src:`${et}/img/illustrations/logo.png`}),jsxRuntimeExports.jsx("a",{href:ct?ct.address:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:bt}),jsxRuntimeExports.jsxs("ul",{className:"navbar-nav",children:[jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsx(NavLink,{link:"/timeline/timeline",translate:rt("navbar.home"),children:jsxRuntimeExports.jsx(SvgIconHome,{color:"#fff"})})}),jsxRuntimeExports.jsxs(NavItem,{className:"position-relative",ref:wt,id:Ct,"aria-haspopup":"true","aria-expanded":Rt,children:[jsxRuntimeExports.jsx(NavLink,{link:"/welcome",translate:rt("navbar.applications"),children:jsxRuntimeExports.jsx(SvgIconMyApps,{color:"#fff"})}),jsxRuntimeExports.jsxs(Popover,{className:"top-100 widget",id:Ct,isVisible:Rt,children:[jsxRuntimeExports.jsx(PopoverBody,{children:jsxRuntimeExports.jsx(WidgetAppsBody,{bookmarkedApps:St})}),jsxRuntimeExports.jsx(PopoverFooter,{className:"widget-footer border-top border-ghost",children:jsxRuntimeExports.jsx(WidgetAppsFooter,{})})]})]}),Vt&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs(NavLink,{className:"position-relative",link:"/conversation/conversation",translate:rt("conversation"),children:[jsxRuntimeExports.jsx(SvgIconNeoMessaging,{color:"#fff"}),Mt&&jsxRuntimeExports.jsx(Badge,{variant:{type:"notification",level:"warning"},className:"position-absolute",children:nt})]})}),ot&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs(NavLink,{className:"position-relative",link:st,translate:rt("conversation"),children:[jsxRuntimeExports.jsx(SvgIconNeoMessaging,{color:"#fff"}),Mt&&jsxRuntimeExports.jsx(Badge,{variant:{type:"notification",level:"warning"},className:"position-absolute",children:nt})]})}),ut==="fr"&&dt?jsxRuntimeExports.jsxs(NavItem,{children:[jsxRuntimeExports.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{ft(!0)},children:[jsxRuntimeExports.jsx(SvgIconNeoAssistance,{color:"#fff"}),jsxRuntimeExports.jsx(VisuallyHidden,{children:rt("support")})]}),jsxRuntimeExports.jsx(Help,{isHelpOpen:ht,setIsHelpOpen:ft,parsedContent:xt,parsedHeadline:yt,error:vt})]}):null,jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("div",{className:"dropdown",children:[jsxRuntimeExports.jsx("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!Ht,"aria-label":rt("navbar.open.menu"),onClick:Nt,children:jsxRuntimeExports.jsx(SvgIconRafterDown,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),jsxRuntimeExports.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${Ht?"":"show"}`,id:"dropdown-navbar",children:[Dt&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[jsxRuntimeExports.jsx(SvgIconCommunity,{className:"icon community"}),jsxRuntimeExports.jsx("span",{className:"nav-text",children:rt("navbar.community")})]})}),Ft?jsxRuntimeExports.jsx(SearchEngine,{}):null,jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[jsxRuntimeExports.jsx(Avatar,{alt:It,size:"sm",src:Pt,variant:"circle",className:"bg-white",width:"32",height:"32"}),jsxRuntimeExports.jsx("span",{className:"nav-text",children:rt("navbar.myaccount")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsx("hr",{className:"dropdown-divider"})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/auth/logout?callback="+((zt==null?void 0:zt.logoutCallback)??"/"),className:"nav-link dropdown-item",children:[jsxRuntimeExports.jsx(SvgIconDisconnect,{className:"icon logout"}),jsxRuntimeExports.jsx("span",{id:"logout-label",className:"nav-text",children:rt("navbar.disconnect")})]})})]})]})})]})]})})})};function usePreferences(tt){return{getPreference:async()=>await odeServices.conf().getPreference(tt),savePreference:async et=>await odeServices.conf().savePreference(tt,JSON.stringify(et))}}function useCookiesConsent(){const[tt,et]=reactExports.useState(!1),{getPreference:rt,savePreference:nt}=usePreferences("rgpdCookies");return reactExports.useEffect(()=>{(async()=>{const st=await rt();et(st===null?!0:st.showInfoTip)})()},[]),{showCookiesConsent:tt,handleConsultCookies:()=>{document.location.href="/userbook/mon-compte",nt({showInfoTip:!1}),et(!1)},handleCloseCookiesConsent:()=>{nt({showInfoTip:!1}),et(!1)}}}const Layout=({children:tt,headless:et=!1,...rt})=>{const{theme:nt}=useEdificeTheme(),{t:st}=useTranslation(),{showCookiesConsent:ot,handleConsultCookies:at,handleCloseCookiesConsent:lt}=useCookiesConsent();useZendeskGuide(),useCantoo();const ut=clsx("d-flex flex-column bg-white",{"container-fluid":!et,"rounded-4 border":(nt==null?void 0:nt.is1d)&&!et,"mt-24":(nt==null?void 0:nt.is1d)&&!et}),ct=et?null:jsxRuntimeExports.jsx(Header,{is1d:nt==null?void 0:nt.is1d,src:nt==null?void 0:nt.basePath}),dt=ot&&jsxRuntimeExports.jsx(Alert,{type:"info",className:"m-12 rgpd",isConfirm:!0,position:"bottom-right",button:jsxRuntimeExports.jsx(Button,{color:"tertiary",variant:"ghost",onClick:at,children:st("rgpd.cookies.banner.button.consult")}),onClose:lt,children:st("rgpd.cookies.banner.text1")}),ht=jsxRuntimeExports.jsx(De$1,{containerClassName:"toaster-container",toastOptions:{position:"top-right"}});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ct,jsxRuntimeExports.jsx("main",{className:ut,...rt,children:tt}),ht,dt]})},Toolbar=reactExports.forwardRef(({items:tt,variant:et="default",align:rt="space",isBlock:nt=!1,ariaControls:st,className:ot},at)=>{const[lt,ut]=reactExports.useState(0),[ct,dt]=reactExports.useState([]),[ht,ft]=reactExports.useState(),[xt,yt]=reactExports.useState(),vt=reactExports.useRef(),Et=clsx("toolbar z-1000 bg-white",ot,{default:et==="default","no-shadow":et==="no-shadow","d-flex":nt,"d-inline-flex":!nt,"overflow-x-auto":nt,"justify-content-start":rt==="left","justify-content-between":rt==="space","justify-content-center":rt==="center","justify-content-end":rt==="right"});reactExports.useEffect(()=>{var Pt;const It=(Pt=vt.current)==null?void 0:Pt.querySelectorAll("button"),jt=[];let Dt=!1;It==null||It.forEach(Vt=>{Vt.disabled||(Dt||(ft(Vt),Dt=!0),yt(Vt),jt.push(Vt))}),dt(jt),ut(tt.findIndex(Vt=>(Vt.type==="button"||Vt.type==="icon")&&!Vt.props.disabled))},[tt]);const bt=Pt=>{Pt.target.classList.add("focus")},St=Pt=>{Pt.target.classList.remove("focus")},wt=Pt=>{var It,jt;const Dt=ct.indexOf(Pt.currentTarget);switch(Pt.code){case"ArrowLeft":Pt.currentTarget===ht?xt==null||xt.focus():(It=ct[Dt-1])==null||It.focus();break;case"ArrowRight":Pt.currentTarget===xt?ht==null||ht.focus():(jt=ct[Dt+1])==null||jt.focus();break}},Rt=Pt=>{var It;return typeof Pt.tooltip=="string"?Pt.tooltip:(It=Pt.tooltip)==null?void 0:It.message},Ct=Pt=>{var It;return typeof Pt.tooltip!="string"?(It=Pt.tooltip)==null?void 0:It.position:"top"};return jsxRuntimeExports.jsx("div",{ref:mergeRefs(at,vt),className:Et,role:"toolbar","aria-label":"Text Formatting","aria-controls":st,onFocus:bt,onBlur:St,children:tt.map((Pt,It)=>{if(Pt.visibility==="hide")return null;switch(Pt.type){case"divider":return jsxRuntimeExports.jsx("div",{className:"toolbar-divider"},Pt.name??It);case"button":return jsxRuntimeExports.jsx(Tooltip,{message:Rt(Pt),placement:Ct(Pt),children:reactExports.createElement(Button,{...Pt.props,key:Pt.name??It,color:Pt.props.color?Pt.props.color:"tertiary",variant:"ghost",tabIndex:It===lt?0:-1,onKeyDown:wt})},Pt.name??It);case"icon":return jsxRuntimeExports.jsx(Tooltip,{message:Rt(Pt),placement:Ct(Pt),children:reactExports.createElement(IconButton,{...Pt.props,key:Pt.name??It,color:Pt.props.color?Pt.props.color:"tertiary",variant:Pt.props.variant?Pt.props.variant:"ghost",tabIndex:It===lt?0:-1,onKeyDown:wt})},Pt.name??It);case"dropdown":return reactExports.createElement(Dropdown,{...Pt.props,key:Pt.name??It,extraTriggerKeyDownHandler:wt,overflow:Pt.overflow});case"primary":return jsxRuntimeExports.jsx(Tooltip,{message:Rt(Pt),placement:Ct(Pt),children:jsxRuntimeExports.jsx(Button,{...Pt.props,variant:"filled",color:"primary",tabIndex:It===lt?0:-1,onKeyDown:wt})},Pt.name??It)}return null})})}),loadingScreen="/assets/js/ode-explorer/screen-loading.gif",LoadingScreen=reactExports.forwardRef(({position:tt=!0,caption:et},rt)=>{const nt=clsx("top-0 end-0 start-0 bottom-0 d-grid justify-content-center align-content-center align-items-center z-2000",{"position-fixed":!tt,"position-static":tt}),st=clsx("text-center pt-12",{"text-white":!tt});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{ref:rt,className:nt,children:[jsxRuntimeExports.jsx("div",{className:"bg-white rounded-circle mx-auto w-25",children:jsxRuntimeExports.jsx("img",{src:loadingScreen,alt:"loading"})}),et&&jsxRuntimeExports.jsx("div",{className:st,children:et})]}),!tt&&jsxRuntimeExports.jsx("div",{className:"modal-backdrop fade show"})]})}),TabsContext=reactExports.createContext(null);function useTabsContext(){const tt=reactExports.useContext(TabsContext);if(!tt)throw new Error("Tabs compound components cannot be rendered outside the Tabs component");return tt}const useTabs=({defaultId:tt,items:et,onChange:rt})=>{const[nt,st]=reactExports.useState(tt||""),[ot,at]=reactExports.useState(0),[lt,ut]=reactExports.useState(0),ct=reactExports.useRef([]),dt=reactExports.useCallback(yt=>{st(yt)},[]);reactExports.useEffect(()=>{const yt=et.find(vt=>vt.id===nt);yt&&(rt==null||rt(yt))},[nt]),reactExports.useEffect(()=>{function yt(){var vt;if(((vt=document==null?void 0:document.activeElement)==null?void 0:vt.tagName)!=="INPUT"){const Et=et.findIndex(St=>St.id===nt);Et===-1&&tt&&st(tt);const bt=ct.current[Et];bt&&(bt.focus(),ut((bt==null?void 0:bt.offsetLeft)??0),at((bt==null?void 0:bt.clientWidth)??0))}}return yt(),window.addEventListener("resize",yt),()=>window.removeEventListener("resize",yt)},[nt,et,tt]);const ht=reactExports.useCallback(yt=>{var vt,Et,bt;const St=et.findIndex(wt=>wt.id===yt);yt===((vt=et[0])==null?void 0:vt.id)?st((Et=et[et.length-1])==null?void 0:Et.id):st((bt=et[St-1])==null?void 0:bt.id)},[et]),ft=reactExports.useCallback(yt=>{var vt,Et,bt;const St=et.findIndex(wt=>wt.id===yt);yt===((vt=et[et.length-1])==null?void 0:vt.id)?st((Et=et[0])==null?void 0:Et.id):st((bt=et[St+1])==null?void 0:bt.id)},[et]),xt=reactExports.useCallback(yt=>{var vt,Et;switch(yt.code){case"ArrowLeft":ht(nt);break;case"ArrowRight":ft(nt);break;case"Home":st((vt=et[0])==null?void 0:vt.id);break;case"End":st((Et=et[et.length-1])==null?void 0:Et.id);break}},[nt,et,ft,ht]);return{activeTab:nt,setSelectedTab:dt,tabsRef:ct,tabUnderlineLeft:lt,tabUnderlineWidth:ot,onKeyDown:xt}},TabsItem=({icon:tt,label:et,id:rt,order:nt})=>{const{activeTab:st,setSelectedTab:ot,onKeyDown:at,tabsRef:lt}=useTabsContext(),{t:ut}=useTranslation(),ct=clsx("nav-link d-inline-flex gap-8 border-0",st===rt?"selected":"");return jsxRuntimeExports.jsx("li",{className:"nav-item flex-shrink-0",role:"presentation",children:jsxRuntimeExports.jsxs("button",{ref:dt=>lt.current[nt]=dt,type:"button",id:`tab-${rt}`,className:ct,onClick:()=>ot(rt),onKeyDown:dt=>at(dt),role:"tab","aria-controls":`tabpanel-${rt}`,"aria-selected":st===rt,tabIndex:st===rt?0:-1,children:[tt,jsxRuntimeExports.jsx("small",{children:ut(et)})]})})},TabsList=tt=>{const{items:et,tabUnderlineLeft:rt,tabUnderlineWidth:nt}=useTabsContext(),{className:st,...ot}=tt,at=clsx("position-relative flex-shrink-0 overflow-x-auto",st);return jsxRuntimeExports.jsxs("div",{className:at,...ot,children:[jsxRuntimeExports.jsx("ul",{className:"nav nav-tabs flex-nowrap",role:"tablist",children:et.map((lt,ut)=>jsxRuntimeExports.jsx(Tabs.Item,{order:ut,...lt},lt.id))}),jsxRuntimeExports.jsx("span",{className:"nav-slide",style:{left:rt,width:nt}})]})},TabsPanel=({children:tt,currentItem:et})=>{const{activeTab:rt}=useTabsContext();return jsxRuntimeExports.jsx("div",{className:"tab-content d-flex flex-fill w-100",children:jsxRuntimeExports.jsx("div",{className:`tab-pane flex-fill w-100 fade ${rt===(et==null?void 0:et.id)?"show active":""}`,id:`tabpanel-${et==null?void 0:et.id}`,role:"tabpanel","aria-labelledby":`tab-${et==null?void 0:et.id}`,tabIndex:0,children:tt})})},Tabs=({defaultId:tt,items:et,onChange:rt,children:nt})=>{const{activeTab:st,setSelectedTab:ot,tabsRef:at,tabUnderlineLeft:lt,tabUnderlineWidth:ut,onKeyDown:ct}=useTabs({defaultId:tt,items:et,onChange:rt}),dt=reactExports.useMemo(()=>({activeTab:st,items:et,setSelectedTab:ot,tabsRef:at,tabUnderlineLeft:lt,tabUnderlineWidth:ut,onKeyDown:ct}),[st,et,ct,ot,lt,ut,at]),ht=et.find(ft=>ft.id===st);return jsxRuntimeExports.jsx(TabsContext.Provider,{value:dt,children:typeof nt=="function"?nt(ht):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Tabs.List,{}),jsxRuntimeExports.jsx(Tabs.Panel,{currentItem:ht,children:ht==null?void 0:ht.content})]})})};Tabs.Item=TabsItem;Tabs.Panel=TabsPanel;Tabs.List=TabsList;const TextArea=reactExports.forwardRef(({noValidationIcon:tt,placeholder:et,size:rt="md",height:nt="md",className:st,...ot},at)=>{const{id:lt,isRequired:ut,isReadOnly:ct,status:dt}=useFormControl(),ht=clsx({"form-control":!ct,"form-control-lg":rt==="lg","form-control-sm":rt==="sm","textarea-height-lg":nt==="lg","textarea-height-md":nt==="md","textarea-height-sm":nt==="sm","is-invalid":dt==="invalid","is-valid":dt==="valid","form-control-plaintext":ct,"no-validation-icon":tt},st);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx("textarea",{ref:at,id:lt,className:ht,placeholder:et,required:ut,readOnly:ct,...ot})})}),useMediaLibrary=()=>{const tt=reactExports.useRef(null),[et,rt]=reactExports.useState(),{remove:nt}=useWorkspaceFile();return{ref:tt,libraryMedia:et,setLibraryMedia:rt,onCancel:async st=>{var ot,at;(ot=tt.current)!=null&&ot.type&&st&&st.length>0&&await nt(st),(at=tt.current)==null||at.hide()},onSuccess:st=>{var ot,at,lt,ut;let ct;switch((ot=tt.current)==null?void 0:ot.type){case"video":{if(typeof st=="object")ct=st[0];else{const dt=new DOMParser().parseFromString(st,"text/html").body.firstChild,ht=dt==null?void 0:dt.getAttribute("src");(at=tt.current)==null||at.hide(),ct=ht}break}case"embedder":{const dt=new DOMParser().parseFromString(st,"text/html").body.firstChild,ht=dt==null?void 0:dt.getAttribute("src");(lt=tt.current)==null||lt.hide(),ct=ht;break}case"audio":{st.length===void 0?ct=st:ct=st[0];break}case"hyperlink":{ct=st;break}case"image":{ct=`/workspace/document/${st[0]._id}`;break}default:ct=st[0]}(ut=tt.current)==null||ut.hide(),rt(ct)},onTabChange:async(st,ot)=>{var at;(at=tt.current)!=null&&at.type&&ot&&ot.length>0&&await nt(ot)}}};function isObject$3(tt){return tt!==null&&typeof tt=="object"&&"constructor"in tt&&tt.constructor===Object}function extend$2(tt,et){tt===void 0&&(tt={}),et===void 0&&(et={}),Object.keys(et).forEach(rt=>{typeof tt[rt]>"u"?tt[rt]=et[rt]:isObject$3(et[rt])&&isObject$3(tt[rt])&&Object.keys(et[rt]).length>0&&extend$2(tt[rt],et[rt])})}const ssrDocument={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){const tt=typeof document<"u"?document:{};return extend$2(tt,ssrDocument),tt}const ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function tt(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(tt){return typeof setTimeout>"u"?(tt(),null):setTimeout(tt,0)},cancelAnimationFrame(tt){typeof setTimeout>"u"||clearTimeout(tt)}};function getWindow(){const tt=typeof window<"u"?window:{};return extend$2(tt,ssrWindow),tt}function deleteProps(tt){const et=tt;Object.keys(et).forEach(rt=>{try{et[rt]=null}catch{}try{delete et[rt]}catch{}})}function nextTick(tt,et){return et===void 0&&(et=0),setTimeout(tt,et)}function now(){return Date.now()}function getComputedStyle$1(tt){const et=getWindow();let rt;return et.getComputedStyle&&(rt=et.getComputedStyle(tt,null)),!rt&&tt.currentStyle&&(rt=tt.currentStyle),rt||(rt=tt.style),rt}function getTranslate(tt,et){et===void 0&&(et="x");const rt=getWindow();let nt,st,ot;const at=getComputedStyle$1(tt);return rt.WebKitCSSMatrix?(st=at.transform||at.webkitTransform,st.split(",").length>6&&(st=st.split(", ").map(lt=>lt.replace(",",".")).join(", ")),ot=new rt.WebKitCSSMatrix(st==="none"?"":st)):(ot=at.MozTransform||at.OTransform||at.MsTransform||at.msTransform||at.transform||at.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),nt=ot.toString().split(",")),et==="x"&&(rt.WebKitCSSMatrix?st=ot.m41:nt.length===16?st=parseFloat(nt[12]):st=parseFloat(nt[4])),et==="y"&&(rt.WebKitCSSMatrix?st=ot.m42:nt.length===16?st=parseFloat(nt[13]):st=parseFloat(nt[5])),st||0}function isObject$2(tt){return typeof tt=="object"&&tt!==null&&tt.constructor&&Object.prototype.toString.call(tt).slice(8,-1)==="Object"}function isNode(tt){return typeof window<"u"&&typeof window.HTMLElement<"u"?tt instanceof HTMLElement:tt&&(tt.nodeType===1||tt.nodeType===11)}function extend$1(){const tt=Object(arguments.length<=0?void 0:arguments[0]),et=["__proto__","constructor","prototype"];for(let rt=1;rt<arguments.length;rt+=1){const nt=rt<0||arguments.length<=rt?void 0:arguments[rt];if(nt!=null&&!isNode(nt)){const st=Object.keys(Object(nt)).filter(ot=>et.indexOf(ot)<0);for(let ot=0,at=st.length;ot<at;ot+=1){const lt=st[ot],ut=Object.getOwnPropertyDescriptor(nt,lt);ut!==void 0&&ut.enumerable&&(isObject$2(tt[lt])&&isObject$2(nt[lt])?nt[lt].__swiper__?tt[lt]=nt[lt]:extend$1(tt[lt],nt[lt]):!isObject$2(tt[lt])&&isObject$2(nt[lt])?(tt[lt]={},nt[lt].__swiper__?tt[lt]=nt[lt]:extend$1(tt[lt],nt[lt])):tt[lt]=nt[lt])}}}return tt}function setCSSProperty(tt,et,rt){tt.style.setProperty(et,rt)}function animateCSSModeScroll(tt){let{swiper:et,targetPosition:rt,side:nt}=tt;const st=getWindow(),ot=-et.translate;let at=null,lt;const ut=et.params.speed;et.wrapperEl.style.scrollSnapType="none",st.cancelAnimationFrame(et.cssModeFrameID);const ct=rt>ot?"next":"prev",dt=(ft,xt)=>ct==="next"&&ft>=xt||ct==="prev"&&ft<=xt,ht=()=>{lt=new Date().getTime(),at===null&&(at=lt);const ft=Math.max(Math.min((lt-at)/ut,1),0),xt=.5-Math.cos(ft*Math.PI)/2;let yt=ot+xt*(rt-ot);if(dt(yt,rt)&&(yt=rt),et.wrapperEl.scrollTo({[nt]:yt}),dt(yt,rt)){et.wrapperEl.style.overflow="hidden",et.wrapperEl.style.scrollSnapType="",setTimeout(()=>{et.wrapperEl.style.overflow="",et.wrapperEl.scrollTo({[nt]:yt})}),st.cancelAnimationFrame(et.cssModeFrameID);return}et.cssModeFrameID=st.requestAnimationFrame(ht)};ht()}function elementChildren(tt,et){return et===void 0&&(et=""),[...tt.children].filter(rt=>rt.matches(et))}function createElement(tt,et){et===void 0&&(et=[]);const rt=document.createElement(tt);return rt.classList.add(...Array.isArray(et)?et:[et]),rt}function elementPrevAll(tt,et){const rt=[];for(;tt.previousElementSibling;){const nt=tt.previousElementSibling;et?nt.matches(et)&&rt.push(nt):rt.push(nt),tt=nt}return rt}function elementNextAll(tt,et){const rt=[];for(;tt.nextElementSibling;){const nt=tt.nextElementSibling;et?nt.matches(et)&&rt.push(nt):rt.push(nt),tt=nt}return rt}function elementStyle(tt,et){return getWindow().getComputedStyle(tt,null).getPropertyValue(et)}function elementIndex(tt){let et=tt,rt;if(et){for(rt=0;(et=et.previousSibling)!==null;)et.nodeType===1&&(rt+=1);return rt}}function elementParents(tt,et){const rt=[];let nt=tt.parentElement;for(;nt;)et?nt.matches(et)&&rt.push(nt):rt.push(nt),nt=nt.parentElement;return rt}function elementOuterSize(tt,et,rt){const nt=getWindow();return tt[et==="width"?"offsetWidth":"offsetHeight"]+parseFloat(nt.getComputedStyle(tt,null).getPropertyValue(et==="width"?"margin-right":"margin-top"))+parseFloat(nt.getComputedStyle(tt,null).getPropertyValue(et==="width"?"margin-left":"margin-bottom"))}function createElementIfNotDefined(tt,et,rt,nt){return tt.params.createElements&&Object.keys(nt).forEach(st=>{if(!rt[st]&&rt.auto===!0){let ot=elementChildren(tt.el,`.${nt[st]}`)[0];ot||(ot=createElement("div",nt[st]),ot.className=nt[st],tt.el.append(ot)),rt[st]=ot,et[st]=ot}}),rt}function classesToSelector(tt){return tt===void 0&&(tt=""),`.${tt.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Pagination(tt){let{swiper:et,extendParams:rt,on:nt,emit:st}=tt;const ot="swiper-pagination";rt({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:St=>St,formatFractionTotal:St=>St,bulletClass:`${ot}-bullet`,bulletActiveClass:`${ot}-bullet-active`,modifierClass:`${ot}-`,currentClass:`${ot}-current`,totalClass:`${ot}-total`,hiddenClass:`${ot}-hidden`,progressbarFillClass:`${ot}-progressbar-fill`,progressbarOppositeClass:`${ot}-progressbar-opposite`,clickableClass:`${ot}-clickable`,lockClass:`${ot}-lock`,horizontalClass:`${ot}-horizontal`,verticalClass:`${ot}-vertical`,paginationDisabledClass:`${ot}-disabled`}}),et.pagination={el:null,bullets:[]};let at,lt=0;const ut=St=>(Array.isArray(St)?St:[St]).filter(wt=>!!wt);function ct(){return!et.params.pagination.el||!et.pagination.el||Array.isArray(et.pagination.el)&&et.pagination.el.length===0}function dt(St,wt){const{bulletActiveClass:Rt}=et.params.pagination;St&&(St=St[`${wt==="prev"?"previous":"next"}ElementSibling`],St&&(St.classList.add(`${Rt}-${wt}`),St=St[`${wt==="prev"?"previous":"next"}ElementSibling`],St&&St.classList.add(`${Rt}-${wt}-${wt}`)))}function ht(St){const wt=St.target.closest(classesToSelector(et.params.pagination.bulletClass));if(!wt)return;St.preventDefault();const Rt=elementIndex(wt)*et.params.slidesPerGroup;if(et.params.loop){if(et.realIndex===Rt)return;const Ct=et.realIndex,Pt=et.getSlideIndexByData(Rt),It=et.getSlideIndexByData(et.realIndex),jt=Dt=>{const Vt=et.activeIndex;et.loopFix({direction:Dt,activeSlideIndex:Pt,slideTo:!1});const Ft=et.activeIndex;Vt===Ft&&et.slideToLoop(Ct,0,!1,!0)};if(Pt>et.slides.length-et.loopedSlides)jt(Pt>It?"next":"prev");else if(et.params.centeredSlides){const Dt=et.params.slidesPerView==="auto"?et.slidesPerViewDynamic():Math.ceil(parseFloat(et.params.slidesPerView,10));Pt<Math.floor(Dt/2)&&jt("prev")}et.slideToLoop(Rt)}else et.slideTo(Rt)}function ft(){const St=et.rtl,wt=et.params.pagination;if(ct())return;let Rt=et.pagination.el;Rt=ut(Rt);let Ct,Pt;const It=et.virtual&&et.params.virtual.enabled?et.virtual.slides.length:et.slides.length,jt=et.params.loop?Math.ceil(It/et.params.slidesPerGroup):et.snapGrid.length;if(et.params.loop?(Pt=et.previousRealIndex||0,Ct=et.params.slidesPerGroup>1?Math.floor(et.realIndex/et.params.slidesPerGroup):et.realIndex):typeof et.snapIndex<"u"?(Ct=et.snapIndex,Pt=et.previousSnapIndex):(Pt=et.previousIndex||0,Ct=et.activeIndex||0),wt.type==="bullets"&&et.pagination.bullets&&et.pagination.bullets.length>0){const Dt=et.pagination.bullets;let Vt,Ft,Ht;if(wt.dynamicBullets&&(at=elementOuterSize(Dt[0],et.isHorizontal()?"width":"height"),Rt.forEach(Nt=>{Nt.style[et.isHorizontal()?"width":"height"]=`${at*(wt.dynamicMainBullets+4)}px`}),wt.dynamicMainBullets>1&&Pt!==void 0&&(lt+=Ct-(Pt||0),lt>wt.dynamicMainBullets-1?lt=wt.dynamicMainBullets-1:lt<0&&(lt=0)),Vt=Math.max(Ct-lt,0),Ft=Vt+(Math.min(Dt.length,wt.dynamicMainBullets)-1),Ht=(Ft+Vt)/2),Dt.forEach(Nt=>{const Lt=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(Mt=>`${wt.bulletActiveClass}${Mt}`)].map(Mt=>typeof Mt=="string"&&Mt.includes(" ")?Mt.split(" "):Mt).flat();Nt.classList.remove(...Lt)}),Rt.length>1)Dt.forEach(Nt=>{const Lt=elementIndex(Nt);Lt===Ct?Nt.classList.add(...wt.bulletActiveClass.split(" ")):et.isElement&&Nt.setAttribute("part","bullet"),wt.dynamicBullets&&(Lt>=Vt&&Lt<=Ft&&Nt.classList.add(...`${wt.bulletActiveClass}-main`.split(" ")),Lt===Vt&&dt(Nt,"prev"),Lt===Ft&&dt(Nt,"next"))});else{const Nt=Dt[Ct];if(Nt&&Nt.classList.add(...wt.bulletActiveClass.split(" ")),et.isElement&&Dt.forEach((Lt,Mt)=>{Lt.setAttribute("part",Mt===Ct?"bullet-active":"bullet")}),wt.dynamicBullets){const Lt=Dt[Vt],Mt=Dt[Ft];for(let zt=Vt;zt<=Ft;zt+=1)Dt[zt]&&Dt[zt].classList.add(...`${wt.bulletActiveClass}-main`.split(" "));dt(Lt,"prev"),dt(Mt,"next")}}if(wt.dynamicBullets){const Nt=Math.min(Dt.length,wt.dynamicMainBullets+4),Lt=(at*Nt-at)/2-Ht*at,Mt=St?"right":"left";Dt.forEach(zt=>{zt.style[et.isHorizontal()?Mt:"top"]=`${Lt}px`})}}Rt.forEach((Dt,Vt)=>{if(wt.type==="fraction"&&(Dt.querySelectorAll(classesToSelector(wt.currentClass)).forEach(Ft=>{Ft.textContent=wt.formatFractionCurrent(Ct+1)}),Dt.querySelectorAll(classesToSelector(wt.totalClass)).forEach(Ft=>{Ft.textContent=wt.formatFractionTotal(jt)})),wt.type==="progressbar"){let Ft;wt.progressbarOpposite?Ft=et.isHorizontal()?"vertical":"horizontal":Ft=et.isHorizontal()?"horizontal":"vertical";const Ht=(Ct+1)/jt;let Nt=1,Lt=1;Ft==="horizontal"?Nt=Ht:Lt=Ht,Dt.querySelectorAll(classesToSelector(wt.progressbarFillClass)).forEach(Mt=>{Mt.style.transform=`translate3d(0,0,0) scaleX(${Nt}) scaleY(${Lt})`,Mt.style.transitionDuration=`${et.params.speed}ms`})}wt.type==="custom"&&wt.renderCustom?(Dt.innerHTML=wt.renderCustom(et,Ct+1,jt),Vt===0&&st("paginationRender",Dt)):(Vt===0&&st("paginationRender",Dt),st("paginationUpdate",Dt)),et.params.watchOverflow&&et.enabled&&Dt.classList[et.isLocked?"add":"remove"](wt.lockClass)})}function xt(){const St=et.params.pagination;if(ct())return;const wt=et.virtual&&et.params.virtual.enabled?et.virtual.slides.length:et.slides.length;let Rt=et.pagination.el;Rt=ut(Rt);let Ct="";if(St.type==="bullets"){let Pt=et.params.loop?Math.ceil(wt/et.params.slidesPerGroup):et.snapGrid.length;et.params.freeMode&&et.params.freeMode.enabled&&Pt>wt&&(Pt=wt);for(let It=0;It<Pt;It+=1)St.renderBullet?Ct+=St.renderBullet.call(et,It,St.bulletClass):Ct+=`<${St.bulletElement} ${et.isElement?'part="bullet"':""} class="${St.bulletClass}"></${St.bulletElement}>`}St.type==="fraction"&&(St.renderFraction?Ct=St.renderFraction.call(et,St.currentClass,St.totalClass):Ct=`<span class="${St.currentClass}"></span> / <span class="${St.totalClass}"></span>`),St.type==="progressbar"&&(St.renderProgressbar?Ct=St.renderProgressbar.call(et,St.progressbarFillClass):Ct=`<span class="${St.progressbarFillClass}"></span>`),et.pagination.bullets=[],Rt.forEach(Pt=>{St.type!=="custom"&&(Pt.innerHTML=Ct||""),St.type==="bullets"&&et.pagination.bullets.push(...Pt.querySelectorAll(classesToSelector(St.bulletClass)))}),St.type!=="custom"&&st("paginationRender",Rt[0])}function yt(){et.params.pagination=createElementIfNotDefined(et,et.originalParams.pagination,et.params.pagination,{el:"swiper-pagination"});const St=et.params.pagination;if(!St.el)return;let wt;typeof St.el=="string"&&et.isElement&&(wt=et.el.querySelector(St.el)),!wt&&typeof St.el=="string"&&(wt=[...document.querySelectorAll(St.el)]),wt||(wt=St.el),!(!wt||wt.length===0)&&(et.params.uniqueNavElements&&typeof St.el=="string"&&Array.isArray(wt)&&wt.length>1&&(wt=[...et.el.querySelectorAll(St.el)],wt.length>1&&(wt=wt.filter(Rt=>elementParents(Rt,".swiper")[0]===et.el)[0])),Array.isArray(wt)&&wt.length===1&&(wt=wt[0]),Object.assign(et.pagination,{el:wt}),wt=ut(wt),wt.forEach(Rt=>{St.type==="bullets"&&St.clickable&&Rt.classList.add(...(St.clickableClass||"").split(" ")),Rt.classList.add(St.modifierClass+St.type),Rt.classList.add(et.isHorizontal()?St.horizontalClass:St.verticalClass),St.type==="bullets"&&St.dynamicBullets&&(Rt.classList.add(`${St.modifierClass}${St.type}-dynamic`),lt=0,St.dynamicMainBullets<1&&(St.dynamicMainBullets=1)),St.type==="progressbar"&&St.progressbarOpposite&&Rt.classList.add(St.progressbarOppositeClass),St.clickable&&Rt.addEventListener("click",ht),et.enabled||Rt.classList.add(St.lockClass)}))}function vt(){const St=et.params.pagination;if(ct())return;let wt=et.pagination.el;wt&&(wt=ut(wt),wt.forEach(Rt=>{Rt.classList.remove(St.hiddenClass),Rt.classList.remove(St.modifierClass+St.type),Rt.classList.remove(et.isHorizontal()?St.horizontalClass:St.verticalClass),St.clickable&&(Rt.classList.remove(...(St.clickableClass||"").split(" ")),Rt.removeEventListener("click",ht))})),et.pagination.bullets&&et.pagination.bullets.forEach(Rt=>Rt.classList.remove(...St.bulletActiveClass.split(" ")))}nt("changeDirection",()=>{if(!et.pagination||!et.pagination.el)return;const St=et.params.pagination;let{el:wt}=et.pagination;wt=ut(wt),wt.forEach(Rt=>{Rt.classList.remove(St.horizontalClass,St.verticalClass),Rt.classList.add(et.isHorizontal()?St.horizontalClass:St.verticalClass)})}),nt("init",()=>{et.params.pagination.enabled===!1?bt():(yt(),xt(),ft())}),nt("activeIndexChange",()=>{typeof et.snapIndex>"u"&&ft()}),nt("snapIndexChange",()=>{ft()}),nt("snapGridLengthChange",()=>{xt(),ft()}),nt("destroy",()=>{vt()}),nt("enable disable",()=>{let{el:St}=et.pagination;St&&(St=ut(St),St.forEach(wt=>wt.classList[et.enabled?"remove":"add"](et.params.pagination.lockClass)))}),nt("lock unlock",()=>{ft()}),nt("click",(St,wt)=>{const Rt=wt.target,Ct=ut(et.pagination.el);if(et.params.pagination.el&&et.params.pagination.hideOnClick&&Ct&&Ct.length>0&&!Rt.classList.contains(et.params.pagination.bulletClass)){if(et.navigation&&(et.navigation.nextEl&&Rt===et.navigation.nextEl||et.navigation.prevEl&&Rt===et.navigation.prevEl))return;const Pt=Ct[0].classList.contains(et.params.pagination.hiddenClass);st(Pt===!0?"paginationShow":"paginationHide"),Ct.forEach(It=>It.classList.toggle(et.params.pagination.hiddenClass))}});const Et=()=>{et.el.classList.remove(et.params.pagination.paginationDisabledClass);let{el:St}=et.pagination;St&&(St=ut(St),St.forEach(wt=>wt.classList.remove(et.params.pagination.paginationDisabledClass))),yt(),xt(),ft()},bt=()=>{et.el.classList.add(et.params.pagination.paginationDisabledClass);let{el:St}=et.pagination;St&&(St=ut(St),St.forEach(wt=>wt.classList.add(et.params.pagination.paginationDisabledClass))),vt()};Object.assign(et.pagination,{enable:Et,disable:bt,render:xt,update:ft,init:yt,destroy:vt})}let support;function calcSupport(){const tt=getWindow(),et=getDocument();return{smoothScroll:et.documentElement&&et.documentElement.style&&"scrollBehavior"in et.documentElement.style,touch:!!("ontouchstart"in tt||tt.DocumentTouch&&et instanceof tt.DocumentTouch)}}function getSupport(){return support||(support=calcSupport()),support}let deviceCached;function calcDevice(tt){let{userAgent:et}=tt===void 0?{}:tt;const rt=getSupport(),nt=getWindow(),st=nt.navigator.platform,ot=et||nt.navigator.userAgent,at={ios:!1,android:!1},lt=nt.screen.width,ut=nt.screen.height,ct=ot.match(/(Android);?[\s\/]+([\d.]+)?/);let dt=ot.match(/(iPad).*OS\s([\d_]+)/);const ht=ot.match(/(iPod)(.*OS\s([\d_]+))?/),ft=!dt&&ot.match(/(iPhone\sOS|iOS)\s([\d_]+)/),xt=st==="Win32";let yt=st==="MacIntel";const vt=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!dt&&yt&&rt.touch&&vt.indexOf(`${lt}x${ut}`)>=0&&(dt=ot.match(/(Version)\/([\d.]+)/),dt||(dt=[0,1,"13_0_0"]),yt=!1),ct&&!xt&&(at.os="android",at.android=!0),(dt||ft||ht)&&(at.os="ios",at.ios=!0),at}function getDevice(tt){return tt===void 0&&(tt={}),deviceCached||(deviceCached=calcDevice(tt)),deviceCached}let browser;function calcBrowser(){const tt=getWindow();let et=!1;function rt(){const nt=tt.navigator.userAgent.toLowerCase();return nt.indexOf("safari")>=0&&nt.indexOf("chrome")<0&&nt.indexOf("android")<0}if(rt()){const nt=String(tt.navigator.userAgent);if(nt.includes("Version/")){const[st,ot]=nt.split("Version/")[1].split(" ")[0].split(".").map(at=>Number(at));et=st<16||st===16&&ot<2}}return{isSafari:et||rt(),needPerspectiveFix:et,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(tt.navigator.userAgent)}}function getBrowser(){return browser||(browser=calcBrowser()),browser}function Resize(tt){let{swiper:et,on:rt,emit:nt}=tt;const st=getWindow();let ot=null,at=null;const lt=()=>{!et||et.destroyed||!et.initialized||(nt("beforeResize"),nt("resize"))},ut=()=>{!et||et.destroyed||!et.initialized||(ot=new ResizeObserver(ht=>{at=st.requestAnimationFrame(()=>{const{width:ft,height:xt}=et;let yt=ft,vt=xt;ht.forEach(Et=>{let{contentBoxSize:bt,contentRect:St,target:wt}=Et;wt&&wt!==et.el||(yt=St?St.width:(bt[0]||bt).inlineSize,vt=St?St.height:(bt[0]||bt).blockSize)}),(yt!==ft||vt!==xt)&<()})}),ot.observe(et.el))},ct=()=>{at&&st.cancelAnimationFrame(at),ot&&ot.unobserve&&et.el&&(ot.unobserve(et.el),ot=null)},dt=()=>{!et||et.destroyed||!et.initialized||nt("orientationchange")};rt("init",()=>{if(et.params.resizeObserver&&typeof st.ResizeObserver<"u"){ut();return}st.addEventListener("resize",lt),st.addEventListener("orientationchange",dt)}),rt("destroy",()=>{ct(),st.removeEventListener("resize",lt),st.removeEventListener("orientationchange",dt)})}function Observer(tt){let{swiper:et,extendParams:rt,on:nt,emit:st}=tt;const ot=[],at=getWindow(),lt=function(dt,ht){ht===void 0&&(ht={});const ft=at.MutationObserver||at.WebkitMutationObserver,xt=new ft(yt=>{if(et.__preventObserver__)return;if(yt.length===1){st("observerUpdate",yt[0]);return}const vt=function(){st("observerUpdate",yt[0])};at.requestAnimationFrame?at.requestAnimationFrame(vt):at.setTimeout(vt,0)});xt.observe(dt,{attributes:typeof ht.attributes>"u"?!0:ht.attributes,childList:typeof ht.childList>"u"?!0:ht.childList,characterData:typeof ht.characterData>"u"?!0:ht.characterData}),ot.push(xt)},ut=()=>{if(et.params.observer){if(et.params.observeParents){const dt=elementParents(et.hostEl);for(let ht=0;ht<dt.length;ht+=1)lt(dt[ht])}lt(et.hostEl,{childList:et.params.observeSlideChildren}),lt(et.wrapperEl,{attributes:!1})}},ct=()=>{ot.forEach(dt=>{dt.disconnect()}),ot.splice(0,ot.length)};rt({observer:!1,observeParents:!1,observeSlideChildren:!1}),nt("init",ut),nt("destroy",ct)}var eventsEmitter={on(tt,et,rt){const nt=this;if(!nt.eventsListeners||nt.destroyed||typeof et!="function")return nt;const st=rt?"unshift":"push";return tt.split(" ").forEach(ot=>{nt.eventsListeners[ot]||(nt.eventsListeners[ot]=[]),nt.eventsListeners[ot][st](et)}),nt},once(tt,et,rt){const nt=this;if(!nt.eventsListeners||nt.destroyed||typeof et!="function")return nt;function st(){nt.off(tt,st),st.__emitterProxy&&delete st.__emitterProxy;for(var ot=arguments.length,at=new Array(ot),lt=0;lt<ot;lt++)at[lt]=arguments[lt];et.apply(nt,at)}return st.__emitterProxy=et,nt.on(tt,st,rt)},onAny(tt,et){const rt=this;if(!rt.eventsListeners||rt.destroyed||typeof tt!="function")return rt;const nt=et?"unshift":"push";return rt.eventsAnyListeners.indexOf(tt)<0&&rt.eventsAnyListeners[nt](tt),rt},offAny(tt){const et=this;if(!et.eventsListeners||et.destroyed||!et.eventsAnyListeners)return et;const rt=et.eventsAnyListeners.indexOf(tt);return rt>=0&&et.eventsAnyListeners.splice(rt,1),et},off(tt,et){const rt=this;return!rt.eventsListeners||rt.destroyed||!rt.eventsListeners||tt.split(" ").forEach(nt=>{typeof et>"u"?rt.eventsListeners[nt]=[]:rt.eventsListeners[nt]&&rt.eventsListeners[nt].forEach((st,ot)=>{(st===et||st.__emitterProxy&&st.__emitterProxy===et)&&rt.eventsListeners[nt].splice(ot,1)})}),rt},emit(){const tt=this;if(!tt.eventsListeners||tt.destroyed||!tt.eventsListeners)return tt;let et,rt,nt;for(var st=arguments.length,ot=new Array(st),at=0;at<st;at++)ot[at]=arguments[at];return typeof ot[0]=="string"||Array.isArray(ot[0])?(et=ot[0],rt=ot.slice(1,ot.length),nt=tt):(et=ot[0].events,rt=ot[0].data,nt=ot[0].context||tt),rt.unshift(nt),(Array.isArray(et)?et:et.split(" ")).forEach(ut=>{tt.eventsAnyListeners&&tt.eventsAnyListeners.length&&tt.eventsAnyListeners.forEach(ct=>{ct.apply(nt,[ut,...rt])}),tt.eventsListeners&&tt.eventsListeners[ut]&&tt.eventsListeners[ut].forEach(ct=>{ct.apply(nt,rt)})}),tt}};function updateSize(){const tt=this;let et,rt;const nt=tt.el;typeof tt.params.width<"u"&&tt.params.width!==null?et=tt.params.width:et=nt.clientWidth,typeof tt.params.height<"u"&&tt.params.height!==null?rt=tt.params.height:rt=nt.clientHeight,!(et===0&&tt.isHorizontal()||rt===0&&tt.isVertical())&&(et=et-parseInt(elementStyle(nt,"padding-left")||0,10)-parseInt(elementStyle(nt,"padding-right")||0,10),rt=rt-parseInt(elementStyle(nt,"padding-top")||0,10)-parseInt(elementStyle(nt,"padding-bottom")||0,10),Number.isNaN(et)&&(et=0),Number.isNaN(rt)&&(rt=0),Object.assign(tt,{width:et,height:rt,size:tt.isHorizontal()?et:rt}))}function updateSlides(){const tt=this;function et(Ft){return tt.isHorizontal()?Ft:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[Ft]}function rt(Ft,Ht){return parseFloat(Ft.getPropertyValue(et(Ht))||0)}const nt=tt.params,{wrapperEl:st,slidesEl:ot,size:at,rtlTranslate:lt,wrongRTL:ut}=tt,ct=tt.virtual&&nt.virtual.enabled,dt=ct?tt.virtual.slides.length:tt.slides.length,ht=elementChildren(ot,`.${tt.params.slideClass}, swiper-slide`),ft=ct?tt.virtual.slides.length:ht.length;let xt=[];const yt=[],vt=[];let Et=nt.slidesOffsetBefore;typeof Et=="function"&&(Et=nt.slidesOffsetBefore.call(tt));let bt=nt.slidesOffsetAfter;typeof bt=="function"&&(bt=nt.slidesOffsetAfter.call(tt));const St=tt.snapGrid.length,wt=tt.slidesGrid.length;let Rt=nt.spaceBetween,Ct=-Et,Pt=0,It=0;if(typeof at>"u")return;typeof Rt=="string"&&Rt.indexOf("%")>=0?Rt=parseFloat(Rt.replace("%",""))/100*at:typeof Rt=="string"&&(Rt=parseFloat(Rt)),tt.virtualSize=-Rt,ht.forEach(Ft=>{lt?Ft.style.marginLeft="":Ft.style.marginRight="",Ft.style.marginBottom="",Ft.style.marginTop=""}),nt.centeredSlides&&nt.cssMode&&(setCSSProperty(st,"--swiper-centered-offset-before",""),setCSSProperty(st,"--swiper-centered-offset-after",""));const jt=nt.grid&&nt.grid.rows>1&&tt.grid;jt&&tt.grid.initSlides(ft);let Dt;const Vt=nt.slidesPerView==="auto"&&nt.breakpoints&&Object.keys(nt.breakpoints).filter(Ft=>typeof nt.breakpoints[Ft].slidesPerView<"u").length>0;for(let Ft=0;Ft<ft;Ft+=1){Dt=0;let Ht;if(ht[Ft]&&(Ht=ht[Ft]),jt&&tt.grid.updateSlide(Ft,Ht,ft,et),!(ht[Ft]&&elementStyle(Ht,"display")==="none")){if(nt.slidesPerView==="auto"){Vt&&(ht[Ft].style[et("width")]="");const Nt=getComputedStyle(Ht),Lt=Ht.style.transform,Mt=Ht.style.webkitTransform;if(Lt&&(Ht.style.transform="none"),Mt&&(Ht.style.webkitTransform="none"),nt.roundLengths)Dt=tt.isHorizontal()?elementOuterSize(Ht,"width"):elementOuterSize(Ht,"height");else{const zt=rt(Nt,"width"),Gt=rt(Nt,"padding-left"),Ot=rt(Nt,"padding-right"),Ut=rt(Nt,"margin-left"),Bt=rt(Nt,"margin-right"),Yt=Nt.getPropertyValue("box-sizing");if(Yt&&Yt==="border-box")Dt=zt+Ut+Bt;else{const{clientWidth:Zt,offsetWidth:Xt}=Ht;Dt=zt+Gt+Ot+Ut+Bt+(Xt-Zt)}}Lt&&(Ht.style.transform=Lt),Mt&&(Ht.style.webkitTransform=Mt),nt.roundLengths&&(Dt=Math.floor(Dt))}else Dt=(at-(nt.slidesPerView-1)*Rt)/nt.slidesPerView,nt.roundLengths&&(Dt=Math.floor(Dt)),ht[Ft]&&(ht[Ft].style[et("width")]=`${Dt}px`);ht[Ft]&&(ht[Ft].swiperSlideSize=Dt),vt.push(Dt),nt.centeredSlides?(Ct=Ct+Dt/2+Pt/2+Rt,Pt===0&&Ft!==0&&(Ct=Ct-at/2-Rt),Ft===0&&(Ct=Ct-at/2-Rt),Math.abs(Ct)<1/1e3&&(Ct=0),nt.roundLengths&&(Ct=Math.floor(Ct)),It%nt.slidesPerGroup===0&&xt.push(Ct),yt.push(Ct)):(nt.roundLengths&&(Ct=Math.floor(Ct)),(It-Math.min(tt.params.slidesPerGroupSkip,It))%tt.params.slidesPerGroup===0&&xt.push(Ct),yt.push(Ct),Ct=Ct+Dt+Rt),tt.virtualSize+=Dt+Rt,Pt=Dt,It+=1}}if(tt.virtualSize=Math.max(tt.virtualSize,at)+bt,lt&&ut&&(nt.effect==="slide"||nt.effect==="coverflow")&&(st.style.width=`${tt.virtualSize+Rt}px`),nt.setWrapperSize&&(st.style[et("width")]=`${tt.virtualSize+Rt}px`),jt&&tt.grid.updateWrapperSize(Dt,xt,et),!nt.centeredSlides){const Ft=[];for(let Ht=0;Ht<xt.length;Ht+=1){let Nt=xt[Ht];nt.roundLengths&&(Nt=Math.floor(Nt)),xt[Ht]<=tt.virtualSize-at&&Ft.push(Nt)}xt=Ft,Math.floor(tt.virtualSize-at)-Math.floor(xt[xt.length-1])>1&&xt.push(tt.virtualSize-at)}if(ct&&nt.loop){const Ft=vt[0]+Rt;if(nt.slidesPerGroup>1){const Ht=Math.ceil((tt.virtual.slidesBefore+tt.virtual.slidesAfter)/nt.slidesPerGroup),Nt=Ft*nt.slidesPerGroup;for(let Lt=0;Lt<Ht;Lt+=1)xt.push(xt[xt.length-1]+Nt)}for(let Ht=0;Ht<tt.virtual.slidesBefore+tt.virtual.slidesAfter;Ht+=1)nt.slidesPerGroup===1&&xt.push(xt[xt.length-1]+Ft),yt.push(yt[yt.length-1]+Ft),tt.virtualSize+=Ft}if(xt.length===0&&(xt=[0]),Rt!==0){const Ft=tt.isHorizontal()&<?"marginLeft":et("marginRight");ht.filter((Ht,Nt)=>!nt.cssMode||nt.loop?!0:Nt!==ht.length-1).forEach(Ht=>{Ht.style[Ft]=`${Rt}px`})}if(nt.centeredSlides&&nt.centeredSlidesBounds){let Ft=0;vt.forEach(Nt=>{Ft+=Nt+(Rt||0)}),Ft-=Rt;const Ht=Ft-at;xt=xt.map(Nt=>Nt<=0?-Et:Nt>Ht?Ht+bt:Nt)}if(nt.centerInsufficientSlides){let Ft=0;if(vt.forEach(Ht=>{Ft+=Ht+(Rt||0)}),Ft-=Rt,Ft<at){const Ht=(at-Ft)/2;xt.forEach((Nt,Lt)=>{xt[Lt]=Nt-Ht}),yt.forEach((Nt,Lt)=>{yt[Lt]=Nt+Ht})}}if(Object.assign(tt,{slides:ht,snapGrid:xt,slidesGrid:yt,slidesSizesGrid:vt}),nt.centeredSlides&&nt.cssMode&&!nt.centeredSlidesBounds){setCSSProperty(st,"--swiper-centered-offset-before",`${-xt[0]}px`),setCSSProperty(st,"--swiper-centered-offset-after",`${tt.size/2-vt[vt.length-1]/2}px`);const Ft=-tt.snapGrid[0],Ht=-tt.slidesGrid[0];tt.snapGrid=tt.snapGrid.map(Nt=>Nt+Ft),tt.slidesGrid=tt.slidesGrid.map(Nt=>Nt+Ht)}if(ft!==dt&&tt.emit("slidesLengthChange"),xt.length!==St&&(tt.params.watchOverflow&&tt.checkOverflow(),tt.emit("snapGridLengthChange")),yt.length!==wt&&tt.emit("slidesGridLengthChange"),nt.watchSlidesProgress&&tt.updateSlidesOffset(),!ct&&!nt.cssMode&&(nt.effect==="slide"||nt.effect==="fade")){const Ft=`${nt.containerModifierClass}backface-hidden`,Ht=tt.el.classList.contains(Ft);ft<=nt.maxBackfaceHiddenSlides?Ht||tt.el.classList.add(Ft):Ht&&tt.el.classList.remove(Ft)}}function updateAutoHeight(tt){const et=this,rt=[],nt=et.virtual&&et.params.virtual.enabled;let st=0,ot;typeof tt=="number"?et.setTransition(tt):tt===!0&&et.setTransition(et.params.speed);const at=lt=>nt?et.slides[et.getSlideIndexByData(lt)]:et.slides[lt];if(et.params.slidesPerView!=="auto"&&et.params.slidesPerView>1)if(et.params.centeredSlides)(et.visibleSlides||[]).forEach(lt=>{rt.push(lt)});else for(ot=0;ot<Math.ceil(et.params.slidesPerView);ot+=1){const lt=et.activeIndex+ot;if(lt>et.slides.length&&!nt)break;rt.push(at(lt))}else rt.push(at(et.activeIndex));for(ot=0;ot<rt.length;ot+=1)if(typeof rt[ot]<"u"){const lt=rt[ot].offsetHeight;st=lt>st?lt:st}(st||st===0)&&(et.wrapperEl.style.height=`${st}px`)}function updateSlidesOffset(){const tt=this,et=tt.slides,rt=tt.isElement?tt.isHorizontal()?tt.wrapperEl.offsetLeft:tt.wrapperEl.offsetTop:0;for(let nt=0;nt<et.length;nt+=1)et[nt].swiperSlideOffset=(tt.isHorizontal()?et[nt].offsetLeft:et[nt].offsetTop)-rt-tt.cssOverflowAdjustment()}function updateSlidesProgress(tt){tt===void 0&&(tt=this&&this.translate||0);const et=this,rt=et.params,{slides:nt,rtlTranslate:st,snapGrid:ot}=et;if(nt.length===0)return;typeof nt[0].swiperSlideOffset>"u"&&et.updateSlidesOffset();let at=-tt;st&&(at=tt),nt.forEach(ut=>{ut.classList.remove(rt.slideVisibleClass)}),et.visibleSlidesIndexes=[],et.visibleSlides=[];let lt=rt.spaceBetween;typeof lt=="string"&<.indexOf("%")>=0?lt=parseFloat(lt.replace("%",""))/100*et.size:typeof lt=="string"&&(lt=parseFloat(lt));for(let ut=0;ut<nt.length;ut+=1){const ct=nt[ut];let dt=ct.swiperSlideOffset;rt.cssMode&&rt.centeredSlides&&(dt-=nt[0].swiperSlideOffset);const ht=(at+(rt.centeredSlides?et.minTranslate():0)-dt)/(ct.swiperSlideSize+lt),ft=(at-ot[0]+(rt.centeredSlides?et.minTranslate():0)-dt)/(ct.swiperSlideSize+lt),xt=-(at-dt),yt=xt+et.slidesSizesGrid[ut];(xt>=0&&xt<et.size-1||yt>1&&yt<=et.size||xt<=0&&yt>=et.size)&&(et.visibleSlides.push(ct),et.visibleSlidesIndexes.push(ut),nt[ut].classList.add(rt.slideVisibleClass)),ct.progress=st?-ht:ht,ct.originalProgress=st?-ft:ft}}function updateProgress(tt){const et=this;if(typeof tt>"u"){const dt=et.rtlTranslate?-1:1;tt=et&&et.translate&&et.translate*dt||0}const rt=et.params,nt=et.maxTranslate()-et.minTranslate();let{progress:st,isBeginning:ot,isEnd:at,progressLoop:lt}=et;const ut=ot,ct=at;if(nt===0)st=0,ot=!0,at=!0;else{st=(tt-et.minTranslate())/nt;const dt=Math.abs(tt-et.minTranslate())<1,ht=Math.abs(tt-et.maxTranslate())<1;ot=dt||st<=0,at=ht||st>=1,dt&&(st=0),ht&&(st=1)}if(rt.loop){const dt=et.getSlideIndexByData(0),ht=et.getSlideIndexByData(et.slides.length-1),ft=et.slidesGrid[dt],xt=et.slidesGrid[ht],yt=et.slidesGrid[et.slidesGrid.length-1],vt=Math.abs(tt);vt>=ft?lt=(vt-ft)/yt:lt=(vt+yt-xt)/yt,lt>1&&(lt-=1)}Object.assign(et,{progress:st,progressLoop:lt,isBeginning:ot,isEnd:at}),(rt.watchSlidesProgress||rt.centeredSlides&&rt.autoHeight)&&et.updateSlidesProgress(tt),ot&&!ut&&et.emit("reachBeginning toEdge"),at&&!ct&&et.emit("reachEnd toEdge"),(ut&&!ot||ct&&!at)&&et.emit("fromEdge"),et.emit("progress",st)}function updateSlidesClasses(){const tt=this,{slides:et,params:rt,slidesEl:nt,activeIndex:st}=tt,ot=tt.virtual&&rt.virtual.enabled,at=ut=>elementChildren(nt,`.${rt.slideClass}${ut}, swiper-slide${ut}`)[0];et.forEach(ut=>{ut.classList.remove(rt.slideActiveClass,rt.slideNextClass,rt.slidePrevClass)});let lt;if(ot)if(rt.loop){let ut=st-tt.virtual.slidesBefore;ut<0&&(ut=tt.virtual.slides.length+ut),ut>=tt.virtual.slides.length&&(ut-=tt.virtual.slides.length),lt=at(`[data-swiper-slide-index="${ut}"]`)}else lt=at(`[data-swiper-slide-index="${st}"]`);else lt=et[st];if(lt){lt.classList.add(rt.slideActiveClass);let ut=elementNextAll(lt,`.${rt.slideClass}, swiper-slide`)[0];rt.loop&&!ut&&(ut=et[0]),ut&&ut.classList.add(rt.slideNextClass);let ct=elementPrevAll(lt,`.${rt.slideClass}, swiper-slide`)[0];rt.loop&&!ct===0&&(ct=et[et.length-1]),ct&&ct.classList.add(rt.slidePrevClass)}tt.emitSlidesClasses()}const processLazyPreloader=(tt,et)=>{if(!tt||tt.destroyed||!tt.params)return;const rt=()=>tt.isElement?"swiper-slide":`.${tt.params.slideClass}`,nt=et.closest(rt());if(nt){let st=nt.querySelector(`.${tt.params.lazyPreloaderClass}`);!st&&tt.isElement&&(nt.shadowRoot?st=nt.shadowRoot.querySelector(`.${tt.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{nt.shadowRoot&&(st=nt.shadowRoot.querySelector(`.${tt.params.lazyPreloaderClass}`),st&&st.remove())})),st&&st.remove()}},unlazy=(tt,et)=>{if(!tt.slides[et])return;const rt=tt.slides[et].querySelector('[loading="lazy"]');rt&&rt.removeAttribute("loading")},preload=tt=>{if(!tt||tt.destroyed||!tt.params)return;let et=tt.params.lazyPreloadPrevNext;const rt=tt.slides.length;if(!rt||!et||et<0)return;et=Math.min(et,rt);const nt=tt.params.slidesPerView==="auto"?tt.slidesPerViewDynamic():Math.ceil(tt.params.slidesPerView),st=tt.activeIndex;if(tt.params.grid&&tt.params.grid.rows>1){const at=st,lt=[at-et];lt.push(...Array.from({length:et}).map((ut,ct)=>at+nt+ct)),tt.slides.forEach((ut,ct)=>{lt.includes(ut.column)&&unlazy(tt,ct)});return}const ot=st+nt-1;if(tt.params.rewind||tt.params.loop)for(let at=st-et;at<=ot+et;at+=1){const lt=(at%rt+rt)%rt;(lt<st||lt>ot)&&unlazy(tt,lt)}else for(let at=Math.max(st-et,0);at<=Math.min(ot+et,rt-1);at+=1)at!==st&&(at>ot||at<st)&&unlazy(tt,at)};function getActiveIndexByTranslate(tt){const{slidesGrid:et,params:rt}=tt,nt=tt.rtlTranslate?tt.translate:-tt.translate;let st;for(let ot=0;ot<et.length;ot+=1)typeof et[ot+1]<"u"?nt>=et[ot]&&nt<et[ot+1]-(et[ot+1]-et[ot])/2?st=ot:nt>=et[ot]&&nt<et[ot+1]&&(st=ot+1):nt>=et[ot]&&(st=ot);return rt.normalizeSlideIndex&&(st<0||typeof st>"u")&&(st=0),st}function updateActiveIndex(tt){const et=this,rt=et.rtlTranslate?et.translate:-et.translate,{snapGrid:nt,params:st,activeIndex:ot,realIndex:at,snapIndex:lt}=et;let ut=tt,ct;const dt=ft=>{let xt=ft-et.virtual.slidesBefore;return xt<0&&(xt=et.virtual.slides.length+xt),xt>=et.virtual.slides.length&&(xt-=et.virtual.slides.length),xt};if(typeof ut>"u"&&(ut=getActiveIndexByTranslate(et)),nt.indexOf(rt)>=0)ct=nt.indexOf(rt);else{const ft=Math.min(st.slidesPerGroupSkip,ut);ct=ft+Math.floor((ut-ft)/st.slidesPerGroup)}if(ct>=nt.length&&(ct=nt.length-1),ut===ot){ct!==lt&&(et.snapIndex=ct,et.emit("snapIndexChange")),et.params.loop&&et.virtual&&et.params.virtual.enabled&&(et.realIndex=dt(ut));return}let ht;et.virtual&&st.virtual.enabled&&st.loop?ht=dt(ut):et.slides[ut]?ht=parseInt(et.slides[ut].getAttribute("data-swiper-slide-index")||ut,10):ht=ut,Object.assign(et,{previousSnapIndex:lt,snapIndex:ct,previousRealIndex:at,realIndex:ht,previousIndex:ot,activeIndex:ut}),et.initialized&&preload(et),et.emit("activeIndexChange"),et.emit("snapIndexChange"),(et.initialized||et.params.runCallbacksOnInit)&&(at!==ht&&et.emit("realIndexChange"),et.emit("slideChange"))}function updateClickedSlide(tt,et){const rt=this,nt=rt.params;let st=tt.closest(`.${nt.slideClass}, swiper-slide`);!st&&rt.isElement&&et&&et.length>1&&et.includes(tt)&&[...et.slice(et.indexOf(tt)+1,et.length)].forEach(lt=>{!st&<.matches&<.matches(`.${nt.slideClass}, swiper-slide`)&&(st=lt)});let ot=!1,at;if(st){for(let lt=0;lt<rt.slides.length;lt+=1)if(rt.slides[lt]===st){ot=!0,at=lt;break}}if(st&&ot)rt.clickedSlide=st,rt.virtual&&rt.params.virtual.enabled?rt.clickedIndex=parseInt(st.getAttribute("data-swiper-slide-index"),10):rt.clickedIndex=at;else{rt.clickedSlide=void 0,rt.clickedIndex=void 0;return}nt.slideToClickedSlide&&rt.clickedIndex!==void 0&&rt.clickedIndex!==rt.activeIndex&&rt.slideToClickedSlide()}var update={updateSize,updateSlides,updateAutoHeight,updateSlidesOffset,updateSlidesProgress,updateProgress,updateSlidesClasses,updateActiveIndex,updateClickedSlide};function getSwiperTranslate(tt){tt===void 0&&(tt=this.isHorizontal()?"x":"y");const et=this,{params:rt,rtlTranslate:nt,translate:st,wrapperEl:ot}=et;if(rt.virtualTranslate)return nt?-st:st;if(rt.cssMode)return st;let at=getTranslate(ot,tt);return at+=et.cssOverflowAdjustment(),nt&&(at=-at),at||0}function setTranslate(tt,et){const rt=this,{rtlTranslate:nt,params:st,wrapperEl:ot,progress:at}=rt;let lt=0,ut=0;const ct=0;rt.isHorizontal()?lt=nt?-tt:tt:ut=tt,st.roundLengths&&(lt=Math.floor(lt),ut=Math.floor(ut)),rt.previousTranslate=rt.translate,rt.translate=rt.isHorizontal()?lt:ut,st.cssMode?ot[rt.isHorizontal()?"scrollLeft":"scrollTop"]=rt.isHorizontal()?-lt:-ut:st.virtualTranslate||(rt.isHorizontal()?lt-=rt.cssOverflowAdjustment():ut-=rt.cssOverflowAdjustment(),ot.style.transform=`translate3d(${lt}px, ${ut}px, ${ct}px)`);let dt;const ht=rt.maxTranslate()-rt.minTranslate();ht===0?dt=0:dt=(tt-rt.minTranslate())/ht,dt!==at&&rt.updateProgress(tt),rt.emit("setTranslate",rt.translate,et)}function minTranslate(){return-this.snapGrid[0]}function maxTranslate(){return-this.snapGrid[this.snapGrid.length-1]}function translateTo(tt,et,rt,nt,st){tt===void 0&&(tt=0),et===void 0&&(et=this.params.speed),rt===void 0&&(rt=!0),nt===void 0&&(nt=!0);const ot=this,{params:at,wrapperEl:lt}=ot;if(ot.animating&&at.preventInteractionOnTransition)return!1;const ut=ot.minTranslate(),ct=ot.maxTranslate();let dt;if(nt&&tt>ut?dt=ut:nt&&tt<ct?dt=ct:dt=tt,ot.updateProgress(dt),at.cssMode){const ht=ot.isHorizontal();if(et===0)lt[ht?"scrollLeft":"scrollTop"]=-dt;else{if(!ot.support.smoothScroll)return animateCSSModeScroll({swiper:ot,targetPosition:-dt,side:ht?"left":"top"}),!0;lt.scrollTo({[ht?"left":"top"]:-dt,behavior:"smooth"})}return!0}return et===0?(ot.setTransition(0),ot.setTranslate(dt),rt&&(ot.emit("beforeTransitionStart",et,st),ot.emit("transitionEnd"))):(ot.setTransition(et),ot.setTranslate(dt),rt&&(ot.emit("beforeTransitionStart",et,st),ot.emit("transitionStart")),ot.animating||(ot.animating=!0,ot.onTranslateToWrapperTransitionEnd||(ot.onTranslateToWrapperTransitionEnd=function(ft){!ot||ot.destroyed||ft.target===this&&(ot.wrapperEl.removeEventListener("transitionend",ot.onTranslateToWrapperTransitionEnd),ot.onTranslateToWrapperTransitionEnd=null,delete ot.onTranslateToWrapperTransitionEnd,rt&&ot.emit("transitionEnd"))}),ot.wrapperEl.addEventListener("transitionend",ot.onTranslateToWrapperTransitionEnd))),!0}var translate={getTranslate:getSwiperTranslate,setTranslate,minTranslate,maxTranslate,translateTo};function setTransition(tt,et){const rt=this;rt.params.cssMode||(rt.wrapperEl.style.transitionDuration=`${tt}ms`,rt.wrapperEl.style.transitionDelay=tt===0?"0ms":""),rt.emit("setTransition",tt,et)}function transitionEmit(tt){let{swiper:et,runCallbacks:rt,direction:nt,step:st}=tt;const{activeIndex:ot,previousIndex:at}=et;let lt=nt;if(lt||(ot>at?lt="next":ot<at?lt="prev":lt="reset"),et.emit(`transition${st}`),rt&&ot!==at){if(lt==="reset"){et.emit(`slideResetTransition${st}`);return}et.emit(`slideChangeTransition${st}`),lt==="next"?et.emit(`slideNextTransition${st}`):et.emit(`slidePrevTransition${st}`)}}function transitionStart(tt,et){tt===void 0&&(tt=!0);const rt=this,{params:nt}=rt;nt.cssMode||(nt.autoHeight&&rt.updateAutoHeight(),transitionEmit({swiper:rt,runCallbacks:tt,direction:et,step:"Start"}))}function transitionEnd(tt,et){tt===void 0&&(tt=!0);const rt=this,{params:nt}=rt;rt.animating=!1,!nt.cssMode&&(rt.setTransition(0),transitionEmit({swiper:rt,runCallbacks:tt,direction:et,step:"End"}))}var transition={setTransition,transitionStart,transitionEnd};function slideTo(tt,et,rt,nt,st){tt===void 0&&(tt=0),et===void 0&&(et=this.params.speed),rt===void 0&&(rt=!0),typeof tt=="string"&&(tt=parseInt(tt,10));const ot=this;let at=tt;at<0&&(at=0);const{params:lt,snapGrid:ut,slidesGrid:ct,previousIndex:dt,activeIndex:ht,rtlTranslate:ft,wrapperEl:xt,enabled:yt}=ot;if(ot.animating&<.preventInteractionOnTransition||!yt&&!nt&&!st)return!1;const vt=Math.min(ot.params.slidesPerGroupSkip,at);let Et=vt+Math.floor((at-vt)/ot.params.slidesPerGroup);Et>=ut.length&&(Et=ut.length-1);const bt=-ut[Et];if(lt.normalizeSlideIndex)for(let wt=0;wt<ct.length;wt+=1){const Rt=-Math.floor(bt*100),Ct=Math.floor(ct[wt]*100),Pt=Math.floor(ct[wt+1]*100);typeof ct[wt+1]<"u"?Rt>=Ct&&Rt<Pt-(Pt-Ct)/2?at=wt:Rt>=Ct&&Rt<Pt&&(at=wt+1):Rt>=Ct&&(at=wt)}if(ot.initialized&&at!==ht&&(!ot.allowSlideNext&&(ft?bt>ot.translate&&bt>ot.minTranslate():bt<ot.translate&&bt<ot.minTranslate())||!ot.allowSlidePrev&&bt>ot.translate&&bt>ot.maxTranslate()&&(ht||0)!==at))return!1;at!==(dt||0)&&rt&&ot.emit("beforeSlideChangeStart"),ot.updateProgress(bt);let St;if(at>ht?St="next":at<ht?St="prev":St="reset",ft&&-bt===ot.translate||!ft&&bt===ot.translate)return ot.updateActiveIndex(at),lt.autoHeight&&ot.updateAutoHeight(),ot.updateSlidesClasses(),lt.effect!=="slide"&&ot.setTranslate(bt),St!=="reset"&&(ot.transitionStart(rt,St),ot.transitionEnd(rt,St)),!1;if(lt.cssMode){const wt=ot.isHorizontal(),Rt=ft?bt:-bt;if(et===0){const Ct=ot.virtual&&ot.params.virtual.enabled;Ct&&(ot.wrapperEl.style.scrollSnapType="none",ot._immediateVirtual=!0),Ct&&!ot._cssModeVirtualInitialSet&&ot.params.initialSlide>0?(ot._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{xt[wt?"scrollLeft":"scrollTop"]=Rt})):xt[wt?"scrollLeft":"scrollTop"]=Rt,Ct&&requestAnimationFrame(()=>{ot.wrapperEl.style.scrollSnapType="",ot._immediateVirtual=!1})}else{if(!ot.support.smoothScroll)return animateCSSModeScroll({swiper:ot,targetPosition:Rt,side:wt?"left":"top"}),!0;xt.scrollTo({[wt?"left":"top"]:Rt,behavior:"smooth"})}return!0}return ot.setTransition(et),ot.setTranslate(bt),ot.updateActiveIndex(at),ot.updateSlidesClasses(),ot.emit("beforeTransitionStart",et,nt),ot.transitionStart(rt,St),et===0?ot.transitionEnd(rt,St):ot.animating||(ot.animating=!0,ot.onSlideToWrapperTransitionEnd||(ot.onSlideToWrapperTransitionEnd=function(Rt){!ot||ot.destroyed||Rt.target===this&&(ot.wrapperEl.removeEventListener("transitionend",ot.onSlideToWrapperTransitionEnd),ot.onSlideToWrapperTransitionEnd=null,delete ot.onSlideToWrapperTransitionEnd,ot.transitionEnd(rt,St))}),ot.wrapperEl.addEventListener("transitionend",ot.onSlideToWrapperTransitionEnd)),!0}function slideToLoop(tt,et,rt,nt){tt===void 0&&(tt=0),et===void 0&&(et=this.params.speed),rt===void 0&&(rt=!0),typeof tt=="string"&&(tt=parseInt(tt,10));const st=this;let ot=tt;return st.params.loop&&(st.virtual&&st.params.virtual.enabled?ot=ot+st.virtual.slidesBefore:ot=st.getSlideIndexByData(ot)),st.slideTo(ot,et,rt,nt)}function slideNext(tt,et,rt){tt===void 0&&(tt=this.params.speed),et===void 0&&(et=!0);const nt=this,{enabled:st,params:ot,animating:at}=nt;if(!st)return nt;let lt=ot.slidesPerGroup;ot.slidesPerView==="auto"&&ot.slidesPerGroup===1&&ot.slidesPerGroupAuto&&(lt=Math.max(nt.slidesPerViewDynamic("current",!0),1));const ut=nt.activeIndex<ot.slidesPerGroupSkip?1:lt,ct=nt.virtual&&ot.virtual.enabled;if(ot.loop){if(at&&!ct&&ot.loopPreventsSliding)return!1;if(nt.loopFix({direction:"next"}),nt._clientLeft=nt.wrapperEl.clientLeft,nt.activeIndex===nt.slides.length-1&&ot.cssMode)return requestAnimationFrame(()=>{nt.slideTo(nt.activeIndex+ut,tt,et,rt)}),!0}return ot.rewind&&nt.isEnd?nt.slideTo(0,tt,et,rt):nt.slideTo(nt.activeIndex+ut,tt,et,rt)}function slidePrev(tt,et,rt){tt===void 0&&(tt=this.params.speed),et===void 0&&(et=!0);const nt=this,{params:st,snapGrid:ot,slidesGrid:at,rtlTranslate:lt,enabled:ut,animating:ct}=nt;if(!ut)return nt;const dt=nt.virtual&&st.virtual.enabled;if(st.loop){if(ct&&!dt&&st.loopPreventsSliding)return!1;nt.loopFix({direction:"prev"}),nt._clientLeft=nt.wrapperEl.clientLeft}const ht=lt?nt.translate:-nt.translate;function ft(bt){return bt<0?-Math.floor(Math.abs(bt)):Math.floor(bt)}const xt=ft(ht),yt=ot.map(bt=>ft(bt));let vt=ot[yt.indexOf(xt)-1];if(typeof vt>"u"&&st.cssMode){let bt;ot.forEach((St,wt)=>{xt>=St&&(bt=wt)}),typeof bt<"u"&&(vt=ot[bt>0?bt-1:bt])}let Et=0;if(typeof vt<"u"&&(Et=at.indexOf(vt),Et<0&&(Et=nt.activeIndex-1),st.slidesPerView==="auto"&&st.slidesPerGroup===1&&st.slidesPerGroupAuto&&(Et=Et-nt.slidesPerViewDynamic("previous",!0)+1,Et=Math.max(Et,0))),st.rewind&&nt.isBeginning){const bt=nt.params.virtual&&nt.params.virtual.enabled&&nt.virtual?nt.virtual.slides.length-1:nt.slides.length-1;return nt.slideTo(bt,tt,et,rt)}else if(st.loop&&nt.activeIndex===0&&st.cssMode)return requestAnimationFrame(()=>{nt.slideTo(Et,tt,et,rt)}),!0;return nt.slideTo(Et,tt,et,rt)}function slideReset(tt,et,rt){tt===void 0&&(tt=this.params.speed),et===void 0&&(et=!0);const nt=this;return nt.slideTo(nt.activeIndex,tt,et,rt)}function slideToClosest(tt,et,rt,nt){tt===void 0&&(tt=this.params.speed),et===void 0&&(et=!0),nt===void 0&&(nt=.5);const st=this;let ot=st.activeIndex;const at=Math.min(st.params.slidesPerGroupSkip,ot),lt=at+Math.floor((ot-at)/st.params.slidesPerGroup),ut=st.rtlTranslate?st.translate:-st.translate;if(ut>=st.snapGrid[lt]){const ct=st.snapGrid[lt],dt=st.snapGrid[lt+1];ut-ct>(dt-ct)*nt&&(ot+=st.params.slidesPerGroup)}else{const ct=st.snapGrid[lt-1],dt=st.snapGrid[lt];ut-ct<=(dt-ct)*nt&&(ot-=st.params.slidesPerGroup)}return ot=Math.max(ot,0),ot=Math.min(ot,st.slidesGrid.length-1),st.slideTo(ot,tt,et,rt)}function slideToClickedSlide(){const tt=this,{params:et,slidesEl:rt}=tt,nt=et.slidesPerView==="auto"?tt.slidesPerViewDynamic():et.slidesPerView;let st=tt.clickedIndex,ot;const at=tt.isElement?"swiper-slide":`.${et.slideClass}`;if(et.loop){if(tt.animating)return;ot=parseInt(tt.clickedSlide.getAttribute("data-swiper-slide-index"),10),et.centeredSlides?st<tt.loopedSlides-nt/2||st>tt.slides.length-tt.loopedSlides+nt/2?(tt.loopFix(),st=tt.getSlideIndex(elementChildren(rt,`${at}[data-swiper-slide-index="${ot}"]`)[0]),nextTick(()=>{tt.slideTo(st)})):tt.slideTo(st):st>tt.slides.length-nt?(tt.loopFix(),st=tt.getSlideIndex(elementChildren(rt,`${at}[data-swiper-slide-index="${ot}"]`)[0]),nextTick(()=>{tt.slideTo(st)})):tt.slideTo(st)}else tt.slideTo(st)}var slide={slideTo,slideToLoop,slideNext,slidePrev,slideReset,slideToClosest,slideToClickedSlide};function loopCreate(tt){const et=this,{params:rt,slidesEl:nt}=et;if(!rt.loop||et.virtual&&et.params.virtual.enabled)return;elementChildren(nt,`.${rt.slideClass}, swiper-slide`).forEach((ot,at)=>{ot.setAttribute("data-swiper-slide-index",at)}),et.loopFix({slideRealIndex:tt,direction:rt.centeredSlides?void 0:"next"})}function loopFix(tt){let{slideRealIndex:et,slideTo:rt=!0,direction:nt,setTranslate:st,activeSlideIndex:ot,byController:at,byMousewheel:lt}=tt===void 0?{}:tt;const ut=this;if(!ut.params.loop)return;ut.emit("beforeLoopFix");const{slides:ct,allowSlidePrev:dt,allowSlideNext:ht,slidesEl:ft,params:xt}=ut;if(ut.allowSlidePrev=!0,ut.allowSlideNext=!0,ut.virtual&&xt.virtual.enabled){rt&&(!xt.centeredSlides&&ut.snapIndex===0?ut.slideTo(ut.virtual.slides.length,0,!1,!0):xt.centeredSlides&&ut.snapIndex<xt.slidesPerView?ut.slideTo(ut.virtual.slides.length+ut.snapIndex,0,!1,!0):ut.snapIndex===ut.snapGrid.length-1&&ut.slideTo(ut.virtual.slidesBefore,0,!1,!0)),ut.allowSlidePrev=dt,ut.allowSlideNext=ht,ut.emit("loopFix");return}const yt=xt.slidesPerView==="auto"?ut.slidesPerViewDynamic():Math.ceil(parseFloat(xt.slidesPerView,10));let vt=xt.loopedSlides||yt;vt%xt.slidesPerGroup!==0&&(vt+=xt.slidesPerGroup-vt%xt.slidesPerGroup),ut.loopedSlides=vt;const Et=[],bt=[];let St=ut.activeIndex;typeof ot>"u"?ot=ut.getSlideIndex(ut.slides.filter(It=>It.classList.contains(xt.slideActiveClass))[0]):St=ot;const wt=nt==="next"||!nt,Rt=nt==="prev"||!nt;let Ct=0,Pt=0;if(ot<vt){Ct=Math.max(vt-ot,xt.slidesPerGroup);for(let It=0;It<vt-ot;It+=1){const jt=It-Math.floor(It/ct.length)*ct.length;Et.push(ct.length-jt-1)}}else if(ot>ut.slides.length-vt*2){Pt=Math.max(ot-(ut.slides.length-vt*2),xt.slidesPerGroup);for(let It=0;It<Pt;It+=1){const jt=It-Math.floor(It/ct.length)*ct.length;bt.push(jt)}}if(Rt&&Et.forEach(It=>{ut.slides[It].swiperLoopMoveDOM=!0,ft.prepend(ut.slides[It]),ut.slides[It].swiperLoopMoveDOM=!1}),wt&&bt.forEach(It=>{ut.slides[It].swiperLoopMoveDOM=!0,ft.append(ut.slides[It]),ut.slides[It].swiperLoopMoveDOM=!1}),ut.recalcSlides(),xt.slidesPerView==="auto"&&ut.updateSlides(),xt.watchSlidesProgress&&ut.updateSlidesOffset(),rt){if(Et.length>0&&Rt)if(typeof et>"u"){const It=ut.slidesGrid[St],Dt=ut.slidesGrid[St+Ct]-It;lt?ut.setTranslate(ut.translate-Dt):(ut.slideTo(St+Ct,0,!1,!0),st&&(ut.touches[ut.isHorizontal()?"startX":"startY"]+=Dt,ut.touchEventsData.currentTranslate=ut.translate))}else st&&(ut.slideToLoop(et,0,!1,!0),ut.touchEventsData.currentTranslate=ut.translate);else if(bt.length>0&&wt)if(typeof et>"u"){const It=ut.slidesGrid[St],Dt=ut.slidesGrid[St-Pt]-It;lt?ut.setTranslate(ut.translate-Dt):(ut.slideTo(St-Pt,0,!1,!0),st&&(ut.touches[ut.isHorizontal()?"startX":"startY"]+=Dt,ut.touchEventsData.currentTranslate=ut.translate))}else ut.slideToLoop(et,0,!1,!0)}if(ut.allowSlidePrev=dt,ut.allowSlideNext=ht,ut.controller&&ut.controller.control&&!at){const It={slideRealIndex:et,direction:nt,setTranslate:st,activeSlideIndex:ot,byController:!0};Array.isArray(ut.controller.control)?ut.controller.control.forEach(jt=>{!jt.destroyed&&jt.params.loop&&jt.loopFix({...It,slideTo:jt.params.slidesPerView===xt.slidesPerView?rt:!1})}):ut.controller.control instanceof ut.constructor&&ut.controller.control.params.loop&&ut.controller.control.loopFix({...It,slideTo:ut.controller.control.params.slidesPerView===xt.slidesPerView?rt:!1})}ut.emit("loopFix")}function loopDestroy(){const tt=this,{params:et,slidesEl:rt}=tt;if(!et.loop||tt.virtual&&tt.params.virtual.enabled)return;tt.recalcSlides();const nt=[];tt.slides.forEach(st=>{const ot=typeof st.swiperSlideIndex>"u"?st.getAttribute("data-swiper-slide-index")*1:st.swiperSlideIndex;nt[ot]=st}),tt.slides.forEach(st=>{st.removeAttribute("data-swiper-slide-index")}),nt.forEach(st=>{rt.append(st)}),tt.recalcSlides(),tt.slideTo(tt.realIndex,0)}var loop={loopCreate,loopFix,loopDestroy};function setGrabCursor(tt){const et=this;if(!et.params.simulateTouch||et.params.watchOverflow&&et.isLocked||et.params.cssMode)return;const rt=et.params.touchEventsTarget==="container"?et.el:et.wrapperEl;et.isElement&&(et.__preventObserver__=!0),rt.style.cursor="move",rt.style.cursor=tt?"grabbing":"grab",et.isElement&&requestAnimationFrame(()=>{et.__preventObserver__=!1})}function unsetGrabCursor(){const tt=this;tt.params.watchOverflow&&tt.isLocked||tt.params.cssMode||(tt.isElement&&(tt.__preventObserver__=!0),tt[tt.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",tt.isElement&&requestAnimationFrame(()=>{tt.__preventObserver__=!1}))}var grabCursor={setGrabCursor,unsetGrabCursor};function closestElement(tt,et){et===void 0&&(et=this);function rt(nt){if(!nt||nt===getDocument()||nt===getWindow())return null;nt.assignedSlot&&(nt=nt.assignedSlot);const st=nt.closest(tt);return!st&&!nt.getRootNode?null:st||rt(nt.getRootNode().host)}return rt(et)}function onTouchStart(tt){const et=this,rt=getDocument(),nt=getWindow(),st=et.touchEventsData;st.evCache.push(tt);const{params:ot,touches:at,enabled:lt}=et;if(!lt||!ot.simulateTouch&&tt.pointerType==="mouse"||et.animating&&ot.preventInteractionOnTransition)return;!et.animating&&ot.cssMode&&ot.loop&&et.loopFix();let ut=tt;ut.originalEvent&&(ut=ut.originalEvent);let ct=ut.target;if(ot.touchEventsTarget==="wrapper"&&!et.wrapperEl.contains(ct)||"which"in ut&&ut.which===3||"button"in ut&&ut.button>0||st.isTouched&&st.isMoved)return;const dt=!!ot.noSwipingClass&&ot.noSwipingClass!=="",ht=tt.composedPath?tt.composedPath():tt.path;dt&&ut.target&&ut.target.shadowRoot&&ht&&(ct=ht[0]);const ft=ot.noSwipingSelector?ot.noSwipingSelector:`.${ot.noSwipingClass}`,xt=!!(ut.target&&ut.target.shadowRoot);if(ot.noSwiping&&(xt?closestElement(ft,ct):ct.closest(ft))){et.allowClick=!0;return}if(ot.swipeHandler&&!ct.closest(ot.swipeHandler))return;at.currentX=ut.pageX,at.currentY=ut.pageY;const yt=at.currentX,vt=at.currentY,Et=ot.edgeSwipeDetection||ot.iOSEdgeSwipeDetection,bt=ot.edgeSwipeThreshold||ot.iOSEdgeSwipeThreshold;if(Et&&(yt<=bt||yt>=nt.innerWidth-bt))if(Et==="prevent")tt.preventDefault();else return;Object.assign(st,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),at.startX=yt,at.startY=vt,st.touchStartTime=now(),et.allowClick=!0,et.updateSize(),et.swipeDirection=void 0,ot.threshold>0&&(st.allowThresholdMove=!1);let St=!0;ct.matches(st.focusableElements)&&(St=!1,ct.nodeName==="SELECT"&&(st.isTouched=!1)),rt.activeElement&&rt.activeElement.matches(st.focusableElements)&&rt.activeElement!==ct&&rt.activeElement.blur();const wt=St&&et.allowTouchMove&&ot.touchStartPreventDefault;(ot.touchStartForcePreventDefault||wt)&&!ct.isContentEditable&&ut.preventDefault(),ot.freeMode&&ot.freeMode.enabled&&et.freeMode&&et.animating&&!ot.cssMode&&et.freeMode.onTouchStart(),et.emit("touchStart",ut)}function onTouchMove(tt){const et=getDocument(),rt=this,nt=rt.touchEventsData,{params:st,touches:ot,rtlTranslate:at,enabled:lt}=rt;if(!lt||!st.simulateTouch&&tt.pointerType==="mouse")return;let ut=tt;if(ut.originalEvent&&(ut=ut.originalEvent),!nt.isTouched){nt.startMoving&&nt.isScrolling&&rt.emit("touchMoveOpposite",ut);return}const ct=nt.evCache.findIndex(It=>It.pointerId===ut.pointerId);ct>=0&&(nt.evCache[ct]=ut);const dt=nt.evCache.length>1?nt.evCache[0]:ut,ht=dt.pageX,ft=dt.pageY;if(ut.preventedByNestedSwiper){ot.startX=ht,ot.startY=ft;return}if(!rt.allowTouchMove){ut.target.matches(nt.focusableElements)||(rt.allowClick=!1),nt.isTouched&&(Object.assign(ot,{startX:ht,startY:ft,prevX:rt.touches.currentX,prevY:rt.touches.currentY,currentX:ht,currentY:ft}),nt.touchStartTime=now());return}if(st.touchReleaseOnEdges&&!st.loop){if(rt.isVertical()){if(ft<ot.startY&&rt.translate<=rt.maxTranslate()||ft>ot.startY&&rt.translate>=rt.minTranslate()){nt.isTouched=!1,nt.isMoved=!1;return}}else if(ht<ot.startX&&rt.translate<=rt.maxTranslate()||ht>ot.startX&&rt.translate>=rt.minTranslate())return}if(et.activeElement&&ut.target===et.activeElement&&ut.target.matches(nt.focusableElements)){nt.isMoved=!0,rt.allowClick=!1;return}if(nt.allowTouchCallbacks&&rt.emit("touchMove",ut),ut.targetTouches&&ut.targetTouches.length>1)return;ot.currentX=ht,ot.currentY=ft;const xt=ot.currentX-ot.startX,yt=ot.currentY-ot.startY;if(rt.params.threshold&&Math.sqrt(xt**2+yt**2)<rt.params.threshold)return;if(typeof nt.isScrolling>"u"){let It;rt.isHorizontal()&&ot.currentY===ot.startY||rt.isVertical()&&ot.currentX===ot.startX?nt.isScrolling=!1:xt*xt+yt*yt>=25&&(It=Math.atan2(Math.abs(yt),Math.abs(xt))*180/Math.PI,nt.isScrolling=rt.isHorizontal()?It>st.touchAngle:90-It>st.touchAngle)}if(nt.isScrolling&&rt.emit("touchMoveOpposite",ut),typeof nt.startMoving>"u"&&(ot.currentX!==ot.startX||ot.currentY!==ot.startY)&&(nt.startMoving=!0),nt.isScrolling||rt.zoom&&rt.params.zoom&&rt.params.zoom.enabled&&nt.evCache.length>1){nt.isTouched=!1;return}if(!nt.startMoving)return;rt.allowClick=!1,!st.cssMode&&ut.cancelable&&ut.preventDefault(),st.touchMoveStopPropagation&&!st.nested&&ut.stopPropagation();let vt=rt.isHorizontal()?xt:yt,Et=rt.isHorizontal()?ot.currentX-ot.previousX:ot.currentY-ot.previousY;st.oneWayMovement&&(vt=Math.abs(vt)*(at?1:-1),Et=Math.abs(Et)*(at?1:-1)),ot.diff=vt,vt*=st.touchRatio,at&&(vt=-vt,Et=-Et);const bt=rt.touchesDirection;rt.swipeDirection=vt>0?"prev":"next",rt.touchesDirection=Et>0?"prev":"next";const St=rt.params.loop&&!st.cssMode,wt=rt.swipeDirection==="next"&&rt.allowSlideNext||rt.swipeDirection==="prev"&&rt.allowSlidePrev;if(!nt.isMoved){if(St&&wt&&rt.loopFix({direction:rt.swipeDirection}),nt.startTranslate=rt.getTranslate(),rt.setTransition(0),rt.animating){const It=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});rt.wrapperEl.dispatchEvent(It)}nt.allowMomentumBounce=!1,st.grabCursor&&(rt.allowSlideNext===!0||rt.allowSlidePrev===!0)&&rt.setGrabCursor(!0),rt.emit("sliderFirstMove",ut)}let Rt;nt.isMoved&&bt!==rt.touchesDirection&&St&&wt&&Math.abs(vt)>=1&&(rt.loopFix({direction:rt.swipeDirection,setTranslate:!0}),Rt=!0),rt.emit("sliderMove",ut),nt.isMoved=!0,nt.currentTranslate=vt+nt.startTranslate;let Ct=!0,Pt=st.resistanceRatio;if(st.touchReleaseOnEdges&&(Pt=0),vt>0?(St&&wt&&!Rt&&nt.currentTranslate>(st.centeredSlides?rt.minTranslate()-rt.size/2:rt.minTranslate())&&rt.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),nt.currentTranslate>rt.minTranslate()&&(Ct=!1,st.resistance&&(nt.currentTranslate=rt.minTranslate()-1+(-rt.minTranslate()+nt.startTranslate+vt)**Pt))):vt<0&&(St&&wt&&!Rt&&nt.currentTranslate<(st.centeredSlides?rt.maxTranslate()+rt.size/2:rt.maxTranslate())&&rt.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:rt.slides.length-(st.slidesPerView==="auto"?rt.slidesPerViewDynamic():Math.ceil(parseFloat(st.slidesPerView,10)))}),nt.currentTranslate<rt.maxTranslate()&&(Ct=!1,st.resistance&&(nt.currentTranslate=rt.maxTranslate()+1-(rt.maxTranslate()-nt.startTranslate-vt)**Pt))),Ct&&(ut.preventedByNestedSwiper=!0),!rt.allowSlideNext&&rt.swipeDirection==="next"&&nt.currentTranslate<nt.startTranslate&&(nt.currentTranslate=nt.startTranslate),!rt.allowSlidePrev&&rt.swipeDirection==="prev"&&nt.currentTranslate>nt.startTranslate&&(nt.currentTranslate=nt.startTranslate),!rt.allowSlidePrev&&!rt.allowSlideNext&&(nt.currentTranslate=nt.startTranslate),st.threshold>0)if(Math.abs(vt)>st.threshold||nt.allowThresholdMove){if(!nt.allowThresholdMove){nt.allowThresholdMove=!0,ot.startX=ot.currentX,ot.startY=ot.currentY,nt.currentTranslate=nt.startTranslate,ot.diff=rt.isHorizontal()?ot.currentX-ot.startX:ot.currentY-ot.startY;return}}else{nt.currentTranslate=nt.startTranslate;return}!st.followFinger||st.cssMode||((st.freeMode&&st.freeMode.enabled&&rt.freeMode||st.watchSlidesProgress)&&(rt.updateActiveIndex(),rt.updateSlidesClasses()),st.freeMode&&st.freeMode.enabled&&rt.freeMode&&rt.freeMode.onTouchMove(),rt.updateProgress(nt.currentTranslate),rt.setTranslate(nt.currentTranslate))}function onTouchEnd(tt){const et=this,rt=et.touchEventsData,nt=rt.evCache.findIndex(wt=>wt.pointerId===tt.pointerId);if(nt>=0&&rt.evCache.splice(nt,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(tt.type)&&!(["pointercancel","contextmenu"].includes(tt.type)&&(et.browser.isSafari||et.browser.isWebView)))return;const{params:st,touches:ot,rtlTranslate:at,slidesGrid:lt,enabled:ut}=et;if(!ut||!st.simulateTouch&&tt.pointerType==="mouse")return;let ct=tt;if(ct.originalEvent&&(ct=ct.originalEvent),rt.allowTouchCallbacks&&et.emit("touchEnd",ct),rt.allowTouchCallbacks=!1,!rt.isTouched){rt.isMoved&&st.grabCursor&&et.setGrabCursor(!1),rt.isMoved=!1,rt.startMoving=!1;return}st.grabCursor&&rt.isMoved&&rt.isTouched&&(et.allowSlideNext===!0||et.allowSlidePrev===!0)&&et.setGrabCursor(!1);const dt=now(),ht=dt-rt.touchStartTime;if(et.allowClick){const wt=ct.path||ct.composedPath&&ct.composedPath();et.updateClickedSlide(wt&&wt[0]||ct.target,wt),et.emit("tap click",ct),ht<300&&dt-rt.lastClickTime<300&&et.emit("doubleTap doubleClick",ct)}if(rt.lastClickTime=now(),nextTick(()=>{et.destroyed||(et.allowClick=!0)}),!rt.isTouched||!rt.isMoved||!et.swipeDirection||ot.diff===0||rt.currentTranslate===rt.startTranslate){rt.isTouched=!1,rt.isMoved=!1,rt.startMoving=!1;return}rt.isTouched=!1,rt.isMoved=!1,rt.startMoving=!1;let ft;if(st.followFinger?ft=at?et.translate:-et.translate:ft=-rt.currentTranslate,st.cssMode)return;if(st.freeMode&&st.freeMode.enabled){et.freeMode.onTouchEnd({currentPos:ft});return}let xt=0,yt=et.slidesSizesGrid[0];for(let wt=0;wt<lt.length;wt+=wt<st.slidesPerGroupSkip?1:st.slidesPerGroup){const Rt=wt<st.slidesPerGroupSkip-1?1:st.slidesPerGroup;typeof lt[wt+Rt]<"u"?ft>=lt[wt]&&ft<lt[wt+Rt]&&(xt=wt,yt=lt[wt+Rt]-lt[wt]):ft>=lt[wt]&&(xt=wt,yt=lt[lt.length-1]-lt[lt.length-2])}let vt=null,Et=null;st.rewind&&(et.isBeginning?Et=st.virtual&&st.virtual.enabled&&et.virtual?et.virtual.slides.length-1:et.slides.length-1:et.isEnd&&(vt=0));const bt=(ft-lt[xt])/yt,St=xt<st.slidesPerGroupSkip-1?1:st.slidesPerGroup;if(ht>st.longSwipesMs){if(!st.longSwipes){et.slideTo(et.activeIndex);return}et.swipeDirection==="next"&&(bt>=st.longSwipesRatio?et.slideTo(st.rewind&&et.isEnd?vt:xt+St):et.slideTo(xt)),et.swipeDirection==="prev"&&(bt>1-st.longSwipesRatio?et.slideTo(xt+St):Et!==null&&bt<0&&Math.abs(bt)>st.longSwipesRatio?et.slideTo(Et):et.slideTo(xt))}else{if(!st.shortSwipes){et.slideTo(et.activeIndex);return}et.navigation&&(ct.target===et.navigation.nextEl||ct.target===et.navigation.prevEl)?ct.target===et.navigation.nextEl?et.slideTo(xt+St):et.slideTo(xt):(et.swipeDirection==="next"&&et.slideTo(vt!==null?vt:xt+St),et.swipeDirection==="prev"&&et.slideTo(Et!==null?Et:xt))}}function onResize(){const tt=this,{params:et,el:rt}=tt;if(rt&&rt.offsetWidth===0)return;et.breakpoints&&tt.setBreakpoint();const{allowSlideNext:nt,allowSlidePrev:st,snapGrid:ot}=tt,at=tt.virtual&&tt.params.virtual.enabled;tt.allowSlideNext=!0,tt.allowSlidePrev=!0,tt.updateSize(),tt.updateSlides(),tt.updateSlidesClasses();const lt=at&&et.loop;(et.slidesPerView==="auto"||et.slidesPerView>1)&&tt.isEnd&&!tt.isBeginning&&!tt.params.centeredSlides&&!lt?tt.slideTo(tt.slides.length-1,0,!1,!0):tt.params.loop&&!at?tt.slideToLoop(tt.realIndex,0,!1,!0):tt.slideTo(tt.activeIndex,0,!1,!0),tt.autoplay&&tt.autoplay.running&&tt.autoplay.paused&&(clearTimeout(tt.autoplay.resizeTimeout),tt.autoplay.resizeTimeout=setTimeout(()=>{tt.autoplay&&tt.autoplay.running&&tt.autoplay.paused&&tt.autoplay.resume()},500)),tt.allowSlidePrev=st,tt.allowSlideNext=nt,tt.params.watchOverflow&&ot!==tt.snapGrid&&tt.checkOverflow()}function onClick(tt){const et=this;et.enabled&&(et.allowClick||(et.params.preventClicks&&tt.preventDefault(),et.params.preventClicksPropagation&&et.animating&&(tt.stopPropagation(),tt.stopImmediatePropagation())))}function onScroll(){const tt=this,{wrapperEl:et,rtlTranslate:rt,enabled:nt}=tt;if(!nt)return;tt.previousTranslate=tt.translate,tt.isHorizontal()?tt.translate=-et.scrollLeft:tt.translate=-et.scrollTop,tt.translate===0&&(tt.translate=0),tt.updateActiveIndex(),tt.updateSlidesClasses();let st;const ot=tt.maxTranslate()-tt.minTranslate();ot===0?st=0:st=(tt.translate-tt.minTranslate())/ot,st!==tt.progress&&tt.updateProgress(rt?-tt.translate:tt.translate),tt.emit("setTranslate",tt.translate,!1)}function onLoad(tt){const et=this;processLazyPreloader(et,tt.target),!(et.params.cssMode||et.params.slidesPerView!=="auto"&&!et.params.autoHeight)&&et.update()}let dummyEventAttached=!1;function dummyEventListener(){}const events=(tt,et)=>{const rt=getDocument(),{params:nt,el:st,wrapperEl:ot,device:at}=tt,lt=!!nt.nested,ut=et==="on"?"addEventListener":"removeEventListener",ct=et;st[ut]("pointerdown",tt.onTouchStart,{passive:!1}),rt[ut]("pointermove",tt.onTouchMove,{passive:!1,capture:lt}),rt[ut]("pointerup",tt.onTouchEnd,{passive:!0}),rt[ut]("pointercancel",tt.onTouchEnd,{passive:!0}),rt[ut]("pointerout",tt.onTouchEnd,{passive:!0}),rt[ut]("pointerleave",tt.onTouchEnd,{passive:!0}),rt[ut]("contextmenu",tt.onTouchEnd,{passive:!0}),(nt.preventClicks||nt.preventClicksPropagation)&&st[ut]("click",tt.onClick,!0),nt.cssMode&&ot[ut]("scroll",tt.onScroll),nt.updateOnWindowResize?tt[ct](at.ios||at.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,!0):tt[ct]("observerUpdate",onResize,!0),st[ut]("load",tt.onLoad,{capture:!0})};function attachEvents(){const tt=this,et=getDocument(),{params:rt}=tt;tt.onTouchStart=onTouchStart.bind(tt),tt.onTouchMove=onTouchMove.bind(tt),tt.onTouchEnd=onTouchEnd.bind(tt),rt.cssMode&&(tt.onScroll=onScroll.bind(tt)),tt.onClick=onClick.bind(tt),tt.onLoad=onLoad.bind(tt),dummyEventAttached||(et.addEventListener("touchstart",dummyEventListener),dummyEventAttached=!0),events(tt,"on")}function detachEvents(){events(this,"off")}var events$1={attachEvents,detachEvents};const isGridEnabled=(tt,et)=>tt.grid&&et.grid&&et.grid.rows>1;function setBreakpoint(){const tt=this,{realIndex:et,initialized:rt,params:nt,el:st}=tt,ot=nt.breakpoints;if(!ot||ot&&Object.keys(ot).length===0)return;const at=tt.getBreakpoint(ot,tt.params.breakpointsBase,tt.el);if(!at||tt.currentBreakpoint===at)return;const ut=(at in ot?ot[at]:void 0)||tt.originalParams,ct=isGridEnabled(tt,nt),dt=isGridEnabled(tt,ut),ht=nt.enabled;ct&&!dt?(st.classList.remove(`${nt.containerModifierClass}grid`,`${nt.containerModifierClass}grid-column`),tt.emitContainerClasses()):!ct&&dt&&(st.classList.add(`${nt.containerModifierClass}grid`),(ut.grid.fill&&ut.grid.fill==="column"||!ut.grid.fill&&nt.grid.fill==="column")&&st.classList.add(`${nt.containerModifierClass}grid-column`),tt.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(bt=>{if(typeof ut[bt]>"u")return;const St=nt[bt]&&nt[bt].enabled,wt=ut[bt]&&ut[bt].enabled;St&&!wt&&tt[bt].disable(),!St&&wt&&tt[bt].enable()});const ft=ut.direction&&ut.direction!==nt.direction,xt=nt.loop&&(ut.slidesPerView!==nt.slidesPerView||ft),yt=nt.loop;ft&&rt&&tt.changeDirection(),extend$1(tt.params,ut);const vt=tt.params.enabled,Et=tt.params.loop;Object.assign(tt,{allowTouchMove:tt.params.allowTouchMove,allowSlideNext:tt.params.allowSlideNext,allowSlidePrev:tt.params.allowSlidePrev}),ht&&!vt?tt.disable():!ht&&vt&&tt.enable(),tt.currentBreakpoint=at,tt.emit("_beforeBreakpoint",ut),rt&&(xt?(tt.loopDestroy(),tt.loopCreate(et),tt.updateSlides()):!yt&&Et?(tt.loopCreate(et),tt.updateSlides()):yt&&!Et&&tt.loopDestroy()),tt.emit("breakpoint",ut)}function getBreakpoint(tt,et,rt){if(et===void 0&&(et="window"),!tt||et==="container"&&!rt)return;let nt=!1;const st=getWindow(),ot=et==="window"?st.innerHeight:rt.clientHeight,at=Object.keys(tt).map(lt=>{if(typeof lt=="string"&<.indexOf("@")===0){const ut=parseFloat(lt.substr(1));return{value:ot*ut,point:lt}}return{value:lt,point:lt}});at.sort((lt,ut)=>parseInt(lt.value,10)-parseInt(ut.value,10));for(let lt=0;lt<at.length;lt+=1){const{point:ut,value:ct}=at[lt];et==="window"?st.matchMedia(`(min-width: ${ct}px)`).matches&&(nt=ut):ct<=rt.clientWidth&&(nt=ut)}return nt||"max"}var breakpoints={setBreakpoint,getBreakpoint};function prepareClasses(tt,et){const rt=[];return tt.forEach(nt=>{typeof nt=="object"?Object.keys(nt).forEach(st=>{nt[st]&&rt.push(et+st)}):typeof nt=="string"&&rt.push(et+nt)}),rt}function addClasses(){const tt=this,{classNames:et,params:rt,rtl:nt,el:st,device:ot}=tt,at=prepareClasses(["initialized",rt.direction,{"free-mode":tt.params.freeMode&&rt.freeMode.enabled},{autoheight:rt.autoHeight},{rtl:nt},{grid:rt.grid&&rt.grid.rows>1},{"grid-column":rt.grid&&rt.grid.rows>1&&rt.grid.fill==="column"},{android:ot.android},{ios:ot.ios},{"css-mode":rt.cssMode},{centered:rt.cssMode&&rt.centeredSlides},{"watch-progress":rt.watchSlidesProgress}],rt.containerModifierClass);et.push(...at),st.classList.add(...et),tt.emitContainerClasses()}function removeClasses(){const tt=this,{el:et,classNames:rt}=tt;et.classList.remove(...rt),tt.emitContainerClasses()}var classes={addClasses,removeClasses};function checkOverflow(){const tt=this,{isLocked:et,params:rt}=tt,{slidesOffsetBefore:nt}=rt;if(nt){const st=tt.slides.length-1,ot=tt.slidesGrid[st]+tt.slidesSizesGrid[st]+nt*2;tt.isLocked=tt.size>ot}else tt.isLocked=tt.snapGrid.length===1;rt.allowSlideNext===!0&&(tt.allowSlideNext=!tt.isLocked),rt.allowSlidePrev===!0&&(tt.allowSlidePrev=!tt.isLocked),et&&et!==tt.isLocked&&(tt.isEnd=!1),et!==tt.isLocked&&tt.emit(tt.isLocked?"lock":"unlock")}var checkOverflow$1={checkOverflow},defaults$3={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function moduleExtendParams(tt,et){return function(nt){nt===void 0&&(nt={});const st=Object.keys(nt)[0],ot=nt[st];if(typeof ot!="object"||ot===null){extend$1(et,nt);return}if(tt[st]===!0&&(tt[st]={enabled:!0}),st==="navigation"&&tt[st]&&tt[st].enabled&&!tt[st].prevEl&&!tt[st].nextEl&&(tt[st].auto=!0),["pagination","scrollbar"].indexOf(st)>=0&&tt[st]&&tt[st].enabled&&!tt[st].el&&(tt[st].auto=!0),!(st in tt&&"enabled"in ot)){extend$1(et,nt);return}typeof tt[st]=="object"&&!("enabled"in tt[st])&&(tt[st].enabled=!0),tt[st]||(tt[st]={enabled:!1}),extend$1(et,nt)}}const prototypes={eventsEmitter,update,translate,transition,slide,loop,grabCursor,events:events$1,breakpoints,checkOverflow:checkOverflow$1,classes},extendedDefaults={};let Swiper$1=class So{constructor(){let et,rt;for(var nt=arguments.length,st=new Array(nt),ot=0;ot<nt;ot++)st[ot]=arguments[ot];st.length===1&&st[0].constructor&&Object.prototype.toString.call(st[0]).slice(8,-1)==="Object"?rt=st[0]:[et,rt]=st,rt||(rt={}),rt=extend$1({},rt),et&&!rt.el&&(rt.el=et);const at=getDocument();if(rt.el&&typeof rt.el=="string"&&at.querySelectorAll(rt.el).length>1){const dt=[];return at.querySelectorAll(rt.el).forEach(ht=>{const ft=extend$1({},rt,{el:ht});dt.push(new So(ft))}),dt}const lt=this;lt.__swiper__=!0,lt.support=getSupport(),lt.device=getDevice({userAgent:rt.userAgent}),lt.browser=getBrowser(),lt.eventsListeners={},lt.eventsAnyListeners=[],lt.modules=[...lt.__modules__],rt.modules&&Array.isArray(rt.modules)&<.modules.push(...rt.modules);const ut={};lt.modules.forEach(dt=>{dt({params:rt,swiper:lt,extendParams:moduleExtendParams(rt,ut),on:lt.on.bind(lt),once:lt.once.bind(lt),off:lt.off.bind(lt),emit:lt.emit.bind(lt)})});const ct=extend$1({},defaults$3,ut);return lt.params=extend$1({},ct,extendedDefaults,rt),lt.originalParams=extend$1({},lt.params),lt.passedParams=extend$1({},rt),lt.params&<.params.on&&Object.keys(lt.params.on).forEach(dt=>{lt.on(dt,lt.params.on[dt])}),lt.params&<.params.onAny&<.onAny(lt.params.onAny),Object.assign(lt,{enabled:lt.params.enabled,el:et,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return lt.params.direction==="horizontal"},isVertical(){return lt.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:lt.params.allowSlideNext,allowSlidePrev:lt.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:lt.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:lt.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),lt.emit("_swiper"),lt.params.init&<.init(),lt}getSlideIndex(et){const{slidesEl:rt,params:nt}=this,st=elementChildren(rt,`.${nt.slideClass}, swiper-slide`),ot=elementIndex(st[0]);return elementIndex(et)-ot}getSlideIndexByData(et){return this.getSlideIndex(this.slides.filter(rt=>rt.getAttribute("data-swiper-slide-index")*1===et)[0])}recalcSlides(){const et=this,{slidesEl:rt,params:nt}=et;et.slides=elementChildren(rt,`.${nt.slideClass}, swiper-slide`)}enable(){const et=this;et.enabled||(et.enabled=!0,et.params.grabCursor&&et.setGrabCursor(),et.emit("enable"))}disable(){const et=this;et.enabled&&(et.enabled=!1,et.params.grabCursor&&et.unsetGrabCursor(),et.emit("disable"))}setProgress(et,rt){const nt=this;et=Math.min(Math.max(et,0),1);const st=nt.minTranslate(),at=(nt.maxTranslate()-st)*et+st;nt.translateTo(at,typeof rt>"u"?0:rt),nt.updateActiveIndex(),nt.updateSlidesClasses()}emitContainerClasses(){const et=this;if(!et.params._emitClasses||!et.el)return;const rt=et.el.className.split(" ").filter(nt=>nt.indexOf("swiper")===0||nt.indexOf(et.params.containerModifierClass)===0);et.emit("_containerClasses",rt.join(" "))}getSlideClasses(et){const rt=this;return rt.destroyed?"":et.className.split(" ").filter(nt=>nt.indexOf("swiper-slide")===0||nt.indexOf(rt.params.slideClass)===0).join(" ")}emitSlidesClasses(){const et=this;if(!et.params._emitClasses||!et.el)return;const rt=[];et.slides.forEach(nt=>{const st=et.getSlideClasses(nt);rt.push({slideEl:nt,classNames:st}),et.emit("_slideClass",nt,st)}),et.emit("_slideClasses",rt)}slidesPerViewDynamic(et,rt){et===void 0&&(et="current"),rt===void 0&&(rt=!1);const nt=this,{params:st,slides:ot,slidesGrid:at,slidesSizesGrid:lt,size:ut,activeIndex:ct}=nt;let dt=1;if(typeof st.slidesPerView=="number")return st.slidesPerView;if(st.centeredSlides){let ht=ot[ct]?ot[ct].swiperSlideSize:0,ft;for(let xt=ct+1;xt<ot.length;xt+=1)ot[xt]&&!ft&&(ht+=ot[xt].swiperSlideSize,dt+=1,ht>ut&&(ft=!0));for(let xt=ct-1;xt>=0;xt-=1)ot[xt]&&!ft&&(ht+=ot[xt].swiperSlideSize,dt+=1,ht>ut&&(ft=!0))}else if(et==="current")for(let ht=ct+1;ht<ot.length;ht+=1)(rt?at[ht]+lt[ht]-at[ct]<ut:at[ht]-at[ct]<ut)&&(dt+=1);else for(let ht=ct-1;ht>=0;ht-=1)at[ct]-at[ht]<ut&&(dt+=1);return dt}update(){const et=this;if(!et||et.destroyed)return;const{snapGrid:rt,params:nt}=et;nt.breakpoints&&et.setBreakpoint(),[...et.el.querySelectorAll('[loading="lazy"]')].forEach(at=>{at.complete&&processLazyPreloader(et,at)}),et.updateSize(),et.updateSlides(),et.updateProgress(),et.updateSlidesClasses();function st(){const at=et.rtlTranslate?et.translate*-1:et.translate,lt=Math.min(Math.max(at,et.maxTranslate()),et.minTranslate());et.setTranslate(lt),et.updateActiveIndex(),et.updateSlidesClasses()}let ot;if(nt.freeMode&&nt.freeMode.enabled&&!nt.cssMode)st(),nt.autoHeight&&et.updateAutoHeight();else{if((nt.slidesPerView==="auto"||nt.slidesPerView>1)&&et.isEnd&&!nt.centeredSlides){const at=et.virtual&&nt.virtual.enabled?et.virtual.slides:et.slides;ot=et.slideTo(at.length-1,0,!1,!0)}else ot=et.slideTo(et.activeIndex,0,!1,!0);ot||st()}nt.watchOverflow&&rt!==et.snapGrid&&et.checkOverflow(),et.emit("update")}changeDirection(et,rt){rt===void 0&&(rt=!0);const nt=this,st=nt.params.direction;return et||(et=st==="horizontal"?"vertical":"horizontal"),et===st||et!=="horizontal"&&et!=="vertical"||(nt.el.classList.remove(`${nt.params.containerModifierClass}${st}`),nt.el.classList.add(`${nt.params.containerModifierClass}${et}`),nt.emitContainerClasses(),nt.params.direction=et,nt.slides.forEach(ot=>{et==="vertical"?ot.style.width="":ot.style.height=""}),nt.emit("changeDirection"),rt&&nt.update()),nt}changeLanguageDirection(et){const rt=this;rt.rtl&&et==="rtl"||!rt.rtl&&et==="ltr"||(rt.rtl=et==="rtl",rt.rtlTranslate=rt.params.direction==="horizontal"&&rt.rtl,rt.rtl?(rt.el.classList.add(`${rt.params.containerModifierClass}rtl`),rt.el.dir="rtl"):(rt.el.classList.remove(`${rt.params.containerModifierClass}rtl`),rt.el.dir="ltr"),rt.update())}mount(et){const rt=this;if(rt.mounted)return!0;let nt=et||rt.params.el;if(typeof nt=="string"&&(nt=document.querySelector(nt)),!nt)return!1;nt.swiper=rt,nt.parentNode&&nt.parentNode.host&&nt.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(rt.isElement=!0);const st=()=>`.${(rt.params.wrapperClass||"").trim().split(" ").join(".")}`;let at=nt&&nt.shadowRoot&&nt.shadowRoot.querySelector?nt.shadowRoot.querySelector(st()):elementChildren(nt,st())[0];return!at&&rt.params.createElements&&(at=createElement("div",rt.params.wrapperClass),nt.append(at),elementChildren(nt,`.${rt.params.slideClass}`).forEach(lt=>{at.append(lt)})),Object.assign(rt,{el:nt,wrapperEl:at,slidesEl:rt.isElement&&!nt.parentNode.host.slideSlots?nt.parentNode.host:at,hostEl:rt.isElement?nt.parentNode.host:nt,mounted:!0,rtl:nt.dir.toLowerCase()==="rtl"||elementStyle(nt,"direction")==="rtl",rtlTranslate:rt.params.direction==="horizontal"&&(nt.dir.toLowerCase()==="rtl"||elementStyle(nt,"direction")==="rtl"),wrongRTL:elementStyle(at,"display")==="-webkit-box"}),!0}init(et){const rt=this;if(rt.initialized||rt.mount(et)===!1)return rt;rt.emit("beforeInit"),rt.params.breakpoints&&rt.setBreakpoint(),rt.addClasses(),rt.updateSize(),rt.updateSlides(),rt.params.watchOverflow&&rt.checkOverflow(),rt.params.grabCursor&&rt.enabled&&rt.setGrabCursor(),rt.params.loop&&rt.virtual&&rt.params.virtual.enabled?rt.slideTo(rt.params.initialSlide+rt.virtual.slidesBefore,0,rt.params.runCallbacksOnInit,!1,!0):rt.slideTo(rt.params.initialSlide,0,rt.params.runCallbacksOnInit,!1,!0),rt.params.loop&&rt.loopCreate(),rt.attachEvents();const st=[...rt.el.querySelectorAll('[loading="lazy"]')];return rt.isElement&&st.push(...rt.hostEl.querySelectorAll('[loading="lazy"]')),st.forEach(ot=>{ot.complete?processLazyPreloader(rt,ot):ot.addEventListener("load",at=>{processLazyPreloader(rt,at.target)})}),preload(rt),rt.initialized=!0,preload(rt),rt.emit("init"),rt.emit("afterInit"),rt}destroy(et,rt){et===void 0&&(et=!0),rt===void 0&&(rt=!0);const nt=this,{params:st,el:ot,wrapperEl:at,slides:lt}=nt;return typeof nt.params>"u"||nt.destroyed||(nt.emit("beforeDestroy"),nt.initialized=!1,nt.detachEvents(),st.loop&&nt.loopDestroy(),rt&&(nt.removeClasses(),ot.removeAttribute("style"),at.removeAttribute("style"),lt&<.length&<.forEach(ut=>{ut.classList.remove(st.slideVisibleClass,st.slideActiveClass,st.slideNextClass,st.slidePrevClass),ut.removeAttribute("style"),ut.removeAttribute("data-swiper-slide-index")})),nt.emit("destroy"),Object.keys(nt.eventsListeners).forEach(ut=>{nt.off(ut)}),et!==!1&&(nt.el.swiper=null,deleteProps(nt)),nt.destroyed=!0),null}static extendDefaults(et){extend$1(extendedDefaults,et)}static get extendedDefaults(){return extendedDefaults}static get defaults(){return defaults$3}static installModule(et){So.prototype.__modules__||(So.prototype.__modules__=[]);const rt=So.prototype.__modules__;typeof et=="function"&&rt.indexOf(et)<0&&rt.push(et)}static use(et){return Array.isArray(et)?(et.forEach(rt=>So.installModule(rt)),So):(So.installModule(et),So)}};Object.keys(prototypes).forEach(tt=>{Object.keys(prototypes[tt]).forEach(et=>{Swiper$1.prototype[et]=prototypes[tt][et]})});Swiper$1.use([Resize,Observer]);const paramsList=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function isObject$1(tt){return typeof tt=="object"&&tt!==null&&tt.constructor&&Object.prototype.toString.call(tt).slice(8,-1)==="Object"&&!tt.__swiper__}function extend(tt,et){const rt=["__proto__","constructor","prototype"];Object.keys(et).filter(nt=>rt.indexOf(nt)<0).forEach(nt=>{typeof tt[nt]>"u"?tt[nt]=et[nt]:isObject$1(et[nt])&&isObject$1(tt[nt])&&Object.keys(et[nt]).length>0?et[nt].__swiper__?tt[nt]=et[nt]:extend(tt[nt],et[nt]):tt[nt]=et[nt]})}function needsNavigation(tt){return tt===void 0&&(tt={}),tt.navigation&&typeof tt.navigation.nextEl>"u"&&typeof tt.navigation.prevEl>"u"}function needsPagination(tt){return tt===void 0&&(tt={}),tt.pagination&&typeof tt.pagination.el>"u"}function needsScrollbar(tt){return tt===void 0&&(tt={}),tt.scrollbar&&typeof tt.scrollbar.el>"u"}function uniqueClasses(tt){tt===void 0&&(tt="");const et=tt.split(" ").map(nt=>nt.trim()).filter(nt=>!!nt),rt=[];return et.forEach(nt=>{rt.indexOf(nt)<0&&rt.push(nt)}),rt.join(" ")}function wrapperClass(tt){return tt===void 0&&(tt=""),tt?tt.includes("swiper-wrapper")?tt:`swiper-wrapper ${tt}`:"swiper-wrapper"}function updateSwiper(tt){let{swiper:et,slides:rt,passedParams:nt,changedParams:st,nextEl:ot,prevEl:at,scrollbarEl:lt,paginationEl:ut}=tt;const ct=st.filter(Dt=>Dt!=="children"&&Dt!=="direction"&&Dt!=="wrapperClass"),{params:dt,pagination:ht,navigation:ft,scrollbar:xt,virtual:yt,thumbs:vt}=et;let Et,bt,St,wt,Rt,Ct,Pt,It;st.includes("thumbs")&&nt.thumbs&&nt.thumbs.swiper&&dt.thumbs&&!dt.thumbs.swiper&&(Et=!0),st.includes("controller")&&nt.controller&&nt.controller.control&&dt.controller&&!dt.controller.control&&(bt=!0),st.includes("pagination")&&nt.pagination&&(nt.pagination.el||ut)&&(dt.pagination||dt.pagination===!1)&&ht&&!ht.el&&(St=!0),st.includes("scrollbar")&&nt.scrollbar&&(nt.scrollbar.el||lt)&&(dt.scrollbar||dt.scrollbar===!1)&&xt&&!xt.el&&(wt=!0),st.includes("navigation")&&nt.navigation&&(nt.navigation.prevEl||at)&&(nt.navigation.nextEl||ot)&&(dt.navigation||dt.navigation===!1)&&ft&&!ft.prevEl&&!ft.nextEl&&(Rt=!0);const jt=Dt=>{et[Dt]&&(et[Dt].destroy(),Dt==="navigation"?(et.isElement&&(et[Dt].prevEl.remove(),et[Dt].nextEl.remove()),dt[Dt].prevEl=void 0,dt[Dt].nextEl=void 0,et[Dt].prevEl=void 0,et[Dt].nextEl=void 0):(et.isElement&&et[Dt].el.remove(),dt[Dt].el=void 0,et[Dt].el=void 0))};st.includes("loop")&&et.isElement&&(dt.loop&&!nt.loop?Ct=!0:!dt.loop&&nt.loop?Pt=!0:It=!0),ct.forEach(Dt=>{if(isObject$1(dt[Dt])&&isObject$1(nt[Dt]))extend(dt[Dt],nt[Dt]),(Dt==="navigation"||Dt==="pagination"||Dt==="scrollbar")&&"enabled"in nt[Dt]&&!nt[Dt].enabled&&jt(Dt);else{const Vt=nt[Dt];(Vt===!0||Vt===!1)&&(Dt==="navigation"||Dt==="pagination"||Dt==="scrollbar")?Vt===!1&&jt(Dt):dt[Dt]=nt[Dt]}}),ct.includes("controller")&&!bt&&et.controller&&et.controller.control&&dt.controller&&dt.controller.control&&(et.controller.control=dt.controller.control),st.includes("children")&&rt&&yt&&dt.virtual.enabled&&(yt.slides=rt,yt.update(!0)),st.includes("children")&&rt&&dt.loop&&(It=!0),Et&&vt.init()&&vt.update(!0),bt&&(et.controller.control=dt.controller.control),St&&(et.isElement&&(!ut||typeof ut=="string")&&(ut=document.createElement("div"),ut.classList.add("swiper-pagination"),ut.part.add("pagination"),et.el.appendChild(ut)),ut&&(dt.pagination.el=ut),ht.init(),ht.render(),ht.update()),wt&&(et.isElement&&(!lt||typeof lt=="string")&&(lt=document.createElement("div"),lt.classList.add("swiper-scrollbar"),lt.part.add("scrollbar"),et.el.appendChild(lt)),lt&&(dt.scrollbar.el=lt),xt.init(),xt.updateSize(),xt.setTranslate()),Rt&&(et.isElement&&((!ot||typeof ot=="string")&&(ot=document.createElement("div"),ot.classList.add("swiper-button-next"),ot.innerHTML=et.hostEl.constructor.nextButtonSvg,ot.part.add("button-next"),et.el.appendChild(ot)),(!at||typeof at=="string")&&(at=document.createElement("div"),at.classList.add("swiper-button-prev"),at.innerHTML=et.hostEl.constructor.prevButtonSvg,at.part.add("button-prev"),et.el.appendChild(at))),ot&&(dt.navigation.nextEl=ot),at&&(dt.navigation.prevEl=at),ft.init(),ft.update()),st.includes("allowSlideNext")&&(et.allowSlideNext=nt.allowSlideNext),st.includes("allowSlidePrev")&&(et.allowSlidePrev=nt.allowSlidePrev),st.includes("direction")&&et.changeDirection(nt.direction,!1),(Ct||It)&&et.loopDestroy(),(Pt||It)&&et.loopCreate(),et.update()}function getParams(tt,et){tt===void 0&&(tt={}),et===void 0&&(et=!0);const rt={on:{}},nt={},st={};extend(rt,defaults$3),rt._emitClasses=!0,rt.init=!1;const ot={},at=paramsList.map(ut=>ut.replace(/_/,"")),lt=Object.assign({},tt);return Object.keys(lt).forEach(ut=>{typeof tt[ut]>"u"||(at.indexOf(ut)>=0?isObject$1(tt[ut])?(rt[ut]={},st[ut]={},extend(rt[ut],tt[ut]),extend(st[ut],tt[ut])):(rt[ut]=tt[ut],st[ut]=tt[ut]):ut.search(/on[A-Z]/)===0&&typeof tt[ut]=="function"?et?nt[`${ut[2].toLowerCase()}${ut.substr(3)}`]=tt[ut]:rt.on[`${ut[2].toLowerCase()}${ut.substr(3)}`]=tt[ut]:ot[ut]=tt[ut])}),["navigation","pagination","scrollbar"].forEach(ut=>{rt[ut]===!0&&(rt[ut]={}),rt[ut]===!1&&delete rt[ut]}),{params:rt,passedParams:st,rest:ot,events:nt}}function mountSwiper(tt,et){let{el:rt,nextEl:nt,prevEl:st,paginationEl:ot,scrollbarEl:at,swiper:lt}=tt;needsNavigation(et)&&nt&&st&&(lt.params.navigation.nextEl=nt,lt.originalParams.navigation.nextEl=nt,lt.params.navigation.prevEl=st,lt.originalParams.navigation.prevEl=st),needsPagination(et)&&ot&&(lt.params.pagination.el=ot,lt.originalParams.pagination.el=ot),needsScrollbar(et)&&at&&(lt.params.scrollbar.el=at,lt.originalParams.scrollbar.el=at),lt.init(rt)}function getChangedParams(tt,et,rt,nt,st){const ot=[];if(!et)return ot;const at=ut=>{ot.indexOf(ut)<0&&ot.push(ut)};if(rt&&nt){const ut=nt.map(st),ct=rt.map(st);ut.join("")!==ct.join("")&&at("children"),nt.length!==rt.length&&at("children")}return paramsList.filter(ut=>ut[0]==="_").map(ut=>ut.replace(/_/,"")).forEach(ut=>{if(ut in tt&&ut in et)if(isObject$1(tt[ut])&&isObject$1(et[ut])){const ct=Object.keys(tt[ut]),dt=Object.keys(et[ut]);ct.length!==dt.length?at(ut):(ct.forEach(ht=>{tt[ut][ht]!==et[ut][ht]&&at(ut)}),dt.forEach(ht=>{tt[ut][ht]!==et[ut][ht]&&at(ut)}))}else tt[ut]!==et[ut]&&at(ut)}),ot}const updateOnVirtualData=tt=>{!tt||tt.destroyed||!tt.params.virtual||tt.params.virtual&&!tt.params.virtual.enabled||(tt.updateSlides(),tt.updateProgress(),tt.updateSlidesClasses(),tt.parallax&&tt.params.parallax&&tt.params.parallax.enabled&&tt.parallax.setTranslate())};function _extends(){return _extends=Object.assign?Object.assign.bind():function(tt){for(var et=1;et<arguments.length;et++){var rt=arguments[et];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(tt[nt]=rt[nt])}return tt},_extends.apply(this,arguments)}function isChildSwiperSlide(tt){return tt.type&&tt.type.displayName&&tt.type.displayName.includes("SwiperSlide")}function processChildren(tt){const et=[];return React$4.Children.toArray(tt).forEach(rt=>{isChildSwiperSlide(rt)?et.push(rt):rt.props&&rt.props.children&&processChildren(rt.props.children).forEach(nt=>et.push(nt))}),et}function getChildren(tt){const et=[],rt={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return React$4.Children.toArray(tt).forEach(nt=>{if(isChildSwiperSlide(nt))et.push(nt);else if(nt.props&&nt.props.slot&&rt[nt.props.slot])rt[nt.props.slot].push(nt);else if(nt.props&&nt.props.children){const st=processChildren(nt.props.children);st.length>0?st.forEach(ot=>et.push(ot)):rt["container-end"].push(nt)}else rt["container-end"].push(nt)}),{slides:et,slots:rt}}function renderVirtual(tt,et,rt){if(!rt)return null;const nt=dt=>{let ht=dt;return dt<0?ht=et.length+dt:ht>=et.length&&(ht=ht-et.length),ht},st=tt.isHorizontal()?{[tt.rtlTranslate?"right":"left"]:`${rt.offset}px`}:{top:`${rt.offset}px`},{from:ot,to:at}=rt,lt=tt.params.loop?-et.length:0,ut=tt.params.loop?et.length*2:et.length,ct=[];for(let dt=lt;dt<ut;dt+=1)dt>=ot&&dt<=at&&ct.push(et[nt(dt)]);return ct.map((dt,ht)=>React$4.cloneElement(dt,{swiper:tt,style:st,key:`slide-${ht}`}))}function useIsomorphicLayoutEffect(tt,et){return typeof window>"u"?reactExports.useEffect(tt,et):reactExports.useLayoutEffect(tt,et)}const SwiperSlideContext=reactExports.createContext(null),SwiperContext=reactExports.createContext(null),Swiper=reactExports.forwardRef(function(tt,et){let{className:rt,tag:nt="div",wrapperTag:st="div",children:ot,onSwiper:at,...lt}=tt===void 0?{}:tt,ut=!1;const[ct,dt]=reactExports.useState("swiper"),[ht,ft]=reactExports.useState(null),[xt,yt]=reactExports.useState(!1),vt=reactExports.useRef(!1),Et=reactExports.useRef(null),bt=reactExports.useRef(null),St=reactExports.useRef(null),wt=reactExports.useRef(null),Rt=reactExports.useRef(null),Ct=reactExports.useRef(null),Pt=reactExports.useRef(null),It=reactExports.useRef(null),{params:jt,passedParams:Dt,rest:Vt,events:Ft}=getParams(lt),{slides:Ht,slots:Nt}=getChildren(ot),Lt=()=>{yt(!xt)};Object.assign(jt.on,{_containerClasses(Ut,Bt){dt(Bt)}});const Mt=()=>{Object.assign(jt.on,Ft),ut=!0;const Ut={...jt};if(delete Ut.wrapperClass,bt.current=new Swiper$1(Ut),bt.current.virtual&&bt.current.params.virtual.enabled){bt.current.virtual.slides=Ht;const Bt={cache:!1,slides:Ht,renderExternal:ft,renderExternalUpdate:!1};extend(bt.current.params.virtual,Bt),extend(bt.current.originalParams.virtual,Bt)}};Et.current||Mt(),bt.current&&bt.current.on("_beforeBreakpoint",Lt);const zt=()=>{ut||!Ft||!bt.current||Object.keys(Ft).forEach(Ut=>{bt.current.on(Ut,Ft[Ut])})},Gt=()=>{!Ft||!bt.current||Object.keys(Ft).forEach(Ut=>{bt.current.off(Ut,Ft[Ut])})};reactExports.useEffect(()=>()=>{bt.current&&bt.current.off("_beforeBreakpoint",Lt)}),reactExports.useEffect(()=>{!vt.current&&bt.current&&(bt.current.emitSlidesClasses(),vt.current=!0)}),useIsomorphicLayoutEffect(()=>{if(et&&(et.current=Et.current),!!Et.current)return bt.current.destroyed&&Mt(),mountSwiper({el:Et.current,nextEl:Rt.current,prevEl:Ct.current,paginationEl:Pt.current,scrollbarEl:It.current,swiper:bt.current},jt),at&&at(bt.current),()=>{bt.current&&!bt.current.destroyed&&bt.current.destroy(!0,!1)}},[]),useIsomorphicLayoutEffect(()=>{zt();const Ut=getChangedParams(Dt,St.current,Ht,wt.current,Bt=>Bt.key);return St.current=Dt,wt.current=Ht,Ut.length&&bt.current&&!bt.current.destroyed&&updateSwiper({swiper:bt.current,slides:Ht,passedParams:Dt,changedParams:Ut,nextEl:Rt.current,prevEl:Ct.current,scrollbarEl:It.current,paginationEl:Pt.current}),()=>{Gt()}}),useIsomorphicLayoutEffect(()=>{updateOnVirtualData(bt.current)},[ht]);function Ot(){return jt.virtual?renderVirtual(bt.current,Ht,ht):Ht.map((Ut,Bt)=>React$4.cloneElement(Ut,{swiper:bt.current,swiperSlideIndex:Bt}))}return React$4.createElement(nt,_extends({ref:Et,className:uniqueClasses(`${ct}${rt?` ${rt}`:""}`)},Vt),React$4.createElement(SwiperContext.Provider,{value:bt.current},Nt["container-start"],React$4.createElement(st,{className:wrapperClass(jt.wrapperClass)},Nt["wrapper-start"],Ot(),Nt["wrapper-end"]),needsNavigation(jt)&&React$4.createElement(React$4.Fragment,null,React$4.createElement("div",{ref:Ct,className:"swiper-button-prev"}),React$4.createElement("div",{ref:Rt,className:"swiper-button-next"})),needsScrollbar(jt)&&React$4.createElement("div",{ref:It,className:"swiper-scrollbar"}),needsPagination(jt)&&React$4.createElement("div",{ref:Pt,className:"swiper-pagination"}),Nt["container-end"]))});Swiper.displayName="Swiper";const SwiperSlide=reactExports.forwardRef(function(tt,et){let{tag:rt="div",children:nt,className:st="",swiper:ot,zoom:at,lazy:lt,virtualIndex:ut,swiperSlideIndex:ct,...dt}=tt===void 0?{}:tt;const ht=reactExports.useRef(null),[ft,xt]=reactExports.useState("swiper-slide"),[yt,vt]=reactExports.useState(!1);function Et(Rt,Ct,Pt){Ct===ht.current&&xt(Pt)}useIsomorphicLayoutEffect(()=>{if(typeof ct<"u"&&(ht.current.swiperSlideIndex=ct),et&&(et.current=ht.current),!(!ht.current||!ot)){if(ot.destroyed){ft!=="swiper-slide"&&xt("swiper-slide");return}return ot.on("_slideClass",Et),()=>{ot&&ot.off("_slideClass",Et)}}}),useIsomorphicLayoutEffect(()=>{ot&&ht.current&&!ot.destroyed&&xt(ot.getSlideClasses(ht.current))},[ot]);const bt={isActive:ft.indexOf("swiper-slide-active")>=0,isVisible:ft.indexOf("swiper-slide-visible")>=0,isPrev:ft.indexOf("swiper-slide-prev")>=0,isNext:ft.indexOf("swiper-slide-next")>=0},St=()=>typeof nt=="function"?nt(bt):nt,wt=()=>{vt(!0)};return React$4.createElement(rt,_extends({ref:ht,className:uniqueClasses(`${ft}${st?` ${st}`:""}`),"data-swiper-slide-index":ut,onLoad:wt},dt),at&&React$4.createElement(SwiperSlideContext.Provider,{value:bt},React$4.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof at=="number"?at:void 0},St(),lt&&!yt&&React$4.createElement("div",{className:"swiper-lazy-preloader"}))),!at&&React$4.createElement(SwiperSlideContext.Provider,{value:bt},St(),lt&&!yt&&React$4.createElement("div",{className:"swiper-lazy-preloader"})))});SwiperSlide.displayName="SwiperSlide";const getOnboardingTrash=async tt=>await odeServices.conf().getPreference(tt),saveOnboardingTrash=async tt=>await odeServices.conf().savePreference(tt,JSON.stringify({key:!1})),useOnboardingModal=tt=>{const[et,rt]=reactExports.useState(!0),[nt,st]=reactExports.useState(!1);return reactExports.useEffect(()=>{(async()=>{const ot=await getOnboardingTrash(tt);if(ot){const{key:at}=ot;st(at);return}st(!0)})()},[tt]),{isOpen:et,setIsOpen:rt,isOnboarding:nt,handleSavePreference:async()=>{await saveOnboardingTrash(tt),rt(!1)}}},OnboardingModal$2=({id:tt,items:et,modalOptions:rt})=>{const[nt,st]=reactExports.useState(),[ot,at]=reactExports.useState(0),{isOpen:lt,isOnboarding:ut,setIsOpen:ct,handleSavePreference:dt}=useOnboardingModal(tt);reactExports.useEffect(()=>{const Et=document.createElement("link");return Et.href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css",Et.rel="stylesheet",Et.type="text/css",document.head.appendChild(Et),()=>{document.head.removeChild(Et)}},[]);const{t:ht}=useTranslation(),{title:ft,prevText:xt,closeText:yt,nextText:vt}=rt;return ut?reactDomExports.createPortal(jsxRuntimeExports.jsxs(Modal,{id:"onboarding-modal",size:"md",isOpen:lt,focusId:"nextButtonId",onModalClose:()=>ct(!1),children:[jsxRuntimeExports.jsx(Modal.Header,{onModalClose:()=>ct(!1),children:ht(ft||"explorer.modal.onboarding.trash.title")}),jsxRuntimeExports.jsx(Modal.Body,{children:jsxRuntimeExports.jsx(Swiper,{modules:[Pagination],onSwiper:Et=>{st(Et)},onSlideChange:Et=>{at(Et.progress)},pagination:{clickable:!0},children:et.map((Et,bt)=>jsxRuntimeExports.jsxs(SwiperSlide,{children:[jsxRuntimeExports.jsx(Image$1,{width:"270",height:"140",className:"mx-auto my-12",loading:"lazy",src:Et.src,alt:ht(Et.alt)}),jsxRuntimeExports.jsx("p",{children:ht(Et.text)})]},bt))})}),jsxRuntimeExports.jsxs(Modal.Footer,{children:[jsxRuntimeExports.jsx(Button,{type:"button",color:"tertiary",variant:"ghost",onClick:()=>ct(!1),children:ht("explorer.modal.onboarding.trash.later")}),ot>0&&jsxRuntimeExports.jsx(Button,{type:"button",color:"primary",variant:"outline",onClick:()=>nt.slidePrev(),children:ht(xt||"explorer.modal.onboarding.trash.prev")}),ot<1&&jsxRuntimeExports.jsx(Button,{id:"nextButtonId",type:"button",color:"primary",variant:"filled",onClick:()=>nt.slideNext(),children:ht(vt||"explorer.modal.onboarding.trash.next")}),ot===1&&jsxRuntimeExports.jsx(Button,{type:"button",color:"primary",variant:"filled",onClick:dt,children:ht(yt||"explorer.modal.onboarding.trash.close")})]})]}),document.getElementById("portal")):null};var isCheckBoxInput=tt=>tt.type==="checkbox",isDateObject=tt=>tt instanceof Date,isNullOrUndefined=tt=>tt==null;const isObjectType=tt=>typeof tt=="object";var isObject=tt=>!isNullOrUndefined(tt)&&!Array.isArray(tt)&&isObjectType(tt)&&!isDateObject(tt),getEventValue=tt=>isObject(tt)&&tt.target?isCheckBoxInput(tt.target)?tt.target.checked:tt.target.value:tt,getNodeParentName=tt=>tt.substring(0,tt.search(/\.\d+(\.|$)/))||tt,isNameInFieldArray=(tt,et)=>tt.has(getNodeParentName(et)),isPlainObject$1=tt=>{const et=tt.constructor&&tt.constructor.prototype;return isObject(et)&&et.hasOwnProperty("isPrototypeOf")},isWeb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cloneObject(tt){let et;const rt=Array.isArray(tt),nt=typeof FileList<"u"?tt instanceof FileList:!1;if(tt instanceof Date)et=new Date(tt);else if(tt instanceof Set)et=new Set(tt);else if(!(isWeb&&(tt instanceof Blob||nt))&&(rt||isObject(tt)))if(et=rt?[]:{},!rt&&!isPlainObject$1(tt))et=tt;else for(const st in tt)tt.hasOwnProperty(st)&&(et[st]=cloneObject(tt[st]));else return tt;return et}var compact$1=tt=>Array.isArray(tt)?tt.filter(Boolean):[],isUndefined=tt=>tt===void 0,get$1=(tt,et,rt)=>{if(!et||!isObject(tt))return rt;const nt=compact$1(et.split(/[,[\].]+?/)).reduce((st,ot)=>isNullOrUndefined(st)?st:st[ot],tt);return isUndefined(nt)||nt===tt?isUndefined(tt[et])?rt:tt[et]:nt},isBoolean$1=tt=>typeof tt=="boolean",isKey=tt=>/^\w*$/.test(tt),stringToPath$1=tt=>compact$1(tt.replace(/["|']|\]/g,"").split(/\.|\[/)),set=(tt,et,rt)=>{let nt=-1;const st=isKey(et)?[et]:stringToPath$1(et),ot=st.length,at=ot-1;for(;++nt<ot;){const lt=st[nt];let ut=rt;if(nt!==at){const ct=tt[lt];ut=isObject(ct)||Array.isArray(ct)?ct:isNaN(+st[nt+1])?{}:[]}if(lt==="__proto__"||lt==="constructor"||lt==="prototype")return;tt[lt]=ut,tt=tt[lt]}return tt};const EVENTS={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},VALIDATION_MODE={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},INPUT_VALIDATION_RULES={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},HookFormContext=React$4.createContext(null),useFormContext=()=>React$4.useContext(HookFormContext);var getProxyFormState=(tt,et,rt,nt=!0)=>{const st={defaultValues:et._defaultValues};for(const ot in tt)Object.defineProperty(st,ot,{get:()=>{const at=ot;return et._proxyFormState[at]!==VALIDATION_MODE.all&&(et._proxyFormState[at]=!nt||VALIDATION_MODE.all),rt&&(rt[at]=!0),tt[at]}});return st},isEmptyObject=tt=>isObject(tt)&&!Object.keys(tt).length,shouldRenderFormState=(tt,et,rt,nt)=>{rt(tt);const{name:st,...ot}=tt;return isEmptyObject(ot)||Object.keys(ot).length>=Object.keys(et).length||Object.keys(ot).find(at=>et[at]===(!nt||VALIDATION_MODE.all))},convertToArrayPayload=tt=>Array.isArray(tt)?tt:[tt],shouldSubscribeByName=(tt,et,rt)=>!tt||!et||tt===et||convertToArrayPayload(tt).some(nt=>nt&&(rt?nt===et:nt.startsWith(et)||et.startsWith(nt)));function useSubscribe(tt){const et=React$4.useRef(tt);et.current=tt,React$4.useEffect(()=>{const rt=!tt.disabled&&et.current.subject&&et.current.subject.subscribe({next:et.current.next});return()=>{rt&&rt.unsubscribe()}},[tt.disabled])}function useFormState(tt){const et=useFormContext(),{control:rt=et.control,disabled:nt,name:st,exact:ot}=tt||{},[at,lt]=React$4.useState(rt._formState),ut=React$4.useRef(!0),ct=React$4.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),dt=React$4.useRef(st);return dt.current=st,useSubscribe({disabled:nt,next:ht=>ut.current&&shouldSubscribeByName(dt.current,ht.name,ot)&&shouldRenderFormState(ht,ct.current,rt._updateFormState)&<({...rt._formState,...ht}),subject:rt._subjects.state}),React$4.useEffect(()=>(ut.current=!0,ct.current.isValid&&rt._updateValid(!0),()=>{ut.current=!1}),[rt]),React$4.useMemo(()=>getProxyFormState(at,rt,ct.current,!1),[at,rt])}var isString$1=tt=>typeof tt=="string",generateWatchOutput=(tt,et,rt,nt,st)=>isString$1(tt)?(nt&&et.watch.add(tt),get$1(rt,tt,st)):Array.isArray(tt)?tt.map(ot=>(nt&&et.watch.add(ot),get$1(rt,ot))):(nt&&(et.watchAll=!0),rt);function useWatch(tt){const et=useFormContext(),{control:rt=et.control,name:nt,defaultValue:st,disabled:ot,exact:at}=tt||{},lt=React$4.useRef(nt);lt.current=nt,useSubscribe({disabled:ot,subject:rt._subjects.values,next:dt=>{shouldSubscribeByName(lt.current,dt.name,at)&&ct(cloneObject(generateWatchOutput(lt.current,rt._names,dt.values||rt._formValues,!1,st)))}});const[ut,ct]=React$4.useState(rt._getWatch(nt,st));return React$4.useEffect(()=>rt._removeUnmounted()),ut}function useController(tt){const et=useFormContext(),{name:rt,disabled:nt,control:st=et.control,shouldUnregister:ot}=tt,at=isNameInFieldArray(st._names.array,rt),lt=useWatch({control:st,name:rt,defaultValue:get$1(st._formValues,rt,get$1(st._defaultValues,rt,tt.defaultValue)),exact:!0}),ut=useFormState({control:st,name:rt,exact:!0}),ct=React$4.useRef(st.register(rt,{...tt.rules,value:lt,...isBoolean$1(tt.disabled)?{disabled:tt.disabled}:{}})),dt=React$4.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get$1(ut.errors,rt)},isDirty:{enumerable:!0,get:()=>!!get$1(ut.dirtyFields,rt)},isTouched:{enumerable:!0,get:()=>!!get$1(ut.touchedFields,rt)},isValidating:{enumerable:!0,get:()=>!!get$1(ut.validatingFields,rt)},error:{enumerable:!0,get:()=>get$1(ut.errors,rt)}}),[ut,rt]),ht=React$4.useMemo(()=>({name:rt,value:lt,...isBoolean$1(nt)||ut.disabled?{disabled:ut.disabled||nt}:{},onChange:ft=>ct.current.onChange({target:{value:getEventValue(ft),name:rt},type:EVENTS.CHANGE}),onBlur:()=>ct.current.onBlur({target:{value:get$1(st._formValues,rt),name:rt},type:EVENTS.BLUR}),ref:ft=>{const xt=get$1(st._fields,rt);xt&&ft&&(xt._f.ref={focus:()=>ft.focus(),select:()=>ft.select(),setCustomValidity:yt=>ft.setCustomValidity(yt),reportValidity:()=>ft.reportValidity()})}}),[rt,st._formValues,nt,ut.disabled,lt,st._fields]);return React$4.useEffect(()=>{const ft=st._options.shouldUnregister||ot,xt=(yt,vt)=>{const Et=get$1(st._fields,yt);Et&&Et._f&&(Et._f.mount=vt)};if(xt(rt,!0),ft){const yt=cloneObject(get$1(st._options.defaultValues,rt));set(st._defaultValues,rt,yt),isUndefined(get$1(st._formValues,rt))&&set(st._formValues,rt,yt)}return!at&&st.register(rt),()=>{(at?ft&&!st._state.action:ft)?st.unregister(rt):xt(rt,!1)}},[rt,st,at,ot]),React$4.useEffect(()=>{st._updateDisabledField({disabled:nt,fields:st._fields,name:rt})},[nt,rt,st]),React$4.useMemo(()=>({field:ht,formState:ut,fieldState:dt}),[ht,ut,dt])}const Controller=tt=>tt.render(useController(tt));var appendErrors=(tt,et,rt,nt,st)=>et?{...rt[tt],types:{...rt[tt]&&rt[tt].types?rt[tt].types:{},[nt]:st||!0}}:{},getValidationModes=tt=>({isOnSubmit:!tt||tt===VALIDATION_MODE.onSubmit,isOnBlur:tt===VALIDATION_MODE.onBlur,isOnChange:tt===VALIDATION_MODE.onChange,isOnAll:tt===VALIDATION_MODE.all,isOnTouch:tt===VALIDATION_MODE.onTouched}),isWatched=(tt,et,rt)=>!rt&&(et.watchAll||et.watch.has(tt)||[...et.watch].some(nt=>tt.startsWith(nt)&&/^\.\w+/.test(tt.slice(nt.length))));const iterateFieldsByAction=(tt,et,rt,nt)=>{for(const st of rt||Object.keys(tt)){const ot=get$1(tt,st);if(ot){const{_f:at,...lt}=ot;if(at){if(at.refs&&at.refs[0]&&et(at.refs[0],st)&&!nt)return!0;if(at.ref&&et(at.ref,at.name)&&!nt)return!0;if(iterateFieldsByAction(lt,et))break}else if(isObject(lt)&&iterateFieldsByAction(lt,et))break}}};var updateFieldArrayRootError=(tt,et,rt)=>{const nt=convertToArrayPayload(get$1(tt,rt));return set(nt,"root",et[rt]),set(tt,rt,nt),tt},isFileInput=tt=>tt.type==="file",isFunction=tt=>typeof tt=="function",isHTMLElement=tt=>{if(!isWeb)return!1;const et=tt?tt.ownerDocument:0;return tt instanceof(et&&et.defaultView?et.defaultView.HTMLElement:HTMLElement)},isMessage=tt=>isString$1(tt),isRadioInput=tt=>tt.type==="radio",isRegex=tt=>tt instanceof RegExp;const defaultResult={value:!1,isValid:!1},validResult={value:!0,isValid:!0};var getCheckboxValue=tt=>{if(Array.isArray(tt)){if(tt.length>1){const et=tt.filter(rt=>rt&&rt.checked&&!rt.disabled).map(rt=>rt.value);return{value:et,isValid:!!et.length}}return tt[0].checked&&!tt[0].disabled?tt[0].attributes&&!isUndefined(tt[0].attributes.value)?isUndefined(tt[0].value)||tt[0].value===""?validResult:{value:tt[0].value,isValid:!0}:validResult:defaultResult}return defaultResult};const defaultReturn={isValid:!1,value:null};var getRadioValue=tt=>Array.isArray(tt)?tt.reduce((et,rt)=>rt&&rt.checked&&!rt.disabled?{isValid:!0,value:rt.value}:et,defaultReturn):defaultReturn;function getValidateError(tt,et,rt="validate"){if(isMessage(tt)||Array.isArray(tt)&&tt.every(isMessage)||isBoolean$1(tt)&&!tt)return{type:rt,message:isMessage(tt)?tt:"",ref:et}}var getValueAndMessage=tt=>isObject(tt)&&!isRegex(tt)?tt:{value:tt,message:""},validateField=async(tt,et,rt,nt,st,ot)=>{const{ref:at,refs:lt,required:ut,maxLength:ct,minLength:dt,min:ht,max:ft,pattern:xt,validate:yt,name:vt,valueAsNumber:Et,mount:bt}=tt._f,St=get$1(rt,vt);if(!bt||et.has(vt))return{};const wt=lt?lt[0]:at,Rt=Ht=>{st&&wt.reportValidity&&(wt.setCustomValidity(isBoolean$1(Ht)?"":Ht||""),wt.reportValidity())},Ct={},Pt=isRadioInput(at),It=isCheckBoxInput(at),jt=Pt||It,Dt=(Et||isFileInput(at))&&isUndefined(at.value)&&isUndefined(St)||isHTMLElement(at)&&at.value===""||St===""||Array.isArray(St)&&!St.length,Vt=appendErrors.bind(null,vt,nt,Ct),Ft=(Ht,Nt,Lt,Mt=INPUT_VALIDATION_RULES.maxLength,zt=INPUT_VALIDATION_RULES.minLength)=>{const Gt=Ht?Nt:Lt;Ct[vt]={type:Ht?Mt:zt,message:Gt,ref:at,...Vt(Ht?Mt:zt,Gt)}};if(ot?!Array.isArray(St)||!St.length:ut&&(!jt&&(Dt||isNullOrUndefined(St))||isBoolean$1(St)&&!St||It&&!getCheckboxValue(lt).isValid||Pt&&!getRadioValue(lt).isValid)){const{value:Ht,message:Nt}=isMessage(ut)?{value:!!ut,message:ut}:getValueAndMessage(ut);if(Ht&&(Ct[vt]={type:INPUT_VALIDATION_RULES.required,message:Nt,ref:wt,...Vt(INPUT_VALIDATION_RULES.required,Nt)},!nt))return Rt(Nt),Ct}if(!Dt&&(!isNullOrUndefined(ht)||!isNullOrUndefined(ft))){let Ht,Nt;const Lt=getValueAndMessage(ft),Mt=getValueAndMessage(ht);if(!isNullOrUndefined(St)&&!isNaN(St)){const zt=at.valueAsNumber||St&&+St;isNullOrUndefined(Lt.value)||(Ht=zt>Lt.value),isNullOrUndefined(Mt.value)||(Nt=zt<Mt.value)}else{const zt=at.valueAsDate||new Date(St),Gt=Bt=>new Date(new Date().toDateString()+" "+Bt),Ot=at.type=="time",Ut=at.type=="week";isString$1(Lt.value)&&St&&(Ht=Ot?Gt(St)>Gt(Lt.value):Ut?St>Lt.value:zt>new Date(Lt.value)),isString$1(Mt.value)&&St&&(Nt=Ot?Gt(St)<Gt(Mt.value):Ut?St<Mt.value:zt<new Date(Mt.value))}if((Ht||Nt)&&(Ft(!!Ht,Lt.message,Mt.message,INPUT_VALIDATION_RULES.max,INPUT_VALIDATION_RULES.min),!nt))return Rt(Ct[vt].message),Ct}if((ct||dt)&&!Dt&&(isString$1(St)||ot&&Array.isArray(St))){const Ht=getValueAndMessage(ct),Nt=getValueAndMessage(dt),Lt=!isNullOrUndefined(Ht.value)&&St.length>+Ht.value,Mt=!isNullOrUndefined(Nt.value)&&St.length<+Nt.value;if((Lt||Mt)&&(Ft(Lt,Ht.message,Nt.message),!nt))return Rt(Ct[vt].message),Ct}if(xt&&!Dt&&isString$1(St)){const{value:Ht,message:Nt}=getValueAndMessage(xt);if(isRegex(Ht)&&!St.match(Ht)&&(Ct[vt]={type:INPUT_VALIDATION_RULES.pattern,message:Nt,ref:at,...Vt(INPUT_VALIDATION_RULES.pattern,Nt)},!nt))return Rt(Nt),Ct}if(yt){if(isFunction(yt)){const Ht=await yt(St,rt),Nt=getValidateError(Ht,wt);if(Nt&&(Ct[vt]={...Nt,...Vt(INPUT_VALIDATION_RULES.validate,Nt.message)},!nt))return Rt(Nt.message),Ct}else if(isObject(yt)){let Ht={};for(const Nt in yt){if(!isEmptyObject(Ht)&&!nt)break;const Lt=getValidateError(await yt[Nt](St,rt),wt,Nt);Lt&&(Ht={...Lt,...Vt(Nt,Lt.message)},Rt(Lt.message),nt&&(Ct[vt]=Ht))}if(!isEmptyObject(Ht)&&(Ct[vt]={ref:wt,...Ht},!nt))return Ct}}return Rt(!0),Ct};function baseGet(tt,et){const rt=et.slice(0,-1).length;let nt=0;for(;nt<rt;)tt=isUndefined(tt)?nt++:tt[et[nt++]];return tt}function isEmptyArray(tt){for(const et in tt)if(tt.hasOwnProperty(et)&&!isUndefined(tt[et]))return!1;return!0}function unset(tt,et){const rt=Array.isArray(et)?et:isKey(et)?[et]:stringToPath$1(et),nt=rt.length===1?tt:baseGet(tt,rt),st=rt.length-1,ot=rt[st];return nt&&delete nt[ot],st!==0&&(isObject(nt)&&isEmptyObject(nt)||Array.isArray(nt)&&isEmptyArray(nt))&&unset(tt,rt.slice(0,-1)),tt}var createSubject=()=>{let tt=[];return{get observers(){return tt},next:st=>{for(const ot of tt)ot.next&&ot.next(st)},subscribe:st=>(tt.push(st),{unsubscribe:()=>{tt=tt.filter(ot=>ot!==st)}}),unsubscribe:()=>{tt=[]}}},isPrimitive=tt=>isNullOrUndefined(tt)||!isObjectType(tt);function deepEqual(tt,et){if(isPrimitive(tt)||isPrimitive(et))return tt===et;if(isDateObject(tt)&&isDateObject(et))return tt.getTime()===et.getTime();const rt=Object.keys(tt),nt=Object.keys(et);if(rt.length!==nt.length)return!1;for(const st of rt){const ot=tt[st];if(!nt.includes(st))return!1;if(st!=="ref"){const at=et[st];if(isDateObject(ot)&&isDateObject(at)||isObject(ot)&&isObject(at)||Array.isArray(ot)&&Array.isArray(at)?!deepEqual(ot,at):ot!==at)return!1}}return!0}var isMultipleSelect=tt=>tt.type==="select-multiple",isRadioOrCheckbox=tt=>isRadioInput(tt)||isCheckBoxInput(tt),live=tt=>isHTMLElement(tt)&&tt.isConnected,objectHasFunction=tt=>{for(const et in tt)if(isFunction(tt[et]))return!0;return!1};function markFieldsDirty(tt,et={}){const rt=Array.isArray(tt);if(isObject(tt)||rt)for(const nt in tt)Array.isArray(tt[nt])||isObject(tt[nt])&&!objectHasFunction(tt[nt])?(et[nt]=Array.isArray(tt[nt])?[]:{},markFieldsDirty(tt[nt],et[nt])):isNullOrUndefined(tt[nt])||(et[nt]=!0);return et}function getDirtyFieldsFromDefaultValues(tt,et,rt){const nt=Array.isArray(tt);if(isObject(tt)||nt)for(const st in tt)Array.isArray(tt[st])||isObject(tt[st])&&!objectHasFunction(tt[st])?isUndefined(et)||isPrimitive(rt[st])?rt[st]=Array.isArray(tt[st])?markFieldsDirty(tt[st],[]):{...markFieldsDirty(tt[st])}:getDirtyFieldsFromDefaultValues(tt[st],isNullOrUndefined(et)?{}:et[st],rt[st]):rt[st]=!deepEqual(tt[st],et[st]);return rt}var getDirtyFields=(tt,et)=>getDirtyFieldsFromDefaultValues(tt,et,markFieldsDirty(et)),getFieldValueAs=(tt,{valueAsNumber:et,valueAsDate:rt,setValueAs:nt})=>isUndefined(tt)?tt:et?tt===""?NaN:tt&&+tt:rt&&isString$1(tt)?new Date(tt):nt?nt(tt):tt;function getFieldValue(tt){const et=tt.ref;return isFileInput(et)?et.files:isRadioInput(et)?getRadioValue(tt.refs).value:isMultipleSelect(et)?[...et.selectedOptions].map(({value:rt})=>rt):isCheckBoxInput(et)?getCheckboxValue(tt.refs).value:getFieldValueAs(isUndefined(et.value)?tt.ref.value:et.value,tt)}var getResolverOptions=(tt,et,rt,nt)=>{const st={};for(const ot of tt){const at=get$1(et,ot);at&&set(st,ot,at._f)}return{criteriaMode:rt,names:[...tt],fields:st,shouldUseNativeValidation:nt}},getRuleValue=tt=>isUndefined(tt)?tt:isRegex(tt)?tt.source:isObject(tt)?isRegex(tt.value)?tt.value.source:tt.value:tt;const ASYNC_FUNCTION="AsyncFunction";var hasPromiseValidation=tt=>!!tt&&!!tt.validate&&!!(isFunction(tt.validate)&&tt.validate.constructor.name===ASYNC_FUNCTION||isObject(tt.validate)&&Object.values(tt.validate).find(et=>et.constructor.name===ASYNC_FUNCTION)),hasValidation=tt=>tt.mount&&(tt.required||tt.min||tt.max||tt.maxLength||tt.minLength||tt.pattern||tt.validate);function schemaErrorLookup(tt,et,rt){const nt=get$1(tt,rt);if(nt||isKey(rt))return{error:nt,name:rt};const st=rt.split(".");for(;st.length;){const ot=st.join("."),at=get$1(et,ot),lt=get$1(tt,ot);if(at&&!Array.isArray(at)&&rt!==ot)return{name:rt};if(lt&<.type)return{name:ot,error:lt};st.pop()}return{name:rt}}var skipValidation=(tt,et,rt,nt,st)=>st.isOnAll?!1:!rt&&st.isOnTouch?!(et||tt):(rt?nt.isOnBlur:st.isOnBlur)?!tt:(rt?nt.isOnChange:st.isOnChange)?tt:!0,unsetEmptyArray=(tt,et)=>!compact$1(get$1(tt,et)).length&&unset(tt,et);const defaultOptions={mode:VALIDATION_MODE.onSubmit,reValidateMode:VALIDATION_MODE.onChange,shouldFocusError:!0};function createFormControl(tt={}){let et={...defaultOptions,...tt},rt={submitCount:0,isDirty:!1,isLoading:isFunction(et.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:et.errors||{},disabled:et.disabled||!1},nt={},st=isObject(et.defaultValues)||isObject(et.values)?cloneObject(et.defaultValues||et.values)||{}:{},ot=et.shouldUnregister?{}:cloneObject(st),at={action:!1,mount:!1,watch:!1},lt={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},ut,ct=0;const dt={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},ht={values:createSubject(),array:createSubject(),state:createSubject()},ft=getValidationModes(et.mode),xt=getValidationModes(et.reValidateMode),yt=et.criteriaMode===VALIDATION_MODE.all,vt=qt=>er=>{clearTimeout(ct),ct=setTimeout(qt,er)},Et=async qt=>{if(!et.disabled&&(dt.isValid||qt)){const er=et.resolver?isEmptyObject((await jt()).errors):await Vt(nt,!0);er!==rt.isValid&&ht.state.next({isValid:er})}},bt=(qt,er)=>{!et.disabled&&(dt.isValidating||dt.validatingFields)&&((qt||Array.from(lt.mount)).forEach(nr=>{nr&&(er?set(rt.validatingFields,nr,er):unset(rt.validatingFields,nr))}),ht.state.next({validatingFields:rt.validatingFields,isValidating:!isEmptyObject(rt.validatingFields)}))},St=(qt,er=[],nr,yr,xr=!0,dr=!0)=>{if(yr&&nr&&!et.disabled){if(at.action=!0,dr&&Array.isArray(get$1(nt,qt))){const _r=nr(get$1(nt,qt),yr.argA,yr.argB);xr&&set(nt,qt,_r)}if(dr&&Array.isArray(get$1(rt.errors,qt))){const _r=nr(get$1(rt.errors,qt),yr.argA,yr.argB);xr&&set(rt.errors,qt,_r),unsetEmptyArray(rt.errors,qt)}if(dt.touchedFields&&dr&&Array.isArray(get$1(rt.touchedFields,qt))){const _r=nr(get$1(rt.touchedFields,qt),yr.argA,yr.argB);xr&&set(rt.touchedFields,qt,_r)}dt.dirtyFields&&(rt.dirtyFields=getDirtyFields(st,ot)),ht.state.next({name:qt,isDirty:Ht(qt,er),dirtyFields:rt.dirtyFields,errors:rt.errors,isValid:rt.isValid})}else set(ot,qt,er)},wt=(qt,er)=>{set(rt.errors,qt,er),ht.state.next({errors:rt.errors})},Rt=qt=>{rt.errors=qt,ht.state.next({errors:rt.errors,isValid:!1})},Ct=(qt,er,nr,yr)=>{const xr=get$1(nt,qt);if(xr){const dr=get$1(ot,qt,isUndefined(nr)?get$1(st,qt):nr);isUndefined(dr)||yr&&yr.defaultChecked||er?set(ot,qt,er?dr:getFieldValue(xr._f)):Mt(qt,dr),at.mount&&Et()}},Pt=(qt,er,nr,yr,xr)=>{let dr=!1,_r=!1;const Fr={name:qt};if(!et.disabled){const jr=!!(get$1(nt,qt)&&get$1(nt,qt)._f&&get$1(nt,qt)._f.disabled);if(!nr||yr){dt.isDirty&&(_r=rt.isDirty,rt.isDirty=Fr.isDirty=Ht(),dr=_r!==Fr.isDirty);const Ir=jr||deepEqual(get$1(st,qt),er);_r=!!(!jr&&get$1(rt.dirtyFields,qt)),Ir||jr?unset(rt.dirtyFields,qt):set(rt.dirtyFields,qt,!0),Fr.dirtyFields=rt.dirtyFields,dr=dr||dt.dirtyFields&&_r!==!Ir}if(nr){const Ir=get$1(rt.touchedFields,qt);Ir||(set(rt.touchedFields,qt,nr),Fr.touchedFields=rt.touchedFields,dr=dr||dt.touchedFields&&Ir!==nr)}dr&&xr&&ht.state.next(Fr)}return dr?Fr:{}},It=(qt,er,nr,yr)=>{const xr=get$1(rt.errors,qt),dr=dt.isValid&&isBoolean$1(er)&&rt.isValid!==er;if(et.delayError&&nr?(ut=vt(()=>wt(qt,nr)),ut(et.delayError)):(clearTimeout(ct),ut=null,nr?set(rt.errors,qt,nr):unset(rt.errors,qt)),(nr?!deepEqual(xr,nr):xr)||!isEmptyObject(yr)||dr){const _r={...yr,...dr&&isBoolean$1(er)?{isValid:er}:{},errors:rt.errors,name:qt};rt={...rt,..._r},ht.state.next(_r)}},jt=async qt=>{bt(qt,!0);const er=await et.resolver(ot,et.context,getResolverOptions(qt||lt.mount,nt,et.criteriaMode,et.shouldUseNativeValidation));return bt(qt),er},Dt=async qt=>{const{errors:er}=await jt(qt);if(qt)for(const nr of qt){const yr=get$1(er,nr);yr?set(rt.errors,nr,yr):unset(rt.errors,nr)}else rt.errors=er;return er},Vt=async(qt,er,nr={valid:!0})=>{for(const yr in qt){const xr=qt[yr];if(xr){const{_f:dr,..._r}=xr;if(dr){const Fr=lt.array.has(dr.name),jr=xr._f&&hasPromiseValidation(xr._f);jr&&dt.validatingFields&&bt([yr],!0);const Ir=await validateField(xr,lt.disabled,ot,yt,et.shouldUseNativeValidation&&!er,Fr);if(jr&&dt.validatingFields&&bt([yr]),Ir[dr.name]&&(nr.valid=!1,er))break;!er&&(get$1(Ir,dr.name)?Fr?updateFieldArrayRootError(rt.errors,Ir,dr.name):set(rt.errors,dr.name,Ir[dr.name]):unset(rt.errors,dr.name))}!isEmptyObject(_r)&&await Vt(_r,er,nr)}}return nr.valid},Ft=()=>{for(const qt of lt.unMount){const er=get$1(nt,qt);er&&(er._f.refs?er._f.refs.every(nr=>!live(nr)):!live(er._f.ref))&&ur(qt)}lt.unMount=new Set},Ht=(qt,er)=>!et.disabled&&(qt&&er&&set(ot,qt,er),!deepEqual(Yt(),st)),Nt=(qt,er,nr)=>generateWatchOutput(qt,lt,{...at.mount?ot:isUndefined(er)?st:isString$1(qt)?{[qt]:er}:er},nr,er),Lt=qt=>compact$1(get$1(at.mount?ot:st,qt,et.shouldUnregister?get$1(st,qt,[]):[])),Mt=(qt,er,nr={})=>{const yr=get$1(nt,qt);let xr=er;if(yr){const dr=yr._f;dr&&(!dr.disabled&&set(ot,qt,getFieldValueAs(er,dr)),xr=isHTMLElement(dr.ref)&&isNullOrUndefined(er)?"":er,isMultipleSelect(dr.ref)?[...dr.ref.options].forEach(_r=>_r.selected=xr.includes(_r.value)):dr.refs?isCheckBoxInput(dr.ref)?dr.refs.length>1?dr.refs.forEach(_r=>(!_r.defaultChecked||!_r.disabled)&&(_r.checked=Array.isArray(xr)?!!xr.find(Fr=>Fr===_r.value):xr===_r.value)):dr.refs[0]&&(dr.refs[0].checked=!!xr):dr.refs.forEach(_r=>_r.checked=_r.value===xr):isFileInput(dr.ref)?dr.ref.value="":(dr.ref.value=xr,dr.ref.type||ht.values.next({name:qt,values:{...ot}})))}(nr.shouldDirty||nr.shouldTouch)&&Pt(qt,xr,nr.shouldTouch,nr.shouldDirty,!0),nr.shouldValidate&&Bt(qt)},zt=(qt,er,nr)=>{for(const yr in er){const xr=er[yr],dr=`${qt}.${yr}`,_r=get$1(nt,dr);(lt.array.has(qt)||isObject(xr)||_r&&!_r._f)&&!isDateObject(xr)?zt(dr,xr,nr):Mt(dr,xr,nr)}},Gt=(qt,er,nr={})=>{const yr=get$1(nt,qt),xr=lt.array.has(qt),dr=cloneObject(er);set(ot,qt,dr),xr?(ht.array.next({name:qt,values:{...ot}}),(dt.isDirty||dt.dirtyFields)&&nr.shouldDirty&&ht.state.next({name:qt,dirtyFields:getDirtyFields(st,ot),isDirty:Ht(qt,dr)})):yr&&!yr._f&&!isNullOrUndefined(dr)?zt(qt,dr,nr):Mt(qt,dr,nr),isWatched(qt,lt)&&ht.state.next({...rt}),ht.values.next({name:at.mount?qt:void 0,values:{...ot}})},Ot=async qt=>{at.mount=!0;const er=qt.target;let nr=er.name,yr=!0;const xr=get$1(nt,nr),dr=()=>er.type?getFieldValue(xr._f):getEventValue(qt),_r=Fr=>{yr=Number.isNaN(Fr)||isDateObject(Fr)&&isNaN(Fr.getTime())||deepEqual(Fr,get$1(ot,nr,Fr))};if(xr){let Fr,jr;const Ir=dr(),Pr=qt.type===EVENTS.BLUR||qt.type===EVENTS.FOCUS_OUT,Vr=!hasValidation(xr._f)&&!et.resolver&&!get$1(rt.errors,nr)&&!xr._f.deps||skipValidation(Pr,get$1(rt.touchedFields,nr),rt.isSubmitted,xt,ft),Xn=isWatched(nr,lt,Pr);set(ot,nr,Ir),Pr?(xr._f.onBlur&&xr._f.onBlur(qt),ut&&ut(0)):xr._f.onChange&&xr._f.onChange(qt);const An=Pt(nr,Ir,Pr,!1),Hr=!isEmptyObject(An)||Xn;if(!Pr&&ht.values.next({name:nr,type:qt.type,values:{...ot}}),Vr)return dt.isValid&&(et.mode==="onBlur"&&Pr?Et():Pr||Et()),Hr&&ht.state.next({name:nr,...Xn?{}:An});if(!Pr&&Xn&&ht.state.next({...rt}),et.resolver){const{errors:Lr}=await jt([nr]);if(_r(Ir),yr){const os=schemaErrorLookup(rt.errors,nt,nr),Ms=schemaErrorLookup(Lr,nt,os.name||nr);Fr=Ms.error,nr=Ms.name,jr=isEmptyObject(Lr)}}else bt([nr],!0),Fr=(await validateField(xr,lt.disabled,ot,yt,et.shouldUseNativeValidation))[nr],bt([nr]),_r(Ir),yr&&(Fr?jr=!1:dt.isValid&&(jr=await Vt(nt,!0)));yr&&(xr._f.deps&&Bt(xr._f.deps),It(nr,jr,Fr,An))}},Ut=(qt,er)=>{if(get$1(rt.errors,er)&&qt.focus)return qt.focus(),1},Bt=async(qt,er={})=>{let nr,yr;const xr=convertToArrayPayload(qt);if(et.resolver){const dr=await Dt(isUndefined(qt)?qt:xr);nr=isEmptyObject(dr),yr=qt?!xr.some(_r=>get$1(dr,_r)):nr}else qt?(yr=(await Promise.all(xr.map(async dr=>{const _r=get$1(nt,dr);return await Vt(_r&&_r._f?{[dr]:_r}:_r)}))).every(Boolean),!(!yr&&!rt.isValid)&&Et()):yr=nr=await Vt(nt);return ht.state.next({...!isString$1(qt)||dt.isValid&&nr!==rt.isValid?{}:{name:qt},...et.resolver||!qt?{isValid:nr}:{},errors:rt.errors}),er.shouldFocus&&!yr&&iterateFieldsByAction(nt,Ut,qt?xr:lt.mount),yr},Yt=qt=>{const er={...at.mount?ot:st};return isUndefined(qt)?er:isString$1(qt)?get$1(er,qt):qt.map(nr=>get$1(er,nr))},Zt=(qt,er)=>({invalid:!!get$1((er||rt).errors,qt),isDirty:!!get$1((er||rt).dirtyFields,qt),error:get$1((er||rt).errors,qt),isValidating:!!get$1(rt.validatingFields,qt),isTouched:!!get$1((er||rt).touchedFields,qt)}),Xt=qt=>{qt&&convertToArrayPayload(qt).forEach(er=>unset(rt.errors,er)),ht.state.next({errors:qt?rt.errors:{}})},rr=(qt,er,nr)=>{const yr=(get$1(nt,qt,{_f:{}})._f||{}).ref,xr=get$1(rt.errors,qt)||{},{ref:dr,message:_r,type:Fr,...jr}=xr;set(rt.errors,qt,{...jr,...er,ref:yr}),ht.state.next({name:qt,errors:rt.errors,isValid:!1}),nr&&nr.shouldFocus&&yr&&yr.focus&&yr.focus()},cr=(qt,er)=>isFunction(qt)?ht.values.subscribe({next:nr=>qt(Nt(void 0,er),nr)}):Nt(qt,er,!0),ur=(qt,er={})=>{for(const nr of qt?convertToArrayPayload(qt):lt.mount)lt.mount.delete(nr),lt.array.delete(nr),er.keepValue||(unset(nt,nr),unset(ot,nr)),!er.keepError&&unset(rt.errors,nr),!er.keepDirty&&unset(rt.dirtyFields,nr),!er.keepTouched&&unset(rt.touchedFields,nr),!er.keepIsValidating&&unset(rt.validatingFields,nr),!et.shouldUnregister&&!er.keepDefaultValue&&unset(st,nr);ht.values.next({values:{...ot}}),ht.state.next({...rt,...er.keepDirty?{isDirty:Ht()}:{}}),!er.keepIsValid&&Et()},mr=({disabled:qt,name:er,field:nr,fields:yr})=>{(isBoolean$1(qt)&&at.mount||qt||lt.disabled.has(er))&&(qt?lt.disabled.add(er):lt.disabled.delete(er),Pt(er,getFieldValue(nr?nr._f:get$1(yr,er)._f),!1,!1,!0))},vr=(qt,er={})=>{let nr=get$1(nt,qt);const yr=isBoolean$1(er.disabled)||isBoolean$1(et.disabled);return set(nt,qt,{...nr||{},_f:{...nr&&nr._f?nr._f:{ref:{name:qt}},name:qt,mount:!0,...er}}),lt.mount.add(qt),nr?mr({field:nr,disabled:isBoolean$1(er.disabled)?er.disabled:et.disabled,name:qt}):Ct(qt,!0,er.value),{...yr?{disabled:er.disabled||et.disabled}:{},...et.progressive?{required:!!er.required,min:getRuleValue(er.min),max:getRuleValue(er.max),minLength:getRuleValue(er.minLength),maxLength:getRuleValue(er.maxLength),pattern:getRuleValue(er.pattern)}:{},name:qt,onChange:Ot,onBlur:Ot,ref:xr=>{if(xr){vr(qt,er),nr=get$1(nt,qt);const dr=isUndefined(xr.value)&&xr.querySelectorAll&&xr.querySelectorAll("input,select,textarea")[0]||xr,_r=isRadioOrCheckbox(dr),Fr=nr._f.refs||[];if(_r?Fr.find(jr=>jr===dr):dr===nr._f.ref)return;set(nt,qt,{_f:{...nr._f,..._r?{refs:[...Fr.filter(live),dr,...Array.isArray(get$1(st,qt))?[{}]:[]],ref:{type:dr.type,name:qt}}:{ref:dr}}}),Ct(qt,!1,void 0,dr)}else nr=get$1(nt,qt,{}),nr._f&&(nr._f.mount=!1),(et.shouldUnregister||er.shouldUnregister)&&!(isNameInFieldArray(lt.array,qt)&&at.action)&<.unMount.add(qt)}}},Er=()=>et.shouldFocusError&&iterateFieldsByAction(nt,Ut,lt.mount),br=qt=>{isBoolean$1(qt)&&(ht.state.next({disabled:qt}),iterateFieldsByAction(nt,(er,nr)=>{const yr=get$1(nt,nr);yr&&(er.disabled=yr._f.disabled||qt,Array.isArray(yr._f.refs)&&yr._f.refs.forEach(xr=>{xr.disabled=yr._f.disabled||qt}))},0,!1))},hr=(qt,er)=>async nr=>{let yr;nr&&(nr.preventDefault&&nr.preventDefault(),nr.persist&&nr.persist());let xr=cloneObject(ot);if(lt.disabled.size)for(const dr of lt.disabled)set(xr,dr,void 0);if(ht.state.next({isSubmitting:!0}),et.resolver){const{errors:dr,values:_r}=await jt();rt.errors=dr,xr=_r}else await Vt(nt);if(unset(rt.errors,"root"),isEmptyObject(rt.errors)){ht.state.next({errors:{}});try{await qt(xr,nr)}catch(dr){yr=dr}}else er&&await er({...rt.errors},nr),Er(),setTimeout(Er);if(ht.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject(rt.errors)&&!yr,submitCount:rt.submitCount+1,errors:rt.errors}),yr)throw yr},Ar=(qt,er={})=>{get$1(nt,qt)&&(isUndefined(er.defaultValue)?Gt(qt,cloneObject(get$1(st,qt))):(Gt(qt,er.defaultValue),set(st,qt,cloneObject(er.defaultValue))),er.keepTouched||unset(rt.touchedFields,qt),er.keepDirty||(unset(rt.dirtyFields,qt),rt.isDirty=er.defaultValue?Ht(qt,cloneObject(get$1(st,qt))):Ht()),er.keepError||(unset(rt.errors,qt),dt.isValid&&Et()),ht.state.next({...rt}))},Cr=(qt,er={})=>{const nr=qt?cloneObject(qt):st,yr=cloneObject(nr),xr=isEmptyObject(qt),dr=xr?st:yr;if(er.keepDefaultValues||(st=nr),!er.keepValues){if(er.keepDirtyValues){const _r=new Set([...lt.mount,...Object.keys(getDirtyFields(st,ot))]);for(const Fr of Array.from(_r))get$1(rt.dirtyFields,Fr)?set(dr,Fr,get$1(ot,Fr)):Gt(Fr,get$1(dr,Fr))}else{if(isWeb&&isUndefined(qt))for(const _r of lt.mount){const Fr=get$1(nt,_r);if(Fr&&Fr._f){const jr=Array.isArray(Fr._f.refs)?Fr._f.refs[0]:Fr._f.ref;if(isHTMLElement(jr)){const Ir=jr.closest("form");if(Ir){Ir.reset();break}}}}nt={}}ot=et.shouldUnregister?er.keepDefaultValues?cloneObject(st):{}:cloneObject(dr),ht.array.next({values:{...dr}}),ht.values.next({values:{...dr}})}lt={mount:er.keepDirtyValues?lt.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},at.mount=!dt.isValid||!!er.keepIsValid||!!er.keepDirtyValues,at.watch=!!et.shouldUnregister,ht.state.next({submitCount:er.keepSubmitCount?rt.submitCount:0,isDirty:xr?!1:er.keepDirty?rt.isDirty:!!(er.keepDefaultValues&&!deepEqual(qt,st)),isSubmitted:er.keepIsSubmitted?rt.isSubmitted:!1,dirtyFields:xr?{}:er.keepDirtyValues?er.keepDefaultValues&&ot?getDirtyFields(st,ot):rt.dirtyFields:er.keepDefaultValues&&qt?getDirtyFields(st,qt):er.keepDirty?rt.dirtyFields:{},touchedFields:er.keepTouched?rt.touchedFields:{},errors:er.keepErrors?rt.errors:{},isSubmitSuccessful:er.keepIsSubmitSuccessful?rt.isSubmitSuccessful:!1,isSubmitting:!1})},Ur=(qt,er)=>Cr(isFunction(qt)?qt(ot):qt,er);return{control:{register:vr,unregister:ur,getFieldState:Zt,handleSubmit:hr,setError:rr,_executeSchema:jt,_getWatch:Nt,_getDirty:Ht,_updateValid:Et,_removeUnmounted:Ft,_updateFieldArray:St,_updateDisabledField:mr,_getFieldArray:Lt,_reset:Cr,_resetDefaultValues:()=>isFunction(et.defaultValues)&&et.defaultValues().then(qt=>{Ur(qt,et.resetOptions),ht.state.next({isLoading:!1})}),_updateFormState:qt=>{rt={...rt,...qt}},_disableForm:br,_subjects:ht,_proxyFormState:dt,_setErrors:Rt,get _fields(){return nt},get _formValues(){return ot},get _state(){return at},set _state(qt){at=qt},get _defaultValues(){return st},get _names(){return lt},set _names(qt){lt=qt},get _formState(){return rt},set _formState(qt){rt=qt},get _options(){return et},set _options(qt){et={...et,...qt}}},trigger:Bt,register:vr,handleSubmit:hr,watch:cr,setValue:Gt,getValues:Yt,reset:Ur,resetField:Ar,clearErrors:Xt,unregister:ur,setError:rr,setFocus:(qt,er={})=>{const nr=get$1(nt,qt),yr=nr&&nr._f;if(yr){const xr=yr.refs?yr.refs[0]:yr.ref;xr.focus&&(xr.focus(),er.shouldSelect&&isFunction(xr.select)&&xr.select())}},getFieldState:Zt}}function useForm(tt={}){const et=React$4.useRef(void 0),rt=React$4.useRef(void 0),[nt,st]=React$4.useState({isDirty:!1,isValidating:!1,isLoading:isFunction(tt.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:tt.errors||{},disabled:tt.disabled||!1,defaultValues:isFunction(tt.defaultValues)?void 0:tt.defaultValues});et.current||(et.current={...createFormControl(tt),formState:nt});const ot=et.current.control;return ot._options=tt,useSubscribe({subject:ot._subjects.state,next:at=>{shouldRenderFormState(at,ot._proxyFormState,ot._updateFormState,!0)&&st({...ot._formState})}}),React$4.useEffect(()=>ot._disableForm(tt.disabled),[ot,tt.disabled]),React$4.useEffect(()=>{if(ot._proxyFormState.isDirty){const at=ot._getDirty();at!==nt.isDirty&&ot._subjects.state.next({isDirty:at})}},[ot,nt.isDirty]),React$4.useEffect(()=>{tt.values&&!deepEqual(tt.values,rt.current)?(ot._reset(tt.values,ot._options.resetOptions),rt.current=tt.values,st(at=>({...at}))):ot._resetDefaultValues()},[tt.values,ot]),React$4.useEffect(()=>{tt.errors&&ot._setErrors(tt.errors)},[tt.errors,ot]),React$4.useEffect(()=>{ot._state.mount||(ot._updateValid(),ot._state.mount=!0),ot._state.watch&&(ot._state.watch=!1,ot._subjects.state.next({...ot._formState})),ot._removeUnmounted()}),React$4.useEffect(()=>{tt.shouldUnregister&&ot._subjects.values.next({values:ot._getWatch()})},[tt.shouldUnregister,ot]),et.current.formState=getProxyFormState(nt,ot),et.current}const useActivitiesOptions=()=>{const{t:tt}=useTranslation();return[{value:"bpr.activityType.classroomActivity",label:tt("bpr.activityType.classroomActivity")},{value:"bpr.activityType.groupActivity",label:tt("bpr.activityType.groupActivity")},{value:"bpr.activityType.personalActivity",label:tt("bpr.activityType.personalActivity")},{value:"bpr.activityType.homework",label:tt("bpr.activityType.homework")},{value:"bpr.activityType.exercize",label:tt("bpr.activityType.exercize")},{value:"bpr.activityType.learningPath",label:tt("bpr.activityType.learningPath")},{value:"bpr.activityType.courseElement",label:tt("bpr.activityType.courseElement")},{value:"bpr.other",label:tt("bpr.other")}]},ActivitiesDropdown=({control:tt,selectedActivities:et,selectActivities:rt})=>{const nt=useActivitiesOptions(),{t:st}=useTranslation();return jsxRuntimeExports.jsx("div",{className:"col d-flex",children:jsxRuntimeExports.jsx(Controller,{name:"activityType",control:tt,rules:{required:!0},render:({field:{onChange:ot}})=>jsxRuntimeExports.jsxs(Dropdown,{block:!0,overflow:!0,children:[jsxRuntimeExports.jsx(Dropdown.Trigger,{size:"md",label:st("bpr.form.publication.type"),badgeContent:et==null?void 0:et.length}),jsxRuntimeExports.jsx(Dropdown.Menu,{children:nt.map((at,lt)=>jsxRuntimeExports.jsx(Dropdown.CheckboxItem,{value:at.value,model:et,onChange:()=>{rt(at.value),ot(at.value)},children:at.label},lt))})]})})})},ageOptions=["3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"],AgeSelect=({name:tt,control:et,placeholderOption:rt,validate:nt})=>jsxRuntimeExports.jsx(Controller,{name:tt,control:et,rules:{required:!0,validate:nt},render:({field:{onChange:st}})=>jsxRuntimeExports.jsx(Select,{block:!0,size:"md",onValueChange:st,options:ageOptions,"aria-required":!0,placeholderOption:rt})}),useLanguageOptions=()=>{const{t:tt}=useTranslation();return[{value:"de_DE",label:tt("de_DE")},{value:"en_EN",label:tt("en_EN")},{value:"ar_DZ",label:tt("ar_DZ")},{value:"es_ES",label:tt("es_ES")},{value:"fr_FR",label:tt("fr_FR")},{value:"it_IT",label:tt("it_IT")},{value:"ja_JP",label:tt("ja_JP")},{value:"zh_CN",label:tt("zh_CN")},{value:"pt_PT",label:tt("pt_PT")},{value:"ru_RU",label:tt("ru_RU")},{value:"bpr.other",label:tt("bpr.other")}]},defaultSelectLanguageOption="bpr.form.publication.language",LangSelect=({control:tt})=>{const et=useLanguageOptions();return jsxRuntimeExports.jsx("div",{className:"col",children:jsxRuntimeExports.jsx(Controller,{name:"language",control:tt,rules:{required:!0},render:({field:{onChange:rt}})=>jsxRuntimeExports.jsx(Select,{block:!0,size:"md",onValueChange:rt,options:et,"aria-required":!0,placeholderOption:defaultSelectLanguageOption})})})},creativeCommons="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAAAYCAYAAACsnTAAAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAubSURBVHgB7Vh3UNVnFj2P/kAQURGNsa2GKKIOCjGzIEUhqElsY40m9lgiGksmWUfjTNZel8ggblSIxjUxujbEiiiwoiiixoqVJtKkCQg82O9c9r0AeaiTP3ZmZ3NnmAHed9/v+84999zz/TRvvvnmlo6dO04xMTExw/95VLyoyEm6lDRW4+XjpZszP8gE/4XQ6XQoeFYAXbVO/m7atCksLS1fK7eqqgqFhYXyHaYmprCzs4O5hflr5VZUVKCosAjVNdUw0ZjArqkdLCwsjO7voxHjtpsphpigpgbQaIwuys3JxS/J13H9+i/qQM/k/81bNEdXl27o5dZLftcYya0bZWVluJ58DSeOnUBxYTHMzMxlg9bWWri/4wHfAb6wtLJsNPda8lVEHY5C6fMymJubyyFtmlgjcHAg3Pr0hoWlhdHc8vJynI8/j7iYWJSXlssZK6sqpBg+/X3k2XVzeY7q6moTMw00RgEpLi7GrohduBCfoDZTClNTU3To0EEqdvvmbcSqB9k3s4enjxfGfDTGKPKyMXWoiL+Hq4Ndw7Rp0zBgwAA0a9YMz58/R0JCAtavX4/LiZcQtGAubO1s6+WWqD2EBociMz0T8+bNg4eHhzCkqKgIZ8+exYYNGxB7NhYzg2ahSZMm9XLJqg2r1uNZ3jMsWrQI7u7usLW1RUFBAY4fP46wsDBcTbqK6Z99qopkZgCFYVJj5CCpjx5j9TerEBt9Dp5/9sShQ4cEpHv37uHRo0dyoH379sG1uyuO/PMwVny9XOhpLMK/i0Budi4OHjyIFStWoHPnzti6dStatmyJhQsXIjExEVYWVli/cp0CsNyQR4YQEF2lDjExMbK2X79+yMrKgpubG5YsWSK5leWVCAvZgsrKSkMuW/Tb9cFwsHfAjRs3MH/+fHh6eqJHjx7w8fHBypUrER0djccPH2NrSJgwr26YoAFJnpeUIGRTCDLSMrBlyxYcOHAAH3zwAbRarWGNlZUVhg8fjmPHjmHVqlXIzMjExjUbUKiqUDcSExJx6UIiQkJC8O6778r/0tPTcebMGQGY0bZtW+zatQu6Kp2wTx8xp84oBl3G4sWL0aZNG2nlU6dOYe7cuYiKikJOTo4AvGPHDuRk5SL+XLwhN/5cHFAN7N69W1jJ9X379kWnTp0EWD7f1dUVP/74I5IvJyPlTkoDUOpQpUZpS/h34cjLzcOaNWswefLkemA0DGtra3z++eey8ZS7KTh+9IThM7bZ8aPHMHToUKkSqUnqEgACQebcvn1b1vJwZALXcw9lpWWiBS1atMCcOXMwduxYqfaHH34oB1u+fDlu3rwpub169cJH48bhRNQJ6oGwLfpktKxv166dMGXKlCmyV7bvixcvMGbMGFy+fFlaaurUqTgeeaw+KHWJ8uDefanW4MGDBZBXCSiDWsKNe/fzxsF9B5CV+UT+Tx3KSM/AyJEjDWtJ/dDQUJw+fRo7d+6UVtQHaZ39NBs52Tl4pgSdwOzdu1d6v0Sxd/PmzTKpRo8eLXri5eVlyCVYZHhxUTGys7NhrbWWAzOCg4ORl5cne2Txtm3bJsCQYQxvb29kPckSDTKAoicKUT594rSIDpPZIlTvPXv2yN/ff/+9bI4MOHr0KJYuXSobZTtws+xxUjzubJzh+9gSZMHrBIXS3t5etKFCbZoMZtu8//77AiL1IzAwUJhJdvCwmZmZkss9c0xT96h3LCaZwfj4448xadIkAZ1B9pH9+oI4OjrKEFEe5VdQZByrHwLwWAkse00/ZUi76dOnq3F83QDCunXrMGHCBCQnJ4vmfPXVVyKKzs7OUEYQ9xXbKitqRc/UzBSpqamGh3EU8mCMrl27omPHjobPSktLZaqQeZaqIHQKBXU0qmfPnti4caOA4+DgIBOFgsu2416ojQRWq7WSFtQLL5/JXD3rWVjut1WrVvJ3fn6+nJXAMk9A1j9Ub6ycuzgLchQyiiwrRUF68OCBbMbFxUUqRWqnpaX9ZyNaUXAnJycUFBUoL1Ap8/+Ntm+IdgQEBMgzWrduLfSnQJO2BFIfnAZkJ30P6W1hZSEA9OnTR1jH0c2Jx5wnT57gk08+EfHmWOY0c3RyrDVl6rlFJUUy7rt06SJF+eKLL3D37l0MGzYMmzZtkvONUzrEOHfuHJo5NENT+6a/MkUQpGlRoFTrqgUx/vCQ/CGFGRQ40pvVJAXZMmwNAsGgqeKhXpTXUp/09fb1xk8//YRbt27hZZGRkSHa4R/oLwwhyN5+PiL2rCT/R7FlG3A8L1u2TD4jkwk6/Yd/YICs43M9+npg7dq1yM3Nhb+/P4KCgoTVLAQnD/PZTpyA1Dg/fz/J/Y1PMVOHamLXRASHleIoI8VPnjwpFZoxY4agTLQpdJwirMDMmTOFjmw/boKGjgAxvHz7oVOXP8nmySoGgSXT9GDy0F9++SUKiwoRMOg9A1Ce/TyhtdFiyJAhAhpbk3uYNWuWVJmspZ4RKIcWDnBzdzPkDhk+FCXPSzB79mwpIqcV2cXicB8U3ZSUFAGa+3Nz712vSKYdOrRf5tHXXZC6oaw8NYGL2XO9e/fG+fPnBRj9SKMjvXPnjrTW06dPpQqk6cOHD7F69Wq49OiOPu/0MTzgbZe3kaTGX/DfggUssovA8pAUUOpTxpMMzJgzE46tHA15ZuZm6K02Gxsbh3/8sBu1t5EamSo8IKcXXW6VrgrTZk8XM6gPtpBzN2ccPRKFiPAIKQTZb2NjI0By8rCgNrY2mDl3lkGU+f0/7/k5WaMoXjN73mxpIRqm0G9D5XAUMgYZwBHZvHlzg5WnMLHC+gsdRY3rORG+/uvX6ObqUg95jueLCRcReShSOdQqsfNyQVNa4ePvi/4B/cW+GwtWOl5NtDNqb3yOnW2tzTc1N4Vvfz+hvtbauJfKz8tHgvI79DCcTgSF4k0GvjcoEJ7envWuJ9zPmKGjwzU+fj41swgKasV28aK/ID83H3FxcSKqrxN0mqx4y1YtseSbpY2u4/dnqSpXVlDtTeHUprXh3vGqoL7Rx1QpUCmUTm2cDG36ylw1bulfmMubtVNrJ/mOhkGmjB4yKtyMc/3h/YcyPrl44tRJWLtyjThRili3bt1e+sCkpCQxejzw+InjhVlPs54K6i+LSsW2tNQ0/J5gy6SnpeP3BMFNfZxq9DP9SNYotGuInij8+LEYoCbA2egY7I7YLa1BpR40aJBYc65hEAAKFo0dL1ca5Ys//WyGaECEuibEqPz/1VCtHs4ZZLj90HMELZyLHr16qNcDt7AtbBuys7JlHFNM9eOZs//atWti29u1b4dJn07GW85vCRhbN4cJaHWDk4KiTcrSL1A/KMwcge3btxdz2BizWAyOeq7nd9CocXoxj1OQbdFYMM/X11d+56WQRfXz8xNv0vBmXCfC2VjL9H9xYXJSsjhN156uIkQEghtKOJ+Aixcv4tKlS8IS567OGDZyGMZPmiDKH6WUfteOnfWu8Pqg4aKv4NQis2gM2XLcICl75cqVxjYot3Hesukv6GiZS/2ipeeo379/f6O5vOzxMspJR0Dorw4fPixg1nXaDSL5NyrHS9W6lWsxcuwoBAwMEK/BHwZf+vCtmZWy0vooLChE5MEjOKJ+OJUaC7Zi9+7dBVD6HmoW/dD27dvxquA9hXceBl0sc+Lj42Usvyyod3ztwQshR/GCBQvEAY8aNUry9RrSMIxKPzf7g3rrFn3ytALEC93VfYg2mKNPpz7ja8kc9ZoyUY3ZhH9dMLymfFmw1SIjI2s1SLUNPcqz18hjcLrxBRFtAa8brD4vcjzwxIkTG83j3YgFYAuSNWw7ehbm8sqhv1A2jHqa0liwyvQWWnUl11VXoUy9K6VXaKgdjQU1ZeDAgQZ/QzPIDdIz1H19YCzILgafxxdFvKGPGDFCWoKu+mX5fJ/C1wrUFl4POP55J2Lb0t3SBBoJJbQaTanikRZ/hITSntB/Awop/YGn+Be4AAAAAElFTkSuQmCC",PublishModalFooter=()=>{const{t:tt}=useTranslation();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("ul",{className:"mb-12",children:[jsxRuntimeExports.jsxs("li",{children:[tt("bpr.form.publication.licence.text.1"),jsxRuntimeExports.jsx("img",{className:"ms-8 d-inline-block",src:creativeCommons,alt:"licence creative commons"})]}),jsxRuntimeExports.jsx("li",{children:tt("bpr.form.publication.licence.text.2")})]}),jsxRuntimeExports.jsx(Alert,{type:"info",className:"mb-12",children:tt("bpr.form.publication.licence.text.3")}),jsxRuntimeExports.jsx(Alert,{type:"warning",children:tt("bpr.form.publication.licence.text.4")})]})},useSubjectsOptions=()=>{const{t:tt}=useTranslation();return[{value:"bpr.subjectArea.artActivity",label:tt("bpr.subjectArea.artActivity")},{value:"bpr.subjectArea.readLearning",label:tt("bpr.subjectArea.readLearning")},{value:"bpr.subjectArea.chemistry",label:tt("bpr.subjectArea.chemistry")},{value:"bpr.subjectArea.law",label:tt("bpr.subjectArea.law")},{value:"bpr.subjectArea.worldDiscovery",label:tt("bpr.subjectArea.worldDiscovery")},{value:"bpr.subjectArea.economy",label:tt("bpr.subjectArea.economy")},{value:"bpr.subjectArea.mediaEducation",label:tt("bpr.subjectArea.mediaEducation")},{value:"bpr.subjectArea.musicEducation",label:tt("bpr.subjectArea.musicEducation")},{value:"bpr.subjectArea.sportEducation",label:tt("bpr.subjectArea.sportEducation")},{value:"bpr.subjectArea.citizenshipEducation",label:tt("bpr.subjectArea.citizenshipEducation")},{value:"bpr.subjectArea.geography",label:tt("bpr.subjectArea.geography")},{value:"bpr.subjectArea.history",label:tt("bpr.subjectArea.history")},{value:"bpr.subjectArea.artHistory",label:tt("bpr.subjectArea.artHistory")},{value:"bpr.subjectArea.ComputerScience",label:tt("bpr.subjectArea.ComputerScience")},{value:"bpr.subjectArea.languages",label:tt("bpr.subjectArea.languages")},{value:"bpr.subjectArea.italian",label:tt("bpr.subjectArea.italian")},{value:"bpr.subjectArea.spanish",label:tt("bpr.subjectArea.spanish")},{value:"bpr.subjectArea.french",label:tt("bpr.subjectArea.french")},{value:"bpr.subjectArea.german",label:tt("bpr.subjectArea.german")},{value:"bpr.subjectArea.english",label:tt("bpr.subjectArea.english")},{value:"bpr.subjectArea.ancientLanguages",label:tt("bpr.subjectArea.ancientLanguages")},{value:"bpr.subjectArea.literature",label:tt("bpr.subjectArea.literature")},{value:"bpr.subjectArea.mathematics",label:tt("bpr.subjectArea.mathematics")},{value:"bpr.subjectArea.vocationalGuidance",label:tt("bpr.subjectArea.vocationalGuidance")},{value:"bpr.subjectArea.philosohppy",label:tt("bpr.subjectArea.philosohppy")},{value:"bpr.subjectArea.physics",label:tt("bpr.subjectArea.physics")},{value:"bpr.subjectArea.politicalSscience",label:tt("bpr.subjectArea.politicalSscience")},{value:"bpr.subjectArea.sociology",label:tt("bpr.subjectArea.sociology")},{value:"bpr.subjectArea.biology",label:tt("bpr.subjectArea.biology")},{value:"bpr.subjectArea.geology",label:tt("bpr.subjectArea.geology")},{value:"bpr.subjectArea.technology",label:tt("bpr.subjectArea.technology")},{value:"bpr.subjectArea.Arabic",label:tt("bpr.subjectArea.Arabic")},{value:"bpr.subjectArea.Chinese",label:tt("bpr.subjectArea.Chinese")},{value:"bpr.subjectArea.NaturalSciences",label:tt("bpr.subjectArea.NaturalSciences")},{value:"bpr.subjectArea.SocioEmotionalEducation",label:tt("bpr.subjectArea.SocioEmotionalEducation")},{value:"bpr.other",label:tt("bpr.other")}]},SubjectsDropdown=({control:tt,selectedSubjectAreas:et,selectSubjects:rt})=>{const nt=useSubjectsOptions(),{t:st}=useTranslation();return jsxRuntimeExports.jsx("div",{className:"col d-flex",children:jsxRuntimeExports.jsx(Controller,{name:"subjectArea",control:tt,rules:{required:!0},render:({field:{onChange:ot}})=>jsxRuntimeExports.jsxs(Dropdown,{block:!0,overflow:!0,children:[jsxRuntimeExports.jsx(Dropdown.Trigger,{size:"md",label:st("bpr.form.publication.discipline"),badgeContent:et==null?void 0:et.length}),jsxRuntimeExports.jsx(Dropdown.Menu,{children:nt.map((at,lt)=>jsxRuntimeExports.jsx(Dropdown.CheckboxItem,{value:at.value,model:et,onChange:()=>{rt(at.value),ot(at.value)},children:at.label},lt))})]})})})};function ToastError({formData:tt,errorMessage:et}){const{t:rt}=useTranslation(),nt=st=>st==null?void 0:st.match(/^\s/);return et==="CONTENT_TOO_LARGE"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h3",{className:"pt-24",children:rt("bpr.form.publication.response.error.title")}),jsxRuntimeExports.jsx("p",{className:"pt-24 pb-24",children:jsxRuntimeExports.jsx("strong",{children:rt("bpr.form.publication.response.error.content_too_large")})})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h3",{className:"pt-24",children:rt("bpr.form.publication.response.error.title")}),jsxRuntimeExports.jsx("p",{className:"pt-24 pb-24",children:jsxRuntimeExports.jsx("strong",{children:rt("bpr.form.publication.response.error.content")})}),jsxRuntimeExports.jsxs("ul",{children:[nt(tt==null?void 0:tt.title)&&jsxRuntimeExports.jsx("li",{className:"pt-2 pb-2",children:jsxRuntimeExports.jsx("strong",{children:rt("bpr.form.publication.response.empty.title")})}),nt(tt==null?void 0:tt.description)&&jsxRuntimeExports.jsx("li",{className:"pt-2 pb-2",children:jsxRuntimeExports.jsx("strong",{children:rt("bpr.form.publication.response.empty.description")})})]})]})}function ToastSuccess({result:tt}){const{t:et}=useTranslation();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h3",{className:"pt-24",children:et("bpr.form.publication.response.success.title")}),jsxRuntimeExports.jsx("p",{className:"pt-24",children:et("bpr.form.publication.response.success.content.1")}),jsxRuntimeExports.jsx("p",{className:"pt-24",children:et("bpr.form.publication.response.success.content.2")}),tt.details.front_url&&jsxRuntimeExports.jsx("p",{className:"pt-24 pb-24",children:jsxRuntimeExports.jsx("a",{className:"button right-magnet",href:tt.details.front_url,target:"_blank",rel:"noreferrer",children:et("bpr.form.publication.response.success.button")})})]})}function usePublishModal({onSuccess:tt,resource:et}){const{user:rt,appCode:nt}=useEdificeClient(),st=useToast(),[ot,at]=reactExports.useState((et==null?void 0:et.thumbnail)||"");reactExports.useEffect(()=>{at(et==null?void 0:et.thumbnail)},[et]);const{control:lt,register:ut,watch:ct,setValue:dt,handleSubmit:ht,formState:{errors:ft,isSubmitting:xt,isDirty:yt,isValid:vt}}=useForm({mode:"onChange"}),[Et,bt]=reactExports.useState([]),[St,wt]=reactExports.useState([]),Rt=(Ct,Pt,It)=>{let jt=[...Pt];const Dt=jt.findIndex(Vt=>Vt===Ct);Pt.includes(Ct)?jt=Pt.filter((Vt,Ft)=>Ft!==Dt):jt=[...Pt,Ct],It(jt)};return{control:lt,cover:ot,formState:{errors:ft,isSubmitting:xt,isDirty:yt,isValid:vt},handleDeleteImage:()=>at(""),handlePublish:async Ct=>{const Pt=rt?rt==null?void 0:rt.userId:"";try{let It=new Blob;typeof ot=="string"?It=await odeServices.http().get(ot,{responseType:"blob"}):ot?It=await odeServices.http().get(URL.createObjectURL(ot),{responseType:"blob"}):et!=null&&et.thumbnail&&(It=await odeServices.http().get(et==null?void 0:et.thumbnail,{responseType:"blob"}));const jt=await odeServices.http().get(`/userbook/avatar/${Pt}?thumbnail=48x48`,{responseType:"blob"}),Dt=await odeServices.http().get(`/directory/user/${Pt}/attachment-school`,{responseType:"json"}),Vt=e$3[nt],Ft={activityType:Et,age:[Ct.ageMin,Ct.ageMax],application:Vt,cover:It,description:Ct.description,keyWords:Ct.keyWords,language:Ct.language,licence:"CC-BY",resourceId:et==null?void 0:et.assetId,resourceEntId:et==null?void 0:et.assetId,subjectArea:St,teacherAvatar:jt,title:Ct.title,userId:Pt,userStructureName:Dt.name||(rt==null?void 0:rt.structureNames[0])},Ht=await odeServices.resource(nt).publish(Ft);Ht.success?st.success(jsxRuntimeExports.jsx(ToastSuccess,{result:Ht}),{duration:1e4}):Ht.message==="CONTENT_TOO_LARGE"?st.error(jsxRuntimeExports.jsx(ToastError,{errorMessage:Ht.message})):st.error(jsxRuntimeExports.jsx(ToastError,{formData:Ct})),tt==null||tt()}catch(It){console.error(It),st.error(jsxRuntimeExports.jsx(ToastError,{formData:Ct}))}},handleSubmit:ht,handleUploadImage:Ct=>at(Ct),register:ut,selectActivities:Ct=>{Rt(Ct,Et,bt)},selectedActivities:Et,selectedSubjectAreas:St,selectSubjects:Ct=>{Rt(Ct,St,wt)},setValue:dt,watch:ct}}const SvgIconDelete=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.96.96 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675m7.357.675v.954h3.818a.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.909h3.818v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864m-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955m4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0",clipRule:"evenodd"})]}),SvgIconEdit=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.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.121",clipRule:"evenodd"}),jsxRuntimeExports.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.879m-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-.465z",clipRule:"evenodd"})]}),ImagePicker=({addButtonLabel:tt="Add image",deleteButtonLabel:et="Delete image",src:rt,className:nt,mediaLibraryRef:st,libraryMedia:ot,app:at,onUploadImage:lt,onDeleteImage:ut})=>{const[ct,dt]=reactExports.useState(rt||"");reactExports.useEffect(()=>{ot&&(dt(ot),lt(ot))},[ot]);const ht=()=>{var yt;(yt=st.current)==null||yt.show("image")},ft=()=>{dt(""),ut()},xt=clsx("image-input",nt);return jsxRuntimeExports.jsxs("div",{id:"image-input",className:xt,children:[jsxRuntimeExports.jsxs("div",{className:"image-input-actions gap-8",children:[jsxRuntimeExports.jsx(IconButton,{"aria-label":tt,color:"tertiary",icon:jsxRuntimeExports.jsx(SvgIconEdit,{}),onClick:ht,type:"button",variant:"ghost"}),jsxRuntimeExports.jsx(IconButton,{"aria-label":et,color:"danger",disabled:!ct,icon:jsxRuntimeExports.jsx(SvgIconDelete,{}),onClick:ft,type:"button",variant:"ghost"})]}),ct?jsxRuntimeExports.jsx(Avatar,{alt:"",src:ct,size:"xl"}):jsxRuntimeExports.jsx(AppIcon,{app:at,iconFit:"ratio",size:"160",variant:"rounded"})]})},useResource=(tt,et)=>{const[rt,nt]=reactExports.useState(null);return reactExports.useEffect(()=>{if(et===""){console.warn("resourceId must be an assetId and not an empty string");return}(async()=>{try{const st=await odeServices.resource(tt).searchResource({application:tt,id:et});nt(st)}catch(st){console.error(st)}})()},[]),rt},SvgIconApplications=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1 3c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2zm8 0H3v6h6zm4 0c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2zm8 0h-6v6h6zm-8 12c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2zm8 0h-6v6h6zM1 15c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2zm8 0H3v6h6z",clipRule:"evenodd"})]}),SvgIconCode=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M17.327 5.76a1 1 0 0 1 1.413.067l5 5.5a1 1 0 0 1 0 1.346l-5 5.5a1 1 0 1 1-1.48-1.346L21.648 12 17.26 7.173a1 1 0 0 1 .067-1.413M6.673 5.76a1 1 0 0 1 .067 1.413L2.35 12l4.389 4.827a1 1 0 0 1-1.48 1.346l-5-5.5a1 1 0 0 1 0-1.346l5-5.5a1 1 0 0 1 1.413-.067M8.979 21.609a1 1 0 0 1-.658-1.252l5.375-17.29a1 1 0 1 1 1.91.594L10.23 20.95a1 1 0 0 1-1.251.658",clipRule:"evenodd"})]}),SvgIconGlobe=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.01 9.01 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71m4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.01 9.01 0 0 0-6.67-7.71m.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13M7.05 13H3.055a9.01 9.01 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13m7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.01 9.01 0 0 1-6.67 7.71M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11",clipRule:"evenodd"})]}),SvgIconMic=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 .5a4.07 4.07 0 0 0-2.812 1.115A3.8 3.8 0 0 0 8 4.364V12a3.8 3.8 0 0 0 1.188 2.748A4.07 4.07 0 0 0 12 15.864a4.07 4.07 0 0 0 2.812-1.116A3.8 3.8 0 0 0 16 12V4.364a3.8 3.8 0 0 0-1.188-2.749A4.07 4.07 0 0 0 12 .5m-1.43 2.562A2.07 2.07 0 0 1 12 2.5c.545 0 1.059.207 1.43.562.371.354.57.823.57 1.302V12a1.8 1.8 0 0 1-.57 1.302 2.07 2.07 0 0 1-1.43.562 2.07 2.07 0 0 1-1.43-.562A1.8 1.8 0 0 1 10 12V4.364a1.8 1.8 0 0 1 .57-1.302M6 10.091a1 1 0 0 0-2 0V12c0 2.053.855 4.011 2.36 5.448A8.13 8.13 0 0 0 11 19.622V21.5H8a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2h-3v-1.878a8.13 8.13 0 0 0 4.64-2.174C19.145 16.011 20 14.053 20 12v-1.91a1 1 0 0 0-2 0V12c0 1.491-.62 2.932-1.74 4.001s-2.646 1.678-4.248 1.68h-.024c-1.602-.002-3.128-.611-4.247-1.68C6.62 14.931 6 13.491 6 12z",clipRule:"evenodd"})]}),SvgIconRecordVideo=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h13a2 2 0 0 0 2-2v-1.936l4.409 1.365A2 2 0 0 0 24 15.519V8.48a2 2 0 0 0-2.591-1.91l-4.41 1.364V6a2 2 0 0 0-2-2zm0 2h13v12H2zm15 7.97V10.03l5-1.548v7.037z",clipRule:"evenodd"})]}),SvgIconSmartphone=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zM4 4a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 18a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1",clipRule:"evenodd"})]}),MediaLibraryContext=reactExports.createContext(null);function useMediaLibraryContext(){const tt=reactExports.useContext(MediaLibraryContext);if(!tt)throw new Error("Innertabs compound components cannot be rendered outside the MediaLibrary component");return tt}const SvgIconPause=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.5 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 2h3v16h-3zm10-2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 2h3v16h-3z",clipRule:"evenodd"})]}),SvgIconRecord=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("circle",{cx:12,cy:12,r:11,fill:"currentColor"})]}),AudioRecorderTimer=({recordState:tt,playState:et,recordTime:rt,audioTime:nt,maxDuration:st})=>jsxRuntimeExports.jsxs("div",{className:"audio-recorder-time my-16 mx-auto",children:[et==="IDLE"&&jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center",children:[tt==="PAUSED"?jsxRuntimeExports.jsx(SvgIconPause,{width:12,height:12,className:"me-8 text-danger"}):jsxRuntimeExports.jsx(SvgIconRecord,{width:12,height:12,className:"me-8 text-danger"}),n$2(tt!=="IDLE"?rt:0)+" / "+n$2(st)]}),et!=="IDLE"&&jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center mx-auto",children:[jsxRuntimeExports.jsx(SvgIconMic,{width:12,height:12,className:"me-8"}),n$2(nt*1e3)," /",n$2(rt)]})]}),SvgIconPlayFilled=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M5 3.804c0-1.57 1.728-2.528 3.06-1.696l13.113 8.196a2 2 0 0 1 0 3.392L8.06 21.892C6.728 22.724 5 21.767 5 20.196z"})]}),SvgIconRecordPause=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11M10 6H8a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1m4 0h2a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1",clipRule:"evenodd"})]}),SvgIconRefresh=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("g",{clipPath:"url(#icon-refresh_svg__a)",children:jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.304 21c3.015 0 5.65-1.924 6.838-4.752a.986.986 0 0 1 1.297-.53c.503.216.738.803.524 1.311C19.498 20.522 16.19 23 12.304 23c-4.644 0-8.444-3.522-9.299-8.113L1.86 17.142a.99.99 0 0 1-1.33.449 1 1 0 0 1-.417-1.348L2.51 11.52c.135-.265.376-.457.66-.527a.96.96 0 0 1 .812.169L8.1 14.297c.433.33.515.958.185 1.404a.98.98 0 0 1-1.382.212L4.93 14.41c.65 3.785 3.744 6.59 7.374 6.59m4.794-12.913a.98.98 0 0 0-1.381.211 1.01 1.01 0 0 0 .184 1.405l4.117 3.135a.96.96 0 0 0 .812.169c.284-.07.525-.262.66-.527l2.398-4.723c.252-.496.065-1.1-.418-1.348a.99.99 0 0 0-1.329.449l-1.145 2.255C20.14 4.522 16.34 1 11.696 1 7.81 1 4.505 3.478 3.037 6.97a1.004 1.004 0 0 0 .525 1.312.986.986 0 0 0 1.297-.53C6.046 4.924 8.681 3 11.697 3c3.63 0 6.724 2.805 7.374 6.59z",clipRule:"evenodd"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"icon-refresh_svg__a",children:jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),SvgIconRestart=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M17.919 3.15c1.33-.856 3.081.1 3.081 1.682v14.336c0 1.583-1.75 2.538-3.081 1.683L7 13.83V19a2 2 0 1 1-4 0V5a2 2 0 1 1 4 0v5.168z"})]}),SvgIconSave=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.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-1V4zm2-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 2zm1 12v6h8v-6z",clipRule:"evenodd"})]});function useAudioRecorder(tt,et,rt=!1,nt="protected",st="media-library"){var ot;function at(Xt,rr){return{...Xt,...rr.updatedState}}const[{recordState:lt,playState:ut,micStream:ct,micStreamAudioSourceNode:dt,audioWorkletNode:ht,audioContext:ft,encoderWorker:xt,maxDuration:yt,recordTime:vt,isEncoding:Et},bt]=reactExports.useReducer(at,{recordState:"IDLE",isEncoding:!1,playState:"IDLE",recordTime:0,maxDuration:180}),St=reactExports.useRef(null),wt=reactExports.useRef(null),Rt=reactExports.useRef(),Ct=reactExports.useRef(),{t:Pt}=useTranslation(),{create:It}=useWorkspaceFile(),jt=128,Dt=48e3;reactExports.useEffect(()=>{const Xt=new Worker("/infra/public/js/audioEncoder.js");return bt({type:"update",updatedState:{encoderWorker:Xt}}),Xt.postMessage(["init",(ft==null?void 0:ft.sampleRate)||Dt]),()=>{Ft(),Xt.terminate()}},[]);const Vt=Xt=>{var rr,cr;const ur=Xt.data.inputs[0][0];let mr=Xt.data.inputs[0][1];(!mr||mr.filter(vr=>vr!==void 0).length===0)&&(mr=ur),(rr=Rt.current)==null||rr.push(ur),(cr=Ct.current)==null||cr.push(mr)},Ft=reactExports.useCallback(()=>{ct==null||ct.getTracks().forEach(Xt=>Xt.stop()),dt==null||dt.disconnect(),ht==null||ht.port.removeEventListener("message",Vt),ht==null||ht.port.close(),ht==null||ht.disconnect(),ft==null||ft.close()},[ft,ht,ct,dt]),Ht=async()=>{const Xt=await navigator.mediaDevices.getUserMedia({audio:!0}),rr=new AudioContext({sampleRate:Dt}),cr=rr.createMediaStreamSource(Xt);try{await rr.audioWorklet.addModule("/infra/public/js/audio-recorder-processor.js")}catch(mr){console.error(mr)}const ur=new AudioWorkletNode(rr,"audio-recorder-processor");ur.port.addEventListener("message",Vt),bt({type:"update",updatedState:{micStream:Xt,micStreamAudioSourceNode:cr,audioContext:rr,recordTime:0,audioWorkletNode:ur,recordState:"RECORDING",playState:"IDLE"}}),Ct.current=[],Rt.current=[],ur.port.start(),cr.connect(ur),ur.connect(rr.destination)},Nt=reactExports.useCallback(async()=>{wt.current&&(wt.current.currentTime=0,wt.current.pause()),lt==="PAUSED"?(bt({type:"update",updatedState:{recordState:"RECORDING",playState:"IDLE"}}),ft==null||ft.resume(),et==null||et(void 0)):Ht()},[lt,ft,wt]),Lt=reactExports.useCallback(()=>{bt({type:"update",updatedState:{recordState:"PAUSED",playState:"IDLE",isEncoding:!0}}),ft==null||ft.suspend(),xt&&Rt.current&&Ct.current&&(xt.postMessage(["wav",Ct.current,Rt.current,Ct.current.length*jt]),xt.onmessage=Xt=>{const rr=window.URL.createObjectURL(Xt.data);bt({type:"update",updatedState:{isEncoding:!1}}),wt.current&&(wt.current.src=rr),et&&et(rr)})},[ft,xt,et]),Mt=reactExports.useCallback(()=>{var Xt;bt({type:"update",updatedState:{playState:"PLAYING"}}),((Xt=wt==null?void 0:wt.current)!=null&&Xt.currentTime||wt.current)&&wt.current.play()},[wt]),zt=reactExports.useCallback(()=>{var Xt;(Xt=wt==null?void 0:wt.current)==null||Xt.pause(),bt({type:"update",updatedState:{playState:"PAUSED"}})},[wt]),Gt=reactExports.useCallback(()=>{Ft(),bt({type:"update",updatedState:{playState:"IDLE",recordState:"IDLE"}}),Ct.current=[],Rt.current=[],et&&et(void 0)},[Ft,et]),Ot=reactExports.useCallback(async()=>{var Xt;const rr=(Xt=St.current)==null?void 0:Xt.value;if(!rr){console.error("Audio name is required");return}return wt.current&&(wt.current.pause(),wt.current.currentTime=0),bt({type:"update",updatedState:{recordState:"SAVING",playState:"IDLE"}}),new Promise((cr,ur)=>{try{xt&&Rt.current&&Ct.current&&(xt.postMessage(["mp3",Ct.current,Rt.current,Ct.current.length*jt]),xt.onmessage=async mr=>{if(mr.data instanceof Blob){const vr=new File([mr.data],rr,{type:"audio/mp3"}),Er=await It(vr,{application:st,visibility:nt});Er&&tt&&tt(Er),bt({type:"update",updatedState:{recordState:"SAVED"}}),cr(Er)}})}catch(mr){bt({type:"update",updatedState:{playState:"IDLE",recordState:"IDLE"}}),console.error("Error while saving",mr),ur()}})},[lt,tt,Ft]),Ut=reactExports.useCallback(()=>{wt!=null&&wt.current&&(wt.current.pause(),wt.current.currentTime=0),bt({type:"update",updatedState:{playState:"IDLE"}})},[wt]),Bt=reactExports.useCallback(()=>{bt({type:"update",updatedState:{playState:"PAUSED"}}),wt.current&&(wt.current.currentTime=0)},[wt]);reactExports.useEffect(()=>{if(lt==="RECORDING"&&ft){const Xt=window.setInterval(()=>{bt({type:"update",updatedState:{recordTime:ft.currentTime}}),ft.currentTime>=yt&&(Lt(),window.clearInterval(Xt))},100);return()=>window.clearInterval(Xt)}},[ft,Lt,yt,lt]);const Yt=Pt(lt==="IDLE"?"bbm.audio.record.start":"bbm.audio.record.resume"),Zt=[{type:"icon",name:"record",visibility:lt==="RECORDING"?"hide":"show",props:{icon:jsxRuntimeExports.jsx(SvgIconRecord,{}),color:"danger",disabled:lt!=="IDLE"&<!=="PAUSED"||vt>=yt,onClick:Nt,"aria-label":Yt},tooltip:Yt},{type:"icon",name:"recordPause",visibility:lt==="RECORDING"?"show":"hide",props:{icon:jsxRuntimeExports.jsx(SvgIconRecordPause,{}),color:"danger",disabled:lt!=="RECORDING",onClick:Lt,"aria-label":Pt("bbm.audio.record.pause")},tooltip:Pt("bbm.audio.record.pause")},{type:"divider"},{type:"icon",name:"encoding",visibility:Et?"show":"hide",props:{icon:jsxRuntimeExports.jsx(SvgIconLoader,{style:{animation:"loading 1s infinite"}}),disabled:!0}},{type:"icon",name:"play",visibility:Et||ut==="PLAYING"?"hide":"show",props:{icon:jsxRuntimeExports.jsx(SvgIconPlayFilled,{}),disabled:lt!=="RECORDED"&<!=="PAUSED"&<!=="SAVED",onClick:Mt,"aria-label":Pt("bbm.audio.play.start")},tooltip:Pt("bbm.audio.play.start")},{type:"icon",name:"playPause",visibility:!Et&&ut==="PLAYING"?"show":"hide",props:{icon:jsxRuntimeExports.jsx(SvgIconPause,{}),onClick:zt,"aria-label":Pt("bbm.audio.play.pause")},tooltip:Pt("bbm.audio.play.pause")},{type:"icon",name:"stop",props:{icon:jsxRuntimeExports.jsx(SvgIconRestart,{}),disabled:ut!=="PLAYING"&&ut!=="PAUSED",onClick:Ut,"aria-label":Pt("bbm.audio.play.stop")},tooltip:Pt("bbm.audio.play.stop")},{type:"divider"},{type:"icon",name:"reset",props:{icon:jsxRuntimeExports.jsx(SvgIconRefresh,{}),disabled:lt!=="RECORDED"&<!=="PAUSED"&&ut!=="PLAYING"&&ut!=="PAUSED",onClick:Gt,"aria-label":Pt("bbm.audio.record.reset")},tooltip:Pt("bbm.audio.record.reset")},{type:"icon",name:"save",visibility:rt?"hide":"show",props:{icon:jsxRuntimeExports.jsx(SvgIconSave,{}),disabled:lt!=="RECORDED"&<!=="PAUSED"&&ut!=="PLAYING"&&ut!=="PAUSED"||lt==="SAVED"||!((ot=St.current)!=null&&ot.value),onClick:Ot,"aria-label":Pt("bbm.audio.record.save")},tooltip:Pt("bbm.audio.record.save")}];return{recordState:lt,playState:ut,audioContext:ft,recordTime:vt*1e3,maxDuration:yt*1e3,audioRef:wt,audioNameRef:St,toolbarItems:Zt,handlePlayEnded:Bt,handleSave:Ot}}const AudioRecorder=reactExports.forwardRef(({onSaveSuccess:tt,onRecordUpdated:et,hideSaveAction:rt=!1,visibility:nt="protected"},st)=>{const{recordState:ot,playState:at,recordTime:lt,audioRef:ut,audioNameRef:ct,toolbarItems:dt,maxDuration:ht,handlePlayEnded:ft,handleSave:xt}=useAudioRecorder(tt,et,rt,nt,"media-library"),{t:yt}=useTranslation();reactExports.useImperativeHandle(st,()=>({save:xt}));const[vt,Et]=reactExports.useState(0),bt=clsx({"text-danger":ot==="RECORDING","text-success":at==="PLAYING"}),St=wt=>{Et(wt.target.currentTime)};return jsxRuntimeExports.jsxs("div",{className:"audio-recorder m-auto d-flex flex-column",children:[jsxRuntimeExports.jsx(FormControl,{id:"recordName",className:"mb-32",isRequired:!0,isReadOnly:ot==="SAVED"||ot==="SAVING",children:jsxRuntimeExports.jsx(Input,{type:"text",size:"sm",placeholder:yt("bbm.audio.recorder.name"),ref:ct,defaultValue:yt("bbm.audio.recorder.defaultName")+new Date().toLocaleDateString()})}),jsxRuntimeExports.jsx("div",{className:"audio-recorder-icon mx-auto",children:jsxRuntimeExports.jsx(SvgIconMic,{width:64,height:64,className:bt})}),jsxRuntimeExports.jsx(AudioRecorderTimer,{recordState:ot,playState:at,recordTime:lt,audioTime:vt,maxDuration:ht}),jsxRuntimeExports.jsx("audio",{ref:ut,onEnded:ft,onTimeUpdate:St,children:jsxRuntimeExports.jsx("track",{default:!0,kind:"captions",srcLang:"fr",src:""})}),jsxRuntimeExports.jsx(Toolbar,{items:dt})]})}),Audio=()=>{const{setResult:tt,setPreSuccess:et,visibility:rt}=useMediaLibraryContext(),nt=reactExports.useRef(null);return jsxRuntimeExports.jsx(AudioRecorder,{ref:nt,onRecordUpdated:st=>{st?(tt(st),et(()=>nt.current.save)):tt()},onSaveSuccess:st=>{st&&tt(st)},hideSaveAction:!0,visibility:rt})},ExternalLinker=({link:tt,onChange:et,multiNodeSelected:rt=!1})=>{const{t:nt}=useTranslation(),[st,ot]=reactExports.useState((tt==null?void 0:tt.text)||""),[at,lt]=reactExports.useState((tt==null?void 0:tt.url)||""),[ut,ct]=useToggle(tt?tt.target==="_blank":!0);return reactExports.useEffect(()=>{rt&&tt!=null&&tt.text&&ot(tt.text.slice(0,20)+"...")},[rt,tt]),reactExports.useEffect(()=>{if(!at.length){et==null||et();return}const dt={url:at,text:rt?tt==null?void 0:tt.text:st||at,target:ut?"_blank":void 0};!s$3.isLocalURL(at)&&!s$3.startWithHttp(at)&&(dt.url="http://"+at),et==null||et(dt)},[st,at,ut]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column flex-fill gap-24",children:[jsxRuntimeExports.jsxs(FormControl,{id:"linkText",isOptional:!0,children:[jsxRuntimeExports.jsx(Label,{children:nt("bbm.linker.ext.text")}),jsxRuntimeExports.jsx(Input,{type:"text",placeholder:nt("bbm.linker.ext.text.placeholder"),size:"md",disabled:rt,value:st,onChange:dt=>ot(dt.target.value)})]}),jsxRuntimeExports.jsxs(FormControl,{id:"linkUrl",isRequired:!0,children:[jsxRuntimeExports.jsx(Label,{children:nt("bbm.linker.ext.url")}),jsxRuntimeExports.jsx(Input,{type:"text",placeholder:nt("bbm.linker.ext.url.placeholder"),size:"md",value:at,onChange:dt=>lt(dt.target.value)})]}),jsxRuntimeExports.jsx(Checkbox,{label:nt("bbm.linker.open.tab"),onChange:()=>ct(),checked:ut})]})})},ExternalLink=({link:tt,multiNodeSelected:et=!1})=>{const{setResult:rt}=useMediaLibraryContext();return jsxRuntimeExports.jsx(ExternalLinker,{link:tt,onChange:nt=>{rt(nt)},multiNodeSelected:et})},Embed=({onSuccess:tt})=>{const{t:et}=useTranslation(),[rt,nt]=reactExports.useState();function st(ot){const at=ot.target.value;nt(at),at!=null&&at.length?tt(at):tt()}return jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column flex-fill",children:[jsxRuntimeExports.jsx("div",{className:"mb-32",children:et("bbm.embed.description")}),jsxRuntimeExports.jsxs("div",{className:"mb-8 d-flex",children:[jsxRuntimeExports.jsx(SvgIconCode,{className:"me-8"}),et("bbm.embed.title")]}),jsxRuntimeExports.jsx(FormControl,{id:"iframeContent",children:jsxRuntimeExports.jsx(TextArea,{size:"md",height:"sm",placeholder:et("bbm.embed.placeholder"),onChange:st})}),!!(rt!=null&&rt.length)&&jsxRuntimeExports.jsx("div",{className:"embed-preview mt-12",dangerouslySetInnerHTML:{__html:rt}}),!(rt!=null&&rt.length)&&jsxRuntimeExports.jsx("div",{className:"embed-preview mt-12 d-flex align-items-center justify-content-center bg-gray-300 text-black-50 rounded-3",children:jsxRuntimeExports.jsx("strong",{children:et("bbm.embed.preview")})})]})},Iframe=()=>{const{setResult:tt}=useMediaLibraryContext();return jsxRuntimeExports.jsx(Embed,{onSuccess:et=>{et=et==null?void 0:et.replace(/<p /g,"<div ").replace(/\/p>/g,"/div>"),tt(et)}})},SvgIconUsers=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#icon-users_svg__a)",clipRule:"evenodd",children:jsxRuntimeExports.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.272M15.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.036M1.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.974M9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"icon-users_svg__a",children:jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),LinkerCard=({doc:tt,isClickable:et=!0,isSelectable:rt=!1,isSelected:nt=!1,onClick:st,className:ot})=>{const{fromNow:at}=useDate(),{fromDate:lt}=reactExports.useMemo(()=>({fromDate:at(tt.modifiedAt)}),[at,tt]);return jsxRuntimeExports.jsx(Card,{className:clsx("card-linker shadow-none",ot),isClickable:et,isSelectable:rt,isSelected:nt,onClick:st,children:jsxRuntimeExports.jsxs(Card.Body,{space:"8",children:[jsxRuntimeExports.jsx("div",{className:"card-image ps-8 pe-4",children:tt.thumbnail&&tt.thumbnail.length>0?jsxRuntimeExports.jsx(Image$1,{alt:"",height:48,width:48,src:tt.thumbnail,objectFit:"cover",className:"rounded h-full",style:{aspectRatio:1/1}}):jsxRuntimeExports.jsx(AppIcon,{app:tt.application,iconFit:"ratio",size:"48",variant:"rounded"})}),jsxRuntimeExports.jsxs("div",{className:"w-75",children:[jsxRuntimeExports.jsx(Card.Text,{children:tt.name}),jsxRuntimeExports.jsx(Card.Text,{className:"text-black-50",children:tt==null?void 0:tt.creatorName})]}),jsxRuntimeExports.jsx("div",{className:"d-none d-md-block text-black-50 ps-4 pe-8",children:jsxRuntimeExports.jsx(Card.Text,{children:lt})}),tt.shared&&jsxRuntimeExports.jsx("div",{className:"ps-4 pe-8",children:jsxRuntimeExports.jsx(SvgIconUsers,{width:"20",height:"20"})})]})})},useResourceSearch=tt=>{const[et,rt]=reactExports.useState([]);reactExports.useEffect(()=>{(async()=>(await SnipletsService.initialize(odeServices,tt),await SnipletsService.registerBehaviours(tt),rt(SnipletsService.resourceProducingApps)))()},[]);const nt=reactExports.useCallback(async st=>{const[ot]=st.types;return await odeServices.behaviour(tt,ot).loadResources(st)},[tt]);return{resourceApplications:et,loadResources:nt}},illuOneBlog="/assets/js/ode-explorer/illu-empty-search-blog.svg",illuOneCollaborativeWall="/assets/js/ode-explorer/illu-empty-search-collaborativewall.svg",illuOneCommunity="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_149764)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M167.746%20130.552C172.704%20130.552%20176.962%20132.327%20180.519%20135.877C184.076%20139.427%20185.855%20143.677%20185.854%20148.625C185.854%20153.574%20184.076%20157.823%20180.519%20161.373C176.962%20164.923%20172.758%20166.698%20167.908%20166.698C163.057%20166.698%20158.799%20164.923%20155.135%20161.373C151.47%20157.823%20149.692%20153.52%20149.799%20148.464C149.799%20146.528%20150.23%20144.43%20151.093%20142.171L123.768%20122.484C118.487%20127.863%20112.127%20130.552%20104.69%20130.552C97.2522%20130.552%2090.8927%20127.917%2085.6111%20122.646C80.3295%20117.374%2077.6348%20110.974%2077.5271%20103.443C77.5271%20102.475%2077.6887%20101.077%2078.012%2099.2476L56.3468%2092.1477C54.6221%2093.6538%2052.6819%2094.4069%2050.5261%2094.4069C47.9391%2094.4069%2045.7833%2093.5463%2044.0587%2091.825C42.334%2090.1037%2041.4717%2087.9522%2041.4717%2085.3703C41.4717%2082.7884%2042.334%2080.6906%2044.0587%2079.0771C45.7833%2077.4635%2047.9391%2076.6028%2050.5261%2076.4952C52.6819%2076.4952%2054.5143%2077.1944%2056.0234%2078.5928C57.5325%2079.9912%2058.5564%2081.6586%2059.0953%2083.595L80.9224%2090.8565C83.1858%2086.4458%2086.4734%2082.9496%2090.785%2080.3677C95.0966%2077.7858%2099.7315%2076.4948%20104.69%2076.4948C110.295%2076.4948%20115.468%2078.1623%20120.211%2081.4971L152.386%2049.3856C150.661%2046.1582%20149.799%2043.1998%20149.799%2040.5105C149.799%2035.562%20151.577%2031.3127%20155.134%2027.7625C158.691%2024.2123%20162.949%2022.4373%20167.907%2022.4375C172.866%2022.4377%20177.069%2024.2127%20180.518%2027.7625C183.968%2031.3123%20185.746%2035.5616%20185.854%2040.5105C185.962%2045.4593%20184.183%2049.6548%20180.518%2053.0969C176.854%2056.539%20172.596%2058.314%20167.745%2058.4219C164.943%2058.4219%20161.979%2057.5075%20158.853%2055.6788L126.678%2087.9518C130.02%2092.6851%20131.69%2097.8488%20131.69%20103.443C131.69%20107.423%20130.774%20111.35%20128.942%20115.223L156.266%20134.748C159.823%20131.951%20163.65%20130.552%20167.746%20130.552V130.552Z'%20fill='%23A348C0'/%3e%3cg%20filter='url(%23filter0_d_3597_149764)'%3e%3cellipse%20cx='169.708'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.012%20150.405C214.309%20149.703%20213.483%20149.21%20212.606%20148.92C220.41%20139.391%20225.099%20127.21%20225.099%20113.934C225.099%2095.9054%20216.454%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.867%2058.6953C165.678%2058.6953%20161.599%2059.1808%20157.678%2060.0649C152.635%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.367%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.635%20106.855%20114.635%20113.934C114.635%20144.442%20139.359%20169.166%20169.867%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.338%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.715%20185.775C244.113%20183.376%20244.113%20179.492%20241.715%20177.094L241.707%20177.101ZM169.859%20156.891C146.135%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.896%2090.4489C136.483%2086.4924%20139.707%2082.9924%20143.425%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.628%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_149764'%20x='108.635'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_149764'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_149764'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_149764'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuOneExercizer="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_148725)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M83.4104%20149.864L112.194%20135.472V111.738L83.4104%20124.138V149.864ZM78.5673%20115.516L108.965%20102.602L78.5673%2089.5493L48.3412%20102.773L78.5673%20115.516ZM160.349%20149.864L189.167%20135.472V111.738L160.384%20124.138L160.349%20149.864ZM155.506%20115.516L185.732%20102.773L155.472%2089.7211L125.074%20102.773L155.506%20115.516ZM121.88%2093.568L150.663%2081.2028V61.3498L121.88%2073.715V93.568ZM117.037%2065.2311L150.114%2051.1141L117.037%2036.8598L83.9256%2051.1141L117.037%2065.2311ZM198.682%20104.113V135.472C198.694%20137.212%20198.231%20138.923%20197.342%20140.418C196.429%20141.946%20195.059%20143.147%20193.426%20143.853L159.8%20160.684C158.476%20161.382%20157.003%20161.746%20155.506%20161.746C154.01%20161.746%20152.536%20161.382%20151.213%20160.684L117.586%20143.853C117.379%20143.822%20117.187%20143.726%20117.037%20143.578C116.881%20143.717%20116.692%20143.812%20116.487%20143.853L82.8608%20160.684C81.5508%20161.417%2080.068%20161.784%2078.5673%20161.748C77.0983%20161.794%2075.6461%20161.425%2074.3769%20160.684L40.7504%20143.853C39.1325%20143.137%2037.7764%20141.937%2036.8691%20140.418C35.9651%20138.922%2035.4568%20137.22%2035.3921%20135.472V104.113C35.3757%20102.237%2035.9395%20100.401%2037.0064%2098.8576C38.051%2097.299%2039.55%2096.0997%2041.2999%2095.4228L73.8617%2081.4433V51.3889C73.8545%2049.5056%2074.3966%2047.6611%2075.4214%2046.0811C76.4463%2044.5011%2077.9095%2043.2541%2079.6321%2042.4928L113.259%2028.1011C114.45%2027.581%20115.737%2027.3125%20117.037%2027.3125C118.337%2027.3125%20119.623%2027.581%20120.815%2028.1011L154.442%2042.4928C156.151%2043.2379%20157.633%2044.4231%20158.735%2045.9276C159.819%2047.5145%20160.383%2049.3988%20160.349%2051.3202V81.3059L192.911%2095.2854C194.661%2095.9623%20196.16%2097.1616%20197.205%2098.7202C198.26%20100.263%20198.779%20102.109%20198.682%20103.975V104.113Z'%20fill='%23A348C0'/%3e%3cg%20filter='url(%23filter0_d_3597_148725)'%3e%3cellipse%20cx='169.707'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.011%20150.405C214.308%20149.703%20213.482%20149.21%20212.605%20148.92C220.41%20139.391%20225.098%20127.21%20225.098%20113.934C225.098%2095.9054%20216.453%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.866%2058.6953C165.678%2058.6953%20161.598%2059.1808%20157.678%2060.0649C152.634%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.366%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.634%20106.855%20114.634%20113.934C114.634%20144.442%20139.359%20169.166%20169.866%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.337%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.714%20185.775C244.113%20183.376%20244.113%20179.492%20241.714%20177.094L241.707%20177.101ZM169.859%20156.891C146.134%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.895%2090.4489C136.482%2086.4924%20139.707%2082.9924%20143.424%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.627%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_148725'%20x='108.634'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_148725'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_148725'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_148725'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuOneFormulaire="/assets/js/ode-explorer/illu-empty-search-formulaire.svg",illuOneForum="/assets/js/ode-explorer/illu-empty-search-forum.svg",illuOneHomeworks="/assets/js/ode-explorer/illu-empty-search-homeworks.svg",illuOneMagneto="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_149757)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M127.341%20120.329V89.4164C127.341%2077.1185%20122.455%2065.3242%20113.759%2056.6282C105.063%2047.9322%2093.2691%2043.0469%2080.9711%2043.0469C68.6731%2043.0469%2056.8789%2047.9322%2048.1829%2056.6282C39.4869%2065.3242%2034.6016%2077.1185%2034.6016%2089.4164L34.6016%20120.329H55.2103V89.4164C55.2103%2082.5842%2057.9243%2076.0319%2062.7554%2071.2008C67.5865%2066.3696%2074.1389%2063.6556%2080.9711%2063.6556C84.3541%2063.6556%2087.7039%2064.3219%2090.8294%2065.6165C93.9548%2066.9111%2096.7947%2068.8086%2099.1868%2071.2007C101.579%2073.5929%20103.476%2076.4327%20104.771%2079.5582C106.066%2082.6836%20106.732%2086.0335%20106.732%2089.4164V120.329M55.2103%20130.634H34.6016V146.09H55.2103M127.341%20130.634H106.732V146.09H127.341'%20fill='%23F1CA00'/%3e%3cpath%20d='M199.472%20120.329V89.4164C199.472%2083.3271%20198.272%2077.2974%20195.942%2071.6716C193.612%2066.0457%20190.196%2060.934%20185.89%2056.6282C181.584%2052.3224%20176.473%2048.9068%20170.847%2046.5765C165.221%2044.2463%20159.191%2043.0469%20153.102%2043.0469C140.804%2043.0469%20129.01%2047.9322%20120.314%2056.6282C111.618%2065.3242%20106.732%2077.1185%20106.732%2089.4164V120.329H127.341V89.4164C127.341%2082.5842%20130.055%2076.0319%20134.886%2071.2008C139.717%2066.3696%20146.27%2063.6556%20153.102%2063.6556C156.485%2063.6556%20159.835%2064.3219%20162.96%2065.6165C166.086%2066.9111%20168.926%2068.8086%20171.318%2071.2007C173.71%2073.5929%20175.607%2076.4327%20176.902%2079.5582C178.197%2082.6836%20178.863%2086.0335%20178.863%2089.4164V120.329M127.341%20130.634H106.732V146.09H127.341M199.472%20130.634H178.863V146.09H199.472'%20fill='%23F1CA00'/%3e%3cg%20filter='url(%23filter0_d_3597_149757)'%3e%3cellipse%20cx='169.708'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.012%20150.405C214.309%20149.703%20213.483%20149.21%20212.606%20148.92C220.41%20139.391%20225.099%20127.21%20225.099%20113.934C225.099%2095.9054%20216.454%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.867%2058.6953C165.678%2058.6953%20161.599%2059.1808%20157.678%2060.0649C152.635%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.367%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.635%20106.855%20114.635%20113.934C114.635%20144.442%20139.359%20169.166%20169.867%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.338%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.715%20185.775C244.113%20183.376%20244.113%20179.492%20241.715%20177.094L241.707%20177.101ZM169.859%20156.891C146.135%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.896%2090.4489C136.483%2086.4924%20139.707%2082.9924%20143.425%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.628%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_149757'%20x='108.635'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_149757'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_149757'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_149757'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuOneWiki="/assets/js/ode-explorer/illu-empty-search-wiki.svg",illuOneEmpty="/assets/js/ode-explorer/illu-empty-search.svg",illuNeoBlog="/assets/js/ode-explorer/illu-empty-search-blog2.svg",illuNeoCollaborativeWall="/assets/js/ode-explorer/illu-empty-search-collaborativewall2.svg",illuNeoCommunity="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_141038)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M167.746%20130.552C172.704%20130.552%20176.962%20132.327%20180.519%20135.877C184.076%20139.427%20185.855%20143.677%20185.854%20148.625C185.854%20153.574%20184.076%20157.823%20180.519%20161.373C176.962%20164.923%20172.758%20166.698%20167.908%20166.698C163.057%20166.698%20158.799%20164.923%20155.135%20161.373C151.47%20157.823%20149.692%20153.52%20149.799%20148.464C149.799%20146.528%20150.23%20144.43%20151.093%20142.171L123.768%20122.484C118.487%20127.863%20112.127%20130.552%20104.69%20130.552C97.2522%20130.552%2090.8927%20127.917%2085.6111%20122.646C80.3295%20117.374%2077.6348%20110.974%2077.5271%20103.443C77.5271%20102.475%2077.6887%20101.077%2078.012%2099.2476L56.3468%2092.1477C54.6221%2093.6538%2052.6819%2094.4069%2050.5261%2094.4069C47.9391%2094.4069%2045.7833%2093.5463%2044.0587%2091.825C42.334%2090.1037%2041.4717%2087.9522%2041.4717%2085.3703C41.4717%2082.7884%2042.334%2080.6906%2044.0587%2079.0771C45.7833%2077.4635%2047.9391%2076.6028%2050.5261%2076.4952C52.6819%2076.4952%2054.5143%2077.1944%2056.0234%2078.5928C57.5325%2079.9912%2058.5564%2081.6586%2059.0953%2083.595L80.9224%2090.8565C83.1858%2086.4458%2086.4734%2082.9496%2090.785%2080.3677C95.0966%2077.7858%2099.7315%2076.4948%20104.69%2076.4948C110.295%2076.4948%20115.468%2078.1623%20120.211%2081.4971L152.386%2049.3856C150.661%2046.1582%20149.799%2043.1998%20149.799%2040.5105C149.799%2035.562%20151.577%2031.3127%20155.134%2027.7625C158.691%2024.2123%20162.949%2022.4373%20167.907%2022.4375C172.866%2022.4377%20177.069%2024.2127%20180.518%2027.7625C183.968%2031.3123%20185.746%2035.5616%20185.854%2040.5105C185.962%2045.4593%20184.183%2049.6548%20180.518%2053.0969C176.854%2056.539%20172.596%2058.314%20167.745%2058.4219C164.943%2058.4219%20161.979%2057.5075%20158.853%2055.6788L126.678%2087.9518C130.02%2092.6851%20131.69%2097.8488%20131.69%20103.443C131.69%20107.423%20130.774%20111.35%20128.942%20115.223L156.266%20134.748C159.823%20131.951%20163.65%20130.552%20167.746%20130.552V130.552Z'%20fill='%23823AA1'/%3e%3cg%20filter='url(%23filter0_d_3597_141038)'%3e%3cellipse%20cx='169.708'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.012%20150.405C214.309%20149.703%20213.483%20149.21%20212.606%20148.92C220.41%20139.391%20225.099%20127.21%20225.099%20113.934C225.099%2095.9054%20216.454%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.867%2058.6953C165.678%2058.6953%20161.599%2059.1808%20157.678%2060.0649C152.635%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.367%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.635%20106.855%20114.635%20113.934C114.635%20144.442%20139.359%20169.166%20169.867%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.338%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.715%20185.775C244.113%20183.376%20244.113%20179.492%20241.715%20177.094L241.707%20177.101ZM169.859%20156.891C146.135%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.896%2090.4489C136.483%2086.4924%20139.707%2082.9924%20143.425%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.628%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_141038'%20x='108.635'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_141038'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_141038'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_141038'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuNeoExercizer="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_148718)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M83.4104%20149.864L112.194%20135.472V111.738L83.4104%20124.138V149.864ZM78.5673%20115.516L108.965%20102.602L78.5673%2089.5493L48.3412%20102.773L78.5673%20115.516ZM160.349%20149.864L189.167%20135.472V111.738L160.384%20124.138L160.349%20149.864ZM155.506%20115.516L185.732%20102.773L155.472%2089.7211L125.074%20102.773L155.506%20115.516ZM121.88%2093.568L150.663%2081.2028V61.3498L121.88%2073.715V93.568ZM117.037%2065.2311L150.114%2051.1141L117.037%2036.8598L83.9256%2051.1141L117.037%2065.2311ZM198.682%20104.113V135.472C198.694%20137.212%20198.231%20138.923%20197.342%20140.418C196.429%20141.946%20195.059%20143.147%20193.426%20143.853L159.8%20160.684C158.476%20161.382%20157.003%20161.746%20155.506%20161.746C154.01%20161.746%20152.536%20161.382%20151.213%20160.684L117.586%20143.853C117.379%20143.822%20117.187%20143.726%20117.037%20143.578C116.881%20143.717%20116.692%20143.812%20116.487%20143.853L82.8608%20160.684C81.5508%20161.417%2080.068%20161.784%2078.5673%20161.748C77.0983%20161.794%2075.6461%20161.425%2074.3769%20160.684L40.7504%20143.853C39.1325%20143.137%2037.7764%20141.937%2036.8691%20140.418C35.9651%20138.922%2035.4568%20137.22%2035.3921%20135.472V104.113C35.3757%20102.237%2035.9395%20100.401%2037.0064%2098.8576C38.051%2097.299%2039.55%2096.0997%2041.2999%2095.4228L73.8617%2081.4433V51.3889C73.8545%2049.5056%2074.3966%2047.6611%2075.4214%2046.0811C76.4463%2044.5011%2077.9095%2043.2541%2079.6321%2042.4928L113.259%2028.1011C114.45%2027.581%20115.737%2027.3125%20117.037%2027.3125C118.337%2027.3125%20119.623%2027.581%20120.815%2028.1011L154.442%2042.4928C156.151%2043.2379%20157.633%2044.4231%20158.735%2045.9276C159.819%2047.5145%20160.383%2049.3988%20160.349%2051.3202V81.3059L192.911%2095.2854C194.661%2095.9623%20196.16%2097.1616%20197.205%2098.7202C198.26%20100.263%20198.779%20102.109%20198.682%20103.975V104.113Z'%20fill='%23823AA1'/%3e%3cg%20filter='url(%23filter0_d_3597_148718)'%3e%3cellipse%20cx='169.707'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.011%20150.405C214.308%20149.703%20213.482%20149.21%20212.605%20148.92C220.41%20139.391%20225.098%20127.21%20225.098%20113.934C225.098%2095.9054%20216.453%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.866%2058.6953C165.678%2058.6953%20161.598%2059.1808%20157.678%2060.0649C152.634%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.366%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.634%20106.855%20114.634%20113.934C114.634%20144.442%20139.359%20169.166%20169.866%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.337%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.714%20185.775C244.113%20183.376%20244.113%20179.492%20241.714%20177.094L241.707%20177.101ZM169.859%20156.891C146.134%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.895%2090.4489C136.482%2086.4924%20139.707%2082.9924%20143.424%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.627%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_148718'%20x='108.634'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_148718'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_148718'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_148718'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuNeoFormulaire="/assets/js/ode-explorer/illu-empty-search-formulaire2.svg",illuNeoForum="/assets/js/ode-explorer/illu-empty-search-forum2.svg",illuNeoHomeworks="/assets/js/ode-explorer/illu-empty-search-homeworks2.svg",illuNeoMagneto="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_141030)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M127.341%20120.329V89.4164C127.341%2077.1185%20122.455%2065.3242%20113.759%2056.6282C105.063%2047.9322%2093.2691%2043.0469%2080.9711%2043.0469C68.6731%2043.0469%2056.8789%2047.9322%2048.1829%2056.6282C39.4869%2065.3242%2034.6016%2077.1185%2034.6016%2089.4164L34.6016%20120.329H55.2103V89.4164C55.2103%2082.5842%2057.9243%2076.0319%2062.7554%2071.2008C67.5865%2066.3696%2074.1389%2063.6556%2080.9711%2063.6556C84.3541%2063.6556%2087.7039%2064.3219%2090.8294%2065.6165C93.9548%2066.9111%2096.7947%2068.8086%2099.1868%2071.2007C101.579%2073.5929%20103.476%2076.4327%20104.771%2079.5582C106.066%2082.6836%20106.732%2086.0335%20106.732%2089.4164V120.329M55.2103%20130.634H34.6016V146.09H55.2103M127.341%20130.634H106.732V146.09H127.341'%20fill='%23ECBE30'/%3e%3cpath%20d='M199.472%20120.329V89.4164C199.472%2083.3271%20198.272%2077.2974%20195.942%2071.6716C193.612%2066.0457%20190.196%2060.934%20185.89%2056.6282C181.584%2052.3224%20176.473%2048.9068%20170.847%2046.5765C165.221%2044.2463%20159.191%2043.0469%20153.102%2043.0469C140.804%2043.0469%20129.01%2047.9322%20120.314%2056.6282C111.618%2065.3242%20106.732%2077.1185%20106.732%2089.4164V120.329H127.341V89.4164C127.341%2082.5842%20130.055%2076.0319%20134.886%2071.2008C139.717%2066.3696%20146.27%2063.6556%20153.102%2063.6556C156.485%2063.6556%20159.835%2064.3219%20162.96%2065.6165C166.086%2066.9111%20168.926%2068.8086%20171.318%2071.2007C173.71%2073.5929%20175.607%2076.4327%20176.902%2079.5582C178.197%2082.6836%20178.863%2086.0335%20178.863%2089.4164V120.329M127.341%20130.634H106.732V146.09H127.341M199.472%20130.634H178.863V146.09H199.472'%20fill='%23ECBE30'/%3e%3cg%20filter='url(%23filter0_d_3597_141030)'%3e%3cellipse%20cx='169.708'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.012%20150.405C214.309%20149.703%20213.483%20149.21%20212.606%20148.92C220.41%20139.391%20225.099%20127.21%20225.099%20113.934C225.099%2095.9054%20216.454%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.867%2058.6953C165.678%2058.6953%20161.599%2059.1808%20157.678%2060.0649C152.635%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.367%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.635%20106.855%20114.635%20113.934C114.635%20144.442%20139.359%20169.166%20169.867%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.338%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.715%20185.775C244.113%20183.376%20244.113%20179.492%20241.715%20177.094L241.707%20177.101ZM169.859%20156.891C146.135%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.896%2090.4489C136.483%2086.4924%20139.707%2082.9924%20143.425%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.628%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_141030'%20x='108.635'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_141030'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_141030'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_141030'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuNeoWiki="/assets/js/ode-explorer/illu-empty-search-wiki2.svg",illuNeoEmpty="/assets/js/ode-explorer/illu-empty-search2.svg",emptyScreenMapping={one:{blog:illuOneBlog,wiki:illuOneWiki,empty:illuOneEmpty,"collaborative-wall":illuOneCollaborativeWall,community:illuOneCommunity,exercizer:illuOneExercizer,formulaire:illuOneFormulaire,forum:illuOneForum,homeworks:illuOneHomeworks,magneto:illuOneMagneto},neo:{blog:illuNeoBlog,wiki:illuNeoWiki,empty:illuNeoEmpty,"collaborative-wall":illuNeoCollaborativeWall,community:illuNeoCommunity,exercizer:illuNeoExercizer,formulaire:illuNeoFormulaire,forum:illuNeoForum,homeworks:illuNeoHomeworks,magneto:illuNeoMagneto}},InternalLinker=({appCode:tt,defaultAppCode:et,defaultResourceId:rt,onChange:nt,onSelect:st,multiple:ot=!0,resourceList:at,applicationList:lt,showApplicationSelector:ut=!0})=>{const{t:ct}=useTranslation(),{theme:dt}=useEdificeTheme(),{resourceApplications:ht,loadResources:ft}=useResourceSearch(tt),[xt,yt]=reactExports.useState(),[vt,Et]=reactExports.useState(),[bt,St]=reactExports.useState(),wt=useDebounce(bt||"",500),[Rt,Ct]=reactExports.useState([]),Pt=reactExports.useCallback((Gt,Ot)=>{var Ut,Bt,Yt;if(!Ot)return!0;const Zt=(Ot==null?void 0:Ot.toLowerCase())||"";return((Ut=Gt.name)==null?void 0:Ut.toLowerCase().includes(Zt))||((Bt=Gt.creatorName)==null?void 0:Bt.toLowerCase().includes(Zt))||((Yt=Gt.description)==null?void 0:Yt.toLowerCase().includes(Zt))},[]),It=reactExports.useCallback(Gt=>Gt.sort((Ot,Ut)=>Ot.modifiedAt<Ut.modifiedAt?1:-1),[]),jt=reactExports.useCallback(Gt=>{async function Ot(){if(at){const Ut=at.filter(Bt=>Pt(Bt,Gt));Ct(It(Ut));return}else if(vt)try{const Ut=(await ft({application:vt.application,search:Gt,types:[vt.application],filters:{},pagination:{startIdx:0,pageSize:300}})).filter(Bt=>Pt(Bt,Gt));Ct(It(Ut));return}catch{}Ct([])}Ot()},[ft,vt,Pt,It,at]),[Dt,Vt]=reactExports.useState([]),Ft=Gt=>{nt==null||nt(Gt),Et(Gt)},Ht=Gt=>{const Ot=Gt.target.value;St(Ot.toString())},Nt=reactExports.useCallback(Gt=>{jt(bt),Gt.stopPropagation(),Gt.preventDefault()},[jt,bt]),Lt=reactExports.useCallback(Gt=>Dt.findIndex(Ot=>Ot.assetId===Gt),[Dt]),Mt=reactExports.useCallback(Gt=>{Vt(ot?Ot=>[...Ot,Gt]:[Gt])},[Vt,ot]),zt=reactExports.useCallback(Gt=>{const Ot=Lt(Gt.assetId);Ot<0?Mt(Gt):Vt(Dt.filter((Ut,Bt)=>Bt!==Ot))},[Lt,Mt,Dt]);return reactExports.useEffect(()=>{(async()=>{if(lt){yt(lt.sort((Ut,Bt)=>Ut.displayName.localeCompare(Bt.displayName)));return}const Gt=ht.map(Ut=>odeServices.session().getWebApp(Ut)),Ot=await Promise.all(Gt);yt(ht.map((Ut,Bt)=>{var Yt;return{application:Ut,displayName:ct(((Yt=Ot[Bt])==null?void 0:Yt.displayName)??Ut),icon:jsxRuntimeExports.jsx(AppIcon,{app:Ot[Bt],size:"24"})}}).sort((Ut,Bt)=>Ut.displayName.localeCompare(Bt.displayName)))})()},[ht,ct,lt]),reactExports.useEffect(()=>{jt(wt)},[jt,wt]),reactExports.useEffect(()=>{st==null||st(Dt)},[Dt]),reactExports.useEffect(()=>{var Gt;const Ot=et??((lt==null?void 0:lt.length)===1&&((Gt=lt==null?void 0:lt[0])==null?void 0:Gt.application));if(Ot){const Ut=xt==null?void 0:xt.find(Bt=>Ot===Bt.application);Et(Ut),jt("")}},[xt,et]),reactExports.useEffect(()=>{if(rt&&Lt(rt)<0){const Gt=Rt==null?void 0:Rt.find(Ot=>rt===Ot.assetId);Gt&&Mt(Gt)}},[Rt]),jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column flex-fill overflow-hidden",children:[jsxRuntimeExports.jsxs("div",{className:"search d-flex bg-light rounded-top border border-bottom-0",children:[ut&&jsxRuntimeExports.jsx("div",{className:"flex-shrink-1 px-8 py-12 border-end",children:jsxRuntimeExports.jsxs(Dropdown,{overflow:!0,children:[jsxRuntimeExports.jsx(Dropdown.Trigger,{icon:jsxRuntimeExports.jsx("div",{className:"pe-8",children:(vt==null?void 0:vt.icon)||jsxRuntimeExports.jsx(SvgIconApplications,{})}),label:ct((vt==null?void 0:vt.displayName)||"bbm.linker.int.choose"),variant:"ghost",size:"md"}),jsxRuntimeExports.jsx(Dropdown.Menu,{children:xt==null?void 0:xt.map(Gt=>jsxRuntimeExports.jsx(Dropdown.Item,{icon:Gt.icon,onClick:()=>Ft(Gt),children:Gt.displayName},Gt.application))})]})}),jsxRuntimeExports.jsx("div",{className:"flex-grow-1 align-self-center",children:jsxRuntimeExports.jsx("form",{className:"gap-16 d-flex w-100 align-items-center px-16 py-8",onSubmit:Nt,children:jsxRuntimeExports.jsx(SearchBar,{isVariant:!0,placeholder:ct("search"),size:"lg",className:"w-100",disabled:!vt,onChange:Ht})})})]}),jsxRuntimeExports.jsxs("div",{className:"internal-linker flex-grow-1 w-100 rounded-bottom border gap-0 overflow-auto",children:[vt&&Rt&&Rt.length>0&&jsxRuntimeExports.jsx("div",{children:Rt.map(Gt=>{const Ot=Dt.findIndex(Ut=>Ut.assetId===Gt.assetId)>=0;return jsxRuntimeExports.jsx(LinkerCard,{doc:Gt,isSelected:Ot,onClick:()=>zt(Gt)},Gt.path)})}),vt&&Rt&&Rt.length<=0&&jsxRuntimeExports.jsx("div",{className:"d-flex justify-content-center mt-16",children:jsxRuntimeExports.jsx(EmptyScreen,{imageSrc:emptyScreenMapping[(dt==null?void 0:dt.bootstrapVersion)??"one"][vt==null?void 0:vt.application],text:ct("bbm.linker.int.notfound"),className:"mt-16"})}),!vt&&jsxRuntimeExports.jsx("div",{className:"d-flex justify-content-center mt-32",children:jsxRuntimeExports.jsx(EmptyScreen,{imageSrc:emptyScreenMapping[(dt==null?void 0:dt.bootstrapVersion)??"one"].empty,text:ct("bbm.linker.int.empty"),className:"mt-32"})})]})]})},InternalLink=({target:tt,resourceId:et,appPrefix:rt})=>{const{t:nt}=useTranslation(),{setResult:st,setResultCounter:ot,appCode:at,multiple:lt}=useMediaLibraryContext(),[ut,ct]=useToggle(tt==="_blank"),[dt,ht]=reactExports.useState([]),ft=xt=>{ht(xt)};return reactExports.useEffect(()=>{st({target:ut?"_blank":void 0,resources:dt}),dt&&dt.length?ot(dt.length):ot(void 0)},[ut,dt]),jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column flex-fill gap-16 overflow-hidden",children:[jsxRuntimeExports.jsx(InternalLinker,{appCode:at,defaultAppCode:rt,defaultResourceId:et,onSelect:ft,multiple:lt}),jsxRuntimeExports.jsx(Checkbox,{className:"align-items-center",checked:ut,label:nt("bbm.linker.open.tab"),onChange:ct})]})},SvgIconReset=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.583 7.313 3.976 3.87a.996.996 0 1 0-1.96.346l1.012 5.747a.996.996 0 0 0 1.153.809l5.743-1.014a.997.997 0 0 0-.346-1.962l-3.3.582a7.754 7.754 0 0 1 8.399-4.254 7.76 7.76 0 0 1 .78 15.064 7.745 7.745 0 0 1-8.912-3.56.995.995 0 1 0-1.724.997 9.744 9.744 0 0 0 11.201 4.474 9.74 9.74 0 0 0 5.19-3.718 9.756 9.756 0 0 0-.625-12.055A9.74 9.74 0 0 0 8.73 3.117a9.75 9.75 0 0 0-4.147 4.196",clipRule:"evenodd"})]}),SvgIconWand=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 0a1 1 0 0 1 1 1 1 1 0 0 0 1 1 1 1 0 1 1 0 2 1 1 0 0 0-1 1 1 1 0 1 1-2 0 1 1 0 0 0-1-1 1 1 0 0 1 0-2 1 1 0 0 0 1-1 1 1 0 0 1 1-1m9.914 2a2 2 0 0 0-2.828 0L1 18.086a2 2 0 0 0 0 2.828L3.086 23a2 2 0 0 0 2.828 0L22 6.914a2 2 0 0 0 0-2.828zm-3.75 3.75L18.5 3.414 20.586 5.5 18.25 7.836zM14.75 7.164 2.414 19.5 4.5 21.586 16.836 9.25zM21 13a1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 1 1 0 0 1 1-1 1 1 0 1 0 0-2 1 1 0 0 1-1-1",clipRule:"evenodd"})]}),UploadCard=({item:tt,status:et="idle",isClickable:rt=!1,isSelectable:nt=!1,onDelete:st,onEdit:ot,onRetry:at})=>{const{t:lt}=useTranslation(),{src:ut,name:ct,info:dt}=tt,ht=et==="idle",ft=et==="loading",xt=et==="success",yt=dt==null?void 0:dt.type.startsWith("image"),vt={text:"",context:null,image:jsxRuntimeExports.jsx("img",{src:commonPlaceholder,alt:"",width:"48",height:"48"})},Et={error:{text:jsxRuntimeExports.jsx("strong",{children:jsxRuntimeExports.jsx("small",{className:"text-danger caption",children:lt("tiptap.upload.error")})}),context:jsxRuntimeExports.jsx(Button,{leftIcon:jsxRuntimeExports.jsx(SvgIconReset,{}),variant:"ghost",color:"tertiary",onClick:at,children:lt("tiptap.upload.retry")}),image:jsxRuntimeExports.jsx(Image$1,{alt:"",src:`${commonPlaceholder}/common/image-status-error.svg`,objectFit:"cover"})},idle:vt,loading:{text:"",context:jsxRuntimeExports.jsx(Tooltip,{message:lt("tiptap.tooltip.upload.loading"),placement:"top",children:jsxRuntimeExports.jsx(Loading,{isLoading:!0,loadingPosition:"left",className:"text-secondary"})}),image:vt.image},warning:vt,success:{text:jsxRuntimeExports.jsxs("em",{children:[dt==null?void 0:dt.type," ",(dt==null?void 0:dt.weight)&&`- ${dt.weight}`]}),context:jsxRuntimeExports.jsx(Tooltip,{message:lt("tiptap.tooltip.upload.loaded"),placement:"top",children:jsxRuntimeExports.jsx(SvgIconSuccessOutline,{className:"text-success"})}),image:jsxRuntimeExports.jsx(Image$1,{alt:"",src:ut??"",width:"48",objectFit:"cover",className:"rounded",style:{aspectRatio:1/1}})},unknown:vt},bt=()=>yt&&jsxRuntimeExports.jsx(Tooltip,{message:lt("tiptap.tooltip.upload.edit"),placement:"top",children:jsxRuntimeExports.jsx(IconButton,{icon:jsxRuntimeExports.jsx(SvgIconWand,{}),variant:"ghost","aria-label":lt("tiptap.tooltip.upload.loading"),disabled:ft||!xt,onClick:ot,color:"secondary"})});return jsxRuntimeExports.jsx(Card,{isClickable:rt,isSelectable:nt,className:"card-upload",children:jsxRuntimeExports.jsxs(Card.Body,{children:[jsxRuntimeExports.jsx("div",{className:"card-image",children:Et[et].image}),jsxRuntimeExports.jsxs("div",{className:"text-truncate",children:[jsxRuntimeExports.jsx(Card.Text,{children:ct}),jsxRuntimeExports.jsx(Card.Text,{className:"caption",children:Et[et].text})]}),!ht&&jsxRuntimeExports.jsx("div",{className:"ms-auto",children:jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center gap-12",children:[Et[et].context,!ht&&jsxRuntimeExports.jsx("div",{className:"vr"}),bt(),jsxRuntimeExports.jsx(Tooltip,{message:lt("tiptap.tooltip.upload.delete"),placement:"top",children:jsxRuntimeExports.jsx(IconButton,{icon:jsxRuntimeExports.jsx(SvgIconClose,{}),variant:"ghost","aria-label":lt("tiptap.tooltip.upload.delete"),color:"tertiary",onClick:st})})]})})]})})};var module={exports:{}},ENV=(tt=>(tt[tt.WEBGL_LEGACY=0]="WEBGL_LEGACY",tt[tt.WEBGL=1]="WEBGL",tt[tt.WEBGL2=2]="WEBGL2",tt))(ENV||{}),RENDERER_TYPE=(tt=>(tt[tt.UNKNOWN=0]="UNKNOWN",tt[tt.WEBGL=1]="WEBGL",tt[tt.CANVAS=2]="CANVAS",tt))(RENDERER_TYPE||{}),BUFFER_BITS=(tt=>(tt[tt.COLOR=16384]="COLOR",tt[tt.DEPTH=256]="DEPTH",tt[tt.STENCIL=1024]="STENCIL",tt))(BUFFER_BITS||{}),BLEND_MODES=(tt=>(tt[tt.NORMAL=0]="NORMAL",tt[tt.ADD=1]="ADD",tt[tt.MULTIPLY=2]="MULTIPLY",tt[tt.SCREEN=3]="SCREEN",tt[tt.OVERLAY=4]="OVERLAY",tt[tt.DARKEN=5]="DARKEN",tt[tt.LIGHTEN=6]="LIGHTEN",tt[tt.COLOR_DODGE=7]="COLOR_DODGE",tt[tt.COLOR_BURN=8]="COLOR_BURN",tt[tt.HARD_LIGHT=9]="HARD_LIGHT",tt[tt.SOFT_LIGHT=10]="SOFT_LIGHT",tt[tt.DIFFERENCE=11]="DIFFERENCE",tt[tt.EXCLUSION=12]="EXCLUSION",tt[tt.HUE=13]="HUE",tt[tt.SATURATION=14]="SATURATION",tt[tt.COLOR=15]="COLOR",tt[tt.LUMINOSITY=16]="LUMINOSITY",tt[tt.NORMAL_NPM=17]="NORMAL_NPM",tt[tt.ADD_NPM=18]="ADD_NPM",tt[tt.SCREEN_NPM=19]="SCREEN_NPM",tt[tt.NONE=20]="NONE",tt[tt.SRC_OVER=0]="SRC_OVER",tt[tt.SRC_IN=21]="SRC_IN",tt[tt.SRC_OUT=22]="SRC_OUT",tt[tt.SRC_ATOP=23]="SRC_ATOP",tt[tt.DST_OVER=24]="DST_OVER",tt[tt.DST_IN=25]="DST_IN",tt[tt.DST_OUT=26]="DST_OUT",tt[tt.DST_ATOP=27]="DST_ATOP",tt[tt.ERASE=26]="ERASE",tt[tt.SUBTRACT=28]="SUBTRACT",tt[tt.XOR=29]="XOR",tt))(BLEND_MODES||{}),DRAW_MODES=(tt=>(tt[tt.POINTS=0]="POINTS",tt[tt.LINES=1]="LINES",tt[tt.LINE_LOOP=2]="LINE_LOOP",tt[tt.LINE_STRIP=3]="LINE_STRIP",tt[tt.TRIANGLES=4]="TRIANGLES",tt[tt.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",tt[tt.TRIANGLE_FAN=6]="TRIANGLE_FAN",tt))(DRAW_MODES||{}),FORMATS=(tt=>(tt[tt.RGBA=6408]="RGBA",tt[tt.RGB=6407]="RGB",tt[tt.RG=33319]="RG",tt[tt.RED=6403]="RED",tt[tt.RGBA_INTEGER=36249]="RGBA_INTEGER",tt[tt.RGB_INTEGER=36248]="RGB_INTEGER",tt[tt.RG_INTEGER=33320]="RG_INTEGER",tt[tt.RED_INTEGER=36244]="RED_INTEGER",tt[tt.ALPHA=6406]="ALPHA",tt[tt.LUMINANCE=6409]="LUMINANCE",tt[tt.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",tt[tt.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",tt[tt.DEPTH_STENCIL=34041]="DEPTH_STENCIL",tt))(FORMATS||{}),TARGETS=(tt=>(tt[tt.TEXTURE_2D=3553]="TEXTURE_2D",tt[tt.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",tt[tt.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",tt[tt.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",tt[tt.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",tt[tt.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",tt[tt.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",tt[tt.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",tt[tt.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",tt))(TARGETS||{}),TYPES=(tt=>(tt[tt.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",tt[tt.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",tt[tt.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",tt[tt.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",tt[tt.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",tt[tt.UNSIGNED_INT=5125]="UNSIGNED_INT",tt[tt.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",tt[tt.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",tt[tt.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",tt[tt.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",tt[tt.BYTE=5120]="BYTE",tt[tt.SHORT=5122]="SHORT",tt[tt.INT=5124]="INT",tt[tt.FLOAT=5126]="FLOAT",tt[tt.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",tt[tt.HALF_FLOAT=36193]="HALF_FLOAT",tt))(TYPES||{}),SAMPLER_TYPES=(tt=>(tt[tt.FLOAT=0]="FLOAT",tt[tt.INT=1]="INT",tt[tt.UINT=2]="UINT",tt))(SAMPLER_TYPES||{}),SCALE_MODES=(tt=>(tt[tt.NEAREST=0]="NEAREST",tt[tt.LINEAR=1]="LINEAR",tt))(SCALE_MODES||{}),WRAP_MODES=(tt=>(tt[tt.CLAMP=33071]="CLAMP",tt[tt.REPEAT=10497]="REPEAT",tt[tt.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",tt))(WRAP_MODES||{}),MIPMAP_MODES=(tt=>(tt[tt.OFF=0]="OFF",tt[tt.POW2=1]="POW2",tt[tt.ON=2]="ON",tt[tt.ON_MANUAL=3]="ON_MANUAL",tt))(MIPMAP_MODES||{}),ALPHA_MODES=(tt=>(tt[tt.NPM=0]="NPM",tt[tt.UNPACK=1]="UNPACK",tt[tt.PMA=2]="PMA",tt[tt.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",tt[tt.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",tt[tt.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",tt))(ALPHA_MODES||{}),CLEAR_MODES=(tt=>(tt[tt.NO=0]="NO",tt[tt.YES=1]="YES",tt[tt.AUTO=2]="AUTO",tt[tt.BLEND=0]="BLEND",tt[tt.CLEAR=1]="CLEAR",tt[tt.BLIT=2]="BLIT",tt))(CLEAR_MODES||{}),GC_MODES=(tt=>(tt[tt.AUTO=0]="AUTO",tt[tt.MANUAL=1]="MANUAL",tt))(GC_MODES||{}),PRECISION=(tt=>(tt.LOW="lowp",tt.MEDIUM="mediump",tt.HIGH="highp",tt))(PRECISION||{}),MASK_TYPES=(tt=>(tt[tt.NONE=0]="NONE",tt[tt.SCISSOR=1]="SCISSOR",tt[tt.STENCIL=2]="STENCIL",tt[tt.SPRITE=3]="SPRITE",tt[tt.COLOR=4]="COLOR",tt))(MASK_TYPES||{}),MSAA_QUALITY=(tt=>(tt[tt.NONE=0]="NONE",tt[tt.LOW=2]="LOW",tt[tt.MEDIUM=4]="MEDIUM",tt[tt.HIGH=8]="HIGH",tt))(MSAA_QUALITY||{}),BUFFER_TYPE=(tt=>(tt[tt.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",tt[tt.ARRAY_BUFFER=34962]="ARRAY_BUFFER",tt[tt.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",tt))(BUFFER_TYPE||{});const BrowserAdapter={createCanvas:(tt,et)=>{const rt=document.createElement("canvas");return rt.width=tt,rt.height=et,rt},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(tt,et)=>fetch(tt,et),parseXML:tt=>new DOMParser().parseFromString(tt,"text/xml")},settings={ADAPTER:BrowserAdapter,RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var appleIphone=/iPhone/i,appleIpod=/iPod/i,appleTablet=/iPad/i,appleUniversal=/\biOS-universal(?:.+)Mac\b/i,androidPhone=/\bAndroid(?:.+)Mobile\b/i,androidTablet=/Android/i,amazonPhone=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,amazonTablet=/Silk/i,windowsPhone=/Windows Phone/i,windowsTablet=/\bWindows(?:.+)ARM\b/i,otherBlackBerry=/BlackBerry/i,otherBlackBerry10=/BB10/i,otherOpera=/Opera Mini/i,otherChrome=/\b(CriOS|Chrome)(?:.+)Mobile/i,otherFirefox=/Mobile(?:.+)Firefox\b/i,isAppleTabletOnIos13=function(tt){return typeof tt<"u"&&tt.platform==="MacIntel"&&typeof tt.maxTouchPoints=="number"&&tt.maxTouchPoints>1&&typeof MSStream>"u"};function createMatch(tt){return function(et){return et.test(tt)}}function isMobile$1(tt){var et={userAgent:"",platform:"",maxTouchPoints:0};!tt&&typeof navigator<"u"?et={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof tt=="string"?et.userAgent=tt:tt&&tt.userAgent&&(et={userAgent:tt.userAgent,platform:tt.platform,maxTouchPoints:tt.maxTouchPoints||0});var rt=et.userAgent,nt=rt.split("[FBAN");typeof nt[1]<"u"&&(rt=nt[0]),nt=rt.split("Twitter"),typeof nt[1]<"u"&&(rt=nt[0]);var st=createMatch(rt),ot={apple:{phone:st(appleIphone)&&!st(windowsPhone),ipod:st(appleIpod),tablet:!st(appleIphone)&&(st(appleTablet)||isAppleTabletOnIos13(et))&&!st(windowsPhone),universal:st(appleUniversal),device:(st(appleIphone)||st(appleIpod)||st(appleTablet)||st(appleUniversal)||isAppleTabletOnIos13(et))&&!st(windowsPhone)},amazon:{phone:st(amazonPhone),tablet:!st(amazonPhone)&&st(amazonTablet),device:st(amazonPhone)||st(amazonTablet)},android:{phone:!st(windowsPhone)&&st(amazonPhone)||!st(windowsPhone)&&st(androidPhone),tablet:!st(windowsPhone)&&!st(amazonPhone)&&!st(androidPhone)&&(st(amazonTablet)||st(androidTablet)),device:!st(windowsPhone)&&(st(amazonPhone)||st(amazonTablet)||st(androidPhone)||st(androidTablet))||st(/\bokhttp\b/i)},windows:{phone:st(windowsPhone),tablet:st(windowsTablet),device:st(windowsPhone)||st(windowsTablet)},other:{blackberry:st(otherBlackBerry),blackberry10:st(otherBlackBerry10),opera:st(otherOpera),firefox:st(otherFirefox),chrome:st(otherChrome),device:st(otherBlackBerry)||st(otherBlackBerry10)||st(otherOpera)||st(otherFirefox)||st(otherChrome)},any:!1,phone:!1,tablet:!1};return ot.any=ot.apple.device||ot.android.device||ot.windows.device||ot.other.device,ot.phone=ot.apple.phone||ot.android.phone||ot.windows.phone,ot.tablet=ot.apple.tablet||ot.android.tablet||ot.windows.tablet,ot}const isMobileCall=isMobile$1.default??isMobile$1,isMobile=isMobileCall(globalThis.navigator);settings.RETINA_PREFIX=/@([0-9\.]+)x/;settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var eventemitter3={exports:{}};(function(tt){var et=Object.prototype.hasOwnProperty,rt="~";function nt(){}Object.create&&(nt.prototype=Object.create(null),new nt().__proto__||(rt=!1));function st(ut,ct,dt){this.fn=ut,this.context=ct,this.once=dt||!1}function ot(ut,ct,dt,ht,ft){if(typeof dt!="function")throw new TypeError("The listener must be a function");var xt=new st(dt,ht||ut,ft),yt=rt?rt+ct:ct;return ut._events[yt]?ut._events[yt].fn?ut._events[yt]=[ut._events[yt],xt]:ut._events[yt].push(xt):(ut._events[yt]=xt,ut._eventsCount++),ut}function at(ut,ct){--ut._eventsCount===0?ut._events=new nt:delete ut._events[ct]}function lt(){this._events=new nt,this._eventsCount=0}lt.prototype.eventNames=function(){var ct=[],dt,ht;if(this._eventsCount===0)return ct;for(ht in dt=this._events)et.call(dt,ht)&&ct.push(rt?ht.slice(1):ht);return Object.getOwnPropertySymbols?ct.concat(Object.getOwnPropertySymbols(dt)):ct},lt.prototype.listeners=function(ct){var dt=rt?rt+ct:ct,ht=this._events[dt];if(!ht)return[];if(ht.fn)return[ht.fn];for(var ft=0,xt=ht.length,yt=new Array(xt);ft<xt;ft++)yt[ft]=ht[ft].fn;return yt},lt.prototype.listenerCount=function(ct){var dt=rt?rt+ct:ct,ht=this._events[dt];return ht?ht.fn?1:ht.length:0},lt.prototype.emit=function(ct,dt,ht,ft,xt,yt){var vt=rt?rt+ct:ct;if(!this._events[vt])return!1;var Et=this._events[vt],bt=arguments.length,St,wt;if(Et.fn){switch(Et.once&&this.removeListener(ct,Et.fn,void 0,!0),bt){case 1:return Et.fn.call(Et.context),!0;case 2:return Et.fn.call(Et.context,dt),!0;case 3:return Et.fn.call(Et.context,dt,ht),!0;case 4:return Et.fn.call(Et.context,dt,ht,ft),!0;case 5:return Et.fn.call(Et.context,dt,ht,ft,xt),!0;case 6:return Et.fn.call(Et.context,dt,ht,ft,xt,yt),!0}for(wt=1,St=new Array(bt-1);wt<bt;wt++)St[wt-1]=arguments[wt];Et.fn.apply(Et.context,St)}else{var Rt=Et.length,Ct;for(wt=0;wt<Rt;wt++)switch(Et[wt].once&&this.removeListener(ct,Et[wt].fn,void 0,!0),bt){case 1:Et[wt].fn.call(Et[wt].context);break;case 2:Et[wt].fn.call(Et[wt].context,dt);break;case 3:Et[wt].fn.call(Et[wt].context,dt,ht);break;case 4:Et[wt].fn.call(Et[wt].context,dt,ht,ft);break;default:if(!St)for(Ct=1,St=new Array(bt-1);Ct<bt;Ct++)St[Ct-1]=arguments[Ct];Et[wt].fn.apply(Et[wt].context,St)}}return!0},lt.prototype.on=function(ct,dt,ht){return ot(this,ct,dt,ht,!1)},lt.prototype.once=function(ct,dt,ht){return ot(this,ct,dt,ht,!0)},lt.prototype.removeListener=function(ct,dt,ht,ft){var xt=rt?rt+ct:ct;if(!this._events[xt])return this;if(!dt)return at(this,xt),this;var yt=this._events[xt];if(yt.fn)yt.fn===dt&&(!ft||yt.once)&&(!ht||yt.context===ht)&&at(this,xt);else{for(var vt=0,Et=[],bt=yt.length;vt<bt;vt++)(yt[vt].fn!==dt||ft&&!yt[vt].once||ht&&yt[vt].context!==ht)&&Et.push(yt[vt]);Et.length?this._events[xt]=Et.length===1?Et[0]:Et:at(this,xt)}return this},lt.prototype.removeAllListeners=function(ct){var dt;return ct?(dt=rt?rt+ct:ct,this._events[dt]&&at(this,dt)):(this._events=new nt,this._eventsCount=0),this},lt.prototype.off=lt.prototype.removeListener,lt.prototype.addListener=lt.prototype.on,lt.prefixed=rt,lt.EventEmitter=lt,tt.exports=lt})(eventemitter3);var eventemitter3Exports=eventemitter3.exports;const EventEmitter=getDefaultExportFromCjs(eventemitter3Exports);var earcut$2={exports:{}};earcut$2.exports=earcut;earcut$2.exports.default=earcut;function earcut(tt,et,rt){rt=rt||2;var nt=et&&et.length,st=nt?et[0]*rt:tt.length,ot=linkedList(tt,0,st,rt,!0),at=[];if(!ot||ot.next===ot.prev)return at;var lt,ut,ct,dt,ht,ft,xt;if(nt&&(ot=eliminateHoles(tt,et,ot,rt)),tt.length>80*rt){lt=ct=tt[0],ut=dt=tt[1];for(var yt=rt;yt<st;yt+=rt)ht=tt[yt],ft=tt[yt+1],ht<lt&&(lt=ht),ft<ut&&(ut=ft),ht>ct&&(ct=ht),ft>dt&&(dt=ft);xt=Math.max(ct-lt,dt-ut),xt=xt!==0?32767/xt:0}return earcutLinked(ot,at,rt,lt,ut,xt,0),at}function linkedList(tt,et,rt,nt,st){var ot,at;if(st===signedArea(tt,et,rt,nt)>0)for(ot=et;ot<rt;ot+=nt)at=insertNode(ot,tt[ot],tt[ot+1],at);else for(ot=rt-nt;ot>=et;ot-=nt)at=insertNode(ot,tt[ot],tt[ot+1],at);return at&&equals(at,at.next)&&(removeNode(at),at=at.next),at}function filterPoints(tt,et){if(!tt)return tt;et||(et=tt);var rt=tt,nt;do if(nt=!1,!rt.steiner&&(equals(rt,rt.next)||area(rt.prev,rt,rt.next)===0)){if(removeNode(rt),rt=et=rt.prev,rt===rt.next)break;nt=!0}else rt=rt.next;while(nt||rt!==et);return et}function earcutLinked(tt,et,rt,nt,st,ot,at){if(tt){!at&&ot&&indexCurve(tt,nt,st,ot);for(var lt=tt,ut,ct;tt.prev!==tt.next;){if(ut=tt.prev,ct=tt.next,ot?isEarHashed(tt,nt,st,ot):isEar(tt)){et.push(ut.i/rt|0),et.push(tt.i/rt|0),et.push(ct.i/rt|0),removeNode(tt),tt=ct.next,lt=ct.next;continue}if(tt=ct,tt===lt){at?at===1?(tt=cureLocalIntersections(filterPoints(tt),et,rt),earcutLinked(tt,et,rt,nt,st,ot,2)):at===2&&splitEarcut(tt,et,rt,nt,st,ot):earcutLinked(filterPoints(tt),et,rt,nt,st,ot,1);break}}}}function isEar(tt){var et=tt.prev,rt=tt,nt=tt.next;if(area(et,rt,nt)>=0)return!1;for(var st=et.x,ot=rt.x,at=nt.x,lt=et.y,ut=rt.y,ct=nt.y,dt=st<ot?st<at?st:at:ot<at?ot:at,ht=lt<ut?lt<ct?lt:ct:ut<ct?ut:ct,ft=st>ot?st>at?st:at:ot>at?ot:at,xt=lt>ut?lt>ct?lt:ct:ut>ct?ut:ct,yt=nt.next;yt!==et;){if(yt.x>=dt&&yt.x<=ft&&yt.y>=ht&&yt.y<=xt&&pointInTriangle(st,lt,ot,ut,at,ct,yt.x,yt.y)&&area(yt.prev,yt,yt.next)>=0)return!1;yt=yt.next}return!0}function isEarHashed(tt,et,rt,nt){var st=tt.prev,ot=tt,at=tt.next;if(area(st,ot,at)>=0)return!1;for(var lt=st.x,ut=ot.x,ct=at.x,dt=st.y,ht=ot.y,ft=at.y,xt=lt<ut?lt<ct?lt:ct:ut<ct?ut:ct,yt=dt<ht?dt<ft?dt:ft:ht<ft?ht:ft,vt=lt>ut?lt>ct?lt:ct:ut>ct?ut:ct,Et=dt>ht?dt>ft?dt:ft:ht>ft?ht:ft,bt=zOrder(xt,yt,et,rt,nt),St=zOrder(vt,Et,et,rt,nt),wt=tt.prevZ,Rt=tt.nextZ;wt&&wt.z>=bt&&Rt&&Rt.z<=St;){if(wt.x>=xt&&wt.x<=vt&&wt.y>=yt&&wt.y<=Et&&wt!==st&&wt!==at&&pointInTriangle(lt,dt,ut,ht,ct,ft,wt.x,wt.y)&&area(wt.prev,wt,wt.next)>=0||(wt=wt.prevZ,Rt.x>=xt&&Rt.x<=vt&&Rt.y>=yt&&Rt.y<=Et&&Rt!==st&&Rt!==at&&pointInTriangle(lt,dt,ut,ht,ct,ft,Rt.x,Rt.y)&&area(Rt.prev,Rt,Rt.next)>=0))return!1;Rt=Rt.nextZ}for(;wt&&wt.z>=bt;){if(wt.x>=xt&&wt.x<=vt&&wt.y>=yt&&wt.y<=Et&&wt!==st&&wt!==at&&pointInTriangle(lt,dt,ut,ht,ct,ft,wt.x,wt.y)&&area(wt.prev,wt,wt.next)>=0)return!1;wt=wt.prevZ}for(;Rt&&Rt.z<=St;){if(Rt.x>=xt&&Rt.x<=vt&&Rt.y>=yt&&Rt.y<=Et&&Rt!==st&&Rt!==at&&pointInTriangle(lt,dt,ut,ht,ct,ft,Rt.x,Rt.y)&&area(Rt.prev,Rt,Rt.next)>=0)return!1;Rt=Rt.nextZ}return!0}function cureLocalIntersections(tt,et,rt){var nt=tt;do{var st=nt.prev,ot=nt.next.next;!equals(st,ot)&&intersects(st,nt,nt.next,ot)&&locallyInside(st,ot)&&locallyInside(ot,st)&&(et.push(st.i/rt|0),et.push(nt.i/rt|0),et.push(ot.i/rt|0),removeNode(nt),removeNode(nt.next),nt=tt=ot),nt=nt.next}while(nt!==tt);return filterPoints(nt)}function splitEarcut(tt,et,rt,nt,st,ot){var at=tt;do{for(var lt=at.next.next;lt!==at.prev;){if(at.i!==lt.i&&isValidDiagonal(at,lt)){var ut=splitPolygon(at,lt);at=filterPoints(at,at.next),ut=filterPoints(ut,ut.next),earcutLinked(at,et,rt,nt,st,ot,0),earcutLinked(ut,et,rt,nt,st,ot,0);return}lt=lt.next}at=at.next}while(at!==tt)}function eliminateHoles(tt,et,rt,nt){var st=[],ot,at,lt,ut,ct;for(ot=0,at=et.length;ot<at;ot++)lt=et[ot]*nt,ut=ot<at-1?et[ot+1]*nt:tt.length,ct=linkedList(tt,lt,ut,nt,!1),ct===ct.next&&(ct.steiner=!0),st.push(getLeftmost(ct));for(st.sort(compareX),ot=0;ot<st.length;ot++)rt=eliminateHole(st[ot],rt);return rt}function compareX(tt,et){return tt.x-et.x}function eliminateHole(tt,et){var rt=findHoleBridge(tt,et);if(!rt)return et;var nt=splitPolygon(rt,tt);return filterPoints(nt,nt.next),filterPoints(rt,rt.next)}function findHoleBridge(tt,et){var rt=et,nt=tt.x,st=tt.y,ot=-1/0,at;do{if(st<=rt.y&&st>=rt.next.y&&rt.next.y!==rt.y){var lt=rt.x+(st-rt.y)*(rt.next.x-rt.x)/(rt.next.y-rt.y);if(lt<=nt&<>ot&&(ot=lt,at=rt.x<rt.next.x?rt:rt.next,lt===nt))return at}rt=rt.next}while(rt!==et);if(!at)return null;var ut=at,ct=at.x,dt=at.y,ht=1/0,ft;rt=at;do nt>=rt.x&&rt.x>=ct&&nt!==rt.x&&pointInTriangle(st<dt?nt:ot,st,ct,dt,st<dt?ot:nt,st,rt.x,rt.y)&&(ft=Math.abs(st-rt.y)/(nt-rt.x),locallyInside(rt,tt)&&(ft<ht||ft===ht&&(rt.x>at.x||rt.x===at.x&§orContainsSector(at,rt)))&&(at=rt,ht=ft)),rt=rt.next;while(rt!==ut);return at}function sectorContainsSector(tt,et){return area(tt.prev,tt,et.prev)<0&&area(et.next,tt,tt.next)<0}function indexCurve(tt,et,rt,nt){var st=tt;do st.z===0&&(st.z=zOrder(st.x,st.y,et,rt,nt)),st.prevZ=st.prev,st.nextZ=st.next,st=st.next;while(st!==tt);st.prevZ.nextZ=null,st.prevZ=null,sortLinked(st)}function sortLinked(tt){var et,rt,nt,st,ot,at,lt,ut,ct=1;do{for(rt=tt,tt=null,ot=null,at=0;rt;){for(at++,nt=rt,lt=0,et=0;et<ct&&(lt++,nt=nt.nextZ,!!nt);et++);for(ut=ct;lt>0||ut>0&&nt;)lt!==0&&(ut===0||!nt||rt.z<=nt.z)?(st=rt,rt=rt.nextZ,lt--):(st=nt,nt=nt.nextZ,ut--),ot?ot.nextZ=st:tt=st,st.prevZ=ot,ot=st;rt=nt}ot.nextZ=null,ct*=2}while(at>1);return tt}function zOrder(tt,et,rt,nt,st){return tt=(tt-rt)*st|0,et=(et-nt)*st|0,tt=(tt|tt<<8)&16711935,tt=(tt|tt<<4)&252645135,tt=(tt|tt<<2)&858993459,tt=(tt|tt<<1)&1431655765,et=(et|et<<8)&16711935,et=(et|et<<4)&252645135,et=(et|et<<2)&858993459,et=(et|et<<1)&1431655765,tt|et<<1}function getLeftmost(tt){var et=tt,rt=tt;do(et.x<rt.x||et.x===rt.x&&et.y<rt.y)&&(rt=et),et=et.next;while(et!==tt);return rt}function pointInTriangle(tt,et,rt,nt,st,ot,at,lt){return(st-at)*(et-lt)>=(tt-at)*(ot-lt)&&(tt-at)*(nt-lt)>=(rt-at)*(et-lt)&&(rt-at)*(ot-lt)>=(st-at)*(nt-lt)}function isValidDiagonal(tt,et){return tt.next.i!==et.i&&tt.prev.i!==et.i&&!intersectsPolygon(tt,et)&&(locallyInside(tt,et)&&locallyInside(et,tt)&&middleInside(tt,et)&&(area(tt.prev,tt,et.prev)||area(tt,et.prev,et))||equals(tt,et)&&area(tt.prev,tt,tt.next)>0&&area(et.prev,et,et.next)>0)}function area(tt,et,rt){return(et.y-tt.y)*(rt.x-et.x)-(et.x-tt.x)*(rt.y-et.y)}function equals(tt,et){return tt.x===et.x&&tt.y===et.y}function intersects(tt,et,rt,nt){var st=sign$3(area(tt,et,rt)),ot=sign$3(area(tt,et,nt)),at=sign$3(area(rt,nt,tt)),lt=sign$3(area(rt,nt,et));return!!(st!==ot&&at!==lt||st===0&&onSegment(tt,rt,et)||ot===0&&onSegment(tt,nt,et)||at===0&&onSegment(rt,tt,nt)||lt===0&&onSegment(rt,et,nt))}function onSegment(tt,et,rt){return et.x<=Math.max(tt.x,rt.x)&&et.x>=Math.min(tt.x,rt.x)&&et.y<=Math.max(tt.y,rt.y)&&et.y>=Math.min(tt.y,rt.y)}function sign$3(tt){return tt>0?1:tt<0?-1:0}function intersectsPolygon(tt,et){var rt=tt;do{if(rt.i!==tt.i&&rt.next.i!==tt.i&&rt.i!==et.i&&rt.next.i!==et.i&&intersects(rt,rt.next,tt,et))return!0;rt=rt.next}while(rt!==tt);return!1}function locallyInside(tt,et){return area(tt.prev,tt,tt.next)<0?area(tt,et,tt.next)>=0&&area(tt,tt.prev,et)>=0:area(tt,et,tt.prev)<0||area(tt,tt.next,et)<0}function middleInside(tt,et){var rt=tt,nt=!1,st=(tt.x+et.x)/2,ot=(tt.y+et.y)/2;do rt.y>ot!=rt.next.y>ot&&rt.next.y!==rt.y&&st<(rt.next.x-rt.x)*(ot-rt.y)/(rt.next.y-rt.y)+rt.x&&(nt=!nt),rt=rt.next;while(rt!==tt);return nt}function splitPolygon(tt,et){var rt=new Node$1(tt.i,tt.x,tt.y),nt=new Node$1(et.i,et.x,et.y),st=tt.next,ot=et.prev;return tt.next=et,et.prev=tt,rt.next=st,st.prev=rt,nt.next=rt,rt.prev=nt,ot.next=nt,nt.prev=ot,nt}function insertNode(tt,et,rt,nt){var st=new Node$1(tt,et,rt);return nt?(st.next=nt.next,st.prev=nt,nt.next.prev=st,nt.next=st):(st.prev=st,st.next=st),st}function removeNode(tt){tt.next.prev=tt.prev,tt.prev.next=tt.next,tt.prevZ&&(tt.prevZ.nextZ=tt.nextZ),tt.nextZ&&(tt.nextZ.prevZ=tt.prevZ)}function Node$1(tt,et,rt){this.i=tt,this.x=et,this.y=rt,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}earcut.deviation=function(tt,et,rt,nt){var st=et&&et.length,ot=st?et[0]*rt:tt.length,at=Math.abs(signedArea(tt,0,ot,rt));if(st)for(var lt=0,ut=et.length;lt<ut;lt++){var ct=et[lt]*rt,dt=lt<ut-1?et[lt+1]*rt:tt.length;at-=Math.abs(signedArea(tt,ct,dt,rt))}var ht=0;for(lt=0;lt<nt.length;lt+=3){var ft=nt[lt]*rt,xt=nt[lt+1]*rt,yt=nt[lt+2]*rt;ht+=Math.abs((tt[ft]-tt[yt])*(tt[xt+1]-tt[ft+1])-(tt[ft]-tt[xt])*(tt[yt+1]-tt[ft+1]))}return at===0&&ht===0?0:Math.abs((ht-at)/at)};function signedArea(tt,et,rt,nt){for(var st=0,ot=et,at=rt-nt;ot<rt;ot+=nt)st+=(tt[at]-tt[ot])*(tt[ot+1]+tt[at+1]),at=ot;return st}earcut.flatten=function(tt){for(var et=tt[0][0].length,rt={vertices:[],holes:[],dimensions:et},nt=0,st=0;st<tt.length;st++){for(var ot=0;ot<tt[st].length;ot++)for(var at=0;at<et;at++)rt.vertices.push(tt[st][ot][at]);st>0&&(nt+=tt[st-1].length,rt.holes.push(nt))}return rt};var earcutExports=earcut$2.exports;const earcut$1=getDefaultExportFromCjs(earcutExports);var punycode$1={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */punycode$1.exports;(function(tt,et){(function(rt){var nt=et&&!et.nodeType&&et,st=tt&&!tt.nodeType&&tt,ot=typeof commonjsGlobal=="object"&&commonjsGlobal;(ot.global===ot||ot.window===ot||ot.self===ot)&&(rt=ot);var at,lt=2147483647,ut=36,ct=1,dt=26,ht=38,ft=700,xt=72,yt=128,vt="-",Et=/^xn--/,bt=/[^\x20-\x7E]/,St=/[\x2E\u3002\uFF0E\uFF61]/g,wt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Rt=ut-ct,Ct=Math.floor,Pt=String.fromCharCode,It;function jt(Bt){throw new RangeError(wt[Bt])}function Dt(Bt,Yt){for(var Zt=Bt.length,Xt=[];Zt--;)Xt[Zt]=Yt(Bt[Zt]);return Xt}function Vt(Bt,Yt){var Zt=Bt.split("@"),Xt="";Zt.length>1&&(Xt=Zt[0]+"@",Bt=Zt[1]),Bt=Bt.replace(St,".");var rr=Bt.split("."),cr=Dt(rr,Yt).join(".");return Xt+cr}function Ft(Bt){for(var Yt=[],Zt=0,Xt=Bt.length,rr,cr;Zt<Xt;)rr=Bt.charCodeAt(Zt++),rr>=55296&&rr<=56319&&Zt<Xt?(cr=Bt.charCodeAt(Zt++),(cr&64512)==56320?Yt.push(((rr&1023)<<10)+(cr&1023)+65536):(Yt.push(rr),Zt--)):Yt.push(rr);return Yt}function Ht(Bt){return Dt(Bt,function(Yt){var Zt="";return Yt>65535&&(Yt-=65536,Zt+=Pt(Yt>>>10&1023|55296),Yt=56320|Yt&1023),Zt+=Pt(Yt),Zt}).join("")}function Nt(Bt){return Bt-48<10?Bt-22:Bt-65<26?Bt-65:Bt-97<26?Bt-97:ut}function Lt(Bt,Yt){return Bt+22+75*(Bt<26)-((Yt!=0)<<5)}function Mt(Bt,Yt,Zt){var Xt=0;for(Bt=Zt?Ct(Bt/ft):Bt>>1,Bt+=Ct(Bt/Yt);Bt>Rt*dt>>1;Xt+=ut)Bt=Ct(Bt/Rt);return Ct(Xt+(Rt+1)*Bt/(Bt+ht))}function zt(Bt){var Yt=[],Zt=Bt.length,Xt,rr=0,cr=yt,ur=xt,mr,vr,Er,br,hr,Ar,Cr,Ur,Sr;for(mr=Bt.lastIndexOf(vt),mr<0&&(mr=0),vr=0;vr<mr;++vr)Bt.charCodeAt(vr)>=128&&jt("not-basic"),Yt.push(Bt.charCodeAt(vr));for(Er=mr>0?mr+1:0;Er<Zt;){for(br=rr,hr=1,Ar=ut;Er>=Zt&&jt("invalid-input"),Cr=Nt(Bt.charCodeAt(Er++)),(Cr>=ut||Cr>Ct((lt-rr)/hr))&&jt("overflow"),rr+=Cr*hr,Ur=Ar<=ur?ct:Ar>=ur+dt?dt:Ar-ur,!(Cr<Ur);Ar+=ut)Sr=ut-Ur,hr>Ct(lt/Sr)&&jt("overflow"),hr*=Sr;Xt=Yt.length+1,ur=Mt(rr-br,Xt,br==0),Ct(rr/Xt)>lt-cr&&jt("overflow"),cr+=Ct(rr/Xt),rr%=Xt,Yt.splice(rr++,0,cr)}return Ht(Yt)}function Gt(Bt){var Yt,Zt,Xt,rr,cr,ur,mr,vr,Er,br,hr,Ar=[],Cr,Ur,Sr,kr;for(Bt=Ft(Bt),Cr=Bt.length,Yt=yt,Zt=0,cr=xt,ur=0;ur<Cr;++ur)hr=Bt[ur],hr<128&&Ar.push(Pt(hr));for(Xt=rr=Ar.length,rr&&Ar.push(vt);Xt<Cr;){for(mr=lt,ur=0;ur<Cr;++ur)hr=Bt[ur],hr>=Yt&&hr<mr&&(mr=hr);for(Ur=Xt+1,mr-Yt>Ct((lt-Zt)/Ur)&&jt("overflow"),Zt+=(mr-Yt)*Ur,Yt=mr,ur=0;ur<Cr;++ur)if(hr=Bt[ur],hr<Yt&&++Zt>lt&&jt("overflow"),hr==Yt){for(vr=Zt,Er=ut;br=Er<=cr?ct:Er>=cr+dt?dt:Er-cr,!(vr<br);Er+=ut)kr=vr-br,Sr=ut-br,Ar.push(Pt(Lt(br+kr%Sr,0))),vr=Ct(kr/Sr);Ar.push(Pt(Lt(vr,0))),cr=Mt(Zt,Ur,Xt==rr),Zt=0,++Xt}++Zt,++Yt}return Ar.join("")}function Ot(Bt){return Vt(Bt,function(Yt){return Et.test(Yt)?zt(Yt.slice(4).toLowerCase()):Yt})}function Ut(Bt){return Vt(Bt,function(Yt){return bt.test(Yt)?"xn--"+Gt(Yt):Yt})}if(at={version:"1.4.1",ucs2:{decode:Ft,encode:Ht},decode:zt,encode:Gt,toASCII:Ut,toUnicode:Ot},nt&&st)if(tt.exports==nt)st.exports=at;else for(It in at)at.hasOwnProperty(It)&&(nt[It]=at[It]);else rt.punycode=at})(commonjsGlobal)})(punycode$1,punycode$1.exports);var punycodeExports=punycode$1.exports,type=TypeError;const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize$1=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace$1=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat$1=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||!0)?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(tt){return tt.__proto__}:null);function addNumericSeparator(tt,et){if(tt===1/0||tt===-1/0||tt!==tt||tt&&tt>-1e3&&tt<1e3||$test.call(/e/,et))return et;var rt=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof tt=="number"){var nt=tt<0?-$floor(-tt):$floor(tt);if(nt!==tt){var st=String(nt),ot=$slice.call(et,st.length+1);return $replace$1.call(st,rt,"$&_")+"."+$replace$1.call($replace$1.call(ot,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace$1.call(et,rt,"$&_")}var utilInspect=require$$0$1,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,quotes={__proto__:null,double:'"',single:"'"},quoteREs={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},objectInspect=function tt(et,rt,nt,st){var ot=rt||{};if(has$3(ot,"quoteStyle")&&!has$3(quotes,ot.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(ot,"maxStringLength")&&(typeof ot.maxStringLength=="number"?ot.maxStringLength<0&&ot.maxStringLength!==1/0:ot.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var at=has$3(ot,"customInspect")?ot.customInspect:!0;if(typeof at!="boolean"&&at!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(ot,"indent")&&ot.indent!==null&&ot.indent!==" "&&!(parseInt(ot.indent,10)===ot.indent&&ot.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(ot,"numericSeparator")&&typeof ot.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var lt=ot.numericSeparator;if(typeof et>"u")return"undefined";if(et===null)return"null";if(typeof et=="boolean")return et?"true":"false";if(typeof et=="string")return inspectString(et,ot);if(typeof et=="number"){if(et===0)return 1/0/et>0?"0":"-0";var ut=String(et);return lt?addNumericSeparator(et,ut):ut}if(typeof et=="bigint"){var ct=String(et)+"n";return lt?addNumericSeparator(et,ct):ct}var dt=typeof ot.depth>"u"?5:ot.depth;if(typeof nt>"u"&&(nt=0),nt>=dt&&dt>0&&typeof et=="object")return isArray$3(et)?"[Array]":"[Object]";var ht=getIndent(ot,nt);if(typeof st>"u")st=[];else if(indexOf(st,et)>=0)return"[Circular]";function ft(Nt,Lt,Mt){if(Lt&&(st=$arrSlice.call(st),st.push(Lt)),Mt){var zt={depth:ot.depth};return has$3(ot,"quoteStyle")&&(zt.quoteStyle=ot.quoteStyle),tt(Nt,zt,nt+1,st)}return tt(Nt,ot,nt+1,st)}if(typeof et=="function"&&!isRegExp$1(et)){var xt=nameOf(et),yt=arrObjKeys(et,ft);return"[Function"+(xt?": "+xt:" (anonymous)")+"]"+(yt.length>0?" { "+$join.call(yt,", ")+" }":"")}if(isSymbol(et)){var vt=hasShammedSymbols?$replace$1.call(String(et),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(et);return typeof et=="object"&&!hasShammedSymbols?markBoxed(vt):vt}if(isElement(et)){for(var Et="<"+$toLowerCase.call(String(et.nodeName)),bt=et.attributes||[],St=0;St<bt.length;St++)Et+=" "+bt[St].name+"="+wrapQuotes(quote(bt[St].value),"double",ot);return Et+=">",et.childNodes&&et.childNodes.length&&(Et+="..."),Et+="</"+$toLowerCase.call(String(et.nodeName))+">",Et}if(isArray$3(et)){if(et.length===0)return"[]";var wt=arrObjKeys(et,ft);return ht&&!singleLineValues(wt)?"["+indentedJoin(wt,ht)+"]":"[ "+$join.call(wt,", ")+" ]"}if(isError(et)){var Rt=arrObjKeys(et,ft);return!("cause"in Error.prototype)&&"cause"in et&&!isEnumerable.call(et,"cause")?"{ ["+String(et)+"] "+$join.call($concat$1.call("[cause]: "+ft(et.cause),Rt),", ")+" }":Rt.length===0?"["+String(et)+"]":"{ ["+String(et)+"] "+$join.call(Rt,", ")+" }"}if(typeof et=="object"&&at){if(inspectSymbol&&typeof et[inspectSymbol]=="function"&&utilInspect)return utilInspect(et,{depth:dt-nt});if(at!=="symbol"&&typeof et.inspect=="function")return et.inspect()}if(isMap(et)){var Ct=[];return mapForEach&&mapForEach.call(et,function(Nt,Lt){Ct.push(ft(Lt,et,!0)+" => "+ft(Nt,et))}),collectionOf("Map",mapSize$1.call(et),Ct,ht)}if(isSet(et)){var Pt=[];return setForEach&&setForEach.call(et,function(Nt){Pt.push(ft(Nt,et))}),collectionOf("Set",setSize.call(et),Pt,ht)}if(isWeakMap(et))return weakCollectionOf("WeakMap");if(isWeakSet(et))return weakCollectionOf("WeakSet");if(isWeakRef(et))return weakCollectionOf("WeakRef");if(isNumber(et))return markBoxed(ft(Number(et)));if(isBigInt(et))return markBoxed(ft(bigIntValueOf.call(et)));if(isBoolean(et))return markBoxed(booleanValueOf.call(et));if(isString(et))return markBoxed(ft(String(et)));if(typeof window<"u"&&et===window)return"{ [object Window] }";if(typeof globalThis<"u"&&et===globalThis||typeof commonjsGlobal<"u"&&et===commonjsGlobal)return"{ [object globalThis] }";if(!isDate(et)&&!isRegExp$1(et)){var It=arrObjKeys(et,ft),jt=gPO?gPO(et)===Object.prototype:et instanceof Object||et.constructor===Object,Dt=et instanceof Object?"":"null prototype",Vt=!jt&&toStringTag&&Object(et)===et&&toStringTag in et?$slice.call(toStr(et),8,-1):Dt?"Object":"",Ft=jt||typeof et.constructor!="function"?"":et.constructor.name?et.constructor.name+" ":"",Ht=Ft+(Vt||Dt?"["+$join.call($concat$1.call([],Vt||[],Dt||[]),": ")+"] ":"");return It.length===0?Ht+"{}":ht?Ht+"{"+indentedJoin(It,ht)+"}":Ht+"{ "+$join.call(It,", ")+" }"}return String(et)};function wrapQuotes(tt,et,rt){var nt=rt.quoteStyle||et,st=quotes[nt];return st+tt+st}function quote(tt){return $replace$1.call(String(tt),/"/g,""")}function isArray$3(tt){return toStr(tt)==="[object Array]"&&(!toStringTag||!(typeof tt=="object"&&toStringTag in tt))}function isDate(tt){return toStr(tt)==="[object Date]"&&(!toStringTag||!(typeof tt=="object"&&toStringTag in tt))}function isRegExp$1(tt){return toStr(tt)==="[object RegExp]"&&(!toStringTag||!(typeof tt=="object"&&toStringTag in tt))}function isError(tt){return toStr(tt)==="[object Error]"&&(!toStringTag||!(typeof tt=="object"&&toStringTag in tt))}function isString(tt){return toStr(tt)==="[object String]"&&(!toStringTag||!(typeof tt=="object"&&toStringTag in tt))}function isNumber(tt){return toStr(tt)==="[object Number]"&&(!toStringTag||!(typeof tt=="object"&&toStringTag in tt))}function isBoolean(tt){return toStr(tt)==="[object Boolean]"&&(!toStringTag||!(typeof tt=="object"&&toStringTag in tt))}function isSymbol(tt){if(hasShammedSymbols)return tt&&typeof tt=="object"&&tt instanceof Symbol;if(typeof tt=="symbol")return!0;if(!tt||typeof tt!="object"||!symToString)return!1;try{return symToString.call(tt),!0}catch{}return!1}function isBigInt(tt){if(!tt||typeof tt!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(tt),!0}catch{}return!1}var hasOwn$1=Object.prototype.hasOwnProperty||function(tt){return tt in this};function has$3(tt,et){return hasOwn$1.call(tt,et)}function toStr(tt){return objectToString.call(tt)}function nameOf(tt){if(tt.name)return tt.name;var et=$match.call(functionToString.call(tt),/^function\s*([\w$]+)/);return et?et[1]:null}function indexOf(tt,et){if(tt.indexOf)return tt.indexOf(et);for(var rt=0,nt=tt.length;rt<nt;rt++)if(tt[rt]===et)return rt;return-1}function isMap(tt){if(!mapSize$1||!tt||typeof tt!="object")return!1;try{mapSize$1.call(tt);try{setSize.call(tt)}catch{return!0}return tt instanceof Map}catch{}return!1}function isWeakMap(tt){if(!weakMapHas||!tt||typeof tt!="object")return!1;try{weakMapHas.call(tt,weakMapHas);try{weakSetHas.call(tt,weakSetHas)}catch{return!0}return tt instanceof WeakMap}catch{}return!1}function isWeakRef(tt){if(!weakRefDeref||!tt||typeof tt!="object")return!1;try{return weakRefDeref.call(tt),!0}catch{}return!1}function isSet(tt){if(!setSize||!tt||typeof tt!="object")return!1;try{setSize.call(tt);try{mapSize$1.call(tt)}catch{return!0}return tt instanceof Set}catch{}return!1}function isWeakSet(tt){if(!weakSetHas||!tt||typeof tt!="object")return!1;try{weakSetHas.call(tt,weakSetHas);try{weakMapHas.call(tt,weakMapHas)}catch{return!0}return tt instanceof WeakSet}catch{}return!1}function isElement(tt){return!tt||typeof tt!="object"?!1:typeof HTMLElement<"u"&&tt instanceof HTMLElement?!0:typeof tt.nodeName=="string"&&typeof tt.getAttribute=="function"}function inspectString(tt,et){if(tt.length>et.maxStringLength){var rt=tt.length-et.maxStringLength,nt="... "+rt+" more character"+(rt>1?"s":"");return inspectString($slice.call(tt,0,et.maxStringLength),et)+nt}var st=quoteREs[et.quoteStyle||"single"];st.lastIndex=0;var ot=$replace$1.call($replace$1.call(tt,st,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(ot,"single",et)}function lowbyte(tt){var et=tt.charCodeAt(0),rt={8:"b",9:"t",10:"n",12:"f",13:"r"}[et];return rt?"\\"+rt:"\\x"+(et<16?"0":"")+$toUpperCase.call(et.toString(16))}function markBoxed(tt){return"Object("+tt+")"}function weakCollectionOf(tt){return tt+" { ? }"}function collectionOf(tt,et,rt,nt){var st=nt?indentedJoin(rt,nt):$join.call(rt,", ");return tt+" ("+et+") {"+st+"}"}function singleLineValues(tt){for(var et=0;et<tt.length;et++)if(indexOf(tt[et],`
|
|
228
|
+
`,FORWARD_SLASH="/",ASTERISK="*",EMPTY_STRING="",TYPE_COMMENT="comment",TYPE_DECLARATION="declaration",inlineStyleParser=function(tt,et){if(typeof tt!="string")throw new TypeError("First argument must be a string");if(!tt)return[];et=et||{};var rt=1,nt=1;function st(yt){var vt=yt.match(NEWLINE_REGEX);vt&&(rt+=vt.length);var Et=yt.lastIndexOf(NEWLINE);nt=~Et?yt.length-Et:nt+yt.length}function ot(){var yt={line:rt,column:nt};return function(vt){return vt.position=new at(yt),ct(),vt}}function at(yt){this.start=yt,this.end={line:rt,column:nt},this.source=et.source}at.prototype.content=tt;function lt(yt){var vt=new Error(et.source+":"+rt+":"+nt+": "+yt);if(vt.reason=yt,vt.filename=et.source,vt.line=rt,vt.column=nt,vt.source=tt,!et.silent)throw vt}function ut(yt){var vt=yt.exec(tt);if(vt){var Et=vt[0];return st(Et),tt=tt.slice(Et.length),vt}}function ct(){ut(WHITESPACE_REGEX)}function dt(yt){var vt;for(yt=yt||[];vt=ht();)vt!==!1&&yt.push(vt);return yt}function ht(){var yt=ot();if(!(FORWARD_SLASH!=tt.charAt(0)||ASTERISK!=tt.charAt(1))){for(var vt=2;EMPTY_STRING!=tt.charAt(vt)&&(ASTERISK!=tt.charAt(vt)||FORWARD_SLASH!=tt.charAt(vt+1));)++vt;if(vt+=2,EMPTY_STRING===tt.charAt(vt-1))return lt("End of comment missing");var Et=tt.slice(2,vt-2);return nt+=2,st(Et),tt=tt.slice(vt),nt+=2,yt({type:TYPE_COMMENT,comment:Et})}}function ft(){var yt=ot(),vt=ut(PROPERTY_REGEX);if(vt){if(ht(),!ut(COLON_REGEX))return lt("property missing ':'");var Et=ut(VALUE_REGEX),bt=yt({type:TYPE_DECLARATION,property:trim(vt[0].replace(COMMENT_REGEX,EMPTY_STRING)),value:Et?trim(Et[0].replace(COMMENT_REGEX,EMPTY_STRING)):EMPTY_STRING});return ut(SEMICOLON_REGEX),bt}}function xt(){var yt=[];dt(yt);for(var vt;vt=ft();)vt!==!1&&(yt.push(vt),dt(yt));return yt}return ct(),xt()};function trim(tt){return tt?tt.replace(TRIM_REGEX,EMPTY_STRING):EMPTY_STRING}var parse$2=inlineStyleParser;function StyleToObject(tt,et){var rt=null;if(!tt||typeof tt!="string")return rt;for(var nt,st=parse$2(tt),ot=typeof et=="function",at,lt,ut=0,ct=st.length;ut<ct;ut++)nt=st[ut],at=nt.property,lt=nt.value,ot?et(at,lt,nt):lt&&(rt||(rt={}),rt[at]=lt);return rt}styleToObject.exports=StyleToObject;styleToObject.exports.default=StyleToObject;var styleToObjectExports=styleToObject.exports,utilities$3={};utilities$3.__esModule=!0;utilities$3.camelCase=void 0;var CUSTOM_PROPERTY_REGEX=/^--[a-zA-Z0-9-]+$/,HYPHEN_REGEX=/-([a-z])/g,NO_HYPHEN_REGEX=/^[^-]+$/,VENDOR_PREFIX_REGEX=/^-(webkit|moz|ms|o|khtml)-/,MS_VENDOR_PREFIX_REGEX=/^-(ms)-/,skipCamelCase=function(tt){return!tt||NO_HYPHEN_REGEX.test(tt)||CUSTOM_PROPERTY_REGEX.test(tt)},capitalize=function(tt,et){return et.toUpperCase()},trimHyphen=function(tt,et){return"".concat(et,"-")},camelCase=function(tt,et){return et===void 0&&(et={}),skipCamelCase(tt)?tt:(tt=tt.toLowerCase(),et.reactCompat?tt=tt.replace(MS_VENDOR_PREFIX_REGEX,trimHyphen):tt=tt.replace(VENDOR_PREFIX_REGEX,trimHyphen),tt.replace(HYPHEN_REGEX,capitalize))};utilities$3.camelCase=camelCase;(function(tt){var et=commonjsGlobal&&commonjsGlobal.__importDefault||function(ot){return ot&&ot.__esModule?ot:{default:ot}};tt.__esModule=!0;var rt=et(styleToObjectExports),nt=utilities$3;function st(ot,at){var lt={};return!ot||typeof ot!="string"||(0,rt.default)(ot,function(ut,ct){ut&&ct&&(lt[(0,nt.camelCase)(ut,at)]=ct)}),lt}tt.default=st})(cjs);var React$3=reactExports,styleToJS=cjs.default;function invertObject(tt,et){if(!tt||typeof tt!="object")throw new TypeError("First argument must be an object");var rt=typeof et=="function",nt={},st={};for(var ot in tt){var at=tt[ot];if(rt&&(nt=et(ot,at),nt&&nt.length===2)){st[nt[0]]=nt[1];continue}typeof at=="string"&&(st[at]=ot)}return st}var RESERVED_SVG_MATHML_ELEMENTS=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function isCustomComponent(tt,et){return tt.indexOf("-")===-1?et&&typeof et.is=="string":!RESERVED_SVG_MATHML_ELEMENTS.has(tt)}var STYLE_TO_JS_OPTIONS={reactCompat:!0};function setStyleProp$1(tt,et){if(tt!=null)try{et.style=styleToJS(tt,STYLE_TO_JS_OPTIONS)}catch{et.style={}}}var PRESERVE_CUSTOM_ATTRIBUTES=React$3.version.split(".")[0]>=16,ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function canTextBeChildOfNode$1(tt){return!ELEMENTS_WITH_NO_TEXT_CHILDREN.has(tt.name)}function returnFirstArg(tt){return tt}var utilities$2={PRESERVE_CUSTOM_ATTRIBUTES,ELEMENTS_WITH_NO_TEXT_CHILDREN,invertObject,isCustomComponent,setStyleProp:setStyleProp$1,canTextBeChildOfNode:canTextBeChildOfNode$1,returnFirstArg},reactProperty=lib$1,utilities$1=utilities$2,UNCONTROLLED_COMPONENT_ATTRIBUTES=["checked","value"],UNCONTROLLED_COMPONENT_NAMES=["input","select","textarea"],VALUE_ONLY_INPUTS={reset:!0,submit:!0},attributesToProps$3=function tt(et,rt){et=et||{};var nt,st,ot,at,lt,ut={},ct=et.type&&VALUE_ONLY_INPUTS[et.type];for(nt in et){if(ot=et[nt],reactProperty.isCustomAttribute(nt)){ut[nt]=ot;continue}if(st=nt.toLowerCase(),at=getPropName(st),at){switch(lt=reactProperty.getPropertyInfo(at),UNCONTROLLED_COMPONENT_ATTRIBUTES.indexOf(at)!==-1&&UNCONTROLLED_COMPONENT_NAMES.indexOf(rt)!==-1&&!ct&&(at=getPropName("default"+st)),ut[at]=ot,lt&<.type){case reactProperty.BOOLEAN:ut[at]=!0;break;case reactProperty.OVERLOADED_BOOLEAN:ot===""&&(ut[at]=!0);break}continue}utilities$1.PRESERVE_CUSTOM_ATTRIBUTES&&(ut[nt]=ot)}return utilities$1.setStyleProp(et.style,ut),ut};function getPropName(tt){return reactProperty.possibleStandardNames[tt]}var React$2=reactExports,attributesToProps$2=attributesToProps$3,utilities=utilities$2,setStyleProp=utilities.setStyleProp,canTextBeChildOfNode=utilities.canTextBeChildOfNode;function domToReact$2(tt,et){et=et||{};for(var rt=et.library||React$2,nt=rt.cloneElement,st=rt.createElement,ot=rt.isValidElement,at=[],lt,ut,ct=typeof et.replace=="function",dt=et.transform||utilities.returnFirstArg,ht,ft,xt,yt=et.trim,vt=0,Et=tt.length;vt<Et;vt++){if(lt=tt[vt],ct&&(ht=et.replace(lt),ot(ht))){Et>1&&(ht=nt(ht,{key:ht.key||vt})),at.push(dt(ht,lt,vt));continue}if(lt.type==="text"){if(ut=!lt.data.trim().length,ut&<.parent&&!canTextBeChildOfNode(lt.parent)||yt&&ut)continue;at.push(dt(lt.data,lt,vt));continue}switch(ft=lt.attribs,skipAttributesToProps(lt)?setStyleProp(ft.style,ft):ft&&(ft=attributesToProps$2(ft,lt.name)),xt=null,lt.type){case"script":case"style":lt.children[0]&&(ft.dangerouslySetInnerHTML={__html:lt.children[0].data});break;case"tag":lt.name==="textarea"&<.children[0]?ft.defaultValue=lt.children[0].data:lt.children&<.children.length&&(xt=domToReact$2(lt.children,et));break;default:continue}Et>1&&(ft.key=vt),at.push(dt(st(lt.name,ft,xt),lt,vt))}return at.length===1?at[0]:at}function skipAttributesToProps(tt){return utilities.PRESERVE_CUSTOM_ATTRIBUTES&&tt.type==="tag"&&utilities.isCustomComponent(tt.name,tt.attribs)}var domToReact_1=domToReact$2,domhandler=lib$3,htmlToDOM=htmlToDom,attributesToProps$1=attributesToProps$3,domToReact$1=domToReact_1;htmlToDOM=typeof htmlToDOM.default=="function"?htmlToDOM.default:htmlToDOM;var domParserOptions={lowerCaseAttributeNames:!1};function HTMLReactParser(tt,et){if(typeof tt!="string")throw new TypeError("First argument must be a string");return tt===""?[]:(et=et||{},domToReact$1(htmlToDOM(tt,et.htmlparser2||domParserOptions),et))}HTMLReactParser.domToReact=domToReact$1;HTMLReactParser.htmlToDOM=htmlToDOM;HTMLReactParser.attributesToProps=attributesToProps$1;HTMLReactParser.Comment=domhandler.Comment;HTMLReactParser.Element=domhandler.Element;HTMLReactParser.ProcessingInstruction=domhandler.ProcessingInstruction;HTMLReactParser.Text=domhandler.Text;var htmlReactParser=HTMLReactParser;HTMLReactParser.default=HTMLReactParser;const HTMLReactParser$1=getDefaultExportFromCjs(htmlReactParser);var domToReact=HTMLReactParser$1.domToReact;HTMLReactParser$1.htmlToDOM;var attributesToProps=HTMLReactParser$1.attributesToProps;HTMLReactParser$1.Comment;HTMLReactParser$1.Element;HTMLReactParser$1.ProcessingInstruction;HTMLReactParser$1.Text;const SvgIconBurgerMenu=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.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 5M21 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.5M21 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.5",clipRule:"evenodd"})]});function useHelp(){var tt,et,rt,nt,st;const{appCode:ot}=useEdificeClient(),{theme:at}=useEdificeTheme(),[lt,ut]=reactExports.useState(""),[ct,dt]=reactExports.useState(!0),[ht,ft]=reactExports.useState(!1),[xt,yt]=reactExports.useState(!1),vt=at!=null&&at.is1d?"/help-1d":"/help-2d";reactExports.useEffect(()=>{(async()=>{let wt="";wt=vt+"/application/"+ot+"/",!ot&&window.location.pathname!=="/adapter"?wt=vt+"/application/portal/":window.location.pathname==="/adapter"?wt=vt+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?wt=vt+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(wt=vt+"/application/userbook/");try{const Rt=await fetch(wt),Ct=await Rt.text();if(Rt.status===404){yt(!0);return}ut(Ct),yt(!1)}catch(Rt){yt(!0),console.error(Rt)}})()},[ot,vt]);const Et=HTMLReactParser$1(lt,{replace:wt=>{const Rt=wt;if(Rt.attribs&&Rt.attribs.id==="TOC")return jsxRuntimeExports.jsxs("nav",{id:"TOC",children:[jsxRuntimeExports.jsx(Button,{onClick:()=>{dt(!ct)},children:jsxRuntimeExports.jsx(SvgIconBurgerMenu,{})}),domToReact(Rt.children,{replace:Ct=>{const Pt=Ct;if(Pt.attribs&&Pt.name==="ul")return jsxRuntimeExports.jsx("ul",{id:"TOC-list",style:{display:ct?"block":"none"},children:domToReact(Pt.children,{replace:It=>{const jt=It;if(jt.attribs&&jt.name==="a")return jsxRuntimeExports.jsx("a",{...attributesToProps(jt.attribs),children:jsxRuntimeExports.jsx("span",{onClick:()=>{dt(!1)},children:domToReact(jt.children)})})}})})}})]});if(Rt.attribs&&Rt.attribs.class==="section level2"){const Ct=attributesToProps(wt.attribs);return jsxRuntimeExports.jsx("div",{...Ct,className:"section level2",style:{display:Rt.attribs.id!=="présentation"?"none":"block"},children:domToReact(Rt.children,{replace:Pt=>{const It=Pt;if(It.attribs&&It.name==="img"){const jt=Pt.attribs.src;return jsxRuntimeExports.jsx("img",{...attributesToProps(It.attribs),src:`${vt}/${jt}`,alt:""})}}})})}}}),bt=(rt=(et=(tt=Et==null?void 0:Et.props)==null?void 0:tt.children.find(wt=>wt.type==="body"))==null?void 0:et.props)==null?void 0:rt.children,St=(st=(nt=bt==null?void 0:bt.find(wt=>wt.type==="p"))==null?void 0:nt.props)==null?void 0:st.children;return{html:lt,visibility:ct,isModalOpen:ht,setIsModalOpen:ft,parsedContent:bt,parsedHeadline:St,error:xt}}const Header=({is1d:tt=!1,src:et=""})=>{const{t:rt}=useTranslation(),{messages:nt,msgLink:st,zimbraWorkflow:ot}=useConversation(),{user:at,avatar:lt}=useUser(),{currentLanguage:ut,currentApp:ct}=useEdificeClient(),dt=useHasWorkflow("org.entcore.portal.controllers.PortalController|oldHelpEnable")||!1,{isModalOpen:ht,setIsModalOpen:ft,parsedContent:xt,parsedHeadline:yt,error:vt}=useHelp(),Et=clsx("header",{"no-2d":tt,"no-1d":!tt}),{title:bt,bookmarkedApps:St,appsRef:wt,isAppsHovered:Rt,popoverAppsId:Ct,userAvatar:Pt,userName:It,welcomeUser:jt,communityWorkflow:Dt,conversationWorflow:Vt,searchWorkflow:Ft,isCollapsed:Ht,toggleCollapsedNav:Nt,handleLogout:Lt}=useHeader({user:at,avatar:lt}),Mt=nt>0,{theme:zt}=useEdificeTheme();return jsxRuntimeExports.jsx("header",{className:Et,children:tt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"container-fluid",children:jsxRuntimeExports.jsxs(Navbar,{children:[jsxRuntimeExports.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:ct?ct.address:"/timeline/timeline",children:bt}),jsxRuntimeExports.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[jsxRuntimeExports.jsx(Avatar,{alt:It,size:"sm",src:Pt,variant:"circle",width:"32",height:"32"}),jsxRuntimeExports.jsx("span",{className:"navbar-text",children:jt})]}),jsxRuntimeExports.jsxs(NavBarNav,{className:"gap-8","aria-hidden":"false","aria-label":rt("navbar.main.navigation"),children:[Vt&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[jsxRuntimeExports.jsx(SvgIconOneMessaging,{className:"icon notification"}),Mt&&jsxRuntimeExports.jsx(Badge,{variant:{type:"notification",level:"danger"},className:"position-absolute",children:nt}),jsxRuntimeExports.jsx(VisuallyHidden,{children:rt("navbar.messages")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsx(NavLink,{link:"/userbook/mon-compte",className:"dropdown-item",translate:rt("navbar.myaccount"),children:jsxRuntimeExports.jsx(SvgIconOneProfile,{className:"icon user"})})}),ut==="fr"&&dt?jsxRuntimeExports.jsxs(NavItem,{children:[jsxRuntimeExports.jsxs("button",{className:"nav-link",onClick:()=>{ft(!0)},children:[jsxRuntimeExports.jsx(SvgIconOneAssistance,{className:"icon help"}),jsxRuntimeExports.jsx(VisuallyHidden,{children:rt("navbar.help")})]}),jsxRuntimeExports.jsx(Help,{isHelpOpen:ht,setIsHelpOpen:ft,parsedContent:xt,parsedHeadline:yt,error:vt})]}):null,jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("button",{className:"nav-link",onClick:Lt,children:[jsxRuntimeExports.jsx(SvgIconDisconnect,{className:"icon logout"}),jsxRuntimeExports.jsx(VisuallyHidden,{children:rt("navbar.disconnect")})]})}),jsxRuntimeExports.jsx(NavItem,{className:"d-md-none",children:jsxRuntimeExports.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!Ht,"aria-label":rt("navbar.secondary.navigation"),onClick:Nt,children:jsxRuntimeExports.jsx(SvgIconRafterDown,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),jsxRuntimeExports.jsx(Navbar,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":rt("navbar.secondary.navigation"),children:jsxRuntimeExports.jsx("div",{className:"container-fluid",children:jsxRuntimeExports.jsxs("div",{className:`collapse navbar-collapse ${Ht?"":"show"}`,id:"navbarCollapsed",children:[jsxRuntimeExports.jsx(Logo,{is1d:!0,src:`${et}/img/illustrations/logo.png`,translate:rt("navbar.home")}),jsxRuntimeExports.jsxs(NavBarNav,{className:"gap-8",children:[jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/timeline/timeline",className:"button",children:[jsxRuntimeExports.jsx(SvgIconNewRelease,{color:"#fff",className:"d-md-none"}),jsxRuntimeExports.jsx("span",{className:"d-inline-block",children:rt("portal.header.navigation.whatsnew")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[jsxRuntimeExports.jsx(SvgIconUserbook,{color:"#fff",className:"d-md-none"}),jsxRuntimeExports.jsx("span",{className:"d-inline-block",children:rt("portal.header.navigation.classMembers")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/welcome",className:"button",children:[jsxRuntimeExports.jsx(SvgIconMyApps,{color:"#fff",className:"d-md-none"}),jsxRuntimeExports.jsx("span",{className:"d-inline-block",children:rt("portal.header.navigation.myapps")})]})})]})]})})})]}):jsxRuntimeExports.jsx(Navbar,{className:"navbar-expand-md",children:jsxRuntimeExports.jsxs("div",{className:"container-fluid",children:[jsxRuntimeExports.jsx(Logo,{src:`${et}/img/illustrations/logo.png`}),jsxRuntimeExports.jsx("a",{href:ct?ct.address:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:bt}),jsxRuntimeExports.jsxs("ul",{className:"navbar-nav",children:[jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsx(NavLink,{link:"/timeline/timeline",translate:rt("navbar.home"),children:jsxRuntimeExports.jsx(SvgIconHome,{color:"#fff"})})}),jsxRuntimeExports.jsxs(NavItem,{className:"position-relative",ref:wt,id:Ct,"aria-haspopup":"true","aria-expanded":Rt,children:[jsxRuntimeExports.jsx(NavLink,{link:"/welcome",translate:rt("navbar.applications"),children:jsxRuntimeExports.jsx(SvgIconMyApps,{color:"#fff"})}),jsxRuntimeExports.jsxs(Popover,{className:"top-100 widget",id:Ct,isVisible:Rt,children:[jsxRuntimeExports.jsx(PopoverBody,{children:jsxRuntimeExports.jsx(WidgetAppsBody,{bookmarkedApps:St})}),jsxRuntimeExports.jsx(PopoverFooter,{className:"widget-footer border-top border-ghost",children:jsxRuntimeExports.jsx(WidgetAppsFooter,{})})]})]}),Vt&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs(NavLink,{className:"position-relative",link:"/conversation/conversation",translate:rt("conversation"),children:[jsxRuntimeExports.jsx(SvgIconNeoMessaging,{color:"#fff"}),Mt&&jsxRuntimeExports.jsx(Badge,{variant:{type:"notification",level:"warning"},className:"position-absolute",children:nt})]})}),ot&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs(NavLink,{className:"position-relative",link:st,translate:rt("conversation"),children:[jsxRuntimeExports.jsx(SvgIconNeoMessaging,{color:"#fff"}),Mt&&jsxRuntimeExports.jsx(Badge,{variant:{type:"notification",level:"warning"},className:"position-absolute",children:nt})]})}),ut==="fr"&&dt?jsxRuntimeExports.jsxs(NavItem,{children:[jsxRuntimeExports.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{ft(!0)},children:[jsxRuntimeExports.jsx(SvgIconNeoAssistance,{color:"#fff"}),jsxRuntimeExports.jsx(VisuallyHidden,{children:rt("support")})]}),jsxRuntimeExports.jsx(Help,{isHelpOpen:ht,setIsHelpOpen:ft,parsedContent:xt,parsedHeadline:yt,error:vt})]}):null,jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("div",{className:"dropdown",children:[jsxRuntimeExports.jsx("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!Ht,"aria-label":rt("navbar.open.menu"),onClick:Nt,children:jsxRuntimeExports.jsx(SvgIconRafterDown,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),jsxRuntimeExports.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${Ht?"":"show"}`,id:"dropdown-navbar",children:[Dt&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[jsxRuntimeExports.jsx(SvgIconCommunity,{className:"icon community"}),jsxRuntimeExports.jsx("span",{className:"nav-text",children:rt("navbar.community")})]})}),Ft?jsxRuntimeExports.jsx(SearchEngine,{}):null,jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[jsxRuntimeExports.jsx(Avatar,{alt:It,size:"sm",src:Pt,variant:"circle",className:"bg-white",width:"32",height:"32"}),jsxRuntimeExports.jsx("span",{className:"nav-text",children:rt("navbar.myaccount")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsx("hr",{className:"dropdown-divider"})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/auth/logout?callback="+((zt==null?void 0:zt.logoutCallback)??"/"),className:"nav-link dropdown-item",children:[jsxRuntimeExports.jsx(SvgIconDisconnect,{className:"icon logout"}),jsxRuntimeExports.jsx("span",{id:"logout-label",className:"nav-text",children:rt("navbar.disconnect")})]})})]})]})})]})]})})})};function usePreferences(tt){return{getPreference:async()=>await odeServices.conf().getPreference(tt),savePreference:async et=>await odeServices.conf().savePreference(tt,JSON.stringify(et))}}function useCookiesConsent(){const[tt,et]=reactExports.useState(!1),{getPreference:rt,savePreference:nt}=usePreferences("rgpdCookies");return reactExports.useEffect(()=>{(async()=>{const st=await rt();et(st===null?!0:st.showInfoTip)})()},[]),{showCookiesConsent:tt,handleConsultCookies:()=>{document.location.href="/userbook/mon-compte",nt({showInfoTip:!1}),et(!1)},handleCloseCookiesConsent:()=>{nt({showInfoTip:!1}),et(!1)}}}const Layout=({children:tt,headless:et=!1,...rt})=>{const{theme:nt}=useEdificeTheme(),{t:st}=useTranslation(),{showCookiesConsent:ot,handleConsultCookies:at,handleCloseCookiesConsent:lt}=useCookiesConsent();useZendeskGuide(),useCantoo();const ut=clsx("d-flex flex-column bg-white",{"container-fluid":!et,"rounded-4 border":(nt==null?void 0:nt.is1d)&&!et,"mt-24":(nt==null?void 0:nt.is1d)&&!et}),ct=et?null:jsxRuntimeExports.jsx(Header,{is1d:nt==null?void 0:nt.is1d,src:nt==null?void 0:nt.basePath}),dt=ot&&jsxRuntimeExports.jsx(Alert,{type:"info",className:"m-12 rgpd",isConfirm:!0,position:"bottom-right",button:jsxRuntimeExports.jsx(Button,{color:"tertiary",variant:"ghost",onClick:at,children:st("rgpd.cookies.banner.button.consult")}),onClose:lt,children:st("rgpd.cookies.banner.text1")}),ht=jsxRuntimeExports.jsx(De$1,{containerClassName:"toaster-container",toastOptions:{position:"top-right"}});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ct,jsxRuntimeExports.jsx("main",{className:ut,...rt,children:tt}),ht,dt]})},Toolbar=reactExports.forwardRef(({items:tt,variant:et="default",align:rt="space",isBlock:nt=!1,ariaControls:st,className:ot},at)=>{const[lt,ut]=reactExports.useState(0),[ct,dt]=reactExports.useState([]),[ht,ft]=reactExports.useState(),[xt,yt]=reactExports.useState(),vt=reactExports.useRef(),Et=clsx("toolbar z-1000 bg-white",ot,{default:et==="default","no-shadow":et==="no-shadow","d-flex":nt,"d-inline-flex":!nt,"overflow-x-auto":nt,"justify-content-start":rt==="left","justify-content-between":rt==="space","justify-content-center":rt==="center","justify-content-end":rt==="right"});reactExports.useEffect(()=>{var Pt;const It=(Pt=vt.current)==null?void 0:Pt.querySelectorAll("button"),jt=[];let Dt=!1;It==null||It.forEach(Vt=>{Vt.disabled||(Dt||(ft(Vt),Dt=!0),yt(Vt),jt.push(Vt))}),dt(jt),ut(tt.findIndex(Vt=>(Vt.type==="button"||Vt.type==="icon")&&!Vt.props.disabled))},[tt]);const bt=Pt=>{Pt.target.classList.add("focus")},St=Pt=>{Pt.target.classList.remove("focus")},wt=Pt=>{var It,jt;const Dt=ct.indexOf(Pt.currentTarget);switch(Pt.code){case"ArrowLeft":Pt.currentTarget===ht?xt==null||xt.focus():(It=ct[Dt-1])==null||It.focus();break;case"ArrowRight":Pt.currentTarget===xt?ht==null||ht.focus():(jt=ct[Dt+1])==null||jt.focus();break}},Rt=Pt=>{var It;return typeof Pt.tooltip=="string"?Pt.tooltip:(It=Pt.tooltip)==null?void 0:It.message},Ct=Pt=>{var It;return typeof Pt.tooltip!="string"?(It=Pt.tooltip)==null?void 0:It.position:"top"};return jsxRuntimeExports.jsx("div",{ref:mergeRefs(at,vt),className:Et,role:"toolbar","aria-label":"Text Formatting","aria-controls":st,onFocus:bt,onBlur:St,children:tt.map((Pt,It)=>{if(Pt.visibility==="hide")return null;switch(Pt.type){case"divider":return jsxRuntimeExports.jsx("div",{className:"toolbar-divider"},Pt.name??It);case"button":return jsxRuntimeExports.jsx(Tooltip,{message:Rt(Pt),placement:Ct(Pt),children:reactExports.createElement(Button,{...Pt.props,key:Pt.name??It,color:Pt.props.color?Pt.props.color:"tertiary",variant:"ghost",tabIndex:It===lt?0:-1,onKeyDown:wt})},Pt.name??It);case"icon":return jsxRuntimeExports.jsx(Tooltip,{message:Rt(Pt),placement:Ct(Pt),children:reactExports.createElement(IconButton,{...Pt.props,key:Pt.name??It,color:Pt.props.color?Pt.props.color:"tertiary",variant:Pt.props.variant?Pt.props.variant:"ghost",tabIndex:It===lt?0:-1,onKeyDown:wt})},Pt.name??It);case"dropdown":return reactExports.createElement(Dropdown,{...Pt.props,key:Pt.name??It,extraTriggerKeyDownHandler:wt,overflow:Pt.overflow});case"primary":return jsxRuntimeExports.jsx(Tooltip,{message:Rt(Pt),placement:Ct(Pt),children:jsxRuntimeExports.jsx(Button,{...Pt.props,variant:"filled",color:"primary",tabIndex:It===lt?0:-1,onKeyDown:wt})},Pt.name??It)}return null})})}),loadingScreen="/assets/js/ode-explorer/screen-loading.gif",LoadingScreen=reactExports.forwardRef(({position:tt=!0,caption:et},rt)=>{const nt=clsx("top-0 end-0 start-0 bottom-0 d-grid justify-content-center align-content-center align-items-center z-2000",{"position-fixed":!tt,"position-static":tt}),st=clsx("text-center pt-12",{"text-white":!tt});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{ref:rt,className:nt,children:[jsxRuntimeExports.jsx("div",{className:"bg-white rounded-circle mx-auto w-25",children:jsxRuntimeExports.jsx("img",{src:loadingScreen,alt:"loading"})}),et&&jsxRuntimeExports.jsx("div",{className:st,children:et})]}),!tt&&jsxRuntimeExports.jsx("div",{className:"modal-backdrop fade show"})]})}),TabsContext=reactExports.createContext(null);function useTabsContext(){const tt=reactExports.useContext(TabsContext);if(!tt)throw new Error("Tabs compound components cannot be rendered outside the Tabs component");return tt}const useTabs=({defaultId:tt,items:et,onChange:rt})=>{const[nt,st]=reactExports.useState(tt||""),[ot,at]=reactExports.useState(0),[lt,ut]=reactExports.useState(0),ct=reactExports.useRef([]),dt=reactExports.useCallback(yt=>{st(yt)},[]);reactExports.useEffect(()=>{const yt=et.find(vt=>vt.id===nt);yt&&(rt==null||rt(yt))},[nt]),reactExports.useEffect(()=>{function yt(){var vt;if(((vt=document==null?void 0:document.activeElement)==null?void 0:vt.tagName)!=="INPUT"){const Et=et.findIndex(St=>St.id===nt);Et===-1&&tt&&st(tt);const bt=ct.current[Et];bt&&(bt.focus(),ut((bt==null?void 0:bt.offsetLeft)??0),at((bt==null?void 0:bt.clientWidth)??0))}}return yt(),window.addEventListener("resize",yt),()=>window.removeEventListener("resize",yt)},[nt,et,tt]);const ht=reactExports.useCallback(yt=>{var vt,Et,bt;const St=et.findIndex(wt=>wt.id===yt);yt===((vt=et[0])==null?void 0:vt.id)?st((Et=et[et.length-1])==null?void 0:Et.id):st((bt=et[St-1])==null?void 0:bt.id)},[et]),ft=reactExports.useCallback(yt=>{var vt,Et,bt;const St=et.findIndex(wt=>wt.id===yt);yt===((vt=et[et.length-1])==null?void 0:vt.id)?st((Et=et[0])==null?void 0:Et.id):st((bt=et[St+1])==null?void 0:bt.id)},[et]),xt=reactExports.useCallback(yt=>{var vt,Et;switch(yt.code){case"ArrowLeft":ht(nt);break;case"ArrowRight":ft(nt);break;case"Home":st((vt=et[0])==null?void 0:vt.id);break;case"End":st((Et=et[et.length-1])==null?void 0:Et.id);break}},[nt,et,ft,ht]);return{activeTab:nt,setSelectedTab:dt,tabsRef:ct,tabUnderlineLeft:lt,tabUnderlineWidth:ot,onKeyDown:xt}},TabsItem=({icon:tt,label:et,id:rt,order:nt})=>{const{activeTab:st,setSelectedTab:ot,onKeyDown:at,tabsRef:lt}=useTabsContext(),{t:ut}=useTranslation(),ct=clsx("nav-link d-inline-flex gap-8 border-0",st===rt?"selected":"");return jsxRuntimeExports.jsx("li",{className:"nav-item flex-shrink-0",role:"presentation",children:jsxRuntimeExports.jsxs("button",{ref:dt=>lt.current[nt]=dt,type:"button",id:`tab-${rt}`,className:ct,onClick:()=>ot(rt),onKeyDown:dt=>at(dt),role:"tab","aria-controls":`tabpanel-${rt}`,"aria-selected":st===rt,tabIndex:st===rt?0:-1,children:[tt,jsxRuntimeExports.jsx("small",{children:ut(et)})]})})},TabsList=tt=>{const{items:et,tabUnderlineLeft:rt,tabUnderlineWidth:nt}=useTabsContext(),{className:st,...ot}=tt,at=clsx("position-relative flex-shrink-0 overflow-x-auto",st);return jsxRuntimeExports.jsxs("div",{className:at,...ot,children:[jsxRuntimeExports.jsx("ul",{className:"nav nav-tabs flex-nowrap",role:"tablist",children:et.map((lt,ut)=>jsxRuntimeExports.jsx(Tabs.Item,{order:ut,...lt},lt.id))}),jsxRuntimeExports.jsx("span",{className:"nav-slide",style:{left:rt,width:nt}})]})},TabsPanel=({children:tt,currentItem:et})=>{const{activeTab:rt}=useTabsContext();return jsxRuntimeExports.jsx("div",{className:"tab-content d-flex flex-fill w-100",children:jsxRuntimeExports.jsx("div",{className:`tab-pane flex-fill w-100 fade ${rt===(et==null?void 0:et.id)?"show active":""}`,id:`tabpanel-${et==null?void 0:et.id}`,role:"tabpanel","aria-labelledby":`tab-${et==null?void 0:et.id}`,tabIndex:0,children:tt})})},Tabs=({defaultId:tt,items:et,onChange:rt,children:nt})=>{const{activeTab:st,setSelectedTab:ot,tabsRef:at,tabUnderlineLeft:lt,tabUnderlineWidth:ut,onKeyDown:ct}=useTabs({defaultId:tt,items:et,onChange:rt}),dt=reactExports.useMemo(()=>({activeTab:st,items:et,setSelectedTab:ot,tabsRef:at,tabUnderlineLeft:lt,tabUnderlineWidth:ut,onKeyDown:ct}),[st,et,ct,ot,lt,ut,at]),ht=et.find(ft=>ft.id===st);return jsxRuntimeExports.jsx(TabsContext.Provider,{value:dt,children:typeof nt=="function"?nt(ht):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Tabs.List,{}),jsxRuntimeExports.jsx(Tabs.Panel,{currentItem:ht,children:ht==null?void 0:ht.content})]})})};Tabs.Item=TabsItem;Tabs.Panel=TabsPanel;Tabs.List=TabsList;const TextArea=reactExports.forwardRef(({noValidationIcon:tt,placeholder:et,size:rt="md",height:nt="md",className:st,...ot},at)=>{const{id:lt,isRequired:ut,isReadOnly:ct,status:dt}=useFormControl(),ht=clsx({"form-control":!ct,"form-control-lg":rt==="lg","form-control-sm":rt==="sm","textarea-height-lg":nt==="lg","textarea-height-md":nt==="md","textarea-height-sm":nt==="sm","is-invalid":dt==="invalid","is-valid":dt==="valid","form-control-plaintext":ct,"no-validation-icon":tt},st);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx("textarea",{ref:at,id:lt,className:ht,placeholder:et,required:ut,readOnly:ct,...ot})})}),useMediaLibrary=()=>{const tt=reactExports.useRef(null),[et,rt]=reactExports.useState(),{remove:nt}=useWorkspaceFile();return{ref:tt,libraryMedia:et,setLibraryMedia:rt,onCancel:async st=>{var ot,at;(ot=tt.current)!=null&&ot.type&&st&&st.length>0&&await nt(st),(at=tt.current)==null||at.hide()},onSuccess:st=>{var ot,at,lt,ut;let ct;switch((ot=tt.current)==null?void 0:ot.type){case"video":{if(typeof st=="object")ct=st[0];else{const dt=new DOMParser().parseFromString(st,"text/html").body.firstChild,ht=dt==null?void 0:dt.getAttribute("src");(at=tt.current)==null||at.hide(),ct=ht}break}case"embedder":{const dt=new DOMParser().parseFromString(st,"text/html").body.firstChild,ht=dt==null?void 0:dt.getAttribute("src");(lt=tt.current)==null||lt.hide(),ct=ht;break}case"audio":{st.length===void 0?ct=st:ct=st[0];break}case"hyperlink":{ct=st;break}case"image":{ct=`/workspace/document/${st[0]._id}`;break}default:ct=st[0]}(ut=tt.current)==null||ut.hide(),rt(ct)},onTabChange:async(st,ot)=>{var at;(at=tt.current)!=null&&at.type&&ot&&ot.length>0&&await nt(ot)}}};function isObject$3(tt){return tt!==null&&typeof tt=="object"&&"constructor"in tt&&tt.constructor===Object}function extend$2(tt,et){tt===void 0&&(tt={}),et===void 0&&(et={}),Object.keys(et).forEach(rt=>{typeof tt[rt]>"u"?tt[rt]=et[rt]:isObject$3(et[rt])&&isObject$3(tt[rt])&&Object.keys(et[rt]).length>0&&extend$2(tt[rt],et[rt])})}const ssrDocument={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){const tt=typeof document<"u"?document:{};return extend$2(tt,ssrDocument),tt}const ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function tt(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(tt){return typeof setTimeout>"u"?(tt(),null):setTimeout(tt,0)},cancelAnimationFrame(tt){typeof setTimeout>"u"||clearTimeout(tt)}};function getWindow(){const tt=typeof window<"u"?window:{};return extend$2(tt,ssrWindow),tt}function deleteProps(tt){const et=tt;Object.keys(et).forEach(rt=>{try{et[rt]=null}catch{}try{delete et[rt]}catch{}})}function nextTick(tt,et){return et===void 0&&(et=0),setTimeout(tt,et)}function now(){return Date.now()}function getComputedStyle$1(tt){const et=getWindow();let rt;return et.getComputedStyle&&(rt=et.getComputedStyle(tt,null)),!rt&&tt.currentStyle&&(rt=tt.currentStyle),rt||(rt=tt.style),rt}function getTranslate(tt,et){et===void 0&&(et="x");const rt=getWindow();let nt,st,ot;const at=getComputedStyle$1(tt);return rt.WebKitCSSMatrix?(st=at.transform||at.webkitTransform,st.split(",").length>6&&(st=st.split(", ").map(lt=>lt.replace(",",".")).join(", ")),ot=new rt.WebKitCSSMatrix(st==="none"?"":st)):(ot=at.MozTransform||at.OTransform||at.MsTransform||at.msTransform||at.transform||at.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),nt=ot.toString().split(",")),et==="x"&&(rt.WebKitCSSMatrix?st=ot.m41:nt.length===16?st=parseFloat(nt[12]):st=parseFloat(nt[4])),et==="y"&&(rt.WebKitCSSMatrix?st=ot.m42:nt.length===16?st=parseFloat(nt[13]):st=parseFloat(nt[5])),st||0}function isObject$2(tt){return typeof tt=="object"&&tt!==null&&tt.constructor&&Object.prototype.toString.call(tt).slice(8,-1)==="Object"}function isNode(tt){return typeof window<"u"&&typeof window.HTMLElement<"u"?tt instanceof HTMLElement:tt&&(tt.nodeType===1||tt.nodeType===11)}function extend$1(){const tt=Object(arguments.length<=0?void 0:arguments[0]),et=["__proto__","constructor","prototype"];for(let rt=1;rt<arguments.length;rt+=1){const nt=rt<0||arguments.length<=rt?void 0:arguments[rt];if(nt!=null&&!isNode(nt)){const st=Object.keys(Object(nt)).filter(ot=>et.indexOf(ot)<0);for(let ot=0,at=st.length;ot<at;ot+=1){const lt=st[ot],ut=Object.getOwnPropertyDescriptor(nt,lt);ut!==void 0&&ut.enumerable&&(isObject$2(tt[lt])&&isObject$2(nt[lt])?nt[lt].__swiper__?tt[lt]=nt[lt]:extend$1(tt[lt],nt[lt]):!isObject$2(tt[lt])&&isObject$2(nt[lt])?(tt[lt]={},nt[lt].__swiper__?tt[lt]=nt[lt]:extend$1(tt[lt],nt[lt])):tt[lt]=nt[lt])}}}return tt}function setCSSProperty(tt,et,rt){tt.style.setProperty(et,rt)}function animateCSSModeScroll(tt){let{swiper:et,targetPosition:rt,side:nt}=tt;const st=getWindow(),ot=-et.translate;let at=null,lt;const ut=et.params.speed;et.wrapperEl.style.scrollSnapType="none",st.cancelAnimationFrame(et.cssModeFrameID);const ct=rt>ot?"next":"prev",dt=(ft,xt)=>ct==="next"&&ft>=xt||ct==="prev"&&ft<=xt,ht=()=>{lt=new Date().getTime(),at===null&&(at=lt);const ft=Math.max(Math.min((lt-at)/ut,1),0),xt=.5-Math.cos(ft*Math.PI)/2;let yt=ot+xt*(rt-ot);if(dt(yt,rt)&&(yt=rt),et.wrapperEl.scrollTo({[nt]:yt}),dt(yt,rt)){et.wrapperEl.style.overflow="hidden",et.wrapperEl.style.scrollSnapType="",setTimeout(()=>{et.wrapperEl.style.overflow="",et.wrapperEl.scrollTo({[nt]:yt})}),st.cancelAnimationFrame(et.cssModeFrameID);return}et.cssModeFrameID=st.requestAnimationFrame(ht)};ht()}function elementChildren(tt,et){return et===void 0&&(et=""),[...tt.children].filter(rt=>rt.matches(et))}function createElement(tt,et){et===void 0&&(et=[]);const rt=document.createElement(tt);return rt.classList.add(...Array.isArray(et)?et:[et]),rt}function elementPrevAll(tt,et){const rt=[];for(;tt.previousElementSibling;){const nt=tt.previousElementSibling;et?nt.matches(et)&&rt.push(nt):rt.push(nt),tt=nt}return rt}function elementNextAll(tt,et){const rt=[];for(;tt.nextElementSibling;){const nt=tt.nextElementSibling;et?nt.matches(et)&&rt.push(nt):rt.push(nt),tt=nt}return rt}function elementStyle(tt,et){return getWindow().getComputedStyle(tt,null).getPropertyValue(et)}function elementIndex(tt){let et=tt,rt;if(et){for(rt=0;(et=et.previousSibling)!==null;)et.nodeType===1&&(rt+=1);return rt}}function elementParents(tt,et){const rt=[];let nt=tt.parentElement;for(;nt;)et?nt.matches(et)&&rt.push(nt):rt.push(nt),nt=nt.parentElement;return rt}function elementOuterSize(tt,et,rt){const nt=getWindow();return tt[et==="width"?"offsetWidth":"offsetHeight"]+parseFloat(nt.getComputedStyle(tt,null).getPropertyValue(et==="width"?"margin-right":"margin-top"))+parseFloat(nt.getComputedStyle(tt,null).getPropertyValue(et==="width"?"margin-left":"margin-bottom"))}function createElementIfNotDefined(tt,et,rt,nt){return tt.params.createElements&&Object.keys(nt).forEach(st=>{if(!rt[st]&&rt.auto===!0){let ot=elementChildren(tt.el,`.${nt[st]}`)[0];ot||(ot=createElement("div",nt[st]),ot.className=nt[st],tt.el.append(ot)),rt[st]=ot,et[st]=ot}}),rt}function classesToSelector(tt){return tt===void 0&&(tt=""),`.${tt.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Pagination(tt){let{swiper:et,extendParams:rt,on:nt,emit:st}=tt;const ot="swiper-pagination";rt({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:St=>St,formatFractionTotal:St=>St,bulletClass:`${ot}-bullet`,bulletActiveClass:`${ot}-bullet-active`,modifierClass:`${ot}-`,currentClass:`${ot}-current`,totalClass:`${ot}-total`,hiddenClass:`${ot}-hidden`,progressbarFillClass:`${ot}-progressbar-fill`,progressbarOppositeClass:`${ot}-progressbar-opposite`,clickableClass:`${ot}-clickable`,lockClass:`${ot}-lock`,horizontalClass:`${ot}-horizontal`,verticalClass:`${ot}-vertical`,paginationDisabledClass:`${ot}-disabled`}}),et.pagination={el:null,bullets:[]};let at,lt=0;const ut=St=>(Array.isArray(St)?St:[St]).filter(wt=>!!wt);function ct(){return!et.params.pagination.el||!et.pagination.el||Array.isArray(et.pagination.el)&&et.pagination.el.length===0}function dt(St,wt){const{bulletActiveClass:Rt}=et.params.pagination;St&&(St=St[`${wt==="prev"?"previous":"next"}ElementSibling`],St&&(St.classList.add(`${Rt}-${wt}`),St=St[`${wt==="prev"?"previous":"next"}ElementSibling`],St&&St.classList.add(`${Rt}-${wt}-${wt}`)))}function ht(St){const wt=St.target.closest(classesToSelector(et.params.pagination.bulletClass));if(!wt)return;St.preventDefault();const Rt=elementIndex(wt)*et.params.slidesPerGroup;if(et.params.loop){if(et.realIndex===Rt)return;const Ct=et.realIndex,Pt=et.getSlideIndexByData(Rt),It=et.getSlideIndexByData(et.realIndex),jt=Dt=>{const Vt=et.activeIndex;et.loopFix({direction:Dt,activeSlideIndex:Pt,slideTo:!1});const Ft=et.activeIndex;Vt===Ft&&et.slideToLoop(Ct,0,!1,!0)};if(Pt>et.slides.length-et.loopedSlides)jt(Pt>It?"next":"prev");else if(et.params.centeredSlides){const Dt=et.params.slidesPerView==="auto"?et.slidesPerViewDynamic():Math.ceil(parseFloat(et.params.slidesPerView,10));Pt<Math.floor(Dt/2)&&jt("prev")}et.slideToLoop(Rt)}else et.slideTo(Rt)}function ft(){const St=et.rtl,wt=et.params.pagination;if(ct())return;let Rt=et.pagination.el;Rt=ut(Rt);let Ct,Pt;const It=et.virtual&&et.params.virtual.enabled?et.virtual.slides.length:et.slides.length,jt=et.params.loop?Math.ceil(It/et.params.slidesPerGroup):et.snapGrid.length;if(et.params.loop?(Pt=et.previousRealIndex||0,Ct=et.params.slidesPerGroup>1?Math.floor(et.realIndex/et.params.slidesPerGroup):et.realIndex):typeof et.snapIndex<"u"?(Ct=et.snapIndex,Pt=et.previousSnapIndex):(Pt=et.previousIndex||0,Ct=et.activeIndex||0),wt.type==="bullets"&&et.pagination.bullets&&et.pagination.bullets.length>0){const Dt=et.pagination.bullets;let Vt,Ft,Ht;if(wt.dynamicBullets&&(at=elementOuterSize(Dt[0],et.isHorizontal()?"width":"height"),Rt.forEach(Nt=>{Nt.style[et.isHorizontal()?"width":"height"]=`${at*(wt.dynamicMainBullets+4)}px`}),wt.dynamicMainBullets>1&&Pt!==void 0&&(lt+=Ct-(Pt||0),lt>wt.dynamicMainBullets-1?lt=wt.dynamicMainBullets-1:lt<0&&(lt=0)),Vt=Math.max(Ct-lt,0),Ft=Vt+(Math.min(Dt.length,wt.dynamicMainBullets)-1),Ht=(Ft+Vt)/2),Dt.forEach(Nt=>{const Lt=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(Mt=>`${wt.bulletActiveClass}${Mt}`)].map(Mt=>typeof Mt=="string"&&Mt.includes(" ")?Mt.split(" "):Mt).flat();Nt.classList.remove(...Lt)}),Rt.length>1)Dt.forEach(Nt=>{const Lt=elementIndex(Nt);Lt===Ct?Nt.classList.add(...wt.bulletActiveClass.split(" ")):et.isElement&&Nt.setAttribute("part","bullet"),wt.dynamicBullets&&(Lt>=Vt&&Lt<=Ft&&Nt.classList.add(...`${wt.bulletActiveClass}-main`.split(" ")),Lt===Vt&&dt(Nt,"prev"),Lt===Ft&&dt(Nt,"next"))});else{const Nt=Dt[Ct];if(Nt&&Nt.classList.add(...wt.bulletActiveClass.split(" ")),et.isElement&&Dt.forEach((Lt,Mt)=>{Lt.setAttribute("part",Mt===Ct?"bullet-active":"bullet")}),wt.dynamicBullets){const Lt=Dt[Vt],Mt=Dt[Ft];for(let zt=Vt;zt<=Ft;zt+=1)Dt[zt]&&Dt[zt].classList.add(...`${wt.bulletActiveClass}-main`.split(" "));dt(Lt,"prev"),dt(Mt,"next")}}if(wt.dynamicBullets){const Nt=Math.min(Dt.length,wt.dynamicMainBullets+4),Lt=(at*Nt-at)/2-Ht*at,Mt=St?"right":"left";Dt.forEach(zt=>{zt.style[et.isHorizontal()?Mt:"top"]=`${Lt}px`})}}Rt.forEach((Dt,Vt)=>{if(wt.type==="fraction"&&(Dt.querySelectorAll(classesToSelector(wt.currentClass)).forEach(Ft=>{Ft.textContent=wt.formatFractionCurrent(Ct+1)}),Dt.querySelectorAll(classesToSelector(wt.totalClass)).forEach(Ft=>{Ft.textContent=wt.formatFractionTotal(jt)})),wt.type==="progressbar"){let Ft;wt.progressbarOpposite?Ft=et.isHorizontal()?"vertical":"horizontal":Ft=et.isHorizontal()?"horizontal":"vertical";const Ht=(Ct+1)/jt;let Nt=1,Lt=1;Ft==="horizontal"?Nt=Ht:Lt=Ht,Dt.querySelectorAll(classesToSelector(wt.progressbarFillClass)).forEach(Mt=>{Mt.style.transform=`translate3d(0,0,0) scaleX(${Nt}) scaleY(${Lt})`,Mt.style.transitionDuration=`${et.params.speed}ms`})}wt.type==="custom"&&wt.renderCustom?(Dt.innerHTML=wt.renderCustom(et,Ct+1,jt),Vt===0&&st("paginationRender",Dt)):(Vt===0&&st("paginationRender",Dt),st("paginationUpdate",Dt)),et.params.watchOverflow&&et.enabled&&Dt.classList[et.isLocked?"add":"remove"](wt.lockClass)})}function xt(){const St=et.params.pagination;if(ct())return;const wt=et.virtual&&et.params.virtual.enabled?et.virtual.slides.length:et.slides.length;let Rt=et.pagination.el;Rt=ut(Rt);let Ct="";if(St.type==="bullets"){let Pt=et.params.loop?Math.ceil(wt/et.params.slidesPerGroup):et.snapGrid.length;et.params.freeMode&&et.params.freeMode.enabled&&Pt>wt&&(Pt=wt);for(let It=0;It<Pt;It+=1)St.renderBullet?Ct+=St.renderBullet.call(et,It,St.bulletClass):Ct+=`<${St.bulletElement} ${et.isElement?'part="bullet"':""} class="${St.bulletClass}"></${St.bulletElement}>`}St.type==="fraction"&&(St.renderFraction?Ct=St.renderFraction.call(et,St.currentClass,St.totalClass):Ct=`<span class="${St.currentClass}"></span> / <span class="${St.totalClass}"></span>`),St.type==="progressbar"&&(St.renderProgressbar?Ct=St.renderProgressbar.call(et,St.progressbarFillClass):Ct=`<span class="${St.progressbarFillClass}"></span>`),et.pagination.bullets=[],Rt.forEach(Pt=>{St.type!=="custom"&&(Pt.innerHTML=Ct||""),St.type==="bullets"&&et.pagination.bullets.push(...Pt.querySelectorAll(classesToSelector(St.bulletClass)))}),St.type!=="custom"&&st("paginationRender",Rt[0])}function yt(){et.params.pagination=createElementIfNotDefined(et,et.originalParams.pagination,et.params.pagination,{el:"swiper-pagination"});const St=et.params.pagination;if(!St.el)return;let wt;typeof St.el=="string"&&et.isElement&&(wt=et.el.querySelector(St.el)),!wt&&typeof St.el=="string"&&(wt=[...document.querySelectorAll(St.el)]),wt||(wt=St.el),!(!wt||wt.length===0)&&(et.params.uniqueNavElements&&typeof St.el=="string"&&Array.isArray(wt)&&wt.length>1&&(wt=[...et.el.querySelectorAll(St.el)],wt.length>1&&(wt=wt.filter(Rt=>elementParents(Rt,".swiper")[0]===et.el)[0])),Array.isArray(wt)&&wt.length===1&&(wt=wt[0]),Object.assign(et.pagination,{el:wt}),wt=ut(wt),wt.forEach(Rt=>{St.type==="bullets"&&St.clickable&&Rt.classList.add(...(St.clickableClass||"").split(" ")),Rt.classList.add(St.modifierClass+St.type),Rt.classList.add(et.isHorizontal()?St.horizontalClass:St.verticalClass),St.type==="bullets"&&St.dynamicBullets&&(Rt.classList.add(`${St.modifierClass}${St.type}-dynamic`),lt=0,St.dynamicMainBullets<1&&(St.dynamicMainBullets=1)),St.type==="progressbar"&&St.progressbarOpposite&&Rt.classList.add(St.progressbarOppositeClass),St.clickable&&Rt.addEventListener("click",ht),et.enabled||Rt.classList.add(St.lockClass)}))}function vt(){const St=et.params.pagination;if(ct())return;let wt=et.pagination.el;wt&&(wt=ut(wt),wt.forEach(Rt=>{Rt.classList.remove(St.hiddenClass),Rt.classList.remove(St.modifierClass+St.type),Rt.classList.remove(et.isHorizontal()?St.horizontalClass:St.verticalClass),St.clickable&&(Rt.classList.remove(...(St.clickableClass||"").split(" ")),Rt.removeEventListener("click",ht))})),et.pagination.bullets&&et.pagination.bullets.forEach(Rt=>Rt.classList.remove(...St.bulletActiveClass.split(" ")))}nt("changeDirection",()=>{if(!et.pagination||!et.pagination.el)return;const St=et.params.pagination;let{el:wt}=et.pagination;wt=ut(wt),wt.forEach(Rt=>{Rt.classList.remove(St.horizontalClass,St.verticalClass),Rt.classList.add(et.isHorizontal()?St.horizontalClass:St.verticalClass)})}),nt("init",()=>{et.params.pagination.enabled===!1?bt():(yt(),xt(),ft())}),nt("activeIndexChange",()=>{typeof et.snapIndex>"u"&&ft()}),nt("snapIndexChange",()=>{ft()}),nt("snapGridLengthChange",()=>{xt(),ft()}),nt("destroy",()=>{vt()}),nt("enable disable",()=>{let{el:St}=et.pagination;St&&(St=ut(St),St.forEach(wt=>wt.classList[et.enabled?"remove":"add"](et.params.pagination.lockClass)))}),nt("lock unlock",()=>{ft()}),nt("click",(St,wt)=>{const Rt=wt.target,Ct=ut(et.pagination.el);if(et.params.pagination.el&&et.params.pagination.hideOnClick&&Ct&&Ct.length>0&&!Rt.classList.contains(et.params.pagination.bulletClass)){if(et.navigation&&(et.navigation.nextEl&&Rt===et.navigation.nextEl||et.navigation.prevEl&&Rt===et.navigation.prevEl))return;const Pt=Ct[0].classList.contains(et.params.pagination.hiddenClass);st(Pt===!0?"paginationShow":"paginationHide"),Ct.forEach(It=>It.classList.toggle(et.params.pagination.hiddenClass))}});const Et=()=>{et.el.classList.remove(et.params.pagination.paginationDisabledClass);let{el:St}=et.pagination;St&&(St=ut(St),St.forEach(wt=>wt.classList.remove(et.params.pagination.paginationDisabledClass))),yt(),xt(),ft()},bt=()=>{et.el.classList.add(et.params.pagination.paginationDisabledClass);let{el:St}=et.pagination;St&&(St=ut(St),St.forEach(wt=>wt.classList.add(et.params.pagination.paginationDisabledClass))),vt()};Object.assign(et.pagination,{enable:Et,disable:bt,render:xt,update:ft,init:yt,destroy:vt})}let support;function calcSupport(){const tt=getWindow(),et=getDocument();return{smoothScroll:et.documentElement&&et.documentElement.style&&"scrollBehavior"in et.documentElement.style,touch:!!("ontouchstart"in tt||tt.DocumentTouch&&et instanceof tt.DocumentTouch)}}function getSupport(){return support||(support=calcSupport()),support}let deviceCached;function calcDevice(tt){let{userAgent:et}=tt===void 0?{}:tt;const rt=getSupport(),nt=getWindow(),st=nt.navigator.platform,ot=et||nt.navigator.userAgent,at={ios:!1,android:!1},lt=nt.screen.width,ut=nt.screen.height,ct=ot.match(/(Android);?[\s\/]+([\d.]+)?/);let dt=ot.match(/(iPad).*OS\s([\d_]+)/);const ht=ot.match(/(iPod)(.*OS\s([\d_]+))?/),ft=!dt&&ot.match(/(iPhone\sOS|iOS)\s([\d_]+)/),xt=st==="Win32";let yt=st==="MacIntel";const vt=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!dt&&yt&&rt.touch&&vt.indexOf(`${lt}x${ut}`)>=0&&(dt=ot.match(/(Version)\/([\d.]+)/),dt||(dt=[0,1,"13_0_0"]),yt=!1),ct&&!xt&&(at.os="android",at.android=!0),(dt||ft||ht)&&(at.os="ios",at.ios=!0),at}function getDevice(tt){return tt===void 0&&(tt={}),deviceCached||(deviceCached=calcDevice(tt)),deviceCached}let browser;function calcBrowser(){const tt=getWindow();let et=!1;function rt(){const nt=tt.navigator.userAgent.toLowerCase();return nt.indexOf("safari")>=0&&nt.indexOf("chrome")<0&&nt.indexOf("android")<0}if(rt()){const nt=String(tt.navigator.userAgent);if(nt.includes("Version/")){const[st,ot]=nt.split("Version/")[1].split(" ")[0].split(".").map(at=>Number(at));et=st<16||st===16&&ot<2}}return{isSafari:et||rt(),needPerspectiveFix:et,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(tt.navigator.userAgent)}}function getBrowser(){return browser||(browser=calcBrowser()),browser}function Resize(tt){let{swiper:et,on:rt,emit:nt}=tt;const st=getWindow();let ot=null,at=null;const lt=()=>{!et||et.destroyed||!et.initialized||(nt("beforeResize"),nt("resize"))},ut=()=>{!et||et.destroyed||!et.initialized||(ot=new ResizeObserver(ht=>{at=st.requestAnimationFrame(()=>{const{width:ft,height:xt}=et;let yt=ft,vt=xt;ht.forEach(Et=>{let{contentBoxSize:bt,contentRect:St,target:wt}=Et;wt&&wt!==et.el||(yt=St?St.width:(bt[0]||bt).inlineSize,vt=St?St.height:(bt[0]||bt).blockSize)}),(yt!==ft||vt!==xt)&<()})}),ot.observe(et.el))},ct=()=>{at&&st.cancelAnimationFrame(at),ot&&ot.unobserve&&et.el&&(ot.unobserve(et.el),ot=null)},dt=()=>{!et||et.destroyed||!et.initialized||nt("orientationchange")};rt("init",()=>{if(et.params.resizeObserver&&typeof st.ResizeObserver<"u"){ut();return}st.addEventListener("resize",lt),st.addEventListener("orientationchange",dt)}),rt("destroy",()=>{ct(),st.removeEventListener("resize",lt),st.removeEventListener("orientationchange",dt)})}function Observer(tt){let{swiper:et,extendParams:rt,on:nt,emit:st}=tt;const ot=[],at=getWindow(),lt=function(dt,ht){ht===void 0&&(ht={});const ft=at.MutationObserver||at.WebkitMutationObserver,xt=new ft(yt=>{if(et.__preventObserver__)return;if(yt.length===1){st("observerUpdate",yt[0]);return}const vt=function(){st("observerUpdate",yt[0])};at.requestAnimationFrame?at.requestAnimationFrame(vt):at.setTimeout(vt,0)});xt.observe(dt,{attributes:typeof ht.attributes>"u"?!0:ht.attributes,childList:typeof ht.childList>"u"?!0:ht.childList,characterData:typeof ht.characterData>"u"?!0:ht.characterData}),ot.push(xt)},ut=()=>{if(et.params.observer){if(et.params.observeParents){const dt=elementParents(et.hostEl);for(let ht=0;ht<dt.length;ht+=1)lt(dt[ht])}lt(et.hostEl,{childList:et.params.observeSlideChildren}),lt(et.wrapperEl,{attributes:!1})}},ct=()=>{ot.forEach(dt=>{dt.disconnect()}),ot.splice(0,ot.length)};rt({observer:!1,observeParents:!1,observeSlideChildren:!1}),nt("init",ut),nt("destroy",ct)}var eventsEmitter={on(tt,et,rt){const nt=this;if(!nt.eventsListeners||nt.destroyed||typeof et!="function")return nt;const st=rt?"unshift":"push";return tt.split(" ").forEach(ot=>{nt.eventsListeners[ot]||(nt.eventsListeners[ot]=[]),nt.eventsListeners[ot][st](et)}),nt},once(tt,et,rt){const nt=this;if(!nt.eventsListeners||nt.destroyed||typeof et!="function")return nt;function st(){nt.off(tt,st),st.__emitterProxy&&delete st.__emitterProxy;for(var ot=arguments.length,at=new Array(ot),lt=0;lt<ot;lt++)at[lt]=arguments[lt];et.apply(nt,at)}return st.__emitterProxy=et,nt.on(tt,st,rt)},onAny(tt,et){const rt=this;if(!rt.eventsListeners||rt.destroyed||typeof tt!="function")return rt;const nt=et?"unshift":"push";return rt.eventsAnyListeners.indexOf(tt)<0&&rt.eventsAnyListeners[nt](tt),rt},offAny(tt){const et=this;if(!et.eventsListeners||et.destroyed||!et.eventsAnyListeners)return et;const rt=et.eventsAnyListeners.indexOf(tt);return rt>=0&&et.eventsAnyListeners.splice(rt,1),et},off(tt,et){const rt=this;return!rt.eventsListeners||rt.destroyed||!rt.eventsListeners||tt.split(" ").forEach(nt=>{typeof et>"u"?rt.eventsListeners[nt]=[]:rt.eventsListeners[nt]&&rt.eventsListeners[nt].forEach((st,ot)=>{(st===et||st.__emitterProxy&&st.__emitterProxy===et)&&rt.eventsListeners[nt].splice(ot,1)})}),rt},emit(){const tt=this;if(!tt.eventsListeners||tt.destroyed||!tt.eventsListeners)return tt;let et,rt,nt;for(var st=arguments.length,ot=new Array(st),at=0;at<st;at++)ot[at]=arguments[at];return typeof ot[0]=="string"||Array.isArray(ot[0])?(et=ot[0],rt=ot.slice(1,ot.length),nt=tt):(et=ot[0].events,rt=ot[0].data,nt=ot[0].context||tt),rt.unshift(nt),(Array.isArray(et)?et:et.split(" ")).forEach(ut=>{tt.eventsAnyListeners&&tt.eventsAnyListeners.length&&tt.eventsAnyListeners.forEach(ct=>{ct.apply(nt,[ut,...rt])}),tt.eventsListeners&&tt.eventsListeners[ut]&&tt.eventsListeners[ut].forEach(ct=>{ct.apply(nt,rt)})}),tt}};function updateSize(){const tt=this;let et,rt;const nt=tt.el;typeof tt.params.width<"u"&&tt.params.width!==null?et=tt.params.width:et=nt.clientWidth,typeof tt.params.height<"u"&&tt.params.height!==null?rt=tt.params.height:rt=nt.clientHeight,!(et===0&&tt.isHorizontal()||rt===0&&tt.isVertical())&&(et=et-parseInt(elementStyle(nt,"padding-left")||0,10)-parseInt(elementStyle(nt,"padding-right")||0,10),rt=rt-parseInt(elementStyle(nt,"padding-top")||0,10)-parseInt(elementStyle(nt,"padding-bottom")||0,10),Number.isNaN(et)&&(et=0),Number.isNaN(rt)&&(rt=0),Object.assign(tt,{width:et,height:rt,size:tt.isHorizontal()?et:rt}))}function updateSlides(){const tt=this;function et(Ft){return tt.isHorizontal()?Ft:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[Ft]}function rt(Ft,Ht){return parseFloat(Ft.getPropertyValue(et(Ht))||0)}const nt=tt.params,{wrapperEl:st,slidesEl:ot,size:at,rtlTranslate:lt,wrongRTL:ut}=tt,ct=tt.virtual&&nt.virtual.enabled,dt=ct?tt.virtual.slides.length:tt.slides.length,ht=elementChildren(ot,`.${tt.params.slideClass}, swiper-slide`),ft=ct?tt.virtual.slides.length:ht.length;let xt=[];const yt=[],vt=[];let Et=nt.slidesOffsetBefore;typeof Et=="function"&&(Et=nt.slidesOffsetBefore.call(tt));let bt=nt.slidesOffsetAfter;typeof bt=="function"&&(bt=nt.slidesOffsetAfter.call(tt));const St=tt.snapGrid.length,wt=tt.slidesGrid.length;let Rt=nt.spaceBetween,Ct=-Et,Pt=0,It=0;if(typeof at>"u")return;typeof Rt=="string"&&Rt.indexOf("%")>=0?Rt=parseFloat(Rt.replace("%",""))/100*at:typeof Rt=="string"&&(Rt=parseFloat(Rt)),tt.virtualSize=-Rt,ht.forEach(Ft=>{lt?Ft.style.marginLeft="":Ft.style.marginRight="",Ft.style.marginBottom="",Ft.style.marginTop=""}),nt.centeredSlides&&nt.cssMode&&(setCSSProperty(st,"--swiper-centered-offset-before",""),setCSSProperty(st,"--swiper-centered-offset-after",""));const jt=nt.grid&&nt.grid.rows>1&&tt.grid;jt&&tt.grid.initSlides(ft);let Dt;const Vt=nt.slidesPerView==="auto"&&nt.breakpoints&&Object.keys(nt.breakpoints).filter(Ft=>typeof nt.breakpoints[Ft].slidesPerView<"u").length>0;for(let Ft=0;Ft<ft;Ft+=1){Dt=0;let Ht;if(ht[Ft]&&(Ht=ht[Ft]),jt&&tt.grid.updateSlide(Ft,Ht,ft,et),!(ht[Ft]&&elementStyle(Ht,"display")==="none")){if(nt.slidesPerView==="auto"){Vt&&(ht[Ft].style[et("width")]="");const Nt=getComputedStyle(Ht),Lt=Ht.style.transform,Mt=Ht.style.webkitTransform;if(Lt&&(Ht.style.transform="none"),Mt&&(Ht.style.webkitTransform="none"),nt.roundLengths)Dt=tt.isHorizontal()?elementOuterSize(Ht,"width"):elementOuterSize(Ht,"height");else{const zt=rt(Nt,"width"),Gt=rt(Nt,"padding-left"),Ot=rt(Nt,"padding-right"),Ut=rt(Nt,"margin-left"),Bt=rt(Nt,"margin-right"),Yt=Nt.getPropertyValue("box-sizing");if(Yt&&Yt==="border-box")Dt=zt+Ut+Bt;else{const{clientWidth:Zt,offsetWidth:Xt}=Ht;Dt=zt+Gt+Ot+Ut+Bt+(Xt-Zt)}}Lt&&(Ht.style.transform=Lt),Mt&&(Ht.style.webkitTransform=Mt),nt.roundLengths&&(Dt=Math.floor(Dt))}else Dt=(at-(nt.slidesPerView-1)*Rt)/nt.slidesPerView,nt.roundLengths&&(Dt=Math.floor(Dt)),ht[Ft]&&(ht[Ft].style[et("width")]=`${Dt}px`);ht[Ft]&&(ht[Ft].swiperSlideSize=Dt),vt.push(Dt),nt.centeredSlides?(Ct=Ct+Dt/2+Pt/2+Rt,Pt===0&&Ft!==0&&(Ct=Ct-at/2-Rt),Ft===0&&(Ct=Ct-at/2-Rt),Math.abs(Ct)<1/1e3&&(Ct=0),nt.roundLengths&&(Ct=Math.floor(Ct)),It%nt.slidesPerGroup===0&&xt.push(Ct),yt.push(Ct)):(nt.roundLengths&&(Ct=Math.floor(Ct)),(It-Math.min(tt.params.slidesPerGroupSkip,It))%tt.params.slidesPerGroup===0&&xt.push(Ct),yt.push(Ct),Ct=Ct+Dt+Rt),tt.virtualSize+=Dt+Rt,Pt=Dt,It+=1}}if(tt.virtualSize=Math.max(tt.virtualSize,at)+bt,lt&&ut&&(nt.effect==="slide"||nt.effect==="coverflow")&&(st.style.width=`${tt.virtualSize+Rt}px`),nt.setWrapperSize&&(st.style[et("width")]=`${tt.virtualSize+Rt}px`),jt&&tt.grid.updateWrapperSize(Dt,xt,et),!nt.centeredSlides){const Ft=[];for(let Ht=0;Ht<xt.length;Ht+=1){let Nt=xt[Ht];nt.roundLengths&&(Nt=Math.floor(Nt)),xt[Ht]<=tt.virtualSize-at&&Ft.push(Nt)}xt=Ft,Math.floor(tt.virtualSize-at)-Math.floor(xt[xt.length-1])>1&&xt.push(tt.virtualSize-at)}if(ct&&nt.loop){const Ft=vt[0]+Rt;if(nt.slidesPerGroup>1){const Ht=Math.ceil((tt.virtual.slidesBefore+tt.virtual.slidesAfter)/nt.slidesPerGroup),Nt=Ft*nt.slidesPerGroup;for(let Lt=0;Lt<Ht;Lt+=1)xt.push(xt[xt.length-1]+Nt)}for(let Ht=0;Ht<tt.virtual.slidesBefore+tt.virtual.slidesAfter;Ht+=1)nt.slidesPerGroup===1&&xt.push(xt[xt.length-1]+Ft),yt.push(yt[yt.length-1]+Ft),tt.virtualSize+=Ft}if(xt.length===0&&(xt=[0]),Rt!==0){const Ft=tt.isHorizontal()&<?"marginLeft":et("marginRight");ht.filter((Ht,Nt)=>!nt.cssMode||nt.loop?!0:Nt!==ht.length-1).forEach(Ht=>{Ht.style[Ft]=`${Rt}px`})}if(nt.centeredSlides&&nt.centeredSlidesBounds){let Ft=0;vt.forEach(Nt=>{Ft+=Nt+(Rt||0)}),Ft-=Rt;const Ht=Ft-at;xt=xt.map(Nt=>Nt<=0?-Et:Nt>Ht?Ht+bt:Nt)}if(nt.centerInsufficientSlides){let Ft=0;if(vt.forEach(Ht=>{Ft+=Ht+(Rt||0)}),Ft-=Rt,Ft<at){const Ht=(at-Ft)/2;xt.forEach((Nt,Lt)=>{xt[Lt]=Nt-Ht}),yt.forEach((Nt,Lt)=>{yt[Lt]=Nt+Ht})}}if(Object.assign(tt,{slides:ht,snapGrid:xt,slidesGrid:yt,slidesSizesGrid:vt}),nt.centeredSlides&&nt.cssMode&&!nt.centeredSlidesBounds){setCSSProperty(st,"--swiper-centered-offset-before",`${-xt[0]}px`),setCSSProperty(st,"--swiper-centered-offset-after",`${tt.size/2-vt[vt.length-1]/2}px`);const Ft=-tt.snapGrid[0],Ht=-tt.slidesGrid[0];tt.snapGrid=tt.snapGrid.map(Nt=>Nt+Ft),tt.slidesGrid=tt.slidesGrid.map(Nt=>Nt+Ht)}if(ft!==dt&&tt.emit("slidesLengthChange"),xt.length!==St&&(tt.params.watchOverflow&&tt.checkOverflow(),tt.emit("snapGridLengthChange")),yt.length!==wt&&tt.emit("slidesGridLengthChange"),nt.watchSlidesProgress&&tt.updateSlidesOffset(),!ct&&!nt.cssMode&&(nt.effect==="slide"||nt.effect==="fade")){const Ft=`${nt.containerModifierClass}backface-hidden`,Ht=tt.el.classList.contains(Ft);ft<=nt.maxBackfaceHiddenSlides?Ht||tt.el.classList.add(Ft):Ht&&tt.el.classList.remove(Ft)}}function updateAutoHeight(tt){const et=this,rt=[],nt=et.virtual&&et.params.virtual.enabled;let st=0,ot;typeof tt=="number"?et.setTransition(tt):tt===!0&&et.setTransition(et.params.speed);const at=lt=>nt?et.slides[et.getSlideIndexByData(lt)]:et.slides[lt];if(et.params.slidesPerView!=="auto"&&et.params.slidesPerView>1)if(et.params.centeredSlides)(et.visibleSlides||[]).forEach(lt=>{rt.push(lt)});else for(ot=0;ot<Math.ceil(et.params.slidesPerView);ot+=1){const lt=et.activeIndex+ot;if(lt>et.slides.length&&!nt)break;rt.push(at(lt))}else rt.push(at(et.activeIndex));for(ot=0;ot<rt.length;ot+=1)if(typeof rt[ot]<"u"){const lt=rt[ot].offsetHeight;st=lt>st?lt:st}(st||st===0)&&(et.wrapperEl.style.height=`${st}px`)}function updateSlidesOffset(){const tt=this,et=tt.slides,rt=tt.isElement?tt.isHorizontal()?tt.wrapperEl.offsetLeft:tt.wrapperEl.offsetTop:0;for(let nt=0;nt<et.length;nt+=1)et[nt].swiperSlideOffset=(tt.isHorizontal()?et[nt].offsetLeft:et[nt].offsetTop)-rt-tt.cssOverflowAdjustment()}function updateSlidesProgress(tt){tt===void 0&&(tt=this&&this.translate||0);const et=this,rt=et.params,{slides:nt,rtlTranslate:st,snapGrid:ot}=et;if(nt.length===0)return;typeof nt[0].swiperSlideOffset>"u"&&et.updateSlidesOffset();let at=-tt;st&&(at=tt),nt.forEach(ut=>{ut.classList.remove(rt.slideVisibleClass)}),et.visibleSlidesIndexes=[],et.visibleSlides=[];let lt=rt.spaceBetween;typeof lt=="string"&<.indexOf("%")>=0?lt=parseFloat(lt.replace("%",""))/100*et.size:typeof lt=="string"&&(lt=parseFloat(lt));for(let ut=0;ut<nt.length;ut+=1){const ct=nt[ut];let dt=ct.swiperSlideOffset;rt.cssMode&&rt.centeredSlides&&(dt-=nt[0].swiperSlideOffset);const ht=(at+(rt.centeredSlides?et.minTranslate():0)-dt)/(ct.swiperSlideSize+lt),ft=(at-ot[0]+(rt.centeredSlides?et.minTranslate():0)-dt)/(ct.swiperSlideSize+lt),xt=-(at-dt),yt=xt+et.slidesSizesGrid[ut];(xt>=0&&xt<et.size-1||yt>1&&yt<=et.size||xt<=0&&yt>=et.size)&&(et.visibleSlides.push(ct),et.visibleSlidesIndexes.push(ut),nt[ut].classList.add(rt.slideVisibleClass)),ct.progress=st?-ht:ht,ct.originalProgress=st?-ft:ft}}function updateProgress(tt){const et=this;if(typeof tt>"u"){const dt=et.rtlTranslate?-1:1;tt=et&&et.translate&&et.translate*dt||0}const rt=et.params,nt=et.maxTranslate()-et.minTranslate();let{progress:st,isBeginning:ot,isEnd:at,progressLoop:lt}=et;const ut=ot,ct=at;if(nt===0)st=0,ot=!0,at=!0;else{st=(tt-et.minTranslate())/nt;const dt=Math.abs(tt-et.minTranslate())<1,ht=Math.abs(tt-et.maxTranslate())<1;ot=dt||st<=0,at=ht||st>=1,dt&&(st=0),ht&&(st=1)}if(rt.loop){const dt=et.getSlideIndexByData(0),ht=et.getSlideIndexByData(et.slides.length-1),ft=et.slidesGrid[dt],xt=et.slidesGrid[ht],yt=et.slidesGrid[et.slidesGrid.length-1],vt=Math.abs(tt);vt>=ft?lt=(vt-ft)/yt:lt=(vt+yt-xt)/yt,lt>1&&(lt-=1)}Object.assign(et,{progress:st,progressLoop:lt,isBeginning:ot,isEnd:at}),(rt.watchSlidesProgress||rt.centeredSlides&&rt.autoHeight)&&et.updateSlidesProgress(tt),ot&&!ut&&et.emit("reachBeginning toEdge"),at&&!ct&&et.emit("reachEnd toEdge"),(ut&&!ot||ct&&!at)&&et.emit("fromEdge"),et.emit("progress",st)}function updateSlidesClasses(){const tt=this,{slides:et,params:rt,slidesEl:nt,activeIndex:st}=tt,ot=tt.virtual&&rt.virtual.enabled,at=ut=>elementChildren(nt,`.${rt.slideClass}${ut}, swiper-slide${ut}`)[0];et.forEach(ut=>{ut.classList.remove(rt.slideActiveClass,rt.slideNextClass,rt.slidePrevClass)});let lt;if(ot)if(rt.loop){let ut=st-tt.virtual.slidesBefore;ut<0&&(ut=tt.virtual.slides.length+ut),ut>=tt.virtual.slides.length&&(ut-=tt.virtual.slides.length),lt=at(`[data-swiper-slide-index="${ut}"]`)}else lt=at(`[data-swiper-slide-index="${st}"]`);else lt=et[st];if(lt){lt.classList.add(rt.slideActiveClass);let ut=elementNextAll(lt,`.${rt.slideClass}, swiper-slide`)[0];rt.loop&&!ut&&(ut=et[0]),ut&&ut.classList.add(rt.slideNextClass);let ct=elementPrevAll(lt,`.${rt.slideClass}, swiper-slide`)[0];rt.loop&&!ct===0&&(ct=et[et.length-1]),ct&&ct.classList.add(rt.slidePrevClass)}tt.emitSlidesClasses()}const processLazyPreloader=(tt,et)=>{if(!tt||tt.destroyed||!tt.params)return;const rt=()=>tt.isElement?"swiper-slide":`.${tt.params.slideClass}`,nt=et.closest(rt());if(nt){let st=nt.querySelector(`.${tt.params.lazyPreloaderClass}`);!st&&tt.isElement&&(nt.shadowRoot?st=nt.shadowRoot.querySelector(`.${tt.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{nt.shadowRoot&&(st=nt.shadowRoot.querySelector(`.${tt.params.lazyPreloaderClass}`),st&&st.remove())})),st&&st.remove()}},unlazy=(tt,et)=>{if(!tt.slides[et])return;const rt=tt.slides[et].querySelector('[loading="lazy"]');rt&&rt.removeAttribute("loading")},preload=tt=>{if(!tt||tt.destroyed||!tt.params)return;let et=tt.params.lazyPreloadPrevNext;const rt=tt.slides.length;if(!rt||!et||et<0)return;et=Math.min(et,rt);const nt=tt.params.slidesPerView==="auto"?tt.slidesPerViewDynamic():Math.ceil(tt.params.slidesPerView),st=tt.activeIndex;if(tt.params.grid&&tt.params.grid.rows>1){const at=st,lt=[at-et];lt.push(...Array.from({length:et}).map((ut,ct)=>at+nt+ct)),tt.slides.forEach((ut,ct)=>{lt.includes(ut.column)&&unlazy(tt,ct)});return}const ot=st+nt-1;if(tt.params.rewind||tt.params.loop)for(let at=st-et;at<=ot+et;at+=1){const lt=(at%rt+rt)%rt;(lt<st||lt>ot)&&unlazy(tt,lt)}else for(let at=Math.max(st-et,0);at<=Math.min(ot+et,rt-1);at+=1)at!==st&&(at>ot||at<st)&&unlazy(tt,at)};function getActiveIndexByTranslate(tt){const{slidesGrid:et,params:rt}=tt,nt=tt.rtlTranslate?tt.translate:-tt.translate;let st;for(let ot=0;ot<et.length;ot+=1)typeof et[ot+1]<"u"?nt>=et[ot]&&nt<et[ot+1]-(et[ot+1]-et[ot])/2?st=ot:nt>=et[ot]&&nt<et[ot+1]&&(st=ot+1):nt>=et[ot]&&(st=ot);return rt.normalizeSlideIndex&&(st<0||typeof st>"u")&&(st=0),st}function updateActiveIndex(tt){const et=this,rt=et.rtlTranslate?et.translate:-et.translate,{snapGrid:nt,params:st,activeIndex:ot,realIndex:at,snapIndex:lt}=et;let ut=tt,ct;const dt=ft=>{let xt=ft-et.virtual.slidesBefore;return xt<0&&(xt=et.virtual.slides.length+xt),xt>=et.virtual.slides.length&&(xt-=et.virtual.slides.length),xt};if(typeof ut>"u"&&(ut=getActiveIndexByTranslate(et)),nt.indexOf(rt)>=0)ct=nt.indexOf(rt);else{const ft=Math.min(st.slidesPerGroupSkip,ut);ct=ft+Math.floor((ut-ft)/st.slidesPerGroup)}if(ct>=nt.length&&(ct=nt.length-1),ut===ot){ct!==lt&&(et.snapIndex=ct,et.emit("snapIndexChange")),et.params.loop&&et.virtual&&et.params.virtual.enabled&&(et.realIndex=dt(ut));return}let ht;et.virtual&&st.virtual.enabled&&st.loop?ht=dt(ut):et.slides[ut]?ht=parseInt(et.slides[ut].getAttribute("data-swiper-slide-index")||ut,10):ht=ut,Object.assign(et,{previousSnapIndex:lt,snapIndex:ct,previousRealIndex:at,realIndex:ht,previousIndex:ot,activeIndex:ut}),et.initialized&&preload(et),et.emit("activeIndexChange"),et.emit("snapIndexChange"),(et.initialized||et.params.runCallbacksOnInit)&&(at!==ht&&et.emit("realIndexChange"),et.emit("slideChange"))}function updateClickedSlide(tt,et){const rt=this,nt=rt.params;let st=tt.closest(`.${nt.slideClass}, swiper-slide`);!st&&rt.isElement&&et&&et.length>1&&et.includes(tt)&&[...et.slice(et.indexOf(tt)+1,et.length)].forEach(lt=>{!st&<.matches&<.matches(`.${nt.slideClass}, swiper-slide`)&&(st=lt)});let ot=!1,at;if(st){for(let lt=0;lt<rt.slides.length;lt+=1)if(rt.slides[lt]===st){ot=!0,at=lt;break}}if(st&&ot)rt.clickedSlide=st,rt.virtual&&rt.params.virtual.enabled?rt.clickedIndex=parseInt(st.getAttribute("data-swiper-slide-index"),10):rt.clickedIndex=at;else{rt.clickedSlide=void 0,rt.clickedIndex=void 0;return}nt.slideToClickedSlide&&rt.clickedIndex!==void 0&&rt.clickedIndex!==rt.activeIndex&&rt.slideToClickedSlide()}var update={updateSize,updateSlides,updateAutoHeight,updateSlidesOffset,updateSlidesProgress,updateProgress,updateSlidesClasses,updateActiveIndex,updateClickedSlide};function getSwiperTranslate(tt){tt===void 0&&(tt=this.isHorizontal()?"x":"y");const et=this,{params:rt,rtlTranslate:nt,translate:st,wrapperEl:ot}=et;if(rt.virtualTranslate)return nt?-st:st;if(rt.cssMode)return st;let at=getTranslate(ot,tt);return at+=et.cssOverflowAdjustment(),nt&&(at=-at),at||0}function setTranslate(tt,et){const rt=this,{rtlTranslate:nt,params:st,wrapperEl:ot,progress:at}=rt;let lt=0,ut=0;const ct=0;rt.isHorizontal()?lt=nt?-tt:tt:ut=tt,st.roundLengths&&(lt=Math.floor(lt),ut=Math.floor(ut)),rt.previousTranslate=rt.translate,rt.translate=rt.isHorizontal()?lt:ut,st.cssMode?ot[rt.isHorizontal()?"scrollLeft":"scrollTop"]=rt.isHorizontal()?-lt:-ut:st.virtualTranslate||(rt.isHorizontal()?lt-=rt.cssOverflowAdjustment():ut-=rt.cssOverflowAdjustment(),ot.style.transform=`translate3d(${lt}px, ${ut}px, ${ct}px)`);let dt;const ht=rt.maxTranslate()-rt.minTranslate();ht===0?dt=0:dt=(tt-rt.minTranslate())/ht,dt!==at&&rt.updateProgress(tt),rt.emit("setTranslate",rt.translate,et)}function minTranslate(){return-this.snapGrid[0]}function maxTranslate(){return-this.snapGrid[this.snapGrid.length-1]}function translateTo(tt,et,rt,nt,st){tt===void 0&&(tt=0),et===void 0&&(et=this.params.speed),rt===void 0&&(rt=!0),nt===void 0&&(nt=!0);const ot=this,{params:at,wrapperEl:lt}=ot;if(ot.animating&&at.preventInteractionOnTransition)return!1;const ut=ot.minTranslate(),ct=ot.maxTranslate();let dt;if(nt&&tt>ut?dt=ut:nt&&tt<ct?dt=ct:dt=tt,ot.updateProgress(dt),at.cssMode){const ht=ot.isHorizontal();if(et===0)lt[ht?"scrollLeft":"scrollTop"]=-dt;else{if(!ot.support.smoothScroll)return animateCSSModeScroll({swiper:ot,targetPosition:-dt,side:ht?"left":"top"}),!0;lt.scrollTo({[ht?"left":"top"]:-dt,behavior:"smooth"})}return!0}return et===0?(ot.setTransition(0),ot.setTranslate(dt),rt&&(ot.emit("beforeTransitionStart",et,st),ot.emit("transitionEnd"))):(ot.setTransition(et),ot.setTranslate(dt),rt&&(ot.emit("beforeTransitionStart",et,st),ot.emit("transitionStart")),ot.animating||(ot.animating=!0,ot.onTranslateToWrapperTransitionEnd||(ot.onTranslateToWrapperTransitionEnd=function(ft){!ot||ot.destroyed||ft.target===this&&(ot.wrapperEl.removeEventListener("transitionend",ot.onTranslateToWrapperTransitionEnd),ot.onTranslateToWrapperTransitionEnd=null,delete ot.onTranslateToWrapperTransitionEnd,rt&&ot.emit("transitionEnd"))}),ot.wrapperEl.addEventListener("transitionend",ot.onTranslateToWrapperTransitionEnd))),!0}var translate={getTranslate:getSwiperTranslate,setTranslate,minTranslate,maxTranslate,translateTo};function setTransition(tt,et){const rt=this;rt.params.cssMode||(rt.wrapperEl.style.transitionDuration=`${tt}ms`,rt.wrapperEl.style.transitionDelay=tt===0?"0ms":""),rt.emit("setTransition",tt,et)}function transitionEmit(tt){let{swiper:et,runCallbacks:rt,direction:nt,step:st}=tt;const{activeIndex:ot,previousIndex:at}=et;let lt=nt;if(lt||(ot>at?lt="next":ot<at?lt="prev":lt="reset"),et.emit(`transition${st}`),rt&&ot!==at){if(lt==="reset"){et.emit(`slideResetTransition${st}`);return}et.emit(`slideChangeTransition${st}`),lt==="next"?et.emit(`slideNextTransition${st}`):et.emit(`slidePrevTransition${st}`)}}function transitionStart(tt,et){tt===void 0&&(tt=!0);const rt=this,{params:nt}=rt;nt.cssMode||(nt.autoHeight&&rt.updateAutoHeight(),transitionEmit({swiper:rt,runCallbacks:tt,direction:et,step:"Start"}))}function transitionEnd(tt,et){tt===void 0&&(tt=!0);const rt=this,{params:nt}=rt;rt.animating=!1,!nt.cssMode&&(rt.setTransition(0),transitionEmit({swiper:rt,runCallbacks:tt,direction:et,step:"End"}))}var transition={setTransition,transitionStart,transitionEnd};function slideTo(tt,et,rt,nt,st){tt===void 0&&(tt=0),et===void 0&&(et=this.params.speed),rt===void 0&&(rt=!0),typeof tt=="string"&&(tt=parseInt(tt,10));const ot=this;let at=tt;at<0&&(at=0);const{params:lt,snapGrid:ut,slidesGrid:ct,previousIndex:dt,activeIndex:ht,rtlTranslate:ft,wrapperEl:xt,enabled:yt}=ot;if(ot.animating&<.preventInteractionOnTransition||!yt&&!nt&&!st)return!1;const vt=Math.min(ot.params.slidesPerGroupSkip,at);let Et=vt+Math.floor((at-vt)/ot.params.slidesPerGroup);Et>=ut.length&&(Et=ut.length-1);const bt=-ut[Et];if(lt.normalizeSlideIndex)for(let wt=0;wt<ct.length;wt+=1){const Rt=-Math.floor(bt*100),Ct=Math.floor(ct[wt]*100),Pt=Math.floor(ct[wt+1]*100);typeof ct[wt+1]<"u"?Rt>=Ct&&Rt<Pt-(Pt-Ct)/2?at=wt:Rt>=Ct&&Rt<Pt&&(at=wt+1):Rt>=Ct&&(at=wt)}if(ot.initialized&&at!==ht&&(!ot.allowSlideNext&&(ft?bt>ot.translate&&bt>ot.minTranslate():bt<ot.translate&&bt<ot.minTranslate())||!ot.allowSlidePrev&&bt>ot.translate&&bt>ot.maxTranslate()&&(ht||0)!==at))return!1;at!==(dt||0)&&rt&&ot.emit("beforeSlideChangeStart"),ot.updateProgress(bt);let St;if(at>ht?St="next":at<ht?St="prev":St="reset",ft&&-bt===ot.translate||!ft&&bt===ot.translate)return ot.updateActiveIndex(at),lt.autoHeight&&ot.updateAutoHeight(),ot.updateSlidesClasses(),lt.effect!=="slide"&&ot.setTranslate(bt),St!=="reset"&&(ot.transitionStart(rt,St),ot.transitionEnd(rt,St)),!1;if(lt.cssMode){const wt=ot.isHorizontal(),Rt=ft?bt:-bt;if(et===0){const Ct=ot.virtual&&ot.params.virtual.enabled;Ct&&(ot.wrapperEl.style.scrollSnapType="none",ot._immediateVirtual=!0),Ct&&!ot._cssModeVirtualInitialSet&&ot.params.initialSlide>0?(ot._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{xt[wt?"scrollLeft":"scrollTop"]=Rt})):xt[wt?"scrollLeft":"scrollTop"]=Rt,Ct&&requestAnimationFrame(()=>{ot.wrapperEl.style.scrollSnapType="",ot._immediateVirtual=!1})}else{if(!ot.support.smoothScroll)return animateCSSModeScroll({swiper:ot,targetPosition:Rt,side:wt?"left":"top"}),!0;xt.scrollTo({[wt?"left":"top"]:Rt,behavior:"smooth"})}return!0}return ot.setTransition(et),ot.setTranslate(bt),ot.updateActiveIndex(at),ot.updateSlidesClasses(),ot.emit("beforeTransitionStart",et,nt),ot.transitionStart(rt,St),et===0?ot.transitionEnd(rt,St):ot.animating||(ot.animating=!0,ot.onSlideToWrapperTransitionEnd||(ot.onSlideToWrapperTransitionEnd=function(Rt){!ot||ot.destroyed||Rt.target===this&&(ot.wrapperEl.removeEventListener("transitionend",ot.onSlideToWrapperTransitionEnd),ot.onSlideToWrapperTransitionEnd=null,delete ot.onSlideToWrapperTransitionEnd,ot.transitionEnd(rt,St))}),ot.wrapperEl.addEventListener("transitionend",ot.onSlideToWrapperTransitionEnd)),!0}function slideToLoop(tt,et,rt,nt){tt===void 0&&(tt=0),et===void 0&&(et=this.params.speed),rt===void 0&&(rt=!0),typeof tt=="string"&&(tt=parseInt(tt,10));const st=this;let ot=tt;return st.params.loop&&(st.virtual&&st.params.virtual.enabled?ot=ot+st.virtual.slidesBefore:ot=st.getSlideIndexByData(ot)),st.slideTo(ot,et,rt,nt)}function slideNext(tt,et,rt){tt===void 0&&(tt=this.params.speed),et===void 0&&(et=!0);const nt=this,{enabled:st,params:ot,animating:at}=nt;if(!st)return nt;let lt=ot.slidesPerGroup;ot.slidesPerView==="auto"&&ot.slidesPerGroup===1&&ot.slidesPerGroupAuto&&(lt=Math.max(nt.slidesPerViewDynamic("current",!0),1));const ut=nt.activeIndex<ot.slidesPerGroupSkip?1:lt,ct=nt.virtual&&ot.virtual.enabled;if(ot.loop){if(at&&!ct&&ot.loopPreventsSliding)return!1;if(nt.loopFix({direction:"next"}),nt._clientLeft=nt.wrapperEl.clientLeft,nt.activeIndex===nt.slides.length-1&&ot.cssMode)return requestAnimationFrame(()=>{nt.slideTo(nt.activeIndex+ut,tt,et,rt)}),!0}return ot.rewind&&nt.isEnd?nt.slideTo(0,tt,et,rt):nt.slideTo(nt.activeIndex+ut,tt,et,rt)}function slidePrev(tt,et,rt){tt===void 0&&(tt=this.params.speed),et===void 0&&(et=!0);const nt=this,{params:st,snapGrid:ot,slidesGrid:at,rtlTranslate:lt,enabled:ut,animating:ct}=nt;if(!ut)return nt;const dt=nt.virtual&&st.virtual.enabled;if(st.loop){if(ct&&!dt&&st.loopPreventsSliding)return!1;nt.loopFix({direction:"prev"}),nt._clientLeft=nt.wrapperEl.clientLeft}const ht=lt?nt.translate:-nt.translate;function ft(bt){return bt<0?-Math.floor(Math.abs(bt)):Math.floor(bt)}const xt=ft(ht),yt=ot.map(bt=>ft(bt));let vt=ot[yt.indexOf(xt)-1];if(typeof vt>"u"&&st.cssMode){let bt;ot.forEach((St,wt)=>{xt>=St&&(bt=wt)}),typeof bt<"u"&&(vt=ot[bt>0?bt-1:bt])}let Et=0;if(typeof vt<"u"&&(Et=at.indexOf(vt),Et<0&&(Et=nt.activeIndex-1),st.slidesPerView==="auto"&&st.slidesPerGroup===1&&st.slidesPerGroupAuto&&(Et=Et-nt.slidesPerViewDynamic("previous",!0)+1,Et=Math.max(Et,0))),st.rewind&&nt.isBeginning){const bt=nt.params.virtual&&nt.params.virtual.enabled&&nt.virtual?nt.virtual.slides.length-1:nt.slides.length-1;return nt.slideTo(bt,tt,et,rt)}else if(st.loop&&nt.activeIndex===0&&st.cssMode)return requestAnimationFrame(()=>{nt.slideTo(Et,tt,et,rt)}),!0;return nt.slideTo(Et,tt,et,rt)}function slideReset(tt,et,rt){tt===void 0&&(tt=this.params.speed),et===void 0&&(et=!0);const nt=this;return nt.slideTo(nt.activeIndex,tt,et,rt)}function slideToClosest(tt,et,rt,nt){tt===void 0&&(tt=this.params.speed),et===void 0&&(et=!0),nt===void 0&&(nt=.5);const st=this;let ot=st.activeIndex;const at=Math.min(st.params.slidesPerGroupSkip,ot),lt=at+Math.floor((ot-at)/st.params.slidesPerGroup),ut=st.rtlTranslate?st.translate:-st.translate;if(ut>=st.snapGrid[lt]){const ct=st.snapGrid[lt],dt=st.snapGrid[lt+1];ut-ct>(dt-ct)*nt&&(ot+=st.params.slidesPerGroup)}else{const ct=st.snapGrid[lt-1],dt=st.snapGrid[lt];ut-ct<=(dt-ct)*nt&&(ot-=st.params.slidesPerGroup)}return ot=Math.max(ot,0),ot=Math.min(ot,st.slidesGrid.length-1),st.slideTo(ot,tt,et,rt)}function slideToClickedSlide(){const tt=this,{params:et,slidesEl:rt}=tt,nt=et.slidesPerView==="auto"?tt.slidesPerViewDynamic():et.slidesPerView;let st=tt.clickedIndex,ot;const at=tt.isElement?"swiper-slide":`.${et.slideClass}`;if(et.loop){if(tt.animating)return;ot=parseInt(tt.clickedSlide.getAttribute("data-swiper-slide-index"),10),et.centeredSlides?st<tt.loopedSlides-nt/2||st>tt.slides.length-tt.loopedSlides+nt/2?(tt.loopFix(),st=tt.getSlideIndex(elementChildren(rt,`${at}[data-swiper-slide-index="${ot}"]`)[0]),nextTick(()=>{tt.slideTo(st)})):tt.slideTo(st):st>tt.slides.length-nt?(tt.loopFix(),st=tt.getSlideIndex(elementChildren(rt,`${at}[data-swiper-slide-index="${ot}"]`)[0]),nextTick(()=>{tt.slideTo(st)})):tt.slideTo(st)}else tt.slideTo(st)}var slide={slideTo,slideToLoop,slideNext,slidePrev,slideReset,slideToClosest,slideToClickedSlide};function loopCreate(tt){const et=this,{params:rt,slidesEl:nt}=et;if(!rt.loop||et.virtual&&et.params.virtual.enabled)return;elementChildren(nt,`.${rt.slideClass}, swiper-slide`).forEach((ot,at)=>{ot.setAttribute("data-swiper-slide-index",at)}),et.loopFix({slideRealIndex:tt,direction:rt.centeredSlides?void 0:"next"})}function loopFix(tt){let{slideRealIndex:et,slideTo:rt=!0,direction:nt,setTranslate:st,activeSlideIndex:ot,byController:at,byMousewheel:lt}=tt===void 0?{}:tt;const ut=this;if(!ut.params.loop)return;ut.emit("beforeLoopFix");const{slides:ct,allowSlidePrev:dt,allowSlideNext:ht,slidesEl:ft,params:xt}=ut;if(ut.allowSlidePrev=!0,ut.allowSlideNext=!0,ut.virtual&&xt.virtual.enabled){rt&&(!xt.centeredSlides&&ut.snapIndex===0?ut.slideTo(ut.virtual.slides.length,0,!1,!0):xt.centeredSlides&&ut.snapIndex<xt.slidesPerView?ut.slideTo(ut.virtual.slides.length+ut.snapIndex,0,!1,!0):ut.snapIndex===ut.snapGrid.length-1&&ut.slideTo(ut.virtual.slidesBefore,0,!1,!0)),ut.allowSlidePrev=dt,ut.allowSlideNext=ht,ut.emit("loopFix");return}const yt=xt.slidesPerView==="auto"?ut.slidesPerViewDynamic():Math.ceil(parseFloat(xt.slidesPerView,10));let vt=xt.loopedSlides||yt;vt%xt.slidesPerGroup!==0&&(vt+=xt.slidesPerGroup-vt%xt.slidesPerGroup),ut.loopedSlides=vt;const Et=[],bt=[];let St=ut.activeIndex;typeof ot>"u"?ot=ut.getSlideIndex(ut.slides.filter(It=>It.classList.contains(xt.slideActiveClass))[0]):St=ot;const wt=nt==="next"||!nt,Rt=nt==="prev"||!nt;let Ct=0,Pt=0;if(ot<vt){Ct=Math.max(vt-ot,xt.slidesPerGroup);for(let It=0;It<vt-ot;It+=1){const jt=It-Math.floor(It/ct.length)*ct.length;Et.push(ct.length-jt-1)}}else if(ot>ut.slides.length-vt*2){Pt=Math.max(ot-(ut.slides.length-vt*2),xt.slidesPerGroup);for(let It=0;It<Pt;It+=1){const jt=It-Math.floor(It/ct.length)*ct.length;bt.push(jt)}}if(Rt&&Et.forEach(It=>{ut.slides[It].swiperLoopMoveDOM=!0,ft.prepend(ut.slides[It]),ut.slides[It].swiperLoopMoveDOM=!1}),wt&&bt.forEach(It=>{ut.slides[It].swiperLoopMoveDOM=!0,ft.append(ut.slides[It]),ut.slides[It].swiperLoopMoveDOM=!1}),ut.recalcSlides(),xt.slidesPerView==="auto"&&ut.updateSlides(),xt.watchSlidesProgress&&ut.updateSlidesOffset(),rt){if(Et.length>0&&Rt)if(typeof et>"u"){const It=ut.slidesGrid[St],Dt=ut.slidesGrid[St+Ct]-It;lt?ut.setTranslate(ut.translate-Dt):(ut.slideTo(St+Ct,0,!1,!0),st&&(ut.touches[ut.isHorizontal()?"startX":"startY"]+=Dt,ut.touchEventsData.currentTranslate=ut.translate))}else st&&(ut.slideToLoop(et,0,!1,!0),ut.touchEventsData.currentTranslate=ut.translate);else if(bt.length>0&&wt)if(typeof et>"u"){const It=ut.slidesGrid[St],Dt=ut.slidesGrid[St-Pt]-It;lt?ut.setTranslate(ut.translate-Dt):(ut.slideTo(St-Pt,0,!1,!0),st&&(ut.touches[ut.isHorizontal()?"startX":"startY"]+=Dt,ut.touchEventsData.currentTranslate=ut.translate))}else ut.slideToLoop(et,0,!1,!0)}if(ut.allowSlidePrev=dt,ut.allowSlideNext=ht,ut.controller&&ut.controller.control&&!at){const It={slideRealIndex:et,direction:nt,setTranslate:st,activeSlideIndex:ot,byController:!0};Array.isArray(ut.controller.control)?ut.controller.control.forEach(jt=>{!jt.destroyed&&jt.params.loop&&jt.loopFix({...It,slideTo:jt.params.slidesPerView===xt.slidesPerView?rt:!1})}):ut.controller.control instanceof ut.constructor&&ut.controller.control.params.loop&&ut.controller.control.loopFix({...It,slideTo:ut.controller.control.params.slidesPerView===xt.slidesPerView?rt:!1})}ut.emit("loopFix")}function loopDestroy(){const tt=this,{params:et,slidesEl:rt}=tt;if(!et.loop||tt.virtual&&tt.params.virtual.enabled)return;tt.recalcSlides();const nt=[];tt.slides.forEach(st=>{const ot=typeof st.swiperSlideIndex>"u"?st.getAttribute("data-swiper-slide-index")*1:st.swiperSlideIndex;nt[ot]=st}),tt.slides.forEach(st=>{st.removeAttribute("data-swiper-slide-index")}),nt.forEach(st=>{rt.append(st)}),tt.recalcSlides(),tt.slideTo(tt.realIndex,0)}var loop={loopCreate,loopFix,loopDestroy};function setGrabCursor(tt){const et=this;if(!et.params.simulateTouch||et.params.watchOverflow&&et.isLocked||et.params.cssMode)return;const rt=et.params.touchEventsTarget==="container"?et.el:et.wrapperEl;et.isElement&&(et.__preventObserver__=!0),rt.style.cursor="move",rt.style.cursor=tt?"grabbing":"grab",et.isElement&&requestAnimationFrame(()=>{et.__preventObserver__=!1})}function unsetGrabCursor(){const tt=this;tt.params.watchOverflow&&tt.isLocked||tt.params.cssMode||(tt.isElement&&(tt.__preventObserver__=!0),tt[tt.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",tt.isElement&&requestAnimationFrame(()=>{tt.__preventObserver__=!1}))}var grabCursor={setGrabCursor,unsetGrabCursor};function closestElement(tt,et){et===void 0&&(et=this);function rt(nt){if(!nt||nt===getDocument()||nt===getWindow())return null;nt.assignedSlot&&(nt=nt.assignedSlot);const st=nt.closest(tt);return!st&&!nt.getRootNode?null:st||rt(nt.getRootNode().host)}return rt(et)}function onTouchStart(tt){const et=this,rt=getDocument(),nt=getWindow(),st=et.touchEventsData;st.evCache.push(tt);const{params:ot,touches:at,enabled:lt}=et;if(!lt||!ot.simulateTouch&&tt.pointerType==="mouse"||et.animating&&ot.preventInteractionOnTransition)return;!et.animating&&ot.cssMode&&ot.loop&&et.loopFix();let ut=tt;ut.originalEvent&&(ut=ut.originalEvent);let ct=ut.target;if(ot.touchEventsTarget==="wrapper"&&!et.wrapperEl.contains(ct)||"which"in ut&&ut.which===3||"button"in ut&&ut.button>0||st.isTouched&&st.isMoved)return;const dt=!!ot.noSwipingClass&&ot.noSwipingClass!=="",ht=tt.composedPath?tt.composedPath():tt.path;dt&&ut.target&&ut.target.shadowRoot&&ht&&(ct=ht[0]);const ft=ot.noSwipingSelector?ot.noSwipingSelector:`.${ot.noSwipingClass}`,xt=!!(ut.target&&ut.target.shadowRoot);if(ot.noSwiping&&(xt?closestElement(ft,ct):ct.closest(ft))){et.allowClick=!0;return}if(ot.swipeHandler&&!ct.closest(ot.swipeHandler))return;at.currentX=ut.pageX,at.currentY=ut.pageY;const yt=at.currentX,vt=at.currentY,Et=ot.edgeSwipeDetection||ot.iOSEdgeSwipeDetection,bt=ot.edgeSwipeThreshold||ot.iOSEdgeSwipeThreshold;if(Et&&(yt<=bt||yt>=nt.innerWidth-bt))if(Et==="prevent")tt.preventDefault();else return;Object.assign(st,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),at.startX=yt,at.startY=vt,st.touchStartTime=now(),et.allowClick=!0,et.updateSize(),et.swipeDirection=void 0,ot.threshold>0&&(st.allowThresholdMove=!1);let St=!0;ct.matches(st.focusableElements)&&(St=!1,ct.nodeName==="SELECT"&&(st.isTouched=!1)),rt.activeElement&&rt.activeElement.matches(st.focusableElements)&&rt.activeElement!==ct&&rt.activeElement.blur();const wt=St&&et.allowTouchMove&&ot.touchStartPreventDefault;(ot.touchStartForcePreventDefault||wt)&&!ct.isContentEditable&&ut.preventDefault(),ot.freeMode&&ot.freeMode.enabled&&et.freeMode&&et.animating&&!ot.cssMode&&et.freeMode.onTouchStart(),et.emit("touchStart",ut)}function onTouchMove(tt){const et=getDocument(),rt=this,nt=rt.touchEventsData,{params:st,touches:ot,rtlTranslate:at,enabled:lt}=rt;if(!lt||!st.simulateTouch&&tt.pointerType==="mouse")return;let ut=tt;if(ut.originalEvent&&(ut=ut.originalEvent),!nt.isTouched){nt.startMoving&&nt.isScrolling&&rt.emit("touchMoveOpposite",ut);return}const ct=nt.evCache.findIndex(It=>It.pointerId===ut.pointerId);ct>=0&&(nt.evCache[ct]=ut);const dt=nt.evCache.length>1?nt.evCache[0]:ut,ht=dt.pageX,ft=dt.pageY;if(ut.preventedByNestedSwiper){ot.startX=ht,ot.startY=ft;return}if(!rt.allowTouchMove){ut.target.matches(nt.focusableElements)||(rt.allowClick=!1),nt.isTouched&&(Object.assign(ot,{startX:ht,startY:ft,prevX:rt.touches.currentX,prevY:rt.touches.currentY,currentX:ht,currentY:ft}),nt.touchStartTime=now());return}if(st.touchReleaseOnEdges&&!st.loop){if(rt.isVertical()){if(ft<ot.startY&&rt.translate<=rt.maxTranslate()||ft>ot.startY&&rt.translate>=rt.minTranslate()){nt.isTouched=!1,nt.isMoved=!1;return}}else if(ht<ot.startX&&rt.translate<=rt.maxTranslate()||ht>ot.startX&&rt.translate>=rt.minTranslate())return}if(et.activeElement&&ut.target===et.activeElement&&ut.target.matches(nt.focusableElements)){nt.isMoved=!0,rt.allowClick=!1;return}if(nt.allowTouchCallbacks&&rt.emit("touchMove",ut),ut.targetTouches&&ut.targetTouches.length>1)return;ot.currentX=ht,ot.currentY=ft;const xt=ot.currentX-ot.startX,yt=ot.currentY-ot.startY;if(rt.params.threshold&&Math.sqrt(xt**2+yt**2)<rt.params.threshold)return;if(typeof nt.isScrolling>"u"){let It;rt.isHorizontal()&&ot.currentY===ot.startY||rt.isVertical()&&ot.currentX===ot.startX?nt.isScrolling=!1:xt*xt+yt*yt>=25&&(It=Math.atan2(Math.abs(yt),Math.abs(xt))*180/Math.PI,nt.isScrolling=rt.isHorizontal()?It>st.touchAngle:90-It>st.touchAngle)}if(nt.isScrolling&&rt.emit("touchMoveOpposite",ut),typeof nt.startMoving>"u"&&(ot.currentX!==ot.startX||ot.currentY!==ot.startY)&&(nt.startMoving=!0),nt.isScrolling||rt.zoom&&rt.params.zoom&&rt.params.zoom.enabled&&nt.evCache.length>1){nt.isTouched=!1;return}if(!nt.startMoving)return;rt.allowClick=!1,!st.cssMode&&ut.cancelable&&ut.preventDefault(),st.touchMoveStopPropagation&&!st.nested&&ut.stopPropagation();let vt=rt.isHorizontal()?xt:yt,Et=rt.isHorizontal()?ot.currentX-ot.previousX:ot.currentY-ot.previousY;st.oneWayMovement&&(vt=Math.abs(vt)*(at?1:-1),Et=Math.abs(Et)*(at?1:-1)),ot.diff=vt,vt*=st.touchRatio,at&&(vt=-vt,Et=-Et);const bt=rt.touchesDirection;rt.swipeDirection=vt>0?"prev":"next",rt.touchesDirection=Et>0?"prev":"next";const St=rt.params.loop&&!st.cssMode,wt=rt.swipeDirection==="next"&&rt.allowSlideNext||rt.swipeDirection==="prev"&&rt.allowSlidePrev;if(!nt.isMoved){if(St&&wt&&rt.loopFix({direction:rt.swipeDirection}),nt.startTranslate=rt.getTranslate(),rt.setTransition(0),rt.animating){const It=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});rt.wrapperEl.dispatchEvent(It)}nt.allowMomentumBounce=!1,st.grabCursor&&(rt.allowSlideNext===!0||rt.allowSlidePrev===!0)&&rt.setGrabCursor(!0),rt.emit("sliderFirstMove",ut)}let Rt;nt.isMoved&&bt!==rt.touchesDirection&&St&&wt&&Math.abs(vt)>=1&&(rt.loopFix({direction:rt.swipeDirection,setTranslate:!0}),Rt=!0),rt.emit("sliderMove",ut),nt.isMoved=!0,nt.currentTranslate=vt+nt.startTranslate;let Ct=!0,Pt=st.resistanceRatio;if(st.touchReleaseOnEdges&&(Pt=0),vt>0?(St&&wt&&!Rt&&nt.currentTranslate>(st.centeredSlides?rt.minTranslate()-rt.size/2:rt.minTranslate())&&rt.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),nt.currentTranslate>rt.minTranslate()&&(Ct=!1,st.resistance&&(nt.currentTranslate=rt.minTranslate()-1+(-rt.minTranslate()+nt.startTranslate+vt)**Pt))):vt<0&&(St&&wt&&!Rt&&nt.currentTranslate<(st.centeredSlides?rt.maxTranslate()+rt.size/2:rt.maxTranslate())&&rt.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:rt.slides.length-(st.slidesPerView==="auto"?rt.slidesPerViewDynamic():Math.ceil(parseFloat(st.slidesPerView,10)))}),nt.currentTranslate<rt.maxTranslate()&&(Ct=!1,st.resistance&&(nt.currentTranslate=rt.maxTranslate()+1-(rt.maxTranslate()-nt.startTranslate-vt)**Pt))),Ct&&(ut.preventedByNestedSwiper=!0),!rt.allowSlideNext&&rt.swipeDirection==="next"&&nt.currentTranslate<nt.startTranslate&&(nt.currentTranslate=nt.startTranslate),!rt.allowSlidePrev&&rt.swipeDirection==="prev"&&nt.currentTranslate>nt.startTranslate&&(nt.currentTranslate=nt.startTranslate),!rt.allowSlidePrev&&!rt.allowSlideNext&&(nt.currentTranslate=nt.startTranslate),st.threshold>0)if(Math.abs(vt)>st.threshold||nt.allowThresholdMove){if(!nt.allowThresholdMove){nt.allowThresholdMove=!0,ot.startX=ot.currentX,ot.startY=ot.currentY,nt.currentTranslate=nt.startTranslate,ot.diff=rt.isHorizontal()?ot.currentX-ot.startX:ot.currentY-ot.startY;return}}else{nt.currentTranslate=nt.startTranslate;return}!st.followFinger||st.cssMode||((st.freeMode&&st.freeMode.enabled&&rt.freeMode||st.watchSlidesProgress)&&(rt.updateActiveIndex(),rt.updateSlidesClasses()),st.freeMode&&st.freeMode.enabled&&rt.freeMode&&rt.freeMode.onTouchMove(),rt.updateProgress(nt.currentTranslate),rt.setTranslate(nt.currentTranslate))}function onTouchEnd(tt){const et=this,rt=et.touchEventsData,nt=rt.evCache.findIndex(wt=>wt.pointerId===tt.pointerId);if(nt>=0&&rt.evCache.splice(nt,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(tt.type)&&!(["pointercancel","contextmenu"].includes(tt.type)&&(et.browser.isSafari||et.browser.isWebView)))return;const{params:st,touches:ot,rtlTranslate:at,slidesGrid:lt,enabled:ut}=et;if(!ut||!st.simulateTouch&&tt.pointerType==="mouse")return;let ct=tt;if(ct.originalEvent&&(ct=ct.originalEvent),rt.allowTouchCallbacks&&et.emit("touchEnd",ct),rt.allowTouchCallbacks=!1,!rt.isTouched){rt.isMoved&&st.grabCursor&&et.setGrabCursor(!1),rt.isMoved=!1,rt.startMoving=!1;return}st.grabCursor&&rt.isMoved&&rt.isTouched&&(et.allowSlideNext===!0||et.allowSlidePrev===!0)&&et.setGrabCursor(!1);const dt=now(),ht=dt-rt.touchStartTime;if(et.allowClick){const wt=ct.path||ct.composedPath&&ct.composedPath();et.updateClickedSlide(wt&&wt[0]||ct.target,wt),et.emit("tap click",ct),ht<300&&dt-rt.lastClickTime<300&&et.emit("doubleTap doubleClick",ct)}if(rt.lastClickTime=now(),nextTick(()=>{et.destroyed||(et.allowClick=!0)}),!rt.isTouched||!rt.isMoved||!et.swipeDirection||ot.diff===0||rt.currentTranslate===rt.startTranslate){rt.isTouched=!1,rt.isMoved=!1,rt.startMoving=!1;return}rt.isTouched=!1,rt.isMoved=!1,rt.startMoving=!1;let ft;if(st.followFinger?ft=at?et.translate:-et.translate:ft=-rt.currentTranslate,st.cssMode)return;if(st.freeMode&&st.freeMode.enabled){et.freeMode.onTouchEnd({currentPos:ft});return}let xt=0,yt=et.slidesSizesGrid[0];for(let wt=0;wt<lt.length;wt+=wt<st.slidesPerGroupSkip?1:st.slidesPerGroup){const Rt=wt<st.slidesPerGroupSkip-1?1:st.slidesPerGroup;typeof lt[wt+Rt]<"u"?ft>=lt[wt]&&ft<lt[wt+Rt]&&(xt=wt,yt=lt[wt+Rt]-lt[wt]):ft>=lt[wt]&&(xt=wt,yt=lt[lt.length-1]-lt[lt.length-2])}let vt=null,Et=null;st.rewind&&(et.isBeginning?Et=st.virtual&&st.virtual.enabled&&et.virtual?et.virtual.slides.length-1:et.slides.length-1:et.isEnd&&(vt=0));const bt=(ft-lt[xt])/yt,St=xt<st.slidesPerGroupSkip-1?1:st.slidesPerGroup;if(ht>st.longSwipesMs){if(!st.longSwipes){et.slideTo(et.activeIndex);return}et.swipeDirection==="next"&&(bt>=st.longSwipesRatio?et.slideTo(st.rewind&&et.isEnd?vt:xt+St):et.slideTo(xt)),et.swipeDirection==="prev"&&(bt>1-st.longSwipesRatio?et.slideTo(xt+St):Et!==null&&bt<0&&Math.abs(bt)>st.longSwipesRatio?et.slideTo(Et):et.slideTo(xt))}else{if(!st.shortSwipes){et.slideTo(et.activeIndex);return}et.navigation&&(ct.target===et.navigation.nextEl||ct.target===et.navigation.prevEl)?ct.target===et.navigation.nextEl?et.slideTo(xt+St):et.slideTo(xt):(et.swipeDirection==="next"&&et.slideTo(vt!==null?vt:xt+St),et.swipeDirection==="prev"&&et.slideTo(Et!==null?Et:xt))}}function onResize(){const tt=this,{params:et,el:rt}=tt;if(rt&&rt.offsetWidth===0)return;et.breakpoints&&tt.setBreakpoint();const{allowSlideNext:nt,allowSlidePrev:st,snapGrid:ot}=tt,at=tt.virtual&&tt.params.virtual.enabled;tt.allowSlideNext=!0,tt.allowSlidePrev=!0,tt.updateSize(),tt.updateSlides(),tt.updateSlidesClasses();const lt=at&&et.loop;(et.slidesPerView==="auto"||et.slidesPerView>1)&&tt.isEnd&&!tt.isBeginning&&!tt.params.centeredSlides&&!lt?tt.slideTo(tt.slides.length-1,0,!1,!0):tt.params.loop&&!at?tt.slideToLoop(tt.realIndex,0,!1,!0):tt.slideTo(tt.activeIndex,0,!1,!0),tt.autoplay&&tt.autoplay.running&&tt.autoplay.paused&&(clearTimeout(tt.autoplay.resizeTimeout),tt.autoplay.resizeTimeout=setTimeout(()=>{tt.autoplay&&tt.autoplay.running&&tt.autoplay.paused&&tt.autoplay.resume()},500)),tt.allowSlidePrev=st,tt.allowSlideNext=nt,tt.params.watchOverflow&&ot!==tt.snapGrid&&tt.checkOverflow()}function onClick(tt){const et=this;et.enabled&&(et.allowClick||(et.params.preventClicks&&tt.preventDefault(),et.params.preventClicksPropagation&&et.animating&&(tt.stopPropagation(),tt.stopImmediatePropagation())))}function onScroll(){const tt=this,{wrapperEl:et,rtlTranslate:rt,enabled:nt}=tt;if(!nt)return;tt.previousTranslate=tt.translate,tt.isHorizontal()?tt.translate=-et.scrollLeft:tt.translate=-et.scrollTop,tt.translate===0&&(tt.translate=0),tt.updateActiveIndex(),tt.updateSlidesClasses();let st;const ot=tt.maxTranslate()-tt.minTranslate();ot===0?st=0:st=(tt.translate-tt.minTranslate())/ot,st!==tt.progress&&tt.updateProgress(rt?-tt.translate:tt.translate),tt.emit("setTranslate",tt.translate,!1)}function onLoad(tt){const et=this;processLazyPreloader(et,tt.target),!(et.params.cssMode||et.params.slidesPerView!=="auto"&&!et.params.autoHeight)&&et.update()}let dummyEventAttached=!1;function dummyEventListener(){}const events=(tt,et)=>{const rt=getDocument(),{params:nt,el:st,wrapperEl:ot,device:at}=tt,lt=!!nt.nested,ut=et==="on"?"addEventListener":"removeEventListener",ct=et;st[ut]("pointerdown",tt.onTouchStart,{passive:!1}),rt[ut]("pointermove",tt.onTouchMove,{passive:!1,capture:lt}),rt[ut]("pointerup",tt.onTouchEnd,{passive:!0}),rt[ut]("pointercancel",tt.onTouchEnd,{passive:!0}),rt[ut]("pointerout",tt.onTouchEnd,{passive:!0}),rt[ut]("pointerleave",tt.onTouchEnd,{passive:!0}),rt[ut]("contextmenu",tt.onTouchEnd,{passive:!0}),(nt.preventClicks||nt.preventClicksPropagation)&&st[ut]("click",tt.onClick,!0),nt.cssMode&&ot[ut]("scroll",tt.onScroll),nt.updateOnWindowResize?tt[ct](at.ios||at.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,!0):tt[ct]("observerUpdate",onResize,!0),st[ut]("load",tt.onLoad,{capture:!0})};function attachEvents(){const tt=this,et=getDocument(),{params:rt}=tt;tt.onTouchStart=onTouchStart.bind(tt),tt.onTouchMove=onTouchMove.bind(tt),tt.onTouchEnd=onTouchEnd.bind(tt),rt.cssMode&&(tt.onScroll=onScroll.bind(tt)),tt.onClick=onClick.bind(tt),tt.onLoad=onLoad.bind(tt),dummyEventAttached||(et.addEventListener("touchstart",dummyEventListener),dummyEventAttached=!0),events(tt,"on")}function detachEvents(){events(this,"off")}var events$1={attachEvents,detachEvents};const isGridEnabled=(tt,et)=>tt.grid&&et.grid&&et.grid.rows>1;function setBreakpoint(){const tt=this,{realIndex:et,initialized:rt,params:nt,el:st}=tt,ot=nt.breakpoints;if(!ot||ot&&Object.keys(ot).length===0)return;const at=tt.getBreakpoint(ot,tt.params.breakpointsBase,tt.el);if(!at||tt.currentBreakpoint===at)return;const ut=(at in ot?ot[at]:void 0)||tt.originalParams,ct=isGridEnabled(tt,nt),dt=isGridEnabled(tt,ut),ht=nt.enabled;ct&&!dt?(st.classList.remove(`${nt.containerModifierClass}grid`,`${nt.containerModifierClass}grid-column`),tt.emitContainerClasses()):!ct&&dt&&(st.classList.add(`${nt.containerModifierClass}grid`),(ut.grid.fill&&ut.grid.fill==="column"||!ut.grid.fill&&nt.grid.fill==="column")&&st.classList.add(`${nt.containerModifierClass}grid-column`),tt.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(bt=>{if(typeof ut[bt]>"u")return;const St=nt[bt]&&nt[bt].enabled,wt=ut[bt]&&ut[bt].enabled;St&&!wt&&tt[bt].disable(),!St&&wt&&tt[bt].enable()});const ft=ut.direction&&ut.direction!==nt.direction,xt=nt.loop&&(ut.slidesPerView!==nt.slidesPerView||ft),yt=nt.loop;ft&&rt&&tt.changeDirection(),extend$1(tt.params,ut);const vt=tt.params.enabled,Et=tt.params.loop;Object.assign(tt,{allowTouchMove:tt.params.allowTouchMove,allowSlideNext:tt.params.allowSlideNext,allowSlidePrev:tt.params.allowSlidePrev}),ht&&!vt?tt.disable():!ht&&vt&&tt.enable(),tt.currentBreakpoint=at,tt.emit("_beforeBreakpoint",ut),rt&&(xt?(tt.loopDestroy(),tt.loopCreate(et),tt.updateSlides()):!yt&&Et?(tt.loopCreate(et),tt.updateSlides()):yt&&!Et&&tt.loopDestroy()),tt.emit("breakpoint",ut)}function getBreakpoint(tt,et,rt){if(et===void 0&&(et="window"),!tt||et==="container"&&!rt)return;let nt=!1;const st=getWindow(),ot=et==="window"?st.innerHeight:rt.clientHeight,at=Object.keys(tt).map(lt=>{if(typeof lt=="string"&<.indexOf("@")===0){const ut=parseFloat(lt.substr(1));return{value:ot*ut,point:lt}}return{value:lt,point:lt}});at.sort((lt,ut)=>parseInt(lt.value,10)-parseInt(ut.value,10));for(let lt=0;lt<at.length;lt+=1){const{point:ut,value:ct}=at[lt];et==="window"?st.matchMedia(`(min-width: ${ct}px)`).matches&&(nt=ut):ct<=rt.clientWidth&&(nt=ut)}return nt||"max"}var breakpoints={setBreakpoint,getBreakpoint};function prepareClasses(tt,et){const rt=[];return tt.forEach(nt=>{typeof nt=="object"?Object.keys(nt).forEach(st=>{nt[st]&&rt.push(et+st)}):typeof nt=="string"&&rt.push(et+nt)}),rt}function addClasses(){const tt=this,{classNames:et,params:rt,rtl:nt,el:st,device:ot}=tt,at=prepareClasses(["initialized",rt.direction,{"free-mode":tt.params.freeMode&&rt.freeMode.enabled},{autoheight:rt.autoHeight},{rtl:nt},{grid:rt.grid&&rt.grid.rows>1},{"grid-column":rt.grid&&rt.grid.rows>1&&rt.grid.fill==="column"},{android:ot.android},{ios:ot.ios},{"css-mode":rt.cssMode},{centered:rt.cssMode&&rt.centeredSlides},{"watch-progress":rt.watchSlidesProgress}],rt.containerModifierClass);et.push(...at),st.classList.add(...et),tt.emitContainerClasses()}function removeClasses(){const tt=this,{el:et,classNames:rt}=tt;et.classList.remove(...rt),tt.emitContainerClasses()}var classes={addClasses,removeClasses};function checkOverflow(){const tt=this,{isLocked:et,params:rt}=tt,{slidesOffsetBefore:nt}=rt;if(nt){const st=tt.slides.length-1,ot=tt.slidesGrid[st]+tt.slidesSizesGrid[st]+nt*2;tt.isLocked=tt.size>ot}else tt.isLocked=tt.snapGrid.length===1;rt.allowSlideNext===!0&&(tt.allowSlideNext=!tt.isLocked),rt.allowSlidePrev===!0&&(tt.allowSlidePrev=!tt.isLocked),et&&et!==tt.isLocked&&(tt.isEnd=!1),et!==tt.isLocked&&tt.emit(tt.isLocked?"lock":"unlock")}var checkOverflow$1={checkOverflow},defaults$3={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function moduleExtendParams(tt,et){return function(nt){nt===void 0&&(nt={});const st=Object.keys(nt)[0],ot=nt[st];if(typeof ot!="object"||ot===null){extend$1(et,nt);return}if(tt[st]===!0&&(tt[st]={enabled:!0}),st==="navigation"&&tt[st]&&tt[st].enabled&&!tt[st].prevEl&&!tt[st].nextEl&&(tt[st].auto=!0),["pagination","scrollbar"].indexOf(st)>=0&&tt[st]&&tt[st].enabled&&!tt[st].el&&(tt[st].auto=!0),!(st in tt&&"enabled"in ot)){extend$1(et,nt);return}typeof tt[st]=="object"&&!("enabled"in tt[st])&&(tt[st].enabled=!0),tt[st]||(tt[st]={enabled:!1}),extend$1(et,nt)}}const prototypes={eventsEmitter,update,translate,transition,slide,loop,grabCursor,events:events$1,breakpoints,checkOverflow:checkOverflow$1,classes},extendedDefaults={};let Swiper$1=class So{constructor(){let et,rt;for(var nt=arguments.length,st=new Array(nt),ot=0;ot<nt;ot++)st[ot]=arguments[ot];st.length===1&&st[0].constructor&&Object.prototype.toString.call(st[0]).slice(8,-1)==="Object"?rt=st[0]:[et,rt]=st,rt||(rt={}),rt=extend$1({},rt),et&&!rt.el&&(rt.el=et);const at=getDocument();if(rt.el&&typeof rt.el=="string"&&at.querySelectorAll(rt.el).length>1){const dt=[];return at.querySelectorAll(rt.el).forEach(ht=>{const ft=extend$1({},rt,{el:ht});dt.push(new So(ft))}),dt}const lt=this;lt.__swiper__=!0,lt.support=getSupport(),lt.device=getDevice({userAgent:rt.userAgent}),lt.browser=getBrowser(),lt.eventsListeners={},lt.eventsAnyListeners=[],lt.modules=[...lt.__modules__],rt.modules&&Array.isArray(rt.modules)&<.modules.push(...rt.modules);const ut={};lt.modules.forEach(dt=>{dt({params:rt,swiper:lt,extendParams:moduleExtendParams(rt,ut),on:lt.on.bind(lt),once:lt.once.bind(lt),off:lt.off.bind(lt),emit:lt.emit.bind(lt)})});const ct=extend$1({},defaults$3,ut);return lt.params=extend$1({},ct,extendedDefaults,rt),lt.originalParams=extend$1({},lt.params),lt.passedParams=extend$1({},rt),lt.params&<.params.on&&Object.keys(lt.params.on).forEach(dt=>{lt.on(dt,lt.params.on[dt])}),lt.params&<.params.onAny&<.onAny(lt.params.onAny),Object.assign(lt,{enabled:lt.params.enabled,el:et,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return lt.params.direction==="horizontal"},isVertical(){return lt.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:lt.params.allowSlideNext,allowSlidePrev:lt.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:lt.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:lt.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),lt.emit("_swiper"),lt.params.init&<.init(),lt}getSlideIndex(et){const{slidesEl:rt,params:nt}=this,st=elementChildren(rt,`.${nt.slideClass}, swiper-slide`),ot=elementIndex(st[0]);return elementIndex(et)-ot}getSlideIndexByData(et){return this.getSlideIndex(this.slides.filter(rt=>rt.getAttribute("data-swiper-slide-index")*1===et)[0])}recalcSlides(){const et=this,{slidesEl:rt,params:nt}=et;et.slides=elementChildren(rt,`.${nt.slideClass}, swiper-slide`)}enable(){const et=this;et.enabled||(et.enabled=!0,et.params.grabCursor&&et.setGrabCursor(),et.emit("enable"))}disable(){const et=this;et.enabled&&(et.enabled=!1,et.params.grabCursor&&et.unsetGrabCursor(),et.emit("disable"))}setProgress(et,rt){const nt=this;et=Math.min(Math.max(et,0),1);const st=nt.minTranslate(),at=(nt.maxTranslate()-st)*et+st;nt.translateTo(at,typeof rt>"u"?0:rt),nt.updateActiveIndex(),nt.updateSlidesClasses()}emitContainerClasses(){const et=this;if(!et.params._emitClasses||!et.el)return;const rt=et.el.className.split(" ").filter(nt=>nt.indexOf("swiper")===0||nt.indexOf(et.params.containerModifierClass)===0);et.emit("_containerClasses",rt.join(" "))}getSlideClasses(et){const rt=this;return rt.destroyed?"":et.className.split(" ").filter(nt=>nt.indexOf("swiper-slide")===0||nt.indexOf(rt.params.slideClass)===0).join(" ")}emitSlidesClasses(){const et=this;if(!et.params._emitClasses||!et.el)return;const rt=[];et.slides.forEach(nt=>{const st=et.getSlideClasses(nt);rt.push({slideEl:nt,classNames:st}),et.emit("_slideClass",nt,st)}),et.emit("_slideClasses",rt)}slidesPerViewDynamic(et,rt){et===void 0&&(et="current"),rt===void 0&&(rt=!1);const nt=this,{params:st,slides:ot,slidesGrid:at,slidesSizesGrid:lt,size:ut,activeIndex:ct}=nt;let dt=1;if(typeof st.slidesPerView=="number")return st.slidesPerView;if(st.centeredSlides){let ht=ot[ct]?ot[ct].swiperSlideSize:0,ft;for(let xt=ct+1;xt<ot.length;xt+=1)ot[xt]&&!ft&&(ht+=ot[xt].swiperSlideSize,dt+=1,ht>ut&&(ft=!0));for(let xt=ct-1;xt>=0;xt-=1)ot[xt]&&!ft&&(ht+=ot[xt].swiperSlideSize,dt+=1,ht>ut&&(ft=!0))}else if(et==="current")for(let ht=ct+1;ht<ot.length;ht+=1)(rt?at[ht]+lt[ht]-at[ct]<ut:at[ht]-at[ct]<ut)&&(dt+=1);else for(let ht=ct-1;ht>=0;ht-=1)at[ct]-at[ht]<ut&&(dt+=1);return dt}update(){const et=this;if(!et||et.destroyed)return;const{snapGrid:rt,params:nt}=et;nt.breakpoints&&et.setBreakpoint(),[...et.el.querySelectorAll('[loading="lazy"]')].forEach(at=>{at.complete&&processLazyPreloader(et,at)}),et.updateSize(),et.updateSlides(),et.updateProgress(),et.updateSlidesClasses();function st(){const at=et.rtlTranslate?et.translate*-1:et.translate,lt=Math.min(Math.max(at,et.maxTranslate()),et.minTranslate());et.setTranslate(lt),et.updateActiveIndex(),et.updateSlidesClasses()}let ot;if(nt.freeMode&&nt.freeMode.enabled&&!nt.cssMode)st(),nt.autoHeight&&et.updateAutoHeight();else{if((nt.slidesPerView==="auto"||nt.slidesPerView>1)&&et.isEnd&&!nt.centeredSlides){const at=et.virtual&&nt.virtual.enabled?et.virtual.slides:et.slides;ot=et.slideTo(at.length-1,0,!1,!0)}else ot=et.slideTo(et.activeIndex,0,!1,!0);ot||st()}nt.watchOverflow&&rt!==et.snapGrid&&et.checkOverflow(),et.emit("update")}changeDirection(et,rt){rt===void 0&&(rt=!0);const nt=this,st=nt.params.direction;return et||(et=st==="horizontal"?"vertical":"horizontal"),et===st||et!=="horizontal"&&et!=="vertical"||(nt.el.classList.remove(`${nt.params.containerModifierClass}${st}`),nt.el.classList.add(`${nt.params.containerModifierClass}${et}`),nt.emitContainerClasses(),nt.params.direction=et,nt.slides.forEach(ot=>{et==="vertical"?ot.style.width="":ot.style.height=""}),nt.emit("changeDirection"),rt&&nt.update()),nt}changeLanguageDirection(et){const rt=this;rt.rtl&&et==="rtl"||!rt.rtl&&et==="ltr"||(rt.rtl=et==="rtl",rt.rtlTranslate=rt.params.direction==="horizontal"&&rt.rtl,rt.rtl?(rt.el.classList.add(`${rt.params.containerModifierClass}rtl`),rt.el.dir="rtl"):(rt.el.classList.remove(`${rt.params.containerModifierClass}rtl`),rt.el.dir="ltr"),rt.update())}mount(et){const rt=this;if(rt.mounted)return!0;let nt=et||rt.params.el;if(typeof nt=="string"&&(nt=document.querySelector(nt)),!nt)return!1;nt.swiper=rt,nt.parentNode&&nt.parentNode.host&&nt.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(rt.isElement=!0);const st=()=>`.${(rt.params.wrapperClass||"").trim().split(" ").join(".")}`;let at=nt&&nt.shadowRoot&&nt.shadowRoot.querySelector?nt.shadowRoot.querySelector(st()):elementChildren(nt,st())[0];return!at&&rt.params.createElements&&(at=createElement("div",rt.params.wrapperClass),nt.append(at),elementChildren(nt,`.${rt.params.slideClass}`).forEach(lt=>{at.append(lt)})),Object.assign(rt,{el:nt,wrapperEl:at,slidesEl:rt.isElement&&!nt.parentNode.host.slideSlots?nt.parentNode.host:at,hostEl:rt.isElement?nt.parentNode.host:nt,mounted:!0,rtl:nt.dir.toLowerCase()==="rtl"||elementStyle(nt,"direction")==="rtl",rtlTranslate:rt.params.direction==="horizontal"&&(nt.dir.toLowerCase()==="rtl"||elementStyle(nt,"direction")==="rtl"),wrongRTL:elementStyle(at,"display")==="-webkit-box"}),!0}init(et){const rt=this;if(rt.initialized||rt.mount(et)===!1)return rt;rt.emit("beforeInit"),rt.params.breakpoints&&rt.setBreakpoint(),rt.addClasses(),rt.updateSize(),rt.updateSlides(),rt.params.watchOverflow&&rt.checkOverflow(),rt.params.grabCursor&&rt.enabled&&rt.setGrabCursor(),rt.params.loop&&rt.virtual&&rt.params.virtual.enabled?rt.slideTo(rt.params.initialSlide+rt.virtual.slidesBefore,0,rt.params.runCallbacksOnInit,!1,!0):rt.slideTo(rt.params.initialSlide,0,rt.params.runCallbacksOnInit,!1,!0),rt.params.loop&&rt.loopCreate(),rt.attachEvents();const st=[...rt.el.querySelectorAll('[loading="lazy"]')];return rt.isElement&&st.push(...rt.hostEl.querySelectorAll('[loading="lazy"]')),st.forEach(ot=>{ot.complete?processLazyPreloader(rt,ot):ot.addEventListener("load",at=>{processLazyPreloader(rt,at.target)})}),preload(rt),rt.initialized=!0,preload(rt),rt.emit("init"),rt.emit("afterInit"),rt}destroy(et,rt){et===void 0&&(et=!0),rt===void 0&&(rt=!0);const nt=this,{params:st,el:ot,wrapperEl:at,slides:lt}=nt;return typeof nt.params>"u"||nt.destroyed||(nt.emit("beforeDestroy"),nt.initialized=!1,nt.detachEvents(),st.loop&&nt.loopDestroy(),rt&&(nt.removeClasses(),ot.removeAttribute("style"),at.removeAttribute("style"),lt&<.length&<.forEach(ut=>{ut.classList.remove(st.slideVisibleClass,st.slideActiveClass,st.slideNextClass,st.slidePrevClass),ut.removeAttribute("style"),ut.removeAttribute("data-swiper-slide-index")})),nt.emit("destroy"),Object.keys(nt.eventsListeners).forEach(ut=>{nt.off(ut)}),et!==!1&&(nt.el.swiper=null,deleteProps(nt)),nt.destroyed=!0),null}static extendDefaults(et){extend$1(extendedDefaults,et)}static get extendedDefaults(){return extendedDefaults}static get defaults(){return defaults$3}static installModule(et){So.prototype.__modules__||(So.prototype.__modules__=[]);const rt=So.prototype.__modules__;typeof et=="function"&&rt.indexOf(et)<0&&rt.push(et)}static use(et){return Array.isArray(et)?(et.forEach(rt=>So.installModule(rt)),So):(So.installModule(et),So)}};Object.keys(prototypes).forEach(tt=>{Object.keys(prototypes[tt]).forEach(et=>{Swiper$1.prototype[et]=prototypes[tt][et]})});Swiper$1.use([Resize,Observer]);const paramsList=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function isObject$1(tt){return typeof tt=="object"&&tt!==null&&tt.constructor&&Object.prototype.toString.call(tt).slice(8,-1)==="Object"&&!tt.__swiper__}function extend(tt,et){const rt=["__proto__","constructor","prototype"];Object.keys(et).filter(nt=>rt.indexOf(nt)<0).forEach(nt=>{typeof tt[nt]>"u"?tt[nt]=et[nt]:isObject$1(et[nt])&&isObject$1(tt[nt])&&Object.keys(et[nt]).length>0?et[nt].__swiper__?tt[nt]=et[nt]:extend(tt[nt],et[nt]):tt[nt]=et[nt]})}function needsNavigation(tt){return tt===void 0&&(tt={}),tt.navigation&&typeof tt.navigation.nextEl>"u"&&typeof tt.navigation.prevEl>"u"}function needsPagination(tt){return tt===void 0&&(tt={}),tt.pagination&&typeof tt.pagination.el>"u"}function needsScrollbar(tt){return tt===void 0&&(tt={}),tt.scrollbar&&typeof tt.scrollbar.el>"u"}function uniqueClasses(tt){tt===void 0&&(tt="");const et=tt.split(" ").map(nt=>nt.trim()).filter(nt=>!!nt),rt=[];return et.forEach(nt=>{rt.indexOf(nt)<0&&rt.push(nt)}),rt.join(" ")}function wrapperClass(tt){return tt===void 0&&(tt=""),tt?tt.includes("swiper-wrapper")?tt:`swiper-wrapper ${tt}`:"swiper-wrapper"}function updateSwiper(tt){let{swiper:et,slides:rt,passedParams:nt,changedParams:st,nextEl:ot,prevEl:at,scrollbarEl:lt,paginationEl:ut}=tt;const ct=st.filter(Dt=>Dt!=="children"&&Dt!=="direction"&&Dt!=="wrapperClass"),{params:dt,pagination:ht,navigation:ft,scrollbar:xt,virtual:yt,thumbs:vt}=et;let Et,bt,St,wt,Rt,Ct,Pt,It;st.includes("thumbs")&&nt.thumbs&&nt.thumbs.swiper&&dt.thumbs&&!dt.thumbs.swiper&&(Et=!0),st.includes("controller")&&nt.controller&&nt.controller.control&&dt.controller&&!dt.controller.control&&(bt=!0),st.includes("pagination")&&nt.pagination&&(nt.pagination.el||ut)&&(dt.pagination||dt.pagination===!1)&&ht&&!ht.el&&(St=!0),st.includes("scrollbar")&&nt.scrollbar&&(nt.scrollbar.el||lt)&&(dt.scrollbar||dt.scrollbar===!1)&&xt&&!xt.el&&(wt=!0),st.includes("navigation")&&nt.navigation&&(nt.navigation.prevEl||at)&&(nt.navigation.nextEl||ot)&&(dt.navigation||dt.navigation===!1)&&ft&&!ft.prevEl&&!ft.nextEl&&(Rt=!0);const jt=Dt=>{et[Dt]&&(et[Dt].destroy(),Dt==="navigation"?(et.isElement&&(et[Dt].prevEl.remove(),et[Dt].nextEl.remove()),dt[Dt].prevEl=void 0,dt[Dt].nextEl=void 0,et[Dt].prevEl=void 0,et[Dt].nextEl=void 0):(et.isElement&&et[Dt].el.remove(),dt[Dt].el=void 0,et[Dt].el=void 0))};st.includes("loop")&&et.isElement&&(dt.loop&&!nt.loop?Ct=!0:!dt.loop&&nt.loop?Pt=!0:It=!0),ct.forEach(Dt=>{if(isObject$1(dt[Dt])&&isObject$1(nt[Dt]))extend(dt[Dt],nt[Dt]),(Dt==="navigation"||Dt==="pagination"||Dt==="scrollbar")&&"enabled"in nt[Dt]&&!nt[Dt].enabled&&jt(Dt);else{const Vt=nt[Dt];(Vt===!0||Vt===!1)&&(Dt==="navigation"||Dt==="pagination"||Dt==="scrollbar")?Vt===!1&&jt(Dt):dt[Dt]=nt[Dt]}}),ct.includes("controller")&&!bt&&et.controller&&et.controller.control&&dt.controller&&dt.controller.control&&(et.controller.control=dt.controller.control),st.includes("children")&&rt&&yt&&dt.virtual.enabled&&(yt.slides=rt,yt.update(!0)),st.includes("children")&&rt&&dt.loop&&(It=!0),Et&&vt.init()&&vt.update(!0),bt&&(et.controller.control=dt.controller.control),St&&(et.isElement&&(!ut||typeof ut=="string")&&(ut=document.createElement("div"),ut.classList.add("swiper-pagination"),ut.part.add("pagination"),et.el.appendChild(ut)),ut&&(dt.pagination.el=ut),ht.init(),ht.render(),ht.update()),wt&&(et.isElement&&(!lt||typeof lt=="string")&&(lt=document.createElement("div"),lt.classList.add("swiper-scrollbar"),lt.part.add("scrollbar"),et.el.appendChild(lt)),lt&&(dt.scrollbar.el=lt),xt.init(),xt.updateSize(),xt.setTranslate()),Rt&&(et.isElement&&((!ot||typeof ot=="string")&&(ot=document.createElement("div"),ot.classList.add("swiper-button-next"),ot.innerHTML=et.hostEl.constructor.nextButtonSvg,ot.part.add("button-next"),et.el.appendChild(ot)),(!at||typeof at=="string")&&(at=document.createElement("div"),at.classList.add("swiper-button-prev"),at.innerHTML=et.hostEl.constructor.prevButtonSvg,at.part.add("button-prev"),et.el.appendChild(at))),ot&&(dt.navigation.nextEl=ot),at&&(dt.navigation.prevEl=at),ft.init(),ft.update()),st.includes("allowSlideNext")&&(et.allowSlideNext=nt.allowSlideNext),st.includes("allowSlidePrev")&&(et.allowSlidePrev=nt.allowSlidePrev),st.includes("direction")&&et.changeDirection(nt.direction,!1),(Ct||It)&&et.loopDestroy(),(Pt||It)&&et.loopCreate(),et.update()}function getParams(tt,et){tt===void 0&&(tt={}),et===void 0&&(et=!0);const rt={on:{}},nt={},st={};extend(rt,defaults$3),rt._emitClasses=!0,rt.init=!1;const ot={},at=paramsList.map(ut=>ut.replace(/_/,"")),lt=Object.assign({},tt);return Object.keys(lt).forEach(ut=>{typeof tt[ut]>"u"||(at.indexOf(ut)>=0?isObject$1(tt[ut])?(rt[ut]={},st[ut]={},extend(rt[ut],tt[ut]),extend(st[ut],tt[ut])):(rt[ut]=tt[ut],st[ut]=tt[ut]):ut.search(/on[A-Z]/)===0&&typeof tt[ut]=="function"?et?nt[`${ut[2].toLowerCase()}${ut.substr(3)}`]=tt[ut]:rt.on[`${ut[2].toLowerCase()}${ut.substr(3)}`]=tt[ut]:ot[ut]=tt[ut])}),["navigation","pagination","scrollbar"].forEach(ut=>{rt[ut]===!0&&(rt[ut]={}),rt[ut]===!1&&delete rt[ut]}),{params:rt,passedParams:st,rest:ot,events:nt}}function mountSwiper(tt,et){let{el:rt,nextEl:nt,prevEl:st,paginationEl:ot,scrollbarEl:at,swiper:lt}=tt;needsNavigation(et)&&nt&&st&&(lt.params.navigation.nextEl=nt,lt.originalParams.navigation.nextEl=nt,lt.params.navigation.prevEl=st,lt.originalParams.navigation.prevEl=st),needsPagination(et)&&ot&&(lt.params.pagination.el=ot,lt.originalParams.pagination.el=ot),needsScrollbar(et)&&at&&(lt.params.scrollbar.el=at,lt.originalParams.scrollbar.el=at),lt.init(rt)}function getChangedParams(tt,et,rt,nt,st){const ot=[];if(!et)return ot;const at=ut=>{ot.indexOf(ut)<0&&ot.push(ut)};if(rt&&nt){const ut=nt.map(st),ct=rt.map(st);ut.join("")!==ct.join("")&&at("children"),nt.length!==rt.length&&at("children")}return paramsList.filter(ut=>ut[0]==="_").map(ut=>ut.replace(/_/,"")).forEach(ut=>{if(ut in tt&&ut in et)if(isObject$1(tt[ut])&&isObject$1(et[ut])){const ct=Object.keys(tt[ut]),dt=Object.keys(et[ut]);ct.length!==dt.length?at(ut):(ct.forEach(ht=>{tt[ut][ht]!==et[ut][ht]&&at(ut)}),dt.forEach(ht=>{tt[ut][ht]!==et[ut][ht]&&at(ut)}))}else tt[ut]!==et[ut]&&at(ut)}),ot}const updateOnVirtualData=tt=>{!tt||tt.destroyed||!tt.params.virtual||tt.params.virtual&&!tt.params.virtual.enabled||(tt.updateSlides(),tt.updateProgress(),tt.updateSlidesClasses(),tt.parallax&&tt.params.parallax&&tt.params.parallax.enabled&&tt.parallax.setTranslate())};function _extends(){return _extends=Object.assign?Object.assign.bind():function(tt){for(var et=1;et<arguments.length;et++){var rt=arguments[et];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(tt[nt]=rt[nt])}return tt},_extends.apply(this,arguments)}function isChildSwiperSlide(tt){return tt.type&&tt.type.displayName&&tt.type.displayName.includes("SwiperSlide")}function processChildren(tt){const et=[];return React$4.Children.toArray(tt).forEach(rt=>{isChildSwiperSlide(rt)?et.push(rt):rt.props&&rt.props.children&&processChildren(rt.props.children).forEach(nt=>et.push(nt))}),et}function getChildren(tt){const et=[],rt={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return React$4.Children.toArray(tt).forEach(nt=>{if(isChildSwiperSlide(nt))et.push(nt);else if(nt.props&&nt.props.slot&&rt[nt.props.slot])rt[nt.props.slot].push(nt);else if(nt.props&&nt.props.children){const st=processChildren(nt.props.children);st.length>0?st.forEach(ot=>et.push(ot)):rt["container-end"].push(nt)}else rt["container-end"].push(nt)}),{slides:et,slots:rt}}function renderVirtual(tt,et,rt){if(!rt)return null;const nt=dt=>{let ht=dt;return dt<0?ht=et.length+dt:ht>=et.length&&(ht=ht-et.length),ht},st=tt.isHorizontal()?{[tt.rtlTranslate?"right":"left"]:`${rt.offset}px`}:{top:`${rt.offset}px`},{from:ot,to:at}=rt,lt=tt.params.loop?-et.length:0,ut=tt.params.loop?et.length*2:et.length,ct=[];for(let dt=lt;dt<ut;dt+=1)dt>=ot&&dt<=at&&ct.push(et[nt(dt)]);return ct.map((dt,ht)=>React$4.cloneElement(dt,{swiper:tt,style:st,key:`slide-${ht}`}))}function useIsomorphicLayoutEffect(tt,et){return typeof window>"u"?reactExports.useEffect(tt,et):reactExports.useLayoutEffect(tt,et)}const SwiperSlideContext=reactExports.createContext(null),SwiperContext=reactExports.createContext(null),Swiper=reactExports.forwardRef(function(tt,et){let{className:rt,tag:nt="div",wrapperTag:st="div",children:ot,onSwiper:at,...lt}=tt===void 0?{}:tt,ut=!1;const[ct,dt]=reactExports.useState("swiper"),[ht,ft]=reactExports.useState(null),[xt,yt]=reactExports.useState(!1),vt=reactExports.useRef(!1),Et=reactExports.useRef(null),bt=reactExports.useRef(null),St=reactExports.useRef(null),wt=reactExports.useRef(null),Rt=reactExports.useRef(null),Ct=reactExports.useRef(null),Pt=reactExports.useRef(null),It=reactExports.useRef(null),{params:jt,passedParams:Dt,rest:Vt,events:Ft}=getParams(lt),{slides:Ht,slots:Nt}=getChildren(ot),Lt=()=>{yt(!xt)};Object.assign(jt.on,{_containerClasses(Ut,Bt){dt(Bt)}});const Mt=()=>{Object.assign(jt.on,Ft),ut=!0;const Ut={...jt};if(delete Ut.wrapperClass,bt.current=new Swiper$1(Ut),bt.current.virtual&&bt.current.params.virtual.enabled){bt.current.virtual.slides=Ht;const Bt={cache:!1,slides:Ht,renderExternal:ft,renderExternalUpdate:!1};extend(bt.current.params.virtual,Bt),extend(bt.current.originalParams.virtual,Bt)}};Et.current||Mt(),bt.current&&bt.current.on("_beforeBreakpoint",Lt);const zt=()=>{ut||!Ft||!bt.current||Object.keys(Ft).forEach(Ut=>{bt.current.on(Ut,Ft[Ut])})},Gt=()=>{!Ft||!bt.current||Object.keys(Ft).forEach(Ut=>{bt.current.off(Ut,Ft[Ut])})};reactExports.useEffect(()=>()=>{bt.current&&bt.current.off("_beforeBreakpoint",Lt)}),reactExports.useEffect(()=>{!vt.current&&bt.current&&(bt.current.emitSlidesClasses(),vt.current=!0)}),useIsomorphicLayoutEffect(()=>{if(et&&(et.current=Et.current),!!Et.current)return bt.current.destroyed&&Mt(),mountSwiper({el:Et.current,nextEl:Rt.current,prevEl:Ct.current,paginationEl:Pt.current,scrollbarEl:It.current,swiper:bt.current},jt),at&&at(bt.current),()=>{bt.current&&!bt.current.destroyed&&bt.current.destroy(!0,!1)}},[]),useIsomorphicLayoutEffect(()=>{zt();const Ut=getChangedParams(Dt,St.current,Ht,wt.current,Bt=>Bt.key);return St.current=Dt,wt.current=Ht,Ut.length&&bt.current&&!bt.current.destroyed&&updateSwiper({swiper:bt.current,slides:Ht,passedParams:Dt,changedParams:Ut,nextEl:Rt.current,prevEl:Ct.current,scrollbarEl:It.current,paginationEl:Pt.current}),()=>{Gt()}}),useIsomorphicLayoutEffect(()=>{updateOnVirtualData(bt.current)},[ht]);function Ot(){return jt.virtual?renderVirtual(bt.current,Ht,ht):Ht.map((Ut,Bt)=>React$4.cloneElement(Ut,{swiper:bt.current,swiperSlideIndex:Bt}))}return React$4.createElement(nt,_extends({ref:Et,className:uniqueClasses(`${ct}${rt?` ${rt}`:""}`)},Vt),React$4.createElement(SwiperContext.Provider,{value:bt.current},Nt["container-start"],React$4.createElement(st,{className:wrapperClass(jt.wrapperClass)},Nt["wrapper-start"],Ot(),Nt["wrapper-end"]),needsNavigation(jt)&&React$4.createElement(React$4.Fragment,null,React$4.createElement("div",{ref:Ct,className:"swiper-button-prev"}),React$4.createElement("div",{ref:Rt,className:"swiper-button-next"})),needsScrollbar(jt)&&React$4.createElement("div",{ref:It,className:"swiper-scrollbar"}),needsPagination(jt)&&React$4.createElement("div",{ref:Pt,className:"swiper-pagination"}),Nt["container-end"]))});Swiper.displayName="Swiper";const SwiperSlide=reactExports.forwardRef(function(tt,et){let{tag:rt="div",children:nt,className:st="",swiper:ot,zoom:at,lazy:lt,virtualIndex:ut,swiperSlideIndex:ct,...dt}=tt===void 0?{}:tt;const ht=reactExports.useRef(null),[ft,xt]=reactExports.useState("swiper-slide"),[yt,vt]=reactExports.useState(!1);function Et(Rt,Ct,Pt){Ct===ht.current&&xt(Pt)}useIsomorphicLayoutEffect(()=>{if(typeof ct<"u"&&(ht.current.swiperSlideIndex=ct),et&&(et.current=ht.current),!(!ht.current||!ot)){if(ot.destroyed){ft!=="swiper-slide"&&xt("swiper-slide");return}return ot.on("_slideClass",Et),()=>{ot&&ot.off("_slideClass",Et)}}}),useIsomorphicLayoutEffect(()=>{ot&&ht.current&&!ot.destroyed&&xt(ot.getSlideClasses(ht.current))},[ot]);const bt={isActive:ft.indexOf("swiper-slide-active")>=0,isVisible:ft.indexOf("swiper-slide-visible")>=0,isPrev:ft.indexOf("swiper-slide-prev")>=0,isNext:ft.indexOf("swiper-slide-next")>=0},St=()=>typeof nt=="function"?nt(bt):nt,wt=()=>{vt(!0)};return React$4.createElement(rt,_extends({ref:ht,className:uniqueClasses(`${ft}${st?` ${st}`:""}`),"data-swiper-slide-index":ut,onLoad:wt},dt),at&&React$4.createElement(SwiperSlideContext.Provider,{value:bt},React$4.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof at=="number"?at:void 0},St(),lt&&!yt&&React$4.createElement("div",{className:"swiper-lazy-preloader"}))),!at&&React$4.createElement(SwiperSlideContext.Provider,{value:bt},St(),lt&&!yt&&React$4.createElement("div",{className:"swiper-lazy-preloader"})))});SwiperSlide.displayName="SwiperSlide";const getOnboardingTrash=async tt=>await odeServices.conf().getPreference(tt),saveOnboardingTrash=async tt=>await odeServices.conf().savePreference(tt,JSON.stringify({key:!1})),useOnboardingModal=tt=>{const[et,rt]=reactExports.useState(!0),[nt,st]=reactExports.useState(!1);return reactExports.useEffect(()=>{(async()=>{const ot=await getOnboardingTrash(tt);if(ot){const{key:at}=ot;st(at);return}st(!0)})()},[tt]),{isOpen:et,setIsOpen:rt,isOnboarding:nt,handleSavePreference:async()=>{await saveOnboardingTrash(tt),rt(!1)}}},OnboardingModal$2=({id:tt,items:et,modalOptions:rt})=>{const[nt,st]=reactExports.useState(),[ot,at]=reactExports.useState(0),{isOpen:lt,isOnboarding:ut,setIsOpen:ct,handleSavePreference:dt}=useOnboardingModal(tt);reactExports.useEffect(()=>{const Et=document.createElement("link");return Et.href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css",Et.rel="stylesheet",Et.type="text/css",document.head.appendChild(Et),()=>{document.head.removeChild(Et)}},[]);const{t:ht}=useTranslation(),{title:ft,prevText:xt,closeText:yt,nextText:vt}=rt;return ut?reactDomExports.createPortal(jsxRuntimeExports.jsxs(Modal,{id:"onboarding-modal",size:"md",isOpen:lt,focusId:"nextButtonId",onModalClose:()=>ct(!1),children:[jsxRuntimeExports.jsx(Modal.Header,{onModalClose:()=>ct(!1),children:ht(ft||"explorer.modal.onboarding.trash.title")}),jsxRuntimeExports.jsx(Modal.Body,{children:jsxRuntimeExports.jsx(Swiper,{modules:[Pagination],onSwiper:Et=>{st(Et)},onSlideChange:Et=>{at(Et.progress)},pagination:{clickable:!0},children:et.map((Et,bt)=>jsxRuntimeExports.jsxs(SwiperSlide,{children:[jsxRuntimeExports.jsx(Image$1,{width:"270",height:"140",className:"mx-auto my-12",loading:"lazy",src:Et.src,alt:ht(Et.alt)}),jsxRuntimeExports.jsx("p",{children:ht(Et.text)})]},bt))})}),jsxRuntimeExports.jsxs(Modal.Footer,{children:[jsxRuntimeExports.jsx(Button,{type:"button",color:"tertiary",variant:"ghost",onClick:()=>ct(!1),children:ht("explorer.modal.onboarding.trash.later")}),ot>0&&jsxRuntimeExports.jsx(Button,{type:"button",color:"primary",variant:"outline",onClick:()=>nt.slidePrev(),children:ht(xt||"explorer.modal.onboarding.trash.prev")}),ot<1&&jsxRuntimeExports.jsx(Button,{id:"nextButtonId",type:"button",color:"primary",variant:"filled",onClick:()=>nt.slideNext(),children:ht(vt||"explorer.modal.onboarding.trash.next")}),ot===1&&jsxRuntimeExports.jsx(Button,{type:"button",color:"primary",variant:"filled",onClick:dt,children:ht(yt||"explorer.modal.onboarding.trash.close")})]})]}),document.getElementById("portal")):null};var isCheckBoxInput=tt=>tt.type==="checkbox",isDateObject=tt=>tt instanceof Date,isNullOrUndefined=tt=>tt==null;const isObjectType=tt=>typeof tt=="object";var isObject=tt=>!isNullOrUndefined(tt)&&!Array.isArray(tt)&&isObjectType(tt)&&!isDateObject(tt),getEventValue=tt=>isObject(tt)&&tt.target?isCheckBoxInput(tt.target)?tt.target.checked:tt.target.value:tt,getNodeParentName=tt=>tt.substring(0,tt.search(/\.\d+(\.|$)/))||tt,isNameInFieldArray=(tt,et)=>tt.has(getNodeParentName(et)),isPlainObject$1=tt=>{const et=tt.constructor&&tt.constructor.prototype;return isObject(et)&&et.hasOwnProperty("isPrototypeOf")},isWeb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cloneObject(tt){let et;const rt=Array.isArray(tt),nt=typeof FileList<"u"?tt instanceof FileList:!1;if(tt instanceof Date)et=new Date(tt);else if(tt instanceof Set)et=new Set(tt);else if(!(isWeb&&(tt instanceof Blob||nt))&&(rt||isObject(tt)))if(et=rt?[]:{},!rt&&!isPlainObject$1(tt))et=tt;else for(const st in tt)tt.hasOwnProperty(st)&&(et[st]=cloneObject(tt[st]));else return tt;return et}var compact$1=tt=>Array.isArray(tt)?tt.filter(Boolean):[],isUndefined=tt=>tt===void 0,get$1=(tt,et,rt)=>{if(!et||!isObject(tt))return rt;const nt=compact$1(et.split(/[,[\].]+?/)).reduce((st,ot)=>isNullOrUndefined(st)?st:st[ot],tt);return isUndefined(nt)||nt===tt?isUndefined(tt[et])?rt:tt[et]:nt},isBoolean$1=tt=>typeof tt=="boolean",isKey=tt=>/^\w*$/.test(tt),stringToPath$1=tt=>compact$1(tt.replace(/["|']|\]/g,"").split(/\.|\[/)),set=(tt,et,rt)=>{let nt=-1;const st=isKey(et)?[et]:stringToPath$1(et),ot=st.length,at=ot-1;for(;++nt<ot;){const lt=st[nt];let ut=rt;if(nt!==at){const ct=tt[lt];ut=isObject(ct)||Array.isArray(ct)?ct:isNaN(+st[nt+1])?{}:[]}if(lt==="__proto__"||lt==="constructor"||lt==="prototype")return;tt[lt]=ut,tt=tt[lt]}return tt};const EVENTS={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},VALIDATION_MODE={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},INPUT_VALIDATION_RULES={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},HookFormContext=React$4.createContext(null),useFormContext=()=>React$4.useContext(HookFormContext);var getProxyFormState=(tt,et,rt,nt=!0)=>{const st={defaultValues:et._defaultValues};for(const ot in tt)Object.defineProperty(st,ot,{get:()=>{const at=ot;return et._proxyFormState[at]!==VALIDATION_MODE.all&&(et._proxyFormState[at]=!nt||VALIDATION_MODE.all),rt&&(rt[at]=!0),tt[at]}});return st},isEmptyObject=tt=>isObject(tt)&&!Object.keys(tt).length,shouldRenderFormState=(tt,et,rt,nt)=>{rt(tt);const{name:st,...ot}=tt;return isEmptyObject(ot)||Object.keys(ot).length>=Object.keys(et).length||Object.keys(ot).find(at=>et[at]===(!nt||VALIDATION_MODE.all))},convertToArrayPayload=tt=>Array.isArray(tt)?tt:[tt],shouldSubscribeByName=(tt,et,rt)=>!tt||!et||tt===et||convertToArrayPayload(tt).some(nt=>nt&&(rt?nt===et:nt.startsWith(et)||et.startsWith(nt)));function useSubscribe(tt){const et=React$4.useRef(tt);et.current=tt,React$4.useEffect(()=>{const rt=!tt.disabled&&et.current.subject&&et.current.subject.subscribe({next:et.current.next});return()=>{rt&&rt.unsubscribe()}},[tt.disabled])}function useFormState(tt){const et=useFormContext(),{control:rt=et.control,disabled:nt,name:st,exact:ot}=tt||{},[at,lt]=React$4.useState(rt._formState),ut=React$4.useRef(!0),ct=React$4.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),dt=React$4.useRef(st);return dt.current=st,useSubscribe({disabled:nt,next:ht=>ut.current&&shouldSubscribeByName(dt.current,ht.name,ot)&&shouldRenderFormState(ht,ct.current,rt._updateFormState)&<({...rt._formState,...ht}),subject:rt._subjects.state}),React$4.useEffect(()=>(ut.current=!0,ct.current.isValid&&rt._updateValid(!0),()=>{ut.current=!1}),[rt]),React$4.useMemo(()=>getProxyFormState(at,rt,ct.current,!1),[at,rt])}var isString$1=tt=>typeof tt=="string",generateWatchOutput=(tt,et,rt,nt,st)=>isString$1(tt)?(nt&&et.watch.add(tt),get$1(rt,tt,st)):Array.isArray(tt)?tt.map(ot=>(nt&&et.watch.add(ot),get$1(rt,ot))):(nt&&(et.watchAll=!0),rt);function useWatch(tt){const et=useFormContext(),{control:rt=et.control,name:nt,defaultValue:st,disabled:ot,exact:at}=tt||{},lt=React$4.useRef(nt);lt.current=nt,useSubscribe({disabled:ot,subject:rt._subjects.values,next:dt=>{shouldSubscribeByName(lt.current,dt.name,at)&&ct(cloneObject(generateWatchOutput(lt.current,rt._names,dt.values||rt._formValues,!1,st)))}});const[ut,ct]=React$4.useState(rt._getWatch(nt,st));return React$4.useEffect(()=>rt._removeUnmounted()),ut}function useController(tt){const et=useFormContext(),{name:rt,disabled:nt,control:st=et.control,shouldUnregister:ot}=tt,at=isNameInFieldArray(st._names.array,rt),lt=useWatch({control:st,name:rt,defaultValue:get$1(st._formValues,rt,get$1(st._defaultValues,rt,tt.defaultValue)),exact:!0}),ut=useFormState({control:st,name:rt,exact:!0}),ct=React$4.useRef(st.register(rt,{...tt.rules,value:lt,...isBoolean$1(tt.disabled)?{disabled:tt.disabled}:{}})),dt=React$4.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get$1(ut.errors,rt)},isDirty:{enumerable:!0,get:()=>!!get$1(ut.dirtyFields,rt)},isTouched:{enumerable:!0,get:()=>!!get$1(ut.touchedFields,rt)},isValidating:{enumerable:!0,get:()=>!!get$1(ut.validatingFields,rt)},error:{enumerable:!0,get:()=>get$1(ut.errors,rt)}}),[ut,rt]),ht=React$4.useMemo(()=>({name:rt,value:lt,...isBoolean$1(nt)||ut.disabled?{disabled:ut.disabled||nt}:{},onChange:ft=>ct.current.onChange({target:{value:getEventValue(ft),name:rt},type:EVENTS.CHANGE}),onBlur:()=>ct.current.onBlur({target:{value:get$1(st._formValues,rt),name:rt},type:EVENTS.BLUR}),ref:ft=>{const xt=get$1(st._fields,rt);xt&&ft&&(xt._f.ref={focus:()=>ft.focus(),select:()=>ft.select(),setCustomValidity:yt=>ft.setCustomValidity(yt),reportValidity:()=>ft.reportValidity()})}}),[rt,st._formValues,nt,ut.disabled,lt,st._fields]);return React$4.useEffect(()=>{const ft=st._options.shouldUnregister||ot,xt=(yt,vt)=>{const Et=get$1(st._fields,yt);Et&&Et._f&&(Et._f.mount=vt)};if(xt(rt,!0),ft){const yt=cloneObject(get$1(st._options.defaultValues,rt));set(st._defaultValues,rt,yt),isUndefined(get$1(st._formValues,rt))&&set(st._formValues,rt,yt)}return!at&&st.register(rt),()=>{(at?ft&&!st._state.action:ft)?st.unregister(rt):xt(rt,!1)}},[rt,st,at,ot]),React$4.useEffect(()=>{st._updateDisabledField({disabled:nt,fields:st._fields,name:rt})},[nt,rt,st]),React$4.useMemo(()=>({field:ht,formState:ut,fieldState:dt}),[ht,ut,dt])}const Controller=tt=>tt.render(useController(tt));var appendErrors=(tt,et,rt,nt,st)=>et?{...rt[tt],types:{...rt[tt]&&rt[tt].types?rt[tt].types:{},[nt]:st||!0}}:{},getValidationModes=tt=>({isOnSubmit:!tt||tt===VALIDATION_MODE.onSubmit,isOnBlur:tt===VALIDATION_MODE.onBlur,isOnChange:tt===VALIDATION_MODE.onChange,isOnAll:tt===VALIDATION_MODE.all,isOnTouch:tt===VALIDATION_MODE.onTouched}),isWatched=(tt,et,rt)=>!rt&&(et.watchAll||et.watch.has(tt)||[...et.watch].some(nt=>tt.startsWith(nt)&&/^\.\w+/.test(tt.slice(nt.length))));const iterateFieldsByAction=(tt,et,rt,nt)=>{for(const st of rt||Object.keys(tt)){const ot=get$1(tt,st);if(ot){const{_f:at,...lt}=ot;if(at){if(at.refs&&at.refs[0]&&et(at.refs[0],st)&&!nt)return!0;if(at.ref&&et(at.ref,at.name)&&!nt)return!0;if(iterateFieldsByAction(lt,et))break}else if(isObject(lt)&&iterateFieldsByAction(lt,et))break}}};var updateFieldArrayRootError=(tt,et,rt)=>{const nt=convertToArrayPayload(get$1(tt,rt));return set(nt,"root",et[rt]),set(tt,rt,nt),tt},isFileInput=tt=>tt.type==="file",isFunction=tt=>typeof tt=="function",isHTMLElement=tt=>{if(!isWeb)return!1;const et=tt?tt.ownerDocument:0;return tt instanceof(et&&et.defaultView?et.defaultView.HTMLElement:HTMLElement)},isMessage=tt=>isString$1(tt),isRadioInput=tt=>tt.type==="radio",isRegex=tt=>tt instanceof RegExp;const defaultResult={value:!1,isValid:!1},validResult={value:!0,isValid:!0};var getCheckboxValue=tt=>{if(Array.isArray(tt)){if(tt.length>1){const et=tt.filter(rt=>rt&&rt.checked&&!rt.disabled).map(rt=>rt.value);return{value:et,isValid:!!et.length}}return tt[0].checked&&!tt[0].disabled?tt[0].attributes&&!isUndefined(tt[0].attributes.value)?isUndefined(tt[0].value)||tt[0].value===""?validResult:{value:tt[0].value,isValid:!0}:validResult:defaultResult}return defaultResult};const defaultReturn={isValid:!1,value:null};var getRadioValue=tt=>Array.isArray(tt)?tt.reduce((et,rt)=>rt&&rt.checked&&!rt.disabled?{isValid:!0,value:rt.value}:et,defaultReturn):defaultReturn;function getValidateError(tt,et,rt="validate"){if(isMessage(tt)||Array.isArray(tt)&&tt.every(isMessage)||isBoolean$1(tt)&&!tt)return{type:rt,message:isMessage(tt)?tt:"",ref:et}}var getValueAndMessage=tt=>isObject(tt)&&!isRegex(tt)?tt:{value:tt,message:""},validateField=async(tt,et,rt,nt,st,ot)=>{const{ref:at,refs:lt,required:ut,maxLength:ct,minLength:dt,min:ht,max:ft,pattern:xt,validate:yt,name:vt,valueAsNumber:Et,mount:bt}=tt._f,St=get$1(rt,vt);if(!bt||et.has(vt))return{};const wt=lt?lt[0]:at,Rt=Ht=>{st&&wt.reportValidity&&(wt.setCustomValidity(isBoolean$1(Ht)?"":Ht||""),wt.reportValidity())},Ct={},Pt=isRadioInput(at),It=isCheckBoxInput(at),jt=Pt||It,Dt=(Et||isFileInput(at))&&isUndefined(at.value)&&isUndefined(St)||isHTMLElement(at)&&at.value===""||St===""||Array.isArray(St)&&!St.length,Vt=appendErrors.bind(null,vt,nt,Ct),Ft=(Ht,Nt,Lt,Mt=INPUT_VALIDATION_RULES.maxLength,zt=INPUT_VALIDATION_RULES.minLength)=>{const Gt=Ht?Nt:Lt;Ct[vt]={type:Ht?Mt:zt,message:Gt,ref:at,...Vt(Ht?Mt:zt,Gt)}};if(ot?!Array.isArray(St)||!St.length:ut&&(!jt&&(Dt||isNullOrUndefined(St))||isBoolean$1(St)&&!St||It&&!getCheckboxValue(lt).isValid||Pt&&!getRadioValue(lt).isValid)){const{value:Ht,message:Nt}=isMessage(ut)?{value:!!ut,message:ut}:getValueAndMessage(ut);if(Ht&&(Ct[vt]={type:INPUT_VALIDATION_RULES.required,message:Nt,ref:wt,...Vt(INPUT_VALIDATION_RULES.required,Nt)},!nt))return Rt(Nt),Ct}if(!Dt&&(!isNullOrUndefined(ht)||!isNullOrUndefined(ft))){let Ht,Nt;const Lt=getValueAndMessage(ft),Mt=getValueAndMessage(ht);if(!isNullOrUndefined(St)&&!isNaN(St)){const zt=at.valueAsNumber||St&&+St;isNullOrUndefined(Lt.value)||(Ht=zt>Lt.value),isNullOrUndefined(Mt.value)||(Nt=zt<Mt.value)}else{const zt=at.valueAsDate||new Date(St),Gt=Bt=>new Date(new Date().toDateString()+" "+Bt),Ot=at.type=="time",Ut=at.type=="week";isString$1(Lt.value)&&St&&(Ht=Ot?Gt(St)>Gt(Lt.value):Ut?St>Lt.value:zt>new Date(Lt.value)),isString$1(Mt.value)&&St&&(Nt=Ot?Gt(St)<Gt(Mt.value):Ut?St<Mt.value:zt<new Date(Mt.value))}if((Ht||Nt)&&(Ft(!!Ht,Lt.message,Mt.message,INPUT_VALIDATION_RULES.max,INPUT_VALIDATION_RULES.min),!nt))return Rt(Ct[vt].message),Ct}if((ct||dt)&&!Dt&&(isString$1(St)||ot&&Array.isArray(St))){const Ht=getValueAndMessage(ct),Nt=getValueAndMessage(dt),Lt=!isNullOrUndefined(Ht.value)&&St.length>+Ht.value,Mt=!isNullOrUndefined(Nt.value)&&St.length<+Nt.value;if((Lt||Mt)&&(Ft(Lt,Ht.message,Nt.message),!nt))return Rt(Ct[vt].message),Ct}if(xt&&!Dt&&isString$1(St)){const{value:Ht,message:Nt}=getValueAndMessage(xt);if(isRegex(Ht)&&!St.match(Ht)&&(Ct[vt]={type:INPUT_VALIDATION_RULES.pattern,message:Nt,ref:at,...Vt(INPUT_VALIDATION_RULES.pattern,Nt)},!nt))return Rt(Nt),Ct}if(yt){if(isFunction(yt)){const Ht=await yt(St,rt),Nt=getValidateError(Ht,wt);if(Nt&&(Ct[vt]={...Nt,...Vt(INPUT_VALIDATION_RULES.validate,Nt.message)},!nt))return Rt(Nt.message),Ct}else if(isObject(yt)){let Ht={};for(const Nt in yt){if(!isEmptyObject(Ht)&&!nt)break;const Lt=getValidateError(await yt[Nt](St,rt),wt,Nt);Lt&&(Ht={...Lt,...Vt(Nt,Lt.message)},Rt(Lt.message),nt&&(Ct[vt]=Ht))}if(!isEmptyObject(Ht)&&(Ct[vt]={ref:wt,...Ht},!nt))return Ct}}return Rt(!0),Ct};function baseGet(tt,et){const rt=et.slice(0,-1).length;let nt=0;for(;nt<rt;)tt=isUndefined(tt)?nt++:tt[et[nt++]];return tt}function isEmptyArray(tt){for(const et in tt)if(tt.hasOwnProperty(et)&&!isUndefined(tt[et]))return!1;return!0}function unset(tt,et){const rt=Array.isArray(et)?et:isKey(et)?[et]:stringToPath$1(et),nt=rt.length===1?tt:baseGet(tt,rt),st=rt.length-1,ot=rt[st];return nt&&delete nt[ot],st!==0&&(isObject(nt)&&isEmptyObject(nt)||Array.isArray(nt)&&isEmptyArray(nt))&&unset(tt,rt.slice(0,-1)),tt}var createSubject=()=>{let tt=[];return{get observers(){return tt},next:st=>{for(const ot of tt)ot.next&&ot.next(st)},subscribe:st=>(tt.push(st),{unsubscribe:()=>{tt=tt.filter(ot=>ot!==st)}}),unsubscribe:()=>{tt=[]}}},isPrimitive=tt=>isNullOrUndefined(tt)||!isObjectType(tt);function deepEqual(tt,et){if(isPrimitive(tt)||isPrimitive(et))return tt===et;if(isDateObject(tt)&&isDateObject(et))return tt.getTime()===et.getTime();const rt=Object.keys(tt),nt=Object.keys(et);if(rt.length!==nt.length)return!1;for(const st of rt){const ot=tt[st];if(!nt.includes(st))return!1;if(st!=="ref"){const at=et[st];if(isDateObject(ot)&&isDateObject(at)||isObject(ot)&&isObject(at)||Array.isArray(ot)&&Array.isArray(at)?!deepEqual(ot,at):ot!==at)return!1}}return!0}var isMultipleSelect=tt=>tt.type==="select-multiple",isRadioOrCheckbox=tt=>isRadioInput(tt)||isCheckBoxInput(tt),live=tt=>isHTMLElement(tt)&&tt.isConnected,objectHasFunction=tt=>{for(const et in tt)if(isFunction(tt[et]))return!0;return!1};function markFieldsDirty(tt,et={}){const rt=Array.isArray(tt);if(isObject(tt)||rt)for(const nt in tt)Array.isArray(tt[nt])||isObject(tt[nt])&&!objectHasFunction(tt[nt])?(et[nt]=Array.isArray(tt[nt])?[]:{},markFieldsDirty(tt[nt],et[nt])):isNullOrUndefined(tt[nt])||(et[nt]=!0);return et}function getDirtyFieldsFromDefaultValues(tt,et,rt){const nt=Array.isArray(tt);if(isObject(tt)||nt)for(const st in tt)Array.isArray(tt[st])||isObject(tt[st])&&!objectHasFunction(tt[st])?isUndefined(et)||isPrimitive(rt[st])?rt[st]=Array.isArray(tt[st])?markFieldsDirty(tt[st],[]):{...markFieldsDirty(tt[st])}:getDirtyFieldsFromDefaultValues(tt[st],isNullOrUndefined(et)?{}:et[st],rt[st]):rt[st]=!deepEqual(tt[st],et[st]);return rt}var getDirtyFields=(tt,et)=>getDirtyFieldsFromDefaultValues(tt,et,markFieldsDirty(et)),getFieldValueAs=(tt,{valueAsNumber:et,valueAsDate:rt,setValueAs:nt})=>isUndefined(tt)?tt:et?tt===""?NaN:tt&&+tt:rt&&isString$1(tt)?new Date(tt):nt?nt(tt):tt;function getFieldValue(tt){const et=tt.ref;return isFileInput(et)?et.files:isRadioInput(et)?getRadioValue(tt.refs).value:isMultipleSelect(et)?[...et.selectedOptions].map(({value:rt})=>rt):isCheckBoxInput(et)?getCheckboxValue(tt.refs).value:getFieldValueAs(isUndefined(et.value)?tt.ref.value:et.value,tt)}var getResolverOptions=(tt,et,rt,nt)=>{const st={};for(const ot of tt){const at=get$1(et,ot);at&&set(st,ot,at._f)}return{criteriaMode:rt,names:[...tt],fields:st,shouldUseNativeValidation:nt}},getRuleValue=tt=>isUndefined(tt)?tt:isRegex(tt)?tt.source:isObject(tt)?isRegex(tt.value)?tt.value.source:tt.value:tt;const ASYNC_FUNCTION="AsyncFunction";var hasPromiseValidation=tt=>!!tt&&!!tt.validate&&!!(isFunction(tt.validate)&&tt.validate.constructor.name===ASYNC_FUNCTION||isObject(tt.validate)&&Object.values(tt.validate).find(et=>et.constructor.name===ASYNC_FUNCTION)),hasValidation=tt=>tt.mount&&(tt.required||tt.min||tt.max||tt.maxLength||tt.minLength||tt.pattern||tt.validate);function schemaErrorLookup(tt,et,rt){const nt=get$1(tt,rt);if(nt||isKey(rt))return{error:nt,name:rt};const st=rt.split(".");for(;st.length;){const ot=st.join("."),at=get$1(et,ot),lt=get$1(tt,ot);if(at&&!Array.isArray(at)&&rt!==ot)return{name:rt};if(lt&<.type)return{name:ot,error:lt};st.pop()}return{name:rt}}var skipValidation=(tt,et,rt,nt,st)=>st.isOnAll?!1:!rt&&st.isOnTouch?!(et||tt):(rt?nt.isOnBlur:st.isOnBlur)?!tt:(rt?nt.isOnChange:st.isOnChange)?tt:!0,unsetEmptyArray=(tt,et)=>!compact$1(get$1(tt,et)).length&&unset(tt,et);const defaultOptions={mode:VALIDATION_MODE.onSubmit,reValidateMode:VALIDATION_MODE.onChange,shouldFocusError:!0};function createFormControl(tt={}){let et={...defaultOptions,...tt},rt={submitCount:0,isDirty:!1,isLoading:isFunction(et.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:et.errors||{},disabled:et.disabled||!1},nt={},st=isObject(et.defaultValues)||isObject(et.values)?cloneObject(et.defaultValues||et.values)||{}:{},ot=et.shouldUnregister?{}:cloneObject(st),at={action:!1,mount:!1,watch:!1},lt={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},ut,ct=0;const dt={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},ht={values:createSubject(),array:createSubject(),state:createSubject()},ft=getValidationModes(et.mode),xt=getValidationModes(et.reValidateMode),yt=et.criteriaMode===VALIDATION_MODE.all,vt=qt=>er=>{clearTimeout(ct),ct=setTimeout(qt,er)},Et=async qt=>{if(!et.disabled&&(dt.isValid||qt)){const er=et.resolver?isEmptyObject((await jt()).errors):await Vt(nt,!0);er!==rt.isValid&&ht.state.next({isValid:er})}},bt=(qt,er)=>{!et.disabled&&(dt.isValidating||dt.validatingFields)&&((qt||Array.from(lt.mount)).forEach(nr=>{nr&&(er?set(rt.validatingFields,nr,er):unset(rt.validatingFields,nr))}),ht.state.next({validatingFields:rt.validatingFields,isValidating:!isEmptyObject(rt.validatingFields)}))},St=(qt,er=[],nr,yr,xr=!0,dr=!0)=>{if(yr&&nr&&!et.disabled){if(at.action=!0,dr&&Array.isArray(get$1(nt,qt))){const _r=nr(get$1(nt,qt),yr.argA,yr.argB);xr&&set(nt,qt,_r)}if(dr&&Array.isArray(get$1(rt.errors,qt))){const _r=nr(get$1(rt.errors,qt),yr.argA,yr.argB);xr&&set(rt.errors,qt,_r),unsetEmptyArray(rt.errors,qt)}if(dt.touchedFields&&dr&&Array.isArray(get$1(rt.touchedFields,qt))){const _r=nr(get$1(rt.touchedFields,qt),yr.argA,yr.argB);xr&&set(rt.touchedFields,qt,_r)}dt.dirtyFields&&(rt.dirtyFields=getDirtyFields(st,ot)),ht.state.next({name:qt,isDirty:Ht(qt,er),dirtyFields:rt.dirtyFields,errors:rt.errors,isValid:rt.isValid})}else set(ot,qt,er)},wt=(qt,er)=>{set(rt.errors,qt,er),ht.state.next({errors:rt.errors})},Rt=qt=>{rt.errors=qt,ht.state.next({errors:rt.errors,isValid:!1})},Ct=(qt,er,nr,yr)=>{const xr=get$1(nt,qt);if(xr){const dr=get$1(ot,qt,isUndefined(nr)?get$1(st,qt):nr);isUndefined(dr)||yr&&yr.defaultChecked||er?set(ot,qt,er?dr:getFieldValue(xr._f)):Mt(qt,dr),at.mount&&Et()}},Pt=(qt,er,nr,yr,xr)=>{let dr=!1,_r=!1;const Fr={name:qt};if(!et.disabled){const jr=!!(get$1(nt,qt)&&get$1(nt,qt)._f&&get$1(nt,qt)._f.disabled);if(!nr||yr){dt.isDirty&&(_r=rt.isDirty,rt.isDirty=Fr.isDirty=Ht(),dr=_r!==Fr.isDirty);const Ir=jr||deepEqual(get$1(st,qt),er);_r=!!(!jr&&get$1(rt.dirtyFields,qt)),Ir||jr?unset(rt.dirtyFields,qt):set(rt.dirtyFields,qt,!0),Fr.dirtyFields=rt.dirtyFields,dr=dr||dt.dirtyFields&&_r!==!Ir}if(nr){const Ir=get$1(rt.touchedFields,qt);Ir||(set(rt.touchedFields,qt,nr),Fr.touchedFields=rt.touchedFields,dr=dr||dt.touchedFields&&Ir!==nr)}dr&&xr&&ht.state.next(Fr)}return dr?Fr:{}},It=(qt,er,nr,yr)=>{const xr=get$1(rt.errors,qt),dr=dt.isValid&&isBoolean$1(er)&&rt.isValid!==er;if(et.delayError&&nr?(ut=vt(()=>wt(qt,nr)),ut(et.delayError)):(clearTimeout(ct),ut=null,nr?set(rt.errors,qt,nr):unset(rt.errors,qt)),(nr?!deepEqual(xr,nr):xr)||!isEmptyObject(yr)||dr){const _r={...yr,...dr&&isBoolean$1(er)?{isValid:er}:{},errors:rt.errors,name:qt};rt={...rt,..._r},ht.state.next(_r)}},jt=async qt=>{bt(qt,!0);const er=await et.resolver(ot,et.context,getResolverOptions(qt||lt.mount,nt,et.criteriaMode,et.shouldUseNativeValidation));return bt(qt),er},Dt=async qt=>{const{errors:er}=await jt(qt);if(qt)for(const nr of qt){const yr=get$1(er,nr);yr?set(rt.errors,nr,yr):unset(rt.errors,nr)}else rt.errors=er;return er},Vt=async(qt,er,nr={valid:!0})=>{for(const yr in qt){const xr=qt[yr];if(xr){const{_f:dr,..._r}=xr;if(dr){const Fr=lt.array.has(dr.name),jr=xr._f&&hasPromiseValidation(xr._f);jr&&dt.validatingFields&&bt([yr],!0);const Ir=await validateField(xr,lt.disabled,ot,yt,et.shouldUseNativeValidation&&!er,Fr);if(jr&&dt.validatingFields&&bt([yr]),Ir[dr.name]&&(nr.valid=!1,er))break;!er&&(get$1(Ir,dr.name)?Fr?updateFieldArrayRootError(rt.errors,Ir,dr.name):set(rt.errors,dr.name,Ir[dr.name]):unset(rt.errors,dr.name))}!isEmptyObject(_r)&&await Vt(_r,er,nr)}}return nr.valid},Ft=()=>{for(const qt of lt.unMount){const er=get$1(nt,qt);er&&(er._f.refs?er._f.refs.every(nr=>!live(nr)):!live(er._f.ref))&&ur(qt)}lt.unMount=new Set},Ht=(qt,er)=>!et.disabled&&(qt&&er&&set(ot,qt,er),!deepEqual(Yt(),st)),Nt=(qt,er,nr)=>generateWatchOutput(qt,lt,{...at.mount?ot:isUndefined(er)?st:isString$1(qt)?{[qt]:er}:er},nr,er),Lt=qt=>compact$1(get$1(at.mount?ot:st,qt,et.shouldUnregister?get$1(st,qt,[]):[])),Mt=(qt,er,nr={})=>{const yr=get$1(nt,qt);let xr=er;if(yr){const dr=yr._f;dr&&(!dr.disabled&&set(ot,qt,getFieldValueAs(er,dr)),xr=isHTMLElement(dr.ref)&&isNullOrUndefined(er)?"":er,isMultipleSelect(dr.ref)?[...dr.ref.options].forEach(_r=>_r.selected=xr.includes(_r.value)):dr.refs?isCheckBoxInput(dr.ref)?dr.refs.length>1?dr.refs.forEach(_r=>(!_r.defaultChecked||!_r.disabled)&&(_r.checked=Array.isArray(xr)?!!xr.find(Fr=>Fr===_r.value):xr===_r.value)):dr.refs[0]&&(dr.refs[0].checked=!!xr):dr.refs.forEach(_r=>_r.checked=_r.value===xr):isFileInput(dr.ref)?dr.ref.value="":(dr.ref.value=xr,dr.ref.type||ht.values.next({name:qt,values:{...ot}})))}(nr.shouldDirty||nr.shouldTouch)&&Pt(qt,xr,nr.shouldTouch,nr.shouldDirty,!0),nr.shouldValidate&&Bt(qt)},zt=(qt,er,nr)=>{for(const yr in er){const xr=er[yr],dr=`${qt}.${yr}`,_r=get$1(nt,dr);(lt.array.has(qt)||isObject(xr)||_r&&!_r._f)&&!isDateObject(xr)?zt(dr,xr,nr):Mt(dr,xr,nr)}},Gt=(qt,er,nr={})=>{const yr=get$1(nt,qt),xr=lt.array.has(qt),dr=cloneObject(er);set(ot,qt,dr),xr?(ht.array.next({name:qt,values:{...ot}}),(dt.isDirty||dt.dirtyFields)&&nr.shouldDirty&&ht.state.next({name:qt,dirtyFields:getDirtyFields(st,ot),isDirty:Ht(qt,dr)})):yr&&!yr._f&&!isNullOrUndefined(dr)?zt(qt,dr,nr):Mt(qt,dr,nr),isWatched(qt,lt)&&ht.state.next({...rt}),ht.values.next({name:at.mount?qt:void 0,values:{...ot}})},Ot=async qt=>{at.mount=!0;const er=qt.target;let nr=er.name,yr=!0;const xr=get$1(nt,nr),dr=()=>er.type?getFieldValue(xr._f):getEventValue(qt),_r=Fr=>{yr=Number.isNaN(Fr)||isDateObject(Fr)&&isNaN(Fr.getTime())||deepEqual(Fr,get$1(ot,nr,Fr))};if(xr){let Fr,jr;const Ir=dr(),Pr=qt.type===EVENTS.BLUR||qt.type===EVENTS.FOCUS_OUT,Vr=!hasValidation(xr._f)&&!et.resolver&&!get$1(rt.errors,nr)&&!xr._f.deps||skipValidation(Pr,get$1(rt.touchedFields,nr),rt.isSubmitted,xt,ft),Xn=isWatched(nr,lt,Pr);set(ot,nr,Ir),Pr?(xr._f.onBlur&&xr._f.onBlur(qt),ut&&ut(0)):xr._f.onChange&&xr._f.onChange(qt);const An=Pt(nr,Ir,Pr,!1),Hr=!isEmptyObject(An)||Xn;if(!Pr&&ht.values.next({name:nr,type:qt.type,values:{...ot}}),Vr)return dt.isValid&&(et.mode==="onBlur"&&Pr?Et():Pr||Et()),Hr&&ht.state.next({name:nr,...Xn?{}:An});if(!Pr&&Xn&&ht.state.next({...rt}),et.resolver){const{errors:Lr}=await jt([nr]);if(_r(Ir),yr){const os=schemaErrorLookup(rt.errors,nt,nr),Ms=schemaErrorLookup(Lr,nt,os.name||nr);Fr=Ms.error,nr=Ms.name,jr=isEmptyObject(Lr)}}else bt([nr],!0),Fr=(await validateField(xr,lt.disabled,ot,yt,et.shouldUseNativeValidation))[nr],bt([nr]),_r(Ir),yr&&(Fr?jr=!1:dt.isValid&&(jr=await Vt(nt,!0)));yr&&(xr._f.deps&&Bt(xr._f.deps),It(nr,jr,Fr,An))}},Ut=(qt,er)=>{if(get$1(rt.errors,er)&&qt.focus)return qt.focus(),1},Bt=async(qt,er={})=>{let nr,yr;const xr=convertToArrayPayload(qt);if(et.resolver){const dr=await Dt(isUndefined(qt)?qt:xr);nr=isEmptyObject(dr),yr=qt?!xr.some(_r=>get$1(dr,_r)):nr}else qt?(yr=(await Promise.all(xr.map(async dr=>{const _r=get$1(nt,dr);return await Vt(_r&&_r._f?{[dr]:_r}:_r)}))).every(Boolean),!(!yr&&!rt.isValid)&&Et()):yr=nr=await Vt(nt);return ht.state.next({...!isString$1(qt)||dt.isValid&&nr!==rt.isValid?{}:{name:qt},...et.resolver||!qt?{isValid:nr}:{},errors:rt.errors}),er.shouldFocus&&!yr&&iterateFieldsByAction(nt,Ut,qt?xr:lt.mount),yr},Yt=qt=>{const er={...at.mount?ot:st};return isUndefined(qt)?er:isString$1(qt)?get$1(er,qt):qt.map(nr=>get$1(er,nr))},Zt=(qt,er)=>({invalid:!!get$1((er||rt).errors,qt),isDirty:!!get$1((er||rt).dirtyFields,qt),error:get$1((er||rt).errors,qt),isValidating:!!get$1(rt.validatingFields,qt),isTouched:!!get$1((er||rt).touchedFields,qt)}),Xt=qt=>{qt&&convertToArrayPayload(qt).forEach(er=>unset(rt.errors,er)),ht.state.next({errors:qt?rt.errors:{}})},rr=(qt,er,nr)=>{const yr=(get$1(nt,qt,{_f:{}})._f||{}).ref,xr=get$1(rt.errors,qt)||{},{ref:dr,message:_r,type:Fr,...jr}=xr;set(rt.errors,qt,{...jr,...er,ref:yr}),ht.state.next({name:qt,errors:rt.errors,isValid:!1}),nr&&nr.shouldFocus&&yr&&yr.focus&&yr.focus()},cr=(qt,er)=>isFunction(qt)?ht.values.subscribe({next:nr=>qt(Nt(void 0,er),nr)}):Nt(qt,er,!0),ur=(qt,er={})=>{for(const nr of qt?convertToArrayPayload(qt):lt.mount)lt.mount.delete(nr),lt.array.delete(nr),er.keepValue||(unset(nt,nr),unset(ot,nr)),!er.keepError&&unset(rt.errors,nr),!er.keepDirty&&unset(rt.dirtyFields,nr),!er.keepTouched&&unset(rt.touchedFields,nr),!er.keepIsValidating&&unset(rt.validatingFields,nr),!et.shouldUnregister&&!er.keepDefaultValue&&unset(st,nr);ht.values.next({values:{...ot}}),ht.state.next({...rt,...er.keepDirty?{isDirty:Ht()}:{}}),!er.keepIsValid&&Et()},mr=({disabled:qt,name:er,field:nr,fields:yr})=>{(isBoolean$1(qt)&&at.mount||qt||lt.disabled.has(er))&&(qt?lt.disabled.add(er):lt.disabled.delete(er),Pt(er,getFieldValue(nr?nr._f:get$1(yr,er)._f),!1,!1,!0))},vr=(qt,er={})=>{let nr=get$1(nt,qt);const yr=isBoolean$1(er.disabled)||isBoolean$1(et.disabled);return set(nt,qt,{...nr||{},_f:{...nr&&nr._f?nr._f:{ref:{name:qt}},name:qt,mount:!0,...er}}),lt.mount.add(qt),nr?mr({field:nr,disabled:isBoolean$1(er.disabled)?er.disabled:et.disabled,name:qt}):Ct(qt,!0,er.value),{...yr?{disabled:er.disabled||et.disabled}:{},...et.progressive?{required:!!er.required,min:getRuleValue(er.min),max:getRuleValue(er.max),minLength:getRuleValue(er.minLength),maxLength:getRuleValue(er.maxLength),pattern:getRuleValue(er.pattern)}:{},name:qt,onChange:Ot,onBlur:Ot,ref:xr=>{if(xr){vr(qt,er),nr=get$1(nt,qt);const dr=isUndefined(xr.value)&&xr.querySelectorAll&&xr.querySelectorAll("input,select,textarea")[0]||xr,_r=isRadioOrCheckbox(dr),Fr=nr._f.refs||[];if(_r?Fr.find(jr=>jr===dr):dr===nr._f.ref)return;set(nt,qt,{_f:{...nr._f,..._r?{refs:[...Fr.filter(live),dr,...Array.isArray(get$1(st,qt))?[{}]:[]],ref:{type:dr.type,name:qt}}:{ref:dr}}}),Ct(qt,!1,void 0,dr)}else nr=get$1(nt,qt,{}),nr._f&&(nr._f.mount=!1),(et.shouldUnregister||er.shouldUnregister)&&!(isNameInFieldArray(lt.array,qt)&&at.action)&<.unMount.add(qt)}}},Er=()=>et.shouldFocusError&&iterateFieldsByAction(nt,Ut,lt.mount),br=qt=>{isBoolean$1(qt)&&(ht.state.next({disabled:qt}),iterateFieldsByAction(nt,(er,nr)=>{const yr=get$1(nt,nr);yr&&(er.disabled=yr._f.disabled||qt,Array.isArray(yr._f.refs)&&yr._f.refs.forEach(xr=>{xr.disabled=yr._f.disabled||qt}))},0,!1))},hr=(qt,er)=>async nr=>{let yr;nr&&(nr.preventDefault&&nr.preventDefault(),nr.persist&&nr.persist());let xr=cloneObject(ot);if(lt.disabled.size)for(const dr of lt.disabled)set(xr,dr,void 0);if(ht.state.next({isSubmitting:!0}),et.resolver){const{errors:dr,values:_r}=await jt();rt.errors=dr,xr=_r}else await Vt(nt);if(unset(rt.errors,"root"),isEmptyObject(rt.errors)){ht.state.next({errors:{}});try{await qt(xr,nr)}catch(dr){yr=dr}}else er&&await er({...rt.errors},nr),Er(),setTimeout(Er);if(ht.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject(rt.errors)&&!yr,submitCount:rt.submitCount+1,errors:rt.errors}),yr)throw yr},Ar=(qt,er={})=>{get$1(nt,qt)&&(isUndefined(er.defaultValue)?Gt(qt,cloneObject(get$1(st,qt))):(Gt(qt,er.defaultValue),set(st,qt,cloneObject(er.defaultValue))),er.keepTouched||unset(rt.touchedFields,qt),er.keepDirty||(unset(rt.dirtyFields,qt),rt.isDirty=er.defaultValue?Ht(qt,cloneObject(get$1(st,qt))):Ht()),er.keepError||(unset(rt.errors,qt),dt.isValid&&Et()),ht.state.next({...rt}))},Cr=(qt,er={})=>{const nr=qt?cloneObject(qt):st,yr=cloneObject(nr),xr=isEmptyObject(qt),dr=xr?st:yr;if(er.keepDefaultValues||(st=nr),!er.keepValues){if(er.keepDirtyValues){const _r=new Set([...lt.mount,...Object.keys(getDirtyFields(st,ot))]);for(const Fr of Array.from(_r))get$1(rt.dirtyFields,Fr)?set(dr,Fr,get$1(ot,Fr)):Gt(Fr,get$1(dr,Fr))}else{if(isWeb&&isUndefined(qt))for(const _r of lt.mount){const Fr=get$1(nt,_r);if(Fr&&Fr._f){const jr=Array.isArray(Fr._f.refs)?Fr._f.refs[0]:Fr._f.ref;if(isHTMLElement(jr)){const Ir=jr.closest("form");if(Ir){Ir.reset();break}}}}nt={}}ot=et.shouldUnregister?er.keepDefaultValues?cloneObject(st):{}:cloneObject(dr),ht.array.next({values:{...dr}}),ht.values.next({values:{...dr}})}lt={mount:er.keepDirtyValues?lt.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},at.mount=!dt.isValid||!!er.keepIsValid||!!er.keepDirtyValues,at.watch=!!et.shouldUnregister,ht.state.next({submitCount:er.keepSubmitCount?rt.submitCount:0,isDirty:xr?!1:er.keepDirty?rt.isDirty:!!(er.keepDefaultValues&&!deepEqual(qt,st)),isSubmitted:er.keepIsSubmitted?rt.isSubmitted:!1,dirtyFields:xr?{}:er.keepDirtyValues?er.keepDefaultValues&&ot?getDirtyFields(st,ot):rt.dirtyFields:er.keepDefaultValues&&qt?getDirtyFields(st,qt):er.keepDirty?rt.dirtyFields:{},touchedFields:er.keepTouched?rt.touchedFields:{},errors:er.keepErrors?rt.errors:{},isSubmitSuccessful:er.keepIsSubmitSuccessful?rt.isSubmitSuccessful:!1,isSubmitting:!1})},Ur=(qt,er)=>Cr(isFunction(qt)?qt(ot):qt,er);return{control:{register:vr,unregister:ur,getFieldState:Zt,handleSubmit:hr,setError:rr,_executeSchema:jt,_getWatch:Nt,_getDirty:Ht,_updateValid:Et,_removeUnmounted:Ft,_updateFieldArray:St,_updateDisabledField:mr,_getFieldArray:Lt,_reset:Cr,_resetDefaultValues:()=>isFunction(et.defaultValues)&&et.defaultValues().then(qt=>{Ur(qt,et.resetOptions),ht.state.next({isLoading:!1})}),_updateFormState:qt=>{rt={...rt,...qt}},_disableForm:br,_subjects:ht,_proxyFormState:dt,_setErrors:Rt,get _fields(){return nt},get _formValues(){return ot},get _state(){return at},set _state(qt){at=qt},get _defaultValues(){return st},get _names(){return lt},set _names(qt){lt=qt},get _formState(){return rt},set _formState(qt){rt=qt},get _options(){return et},set _options(qt){et={...et,...qt}}},trigger:Bt,register:vr,handleSubmit:hr,watch:cr,setValue:Gt,getValues:Yt,reset:Ur,resetField:Ar,clearErrors:Xt,unregister:ur,setError:rr,setFocus:(qt,er={})=>{const nr=get$1(nt,qt),yr=nr&&nr._f;if(yr){const xr=yr.refs?yr.refs[0]:yr.ref;xr.focus&&(xr.focus(),er.shouldSelect&&isFunction(xr.select)&&xr.select())}},getFieldState:Zt}}function useForm(tt={}){const et=React$4.useRef(void 0),rt=React$4.useRef(void 0),[nt,st]=React$4.useState({isDirty:!1,isValidating:!1,isLoading:isFunction(tt.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:tt.errors||{},disabled:tt.disabled||!1,defaultValues:isFunction(tt.defaultValues)?void 0:tt.defaultValues});et.current||(et.current={...createFormControl(tt),formState:nt});const ot=et.current.control;return ot._options=tt,useSubscribe({subject:ot._subjects.state,next:at=>{shouldRenderFormState(at,ot._proxyFormState,ot._updateFormState,!0)&&st({...ot._formState})}}),React$4.useEffect(()=>ot._disableForm(tt.disabled),[ot,tt.disabled]),React$4.useEffect(()=>{if(ot._proxyFormState.isDirty){const at=ot._getDirty();at!==nt.isDirty&&ot._subjects.state.next({isDirty:at})}},[ot,nt.isDirty]),React$4.useEffect(()=>{tt.values&&!deepEqual(tt.values,rt.current)?(ot._reset(tt.values,ot._options.resetOptions),rt.current=tt.values,st(at=>({...at}))):ot._resetDefaultValues()},[tt.values,ot]),React$4.useEffect(()=>{tt.errors&&ot._setErrors(tt.errors)},[tt.errors,ot]),React$4.useEffect(()=>{ot._state.mount||(ot._updateValid(),ot._state.mount=!0),ot._state.watch&&(ot._state.watch=!1,ot._subjects.state.next({...ot._formState})),ot._removeUnmounted()}),React$4.useEffect(()=>{tt.shouldUnregister&&ot._subjects.values.next({values:ot._getWatch()})},[tt.shouldUnregister,ot]),et.current.formState=getProxyFormState(nt,ot),et.current}const useActivitiesOptions=()=>{const{t:tt}=useTranslation();return[{value:"bpr.activityType.classroomActivity",label:tt("bpr.activityType.classroomActivity")},{value:"bpr.activityType.groupActivity",label:tt("bpr.activityType.groupActivity")},{value:"bpr.activityType.personalActivity",label:tt("bpr.activityType.personalActivity")},{value:"bpr.activityType.homework",label:tt("bpr.activityType.homework")},{value:"bpr.activityType.exercize",label:tt("bpr.activityType.exercize")},{value:"bpr.activityType.learningPath",label:tt("bpr.activityType.learningPath")},{value:"bpr.activityType.courseElement",label:tt("bpr.activityType.courseElement")},{value:"bpr.other",label:tt("bpr.other")}]},ActivitiesDropdown=({control:tt,selectedActivities:et,selectActivities:rt})=>{const nt=useActivitiesOptions(),{t:st}=useTranslation();return jsxRuntimeExports.jsx("div",{className:"col d-flex",children:jsxRuntimeExports.jsx(Controller,{name:"activityType",control:tt,rules:{required:!0},render:({field:{onChange:ot}})=>jsxRuntimeExports.jsxs(Dropdown,{block:!0,overflow:!0,children:[jsxRuntimeExports.jsx(Dropdown.Trigger,{size:"md",label:st("bpr.form.publication.type"),badgeContent:et==null?void 0:et.length}),jsxRuntimeExports.jsx(Dropdown.Menu,{children:nt.map((at,lt)=>jsxRuntimeExports.jsx(Dropdown.CheckboxItem,{value:at.value,model:et,onChange:()=>{rt(at.value),ot(at.value)},children:at.label},lt))})]})})})},ageOptions=["3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"],AgeSelect=({name:tt,control:et,placeholderOption:rt,validate:nt})=>jsxRuntimeExports.jsx(Controller,{name:tt,control:et,rules:{required:!0,validate:nt},render:({field:{onChange:st}})=>jsxRuntimeExports.jsx(Select,{block:!0,size:"md",onValueChange:st,options:ageOptions,"aria-required":!0,placeholderOption:rt})}),useLanguageOptions=()=>{const{t:tt}=useTranslation();return[{value:"de_DE",label:tt("de_DE")},{value:"en_EN",label:tt("en_EN")},{value:"ar_DZ",label:tt("ar_DZ")},{value:"es_ES",label:tt("es_ES")},{value:"fr_FR",label:tt("fr_FR")},{value:"it_IT",label:tt("it_IT")},{value:"ja_JP",label:tt("ja_JP")},{value:"zh_CN",label:tt("zh_CN")},{value:"pt_PT",label:tt("pt_PT")},{value:"ru_RU",label:tt("ru_RU")},{value:"bpr.other",label:tt("bpr.other")}]},defaultSelectLanguageOption="bpr.form.publication.language",LangSelect=({control:tt})=>{const et=useLanguageOptions();return jsxRuntimeExports.jsx("div",{className:"col",children:jsxRuntimeExports.jsx(Controller,{name:"language",control:tt,rules:{required:!0},render:({field:{onChange:rt}})=>jsxRuntimeExports.jsx(Select,{block:!0,size:"md",onValueChange:rt,options:et,"aria-required":!0,placeholderOption:defaultSelectLanguageOption})})})},creativeCommons="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAAAYCAYAAACsnTAAAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAubSURBVHgB7Vh3UNVnFj2P/kAQURGNsa2GKKIOCjGzIEUhqElsY40m9lgiGksmWUfjTNZel8ggblSIxjUxujbEiiiwoiiixoqVJtKkCQg82O9c9r0AeaiTP3ZmZ3NnmAHed9/v+84999zz/TRvvvnmlo6dO04xMTExw/95VLyoyEm6lDRW4+XjpZszP8gE/4XQ6XQoeFYAXbVO/m7atCksLS1fK7eqqgqFhYXyHaYmprCzs4O5hflr5VZUVKCosAjVNdUw0ZjArqkdLCwsjO7voxHjtpsphpigpgbQaIwuys3JxS/J13H9+i/qQM/k/81bNEdXl27o5dZLftcYya0bZWVluJ58DSeOnUBxYTHMzMxlg9bWWri/4wHfAb6wtLJsNPda8lVEHY5C6fMymJubyyFtmlgjcHAg3Pr0hoWlhdHc8vJynI8/j7iYWJSXlssZK6sqpBg+/X3k2XVzeY7q6moTMw00RgEpLi7GrohduBCfoDZTClNTU3To0EEqdvvmbcSqB9k3s4enjxfGfDTGKPKyMXWoiL+Hq4Ndw7Rp0zBgwAA0a9YMz58/R0JCAtavX4/LiZcQtGAubO1s6+WWqD2EBociMz0T8+bNg4eHhzCkqKgIZ8+exYYNGxB7NhYzg2ahSZMm9XLJqg2r1uNZ3jMsWrQI7u7usLW1RUFBAY4fP46wsDBcTbqK6Z99qopkZgCFYVJj5CCpjx5j9TerEBt9Dp5/9sShQ4cEpHv37uHRo0dyoH379sG1uyuO/PMwVny9XOhpLMK/i0Budi4OHjyIFStWoHPnzti6dStatmyJhQsXIjExEVYWVli/cp0CsNyQR4YQEF2lDjExMbK2X79+yMrKgpubG5YsWSK5leWVCAvZgsrKSkMuW/Tb9cFwsHfAjRs3MH/+fHh6eqJHjx7w8fHBypUrER0djccPH2NrSJgwr26YoAFJnpeUIGRTCDLSMrBlyxYcOHAAH3zwAbRarWGNlZUVhg8fjmPHjmHVqlXIzMjExjUbUKiqUDcSExJx6UIiQkJC8O6778r/0tPTcebMGQGY0bZtW+zatQu6Kp2wTx8xp84oBl3G4sWL0aZNG2nlU6dOYe7cuYiKikJOTo4AvGPHDuRk5SL+XLwhN/5cHFAN7N69W1jJ9X379kWnTp0EWD7f1dUVP/74I5IvJyPlTkoDUOpQpUZpS/h34cjLzcOaNWswefLkemA0DGtra3z++eey8ZS7KTh+9IThM7bZ8aPHMHToUKkSqUnqEgACQebcvn1b1vJwZALXcw9lpWWiBS1atMCcOXMwduxYqfaHH34oB1u+fDlu3rwpub169cJH48bhRNQJ6oGwLfpktKxv166dMGXKlCmyV7bvixcvMGbMGFy+fFlaaurUqTgeeaw+KHWJ8uDefanW4MGDBZBXCSiDWsKNe/fzxsF9B5CV+UT+Tx3KSM/AyJEjDWtJ/dDQUJw+fRo7d+6UVtQHaZ39NBs52Tl4pgSdwOzdu1d6v0Sxd/PmzTKpRo8eLXri5eVlyCVYZHhxUTGys7NhrbWWAzOCg4ORl5cne2Txtm3bJsCQYQxvb29kPckSDTKAoicKUT594rSIDpPZIlTvPXv2yN/ff/+9bI4MOHr0KJYuXSobZTtws+xxUjzubJzh+9gSZMHrBIXS3t5etKFCbZoMZtu8//77AiL1IzAwUJhJdvCwmZmZkss9c0xT96h3LCaZwfj4448xadIkAZ1B9pH9+oI4OjrKEFEe5VdQZByrHwLwWAkse00/ZUi76dOnq3F83QDCunXrMGHCBCQnJ4vmfPXVVyKKzs7OUEYQ9xXbKitqRc/UzBSpqamGh3EU8mCMrl27omPHjobPSktLZaqQeZaqIHQKBXU0qmfPnti4caOA4+DgIBOFgsu2416ojQRWq7WSFtQLL5/JXD3rWVjut1WrVvJ3fn6+nJXAMk9A1j9Ub6ycuzgLchQyiiwrRUF68OCBbMbFxUUqRWqnpaX9ZyNaUXAnJycUFBUoL1Ap8/+Ntm+IdgQEBMgzWrduLfSnQJO2BFIfnAZkJ30P6W1hZSEA9OnTR1jH0c2Jx5wnT57gk08+EfHmWOY0c3RyrDVl6rlFJUUy7rt06SJF+eKLL3D37l0MGzYMmzZtkvONUzrEOHfuHJo5NENT+6a/MkUQpGlRoFTrqgUx/vCQ/CGFGRQ40pvVJAXZMmwNAsGgqeKhXpTXUp/09fb1xk8//YRbt27hZZGRkSHa4R/oLwwhyN5+PiL2rCT/R7FlG3A8L1u2TD4jkwk6/Yd/YICs43M9+npg7dq1yM3Nhb+/P4KCgoTVLAQnD/PZTpyA1Dg/fz/J/Y1PMVOHamLXRASHleIoI8VPnjwpFZoxY4agTLQpdJwirMDMmTOFjmw/boKGjgAxvHz7oVOXP8nmySoGgSXT9GDy0F9++SUKiwoRMOg9A1Ce/TyhtdFiyJAhAhpbk3uYNWuWVJmspZ4RKIcWDnBzdzPkDhk+FCXPSzB79mwpIqcV2cXicB8U3ZSUFAGa+3Nz712vSKYdOrRf5tHXXZC6oaw8NYGL2XO9e/fG+fPnBRj9SKMjvXPnjrTW06dPpQqk6cOHD7F69Wq49OiOPu/0MTzgbZe3kaTGX/DfggUssovA8pAUUOpTxpMMzJgzE46tHA15ZuZm6K02Gxsbh3/8sBu1t5EamSo8IKcXXW6VrgrTZk8XM6gPtpBzN2ccPRKFiPAIKQTZb2NjI0By8rCgNrY2mDl3lkGU+f0/7/k5WaMoXjN73mxpIRqm0G9D5XAUMgYZwBHZvHlzg5WnMLHC+gsdRY3rORG+/uvX6ObqUg95jueLCRcReShSOdQqsfNyQVNa4ePvi/4B/cW+GwtWOl5NtDNqb3yOnW2tzTc1N4Vvfz+hvtbauJfKz8tHgvI79DCcTgSF4k0GvjcoEJ7envWuJ9zPmKGjwzU+fj41swgKasV28aK/ID83H3FxcSKqrxN0mqx4y1YtseSbpY2u4/dnqSpXVlDtTeHUprXh3vGqoL7Rx1QpUCmUTm2cDG36ylw1bulfmMubtVNrJ/mOhkGmjB4yKtyMc/3h/YcyPrl44tRJWLtyjThRili3bt1e+sCkpCQxejzw+InjhVlPs54K6i+LSsW2tNQ0/J5gy6SnpeP3BMFNfZxq9DP9SNYotGuInij8+LEYoCbA2egY7I7YLa1BpR40aJBYc65hEAAKFo0dL1ca5Ys//WyGaECEuibEqPz/1VCtHs4ZZLj90HMELZyLHr16qNcDt7AtbBuys7JlHFNM9eOZs//atWti29u1b4dJn07GW85vCRhbN4cJaHWDk4KiTcrSL1A/KMwcge3btxdz2BizWAyOeq7nd9CocXoxj1OQbdFYMM/X11d+56WQRfXz8xNv0vBmXCfC2VjL9H9xYXJSsjhN156uIkQEghtKOJ+Aixcv4tKlS8IS567OGDZyGMZPmiDKH6WUfteOnfWu8Pqg4aKv4NQis2gM2XLcICl75cqVxjYot3Hesukv6GiZS/2ipeeo379/f6O5vOzxMspJR0Dorw4fPixg1nXaDSL5NyrHS9W6lWsxcuwoBAwMEK/BHwZf+vCtmZWy0vooLChE5MEjOKJ+OJUaC7Zi9+7dBVD6HmoW/dD27dvxquA9hXceBl0sc+Lj42Usvyyod3ztwQshR/GCBQvEAY8aNUry9RrSMIxKPzf7g3rrFn3ytALEC93VfYg2mKNPpz7ja8kc9ZoyUY3ZhH9dMLymfFmw1SIjI2s1SLUNPcqz18hjcLrxBRFtAa8brD4vcjzwxIkTG83j3YgFYAuSNWw7ehbm8sqhv1A2jHqa0liwyvQWWnUl11VXoUy9K6VXaKgdjQU1ZeDAgQZ/QzPIDdIz1H19YCzILgafxxdFvKGPGDFCWoKu+mX5fJ/C1wrUFl4POP55J2Lb0t3SBBoJJbQaTanikRZ/hITSntB/Awop/YGn+Be4AAAAAElFTkSuQmCC",PublishModalFooter=()=>{const{t:tt}=useTranslation();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("ul",{className:"mb-12",children:[jsxRuntimeExports.jsxs("li",{children:[tt("bpr.form.publication.licence.text.1"),jsxRuntimeExports.jsx("img",{className:"ms-8 d-inline-block",src:creativeCommons,alt:"licence creative commons"})]}),jsxRuntimeExports.jsx("li",{children:tt("bpr.form.publication.licence.text.2")})]}),jsxRuntimeExports.jsx(Alert,{type:"info",className:"mb-12",children:tt("bpr.form.publication.licence.text.3")}),jsxRuntimeExports.jsx(Alert,{type:"warning",children:tt("bpr.form.publication.licence.text.4")})]})},useSubjectsOptions=()=>{const{t:tt}=useTranslation();return[{value:"bpr.subjectArea.artActivity",label:tt("bpr.subjectArea.artActivity")},{value:"bpr.subjectArea.readLearning",label:tt("bpr.subjectArea.readLearning")},{value:"bpr.subjectArea.chemistry",label:tt("bpr.subjectArea.chemistry")},{value:"bpr.subjectArea.law",label:tt("bpr.subjectArea.law")},{value:"bpr.subjectArea.worldDiscovery",label:tt("bpr.subjectArea.worldDiscovery")},{value:"bpr.subjectArea.economy",label:tt("bpr.subjectArea.economy")},{value:"bpr.subjectArea.mediaEducation",label:tt("bpr.subjectArea.mediaEducation")},{value:"bpr.subjectArea.musicEducation",label:tt("bpr.subjectArea.musicEducation")},{value:"bpr.subjectArea.sportEducation",label:tt("bpr.subjectArea.sportEducation")},{value:"bpr.subjectArea.citizenshipEducation",label:tt("bpr.subjectArea.citizenshipEducation")},{value:"bpr.subjectArea.geography",label:tt("bpr.subjectArea.geography")},{value:"bpr.subjectArea.history",label:tt("bpr.subjectArea.history")},{value:"bpr.subjectArea.artHistory",label:tt("bpr.subjectArea.artHistory")},{value:"bpr.subjectArea.ComputerScience",label:tt("bpr.subjectArea.ComputerScience")},{value:"bpr.subjectArea.languages",label:tt("bpr.subjectArea.languages")},{value:"bpr.subjectArea.italian",label:tt("bpr.subjectArea.italian")},{value:"bpr.subjectArea.spanish",label:tt("bpr.subjectArea.spanish")},{value:"bpr.subjectArea.french",label:tt("bpr.subjectArea.french")},{value:"bpr.subjectArea.german",label:tt("bpr.subjectArea.german")},{value:"bpr.subjectArea.english",label:tt("bpr.subjectArea.english")},{value:"bpr.subjectArea.ancientLanguages",label:tt("bpr.subjectArea.ancientLanguages")},{value:"bpr.subjectArea.literature",label:tt("bpr.subjectArea.literature")},{value:"bpr.subjectArea.mathematics",label:tt("bpr.subjectArea.mathematics")},{value:"bpr.subjectArea.vocationalGuidance",label:tt("bpr.subjectArea.vocationalGuidance")},{value:"bpr.subjectArea.philosohppy",label:tt("bpr.subjectArea.philosohppy")},{value:"bpr.subjectArea.physics",label:tt("bpr.subjectArea.physics")},{value:"bpr.subjectArea.politicalSscience",label:tt("bpr.subjectArea.politicalSscience")},{value:"bpr.subjectArea.sociology",label:tt("bpr.subjectArea.sociology")},{value:"bpr.subjectArea.biology",label:tt("bpr.subjectArea.biology")},{value:"bpr.subjectArea.geology",label:tt("bpr.subjectArea.geology")},{value:"bpr.subjectArea.technology",label:tt("bpr.subjectArea.technology")},{value:"bpr.subjectArea.Arabic",label:tt("bpr.subjectArea.Arabic")},{value:"bpr.subjectArea.Chinese",label:tt("bpr.subjectArea.Chinese")},{value:"bpr.subjectArea.NaturalSciences",label:tt("bpr.subjectArea.NaturalSciences")},{value:"bpr.subjectArea.SocioEmotionalEducation",label:tt("bpr.subjectArea.SocioEmotionalEducation")},{value:"bpr.other",label:tt("bpr.other")}]},SubjectsDropdown=({control:tt,selectedSubjectAreas:et,selectSubjects:rt})=>{const nt=useSubjectsOptions(),{t:st}=useTranslation();return jsxRuntimeExports.jsx("div",{className:"col d-flex",children:jsxRuntimeExports.jsx(Controller,{name:"subjectArea",control:tt,rules:{required:!0},render:({field:{onChange:ot}})=>jsxRuntimeExports.jsxs(Dropdown,{block:!0,overflow:!0,children:[jsxRuntimeExports.jsx(Dropdown.Trigger,{size:"md",label:st("bpr.form.publication.discipline"),badgeContent:et==null?void 0:et.length}),jsxRuntimeExports.jsx(Dropdown.Menu,{children:nt.map((at,lt)=>jsxRuntimeExports.jsx(Dropdown.CheckboxItem,{value:at.value,model:et,onChange:()=>{rt(at.value),ot(at.value)},children:at.label},lt))})]})})})};function ToastError({formData:tt,errorMessage:et}){const{t:rt}=useTranslation(),nt=st=>st==null?void 0:st.match(/^\s/);return et==="CONTENT_TOO_LARGE"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h3",{className:"pt-24",children:rt("bpr.form.publication.response.error.title")}),jsxRuntimeExports.jsx("p",{className:"pt-24 pb-24",children:jsxRuntimeExports.jsx("strong",{children:rt("bpr.form.publication.response.error.content_too_large")})})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h3",{className:"pt-24",children:rt("bpr.form.publication.response.error.title")}),jsxRuntimeExports.jsx("p",{className:"pt-24 pb-24",children:jsxRuntimeExports.jsx("strong",{children:rt("bpr.form.publication.response.error.content")})}),jsxRuntimeExports.jsxs("ul",{children:[nt(tt==null?void 0:tt.title)&&jsxRuntimeExports.jsx("li",{className:"pt-2 pb-2",children:jsxRuntimeExports.jsx("strong",{children:rt("bpr.form.publication.response.empty.title")})}),nt(tt==null?void 0:tt.description)&&jsxRuntimeExports.jsx("li",{className:"pt-2 pb-2",children:jsxRuntimeExports.jsx("strong",{children:rt("bpr.form.publication.response.empty.description")})})]})]})}function ToastSuccess({result:tt}){const{t:et}=useTranslation();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h3",{className:"pt-24",children:et("bpr.form.publication.response.success.title")}),jsxRuntimeExports.jsx("p",{className:"pt-24",children:et("bpr.form.publication.response.success.content.1")}),jsxRuntimeExports.jsx("p",{className:"pt-24",children:et("bpr.form.publication.response.success.content.2")}),tt.details.front_url&&jsxRuntimeExports.jsx("p",{className:"pt-24 pb-24",children:jsxRuntimeExports.jsx("a",{className:"button right-magnet",href:tt.details.front_url,target:"_blank",rel:"noreferrer",children:et("bpr.form.publication.response.success.button")})})]})}function usePublishModal({onSuccess:tt,resource:et}){const{user:rt,appCode:nt}=useEdificeClient(),st=useToast(),[ot,at]=reactExports.useState((et==null?void 0:et.thumbnail)||"");reactExports.useEffect(()=>{at(et==null?void 0:et.thumbnail)},[et]);const{control:lt,register:ut,watch:ct,setValue:dt,handleSubmit:ht,formState:{errors:ft,isSubmitting:xt,isDirty:yt,isValid:vt}}=useForm({mode:"onChange"}),[Et,bt]=reactExports.useState([]),[St,wt]=reactExports.useState([]),Rt=(Ct,Pt,It)=>{let jt=[...Pt];const Dt=jt.findIndex(Vt=>Vt===Ct);Pt.includes(Ct)?jt=Pt.filter((Vt,Ft)=>Ft!==Dt):jt=[...Pt,Ct],It(jt)};return{control:lt,cover:ot,formState:{errors:ft,isSubmitting:xt,isDirty:yt,isValid:vt},handleDeleteImage:()=>at(""),handlePublish:async Ct=>{const Pt=rt?rt==null?void 0:rt.userId:"";try{let It=new Blob;typeof ot=="string"?It=await odeServices.http().get(ot,{responseType:"blob"}):ot?It=await odeServices.http().get(URL.createObjectURL(ot),{responseType:"blob"}):et!=null&&et.thumbnail&&(It=await odeServices.http().get(et==null?void 0:et.thumbnail,{responseType:"blob"}));const jt=await odeServices.http().get(`/userbook/avatar/${Pt}?thumbnail=48x48`,{responseType:"blob"}),Dt=await odeServices.http().get(`/directory/user/${Pt}/attachment-school`,{responseType:"json"}),Vt=e$3[nt],Ft={activityType:Et,age:[Ct.ageMin,Ct.ageMax],application:Vt,cover:It,description:Ct.description,keyWords:Ct.keyWords,language:Ct.language,licence:"CC-BY",resourceId:et==null?void 0:et.assetId,resourceEntId:et==null?void 0:et.assetId,subjectArea:St,teacherAvatar:jt,title:Ct.title,userId:Pt,userStructureName:Dt.name||(rt==null?void 0:rt.structureNames[0])},Ht=await odeServices.resource(nt).publish(Ft);Ht.success?st.success(jsxRuntimeExports.jsx(ToastSuccess,{result:Ht}),{duration:1e4}):Ht.message==="CONTENT_TOO_LARGE"?st.error(jsxRuntimeExports.jsx(ToastError,{errorMessage:Ht.message})):st.error(jsxRuntimeExports.jsx(ToastError,{formData:Ct})),tt==null||tt()}catch(It){console.error(It),st.error(jsxRuntimeExports.jsx(ToastError,{formData:Ct}))}},handleSubmit:ht,handleUploadImage:Ct=>at(Ct),register:ut,selectActivities:Ct=>{Rt(Ct,Et,bt)},selectedActivities:Et,selectedSubjectAreas:St,selectSubjects:Ct=>{Rt(Ct,St,wt)},setValue:dt,watch:ct}}const SvgIconDelete=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.96.96 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675m7.357.675v.954h3.818a.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.909h3.818v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864m-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955m4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0",clipRule:"evenodd"})]}),SvgIconEdit=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.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.121",clipRule:"evenodd"}),jsxRuntimeExports.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.879m-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-.465z",clipRule:"evenodd"})]}),ImagePicker=({addButtonLabel:tt="Add image",deleteButtonLabel:et="Delete image",src:rt,className:nt,mediaLibraryRef:st,libraryMedia:ot,app:at,onUploadImage:lt,onDeleteImage:ut})=>{const[ct,dt]=reactExports.useState(rt||"");reactExports.useEffect(()=>{ot&&(dt(ot),lt(ot))},[ot]);const ht=()=>{var yt;(yt=st.current)==null||yt.show("image")},ft=()=>{dt(""),ut()},xt=clsx("image-input",nt);return jsxRuntimeExports.jsxs("div",{id:"image-input",className:xt,children:[jsxRuntimeExports.jsxs("div",{className:"image-input-actions gap-8",children:[jsxRuntimeExports.jsx(IconButton,{"aria-label":tt,color:"tertiary",icon:jsxRuntimeExports.jsx(SvgIconEdit,{}),onClick:ht,type:"button",variant:"ghost"}),jsxRuntimeExports.jsx(IconButton,{"aria-label":et,color:"danger",disabled:!ct,icon:jsxRuntimeExports.jsx(SvgIconDelete,{}),onClick:ft,type:"button",variant:"ghost"})]}),ct?jsxRuntimeExports.jsx(Avatar,{alt:"",src:ct,size:"xl"}):jsxRuntimeExports.jsx(AppIcon,{app:at,iconFit:"ratio",size:"160",variant:"rounded"})]})},useResource=(tt,et)=>{const[rt,nt]=reactExports.useState(null);return reactExports.useEffect(()=>{if(et===""){console.warn("resourceId must be an assetId and not an empty string");return}(async()=>{try{const st=await odeServices.resource(tt).searchResource({application:tt,id:et});nt(st)}catch(st){console.error(st)}})()},[]),rt},SvgIconApplications=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1 3c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2zm8 0H3v6h6zm4 0c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2zm8 0h-6v6h6zm-8 12c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2zm8 0h-6v6h6zM1 15c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2zm8 0H3v6h6z",clipRule:"evenodd"})]}),SvgIconCode=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M17.327 5.76a1 1 0 0 1 1.413.067l5 5.5a1 1 0 0 1 0 1.346l-5 5.5a1 1 0 1 1-1.48-1.346L21.648 12 17.26 7.173a1 1 0 0 1 .067-1.413M6.673 5.76a1 1 0 0 1 .067 1.413L2.35 12l4.389 4.827a1 1 0 0 1-1.48 1.346l-5-5.5a1 1 0 0 1 0-1.346l5-5.5a1 1 0 0 1 1.413-.067M8.979 21.609a1 1 0 0 1-.658-1.252l5.375-17.29a1 1 0 1 1 1.91.594L10.23 20.95a1 1 0 0 1-1.251.658",clipRule:"evenodd"})]}),SvgIconGlobe=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.01 9.01 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71m4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.01 9.01 0 0 0-6.67-7.71m.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13M7.05 13H3.055a9.01 9.01 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13m7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.01 9.01 0 0 1-6.67 7.71M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11",clipRule:"evenodd"})]}),SvgIconMic=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 .5a4.07 4.07 0 0 0-2.812 1.115A3.8 3.8 0 0 0 8 4.364V12a3.8 3.8 0 0 0 1.188 2.748A4.07 4.07 0 0 0 12 15.864a4.07 4.07 0 0 0 2.812-1.116A3.8 3.8 0 0 0 16 12V4.364a3.8 3.8 0 0 0-1.188-2.749A4.07 4.07 0 0 0 12 .5m-1.43 2.562A2.07 2.07 0 0 1 12 2.5c.545 0 1.059.207 1.43.562.371.354.57.823.57 1.302V12a1.8 1.8 0 0 1-.57 1.302 2.07 2.07 0 0 1-1.43.562 2.07 2.07 0 0 1-1.43-.562A1.8 1.8 0 0 1 10 12V4.364a1.8 1.8 0 0 1 .57-1.302M6 10.091a1 1 0 0 0-2 0V12c0 2.053.855 4.011 2.36 5.448A8.13 8.13 0 0 0 11 19.622V21.5H8a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2h-3v-1.878a8.13 8.13 0 0 0 4.64-2.174C19.145 16.011 20 14.053 20 12v-1.91a1 1 0 0 0-2 0V12c0 1.491-.62 2.932-1.74 4.001s-2.646 1.678-4.248 1.68h-.024c-1.602-.002-3.128-.611-4.247-1.68C6.62 14.931 6 13.491 6 12z",clipRule:"evenodd"})]}),SvgIconRecordVideo=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h13a2 2 0 0 0 2-2v-1.936l4.409 1.365A2 2 0 0 0 24 15.519V8.48a2 2 0 0 0-2.591-1.91l-4.41 1.364V6a2 2 0 0 0-2-2zm0 2h13v12H2zm15 7.97V10.03l5-1.548v7.037z",clipRule:"evenodd"})]}),SvgIconSmartphone=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zM4 4a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 18a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1",clipRule:"evenodd"})]}),MediaLibraryContext=reactExports.createContext(null);function useMediaLibraryContext(){const tt=reactExports.useContext(MediaLibraryContext);if(!tt)throw new Error("Innertabs compound components cannot be rendered outside the MediaLibrary component");return tt}const SvgIconPause=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.5 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 2h3v16h-3zm10-2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 2h3v16h-3z",clipRule:"evenodd"})]}),SvgIconRecord=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("circle",{cx:12,cy:12,r:11,fill:"currentColor"})]}),AudioRecorderTimer=({recordState:tt,playState:et,recordTime:rt,audioTime:nt,maxDuration:st})=>jsxRuntimeExports.jsxs("div",{className:"audio-recorder-time my-16 mx-auto",children:[et==="IDLE"&&jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center",children:[tt==="PAUSED"?jsxRuntimeExports.jsx(SvgIconPause,{width:12,height:12,className:"me-8 text-danger"}):jsxRuntimeExports.jsx(SvgIconRecord,{width:12,height:12,className:"me-8 text-danger"}),n$2(tt!=="IDLE"?rt:0)+" / "+n$2(st)]}),et!=="IDLE"&&jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center mx-auto",children:[jsxRuntimeExports.jsx(SvgIconMic,{width:12,height:12,className:"me-8"}),n$2(nt*1e3)," /",n$2(rt)]})]}),SvgIconPlayFilled=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M5 3.804c0-1.57 1.728-2.528 3.06-1.696l13.113 8.196a2 2 0 0 1 0 3.392L8.06 21.892C6.728 22.724 5 21.767 5 20.196z"})]}),SvgIconRecordPause=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11M10 6H8a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1m4 0h2a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1",clipRule:"evenodd"})]}),SvgIconRefresh=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("g",{clipPath:"url(#icon-refresh_svg__a)",children:jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.304 21c3.015 0 5.65-1.924 6.838-4.752a.986.986 0 0 1 1.297-.53c.503.216.738.803.524 1.311C19.498 20.522 16.19 23 12.304 23c-4.644 0-8.444-3.522-9.299-8.113L1.86 17.142a.99.99 0 0 1-1.33.449 1 1 0 0 1-.417-1.348L2.51 11.52c.135-.265.376-.457.66-.527a.96.96 0 0 1 .812.169L8.1 14.297c.433.33.515.958.185 1.404a.98.98 0 0 1-1.382.212L4.93 14.41c.65 3.785 3.744 6.59 7.374 6.59m4.794-12.913a.98.98 0 0 0-1.381.211 1.01 1.01 0 0 0 .184 1.405l4.117 3.135a.96.96 0 0 0 .812.169c.284-.07.525-.262.66-.527l2.398-4.723c.252-.496.065-1.1-.418-1.348a.99.99 0 0 0-1.329.449l-1.145 2.255C20.14 4.522 16.34 1 11.696 1 7.81 1 4.505 3.478 3.037 6.97a1.004 1.004 0 0 0 .525 1.312.986.986 0 0 0 1.297-.53C6.046 4.924 8.681 3 11.697 3c3.63 0 6.724 2.805 7.374 6.59z",clipRule:"evenodd"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"icon-refresh_svg__a",children:jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),SvgIconRestart=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M17.919 3.15c1.33-.856 3.081.1 3.081 1.682v14.336c0 1.583-1.75 2.538-3.081 1.683L7 13.83V19a2 2 0 1 1-4 0V5a2 2 0 1 1 4 0v5.168z"})]}),SvgIconSave=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.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-1V4zm2-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 2zm1 12v6h8v-6z",clipRule:"evenodd"})]});function useAudioRecorder(tt,et,rt=!1,nt="protected",st="media-library"){var ot;function at(Xt,rr){return{...Xt,...rr.updatedState}}const[{recordState:lt,playState:ut,micStream:ct,micStreamAudioSourceNode:dt,audioWorkletNode:ht,audioContext:ft,encoderWorker:xt,maxDuration:yt,recordTime:vt,isEncoding:Et},bt]=reactExports.useReducer(at,{recordState:"IDLE",isEncoding:!1,playState:"IDLE",recordTime:0,maxDuration:180}),St=reactExports.useRef(null),wt=reactExports.useRef(null),Rt=reactExports.useRef(),Ct=reactExports.useRef(),{t:Pt}=useTranslation(),{create:It}=useWorkspaceFile(),jt=128,Dt=48e3;reactExports.useEffect(()=>{const Xt=new Worker("/infra/public/js/audioEncoder.js");return bt({type:"update",updatedState:{encoderWorker:Xt}}),Xt.postMessage(["init",(ft==null?void 0:ft.sampleRate)||Dt]),()=>{Ft(),Xt.terminate()}},[]);const Vt=Xt=>{var rr,cr;const ur=Xt.data.inputs[0][0];let mr=Xt.data.inputs[0][1];(!mr||mr.filter(vr=>vr!==void 0).length===0)&&(mr=ur),(rr=Rt.current)==null||rr.push(ur),(cr=Ct.current)==null||cr.push(mr)},Ft=reactExports.useCallback(()=>{ct==null||ct.getTracks().forEach(Xt=>Xt.stop()),dt==null||dt.disconnect(),ht==null||ht.port.removeEventListener("message",Vt),ht==null||ht.port.close(),ht==null||ht.disconnect(),ft==null||ft.close()},[ft,ht,ct,dt]),Ht=async()=>{const Xt=await navigator.mediaDevices.getUserMedia({audio:!0}),rr=new AudioContext({sampleRate:Dt}),cr=rr.createMediaStreamSource(Xt);try{await rr.audioWorklet.addModule("/infra/public/js/audio-recorder-processor.js")}catch(mr){console.error(mr)}const ur=new AudioWorkletNode(rr,"audio-recorder-processor");ur.port.addEventListener("message",Vt),bt({type:"update",updatedState:{micStream:Xt,micStreamAudioSourceNode:cr,audioContext:rr,recordTime:0,audioWorkletNode:ur,recordState:"RECORDING",playState:"IDLE"}}),Ct.current=[],Rt.current=[],ur.port.start(),cr.connect(ur),ur.connect(rr.destination)},Nt=reactExports.useCallback(async()=>{wt.current&&(wt.current.currentTime=0,wt.current.pause()),lt==="PAUSED"?(bt({type:"update",updatedState:{recordState:"RECORDING",playState:"IDLE"}}),ft==null||ft.resume(),et==null||et(void 0)):Ht()},[lt,ft,wt]),Lt=reactExports.useCallback(()=>{bt({type:"update",updatedState:{recordState:"PAUSED",playState:"IDLE",isEncoding:!0}}),ft==null||ft.suspend(),xt&&Rt.current&&Ct.current&&(xt.postMessage(["wav",Ct.current,Rt.current,Ct.current.length*jt]),xt.onmessage=Xt=>{const rr=window.URL.createObjectURL(Xt.data);bt({type:"update",updatedState:{isEncoding:!1}}),wt.current&&(wt.current.src=rr),et&&et(rr)})},[ft,xt,et]),Mt=reactExports.useCallback(()=>{var Xt;bt({type:"update",updatedState:{playState:"PLAYING"}}),((Xt=wt==null?void 0:wt.current)!=null&&Xt.currentTime||wt.current)&&wt.current.play()},[wt]),zt=reactExports.useCallback(()=>{var Xt;(Xt=wt==null?void 0:wt.current)==null||Xt.pause(),bt({type:"update",updatedState:{playState:"PAUSED"}})},[wt]),Gt=reactExports.useCallback(()=>{Ft(),bt({type:"update",updatedState:{playState:"IDLE",recordState:"IDLE"}}),Ct.current=[],Rt.current=[],et&&et(void 0)},[Ft,et]),Ot=reactExports.useCallback(async()=>{var Xt;const rr=(Xt=St.current)==null?void 0:Xt.value;if(!rr){console.error("Audio name is required");return}return wt.current&&(wt.current.pause(),wt.current.currentTime=0),bt({type:"update",updatedState:{recordState:"SAVING",playState:"IDLE"}}),new Promise((cr,ur)=>{try{xt&&Rt.current&&Ct.current&&(xt.postMessage(["mp3",Ct.current,Rt.current,Ct.current.length*jt]),xt.onmessage=async mr=>{if(mr.data instanceof Blob){const vr=new File([mr.data],rr,{type:"audio/mp3"}),Er=await It(vr,{application:st,visibility:nt});Er&&tt&&tt(Er),bt({type:"update",updatedState:{recordState:"SAVED"}}),cr(Er)}})}catch(mr){bt({type:"update",updatedState:{playState:"IDLE",recordState:"IDLE"}}),console.error("Error while saving",mr),ur()}})},[lt,tt,Ft]),Ut=reactExports.useCallback(()=>{wt!=null&&wt.current&&(wt.current.pause(),wt.current.currentTime=0),bt({type:"update",updatedState:{playState:"IDLE"}})},[wt]),Bt=reactExports.useCallback(()=>{bt({type:"update",updatedState:{playState:"PAUSED"}}),wt.current&&(wt.current.currentTime=0)},[wt]);reactExports.useEffect(()=>{if(lt==="RECORDING"&&ft){const Xt=window.setInterval(()=>{bt({type:"update",updatedState:{recordTime:ft.currentTime}}),ft.currentTime>=yt&&(Lt(),window.clearInterval(Xt))},100);return()=>window.clearInterval(Xt)}},[ft,Lt,yt,lt]);const Yt=Pt(lt==="IDLE"?"bbm.audio.record.start":"bbm.audio.record.resume"),Zt=[{type:"icon",name:"record",visibility:lt==="RECORDING"?"hide":"show",props:{icon:jsxRuntimeExports.jsx(SvgIconRecord,{}),color:"danger",disabled:lt!=="IDLE"&<!=="PAUSED"||vt>=yt,onClick:Nt,"aria-label":Yt},tooltip:Yt},{type:"icon",name:"recordPause",visibility:lt==="RECORDING"?"show":"hide",props:{icon:jsxRuntimeExports.jsx(SvgIconRecordPause,{}),color:"danger",disabled:lt!=="RECORDING",onClick:Lt,"aria-label":Pt("bbm.audio.record.pause")},tooltip:Pt("bbm.audio.record.pause")},{type:"divider"},{type:"icon",name:"encoding",visibility:Et?"show":"hide",props:{icon:jsxRuntimeExports.jsx(SvgIconLoader,{style:{animation:"loading 1s infinite"}}),disabled:!0}},{type:"icon",name:"play",visibility:Et||ut==="PLAYING"?"hide":"show",props:{icon:jsxRuntimeExports.jsx(SvgIconPlayFilled,{}),disabled:lt!=="RECORDED"&<!=="PAUSED"&<!=="SAVED",onClick:Mt,"aria-label":Pt("bbm.audio.play.start")},tooltip:Pt("bbm.audio.play.start")},{type:"icon",name:"playPause",visibility:!Et&&ut==="PLAYING"?"show":"hide",props:{icon:jsxRuntimeExports.jsx(SvgIconPause,{}),onClick:zt,"aria-label":Pt("bbm.audio.play.pause")},tooltip:Pt("bbm.audio.play.pause")},{type:"icon",name:"stop",props:{icon:jsxRuntimeExports.jsx(SvgIconRestart,{}),disabled:ut!=="PLAYING"&&ut!=="PAUSED",onClick:Ut,"aria-label":Pt("bbm.audio.play.stop")},tooltip:Pt("bbm.audio.play.stop")},{type:"divider"},{type:"icon",name:"reset",props:{icon:jsxRuntimeExports.jsx(SvgIconRefresh,{}),disabled:lt!=="RECORDED"&<!=="PAUSED"&&ut!=="PLAYING"&&ut!=="PAUSED",onClick:Gt,"aria-label":Pt("bbm.audio.record.reset")},tooltip:Pt("bbm.audio.record.reset")},{type:"icon",name:"save",visibility:rt?"hide":"show",props:{icon:jsxRuntimeExports.jsx(SvgIconSave,{}),disabled:lt!=="RECORDED"&<!=="PAUSED"&&ut!=="PLAYING"&&ut!=="PAUSED"||lt==="SAVED"||!((ot=St.current)!=null&&ot.value),onClick:Ot,"aria-label":Pt("bbm.audio.record.save")},tooltip:Pt("bbm.audio.record.save")}];return{recordState:lt,playState:ut,audioContext:ft,recordTime:vt*1e3,maxDuration:yt*1e3,audioRef:wt,audioNameRef:St,toolbarItems:Zt,handlePlayEnded:Bt,handleSave:Ot}}const AudioRecorder=reactExports.forwardRef(({onSaveSuccess:tt,onRecordUpdated:et,hideSaveAction:rt=!1,visibility:nt="protected"},st)=>{const{recordState:ot,playState:at,recordTime:lt,audioRef:ut,audioNameRef:ct,toolbarItems:dt,maxDuration:ht,handlePlayEnded:ft,handleSave:xt}=useAudioRecorder(tt,et,rt,nt,"media-library"),{t:yt}=useTranslation();reactExports.useImperativeHandle(st,()=>({save:xt}));const[vt,Et]=reactExports.useState(0),bt=clsx({"text-danger":ot==="RECORDING","text-success":at==="PLAYING"}),St=wt=>{Et(wt.target.currentTime)};return jsxRuntimeExports.jsxs("div",{className:"audio-recorder m-auto d-flex flex-column",children:[jsxRuntimeExports.jsx(FormControl,{id:"recordName",className:"mb-32",isRequired:!0,isReadOnly:ot==="SAVED"||ot==="SAVING",children:jsxRuntimeExports.jsx(Input,{type:"text",size:"sm",placeholder:yt("bbm.audio.recorder.name"),ref:ct,defaultValue:yt("bbm.audio.recorder.defaultName")+new Date().toLocaleDateString()})}),jsxRuntimeExports.jsx("div",{className:"audio-recorder-icon mx-auto",children:jsxRuntimeExports.jsx(SvgIconMic,{width:64,height:64,className:bt})}),jsxRuntimeExports.jsx(AudioRecorderTimer,{recordState:ot,playState:at,recordTime:lt,audioTime:vt,maxDuration:ht}),jsxRuntimeExports.jsx("audio",{ref:ut,onEnded:ft,onTimeUpdate:St,children:jsxRuntimeExports.jsx("track",{default:!0,kind:"captions",srcLang:"fr",src:""})}),jsxRuntimeExports.jsx(Toolbar,{items:dt})]})}),Audio=()=>{const{setResult:tt,setPreSuccess:et,visibility:rt}=useMediaLibraryContext(),nt=reactExports.useRef(null);return jsxRuntimeExports.jsx(AudioRecorder,{ref:nt,onRecordUpdated:st=>{st?(tt(st),et(()=>nt.current.save)):tt()},onSaveSuccess:st=>{st&&tt(st)},hideSaveAction:!0,visibility:rt})},ExternalLinker=({link:tt,onChange:et,multiNodeSelected:rt=!1})=>{const{t:nt}=useTranslation(),[st,ot]=reactExports.useState((tt==null?void 0:tt.text)||""),[at,lt]=reactExports.useState((tt==null?void 0:tt.url)||""),[ut,ct]=useToggle(tt?tt.target==="_blank":!0);return reactExports.useEffect(()=>{rt&&tt!=null&&tt.text&&ot(tt.text.slice(0,20)+"...")},[rt,tt]),reactExports.useEffect(()=>{if(!at.length){et==null||et();return}const dt={url:at,text:rt?tt==null?void 0:tt.text:st||at,target:ut?"_blank":void 0};!s$3.isLocalURL(at)&&!s$3.startWithHttp(at)&&(dt.url="http://"+at),et==null||et(dt)},[st,at,ut]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column flex-fill gap-24",children:[jsxRuntimeExports.jsxs(FormControl,{id:"linkText",isOptional:!0,children:[jsxRuntimeExports.jsx(Label,{children:nt("bbm.linker.ext.text")}),jsxRuntimeExports.jsx(Input,{type:"text",placeholder:nt("bbm.linker.ext.text.placeholder"),size:"md",disabled:rt,value:st,onChange:dt=>ot(dt.target.value)})]}),jsxRuntimeExports.jsxs(FormControl,{id:"linkUrl",isRequired:!0,children:[jsxRuntimeExports.jsx(Label,{children:nt("bbm.linker.ext.url")}),jsxRuntimeExports.jsx(Input,{type:"text",placeholder:nt("bbm.linker.ext.url.placeholder"),size:"md",value:at,onChange:dt=>lt(dt.target.value)})]}),jsxRuntimeExports.jsx(Checkbox,{label:nt("bbm.linker.open.tab"),onChange:()=>ct(),checked:ut})]})})},ExternalLink=({link:tt,multiNodeSelected:et=!1})=>{const{setResult:rt}=useMediaLibraryContext();return jsxRuntimeExports.jsx(ExternalLinker,{link:tt,onChange:nt=>{rt(nt)},multiNodeSelected:et})},Embed=({onSuccess:tt})=>{const{t:et}=useTranslation(),[rt,nt]=reactExports.useState();function st(ot){const at=ot.target.value;nt(at),at!=null&&at.length?tt(at):tt()}return jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column flex-fill",children:[jsxRuntimeExports.jsx("div",{className:"mb-32",children:et("bbm.embed.description")}),jsxRuntimeExports.jsxs("div",{className:"mb-8 d-flex",children:[jsxRuntimeExports.jsx(SvgIconCode,{className:"me-8"}),et("bbm.embed.title")]}),jsxRuntimeExports.jsx(FormControl,{id:"iframeContent",children:jsxRuntimeExports.jsx(TextArea,{size:"md",height:"sm",placeholder:et("bbm.embed.placeholder"),onChange:st})}),!!(rt!=null&&rt.length)&&jsxRuntimeExports.jsx("div",{className:"embed-preview mt-12",dangerouslySetInnerHTML:{__html:rt}}),!(rt!=null&&rt.length)&&jsxRuntimeExports.jsx("div",{className:"embed-preview mt-12 d-flex align-items-center justify-content-center bg-gray-300 text-black-50 rounded-3",children:jsxRuntimeExports.jsx("strong",{children:et("bbm.embed.preview")})})]})},Iframe=()=>{const{setResult:tt}=useMediaLibraryContext();return jsxRuntimeExports.jsx(Embed,{onSuccess:et=>{et=et==null?void 0:et.replace(/<p /g,"<div ").replace(/\/p>/g,"/div>"),tt(et)}})},SvgIconUsers=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#icon-users_svg__a)",clipRule:"evenodd",children:jsxRuntimeExports.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.272M15.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.036M1.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.974M9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"icon-users_svg__a",children:jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),LinkerCard=({doc:tt,isClickable:et=!0,isSelectable:rt=!1,isSelected:nt=!1,onClick:st,className:ot})=>{const{fromNow:at}=useDate(),{fromDate:lt}=reactExports.useMemo(()=>({fromDate:at(tt.modifiedAt)}),[at,tt]);return jsxRuntimeExports.jsx(Card,{className:clsx("card-linker shadow-none",ot),isClickable:et,isSelectable:rt,isSelected:nt,onClick:st,children:jsxRuntimeExports.jsxs(Card.Body,{space:"8",children:[jsxRuntimeExports.jsx("div",{className:"card-image ps-8 pe-4",children:tt.thumbnail&&tt.thumbnail.length>0?jsxRuntimeExports.jsx(Image$1,{alt:"",height:48,width:48,src:tt.thumbnail,objectFit:"cover",className:"rounded h-full",style:{aspectRatio:1/1}}):jsxRuntimeExports.jsx(AppIcon,{app:tt.application,iconFit:"ratio",size:"48",variant:"rounded"})}),jsxRuntimeExports.jsxs("div",{className:"w-75",children:[jsxRuntimeExports.jsx(Card.Text,{children:tt.name}),jsxRuntimeExports.jsx(Card.Text,{className:"text-black-50",children:tt==null?void 0:tt.creatorName})]}),jsxRuntimeExports.jsx("div",{className:"d-none d-md-block text-black-50 ps-4 pe-8",children:jsxRuntimeExports.jsx(Card.Text,{children:lt})}),tt.shared&&jsxRuntimeExports.jsx("div",{className:"ps-4 pe-8",children:jsxRuntimeExports.jsx(SvgIconUsers,{width:"20",height:"20"})})]})})},useResourceSearch=tt=>{const[et,rt]=reactExports.useState([]);reactExports.useEffect(()=>{(async()=>(await SnipletsService.initialize(odeServices,tt),await SnipletsService.registerBehaviours(tt),rt(SnipletsService.resourceProducingApps)))()},[]);const nt=reactExports.useCallback(async st=>{const[ot]=st.types;return await odeServices.behaviour(tt,ot).loadResources(st)},[tt]);return{resourceApplications:et,loadResources:nt}},illuOneBlog="/assets/js/ode-explorer/illu-empty-search-blog.svg",illuOneCollaborativeWall="/assets/js/ode-explorer/illu-empty-search-collaborativewall.svg",illuOneCommunity="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_149764)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M167.746%20130.552C172.704%20130.552%20176.962%20132.327%20180.519%20135.877C184.076%20139.427%20185.855%20143.677%20185.854%20148.625C185.854%20153.574%20184.076%20157.823%20180.519%20161.373C176.962%20164.923%20172.758%20166.698%20167.908%20166.698C163.057%20166.698%20158.799%20164.923%20155.135%20161.373C151.47%20157.823%20149.692%20153.52%20149.799%20148.464C149.799%20146.528%20150.23%20144.43%20151.093%20142.171L123.768%20122.484C118.487%20127.863%20112.127%20130.552%20104.69%20130.552C97.2522%20130.552%2090.8927%20127.917%2085.6111%20122.646C80.3295%20117.374%2077.6348%20110.974%2077.5271%20103.443C77.5271%20102.475%2077.6887%20101.077%2078.012%2099.2476L56.3468%2092.1477C54.6221%2093.6538%2052.6819%2094.4069%2050.5261%2094.4069C47.9391%2094.4069%2045.7833%2093.5463%2044.0587%2091.825C42.334%2090.1037%2041.4717%2087.9522%2041.4717%2085.3703C41.4717%2082.7884%2042.334%2080.6906%2044.0587%2079.0771C45.7833%2077.4635%2047.9391%2076.6028%2050.5261%2076.4952C52.6819%2076.4952%2054.5143%2077.1944%2056.0234%2078.5928C57.5325%2079.9912%2058.5564%2081.6586%2059.0953%2083.595L80.9224%2090.8565C83.1858%2086.4458%2086.4734%2082.9496%2090.785%2080.3677C95.0966%2077.7858%2099.7315%2076.4948%20104.69%2076.4948C110.295%2076.4948%20115.468%2078.1623%20120.211%2081.4971L152.386%2049.3856C150.661%2046.1582%20149.799%2043.1998%20149.799%2040.5105C149.799%2035.562%20151.577%2031.3127%20155.134%2027.7625C158.691%2024.2123%20162.949%2022.4373%20167.907%2022.4375C172.866%2022.4377%20177.069%2024.2127%20180.518%2027.7625C183.968%2031.3123%20185.746%2035.5616%20185.854%2040.5105C185.962%2045.4593%20184.183%2049.6548%20180.518%2053.0969C176.854%2056.539%20172.596%2058.314%20167.745%2058.4219C164.943%2058.4219%20161.979%2057.5075%20158.853%2055.6788L126.678%2087.9518C130.02%2092.6851%20131.69%2097.8488%20131.69%20103.443C131.69%20107.423%20130.774%20111.35%20128.942%20115.223L156.266%20134.748C159.823%20131.951%20163.65%20130.552%20167.746%20130.552V130.552Z'%20fill='%23A348C0'/%3e%3cg%20filter='url(%23filter0_d_3597_149764)'%3e%3cellipse%20cx='169.708'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.012%20150.405C214.309%20149.703%20213.483%20149.21%20212.606%20148.92C220.41%20139.391%20225.099%20127.21%20225.099%20113.934C225.099%2095.9054%20216.454%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.867%2058.6953C165.678%2058.6953%20161.599%2059.1808%20157.678%2060.0649C152.635%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.367%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.635%20106.855%20114.635%20113.934C114.635%20144.442%20139.359%20169.166%20169.867%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.338%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.715%20185.775C244.113%20183.376%20244.113%20179.492%20241.715%20177.094L241.707%20177.101ZM169.859%20156.891C146.135%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.896%2090.4489C136.483%2086.4924%20139.707%2082.9924%20143.425%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.628%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_149764'%20x='108.635'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_149764'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_149764'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_149764'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuOneExercizer="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_148725)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M83.4104%20149.864L112.194%20135.472V111.738L83.4104%20124.138V149.864ZM78.5673%20115.516L108.965%20102.602L78.5673%2089.5493L48.3412%20102.773L78.5673%20115.516ZM160.349%20149.864L189.167%20135.472V111.738L160.384%20124.138L160.349%20149.864ZM155.506%20115.516L185.732%20102.773L155.472%2089.7211L125.074%20102.773L155.506%20115.516ZM121.88%2093.568L150.663%2081.2028V61.3498L121.88%2073.715V93.568ZM117.037%2065.2311L150.114%2051.1141L117.037%2036.8598L83.9256%2051.1141L117.037%2065.2311ZM198.682%20104.113V135.472C198.694%20137.212%20198.231%20138.923%20197.342%20140.418C196.429%20141.946%20195.059%20143.147%20193.426%20143.853L159.8%20160.684C158.476%20161.382%20157.003%20161.746%20155.506%20161.746C154.01%20161.746%20152.536%20161.382%20151.213%20160.684L117.586%20143.853C117.379%20143.822%20117.187%20143.726%20117.037%20143.578C116.881%20143.717%20116.692%20143.812%20116.487%20143.853L82.8608%20160.684C81.5508%20161.417%2080.068%20161.784%2078.5673%20161.748C77.0983%20161.794%2075.6461%20161.425%2074.3769%20160.684L40.7504%20143.853C39.1325%20143.137%2037.7764%20141.937%2036.8691%20140.418C35.9651%20138.922%2035.4568%20137.22%2035.3921%20135.472V104.113C35.3757%20102.237%2035.9395%20100.401%2037.0064%2098.8576C38.051%2097.299%2039.55%2096.0997%2041.2999%2095.4228L73.8617%2081.4433V51.3889C73.8545%2049.5056%2074.3966%2047.6611%2075.4214%2046.0811C76.4463%2044.5011%2077.9095%2043.2541%2079.6321%2042.4928L113.259%2028.1011C114.45%2027.581%20115.737%2027.3125%20117.037%2027.3125C118.337%2027.3125%20119.623%2027.581%20120.815%2028.1011L154.442%2042.4928C156.151%2043.2379%20157.633%2044.4231%20158.735%2045.9276C159.819%2047.5145%20160.383%2049.3988%20160.349%2051.3202V81.3059L192.911%2095.2854C194.661%2095.9623%20196.16%2097.1616%20197.205%2098.7202C198.26%20100.263%20198.779%20102.109%20198.682%20103.975V104.113Z'%20fill='%23A348C0'/%3e%3cg%20filter='url(%23filter0_d_3597_148725)'%3e%3cellipse%20cx='169.707'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.011%20150.405C214.308%20149.703%20213.482%20149.21%20212.605%20148.92C220.41%20139.391%20225.098%20127.21%20225.098%20113.934C225.098%2095.9054%20216.453%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.866%2058.6953C165.678%2058.6953%20161.598%2059.1808%20157.678%2060.0649C152.634%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.366%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.634%20106.855%20114.634%20113.934C114.634%20144.442%20139.359%20169.166%20169.866%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.337%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.714%20185.775C244.113%20183.376%20244.113%20179.492%20241.714%20177.094L241.707%20177.101ZM169.859%20156.891C146.134%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.895%2090.4489C136.482%2086.4924%20139.707%2082.9924%20143.424%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.627%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_148725'%20x='108.634'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_148725'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_148725'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_148725'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuOneFormulaire="/assets/js/ode-explorer/illu-empty-search-formulaire.svg",illuOneForum="/assets/js/ode-explorer/illu-empty-search-forum.svg",illuOneHomeworks="/assets/js/ode-explorer/illu-empty-search-homeworks.svg",illuOneMagneto="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_149757)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M127.341%20120.329V89.4164C127.341%2077.1185%20122.455%2065.3242%20113.759%2056.6282C105.063%2047.9322%2093.2691%2043.0469%2080.9711%2043.0469C68.6731%2043.0469%2056.8789%2047.9322%2048.1829%2056.6282C39.4869%2065.3242%2034.6016%2077.1185%2034.6016%2089.4164L34.6016%20120.329H55.2103V89.4164C55.2103%2082.5842%2057.9243%2076.0319%2062.7554%2071.2008C67.5865%2066.3696%2074.1389%2063.6556%2080.9711%2063.6556C84.3541%2063.6556%2087.7039%2064.3219%2090.8294%2065.6165C93.9548%2066.9111%2096.7947%2068.8086%2099.1868%2071.2007C101.579%2073.5929%20103.476%2076.4327%20104.771%2079.5582C106.066%2082.6836%20106.732%2086.0335%20106.732%2089.4164V120.329M55.2103%20130.634H34.6016V146.09H55.2103M127.341%20130.634H106.732V146.09H127.341'%20fill='%23F1CA00'/%3e%3cpath%20d='M199.472%20120.329V89.4164C199.472%2083.3271%20198.272%2077.2974%20195.942%2071.6716C193.612%2066.0457%20190.196%2060.934%20185.89%2056.6282C181.584%2052.3224%20176.473%2048.9068%20170.847%2046.5765C165.221%2044.2463%20159.191%2043.0469%20153.102%2043.0469C140.804%2043.0469%20129.01%2047.9322%20120.314%2056.6282C111.618%2065.3242%20106.732%2077.1185%20106.732%2089.4164V120.329H127.341V89.4164C127.341%2082.5842%20130.055%2076.0319%20134.886%2071.2008C139.717%2066.3696%20146.27%2063.6556%20153.102%2063.6556C156.485%2063.6556%20159.835%2064.3219%20162.96%2065.6165C166.086%2066.9111%20168.926%2068.8086%20171.318%2071.2007C173.71%2073.5929%20175.607%2076.4327%20176.902%2079.5582C178.197%2082.6836%20178.863%2086.0335%20178.863%2089.4164V120.329M127.341%20130.634H106.732V146.09H127.341M199.472%20130.634H178.863V146.09H199.472'%20fill='%23F1CA00'/%3e%3cg%20filter='url(%23filter0_d_3597_149757)'%3e%3cellipse%20cx='169.708'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.012%20150.405C214.309%20149.703%20213.483%20149.21%20212.606%20148.92C220.41%20139.391%20225.099%20127.21%20225.099%20113.934C225.099%2095.9054%20216.454%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.867%2058.6953C165.678%2058.6953%20161.599%2059.1808%20157.678%2060.0649C152.635%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.367%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.635%20106.855%20114.635%20113.934C114.635%20144.442%20139.359%20169.166%20169.867%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.338%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.715%20185.775C244.113%20183.376%20244.113%20179.492%20241.715%20177.094L241.707%20177.101ZM169.859%20156.891C146.135%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.896%2090.4489C136.483%2086.4924%20139.707%2082.9924%20143.425%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.628%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_149757'%20x='108.635'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_149757'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_149757'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_149757'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuOneWiki="/assets/js/ode-explorer/illu-empty-search-wiki.svg",illuOneEmpty="/assets/js/ode-explorer/illu-empty-search.svg",illuNeoBlog="/assets/js/ode-explorer/illu-empty-search-blog2.svg",illuNeoCollaborativeWall="/assets/js/ode-explorer/illu-empty-search-collaborativewall2.svg",illuNeoCommunity="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_141038)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M167.746%20130.552C172.704%20130.552%20176.962%20132.327%20180.519%20135.877C184.076%20139.427%20185.855%20143.677%20185.854%20148.625C185.854%20153.574%20184.076%20157.823%20180.519%20161.373C176.962%20164.923%20172.758%20166.698%20167.908%20166.698C163.057%20166.698%20158.799%20164.923%20155.135%20161.373C151.47%20157.823%20149.692%20153.52%20149.799%20148.464C149.799%20146.528%20150.23%20144.43%20151.093%20142.171L123.768%20122.484C118.487%20127.863%20112.127%20130.552%20104.69%20130.552C97.2522%20130.552%2090.8927%20127.917%2085.6111%20122.646C80.3295%20117.374%2077.6348%20110.974%2077.5271%20103.443C77.5271%20102.475%2077.6887%20101.077%2078.012%2099.2476L56.3468%2092.1477C54.6221%2093.6538%2052.6819%2094.4069%2050.5261%2094.4069C47.9391%2094.4069%2045.7833%2093.5463%2044.0587%2091.825C42.334%2090.1037%2041.4717%2087.9522%2041.4717%2085.3703C41.4717%2082.7884%2042.334%2080.6906%2044.0587%2079.0771C45.7833%2077.4635%2047.9391%2076.6028%2050.5261%2076.4952C52.6819%2076.4952%2054.5143%2077.1944%2056.0234%2078.5928C57.5325%2079.9912%2058.5564%2081.6586%2059.0953%2083.595L80.9224%2090.8565C83.1858%2086.4458%2086.4734%2082.9496%2090.785%2080.3677C95.0966%2077.7858%2099.7315%2076.4948%20104.69%2076.4948C110.295%2076.4948%20115.468%2078.1623%20120.211%2081.4971L152.386%2049.3856C150.661%2046.1582%20149.799%2043.1998%20149.799%2040.5105C149.799%2035.562%20151.577%2031.3127%20155.134%2027.7625C158.691%2024.2123%20162.949%2022.4373%20167.907%2022.4375C172.866%2022.4377%20177.069%2024.2127%20180.518%2027.7625C183.968%2031.3123%20185.746%2035.5616%20185.854%2040.5105C185.962%2045.4593%20184.183%2049.6548%20180.518%2053.0969C176.854%2056.539%20172.596%2058.314%20167.745%2058.4219C164.943%2058.4219%20161.979%2057.5075%20158.853%2055.6788L126.678%2087.9518C130.02%2092.6851%20131.69%2097.8488%20131.69%20103.443C131.69%20107.423%20130.774%20111.35%20128.942%20115.223L156.266%20134.748C159.823%20131.951%20163.65%20130.552%20167.746%20130.552V130.552Z'%20fill='%23823AA1'/%3e%3cg%20filter='url(%23filter0_d_3597_141038)'%3e%3cellipse%20cx='169.708'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.012%20150.405C214.309%20149.703%20213.483%20149.21%20212.606%20148.92C220.41%20139.391%20225.099%20127.21%20225.099%20113.934C225.099%2095.9054%20216.454%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.867%2058.6953C165.678%2058.6953%20161.599%2059.1808%20157.678%2060.0649C152.635%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.367%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.635%20106.855%20114.635%20113.934C114.635%20144.442%20139.359%20169.166%20169.867%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.338%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.715%20185.775C244.113%20183.376%20244.113%20179.492%20241.715%20177.094L241.707%20177.101ZM169.859%20156.891C146.135%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.896%2090.4489C136.483%2086.4924%20139.707%2082.9924%20143.425%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.628%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_141038'%20x='108.635'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_141038'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_141038'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_141038'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuNeoExercizer="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_148718)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M83.4104%20149.864L112.194%20135.472V111.738L83.4104%20124.138V149.864ZM78.5673%20115.516L108.965%20102.602L78.5673%2089.5493L48.3412%20102.773L78.5673%20115.516ZM160.349%20149.864L189.167%20135.472V111.738L160.384%20124.138L160.349%20149.864ZM155.506%20115.516L185.732%20102.773L155.472%2089.7211L125.074%20102.773L155.506%20115.516ZM121.88%2093.568L150.663%2081.2028V61.3498L121.88%2073.715V93.568ZM117.037%2065.2311L150.114%2051.1141L117.037%2036.8598L83.9256%2051.1141L117.037%2065.2311ZM198.682%20104.113V135.472C198.694%20137.212%20198.231%20138.923%20197.342%20140.418C196.429%20141.946%20195.059%20143.147%20193.426%20143.853L159.8%20160.684C158.476%20161.382%20157.003%20161.746%20155.506%20161.746C154.01%20161.746%20152.536%20161.382%20151.213%20160.684L117.586%20143.853C117.379%20143.822%20117.187%20143.726%20117.037%20143.578C116.881%20143.717%20116.692%20143.812%20116.487%20143.853L82.8608%20160.684C81.5508%20161.417%2080.068%20161.784%2078.5673%20161.748C77.0983%20161.794%2075.6461%20161.425%2074.3769%20160.684L40.7504%20143.853C39.1325%20143.137%2037.7764%20141.937%2036.8691%20140.418C35.9651%20138.922%2035.4568%20137.22%2035.3921%20135.472V104.113C35.3757%20102.237%2035.9395%20100.401%2037.0064%2098.8576C38.051%2097.299%2039.55%2096.0997%2041.2999%2095.4228L73.8617%2081.4433V51.3889C73.8545%2049.5056%2074.3966%2047.6611%2075.4214%2046.0811C76.4463%2044.5011%2077.9095%2043.2541%2079.6321%2042.4928L113.259%2028.1011C114.45%2027.581%20115.737%2027.3125%20117.037%2027.3125C118.337%2027.3125%20119.623%2027.581%20120.815%2028.1011L154.442%2042.4928C156.151%2043.2379%20157.633%2044.4231%20158.735%2045.9276C159.819%2047.5145%20160.383%2049.3988%20160.349%2051.3202V81.3059L192.911%2095.2854C194.661%2095.9623%20196.16%2097.1616%20197.205%2098.7202C198.26%20100.263%20198.779%20102.109%20198.682%20103.975V104.113Z'%20fill='%23823AA1'/%3e%3cg%20filter='url(%23filter0_d_3597_148718)'%3e%3cellipse%20cx='169.707'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.011%20150.405C214.308%20149.703%20213.482%20149.21%20212.605%20148.92C220.41%20139.391%20225.098%20127.21%20225.098%20113.934C225.098%2095.9054%20216.453%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.866%2058.6953C165.678%2058.6953%20161.598%2059.1808%20157.678%2060.0649C152.634%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.366%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.634%20106.855%20114.634%20113.934C114.634%20144.442%20139.359%20169.166%20169.866%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.337%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.714%20185.775C244.113%20183.376%20244.113%20179.492%20241.714%20177.094L241.707%20177.101ZM169.859%20156.891C146.134%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.895%2090.4489C136.482%2086.4924%20139.707%2082.9924%20143.424%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.627%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_148718'%20x='108.634'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_148718'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_148718'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_148718'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuNeoFormulaire="/assets/js/ode-explorer/illu-empty-search-formulaire2.svg",illuNeoForum="/assets/js/ode-explorer/illu-empty-search-forum2.svg",illuNeoHomeworks="/assets/js/ode-explorer/illu-empty-search-homeworks2.svg",illuNeoMagneto="data:image/svg+xml,%3csvg%20width='250'%20height='195'%20viewBox='0%200%20250%20195'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3597_141030)'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3cpath%20d='M127.341%20120.329V89.4164C127.341%2077.1185%20122.455%2065.3242%20113.759%2056.6282C105.063%2047.9322%2093.2691%2043.0469%2080.9711%2043.0469C68.6731%2043.0469%2056.8789%2047.9322%2048.1829%2056.6282C39.4869%2065.3242%2034.6016%2077.1185%2034.6016%2089.4164L34.6016%20120.329H55.2103V89.4164C55.2103%2082.5842%2057.9243%2076.0319%2062.7554%2071.2008C67.5865%2066.3696%2074.1389%2063.6556%2080.9711%2063.6556C84.3541%2063.6556%2087.7039%2064.3219%2090.8294%2065.6165C93.9548%2066.9111%2096.7947%2068.8086%2099.1868%2071.2007C101.579%2073.5929%20103.476%2076.4327%20104.771%2079.5582C106.066%2082.6836%20106.732%2086.0335%20106.732%2089.4164V120.329M55.2103%20130.634H34.6016V146.09H55.2103M127.341%20130.634H106.732V146.09H127.341'%20fill='%23ECBE30'/%3e%3cpath%20d='M199.472%20120.329V89.4164C199.472%2083.3271%20198.272%2077.2974%20195.942%2071.6716C193.612%2066.0457%20190.196%2060.934%20185.89%2056.6282C181.584%2052.3224%20176.473%2048.9068%20170.847%2046.5765C165.221%2044.2463%20159.191%2043.0469%20153.102%2043.0469C140.804%2043.0469%20129.01%2047.9322%20120.314%2056.6282C111.618%2065.3242%20106.732%2077.1185%20106.732%2089.4164V120.329H127.341V89.4164C127.341%2082.5842%20130.055%2076.0319%20134.886%2071.2008C139.717%2066.3696%20146.27%2063.6556%20153.102%2063.6556C156.485%2063.6556%20159.835%2064.3219%20162.96%2065.6165C166.086%2066.9111%20168.926%2068.8086%20171.318%2071.2007C173.71%2073.5929%20175.607%2076.4327%20176.902%2079.5582C178.197%2082.6836%20178.863%2086.0335%20178.863%2089.4164V120.329M127.341%20130.634H106.732V146.09H127.341M199.472%20130.634H178.863V146.09H199.472'%20fill='%23ECBE30'/%3e%3cg%20filter='url(%23filter0_d_3597_141030)'%3e%3cellipse%20cx='169.708'%20cy='113.765'%20rx='44.2029'%20ry='44.2029'%20fill='white'%20fill-opacity='0.85'/%3e%3cpath%20d='M241.707%20177.101L215.012%20150.405C214.309%20149.703%20213.483%20149.21%20212.606%20148.92C220.41%20139.391%20225.099%20127.21%20225.099%20113.934C225.099%2095.9054%20216.454%2079.891%20203.091%2069.8112C198.323%2066.217%20192.946%2063.3837%20187.149%2061.4707C181.707%2059.6808%20175.903%2058.6953%20169.867%2058.6953C165.678%2058.6953%20161.599%2059.1808%20157.678%2060.0649C152.635%2061.2026%20147.852%2063.0142%20143.432%2065.4272C135.272%2069.8837%20128.374%2076.3402%20123.367%2084.1373C121.403%2087.1953%20119.736%2090.4489%20118.403%2093.8765C115.975%20100.094%20114.635%20106.855%20114.635%20113.934C114.635%20144.442%20139.359%20169.166%20169.867%20169.166C183.142%20169.166%20195.323%20164.485%20204.852%20156.674C205.142%20157.55%20205.642%20158.384%20206.338%20159.079L233.033%20185.775C235.432%20188.174%20239.316%20188.174%20241.715%20185.775C244.113%20183.376%20244.113%20179.492%20241.715%20177.094L241.707%20177.101ZM169.859%20156.891C146.135%20156.891%20126.903%20137.659%20126.903%20113.934C126.903%20109.203%20127.678%20104.652%20129.091%20100.391C130.265%2096.8475%20131.888%2093.5141%20133.896%2090.4489C136.483%2086.4924%20139.707%2082.9924%20143.425%2080.0866C147.62%2076.804%20152.432%2074.2895%20157.671%2072.746C161.533%2071.6011%20165.628%2070.9779%20169.859%2070.9779C193.584%2070.9779%20212.816%2090.2098%20212.816%20113.934C212.816%20137.659%20193.584%20156.891%20169.859%20156.891Z'%20fill='%23B9E3F8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_3597_141030'%20x='108.635'%20y='54.6953'%20width='140.879'%20height='140.875'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3597_141030'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3597_141030'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_3597_141030'%3e%3crect%20width='250'%20height='194.203'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",illuNeoWiki="/assets/js/ode-explorer/illu-empty-search-wiki2.svg",illuNeoEmpty="/assets/js/ode-explorer/illu-empty-search2.svg",emptyScreenMapping={one:{blog:illuOneBlog,wiki:illuOneWiki,empty:illuOneEmpty,"collaborative-wall":illuOneCollaborativeWall,community:illuOneCommunity,exercizer:illuOneExercizer,formulaire:illuOneFormulaire,forum:illuOneForum,homeworks:illuOneHomeworks,magneto:illuOneMagneto},neo:{blog:illuNeoBlog,wiki:illuNeoWiki,empty:illuNeoEmpty,"collaborative-wall":illuNeoCollaborativeWall,community:illuNeoCommunity,exercizer:illuNeoExercizer,formulaire:illuNeoFormulaire,forum:illuNeoForum,homeworks:illuNeoHomeworks,magneto:illuNeoMagneto}},InternalLinker=({appCode:tt,defaultAppCode:et,defaultResourceId:rt,onChange:nt,onSelect:st,multiple:ot=!0,resourceList:at,applicationList:lt,showApplicationSelector:ut=!0})=>{const{t:ct}=useTranslation(),{theme:dt}=useEdificeTheme(),{resourceApplications:ht,loadResources:ft}=useResourceSearch(tt),[xt,yt]=reactExports.useState(),[vt,Et]=reactExports.useState(),[bt,St]=reactExports.useState(),wt=useDebounce(bt||"",500),[Rt,Ct]=reactExports.useState([]),Pt=reactExports.useCallback((Gt,Ot)=>{var Ut,Bt,Yt;if(!Ot)return!0;const Zt=(Ot==null?void 0:Ot.toLowerCase())||"";return((Ut=Gt.name)==null?void 0:Ut.toLowerCase().includes(Zt))||((Bt=Gt.creatorName)==null?void 0:Bt.toLowerCase().includes(Zt))||((Yt=Gt.description)==null?void 0:Yt.toLowerCase().includes(Zt))},[]),It=reactExports.useCallback(Gt=>Gt.sort((Ot,Ut)=>Ot.modifiedAt<Ut.modifiedAt?1:-1),[]),jt=reactExports.useCallback(Gt=>{async function Ot(){if(at){const Ut=at.filter(Bt=>Pt(Bt,Gt));Ct(It(Ut));return}else if(vt)try{const Ut=(await ft({application:vt.application,search:Gt,types:[vt.application],filters:{},pagination:{startIdx:0,pageSize:300}})).filter(Bt=>Pt(Bt,Gt));Ct(It(Ut));return}catch{}Ct([])}Ot()},[ft,vt,Pt,It,at]),[Dt,Vt]=reactExports.useState([]),Ft=Gt=>{nt==null||nt(Gt),Et(Gt)},Ht=Gt=>{const Ot=Gt.target.value;St(Ot.toString())},Nt=reactExports.useCallback(Gt=>{jt(bt),Gt.stopPropagation(),Gt.preventDefault()},[jt,bt]),Lt=reactExports.useCallback(Gt=>Dt.findIndex(Ot=>Ot.assetId===Gt),[Dt]),Mt=reactExports.useCallback(Gt=>{Vt(ot?Ot=>[...Ot,Gt]:[Gt])},[Vt,ot]),zt=reactExports.useCallback(Gt=>{const Ot=Lt(Gt.assetId);Ot<0?Mt(Gt):Vt(Dt.filter((Ut,Bt)=>Bt!==Ot))},[Lt,Mt,Dt]);return reactExports.useEffect(()=>{(async()=>{if(lt){yt(lt.sort((Ut,Bt)=>Ut.displayName.localeCompare(Bt.displayName)));return}const Gt=ht.map(Ut=>odeServices.session().getWebApp(Ut)),Ot=await Promise.all(Gt);yt(ht.map((Ut,Bt)=>{var Yt;return{application:Ut,displayName:ct(((Yt=Ot[Bt])==null?void 0:Yt.displayName)??Ut),icon:jsxRuntimeExports.jsx(AppIcon,{app:Ot[Bt],size:"24"})}}).sort((Ut,Bt)=>Ut.displayName.localeCompare(Bt.displayName)))})()},[ht,ct,lt]),reactExports.useEffect(()=>{jt(wt)},[jt,wt]),reactExports.useEffect(()=>{st==null||st(Dt)},[Dt]),reactExports.useEffect(()=>{var Gt;const Ot=et??((lt==null?void 0:lt.length)===1&&((Gt=lt==null?void 0:lt[0])==null?void 0:Gt.application));if(Ot){const Ut=xt==null?void 0:xt.find(Bt=>Ot===Bt.application);Et(Ut),jt("")}},[xt,et]),reactExports.useEffect(()=>{if(rt&&Lt(rt)<0){const Gt=Rt==null?void 0:Rt.find(Ot=>rt===Ot.assetId);Gt&&Mt(Gt)}},[Rt]),jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column flex-fill overflow-hidden",children:[jsxRuntimeExports.jsxs("div",{className:"search d-flex bg-light rounded-top border border-bottom-0",children:[ut&&jsxRuntimeExports.jsx("div",{className:"flex-shrink-1 px-8 py-12 border-end",children:jsxRuntimeExports.jsxs(Dropdown,{overflow:!0,children:[jsxRuntimeExports.jsx(Dropdown.Trigger,{icon:jsxRuntimeExports.jsx("div",{className:"pe-8",children:(vt==null?void 0:vt.icon)||jsxRuntimeExports.jsx(SvgIconApplications,{})}),label:ct((vt==null?void 0:vt.displayName)||"bbm.linker.int.choose"),variant:"ghost",size:"md"}),jsxRuntimeExports.jsx(Dropdown.Menu,{children:xt==null?void 0:xt.map(Gt=>jsxRuntimeExports.jsx(Dropdown.Item,{icon:Gt.icon,onClick:()=>Ft(Gt),children:Gt.displayName},Gt.application))})]})}),jsxRuntimeExports.jsx("div",{className:"flex-grow-1 align-self-center",children:jsxRuntimeExports.jsx("form",{className:"gap-16 d-flex w-100 align-items-center px-16 py-8",onSubmit:Nt,children:jsxRuntimeExports.jsx(SearchBar,{isVariant:!0,placeholder:ct("search"),size:"lg",className:"w-100",disabled:!vt,onChange:Ht})})})]}),jsxRuntimeExports.jsxs("div",{className:"internal-linker flex-grow-1 w-100 rounded-bottom border gap-0 overflow-auto",children:[vt&&Rt&&Rt.length>0&&jsxRuntimeExports.jsx("div",{children:Rt.map(Gt=>{const Ot=Dt.findIndex(Ut=>Ut.assetId===Gt.assetId)>=0;return jsxRuntimeExports.jsx(LinkerCard,{doc:Gt,isSelected:Ot,onClick:()=>zt(Gt)},Gt.path)})}),vt&&Rt&&Rt.length<=0&&jsxRuntimeExports.jsx("div",{className:"d-flex justify-content-center mt-16",children:jsxRuntimeExports.jsx(EmptyScreen,{imageSrc:emptyScreenMapping[(dt==null?void 0:dt.bootstrapVersion)??"one"][vt==null?void 0:vt.application],text:ct("bbm.linker.int.notfound"),className:"mt-16"})}),!vt&&jsxRuntimeExports.jsx("div",{className:"d-flex justify-content-center mt-32",children:jsxRuntimeExports.jsx(EmptyScreen,{imageSrc:emptyScreenMapping[(dt==null?void 0:dt.bootstrapVersion)??"one"].empty,text:ct("bbm.linker.int.empty"),className:"mt-32"})})]})]})},InternalLink=({target:tt,resourceId:et,appPrefix:rt})=>{const{t:nt}=useTranslation(),{setResult:st,setResultCounter:ot,appCode:at,multiple:lt}=useMediaLibraryContext(),[ut,ct]=useToggle(tt==="_blank"),[dt,ht]=reactExports.useState([]),ft=xt=>{ht(xt)};return reactExports.useEffect(()=>{st({target:ut?"_blank":void 0,resources:dt}),dt&&dt.length?ot(dt.length):ot(void 0)},[ut,dt]),jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column flex-fill gap-16 overflow-hidden",children:[jsxRuntimeExports.jsx(InternalLinker,{appCode:at,defaultAppCode:rt,defaultResourceId:et,onSelect:ft,multiple:lt}),jsxRuntimeExports.jsx(Checkbox,{className:"align-items-center",checked:ut,label:nt("bbm.linker.open.tab"),onChange:ct})]})},SvgIconReset=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.583 7.313 3.976 3.87a.996.996 0 1 0-1.96.346l1.012 5.747a.996.996 0 0 0 1.153.809l5.743-1.014a.997.997 0 0 0-.346-1.962l-3.3.582a7.754 7.754 0 0 1 8.399-4.254 7.76 7.76 0 0 1 .78 15.064 7.745 7.745 0 0 1-8.912-3.56.995.995 0 1 0-1.724.997 9.744 9.744 0 0 0 11.201 4.474 9.74 9.74 0 0 0 5.19-3.718 9.756 9.756 0 0 0-.625-12.055A9.74 9.74 0 0 0 8.73 3.117a9.75 9.75 0 0 0-4.147 4.196",clipRule:"evenodd"})]}),SvgIconWand=({title:tt,titleId:et,...rt})=>jsxRuntimeExports.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":et,...rt,children:[tt?jsxRuntimeExports.jsx("title",{id:et,children:tt}):null,jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 0a1 1 0 0 1 1 1 1 1 0 0 0 1 1 1 1 0 1 1 0 2 1 1 0 0 0-1 1 1 1 0 1 1-2 0 1 1 0 0 0-1-1 1 1 0 0 1 0-2 1 1 0 0 0 1-1 1 1 0 0 1 1-1m9.914 2a2 2 0 0 0-2.828 0L1 18.086a2 2 0 0 0 0 2.828L3.086 23a2 2 0 0 0 2.828 0L22 6.914a2 2 0 0 0 0-2.828zm-3.75 3.75L18.5 3.414 20.586 5.5 18.25 7.836zM14.75 7.164 2.414 19.5 4.5 21.586 16.836 9.25zM21 13a1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 1 1 0 0 1 1-1 1 1 0 1 0 0-2 1 1 0 0 1-1-1",clipRule:"evenodd"})]}),UploadCard=({item:tt,status:et="idle",isClickable:rt=!1,isSelectable:nt=!1,onDelete:st,onEdit:ot,onRetry:at})=>{const{t:lt}=useTranslation(),{src:ut,name:ct,info:dt}=tt,ht=et==="idle",ft=et==="loading",xt=et==="success",yt=dt==null?void 0:dt.type.startsWith("image"),vt={text:"",context:null,image:jsxRuntimeExports.jsx("img",{src:commonPlaceholder,alt:"",width:"48",height:"48"})},Et={error:{text:jsxRuntimeExports.jsx("strong",{children:jsxRuntimeExports.jsx("small",{className:"text-danger caption",children:lt("tiptap.upload.error")})}),context:jsxRuntimeExports.jsx(Button,{leftIcon:jsxRuntimeExports.jsx(SvgIconReset,{}),variant:"ghost",color:"tertiary",onClick:at,children:lt("tiptap.upload.retry")}),image:jsxRuntimeExports.jsx(Image$1,{alt:"",src:`${commonPlaceholder}/common/image-status-error.svg`,objectFit:"cover"})},idle:vt,loading:{text:"",context:jsxRuntimeExports.jsx(Tooltip,{message:lt("tiptap.tooltip.upload.loading"),placement:"top",children:jsxRuntimeExports.jsx(Loading,{isLoading:!0,loadingPosition:"left",className:"text-secondary"})}),image:vt.image},warning:vt,success:{text:jsxRuntimeExports.jsxs("em",{children:[dt==null?void 0:dt.type," ",(dt==null?void 0:dt.weight)&&`- ${dt.weight}`]}),context:jsxRuntimeExports.jsx(Tooltip,{message:lt("tiptap.tooltip.upload.loaded"),placement:"top",children:jsxRuntimeExports.jsx(SvgIconSuccessOutline,{className:"text-success"})}),image:jsxRuntimeExports.jsx(Image$1,{alt:"",src:ut??"",width:"48",objectFit:"cover",className:"rounded",style:{aspectRatio:1/1}})},unknown:vt},bt=()=>yt&&jsxRuntimeExports.jsx(Tooltip,{message:lt("tiptap.tooltip.upload.edit"),placement:"top",children:jsxRuntimeExports.jsx(IconButton,{icon:jsxRuntimeExports.jsx(SvgIconWand,{}),variant:"ghost","aria-label":lt("tiptap.tooltip.upload.loading"),disabled:ft||!xt,onClick:ot,color:"secondary"})});return jsxRuntimeExports.jsx(Card,{isClickable:rt,isSelectable:nt,className:"card-upload",children:jsxRuntimeExports.jsxs(Card.Body,{children:[jsxRuntimeExports.jsx("div",{className:"card-image",children:Et[et].image}),jsxRuntimeExports.jsxs("div",{className:"text-truncate",children:[jsxRuntimeExports.jsx(Card.Text,{children:ct}),jsxRuntimeExports.jsx(Card.Text,{className:"caption",children:Et[et].text})]}),!ht&&jsxRuntimeExports.jsx("div",{className:"ms-auto",children:jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center gap-12",children:[Et[et].context,!ht&&jsxRuntimeExports.jsx("div",{className:"vr"}),bt(),jsxRuntimeExports.jsx(Tooltip,{message:lt("tiptap.tooltip.upload.delete"),placement:"top",children:jsxRuntimeExports.jsx(IconButton,{icon:jsxRuntimeExports.jsx(SvgIconClose,{}),variant:"ghost","aria-label":lt("tiptap.tooltip.upload.delete"),color:"tertiary",onClick:st})})]})})]})})};var module={exports:{}},ENV=(tt=>(tt[tt.WEBGL_LEGACY=0]="WEBGL_LEGACY",tt[tt.WEBGL=1]="WEBGL",tt[tt.WEBGL2=2]="WEBGL2",tt))(ENV||{}),RENDERER_TYPE=(tt=>(tt[tt.UNKNOWN=0]="UNKNOWN",tt[tt.WEBGL=1]="WEBGL",tt[tt.CANVAS=2]="CANVAS",tt))(RENDERER_TYPE||{}),BUFFER_BITS=(tt=>(tt[tt.COLOR=16384]="COLOR",tt[tt.DEPTH=256]="DEPTH",tt[tt.STENCIL=1024]="STENCIL",tt))(BUFFER_BITS||{}),BLEND_MODES=(tt=>(tt[tt.NORMAL=0]="NORMAL",tt[tt.ADD=1]="ADD",tt[tt.MULTIPLY=2]="MULTIPLY",tt[tt.SCREEN=3]="SCREEN",tt[tt.OVERLAY=4]="OVERLAY",tt[tt.DARKEN=5]="DARKEN",tt[tt.LIGHTEN=6]="LIGHTEN",tt[tt.COLOR_DODGE=7]="COLOR_DODGE",tt[tt.COLOR_BURN=8]="COLOR_BURN",tt[tt.HARD_LIGHT=9]="HARD_LIGHT",tt[tt.SOFT_LIGHT=10]="SOFT_LIGHT",tt[tt.DIFFERENCE=11]="DIFFERENCE",tt[tt.EXCLUSION=12]="EXCLUSION",tt[tt.HUE=13]="HUE",tt[tt.SATURATION=14]="SATURATION",tt[tt.COLOR=15]="COLOR",tt[tt.LUMINOSITY=16]="LUMINOSITY",tt[tt.NORMAL_NPM=17]="NORMAL_NPM",tt[tt.ADD_NPM=18]="ADD_NPM",tt[tt.SCREEN_NPM=19]="SCREEN_NPM",tt[tt.NONE=20]="NONE",tt[tt.SRC_OVER=0]="SRC_OVER",tt[tt.SRC_IN=21]="SRC_IN",tt[tt.SRC_OUT=22]="SRC_OUT",tt[tt.SRC_ATOP=23]="SRC_ATOP",tt[tt.DST_OVER=24]="DST_OVER",tt[tt.DST_IN=25]="DST_IN",tt[tt.DST_OUT=26]="DST_OUT",tt[tt.DST_ATOP=27]="DST_ATOP",tt[tt.ERASE=26]="ERASE",tt[tt.SUBTRACT=28]="SUBTRACT",tt[tt.XOR=29]="XOR",tt))(BLEND_MODES||{}),DRAW_MODES=(tt=>(tt[tt.POINTS=0]="POINTS",tt[tt.LINES=1]="LINES",tt[tt.LINE_LOOP=2]="LINE_LOOP",tt[tt.LINE_STRIP=3]="LINE_STRIP",tt[tt.TRIANGLES=4]="TRIANGLES",tt[tt.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",tt[tt.TRIANGLE_FAN=6]="TRIANGLE_FAN",tt))(DRAW_MODES||{}),FORMATS=(tt=>(tt[tt.RGBA=6408]="RGBA",tt[tt.RGB=6407]="RGB",tt[tt.RG=33319]="RG",tt[tt.RED=6403]="RED",tt[tt.RGBA_INTEGER=36249]="RGBA_INTEGER",tt[tt.RGB_INTEGER=36248]="RGB_INTEGER",tt[tt.RG_INTEGER=33320]="RG_INTEGER",tt[tt.RED_INTEGER=36244]="RED_INTEGER",tt[tt.ALPHA=6406]="ALPHA",tt[tt.LUMINANCE=6409]="LUMINANCE",tt[tt.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",tt[tt.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",tt[tt.DEPTH_STENCIL=34041]="DEPTH_STENCIL",tt))(FORMATS||{}),TARGETS=(tt=>(tt[tt.TEXTURE_2D=3553]="TEXTURE_2D",tt[tt.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",tt[tt.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",tt[tt.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",tt[tt.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",tt[tt.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",tt[tt.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",tt[tt.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",tt[tt.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",tt))(TARGETS||{}),TYPES=(tt=>(tt[tt.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",tt[tt.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",tt[tt.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",tt[tt.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",tt[tt.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",tt[tt.UNSIGNED_INT=5125]="UNSIGNED_INT",tt[tt.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",tt[tt.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",tt[tt.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",tt[tt.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",tt[tt.BYTE=5120]="BYTE",tt[tt.SHORT=5122]="SHORT",tt[tt.INT=5124]="INT",tt[tt.FLOAT=5126]="FLOAT",tt[tt.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",tt[tt.HALF_FLOAT=36193]="HALF_FLOAT",tt))(TYPES||{}),SAMPLER_TYPES=(tt=>(tt[tt.FLOAT=0]="FLOAT",tt[tt.INT=1]="INT",tt[tt.UINT=2]="UINT",tt))(SAMPLER_TYPES||{}),SCALE_MODES=(tt=>(tt[tt.NEAREST=0]="NEAREST",tt[tt.LINEAR=1]="LINEAR",tt))(SCALE_MODES||{}),WRAP_MODES=(tt=>(tt[tt.CLAMP=33071]="CLAMP",tt[tt.REPEAT=10497]="REPEAT",tt[tt.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",tt))(WRAP_MODES||{}),MIPMAP_MODES=(tt=>(tt[tt.OFF=0]="OFF",tt[tt.POW2=1]="POW2",tt[tt.ON=2]="ON",tt[tt.ON_MANUAL=3]="ON_MANUAL",tt))(MIPMAP_MODES||{}),ALPHA_MODES=(tt=>(tt[tt.NPM=0]="NPM",tt[tt.UNPACK=1]="UNPACK",tt[tt.PMA=2]="PMA",tt[tt.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",tt[tt.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",tt[tt.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",tt))(ALPHA_MODES||{}),CLEAR_MODES=(tt=>(tt[tt.NO=0]="NO",tt[tt.YES=1]="YES",tt[tt.AUTO=2]="AUTO",tt[tt.BLEND=0]="BLEND",tt[tt.CLEAR=1]="CLEAR",tt[tt.BLIT=2]="BLIT",tt))(CLEAR_MODES||{}),GC_MODES=(tt=>(tt[tt.AUTO=0]="AUTO",tt[tt.MANUAL=1]="MANUAL",tt))(GC_MODES||{}),PRECISION=(tt=>(tt.LOW="lowp",tt.MEDIUM="mediump",tt.HIGH="highp",tt))(PRECISION||{}),MASK_TYPES=(tt=>(tt[tt.NONE=0]="NONE",tt[tt.SCISSOR=1]="SCISSOR",tt[tt.STENCIL=2]="STENCIL",tt[tt.SPRITE=3]="SPRITE",tt[tt.COLOR=4]="COLOR",tt))(MASK_TYPES||{}),MSAA_QUALITY=(tt=>(tt[tt.NONE=0]="NONE",tt[tt.LOW=2]="LOW",tt[tt.MEDIUM=4]="MEDIUM",tt[tt.HIGH=8]="HIGH",tt))(MSAA_QUALITY||{}),BUFFER_TYPE=(tt=>(tt[tt.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",tt[tt.ARRAY_BUFFER=34962]="ARRAY_BUFFER",tt[tt.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",tt))(BUFFER_TYPE||{});const BrowserAdapter={createCanvas:(tt,et)=>{const rt=document.createElement("canvas");return rt.width=tt,rt.height=et,rt},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(tt,et)=>fetch(tt,et),parseXML:tt=>new DOMParser().parseFromString(tt,"text/xml")},settings={ADAPTER:BrowserAdapter,RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var appleIphone=/iPhone/i,appleIpod=/iPod/i,appleTablet=/iPad/i,appleUniversal=/\biOS-universal(?:.+)Mac\b/i,androidPhone=/\bAndroid(?:.+)Mobile\b/i,androidTablet=/Android/i,amazonPhone=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,amazonTablet=/Silk/i,windowsPhone=/Windows Phone/i,windowsTablet=/\bWindows(?:.+)ARM\b/i,otherBlackBerry=/BlackBerry/i,otherBlackBerry10=/BB10/i,otherOpera=/Opera Mini/i,otherChrome=/\b(CriOS|Chrome)(?:.+)Mobile/i,otherFirefox=/Mobile(?:.+)Firefox\b/i,isAppleTabletOnIos13=function(tt){return typeof tt<"u"&&tt.platform==="MacIntel"&&typeof tt.maxTouchPoints=="number"&&tt.maxTouchPoints>1&&typeof MSStream>"u"};function createMatch(tt){return function(et){return et.test(tt)}}function isMobile$1(tt){var et={userAgent:"",platform:"",maxTouchPoints:0};!tt&&typeof navigator<"u"?et={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof tt=="string"?et.userAgent=tt:tt&&tt.userAgent&&(et={userAgent:tt.userAgent,platform:tt.platform,maxTouchPoints:tt.maxTouchPoints||0});var rt=et.userAgent,nt=rt.split("[FBAN");typeof nt[1]<"u"&&(rt=nt[0]),nt=rt.split("Twitter"),typeof nt[1]<"u"&&(rt=nt[0]);var st=createMatch(rt),ot={apple:{phone:st(appleIphone)&&!st(windowsPhone),ipod:st(appleIpod),tablet:!st(appleIphone)&&(st(appleTablet)||isAppleTabletOnIos13(et))&&!st(windowsPhone),universal:st(appleUniversal),device:(st(appleIphone)||st(appleIpod)||st(appleTablet)||st(appleUniversal)||isAppleTabletOnIos13(et))&&!st(windowsPhone)},amazon:{phone:st(amazonPhone),tablet:!st(amazonPhone)&&st(amazonTablet),device:st(amazonPhone)||st(amazonTablet)},android:{phone:!st(windowsPhone)&&st(amazonPhone)||!st(windowsPhone)&&st(androidPhone),tablet:!st(windowsPhone)&&!st(amazonPhone)&&!st(androidPhone)&&(st(amazonTablet)||st(androidTablet)),device:!st(windowsPhone)&&(st(amazonPhone)||st(amazonTablet)||st(androidPhone)||st(androidTablet))||st(/\bokhttp\b/i)},windows:{phone:st(windowsPhone),tablet:st(windowsTablet),device:st(windowsPhone)||st(windowsTablet)},other:{blackberry:st(otherBlackBerry),blackberry10:st(otherBlackBerry10),opera:st(otherOpera),firefox:st(otherFirefox),chrome:st(otherChrome),device:st(otherBlackBerry)||st(otherBlackBerry10)||st(otherOpera)||st(otherFirefox)||st(otherChrome)},any:!1,phone:!1,tablet:!1};return ot.any=ot.apple.device||ot.android.device||ot.windows.device||ot.other.device,ot.phone=ot.apple.phone||ot.android.phone||ot.windows.phone,ot.tablet=ot.apple.tablet||ot.android.tablet||ot.windows.tablet,ot}const isMobileCall=isMobile$1.default??isMobile$1,isMobile=isMobileCall(globalThis.navigator);settings.RETINA_PREFIX=/@([0-9\.]+)x/;settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var eventemitter3={exports:{}};(function(tt){var et=Object.prototype.hasOwnProperty,rt="~";function nt(){}Object.create&&(nt.prototype=Object.create(null),new nt().__proto__||(rt=!1));function st(ut,ct,dt){this.fn=ut,this.context=ct,this.once=dt||!1}function ot(ut,ct,dt,ht,ft){if(typeof dt!="function")throw new TypeError("The listener must be a function");var xt=new st(dt,ht||ut,ft),yt=rt?rt+ct:ct;return ut._events[yt]?ut._events[yt].fn?ut._events[yt]=[ut._events[yt],xt]:ut._events[yt].push(xt):(ut._events[yt]=xt,ut._eventsCount++),ut}function at(ut,ct){--ut._eventsCount===0?ut._events=new nt:delete ut._events[ct]}function lt(){this._events=new nt,this._eventsCount=0}lt.prototype.eventNames=function(){var ct=[],dt,ht;if(this._eventsCount===0)return ct;for(ht in dt=this._events)et.call(dt,ht)&&ct.push(rt?ht.slice(1):ht);return Object.getOwnPropertySymbols?ct.concat(Object.getOwnPropertySymbols(dt)):ct},lt.prototype.listeners=function(ct){var dt=rt?rt+ct:ct,ht=this._events[dt];if(!ht)return[];if(ht.fn)return[ht.fn];for(var ft=0,xt=ht.length,yt=new Array(xt);ft<xt;ft++)yt[ft]=ht[ft].fn;return yt},lt.prototype.listenerCount=function(ct){var dt=rt?rt+ct:ct,ht=this._events[dt];return ht?ht.fn?1:ht.length:0},lt.prototype.emit=function(ct,dt,ht,ft,xt,yt){var vt=rt?rt+ct:ct;if(!this._events[vt])return!1;var Et=this._events[vt],bt=arguments.length,St,wt;if(Et.fn){switch(Et.once&&this.removeListener(ct,Et.fn,void 0,!0),bt){case 1:return Et.fn.call(Et.context),!0;case 2:return Et.fn.call(Et.context,dt),!0;case 3:return Et.fn.call(Et.context,dt,ht),!0;case 4:return Et.fn.call(Et.context,dt,ht,ft),!0;case 5:return Et.fn.call(Et.context,dt,ht,ft,xt),!0;case 6:return Et.fn.call(Et.context,dt,ht,ft,xt,yt),!0}for(wt=1,St=new Array(bt-1);wt<bt;wt++)St[wt-1]=arguments[wt];Et.fn.apply(Et.context,St)}else{var Rt=Et.length,Ct;for(wt=0;wt<Rt;wt++)switch(Et[wt].once&&this.removeListener(ct,Et[wt].fn,void 0,!0),bt){case 1:Et[wt].fn.call(Et[wt].context);break;case 2:Et[wt].fn.call(Et[wt].context,dt);break;case 3:Et[wt].fn.call(Et[wt].context,dt,ht);break;case 4:Et[wt].fn.call(Et[wt].context,dt,ht,ft);break;default:if(!St)for(Ct=1,St=new Array(bt-1);Ct<bt;Ct++)St[Ct-1]=arguments[Ct];Et[wt].fn.apply(Et[wt].context,St)}}return!0},lt.prototype.on=function(ct,dt,ht){return ot(this,ct,dt,ht,!1)},lt.prototype.once=function(ct,dt,ht){return ot(this,ct,dt,ht,!0)},lt.prototype.removeListener=function(ct,dt,ht,ft){var xt=rt?rt+ct:ct;if(!this._events[xt])return this;if(!dt)return at(this,xt),this;var yt=this._events[xt];if(yt.fn)yt.fn===dt&&(!ft||yt.once)&&(!ht||yt.context===ht)&&at(this,xt);else{for(var vt=0,Et=[],bt=yt.length;vt<bt;vt++)(yt[vt].fn!==dt||ft&&!yt[vt].once||ht&&yt[vt].context!==ht)&&Et.push(yt[vt]);Et.length?this._events[xt]=Et.length===1?Et[0]:Et:at(this,xt)}return this},lt.prototype.removeAllListeners=function(ct){var dt;return ct?(dt=rt?rt+ct:ct,this._events[dt]&&at(this,dt)):(this._events=new nt,this._eventsCount=0),this},lt.prototype.off=lt.prototype.removeListener,lt.prototype.addListener=lt.prototype.on,lt.prefixed=rt,lt.EventEmitter=lt,tt.exports=lt})(eventemitter3);var eventemitter3Exports=eventemitter3.exports;const EventEmitter=getDefaultExportFromCjs(eventemitter3Exports);var earcut$2={exports:{}};earcut$2.exports=earcut;earcut$2.exports.default=earcut;function earcut(tt,et,rt){rt=rt||2;var nt=et&&et.length,st=nt?et[0]*rt:tt.length,ot=linkedList(tt,0,st,rt,!0),at=[];if(!ot||ot.next===ot.prev)return at;var lt,ut,ct,dt,ht,ft,xt;if(nt&&(ot=eliminateHoles(tt,et,ot,rt)),tt.length>80*rt){lt=ct=tt[0],ut=dt=tt[1];for(var yt=rt;yt<st;yt+=rt)ht=tt[yt],ft=tt[yt+1],ht<lt&&(lt=ht),ft<ut&&(ut=ft),ht>ct&&(ct=ht),ft>dt&&(dt=ft);xt=Math.max(ct-lt,dt-ut),xt=xt!==0?32767/xt:0}return earcutLinked(ot,at,rt,lt,ut,xt,0),at}function linkedList(tt,et,rt,nt,st){var ot,at;if(st===signedArea(tt,et,rt,nt)>0)for(ot=et;ot<rt;ot+=nt)at=insertNode(ot,tt[ot],tt[ot+1],at);else for(ot=rt-nt;ot>=et;ot-=nt)at=insertNode(ot,tt[ot],tt[ot+1],at);return at&&equals(at,at.next)&&(removeNode(at),at=at.next),at}function filterPoints(tt,et){if(!tt)return tt;et||(et=tt);var rt=tt,nt;do if(nt=!1,!rt.steiner&&(equals(rt,rt.next)||area(rt.prev,rt,rt.next)===0)){if(removeNode(rt),rt=et=rt.prev,rt===rt.next)break;nt=!0}else rt=rt.next;while(nt||rt!==et);return et}function earcutLinked(tt,et,rt,nt,st,ot,at){if(tt){!at&&ot&&indexCurve(tt,nt,st,ot);for(var lt=tt,ut,ct;tt.prev!==tt.next;){if(ut=tt.prev,ct=tt.next,ot?isEarHashed(tt,nt,st,ot):isEar(tt)){et.push(ut.i/rt|0),et.push(tt.i/rt|0),et.push(ct.i/rt|0),removeNode(tt),tt=ct.next,lt=ct.next;continue}if(tt=ct,tt===lt){at?at===1?(tt=cureLocalIntersections(filterPoints(tt),et,rt),earcutLinked(tt,et,rt,nt,st,ot,2)):at===2&&splitEarcut(tt,et,rt,nt,st,ot):earcutLinked(filterPoints(tt),et,rt,nt,st,ot,1);break}}}}function isEar(tt){var et=tt.prev,rt=tt,nt=tt.next;if(area(et,rt,nt)>=0)return!1;for(var st=et.x,ot=rt.x,at=nt.x,lt=et.y,ut=rt.y,ct=nt.y,dt=st<ot?st<at?st:at:ot<at?ot:at,ht=lt<ut?lt<ct?lt:ct:ut<ct?ut:ct,ft=st>ot?st>at?st:at:ot>at?ot:at,xt=lt>ut?lt>ct?lt:ct:ut>ct?ut:ct,yt=nt.next;yt!==et;){if(yt.x>=dt&&yt.x<=ft&&yt.y>=ht&&yt.y<=xt&&pointInTriangle(st,lt,ot,ut,at,ct,yt.x,yt.y)&&area(yt.prev,yt,yt.next)>=0)return!1;yt=yt.next}return!0}function isEarHashed(tt,et,rt,nt){var st=tt.prev,ot=tt,at=tt.next;if(area(st,ot,at)>=0)return!1;for(var lt=st.x,ut=ot.x,ct=at.x,dt=st.y,ht=ot.y,ft=at.y,xt=lt<ut?lt<ct?lt:ct:ut<ct?ut:ct,yt=dt<ht?dt<ft?dt:ft:ht<ft?ht:ft,vt=lt>ut?lt>ct?lt:ct:ut>ct?ut:ct,Et=dt>ht?dt>ft?dt:ft:ht>ft?ht:ft,bt=zOrder(xt,yt,et,rt,nt),St=zOrder(vt,Et,et,rt,nt),wt=tt.prevZ,Rt=tt.nextZ;wt&&wt.z>=bt&&Rt&&Rt.z<=St;){if(wt.x>=xt&&wt.x<=vt&&wt.y>=yt&&wt.y<=Et&&wt!==st&&wt!==at&&pointInTriangle(lt,dt,ut,ht,ct,ft,wt.x,wt.y)&&area(wt.prev,wt,wt.next)>=0||(wt=wt.prevZ,Rt.x>=xt&&Rt.x<=vt&&Rt.y>=yt&&Rt.y<=Et&&Rt!==st&&Rt!==at&&pointInTriangle(lt,dt,ut,ht,ct,ft,Rt.x,Rt.y)&&area(Rt.prev,Rt,Rt.next)>=0))return!1;Rt=Rt.nextZ}for(;wt&&wt.z>=bt;){if(wt.x>=xt&&wt.x<=vt&&wt.y>=yt&&wt.y<=Et&&wt!==st&&wt!==at&&pointInTriangle(lt,dt,ut,ht,ct,ft,wt.x,wt.y)&&area(wt.prev,wt,wt.next)>=0)return!1;wt=wt.prevZ}for(;Rt&&Rt.z<=St;){if(Rt.x>=xt&&Rt.x<=vt&&Rt.y>=yt&&Rt.y<=Et&&Rt!==st&&Rt!==at&&pointInTriangle(lt,dt,ut,ht,ct,ft,Rt.x,Rt.y)&&area(Rt.prev,Rt,Rt.next)>=0)return!1;Rt=Rt.nextZ}return!0}function cureLocalIntersections(tt,et,rt){var nt=tt;do{var st=nt.prev,ot=nt.next.next;!equals(st,ot)&&intersects(st,nt,nt.next,ot)&&locallyInside(st,ot)&&locallyInside(ot,st)&&(et.push(st.i/rt|0),et.push(nt.i/rt|0),et.push(ot.i/rt|0),removeNode(nt),removeNode(nt.next),nt=tt=ot),nt=nt.next}while(nt!==tt);return filterPoints(nt)}function splitEarcut(tt,et,rt,nt,st,ot){var at=tt;do{for(var lt=at.next.next;lt!==at.prev;){if(at.i!==lt.i&&isValidDiagonal(at,lt)){var ut=splitPolygon(at,lt);at=filterPoints(at,at.next),ut=filterPoints(ut,ut.next),earcutLinked(at,et,rt,nt,st,ot,0),earcutLinked(ut,et,rt,nt,st,ot,0);return}lt=lt.next}at=at.next}while(at!==tt)}function eliminateHoles(tt,et,rt,nt){var st=[],ot,at,lt,ut,ct;for(ot=0,at=et.length;ot<at;ot++)lt=et[ot]*nt,ut=ot<at-1?et[ot+1]*nt:tt.length,ct=linkedList(tt,lt,ut,nt,!1),ct===ct.next&&(ct.steiner=!0),st.push(getLeftmost(ct));for(st.sort(compareX),ot=0;ot<st.length;ot++)rt=eliminateHole(st[ot],rt);return rt}function compareX(tt,et){return tt.x-et.x}function eliminateHole(tt,et){var rt=findHoleBridge(tt,et);if(!rt)return et;var nt=splitPolygon(rt,tt);return filterPoints(nt,nt.next),filterPoints(rt,rt.next)}function findHoleBridge(tt,et){var rt=et,nt=tt.x,st=tt.y,ot=-1/0,at;do{if(st<=rt.y&&st>=rt.next.y&&rt.next.y!==rt.y){var lt=rt.x+(st-rt.y)*(rt.next.x-rt.x)/(rt.next.y-rt.y);if(lt<=nt&<>ot&&(ot=lt,at=rt.x<rt.next.x?rt:rt.next,lt===nt))return at}rt=rt.next}while(rt!==et);if(!at)return null;var ut=at,ct=at.x,dt=at.y,ht=1/0,ft;rt=at;do nt>=rt.x&&rt.x>=ct&&nt!==rt.x&&pointInTriangle(st<dt?nt:ot,st,ct,dt,st<dt?ot:nt,st,rt.x,rt.y)&&(ft=Math.abs(st-rt.y)/(nt-rt.x),locallyInside(rt,tt)&&(ft<ht||ft===ht&&(rt.x>at.x||rt.x===at.x&§orContainsSector(at,rt)))&&(at=rt,ht=ft)),rt=rt.next;while(rt!==ut);return at}function sectorContainsSector(tt,et){return area(tt.prev,tt,et.prev)<0&&area(et.next,tt,tt.next)<0}function indexCurve(tt,et,rt,nt){var st=tt;do st.z===0&&(st.z=zOrder(st.x,st.y,et,rt,nt)),st.prevZ=st.prev,st.nextZ=st.next,st=st.next;while(st!==tt);st.prevZ.nextZ=null,st.prevZ=null,sortLinked(st)}function sortLinked(tt){var et,rt,nt,st,ot,at,lt,ut,ct=1;do{for(rt=tt,tt=null,ot=null,at=0;rt;){for(at++,nt=rt,lt=0,et=0;et<ct&&(lt++,nt=nt.nextZ,!!nt);et++);for(ut=ct;lt>0||ut>0&&nt;)lt!==0&&(ut===0||!nt||rt.z<=nt.z)?(st=rt,rt=rt.nextZ,lt--):(st=nt,nt=nt.nextZ,ut--),ot?ot.nextZ=st:tt=st,st.prevZ=ot,ot=st;rt=nt}ot.nextZ=null,ct*=2}while(at>1);return tt}function zOrder(tt,et,rt,nt,st){return tt=(tt-rt)*st|0,et=(et-nt)*st|0,tt=(tt|tt<<8)&16711935,tt=(tt|tt<<4)&252645135,tt=(tt|tt<<2)&858993459,tt=(tt|tt<<1)&1431655765,et=(et|et<<8)&16711935,et=(et|et<<4)&252645135,et=(et|et<<2)&858993459,et=(et|et<<1)&1431655765,tt|et<<1}function getLeftmost(tt){var et=tt,rt=tt;do(et.x<rt.x||et.x===rt.x&&et.y<rt.y)&&(rt=et),et=et.next;while(et!==tt);return rt}function pointInTriangle(tt,et,rt,nt,st,ot,at,lt){return(st-at)*(et-lt)>=(tt-at)*(ot-lt)&&(tt-at)*(nt-lt)>=(rt-at)*(et-lt)&&(rt-at)*(ot-lt)>=(st-at)*(nt-lt)}function isValidDiagonal(tt,et){return tt.next.i!==et.i&&tt.prev.i!==et.i&&!intersectsPolygon(tt,et)&&(locallyInside(tt,et)&&locallyInside(et,tt)&&middleInside(tt,et)&&(area(tt.prev,tt,et.prev)||area(tt,et.prev,et))||equals(tt,et)&&area(tt.prev,tt,tt.next)>0&&area(et.prev,et,et.next)>0)}function area(tt,et,rt){return(et.y-tt.y)*(rt.x-et.x)-(et.x-tt.x)*(rt.y-et.y)}function equals(tt,et){return tt.x===et.x&&tt.y===et.y}function intersects(tt,et,rt,nt){var st=sign$3(area(tt,et,rt)),ot=sign$3(area(tt,et,nt)),at=sign$3(area(rt,nt,tt)),lt=sign$3(area(rt,nt,et));return!!(st!==ot&&at!==lt||st===0&&onSegment(tt,rt,et)||ot===0&&onSegment(tt,nt,et)||at===0&&onSegment(rt,tt,nt)||lt===0&&onSegment(rt,et,nt))}function onSegment(tt,et,rt){return et.x<=Math.max(tt.x,rt.x)&&et.x>=Math.min(tt.x,rt.x)&&et.y<=Math.max(tt.y,rt.y)&&et.y>=Math.min(tt.y,rt.y)}function sign$3(tt){return tt>0?1:tt<0?-1:0}function intersectsPolygon(tt,et){var rt=tt;do{if(rt.i!==tt.i&&rt.next.i!==tt.i&&rt.i!==et.i&&rt.next.i!==et.i&&intersects(rt,rt.next,tt,et))return!0;rt=rt.next}while(rt!==tt);return!1}function locallyInside(tt,et){return area(tt.prev,tt,tt.next)<0?area(tt,et,tt.next)>=0&&area(tt,tt.prev,et)>=0:area(tt,et,tt.prev)<0||area(tt,tt.next,et)<0}function middleInside(tt,et){var rt=tt,nt=!1,st=(tt.x+et.x)/2,ot=(tt.y+et.y)/2;do rt.y>ot!=rt.next.y>ot&&rt.next.y!==rt.y&&st<(rt.next.x-rt.x)*(ot-rt.y)/(rt.next.y-rt.y)+rt.x&&(nt=!nt),rt=rt.next;while(rt!==tt);return nt}function splitPolygon(tt,et){var rt=new Node$1(tt.i,tt.x,tt.y),nt=new Node$1(et.i,et.x,et.y),st=tt.next,ot=et.prev;return tt.next=et,et.prev=tt,rt.next=st,st.prev=rt,nt.next=rt,rt.prev=nt,ot.next=nt,nt.prev=ot,nt}function insertNode(tt,et,rt,nt){var st=new Node$1(tt,et,rt);return nt?(st.next=nt.next,st.prev=nt,nt.next.prev=st,nt.next=st):(st.prev=st,st.next=st),st}function removeNode(tt){tt.next.prev=tt.prev,tt.prev.next=tt.next,tt.prevZ&&(tt.prevZ.nextZ=tt.nextZ),tt.nextZ&&(tt.nextZ.prevZ=tt.prevZ)}function Node$1(tt,et,rt){this.i=tt,this.x=et,this.y=rt,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}earcut.deviation=function(tt,et,rt,nt){var st=et&&et.length,ot=st?et[0]*rt:tt.length,at=Math.abs(signedArea(tt,0,ot,rt));if(st)for(var lt=0,ut=et.length;lt<ut;lt++){var ct=et[lt]*rt,dt=lt<ut-1?et[lt+1]*rt:tt.length;at-=Math.abs(signedArea(tt,ct,dt,rt))}var ht=0;for(lt=0;lt<nt.length;lt+=3){var ft=nt[lt]*rt,xt=nt[lt+1]*rt,yt=nt[lt+2]*rt;ht+=Math.abs((tt[ft]-tt[yt])*(tt[xt+1]-tt[ft+1])-(tt[ft]-tt[xt])*(tt[yt+1]-tt[ft+1]))}return at===0&&ht===0?0:Math.abs((ht-at)/at)};function signedArea(tt,et,rt,nt){for(var st=0,ot=et,at=rt-nt;ot<rt;ot+=nt)st+=(tt[at]-tt[ot])*(tt[ot+1]+tt[at+1]),at=ot;return st}earcut.flatten=function(tt){for(var et=tt[0][0].length,rt={vertices:[],holes:[],dimensions:et},nt=0,st=0;st<tt.length;st++){for(var ot=0;ot<tt[st].length;ot++)for(var at=0;at<et;at++)rt.vertices.push(tt[st][ot][at]);st>0&&(nt+=tt[st-1].length,rt.holes.push(nt))}return rt};var earcutExports=earcut$2.exports;const earcut$1=getDefaultExportFromCjs(earcutExports);var punycode$1={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */punycode$1.exports;(function(tt,et){(function(rt){var nt=et&&!et.nodeType&&et,st=tt&&!tt.nodeType&&tt,ot=typeof commonjsGlobal=="object"&&commonjsGlobal;(ot.global===ot||ot.window===ot||ot.self===ot)&&(rt=ot);var at,lt=2147483647,ut=36,ct=1,dt=26,ht=38,ft=700,xt=72,yt=128,vt="-",Et=/^xn--/,bt=/[^\x20-\x7E]/,St=/[\x2E\u3002\uFF0E\uFF61]/g,wt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Rt=ut-ct,Ct=Math.floor,Pt=String.fromCharCode,It;function jt(Bt){throw new RangeError(wt[Bt])}function Dt(Bt,Yt){for(var Zt=Bt.length,Xt=[];Zt--;)Xt[Zt]=Yt(Bt[Zt]);return Xt}function Vt(Bt,Yt){var Zt=Bt.split("@"),Xt="";Zt.length>1&&(Xt=Zt[0]+"@",Bt=Zt[1]),Bt=Bt.replace(St,".");var rr=Bt.split("."),cr=Dt(rr,Yt).join(".");return Xt+cr}function Ft(Bt){for(var Yt=[],Zt=0,Xt=Bt.length,rr,cr;Zt<Xt;)rr=Bt.charCodeAt(Zt++),rr>=55296&&rr<=56319&&Zt<Xt?(cr=Bt.charCodeAt(Zt++),(cr&64512)==56320?Yt.push(((rr&1023)<<10)+(cr&1023)+65536):(Yt.push(rr),Zt--)):Yt.push(rr);return Yt}function Ht(Bt){return Dt(Bt,function(Yt){var Zt="";return Yt>65535&&(Yt-=65536,Zt+=Pt(Yt>>>10&1023|55296),Yt=56320|Yt&1023),Zt+=Pt(Yt),Zt}).join("")}function Nt(Bt){return Bt-48<10?Bt-22:Bt-65<26?Bt-65:Bt-97<26?Bt-97:ut}function Lt(Bt,Yt){return Bt+22+75*(Bt<26)-((Yt!=0)<<5)}function Mt(Bt,Yt,Zt){var Xt=0;for(Bt=Zt?Ct(Bt/ft):Bt>>1,Bt+=Ct(Bt/Yt);Bt>Rt*dt>>1;Xt+=ut)Bt=Ct(Bt/Rt);return Ct(Xt+(Rt+1)*Bt/(Bt+ht))}function zt(Bt){var Yt=[],Zt=Bt.length,Xt,rr=0,cr=yt,ur=xt,mr,vr,Er,br,hr,Ar,Cr,Ur,Sr;for(mr=Bt.lastIndexOf(vt),mr<0&&(mr=0),vr=0;vr<mr;++vr)Bt.charCodeAt(vr)>=128&&jt("not-basic"),Yt.push(Bt.charCodeAt(vr));for(Er=mr>0?mr+1:0;Er<Zt;){for(br=rr,hr=1,Ar=ut;Er>=Zt&&jt("invalid-input"),Cr=Nt(Bt.charCodeAt(Er++)),(Cr>=ut||Cr>Ct((lt-rr)/hr))&&jt("overflow"),rr+=Cr*hr,Ur=Ar<=ur?ct:Ar>=ur+dt?dt:Ar-ur,!(Cr<Ur);Ar+=ut)Sr=ut-Ur,hr>Ct(lt/Sr)&&jt("overflow"),hr*=Sr;Xt=Yt.length+1,ur=Mt(rr-br,Xt,br==0),Ct(rr/Xt)>lt-cr&&jt("overflow"),cr+=Ct(rr/Xt),rr%=Xt,Yt.splice(rr++,0,cr)}return Ht(Yt)}function Gt(Bt){var Yt,Zt,Xt,rr,cr,ur,mr,vr,Er,br,hr,Ar=[],Cr,Ur,Sr,kr;for(Bt=Ft(Bt),Cr=Bt.length,Yt=yt,Zt=0,cr=xt,ur=0;ur<Cr;++ur)hr=Bt[ur],hr<128&&Ar.push(Pt(hr));for(Xt=rr=Ar.length,rr&&Ar.push(vt);Xt<Cr;){for(mr=lt,ur=0;ur<Cr;++ur)hr=Bt[ur],hr>=Yt&&hr<mr&&(mr=hr);for(Ur=Xt+1,mr-Yt>Ct((lt-Zt)/Ur)&&jt("overflow"),Zt+=(mr-Yt)*Ur,Yt=mr,ur=0;ur<Cr;++ur)if(hr=Bt[ur],hr<Yt&&++Zt>lt&&jt("overflow"),hr==Yt){for(vr=Zt,Er=ut;br=Er<=cr?ct:Er>=cr+dt?dt:Er-cr,!(vr<br);Er+=ut)kr=vr-br,Sr=ut-br,Ar.push(Pt(Lt(br+kr%Sr,0))),vr=Ct(kr/Sr);Ar.push(Pt(Lt(vr,0))),cr=Mt(Zt,Ur,Xt==rr),Zt=0,++Xt}++Zt,++Yt}return Ar.join("")}function Ot(Bt){return Vt(Bt,function(Yt){return Et.test(Yt)?zt(Yt.slice(4).toLowerCase()):Yt})}function Ut(Bt){return Vt(Bt,function(Yt){return bt.test(Yt)?"xn--"+Gt(Yt):Yt})}if(at={version:"1.4.1",ucs2:{decode:Ft,encode:Ht},decode:zt,encode:Gt,toASCII:Ut,toUnicode:Ot},nt&&st)if(tt.exports==nt)st.exports=at;else for(It in at)at.hasOwnProperty(It)&&(nt[It]=at[It]);else rt.punycode=at})(commonjsGlobal)})(punycode$1,punycode$1.exports);var punycodeExports=punycode$1.exports,type=TypeError;const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize$1=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace$1=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat$1=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||!0)?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(tt){return tt.__proto__}:null);function addNumericSeparator(tt,et){if(tt===1/0||tt===-1/0||tt!==tt||tt&&tt>-1e3&&tt<1e3||$test.call(/e/,et))return et;var rt=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof tt=="number"){var nt=tt<0?-$floor(-tt):$floor(tt);if(nt!==tt){var st=String(nt),ot=$slice.call(et,st.length+1);return $replace$1.call(st,rt,"$&_")+"."+$replace$1.call($replace$1.call(ot,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace$1.call(et,rt,"$&_")}var utilInspect=require$$0$1,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,quotes={__proto__:null,double:'"',single:"'"},quoteREs={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},objectInspect=function tt(et,rt,nt,st){var ot=rt||{};if(has$3(ot,"quoteStyle")&&!has$3(quotes,ot.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(ot,"maxStringLength")&&(typeof ot.maxStringLength=="number"?ot.maxStringLength<0&&ot.maxStringLength!==1/0:ot.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var at=has$3(ot,"customInspect")?ot.customInspect:!0;if(typeof at!="boolean"&&at!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(ot,"indent")&&ot.indent!==null&&ot.indent!==" "&&!(parseInt(ot.indent,10)===ot.indent&&ot.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(ot,"numericSeparator")&&typeof ot.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var lt=ot.numericSeparator;if(typeof et>"u")return"undefined";if(et===null)return"null";if(typeof et=="boolean")return et?"true":"false";if(typeof et=="string")return inspectString(et,ot);if(typeof et=="number"){if(et===0)return 1/0/et>0?"0":"-0";var ut=String(et);return lt?addNumericSeparator(et,ut):ut}if(typeof et=="bigint"){var ct=String(et)+"n";return lt?addNumericSeparator(et,ct):ct}var dt=typeof ot.depth>"u"?5:ot.depth;if(typeof nt>"u"&&(nt=0),nt>=dt&&dt>0&&typeof et=="object")return isArray$3(et)?"[Array]":"[Object]";var ht=getIndent(ot,nt);if(typeof st>"u")st=[];else if(indexOf(st,et)>=0)return"[Circular]";function ft(Nt,Lt,Mt){if(Lt&&(st=$arrSlice.call(st),st.push(Lt)),Mt){var zt={depth:ot.depth};return has$3(ot,"quoteStyle")&&(zt.quoteStyle=ot.quoteStyle),tt(Nt,zt,nt+1,st)}return tt(Nt,ot,nt+1,st)}if(typeof et=="function"&&!isRegExp$1(et)){var xt=nameOf(et),yt=arrObjKeys(et,ft);return"[Function"+(xt?": "+xt:" (anonymous)")+"]"+(yt.length>0?" { "+$join.call(yt,", ")+" }":"")}if(isSymbol(et)){var vt=hasShammedSymbols?$replace$1.call(String(et),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(et);return typeof et=="object"&&!hasShammedSymbols?markBoxed(vt):vt}if(isElement(et)){for(var Et="<"+$toLowerCase.call(String(et.nodeName)),bt=et.attributes||[],St=0;St<bt.length;St++)Et+=" "+bt[St].name+"="+wrapQuotes(quote(bt[St].value),"double",ot);return Et+=">",et.childNodes&&et.childNodes.length&&(Et+="..."),Et+="</"+$toLowerCase.call(String(et.nodeName))+">",Et}if(isArray$3(et)){if(et.length===0)return"[]";var wt=arrObjKeys(et,ft);return ht&&!singleLineValues(wt)?"["+indentedJoin(wt,ht)+"]":"[ "+$join.call(wt,", ")+" ]"}if(isError(et)){var Rt=arrObjKeys(et,ft);return!("cause"in Error.prototype)&&"cause"in et&&!isEnumerable.call(et,"cause")?"{ ["+String(et)+"] "+$join.call($concat$1.call("[cause]: "+ft(et.cause),Rt),", ")+" }":Rt.length===0?"["+String(et)+"]":"{ ["+String(et)+"] "+$join.call(Rt,", ")+" }"}if(typeof et=="object"&&at){if(inspectSymbol&&typeof et[inspectSymbol]=="function"&&utilInspect)return utilInspect(et,{depth:dt-nt});if(at!=="symbol"&&typeof et.inspect=="function")return et.inspect()}if(isMap(et)){var Ct=[];return mapForEach&&mapForEach.call(et,function(Nt,Lt){Ct.push(ft(Lt,et,!0)+" => "+ft(Nt,et))}),collectionOf("Map",mapSize$1.call(et),Ct,ht)}if(isSet(et)){var Pt=[];return setForEach&&setForEach.call(et,function(Nt){Pt.push(ft(Nt,et))}),collectionOf("Set",setSize.call(et),Pt,ht)}if(isWeakMap(et))return weakCollectionOf("WeakMap");if(isWeakSet(et))return weakCollectionOf("WeakSet");if(isWeakRef(et))return weakCollectionOf("WeakRef");if(isNumber(et))return markBoxed(ft(Number(et)));if(isBigInt(et))return markBoxed(ft(bigIntValueOf.call(et)));if(isBoolean(et))return markBoxed(booleanValueOf.call(et));if(isString(et))return markBoxed(ft(String(et)));if(typeof window<"u"&&et===window)return"{ [object Window] }";if(typeof globalThis<"u"&&et===globalThis||typeof commonjsGlobal<"u"&&et===commonjsGlobal)return"{ [object globalThis] }";if(!isDate(et)&&!isRegExp$1(et)){var It=arrObjKeys(et,ft),jt=gPO?gPO(et)===Object.prototype:et instanceof Object||et.constructor===Object,Dt=et instanceof Object?"":"null prototype",Vt=!jt&&toStringTag&&Object(et)===et&&toStringTag in et?$slice.call(toStr(et),8,-1):Dt?"Object":"",Ft=jt||typeof et.constructor!="function"?"":et.constructor.name?et.constructor.name+" ":"",Ht=Ft+(Vt||Dt?"["+$join.call($concat$1.call([],Vt||[],Dt||[]),": ")+"] ":"");return It.length===0?Ht+"{}":ht?Ht+"{"+indentedJoin(It,ht)+"}":Ht+"{ "+$join.call(It,", ")+" }"}return String(et)};function wrapQuotes(tt,et,rt){var nt=rt.quoteStyle||et,st=quotes[nt];return st+tt+st}function quote(tt){return $replace$1.call(String(tt),/"/g,""")}function canTrustToString(tt){return!toStringTag||!(typeof tt=="object"&&(toStringTag in tt||typeof tt[toStringTag]<"u"))}function isArray$3(tt){return toStr(tt)==="[object Array]"&&canTrustToString(tt)}function isDate(tt){return toStr(tt)==="[object Date]"&&canTrustToString(tt)}function isRegExp$1(tt){return toStr(tt)==="[object RegExp]"&&canTrustToString(tt)}function isError(tt){return toStr(tt)==="[object Error]"&&canTrustToString(tt)}function isString(tt){return toStr(tt)==="[object String]"&&canTrustToString(tt)}function isNumber(tt){return toStr(tt)==="[object Number]"&&canTrustToString(tt)}function isBoolean(tt){return toStr(tt)==="[object Boolean]"&&canTrustToString(tt)}function isSymbol(tt){if(hasShammedSymbols)return tt&&typeof tt=="object"&&tt instanceof Symbol;if(typeof tt=="symbol")return!0;if(!tt||typeof tt!="object"||!symToString)return!1;try{return symToString.call(tt),!0}catch{}return!1}function isBigInt(tt){if(!tt||typeof tt!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(tt),!0}catch{}return!1}var hasOwn$1=Object.prototype.hasOwnProperty||function(tt){return tt in this};function has$3(tt,et){return hasOwn$1.call(tt,et)}function toStr(tt){return objectToString.call(tt)}function nameOf(tt){if(tt.name)return tt.name;var et=$match.call(functionToString.call(tt),/^function\s*([\w$]+)/);return et?et[1]:null}function indexOf(tt,et){if(tt.indexOf)return tt.indexOf(et);for(var rt=0,nt=tt.length;rt<nt;rt++)if(tt[rt]===et)return rt;return-1}function isMap(tt){if(!mapSize$1||!tt||typeof tt!="object")return!1;try{mapSize$1.call(tt);try{setSize.call(tt)}catch{return!0}return tt instanceof Map}catch{}return!1}function isWeakMap(tt){if(!weakMapHas||!tt||typeof tt!="object")return!1;try{weakMapHas.call(tt,weakMapHas);try{weakSetHas.call(tt,weakSetHas)}catch{return!0}return tt instanceof WeakMap}catch{}return!1}function isWeakRef(tt){if(!weakRefDeref||!tt||typeof tt!="object")return!1;try{return weakRefDeref.call(tt),!0}catch{}return!1}function isSet(tt){if(!setSize||!tt||typeof tt!="object")return!1;try{setSize.call(tt);try{mapSize$1.call(tt)}catch{return!0}return tt instanceof Set}catch{}return!1}function isWeakSet(tt){if(!weakSetHas||!tt||typeof tt!="object")return!1;try{weakSetHas.call(tt,weakSetHas);try{weakMapHas.call(tt,weakMapHas)}catch{return!0}return tt instanceof WeakSet}catch{}return!1}function isElement(tt){return!tt||typeof tt!="object"?!1:typeof HTMLElement<"u"&&tt instanceof HTMLElement?!0:typeof tt.nodeName=="string"&&typeof tt.getAttribute=="function"}function inspectString(tt,et){if(tt.length>et.maxStringLength){var rt=tt.length-et.maxStringLength,nt="... "+rt+" more character"+(rt>1?"s":"");return inspectString($slice.call(tt,0,et.maxStringLength),et)+nt}var st=quoteREs[et.quoteStyle||"single"];st.lastIndex=0;var ot=$replace$1.call($replace$1.call(tt,st,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(ot,"single",et)}function lowbyte(tt){var et=tt.charCodeAt(0),rt={8:"b",9:"t",10:"n",12:"f",13:"r"}[et];return rt?"\\"+rt:"\\x"+(et<16?"0":"")+$toUpperCase.call(et.toString(16))}function markBoxed(tt){return"Object("+tt+")"}function weakCollectionOf(tt){return tt+" { ? }"}function collectionOf(tt,et,rt,nt){var st=nt?indentedJoin(rt,nt):$join.call(rt,", ");return tt+" ("+et+") {"+st+"}"}function singleLineValues(tt){for(var et=0;et<tt.length;et++)if(indexOf(tt[et],`
|
|
229
229
|
`)>=0)return!1;return!0}function getIndent(tt,et){var rt;if(tt.indent===" ")rt=" ";else if(typeof tt.indent=="number"&&tt.indent>0)rt=$join.call(Array(tt.indent+1)," ");else return null;return{base:rt,prev:$join.call(Array(et+1),rt)}}function indentedJoin(tt,et){if(tt.length===0)return"";var rt=`
|
|
230
230
|
`+et.prev+et.base;return rt+$join.call(tt,","+rt)+`
|
|
231
231
|
`+et.prev}function arrObjKeys(tt,et){var rt=isArray$3(tt),nt=[];if(rt){nt.length=tt.length;for(var st=0;st<tt.length;st++)nt[st]=has$3(tt,st)?et(tt[st],tt):""}var ot=typeof gOPS=="function"?gOPS(tt):[],at;if(hasShammedSymbols){at={};for(var lt=0;lt<ot.length;lt++)at["$"+ot[lt]]=ot[lt]}for(var ut in tt)has$3(tt,ut)&&(rt&&String(Number(ut))===ut&&ut<tt.length||hasShammedSymbols&&at["$"+ut]instanceof Symbol||($test.call(/[^\w$]/,ut)?nt.push(et(ut,tt)+": "+et(tt[ut],tt)):nt.push(ut+": "+et(tt[ut],tt))));if(typeof gOPS=="function")for(var ct=0;ct<ot.length;ct++)isEnumerable.call(tt,ot[ct])&&nt.push("["+et(ot[ct])+"]: "+et(tt[ot[ct]],tt));return nt}var inspect$3=objectInspect,$TypeError$5=type,listGetNode=function(tt,et,rt){for(var nt=tt,st;(st=nt.next)!=null;nt=st)if(st.key===et)return nt.next=st.next,rt||(st.next=tt.next,tt.next=st),st},listGet=function(tt,et){if(tt){var rt=listGetNode(tt,et);return rt&&rt.value}},listSet=function(tt,et,rt){var nt=listGetNode(tt,et);nt?nt.value=rt:tt.next={key:et,next:tt.next,value:rt}},listHas=function(tt,et){return tt?!!listGetNode(tt,et):!1},listDelete=function(tt,et){if(tt)return listGetNode(tt,et,!0)},sideChannelList=function tt(){var et,rt={assert:function(nt){if(!rt.has(nt))throw new $TypeError$5("Side channel does not contain "+inspect$3(nt))},delete:function(nt){var st=et&&et.next,ot=listDelete(et,nt);return ot&&st&&st===ot&&(et=void 0),!!ot},get:function(nt){return listGet(et,nt)},has:function(nt){return listHas(et,nt)},set:function(nt,st){et||(et={next:void 0}),listSet(et,nt,st)}};return rt},esObjectAtoms=Object,esErrors=Error,_eval=EvalError,range=RangeError,ref=ReferenceError,syntax=SyntaxError,uri=URIError,abs$1=Math.abs,floor$1=Math.floor,max$1=Math.max,min$1=Math.min,pow$1=Math.pow,round$2=Math.round,_isNaN=Number.isNaN||function tt(et){return et!==et},$isNaN=_isNaN,sign$2=function tt(et){return $isNaN(et)||et===0?et:et<0?-1:1},gOPD=Object.getOwnPropertyDescriptor,$gOPD$1=gOPD;if($gOPD$1)try{$gOPD$1([],"length")}catch{$gOPD$1=null}var gopd=$gOPD$1,$defineProperty$1=Object.defineProperty||!1;if($defineProperty$1)try{$defineProperty$1({},"a",{value:1})}catch{$defineProperty$1=!1}var esDefineProperty=$defineProperty$1,shams,hasRequiredShams;function requireShams(){return hasRequiredShams||(hasRequiredShams=1,shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var et={},rt=Symbol("test"),nt=Object(rt);if(typeof rt=="string"||Object.prototype.toString.call(rt)!=="[object Symbol]"||Object.prototype.toString.call(nt)!=="[object Symbol]")return!1;var st=42;et[rt]=st;for(var ot in et)return!1;if(typeof Object.keys=="function"&&Object.keys(et).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(et).length!==0)return!1;var at=Object.getOwnPropertySymbols(et);if(at.length!==1||at[0]!==rt||!Object.prototype.propertyIsEnumerable.call(et,rt))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var lt=Object.getOwnPropertyDescriptor(et,rt);if(lt.value!==st||lt.enumerable!==!0)return!1}return!0}),shams}var hasSymbols$1,hasRequiredHasSymbols;function requireHasSymbols(){if(hasRequiredHasSymbols)return hasSymbols$1;hasRequiredHasSymbols=1;var tt=typeof Symbol<"u"&&Symbol,et=requireShams();return hasSymbols$1=function(){return typeof tt!="function"||typeof Symbol!="function"||typeof tt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:et()},hasSymbols$1}var Reflect_getPrototypeOf,hasRequiredReflect_getPrototypeOf;function requireReflect_getPrototypeOf(){return hasRequiredReflect_getPrototypeOf||(hasRequiredReflect_getPrototypeOf=1,Reflect_getPrototypeOf=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Reflect_getPrototypeOf}var Object_getPrototypeOf,hasRequiredObject_getPrototypeOf;function requireObject_getPrototypeOf(){if(hasRequiredObject_getPrototypeOf)return Object_getPrototypeOf;hasRequiredObject_getPrototypeOf=1;var tt=esObjectAtoms;return Object_getPrototypeOf=tt.getPrototypeOf||null,Object_getPrototypeOf}var implementation,hasRequiredImplementation;function requireImplementation(){if(hasRequiredImplementation)return implementation;hasRequiredImplementation=1;var tt="Function.prototype.bind called on incompatible ",et=Object.prototype.toString,rt=Math.max,nt="[object Function]",st=function(ut,ct){for(var dt=[],ht=0;ht<ut.length;ht+=1)dt[ht]=ut[ht];for(var ft=0;ft<ct.length;ft+=1)dt[ft+ut.length]=ct[ft];return dt},ot=function(ut,ct){for(var dt=[],ht=ct,ft=0;ht<ut.length;ht+=1,ft+=1)dt[ft]=ut[ht];return dt},at=function(lt,ut){for(var ct="",dt=0;dt<lt.length;dt+=1)ct+=lt[dt],dt+1<lt.length&&(ct+=ut);return ct};return implementation=function(ut){var ct=this;if(typeof ct!="function"||et.apply(ct)!==nt)throw new TypeError(tt+ct);for(var dt=ot(arguments,1),ht,ft=function(){if(this instanceof ht){var bt=ct.apply(this,st(dt,arguments));return Object(bt)===bt?bt:this}return ct.apply(ut,st(dt,arguments))},xt=rt(0,ct.length-dt.length),yt=[],vt=0;vt<xt;vt++)yt[vt]="$"+vt;if(ht=Function("binder","return function ("+at(yt,",")+"){ return binder.apply(this,arguments); }")(ft),ct.prototype){var Et=function(){};Et.prototype=ct.prototype,ht.prototype=new Et,Et.prototype=null}return ht},implementation}var functionBind,hasRequiredFunctionBind;function requireFunctionBind(){if(hasRequiredFunctionBind)return functionBind;hasRequiredFunctionBind=1;var tt=requireImplementation();return functionBind=Function.prototype.bind||tt,functionBind}var functionCall,hasRequiredFunctionCall;function requireFunctionCall(){return hasRequiredFunctionCall||(hasRequiredFunctionCall=1,functionCall=Function.prototype.call),functionCall}var functionApply,hasRequiredFunctionApply;function requireFunctionApply(){return hasRequiredFunctionApply||(hasRequiredFunctionApply=1,functionApply=Function.prototype.apply),functionApply}var reflectApply=typeof Reflect<"u"&&Reflect&&Reflect.apply,bind$2=requireFunctionBind(),$apply$1=requireFunctionApply(),$call$2=requireFunctionCall(),$reflectApply=reflectApply,actualApply=$reflectApply||bind$2.call($call$2,$apply$1),bind$1=requireFunctionBind(),$TypeError$4=type,$call$1=requireFunctionCall(),$actualApply=actualApply,callBindApplyHelpers=function tt(et){if(et.length<1||typeof et[0]!="function")throw new $TypeError$4("a function is required");return $actualApply(bind$1,$call$1,et)},get,hasRequiredGet;function requireGet(){if(hasRequiredGet)return get;hasRequiredGet=1;var tt=callBindApplyHelpers,et=gopd,rt;try{rt=[].__proto__===Array.prototype}catch(at){if(!at||typeof at!="object"||!("code"in at)||at.code!=="ERR_PROTO_ACCESS")throw at}var nt=!!rt&&et&&et(Object.prototype,"__proto__"),st=Object,ot=st.getPrototypeOf;return get=nt&&typeof nt.get=="function"?tt([nt.get]):typeof ot=="function"?function(lt){return ot(lt==null?lt:st(lt))}:!1,get}var getProto$1,hasRequiredGetProto;function requireGetProto(){if(hasRequiredGetProto)return getProto$1;hasRequiredGetProto=1;var tt=requireReflect_getPrototypeOf(),et=requireObject_getPrototypeOf(),rt=requireGet();return getProto$1=tt?function(st){return tt(st)}:et?function(st){if(!st||typeof st!="object"&&typeof st!="function")throw new TypeError("getProto: not an object");return et(st)}:rt?function(st){return rt(st)}:null,getProto$1}var hasown,hasRequiredHasown;function requireHasown(){if(hasRequiredHasown)return hasown;hasRequiredHasown=1;var tt=Function.prototype.call,et=Object.prototype.hasOwnProperty,rt=requireFunctionBind();return hasown=rt.call(tt,et),hasown}var undefined$1,$Object=esObjectAtoms,$Error=esErrors,$EvalError=_eval,$RangeError=range,$ReferenceError=ref,$SyntaxError=syntax,$TypeError$3=type,$URIError=uri,abs=abs$1,floor=floor$1,max=max$1,min=min$1,pow=pow$1,round$1=round$2,sign$1=sign$2,$Function=Function,getEvalledConstructor=function(tt){try{return $Function('"use strict"; return ('+tt+").constructor;")()}catch{}},$gOPD=gopd,$defineProperty=esDefineProperty,throwTypeError=function(){throw new $TypeError$3},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=requireHasSymbols()(),getProto=requireGetProto(),$ObjectGPO=requireObject_getPrototypeOf(),$ReflectGPO=requireReflect_getPrototypeOf(),$apply=requireFunctionApply(),$call=requireFunctionCall(),needsEval={},TypedArray=typeof Uint8Array>"u"||!getProto?undefined$1:getProto(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":$Object,"%Object.getOwnPropertyDescriptor%":$gOPD,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$3,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet,"%Function.prototype.call%":$call,"%Function.prototype.apply%":$apply,"%Object.defineProperty%":$defineProperty,"%Object.getPrototypeOf%":$ObjectGPO,"%Math.abs%":abs,"%Math.floor%":floor,"%Math.max%":max,"%Math.min%":min,"%Math.pow%":pow,"%Math.round%":round$1,"%Math.sign%":sign$1,"%Reflect.getPrototypeOf%":$ReflectGPO};if(getProto)try{null.error}catch(tt){var errorProto=getProto(getProto(tt));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function tt(et){var rt;if(et==="%AsyncFunction%")rt=getEvalledConstructor("async function () {}");else if(et==="%GeneratorFunction%")rt=getEvalledConstructor("function* () {}");else if(et==="%AsyncGeneratorFunction%")rt=getEvalledConstructor("async function* () {}");else if(et==="%AsyncGenerator%"){var nt=tt("%AsyncGeneratorFunction%");nt&&(rt=nt.prototype)}else if(et==="%AsyncIteratorPrototype%"){var st=tt("%AsyncGenerator%");st&&getProto&&(rt=getProto(st.prototype))}return INTRINSICS[et]=rt,rt},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=requireFunctionBind(),hasOwn=requireHasown(),$concat=bind.call($call,Array.prototype.concat),$spliceApply=bind.call($apply,Array.prototype.splice),$replace=bind.call($call,String.prototype.replace),$strSlice=bind.call($call,String.prototype.slice),$exec=bind.call($call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function tt(et){var rt=$strSlice(et,0,1),nt=$strSlice(et,-1);if(rt==="%"&&nt!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(nt==="%"&&rt!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var st=[];return $replace(et,rePropName,function(ot,at,lt,ut){st[st.length]=lt?$replace(ut,reEscapeChar,"$1"):at||ot}),st},getBaseIntrinsic=function tt(et,rt){var nt=et,st;if(hasOwn(LEGACY_ALIASES,nt)&&(st=LEGACY_ALIASES[nt],nt="%"+st[0]+"%"),hasOwn(INTRINSICS,nt)){var ot=INTRINSICS[nt];if(ot===needsEval&&(ot=doEval(nt)),typeof ot>"u"&&!rt)throw new $TypeError$3("intrinsic "+et+" exists, but is not available. Please file an issue!");return{alias:st,name:nt,value:ot}}throw new $SyntaxError("intrinsic "+et+" does not exist!")},getIntrinsic=function tt(et,rt){if(typeof et!="string"||et.length===0)throw new $TypeError$3("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof rt!="boolean")throw new $TypeError$3('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,et)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var nt=stringToPath(et),st=nt.length>0?nt[0]:"",ot=getBaseIntrinsic("%"+st+"%",rt),at=ot.name,lt=ot.value,ut=!1,ct=ot.alias;ct&&(st=ct[0],$spliceApply(nt,$concat([0,1],ct)));for(var dt=1,ht=!0;dt<nt.length;dt+=1){var ft=nt[dt],xt=$strSlice(ft,0,1),yt=$strSlice(ft,-1);if((xt==='"'||xt==="'"||xt==="`"||yt==='"'||yt==="'"||yt==="`")&&xt!==yt)throw new $SyntaxError("property names with quotes must have matching quotes");if((ft==="constructor"||!ht)&&(ut=!0),st+="."+ft,at="%"+st+"%",hasOwn(INTRINSICS,at))lt=INTRINSICS[at];else if(lt!=null){if(!(ft in lt)){if(!rt)throw new $TypeError$3("base intrinsic for "+et+" exists, but the property is not available.");return}if($gOPD&&dt+1>=nt.length){var vt=$gOPD(lt,ft);ht=!!vt,ht&&"get"in vt&&!("originalValue"in vt.get)?lt=vt.get:lt=lt[ft]}else ht=hasOwn(lt,ft),lt=lt[ft];ht&&!ut&&(INTRINSICS[at]=lt)}}return lt},GetIntrinsic$2=getIntrinsic,callBindBasic=callBindApplyHelpers,$indexOf=callBindBasic([GetIntrinsic$2("%String.prototype.indexOf%")]),callBound$2=function tt(et,rt){var nt=GetIntrinsic$2(et,!!rt);return typeof nt=="function"&&$indexOf(et,".prototype.")>-1?callBindBasic([nt]):nt},GetIntrinsic$1=getIntrinsic,callBound$1=callBound$2,inspect$2=objectInspect,$TypeError$2=type,$Map=GetIntrinsic$1("%Map%",!0),$mapGet=callBound$1("Map.prototype.get",!0),$mapSet=callBound$1("Map.prototype.set",!0),$mapHas=callBound$1("Map.prototype.has",!0),$mapDelete=callBound$1("Map.prototype.delete",!0),$mapSize=callBound$1("Map.prototype.size",!0),sideChannelMap=!!$Map&&function tt(){var et,rt={assert:function(nt){if(!rt.has(nt))throw new $TypeError$2("Side channel does not contain "+inspect$2(nt))},delete:function(nt){if(et){var st=$mapDelete(et,nt);return $mapSize(et)===0&&(et=void 0),st}return!1},get:function(nt){if(et)return $mapGet(et,nt)},has:function(nt){return et?$mapHas(et,nt):!1},set:function(nt,st){et||(et=new $Map),$mapSet(et,nt,st)}};return rt},GetIntrinsic=getIntrinsic,callBound=callBound$2,inspect$1=objectInspect,getSideChannelMap$1=sideChannelMap,$TypeError$1=type,$WeakMap=GetIntrinsic("%WeakMap%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$weakMapDelete=callBound("WeakMap.prototype.delete",!0),sideChannelWeakmap=$WeakMap?function tt(){var et,rt,nt={assert:function(st){if(!nt.has(st))throw new $TypeError$1("Side channel does not contain "+inspect$1(st))},delete:function(st){if($WeakMap&&st&&(typeof st=="object"||typeof st=="function")){if(et)return $weakMapDelete(et,st)}else if(getSideChannelMap$1&&rt)return rt.delete(st);return!1},get:function(st){return $WeakMap&&st&&(typeof st=="object"||typeof st=="function")&&et?$weakMapGet(et,st):rt&&rt.get(st)},has:function(st){return $WeakMap&&st&&(typeof st=="object"||typeof st=="function")&&et?$weakMapHas(et,st):!!rt&&rt.has(st)},set:function(st,ot){$WeakMap&&st&&(typeof st=="object"||typeof st=="function")?(et||(et=new $WeakMap),$weakMapSet(et,st,ot)):getSideChannelMap$1&&(rt||(rt=getSideChannelMap$1()),rt.set(st,ot))}};return nt}:getSideChannelMap$1,$TypeError=type,inspect=objectInspect,getSideChannelList=sideChannelList,getSideChannelMap=sideChannelMap,getSideChannelWeakMap=sideChannelWeakmap,makeChannel=getSideChannelWeakMap||getSideChannelMap||getSideChannelList,sideChannel=function tt(){var et,rt={assert:function(nt){if(!rt.has(nt))throw new $TypeError("Side channel does not contain "+inspect(nt))},delete:function(nt){return!!et&&et.delete(nt)},get:function(nt){return et&&et.get(nt)},has:function(nt){return!!et&&et.has(nt)},set:function(nt,st){et||(et=makeChannel()),et.set(nt,st)}};return rt},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$4={default:Format.RFC3986,formatters:{RFC1738:function(tt){return replace.call(tt,percentTwenties,"+")},RFC3986:function(tt){return String(tt)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$3=formats$4,has$2=Object.prototype.hasOwnProperty,isArray$2=Array.isArray,hexTable=function(){for(var tt=[],et=0;et<256;++et)tt.push("%"+((et<16?"0":"")+et.toString(16)).toUpperCase());return tt}(),compactQueue=function tt(et){for(;et.length>1;){var rt=et.pop(),nt=rt.obj[rt.prop];if(isArray$2(nt)){for(var st=[],ot=0;ot<nt.length;++ot)typeof nt[ot]<"u"&&st.push(nt[ot]);rt.obj[rt.prop]=st}}},arrayToObject=function tt(et,rt){for(var nt=rt&&rt.plainObjects?{__proto__:null}:{},st=0;st<et.length;++st)typeof et[st]<"u"&&(nt[st]=et[st]);return nt},merge=function tt(et,rt,nt){if(!rt)return et;if(typeof rt!="object"&&typeof rt!="function"){if(isArray$2(et))et.push(rt);else if(et&&typeof et=="object")(nt&&(nt.plainObjects||nt.allowPrototypes)||!has$2.call(Object.prototype,rt))&&(et[rt]=!0);else return[et,rt];return et}if(!et||typeof et!="object")return[et].concat(rt);var st=et;return isArray$2(et)&&!isArray$2(rt)&&(st=arrayToObject(et,nt)),isArray$2(et)&&isArray$2(rt)?(rt.forEach(function(ot,at){if(has$2.call(et,at)){var lt=et[at];lt&&typeof lt=="object"&&ot&&typeof ot=="object"?et[at]=tt(lt,ot,nt):et.push(ot)}else et[at]=ot}),et):Object.keys(rt).reduce(function(ot,at){var lt=rt[at];return has$2.call(ot,at)?ot[at]=tt(ot[at],lt,nt):ot[at]=lt,ot},st)},assign=function tt(et,rt){return Object.keys(rt).reduce(function(nt,st){return nt[st]=rt[st],nt},et)},decode=function(tt,et,rt){var nt=tt.replace(/\+/g," ");if(rt==="iso-8859-1")return nt.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(nt)}catch{return nt}},limit=1024,encode=function tt(et,rt,nt,st,ot){if(et.length===0)return et;var at=et;if(typeof et=="symbol"?at=Symbol.prototype.toString.call(et):typeof et!="string"&&(at=String(et)),nt==="iso-8859-1")return escape(at).replace(/%u[0-9a-f]{4}/gi,function(xt){return"%26%23"+parseInt(xt.slice(2),16)+"%3B"});for(var lt="",ut=0;ut<at.length;ut+=limit){for(var ct=at.length>=limit?at.slice(ut,ut+limit):at,dt=[],ht=0;ht<ct.length;++ht){var ft=ct.charCodeAt(ht);if(ft===45||ft===46||ft===95||ft===126||ft>=48&&ft<=57||ft>=65&&ft<=90||ft>=97&&ft<=122||ot===formats$3.RFC1738&&(ft===40||ft===41)){dt[dt.length]=ct.charAt(ht);continue}if(ft<128){dt[dt.length]=hexTable[ft];continue}if(ft<2048){dt[dt.length]=hexTable[192|ft>>6]+hexTable[128|ft&63];continue}if(ft<55296||ft>=57344){dt[dt.length]=hexTable[224|ft>>12]+hexTable[128|ft>>6&63]+hexTable[128|ft&63];continue}ht+=1,ft=65536+((ft&1023)<<10|ct.charCodeAt(ht)&1023),dt[dt.length]=hexTable[240|ft>>18]+hexTable[128|ft>>12&63]+hexTable[128|ft>>6&63]+hexTable[128|ft&63]}lt+=dt.join("")}return lt},compact=function tt(et){for(var rt=[{obj:{o:et},prop:"o"}],nt=[],st=0;st<rt.length;++st)for(var ot=rt[st],at=ot.obj[ot.prop],lt=Object.keys(at),ut=0;ut<lt.length;++ut){var ct=lt[ut],dt=at[ct];typeof dt=="object"&&dt!==null&&nt.indexOf(dt)===-1&&(rt.push({obj:at,prop:ct}),nt.push(dt))}return compactQueue(rt),et},isRegExp=function tt(et){return Object.prototype.toString.call(et)==="[object RegExp]"},isBuffer=function tt(et){return!et||typeof et!="object"?!1:!!(et.constructor&&et.constructor.isBuffer&&et.constructor.isBuffer(et))},combine=function tt(et,rt){return[].concat(et,rt)},maybeMap=function tt(et,rt){if(isArray$2(et)){for(var nt=[],st=0;st<et.length;st+=1)nt.push(rt(et[st]));return nt}return rt(et)},utils$2={arrayToObject,assign,combine,compact,decode,encode,isBuffer,isRegExp,maybeMap,merge},getSideChannel=sideChannel,utils$1=utils$2,formats$2=formats$4,has$1=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function tt(et){return et+"[]"},comma:"comma",indices:function tt(et,rt){return et+"["+rt+"]"},repeat:function tt(et){return et}},isArray$1=Array.isArray,push=Array.prototype.push,pushToArray=function(tt,et){push.apply(tt,isArray$1(et)?et:[et])},toISO=Date.prototype.toISOString,defaultFormat=formats$2.default,defaults$2={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:utils$1.encode,encodeValuesOnly:!1,filter:void 0,format:defaultFormat,formatter:formats$2.formatters[defaultFormat],indices:!1,serializeDate:function tt(et){return toISO.call(et)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function tt(et){return typeof et=="string"||typeof et=="number"||typeof et=="boolean"||typeof et=="symbol"||typeof et=="bigint"},sentinel={},stringify$1=function tt(et,rt,nt,st,ot,at,lt,ut,ct,dt,ht,ft,xt,yt,vt,Et,bt,St){for(var wt=et,Rt=St,Ct=0,Pt=!1;(Rt=Rt.get(sentinel))!==void 0&&!Pt;){var It=Rt.get(et);if(Ct+=1,typeof It<"u"){if(It===Ct)throw new RangeError("Cyclic object value");Pt=!0}typeof Rt.get(sentinel)>"u"&&(Ct=0)}if(typeof dt=="function"?wt=dt(rt,wt):wt instanceof Date?wt=xt(wt):nt==="comma"&&isArray$1(wt)&&(wt=utils$1.maybeMap(wt,function(Bt){return Bt instanceof Date?xt(Bt):Bt})),wt===null){if(at)return ct&&!Et?ct(rt,defaults$2.encoder,bt,"key",yt):rt;wt=""}if(isNonNullishPrimitive(wt)||utils$1.isBuffer(wt)){if(ct){var jt=Et?rt:ct(rt,defaults$2.encoder,bt,"key",yt);return[vt(jt)+"="+vt(ct(wt,defaults$2.encoder,bt,"value",yt))]}return[vt(rt)+"="+vt(String(wt))]}var Dt=[];if(typeof wt>"u")return Dt;var Vt;if(nt==="comma"&&isArray$1(wt))Et&&ct&&(wt=utils$1.maybeMap(wt,ct)),Vt=[{value:wt.length>0?wt.join(",")||null:void 0}];else if(isArray$1(dt))Vt=dt;else{var Ft=Object.keys(wt);Vt=ht?Ft.sort(ht):Ft}var Ht=ut?String(rt).replace(/\./g,"%2E"):String(rt),Nt=st&&isArray$1(wt)&&wt.length===1?Ht+"[]":Ht;if(ot&&isArray$1(wt)&&wt.length===0)return Nt+"[]";for(var Lt=0;Lt<Vt.length;++Lt){var Mt=Vt[Lt],zt=typeof Mt=="object"&&Mt&&typeof Mt.value<"u"?Mt.value:wt[Mt];if(!(lt&&zt===null)){var Gt=ft&&ut?String(Mt).replace(/\./g,"%2E"):String(Mt),Ot=isArray$1(wt)?typeof nt=="function"?nt(Nt,Gt):Nt:Nt+(ft?"."+Gt:"["+Gt+"]");St.set(et,Ct);var Ut=getSideChannel();Ut.set(sentinel,St),pushToArray(Dt,tt(zt,Ot,nt,st,ot,at,lt,ut,nt==="comma"&&Et&&isArray$1(wt)?null:ct,dt,ht,ft,xt,yt,vt,Et,bt,Ut))}}return Dt},normalizeStringifyOptions=function tt(et){if(!et)return defaults$2;if(typeof et.allowEmptyArrays<"u"&&typeof et.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof et.encodeDotInKeys<"u"&&typeof et.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(et.encoder!==null&&typeof et.encoder<"u"&&typeof et.encoder!="function")throw new TypeError("Encoder has to be a function.");var rt=et.charset||defaults$2.charset;if(typeof et.charset<"u"&&et.charset!=="utf-8"&&et.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var nt=formats$2.default;if(typeof et.format<"u"){if(!has$1.call(formats$2.formatters,et.format))throw new TypeError("Unknown format option provided.");nt=et.format}var st=formats$2.formatters[nt],ot=defaults$2.filter;(typeof et.filter=="function"||isArray$1(et.filter))&&(ot=et.filter);var at;if(et.arrayFormat in arrayPrefixGenerators?at=et.arrayFormat:"indices"in et?at=et.indices?"indices":"repeat":at=defaults$2.arrayFormat,"commaRoundTrip"in et&&typeof et.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var lt=typeof et.allowDots>"u"?et.encodeDotInKeys===!0?!0:defaults$2.allowDots:!!et.allowDots;return{addQueryPrefix:typeof et.addQueryPrefix=="boolean"?et.addQueryPrefix:defaults$2.addQueryPrefix,allowDots:lt,allowEmptyArrays:typeof et.allowEmptyArrays=="boolean"?!!et.allowEmptyArrays:defaults$2.allowEmptyArrays,arrayFormat:at,charset:rt,charsetSentinel:typeof et.charsetSentinel=="boolean"?et.charsetSentinel:defaults$2.charsetSentinel,commaRoundTrip:!!et.commaRoundTrip,delimiter:typeof et.delimiter>"u"?defaults$2.delimiter:et.delimiter,encode:typeof et.encode=="boolean"?et.encode:defaults$2.encode,encodeDotInKeys:typeof et.encodeDotInKeys=="boolean"?et.encodeDotInKeys:defaults$2.encodeDotInKeys,encoder:typeof et.encoder=="function"?et.encoder:defaults$2.encoder,encodeValuesOnly:typeof et.encodeValuesOnly=="boolean"?et.encodeValuesOnly:defaults$2.encodeValuesOnly,filter:ot,format:nt,formatter:st,serializeDate:typeof et.serializeDate=="function"?et.serializeDate:defaults$2.serializeDate,skipNulls:typeof et.skipNulls=="boolean"?et.skipNulls:defaults$2.skipNulls,sort:typeof et.sort=="function"?et.sort:null,strictNullHandling:typeof et.strictNullHandling=="boolean"?et.strictNullHandling:defaults$2.strictNullHandling}},stringify_1=function(tt,et){var rt=tt,nt=normalizeStringifyOptions(et),st,ot;typeof nt.filter=="function"?(ot=nt.filter,rt=ot("",rt)):isArray$1(nt.filter)&&(ot=nt.filter,st=ot);var at=[];if(typeof rt!="object"||rt===null)return"";var lt=arrayPrefixGenerators[nt.arrayFormat],ut=lt==="comma"&&nt.commaRoundTrip;st||(st=Object.keys(rt)),nt.sort&&st.sort(nt.sort);for(var ct=getSideChannel(),dt=0;dt<st.length;++dt){var ht=st[dt],ft=rt[ht];nt.skipNulls&&ft===null||pushToArray(at,stringify$1(ft,ht,lt,ut,nt.allowEmptyArrays,nt.strictNullHandling,nt.skipNulls,nt.encodeDotInKeys,nt.encode?nt.encoder:null,nt.filter,nt.sort,nt.allowDots,nt.serializeDate,nt.format,nt.formatter,nt.encodeValuesOnly,nt.charset,ct))}var xt=at.join(nt.delimiter),yt=nt.addQueryPrefix===!0?"?":"";return nt.charsetSentinel&&(nt.charset==="iso-8859-1"?yt+="utf8=%26%2310003%3B&":yt+="utf8=%E2%9C%93&"),xt.length>0?yt+xt:""},utils=utils$2,has=Object.prototype.hasOwnProperty,isArray=Array.isArray,defaults$1={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:utils.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},interpretNumericEntities=function(tt){return tt.replace(/&#(\d+);/g,function(et,rt){return String.fromCharCode(parseInt(rt,10))})},parseArrayValue=function(tt,et,rt){if(tt&&typeof tt=="string"&&et.comma&&tt.indexOf(",")>-1)return tt.split(",");if(et.throwOnLimitExceeded&&rt>=et.arrayLimit)throw new RangeError("Array limit exceeded. Only "+et.arrayLimit+" element"+(et.arrayLimit===1?"":"s")+" allowed in an array.");return tt},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function tt(et,rt){var nt={__proto__:null},st=rt.ignoreQueryPrefix?et.replace(/^\?/,""):et;st=st.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var ot=rt.parameterLimit===1/0?void 0:rt.parameterLimit,at=st.split(rt.delimiter,rt.throwOnLimitExceeded?ot+1:ot);if(rt.throwOnLimitExceeded&&at.length>ot)throw new RangeError("Parameter limit exceeded. Only "+ot+" parameter"+(ot===1?"":"s")+" allowed.");var lt=-1,ut,ct=rt.charset;if(rt.charsetSentinel)for(ut=0;ut<at.length;++ut)at[ut].indexOf("utf8=")===0&&(at[ut]===charsetSentinel?ct="utf-8":at[ut]===isoSentinel&&(ct="iso-8859-1"),lt=ut,ut=at.length);for(ut=0;ut<at.length;++ut)if(ut!==lt){var dt=at[ut],ht=dt.indexOf("]="),ft=ht===-1?dt.indexOf("="):ht+1,xt,yt;ft===-1?(xt=rt.decoder(dt,defaults$1.decoder,ct,"key"),yt=rt.strictNullHandling?null:""):(xt=rt.decoder(dt.slice(0,ft),defaults$1.decoder,ct,"key"),yt=utils.maybeMap(parseArrayValue(dt.slice(ft+1),rt,isArray(nt[xt])?nt[xt].length:0),function(Et){return rt.decoder(Et,defaults$1.decoder,ct,"value")})),yt&&rt.interpretNumericEntities&&ct==="iso-8859-1"&&(yt=interpretNumericEntities(String(yt))),dt.indexOf("[]=")>-1&&(yt=isArray(yt)?[yt]:yt);var vt=has.call(nt,xt);vt&&rt.duplicates==="combine"?nt[xt]=utils.combine(nt[xt],yt):(!vt||rt.duplicates==="last")&&(nt[xt]=yt)}return nt},parseObject=function(tt,et,rt,nt){var st=0;if(tt.length>0&&tt[tt.length-1]==="[]"){var ot=tt.slice(0,-1).join("");st=Array.isArray(et)&&et[ot]?et[ot].length:0}for(var at=nt?et:parseArrayValue(et,rt,st),lt=tt.length-1;lt>=0;--lt){var ut,ct=tt[lt];if(ct==="[]"&&rt.parseArrays)ut=rt.allowEmptyArrays&&(at===""||rt.strictNullHandling&&at===null)?[]:utils.combine([],at);else{ut=rt.plainObjects?{__proto__:null}:{};var dt=ct.charAt(0)==="["&&ct.charAt(ct.length-1)==="]"?ct.slice(1,-1):ct,ht=rt.decodeDotInKeys?dt.replace(/%2E/g,"."):dt,ft=parseInt(ht,10);!rt.parseArrays&&ht===""?ut={0:at}:!isNaN(ft)&&ct!==ht&&String(ft)===ht&&ft>=0&&rt.parseArrays&&ft<=rt.arrayLimit?(ut=[],ut[ft]=at):ht!=="__proto__"&&(ut[ht]=at)}at=ut}return at},parseKeys=function tt(et,rt,nt,st){if(et){var ot=nt.allowDots?et.replace(/\.([^.[]+)/g,"[$1]"):et,at=/(\[[^[\]]*])/,lt=/(\[[^[\]]*])/g,ut=nt.depth>0&&at.exec(ot),ct=ut?ot.slice(0,ut.index):ot,dt=[];if(ct){if(!nt.plainObjects&&has.call(Object.prototype,ct)&&!nt.allowPrototypes)return;dt.push(ct)}for(var ht=0;nt.depth>0&&(ut=lt.exec(ot))!==null&&ht<nt.depth;){if(ht+=1,!nt.plainObjects&&has.call(Object.prototype,ut[1].slice(1,-1))&&!nt.allowPrototypes)return;dt.push(ut[1])}if(ut){if(nt.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+nt.depth+" and strictDepth is true");dt.push("["+ot.slice(ut.index)+"]")}return parseObject(dt,rt,nt,st)}},normalizeParseOptions=function tt(et){if(!et)return defaults$1;if(typeof et.allowEmptyArrays<"u"&&typeof et.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof et.decodeDotInKeys<"u"&&typeof et.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(et.decoder!==null&&typeof et.decoder<"u"&&typeof et.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof et.charset<"u"&&et.charset!=="utf-8"&&et.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof et.throwOnLimitExceeded<"u"&&typeof et.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var rt=typeof et.charset>"u"?defaults$1.charset:et.charset,nt=typeof et.duplicates>"u"?defaults$1.duplicates:et.duplicates;if(nt!=="combine"&&nt!=="first"&&nt!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var st=typeof et.allowDots>"u"?et.decodeDotInKeys===!0?!0:defaults$1.allowDots:!!et.allowDots;return{allowDots:st,allowEmptyArrays:typeof et.allowEmptyArrays=="boolean"?!!et.allowEmptyArrays:defaults$1.allowEmptyArrays,allowPrototypes:typeof et.allowPrototypes=="boolean"?et.allowPrototypes:defaults$1.allowPrototypes,allowSparse:typeof et.allowSparse=="boolean"?et.allowSparse:defaults$1.allowSparse,arrayLimit:typeof et.arrayLimit=="number"?et.arrayLimit:defaults$1.arrayLimit,charset:rt,charsetSentinel:typeof et.charsetSentinel=="boolean"?et.charsetSentinel:defaults$1.charsetSentinel,comma:typeof et.comma=="boolean"?et.comma:defaults$1.comma,decodeDotInKeys:typeof et.decodeDotInKeys=="boolean"?et.decodeDotInKeys:defaults$1.decodeDotInKeys,decoder:typeof et.decoder=="function"?et.decoder:defaults$1.decoder,delimiter:typeof et.delimiter=="string"||utils.isRegExp(et.delimiter)?et.delimiter:defaults$1.delimiter,depth:typeof et.depth=="number"||et.depth===!1?+et.depth:defaults$1.depth,duplicates:nt,ignoreQueryPrefix:et.ignoreQueryPrefix===!0,interpretNumericEntities:typeof et.interpretNumericEntities=="boolean"?et.interpretNumericEntities:defaults$1.interpretNumericEntities,parameterLimit:typeof et.parameterLimit=="number"?et.parameterLimit:defaults$1.parameterLimit,parseArrays:et.parseArrays!==!1,plainObjects:typeof et.plainObjects=="boolean"?et.plainObjects:defaults$1.plainObjects,strictDepth:typeof et.strictDepth=="boolean"?!!et.strictDepth:defaults$1.strictDepth,strictNullHandling:typeof et.strictNullHandling=="boolean"?et.strictNullHandling:defaults$1.strictNullHandling,throwOnLimitExceeded:typeof et.throwOnLimitExceeded=="boolean"?et.throwOnLimitExceeded:!1}},parse$1=function(tt,et){var rt=normalizeParseOptions(et);if(tt===""||tt===null||typeof tt>"u")return rt.plainObjects?{__proto__:null}:{};for(var nt=typeof tt=="string"?parseValues(tt,rt):tt,st=rt.plainObjects?{__proto__:null}:{},ot=Object.keys(nt),at=0;at<ot.length;++at){var lt=ot[at],ut=parseKeys(lt,nt[lt],rt,typeof tt=="string");st=utils.merge(st,ut,rt)}return rt.allowSparse===!0?st:utils.compact(st)},stringify=stringify_1,parse=parse$1,formats$1=formats$4,lib={formats:formats$1,parse,stringify},punycode=punycodeExports;function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r",`
|