1import{$ as e,A as t,At as n,B as r,Bt as i,C as a,Ct as o,D as s,Dt as c,E as l,Et as u,F as d,Ft as f,G as p,H as m,I as h,It as g,J as _,K as v,L as y,Lt as b,M as x,Mt as S,N as C,Nt as w,O as T,Ot as E,P as ee,Pt as te,Q as D,R as ne,Rt as re,S as O,St as ie,T as ae,Tt as oe,U as k,V as se,W as ce,X as le,Y as ue,Z as de,_ as fe,_t as pe,a as me,at as A,b as he,bt as ge,c as _e,ct as ve,d as ye,dt as be,et as xe,f as Se,ft as Ce,g as we,gt as Te,h as Ee,ht as De,i as Oe,it as j,j as ke,jt as Ae,k as je,kt as Me,l as Ne,lt as M,m as Pe,mt as Fe,nt as Ie,o as Le,ot as Re,p as ze,pt as Be,q as Ve,r as He,rt as Ue,s as We,st as Ge,tt as Ke,u as qe,ut as Je,v as Ye,vt as Xe,w as Ze,wt as Qe,x as $e,xt as et,y as tt,yt as nt,z as rt,zt as it}from"./index-BqGkSEtq.js";function at(e){let t=g();return f(t.stores.location,te(e,t))}var N=b(),P=i(it(),1),ot=(0,P.createContext)({}),st=typeof window<`u`?P.useLayoutEffect:P.useEffect,ct=(0,P.createContext)(null);function lt(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}function ut(e,t,n={}){let r=ue(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(m(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return dt(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function dt(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(ut(c,t,{...o,delay:n+(typeof r==`function`?0:r)+lt(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ft(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>ut(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=ut(e,t,n);else{let i=typeof t==`function`?ue(e,t,n.custom):t;r=Promise.all(m(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}function pt(e){return ge(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var mt={x:!1,y:!1};function ht(){return mt.x||mt.y}function gt(e){return e===`x`||e===`y`?mt[e]?null:(mt[e]=!0,()=>{mt[e]=!1}):mt.x||mt.y?null:(mt.x=mt.y=!0,()=>{mt.x=mt.y=!1})}function _t(e,t){let n=r(e),i=new AbortController;return[n,{passive:!0,...t,signal:i.signal},()=>i.abort()]}function vt(e){return!(e.pointerType===`touch`||ht())}function yt(e,t,n={}){let[r,i,a]=_t(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!vt(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var bt=(e,t)=>t?e===t||bt(e,t.parentElement):!1,xt=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,St=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Ct(e){return St.has(e.tagName)||e.isContentEditable===!0}var wt=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Tt(e){return wt.has(e.tagName)||e.isContentEditable===!0}var Et=new WeakSet;function Dt(e){return t=>{t.key===`Enter`&&e(t)}}function Ot(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var kt=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Dt(()=>{if(Et.has(n))return;Ot(n,`down`);let e=Dt(()=>{Ot(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Ot(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function At(e){return xt(e)&&!ht()}var jt=new WeakSet;function Mt(e,t,n={}){let[r,i,a]=_t(e,n),o=e=>{let r=e.currentTarget;if(!At(e)||jt.has(e))return;Et.add(r),n.stopPropagation&&jt.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Et.has(r)&&Et.delete(r),At(e)&&t
1ypeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||bt(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),pt(e)&&(e.addEventListener(`focus`,e=>kt(e,i)),!Ct(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var Nt=new WeakMap,Pt,Ft=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:ne(r)&&`getBBox`in r?r.getBBox()[t]:r[n],It=Ft(`inline`,`width`,`offsetWidth`),Lt=Ft(`block`,`height`,`offsetHeight`);function Rt({target:e,borderBoxSize:t}){Nt.get(e)?.forEach(n=>{n(e,{get width(){return It(e,t)},get height(){return Lt(e,t)}})})}function zt(e){e.forEach(Rt)}function Bt(){typeof ResizeObserver>`u`||(Pt=new ResizeObserver(zt))}function Vt(e,t){Pt||Bt();let n=r(e);return n.forEach(e=>{let n=Nt.get(e);n||(n=new Set,Nt.set(e,n)),n.add(t),Pt?.observe(e)}),()=>{n.forEach(e=>{let n=Nt.get(e);n?.delete(t),n?.size||Pt?.unobserve(e)})}}var Ht=new Set,Ut;function Wt(){Ut=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ht.forEach(t=>t(e))},window.addEventListener(`resize`,Ut)}function Gt(e){return Ht.add(e),Ut||Wt(),()=>{Ht.delete(e),!Ht.size&&typeof Ut==`function`&&(window.removeEventListener(`resize`,Ut),Ut=void 0)}}function Kt(e,t){return typeof e==`function`?Gt(e):Vt(e,t)}function qt(e,t){let n,r=()=>{let{currentTime:r}=t,i=(r===null?0:r.value)/100;n!==i&&e(i),n=i};return M.preUpdate(r,!0),()=>ve(r)}var Jt={value:null,addProjectionMetrics:null},Yt=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},Xt=x.length;function Zt(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Zt(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Xt;n++){let r=x[n],i=e.props[r];(C(i)||i===!1)&&(t[r]=i)}return t}function Qt(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var $t=[...ke].reverse(),en=ke.length;function tn(e){return t=>Promise.all(t.map(({animation:t,options:n})=>ft(e,t,n)))}function nn(e){let t=tn(e),n=on(),r=!0,i=!1,a=t=>(n,r)=>{let i=ue(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Zt(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<en;t++){let p=$t[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=C(h),v=p===o?m.isActive:null;v===!1&&(f=t);let y=h===c[p]&&h!==s[p]&&g;if(y&&(r||i)&&e.manuallyAnimateOnMount&&(y=!1),m.protectedKeys={...d},!m.isActive&&v===null||!h&&!m.prevProp||ee(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&v!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let b=rn(m.prevProp,h),x=b||p===o&&m.isActive&&!y&&g||t>f&&g,S=!1,w=Array.isArray(h)?h:[h],T=w.reduce(a(p),{});v===!1&&(T={});let{prevResolvedValues:E={}}=m,te={...E,...T},D=t=>{x=!0,u.has(t)&&(S=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in te){let t=T[e],n=E[e];if(d.hasOwnProperty(e))continue;let r=!1;r=_(t)&&_(n)?!Qt(t,n)||b:t!==n,r?t==null?u.add(e):D(e):t!==void 0&&u.has(e)?D(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=T,m.isActive&&(d={...d,...T}),(r||i)&&e.blockInitialAnimation&&(x=!1);let ne=y&&b;x&&(!ne||S)&&l.push(...w.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ne&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=ue(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=lt(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=ue(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();
1e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=on(),i=!0}}}function rn(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Qt(t,e):!1}function an(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function on(){return{animate:an(!0),whileInView:an(),whileHover:an(),whileTap:an(),whileDrag:an(),whileFocus:an(),exit:an()}}function sn(e,t){e.min=t.min,e.max=t.max}function cn(e,t){sn(e.x,t.x),sn(e.y,t.y)}function ln(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var un=.9999,dn=1.0001,fn=-.01,pn=.01;function mn(e){return e.max-e.min}function hn(e,t,n){return Math.abs(e-t)<=n}function gn(e,t,n,r=.5){e.origin=r,e.originPoint=j(t.min,t.max,e.origin),e.scale=mn(n)/mn(t),e.translate=j(n.min,n.max,e.origin)-e.originPoint,(e.scale>=un&&e.scale<=dn||isNaN(e.scale))&&(e.scale=1),(e.translate>=fn&&e.translate<=pn||isNaN(e.translate))&&(e.translate=0)}function _n(e,t,n,r){gn(e.x,t.x,n.x,r?r.originX:void 0),gn(e.y,t.y,n.y,r?r.originY:void 0)}function vn(e,t,n,r=0){e.min=(r?j(n.min,n.max,r):n.min)+t.min,e.max=e.min+mn(t)}function yn(e,t,n,r){vn(e.x,t.x,n.x,r?.x),vn(e.y,t.y,n.y,r?.y)}function bn(e,t,n,r=0){let i=r?j(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+mn(t)}function xn(e,t,n,r){bn(e.x,t.x,n.x,r?.x),bn(e.y,t.y,n.y,r?.y)}function Sn(e,t,n,r,i){return e-=t,e=tt(e,1/n,r),i!==void 0&&(e=tt(e,1/i,r)),e}function Cn(e,t=0,n=1,r=.5,i,a=e,o=e){if(A.test(t)&&(t=parseFloat(t),t=j(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=j(a.min,a.max,r);e===a&&(s-=t),e.min=Sn(e.min,t,n,s,i),e.max=Sn(e.max,t,n,s,i)}
1function wn(e,t,[n,r,i],a,o){Cn(e,t[n],t[r],t[i],t.scale,a,o)}var Tn=[`x`,`scaleX`,`originX`],En=[`y`,`scaleY`,`originY`];function Dn(e,t,n,r){wn(e.x,t,Tn,n?n.x:void 0,r?r.x:void 0),wn(e.y,t,En,n?n.y:void 0,r?r.y:void 0)}function On(e){return e.translate===0&&e.scale===1}function kn(e){return On(e.x)&&On(e.y)}function An(e,t){return e.min===t.min&&e.max===t.max}function jn(e,t){return An(e.x,t.x)&&An(e.y,t.y)}function Mn(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Nn(e,t){return Mn(e.x,t.x)&&Mn(e.y,t.y)}function Pn(e){return mn(e.x)/mn(e.y)}function Fn(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function In(e){return[e(`x`),e(`y`)]}function Ln(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Rn=se.length,zn=e=>typeof e==`string`?parseFloat(e):e,Bn=e=>typeof e==`number`||Re.test(e);function Vn(e,t,n,r,i,a){i?(e.opacity=j(0,n.opacity??1,Un(r)),e.opacityExit=j(t.opacity??1,0,Wn(r))):a&&(e.opacity=j(t.opacity??1,n.opacity??1,r));for(let i=0;i<Rn;i++){let a=se[i],o=Hn(t,a),s=Hn(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Bn(o)===Bn(s)?(e[a]=Math.max(j(zn(o),zn(s),r),0),(A.test(s)||A.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=j(t.rotate||0,n.rotate||0,r))}function Hn(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Un=Gn(0,.5,Ce),Wn=Gn(.5,.95,nt);function Gn(e,t,n){return r=>r<e?0:r>t?1:n(pe(e,t,r))}function Kn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var qn=(e,t)=>e.depth-t.depth,Jn=class{constructor(){this.children=[],this.isDirty=!1}add(e){o(this.children,e),this.isDirty=!0}remove(e){Qe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(qn),this.isDirty=!1,this.children.forEach(e)}};function Yn(e,t){let n=Ge.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(ve(r),e(a-t))};return M.setup(r,!0),()=>ve(r)}function Xn(e){return v(e)?e.get():e}var Zn=class{constructor(){this.members=[]}add(e){o(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(Qe(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Qe(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Qn={hasAnimatedSinceResize:!0,hasEverUpdated:!1},$n={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},er=[``,`X`,`Y`,`Z`],tr=1e3,nr=0;function rr(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ir(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=k(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,M,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ir(r)}function ar({attachResizeListener:t,defaultParent:n,measureScroll:r,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(e={},t=n?.()){this.id=nr++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Jt.value&&($n.nodes=$n.calculatedTargetDeltas=$n.calculatedProjections=0),this.nodes.forEac
1h(cr),this.nodes.forEach(_r),this.nodes.forEach(vr),this.nodes.forEach(lr),Jt.addProjectionMetrics&&Jt.addProjectionMetrics($n)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=t?t.root||t:this,this.path=t?[...t.path,t]:[],this.parent=t,this.depth=t?t.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Jn)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Te),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(e){if(this.instance)return;this.isSVG=ne(e)&&!y(e),this.instance=e;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),t){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;M.read(()=>{r=window.innerWidth}),t(e,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Yn(i,250),Qn.hasAnimatedSinceResize&&(Qn.hasAnimatedSinceResize=!1,this.nodes.forEach(gr)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Tr,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Nn(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...D(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||gr(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ve(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(yr),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ir(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(fr),this.nodes.forEach(dr);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(pr);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEac
1h(mr),this.nodes.forEach(hr),this.nodes.forEach(or),this.nodes.forEach(sr)):this.nodes.forEach(pr),this.clearAllSnapshots();let e=Ge.now();Je.delta=ie(0,1e3/60,e-Je.timestamp),Je.timestamp=e,Je.isProcessing=!0,be.update.process(Je),be.preRender.process(Je),be.render.process(Je),Je.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rt.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ur),this.sharedNodes.forEach(br)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!mn(this.snapshot.measuredBox.x)&&!mn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=d(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!kn(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,i=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Ze(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),kr(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return d();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(jr))){let{scroll:e}=this.root;e&&($e(t.x,e.offset.x),$e(t.y,e.offset.y))}return t}removeElementScroll(e){let t=d();if(cn(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&cn(t,e),$e(t.x,i.offset.x),$e(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||d();cn(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&($e(r.x,-n.scroll.offset.x),$e(r.y,-n.scroll.offset.y)),Ze(n.latestValues)&&he(r,n.latestValues,n.layout?.layoutBox)}return Ze(this.latestValues)&&he(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=d();cn(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Ze(n.latestValues))continue;let r;n.instance&&(a(n.latestValues)&&n.updateSnapshot(),r=d(),cn(r,n.measurePageBox())),Dn(t,n.latestValues,n.snapshot?.layoutBox,r)}return Ze(this.latestValues)&&Dn(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Je.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;
1if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Je.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=d(),this.targetWithTransforms=d()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),yn(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):cn(this.target,this.layout.layoutBox),fe(this.target,this.targetDelta)):cn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Jt.value&&$n.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||a(this.parent.latestValues)||O(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=d(),this.relativeTargetOrigin=d(),xn(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),cn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Je.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;cn(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Ye(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=d());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ln(this.prevProjectionDelta.x,this.projectionDelta.x),ln(this.prevProjectionDelta.y,this.projectionDelta.y)),_n(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Fn(this.projectionDelta.x,this.prevProjectionDelta.x)||!Fn(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Jt.value&&$n.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=h(),this.projectionDelta=h(),this.projectionDeltaWithTransform=h()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=h();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=d(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,f=!(!c||u||this.options.crossfade!==!0||this.path.some(wr));this.animationProgress=0;let p,m=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=m?.(n);r?(o.x.translate=r.x,o.x.scale=j(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=j(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(xr(o.x,e.x,n),xr(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xn(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Cr(this.relativeTarget,this.relativeTargetOrigin,s,n),p&&jn(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||=d(),cn(p,this.relativeTarget)),c&&(this.animationValues=a,Vn(a,i,this.latestValues,n,f,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(ve(this.pendingAnimation),void 0),this.pendingAnimation=M.update(()=>{Qn.hasAnimatedSinceResize=!0,this.motionValue||=e(0),this.motionValue.jump(0,!1),this.currentAnimation=Le(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(tr),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Ar(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||d();let t=mn(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=mn(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}cn(t,n),he(t,i),_n(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
1)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Zn),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&rr(`z`,e,r,this.animationValues);for(let t=0;t<er.length;t++)rr(`rotate${er[t]}`,e,r,this.animationValues),rr(`skew${er[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Xn(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Xn(t?.pointerEvents)||``),this.hasProjected&&!Ze(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Ln(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Pe){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Pe[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Xn(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(dr),this.root.sharedNodes.clear()}}}function or(e){e.updateLayout()}function sr(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)In(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=mn(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;sn(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Ar(i,t.layoutBox,n)&&In(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=mn(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=h();_n(o,n,t.layoutBox);let s=h();a?_n(s,e.applyTransform(r,!0),t.measuredBox):_n(s,n,t.layoutBox);let c=!kn(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=d();xn(s,t.layoutBox,i.layoutBox,o);let c=d();xn(c,n,a.layoutBox,o),Nn(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function cr(e){Jt.value&&$n.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function lr(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ur(e){e.clearSnapshot()}function dr(e){e.clearMeasurements()}function fr(e){e.isLayoutDirty=!0,e.updateLayout()}function pr(e){e.isLayoutDirty=!1}function mr(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function hr(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function gr(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _r(e){e.resolveTargetDelta()}function vr(e){e.calcProjection()}
1function yr(e){e.resetSkewAndRotation()}function br(e){e.removeLeadSnapshot()}function xr(e,t,n){e.translate=j(t.translate,0,n),e.scale=j(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Sr(e,t,n,r){e.min=j(t.min,n.min,r),e.max=j(t.max,n.max,r)}function Cr(e,t,n,r){Sr(e.x,t.x,n.x,r),Sr(e.y,t.y,n.y,r)}function wr(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Tr={duration:.45,ease:[.4,0,.1,1]},Er=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Dr=Er(`applewebkit/`)&&!Er(`chrome/`)?Math.round:nt;function Or(e){e.min=Dr(e.min),e.max=Dr(e.max)}function kr(e){Or(e.x),Or(e.y)}function Ar(e,t,n){return e===`position`||e===`preserve-aspect`&&!hn(Pn(t),Pn(n),.2)}function jr(e){return e!==e.root&&e.scroll?.wasRoot}var Mr=ar({attachResizeListener:(e,t)=>Kn(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Nr={current:void 0},Pr=ar({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Nr.current){let e=new Mr({});e.mount(window),e.setOptions({layoutScroll:!0}),Nr.current=e}return Nr.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`});function Fr(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Ir(...e){return t=>{let n=!1,r=e.map(e=>{let r=Fr(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Fr(e[t],null)}}}}function Lr(...e){return P.useCallback(Ir(...e),e)}var Rr=class extends P.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(pt(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=pt(e)&&e.offsetWidth||0,r=pt(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function zr({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,P.useId)(),s=(0,P.useRef)(null),c=(0,P.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,P.useContext)(me),u=Lr(s,a===!1?void 0:e.props?.ref??e?.ref);return(0,P.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(` 2 [data-motion-pop-id="${o}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${u}px !important; 6 ${_}px !important; 7 ${v}px !important; 8 } 9 `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,N.jsx)(Rr,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:P.cloneElement(e,{ref:u})})}var Br=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=oe(Vr),d=(0,P.useId)(),f=(0,P.useRef)(n),p=(0,P.useRef)(r);st(()=>{f.current=n,p.current=r});let m=!0,h=(0,P.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&p.current?.()})}),[n,u,r]);return a&&m&&(h={...h}),(0,P.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),P.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,N.jsx)(zr,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,N.jsx)(ct.Provider,{value:h,children:e})};function Vr(){return new Map}function Hr(e=!0){let t=(0,P.useContext)(ct);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,P.useId)();(0,P.useEffect)(()=>
9{if(e)return i(a)},[e]);let o=(0,P.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Ur=e=>e.key||``;function Wr(e){let t=[];return P.Children.forEach(e,e=>{(0,P.isValidElement)(e)&&t.push(e)}),t}var Gr=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=Hr(o),f=(0,P.useMemo)(()=>Wr(e),[e]),p=o&&!u?[]:f.map(Ur),m=(0,P.useRef)(!0),h=(0,P.useRef)(f),g=oe(()=>new Map),_=(0,P.useRef)(new Set),[v,y]=(0,P.useState)(f),[b,x]=(0,P.useState)(f);st(()=>{o&&!u&&!b.length&&d?.()},[u,o,b.length,d]),st(()=>{m.current=!1,h.current=f;for(let e=0;e<b.length;e++){let t=Ur(b[e]);p.includes(t)?(g.delete(t),_.current.delete(t)):g.get(t)!==!0&&g.set(t,!1)}},[b,p.length,p.join(`-`)]);let S=[];if(f!==v){let e=[...f],t=0;for(let n of b){let r=p.indexOf(Ur(n));r===-1?(e.splice(t++,0,n),S.push(n)):t=r+S.length+1}return a===`wait`&&S.length&&(e=S),x(Wr(e)),y(f),null}let{forceRender:C}=(0,P.useContext)(ot);return(0,N.jsx)(N.Fragment,{children:b.map(e=>{let v=Ur(e),y=o&&!u?!1:f===b||p.includes(v);return(0,N.jsx)(Br,{isPresent:y,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:y?void 0:()=>{if(_.current.has(v))return;if(g.has(v))_.current.add(v),g.set(v,!0);else return;let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(C?.(),x(h.current),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},v)})})},Kr=(0,P.createContext)({strict:!1}),qr={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Jr=!1;function Yr(){if(Jr)return;let e={};for(let t in qr)e[t]={isEnabled:e=>qr[t].some(t=>!!e[t])};T(e),Jr=!0}function Xr(){return Yr(),s()}function Zr(e){let t=Xr();for(let n in e)t[n]={...t[n],...e[n]};T(t)}var Qr=(0,P.createContext)({});function $r(e,t){if(je(e)){let{initial:t,animate:n}=e;return{initial:t===!1||C(t)?t:void 0,animate:C(n)?n:void 0}}return e.inherit===!1?{}:t}function ei(e){let{initial:t,animate:n}=$r(e,(0,P.useContext)(Qr));return(0,P.useMemo)(()=>({initial:t,animate:n}),[ti(t),ti(n)])}function ti(e){return Array.isArray(e)?e.join(` `):e}var ni=()=>({style:{},transform:{},transformOrigin:{},vars:{}});
9function ri(e,t,n){for(let r in t)!v(t[r])&&!ze(r,n)&&(e[r]=t[r])}function ii({transformTemplate:e},t){return(0,P.useMemo)(()=>{let n=ni();return Ee(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ai(e,t){let n=e.style||{},r={};return ri(r,n,e),Object.assign(r,ii(e,t)),r}function oi(e,t){let n={},r=ai(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var si=()=>({...ni(),attrs:{}});function ci(e,t,n,r){let i=(0,P.useMemo)(()=>{let n=si();return qe(n,t,Ne(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};ri(t,e.style,e),i.style={...t,...i.style}}return i}var li=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function ui(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||li.has(e)}function di(e,t){return e.startsWith(`on`)?!ui(e):t?.(e)??!ui(e)}function fi(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(v(e[a])||(di(a,r)||n===!0&&ui(a)||!t&&!ui(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var pi=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function mi(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(pi.indexOf(e)>-1||/[A-Z]/u.test(e))}function hi(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??mi(e)?ci:oi)(t,r,i,e),l=fi(t,typeof e==`string`,a,s),u=e===P.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,P.useMemo)(()=>v(d)?d.get():d,[d]);return(0,P.createElement)(e,{...u,children:f})}function gi({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:_i(n,r,i,e),renderState:t()}}function _i(e,n,r,i){let a={},o=i(e,{});for(let e in o)a[e]=Xn(o[e]);let{initial:s,animate:c}=e,l=je(e),u=t(e);n&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=n.initial),c===void 0&&(c=n.animate));let d=r?r.initial===!1:!1;d||=s===!1;let f=d?c:s;if(f&&typeof f!=`boolean`&&!ee(f)){let t=Array.isArray(f)?f:[f];for(let n=0;n<t.length;n++){let r=le(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}t!==null&&(a[e]=t)}for(let t in e)a[t]=e[t]}}}return a}var vi=e=>(t,n)=>{let r=(0,P.useContext)(Qr),i=(0,P.useContext)(ct),a=()=>gi(e,t,r,i);return n?a():oe(a)},yi=vi({scrapeMotionValuesFromProps:Se,createRenderState:ni}),bi=vi({scrapeMotionValuesFromProps:_e,createRenderState:si}),xi=Symbol.for(`motionComponentSymbol`);function Si(e,t,n){let r=(0,P.useRef)(n);(0,P.useInsertionEffect)(()=>{r.current=n});let i=(0,P.useRef)(null);return(0,P.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Ci=(0,P.createContext)({});function wi(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Ti(e,t,n,r,i,a){let{visualElement:o}=(0,P.useContext)(Qr),s=(0,P.useContext)(Kr),c=(0,P.useContext)(ct),l=(0,P.useContext)(me),u=l.reducedMotion,d=l.skipAnimations,f=(0,P.useRef)(null),p=(0,P.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,P.useContext)(Ci);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Ei(f.current,n,i,h);let g=(0,P.useRef)(!1);(0,P.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[ce],v=(0,P.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return st(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,P.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Ei(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Di(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&wi(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Di(e){if(e)return e.options.allowProjection===!1?Di(e.parent):e.projection}function Oi(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Zr(r);
9let a=n?n===`svg`:mi(e),o=a?bi:yi;function s(n,s){let c,l={...(0,P.useContext)(me),...n,layoutId:ki(n)},{isStatic:u,isValidProp:d}=l,f=ei(n),p=o(n,u);if(!u&&typeof window<`u`){Ai(l,r);let t=ji(l);c=t.MeasureLayout,f.visualElement=Ti(e,p,l,i,t.ProjectionNode,a)}return(0,N.jsxs)(Qr.Provider,{value:f,children:[c&&f.visualElement?(0,N.jsx)(c,{visualElement:f.visualElement,...l}):null,hi(e,n,Si(p,f.visualElement,s),p,u,t,a,d)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,P.forwardRef)(s);return c[xi]=e,c}function ki({layoutId:e}){let t=(0,P.useContext)(ot).id;return t&&e!==void 0?t+`-`+e:e}function Ai(e,t){(0,P.useContext)(Kr).strict}function ji(e){let{drag:t,layout:n}=Xr();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Mi(e,t){if(typeof Proxy>`u`)return Oi;let n=new Map,r=(n,r)=>Oi(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Oi(a,void 0,e,t)),n.get(a))})}var Ni=(e,t)=>t.isSVG??mi(e)?new We(t):new ye(t,{allowProjection:e!==P.Fragment}),Pi=class extends Yt{constructor(e){super(e),e.animationState||=nn(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();ee(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Fi=0,Ii={animation:{Feature:Pi},exit:{Feature:class extends Yt{constructor(){super(...arguments),this.id=Fi++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=ue(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Li(e){return{point:{x:e.pageX,y:e.pageY}}}var Ri=e=>t=>xt(t)&&e(t,Li(t));function zi(e,t,n,r){return Kn(e,t,Ri(n),r)}var Bi=({current:e})=>e?e.ownerDocument.defaultView:null,Vi=(e,t)=>Math.abs(e-t);function Hi(e,t){let n=Vi(e.x,t.x),r=Vi(e.y,t.y);return Math.sqrt(n**2+r**2)}var Ui=new Set([`auto`,`scroll`]),Wi=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Gi(this.lastRawMoveEventInfo,this.transformPagePoint));let e=qi(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Hi(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Je;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Gi(t,this.transformPagePoint),M.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=qi(e.type===`pointercancel`?this.lastMoveEventInfo:Gi(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!xt(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Gi(Li(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=Je;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,qi(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Xe(zi(this.contextWindow,`pointermove`,this.handlePointerMove,d),zi(this.contextWindow,`pointerup`,this.handlePointerUp,d),zi(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Ui.has(e.overflowX)||Ui.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),M.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ve(this.updatePoint)}};function Gi(e,t){return t?{point:t(e.point)}:e}function Ki(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qi({point:e},t){return{point:e,delta:Ki(e,Yi(t)),offset:Ki(e,Ji(t)),velocity:Xi(t,.1)}}function Ji(e){return e[0]}function Yi(e){return e[e.length-1]}function Xi(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Yi(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>De(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>De(t)*2&&(r=e[1]);let a=Fe(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Zi(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?j(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?j(n,e,r.max):Math.min(e,n)),e}function Qi(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function $i(e,{top:t,left:n,bottom:r,right:i}){return{x:Qi(e.x,n,i),y:Qi(e.y,t,r)}}function ea(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ta(e,t){return{x:ea(e.x,t.x),y:ea(e.y,t.y)}}function na(e,t){let n=.5,r=mn(e),i=mn(t);return i>r?n=pe(t.min,t.max-r,e.min):r>i&&(n=pe(e.min,e.max-i,t.min)),ie(0,1,n)}function ra(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var ia=.35;function aa(e=ia){return e===!1?e=0:e===!0&&(e=ia),{x:oa(e,`left`,`right`),y:oa(e,`top`,`bottom`)}}
9function oa(e,t,n){return{min:sa(e,t),max:sa(e,n)}}function sa(e,t){return typeof e==`number`?e:e[t]||0}var ca=new WeakMap,la=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=d(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Li(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=gt(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),In(e=>{let t=this.getAxisMotionValue(e).get()||0;if(A.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=mn(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&M.update(()=>i(e,t),!1,!0),p(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=pa(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&M.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Wi(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Bi(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&M.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!fa(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Zi(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&wi(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?$i(n.layoutBox,e):!1,this.elastic=aa(t),r!==this.constraints&&!wi(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&In(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=ra(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!wi(e))return!1;let n=e.current;et(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.",`drag-constraints-ref`);let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=we(n,r.root,this.visualElement.getTransformPagePoint()),a=ta(r.layout.layoutBox,i);if(t){let e=t(l(a));this.hasMutatedConstraints=!!e,e&&(a=ae(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=In(o=>
9{if(!fa(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return p(this.visualElement,e),n.start(de(e,n,0,t,this.visualElement,!1))}stopAnimation(){In(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){In(t=>{let{drag:n}=this.getProps();if(!fa(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-j(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!wi(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};In(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=na({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),In(t=>{if(!fa(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(j(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;ca.set(this.visualElement,this);let e=this.visualElement.current,t=zi(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Tt(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();wi(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=da(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),M.read(r);let o=Kn(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(In(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=ia,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function ua(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function da(e,t,n){let r=Kt(e,ua(n)),i=Kt(t,ua(n));return()=>{r(),i()}}function fa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function pa(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var ma=class extends Yt{constructor(e){super(e),this.removeGroupControls=nt,this.removeListeners=nt,this.controls=new la(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||nt}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ha=e=>(t,n)=>{e&&M.update(()=>e(t,n),!1,!0)},ga=class extends Yt{constructor(){super(...arguments),this.removePointerDownListener=nt}onPointerDown(e){this.session=new Wi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Bi(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ha(e),onStart:ha(t),onMove:ha(n),onEnd:(e,t)=>{delete this.session,r&&M.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=zi(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},_a=!1,va=class extends P.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),_a&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Qn.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),_a=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||M.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),rt.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;_a=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function ya(e){let[t,n]=Hr(),r=(0,P.useContext)(ot);return(0,N.jsx)(va,{...e,layoutGroup:r,switchLayoutGroup:(0,P.useContext)(Ci),isPresent:t,safeToRemove:n})}var ba={pan:{Feature:ga},drag:{Feature:ma,ProjectionNode:Pr,MeasureLayout:ya}};
9function xa(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&M.postRender(()=>i(t,Li(t)))}var Sa=class extends Yt{mount(){let{current:e}=this.node;e&&(this.unmount=yt(e,(e,t)=>(xa(this.node,t,`Start`),e=>xa(this.node,e,`End`))))}unmount(){}},Ca=class extends Yt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Xe(Kn(this.node.current,`focus`,()=>this.onFocus()),Kn(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function wa(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&M.postRender(()=>i(t,Li(t)))}var Ta=class extends Yt{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Mt(e,(e,t)=>(wa(this.node,t,`Start`),(e,{success:t})=>wa(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Ea=new WeakMap,Da=new WeakMap,Oa=e=>{let t=Ea.get(e.target);t&&t(e)},ka=e=>{e.forEach(Oa)};function Aa({root:e,...t}){let n=e||document;Da.has(n)||Da.set(n,{});let r=Da.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ka,{root:e,...t})),r[i]}function ja(e,t,n){let r=Aa(t);return Ea.set(e,n),r.observe(e),()=>{Ea.delete(e),r.unobserve(e)}}var Ma={some:0,all:1},Na=class extends Yt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Ma[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=ja(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Pa(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Pa({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Fa={inView:{Feature:Na},tap:{Feature:Ta},focus:{Feature:Ca},hover:{Feature:Sa}},Ia={layout:{ProjectionNode:Pr,MeasureLayout:ya}},La=Mi({...Ii,...Fa,...ba,...Ia},Ni);function Ra(e){return typeof window>`u`?!1:e?Ke():xe()}var za=50,Ba=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Va=()=>({time:0,x:Ba(),y:Ba()}),Ha={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}};function Ua(e,t,n,r){let i=n[t],{length:a,position:o}=Ha[t],s=i.current,c=n.time;i.current=Math.abs(e[`scroll${o}`]),i.scrollLength=e[`scroll${a}`]-e[`client${a}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=pe(0,i.scrollLength,i.current);let l=r-c;i.velocity=l>za?0:Be(i.current-s,l)}function Wa(e,t,n){Ua(e,`x`,t,n),Ua(e,`y`,t,n),t.time=n}function Ga(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(pt(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName===`svg`){let e=r.getBoundingClientRect();r=r.parentElement;let t=r.getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let i=null,a=r.parentNode;for(;!i;)a.tagName===`svg`&&(i=a),a=r.parentNode;r=i}else break;return n}var Ka={start:0,center:.5,end:1};function qa(e,t,n=0){let r=0;if(e in Ka&&(e=Ka[e]),typeof e==`string`){let t=parseFloat(e);e.endsWith(`px`)?r=t:e.endsWith(`%`)?e=t/100:e.endsWith(`vw`)?r=t/100*document.documentElement.clientWidth:e.endsWith(`vh`)?r=t/100*document.documentElement.clientHeight:e=t}return typeof e==`number`&&(r=t*e),n+r}var Ja=[0,0];function Ya(e,t,n,r){let i=Array.isArray(e)?e:Ja,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,Ka[e]?e:`0`]),a=qa(i[0],n,r),o=qa(i[1],t),a-o}var Xa={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Za={x:0,y:0};function Qa(e){return`getBBox`in e&&e.tagName!==`svg`?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function $a(e,t,n){let{offset:r=Xa.All}=n,{target:i=e,axis:a=`y`}=n,o=a===`y`?`height`:`width`,s=i===e?Za:Ga(i,e),c=i===e?{width:e.scrollWidth,height:e.scrollHeight}:Qa(i),l={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let u=!t[a].interpolate,d=r.length;for(let e=0;e<d;e++){let n=Ya(r[e],l[o],c[o],s[a]);
9!u&&n!==t[a].interpolatorOffsets[e]&&(u=!0),t[a].offset[e]=n}u&&(t[a].interpolate=Ue(t[a].offset,Ie(r),{clamp:!1}),t[a].interpolatorOffsets=[...t[a].offset]),t[a].progress=ie(0,1,t[a].interpolate(t[a].current))}function eo(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function to(e,t,n,r={}){return{measure:t=>{eo(e,r.target,n),Wa(e,n,t),(r.offset||r.target)&&$a(e,n,r)},notify:()=>t(n)}}var no=new WeakMap,ro=new WeakMap,io=new WeakMap,ao=new WeakMap,oo=new WeakMap,so=e=>e===document.scrollingElement?window:e;function co(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return nt;let i=io.get(t);i||(i=new Set,io.set(t,i));let a=to(t,e,Va(),r);if(i.add(a),!no.has(t)){let e=()=>{for(let e of i)e.measure(Je.timestamp);M.preUpdate(n)},n=()=>{for(let e of i)e.notify()},r=()=>M.read(e);no.set(t,r);let a=so(t);window.addEventListener(`resize`,r),t!==document.documentElement&&ro.set(t,Kt(t,r)),a.addEventListener(`scroll`,r),r()}if(n&&!oo.has(t)){let e=no.get(t),n={width:t.scrollWidth,height:t.scrollHeight};ao.set(t,n);let r=M.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);oo.set(t,r)}let o=no.get(t);return M.read(o,!1,!0),()=>{ve(o);let e=io.get(t);if(!e||(e.delete(a),e.size))return;let n=no.get(t);no.delete(t),n&&(so(t).removeEventListener(`scroll`,n),ro.get(t)?.(),window.removeEventListener(`resize`,n));let r=oo.get(t);r&&(ve(r),oo.delete(t)),ao.delete(t)}}var lo=[[Xa.Enter,`entry`],[Xa.Exit,`exit`],[Xa.Any,`cover`],[Xa.All,`contain`]],uo={start:0,end:1};function fo(e){let t=e.trim().split(/\s+/);if(t.length!==2)return;let n=uo[t[0]],r=uo[t[1]];if(n!==void 0&&r!==void 0)return[n,r]}function po(e){if(e.length!==2)return;let t=[];for(let n of e)if(Array.isArray(n))t.push(n);else if(typeof n==`string`){let e=fo(n);if(!e)return;t.push(e)}else return;return t}function mo(e,t){let n=po(e);if(!n)return!1;for(let e=0;e<2;e++){let r=n[e],i=t[e];if(r[0]!==i[0]||r[1]!==i[1])return!1}return!0}function ho(e){if(!e)return{rangeStart:`contain 0%`,rangeEnd:`contain 100%`};for(let[t,n]of lo)if(mo(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}var go=new Map;function _o(e){let t={value:0};return{currentTime:t,cancel:co(n=>{t.value=n[e.axis].progress*100},e)}}function vo({source:e,container:t,...n}){let{axis:r}=n;e&&(t=e);let i=go.get(t);i||(i=new Map,go.set(t,i));let a=n.target??`self`,o=i.get(a);o||(o={},i.set(a,o));let s=r+(n.offset??[]).join(`,`);return o[s]||(n.target&&Ra(n.target)?ho(n.offset)?o[s]=new ViewTimeline({subject:n.target,axis:r}):o[s]=_o({container:t,...n}):Ra()?o[s]=new ScrollTimeline({source:t,axis:r}):o[s]=_o({container:t,...n})),o[s]}function yo(e,t){let n=vo(t),r=t.target?ho(t.offset):void 0,i=t.target?Ra(t.target)&&!!r:Ra();return e.attachTimeline({timeline:i?n:void 0,...r&&i&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:e=>(e.pause(),qt(t=>{e.time=e.iterationDuration*t},n))})}function bo(e){return e&&(e.target||e.offset)}function xo(e){return e.length===2}function So(e,t){return xo(e)||bo(t)?co(n=>{e(n[t.axis].progress,n)},t):qt(e,vo(t))}function Co(e,{axis:t=`y`,container:n=document.scrollingElement,...r}={}){if(!n)return nt;let i={axis:t,container:n,...r};return typeof e==`function`?So(e,i):yo(e,i)}function wo(e){let t=(0,P.useRef)(0),{isStatic:n}=(0,P.useContext)(me);(0,P.useEffect)(()=>{if(n)return;let r=({timestamp:n,delta:r})=>{t.current||=n,e(n-t.current,r)};return M.update(r,!0),()=>ve(r)},[e])}function To(e){e.values.forEach(e=>e.stop())}function Eo(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&Ve(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{Eo(e,t)})})}function Do(e,t){if(Array.isArray(t))return Eo(e,t);if(typeof t==`string`)return Eo(e,[t]);Ve(e,t)}function Oo(){let e=!1,t=new Set,n={subscribe(e){return t.add(e),()=>void t.delete(e)},start(n,r){et(e,`controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.`);let i=[];
9return t.forEach(e=>{i.push(ft(e,n,{transitionOverride:r}))}),Promise.all(i)},set(n){return et(e,`controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook.`),t.forEach(e=>{Do(e,n)})},stop(){t.forEach(e=>{To(e)})},mount(){return e=!0,()=>{e=!1,n.stop()}}};return n}function ko(){let e=oe(Oo);return st(e.mount,[]),e}var Ao={some:0,all:1};function jo(e,t,{root:n,margin:i,amount:a=`some`}={}){let o=r(e),s=new WeakMap,c=new IntersectionObserver(e=>{e.forEach(e=>{let n=s.get(e.target);if(e.isIntersecting!==!!n){if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?s.set(e.target,n):c.unobserve(e.target)}else typeof n==`function`&&(n(e),s.delete(e.target))}})},{root:n,rootMargin:i,threshold:typeof a==`number`?a:Ao[a]});return o.forEach(e=>c.observe(e)),()=>c.disconnect()}function Mo(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=(0,P.useState)(a);return(0,P.useEffect)(()=>{if(!e.current||i&&o)return;let a=()=>(s(!0),i?void 0:()=>s(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return jo(e.current,a,c)},[t,e,n,i,r]),o}function No(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=No(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Po(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=No(e))&&(r&&(r+=` `),r+=t);return r}var Fo=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Io=(e,t)=>({classGroupId:e,validator:t}),Lo=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ro=`-`,zo=[],Bo=`arbitrary..`,Vo=e=>{let t=Wo(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Uo(e);let n=e.split(Ro);return Ho(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Fo(i,t):t:i||zo}return n[e]||zo}}},Ho=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ho(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Ro):e.slice(t).join(Ro),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Uo=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Bo+r:void 0})(),Wo=e=>{let{theme:t,classGroups:n}=e;return Go(n,t)},Go=(e,t)=>{let n=Lo();for(let r in e){let i=e[r];Ko(i,n,r,t)}return n},Ko=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];qo(i,t,n,r)}},qo=(e,t,n,r)=>{if(typeof e==`string`){Jo(e,t,n);return}if(typeof e==`function`){Yo(e,t,n,r);return}Xo(e,t,n,r)},Jo=(e,t,n)=>{let r=e===``?t:Zo(t,e);r.classGroupId=n},Yo=(e,t,n,r)=>{if(Qo(e)){Ko(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Io(n,e))},Xo=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Ko(o,Zo(t,a),n,r)}},Zo=(e,t)=>{let n=e,r=t.split(Ro),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Lo(),n.nextPart.set(t,i)),n=i}return n},Qo=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,$o=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},es=`!`,ts=`:`,ns=[],rs=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),is=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===ts){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(es)?(c=s.slice(0,-1),l=!0):s.startsWith(es)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return rs(t,l,c,u)};if(t){let e=t+ts,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):rs(ns,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},as=e=>{let t=new Map;
vendor: 12,927 bytes, line 9
9return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},os=e=>({cache:$o(e.cacheSize),parseClassName:is(e),sortModifiers:as(e),postfixLookupClassGroupIds:ss(e),...Vo(e)}),ss=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},cs=/\s+/,ls=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(cs),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+es:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},us=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=ds(n))&&(i&&(i+=` `),i+=r);return i},ds=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=ds(e[r]))&&(n&&(n+=` `),n+=t);return n},fs=(e,...t)=>{let n,r,i,a,o=o=>(n=os(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ls(e,n);return i(e,a),a};return a=o,(...e)=>a(us(...e))},ps=[],F=e=>{let t=t=>t[e]||ps;return t.isThemeGetter=!0,t},ms=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,hs=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gs=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_s=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vs=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ys=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ss=e=>gs.test(e),I=e=>!!e&&!Number.isNaN(Number(e)),Cs=e=>!!e&&Number.isInteger(Number(e)),ws=e=>e.endsWith(`%`)&&I(e.slice(0,-1)),Ts=e=>_s.test(e),Es=()=>!0,Ds=e=>vs.test(e)&&!ys.test(e),Os=()=>!1,ks=e=>bs.test(e),As=e=>xs.test(e),js=e=>!L(e)&&!R(e),Ms=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Ns=e=>Js(e,Qs,Os),L=e=>ms.test(e),Ps=e=>Js(e,$s,Ds),Fs=e=>Js(e,ec,I),Is=e=>Js(e,nc,Es),Ls=e=>Js(e,tc,Os),Rs=e=>Js(e,Xs,Os),zs=e=>Js(e,Zs,As),Bs=e=>Js(e,rc,ks),R=e=>hs.test(e),Vs=e=>Ys(e,$s),Hs=e=>Ys(e,tc),Us=e=>Ys(e,Xs),Ws=e=>Ys(e,Qs),Gs=e=>Ys(e,Zs),Ks=e=>Ys(e,rc,!0),qs=e=>Ys(e,nc,!0),Js=(e,t,n)=>{let r=ms.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ys=(e,t,n=!1)=>{let r=hs.exec(e);return r?r[1]?t(r[1]):n:!1},Xs=e=>e===`position`||e===`percentage`,Zs=e=>e===`image`||e===`url`,Qs=e=>e===`length`||e===`size`||e===`bg-size`,$s=e=>e===`length`,ec=e=>e===`number`,tc=e=>e===`family-name`,nc=e=>e===`number`||e===`weight`,rc=e=>e===`shadow`,ic=fs(()=>{let e=F(`color`),t=F(`font`),n=F(`text`),r=F(`font-weight`),i=F(`tracking`),a=F(`leading`),o=F(`breakpoint`),s=F(`container`),c=F(`spacing`),l=F(`radius`),u=F(`shadow`),d=F(`inset-shadow`),f=F(`text-shadow`),p=F(`drop-shadow`),m=F(`blur`),h=F(`perspective`),g=F(`aspect`),_=F(`ease`),v=F(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),R,L],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[R,L,c],T=()=>[Ss,`full`,`auto`,...w()],E=()=>[Cs,`none`,`subgrid`,R,L],ee=()=>[`auto`,{span:[`full`,Cs,R,L]},Cs,R,L],te=()=>[Cs,`auto`,R,L],D=()=>[`auto`,`min`,`max`,`fr`,R,L],ne=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],re=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],O=()=>[`auto`,...w()],ie=()=>[Ss,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ae=()=>[Ss,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],oe=()=>[Ss,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],k=()=>[e,R,L],se=()=>[...b(),Us,Rs,{position:[R,L]}],ce=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],le=()=>[`auto`,`cover`,`contain`,Ws,Ns,{size:[R,L]}],ue=()=>[ws,Vs,Ps],de=()=>[``,`none`,`full`,l,R,L],fe=()=>[``,I,Vs,Ps],pe=()=>[`solid`,`dashed`,`dotted`,`double`],me=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],A=()=>[I,ws,Us,Rs],he=()=>[``,`none`,m,R,L],ge=()=>[`none`,I,R,L],_e=()=>[`none`,I,R,L],ve=()=>[I,R,L],ye=()=>[Ss,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Ts],breakpoint:[Ts],color:[Es],container:[Ts],"drop-shadow":[Ts],ease:[`in`,`out`,`in-out`],font:[js],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Ts],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Ts],shadow:[Ts],spacing:[`px`,I],text:[Ts],"text-shadow":[Ts],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Ss,L,R,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,R,L]}],"container-named":[Ms],columns:[{columns:[I,L,R,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Cs,`auto`,R,L]}],basis:[{basis:[Ss,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[I,Ss,`auto`,`initial`,`none`,L]}],grow:[{grow:[``,I,R,L]}],shrink:[{shrink:[``,I,R,L]}],order:[{order:[Cs,`first`,`last`,`none`,R,L]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ne(),`normal`]}],"justify-items":[{"justify-items":[...re(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...re()]}],"align-content":[{content:[`normal`,...ne()]}],"align-items":[{items:[...re(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...re(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...re(),`baseline`]}],"place-self":[{"place-self":[`auto`,...re()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ie()}],"inline-size":[{inline:[`auto`,...ae()]}],"min-inline-size":[{"min-inline":[`auto`,...ae()]}],"max-inline-size":[{"max-inline":[`none`,...ae()]}],"block-size":[{block:[`auto`,...oe()]}],"min-block-size":[{"min-block":[`auto`,...oe()]}],"max-block-size":[{"max-block":[`none`,...oe()]}],w:[{w:[s,`screen`,...ie()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ie()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ie()]}],h:[{h:[`screen`,`lh`,...ie()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ie()]}],"max-h":[{"max-h":[`screen`,`lh`,...ie()]}],"font-size":[{text:[`base`,n,Vs,Ps]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,qs,Is]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ws,L]}],"font-family":[{font:[Hs,Ls,t]}],"font-features":[{"font-features":[L]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,R,L]}],"line-clamp":[{"line-clamp":[I,`none`,R,Fs]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,R,L]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,R,L]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...pe(),`wavy`]}],"text-decoration-thickness":[{decoration:[I,`from-font`,`auto`,R,Ps]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[I,`auto`,R,L]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Cs,R,L]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,R,L]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,R,L]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:ce()}],"bg-size":[{bg:le()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Cs,R,L],radial:[``,R,L],conic:[Cs,R,L]},Gs,zs]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-bs":[{"border-bs":fe()}],"border-w-be":[{"border-be":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}
vendor: 6,834 bytes, line 9
9],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...pe(),`hidden`,`none`]}],"divide-style":[{divide:[...pe(),`hidden`,`none`]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...pe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[I,R,L]}],"outline-w":[{outline:[``,I,Vs,Ps]}],"outline-color":[{outline:k()}],shadow:[{shadow:[``,`none`,u,Ks,Bs]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ks,Bs]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:fe()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[I,Ps]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":[`none`,f,Ks,Bs]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[I,R,L]}],"mix-blend":[{"mix-blend":[...me(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":me()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[I]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[R,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[I]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:ce()}],"mask-size":[{mask:le()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,R,L]}],filter:[{filter:[``,`none`,R,L]}],blur:[{blur:he()}],brightness:[{brightness:[I,R,L]}],contrast:[{contrast:[I,R,L]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ks,Bs]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:[``,I,R,L]}],"hue-rotate":[{"hue-rotate":[I,R,L]}],invert:[{invert:[``,I,R,L]}],saturate:[{saturate:[I,R,L]}],sepia:[{sepia:[``,I,R,L]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,R,L]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[I,R,L]}],"backdrop-contrast":[{"backdrop-contrast":[I,R,L]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,I,R,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[I,R,L]}],"backdrop-invert":[{"backdrop-invert":[``,I,R,L]}],"backdrop-opacity":[{"backdrop-opacity":[I,R,L]}],"backdrop-saturate":[{"backdrop-saturate":[I,R,L]}],"backdrop-sepia":[{"backdrop-sepia":[``,I,R,L]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,R,L]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[I,`initial`,R,L]}],ease:[{ease:[`linear`,`initial`,_,R,L]}],delay:[{delay:[I,R,L]}],animate:[{animate:[`none`,v,R,L]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,R,L]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:_e()}],"scale-x":[{"scale-x":_e()}],"scale-y":[{"scale-y":_e()}],"scale-z":[{"scale-z":_e()}],"scale-3d":[`scale-3d`],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[R,L,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":[`translate-none`],zoom:[{zoom:[Cs,R,L]}],accent:[{accent:k()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom
9-in`,`zoom-out`,R,L]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":k()}],"scrollbar-track-color":[{"scrollbar-track":k()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}
9],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,R,L]}],fill:[{fill:[`none`,...k()]}],"stroke-w":[{stroke:[I,Vs,Ps,Fs]}],stroke:[{stroke:[`none`,...k()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function ac(...e){return ic(Po(e))}var oc=`M 223.892025,603.978994 C 218.503027,604.122588 213.284935,602.083006 209.421981,598.322029 C 205.559026,594.561051 203.380842,589.398256 203.380806,584.007823 C 203.359722,545.403673 203.361319,461.879243 203.362501,423.863258 C 203.362429,413.099627 211.882503,404.266440 222.638952,403.877276 C 324.389302,399.616467 425.717870,361.238505 507.664755,285.849836 C 515.534913,278.532660 527.783683,278.755370 535.382480,286.354166 C 562.285998,313.214593 621.345620,372.274210 648.642688,399.571275 C 652.459681,403.386832 654.571077,408.583379 654.499298,413.979558 C 654.427519,419.377172 652.177589,424.515520 648.260823,428.228328 C 533.355373,535.956501 381.319828,598.929317 223.892025,603.978994 Z`,sc=`203.36189729320762 280.50529611368785 451.1390914378231 323.4807395489872`,cc=43.16*.588,lc=45.49*.5571,uc=cc*.4258,dc=uc/451.1390914378231*323.4807395489872,fc=cc*.4877,pc=lc*.6721,mc=[{x:-7.777371890701922,y:-8.514943391370212,rotate:0},{x:10.399291890701923,y:11.172464391370209,rotate:180}],hc=(e,t,n)=>({x:-7.6+43.16*e/100,y:-8.77+45.49*t/100,rotate:n}),gc=[mc,[hc(-11.18,-9.93,-122.66),hc(41.24,43.7,270)],[hc(-10.74,-9.49,-210),hc(41.19,43.75,360)],[hc(-10.74,-9.49,-210),hc(41.19,43.75,360)],[hc(-6.56,-5.57,-285),hc(41.24,43.7,450)],[{...mc[0],rotate:-360},{...mc[1],rotate:540}]];function _c({active:e,run:t,className:n}){let r=Oe(),i=ko(),a=(0,P.useRef)(t);return(0,P.useEffect)(()=>{let n=a.current!==t;if(a.current=t,i.set(e=>gc[0][e]),!e||r||!n)return;let o=!1;async function s(){await i.start(e=>({...gc[1][e],transition:{duration:.2,ease:`easeIn`}})),!o&&(await i.start(e=>({...gc[2][e],transition:{delay:.001,duration:.02,ease:`linear`}})),!o&&(await new Promise(e=>window.setTimeout(e,21)),!o&&(await i.start(e=>({...gc[4][e],transition:{delay:.001,duration:.2,ease:`linear`}})),!o&&(await i.start(e=>({...gc[5][e],transition:{delay:.001,type:`spring`,mass:1,stiffness:471,damping:43.4}})),!o&&(await new Promise(e=>window.setTimeout(e,1)),o||i.set(e=>gc[0][e]))))))}return s(),()=>{o=!0,i.stop()}},[e,t,r,i]),(0,N.jsx)(`svg`,{className:n,viewBox:`0 0 28 28`,"aria-hidden":`true`,focusable:`false`,children:[0,1].map(e=>(0,N.jsx)(La.g,{custom:e,initial:gc[0][e],animate:i,style:{transformBox:`view-box`,originX:`${cc/2}px`,originY:`${lc/2}px`},children:(0,N.jsx)(`svg`,{x:fc,y:pc,width:uc,height:dc,viewBox:sc,preserveAspectRatio:`none`,overflow:`visible`,children:(0,N.jsx)(`path`,{d:oc,fill:`currentColor`,fillRule:`evenodd`})})},e))})}function vc({className:e}){let[t,n]=(0,P.useState)(0);return(0,N.jsxs)(`span`,{className:ac(`header-brand-logo`,e),onPointerEnter:e=>{e.pointerType===`mouse`&&n(e=>e+1)},children:[(0,N.jsx)(`img`,{src:`/images/wordmark.svg`,alt:E(`fr`,`components_shared_animated_brand_logo_theoasso`),width:136,height:32}),(0,N.jsx)(_c,{active:!0,run:t,className:`header-brand-mark`})]})}var yc=Object.defineProperty,bc=(e,t)=>yc(e,`name`,{value:t,configurable:!0});function xc(e,t){if(typeof e==`function`)return e(t);
9e!=null&&(e.current=t)}bc(xc,`setRef`);function Sc(...e){return t=>{let n=!1,r=e.map(e=>{let r=xc(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():xc(e[t],null)}}}}bc(Sc,`composeRefs`);function z(...e){return P.useCallback(Sc(...e),e)}bc(z,`useComposedRefs`);var Cc=Object.defineProperty,wc=(e,t)=>Cc(e,`name`,{value:t,configurable:!0});function Tc(e){let t=P.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Pc(r)&&typeof Rc==`function`&&(r=Rc(r._payload)),P.Children.forEach(r,e=>{if(Mc(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Pc(n)&&typeof Rc==`function`&&(n=Rc(n._payload)),a=kc(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=P.cloneElement(a,void 0,s):!o&&P.Children.count(r)===1&&P.isValidElement(r)&&(a=r);let c=a?jc(a):void 0,l=z(n,c);if(!a){if(r||r===0)throw Error(o?Lc(e):Ic(e));return r}let u=Ac(i,a.props??{});return a.type!==P.Fragment&&(u.ref=n?l:c),P.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}wc(Tc,`createSlot`);var Ec=Tc(`Slot`),Dc=Symbol.for(`radix.slottable`);function Oc(e){let t=wc(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=Dc,t}wc(Oc,`createSlottable`);var kc=wc((e,t)=>{if(`child`in e.props){let t=e.props.child;return P.isValidElement(t)?P.cloneElement(t,void 0,e.props.children(t.props.children)):null}return P.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function Ac(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}wc(Ac,`mergeProps`);function jc(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}wc(jc,`getElementRef`);function Mc(e){return P.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Dc}wc(Mc,`isSlottable`);var Nc=Symbol.for(`react.lazy`);function Pc(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Nc&&`_payload`in e&&Fc(e._payload)}wc(Pc,`isLazyComponent`);function Fc(e){return typeof e==`object`&&!!e&&`then`in e}wc(Fc,`isPromiseLike`);var Ic=wc(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Lc=wc(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Rc=P.use,zc=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Bc=Po,Vc=((e,t)=>n=>{if(t?.variants==null)return Bc(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=zc(t)||zc(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Bc(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)})(`inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm transition-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-4 disabled:pointer-events-none disabled:opacity-50`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90 shadow-button`,outline:`border border-border bg-background hover:bg-muted`,ghost:`hover:bg-muted`,accent:`bg-orange text-foreground hover:bg-orange/80`},size:{default:`h-12 px-6`,sm:`h-10 px-5 text-xs`,lg:`h-14 px-8 text-base`,icon:`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function B({className:e,variant:t,size:n,asChild:r=!1,...i}){return(0,N.jsx)(r?Ec:`button`,{"data-slot":`button`,"data-variant":t||`default`,"data-size":n||`default`,className:ac(Vc({variant:t,size:n,className:e})),...i})}var Hc=Object.defineProperty,Uc=(e,t)=>Hc(e,`name`,{value:t,configurable:!0}),Wc=!!(typeof window<`u`&&window.document&&window.document.createElement);function V(e,t,{checkForDefaultPrevented:n=!0}={}){return Uc(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Uc(V,`composeEventHandlers`);function Gc(e){if(!Wc)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Uc(Gc,`getOwnerWindow`);function Kc(e){if(!Wc)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Uc(Kc,`getOwnerDocument`);function qc(e,t=!1){let{activeElement:n}=Kc(e);if(!n?.nodeName)return null;if(Jc(n)&&n.contentDocument)return qc(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Kc(n).getElementById(e);if(t)return t}}return n}Uc(qc,`getActiveElement`);
9function Jc(e){return e.tagName===`IFRAME`}Uc(Jc,`isFrame`);var Yc=Object.defineProperty,Xc=(e,t)=>Yc(e,`name`,{value:t,configurable:!0});function Zc(e,t){let n=P.createContext(t);n.displayName=e+`Context`;let r=Xc(e=>{let{children:t,...r}=e,i=P.useMemo(()=>r,Object.values(r));return(0,N.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=P.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Xc(i,`useContext`),[r,i]}Xc(Zc,`createContext`);function Qc(e,t=[]){let n=[];function r(t,r){let i=P.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Xc(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=P.useMemo(()=>o,Object.values(o));return(0,N.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=P.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Xc(s,`useContext`),[o,s]}Xc(r,`createContext`);let i=Xc(()=>{let t=n.map(e=>P.createContext(e));return Xc(function(n){let r=n?.[e]||t;return P.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,$c(i,...t)]}Xc(Qc,`createContextScope`);function $c(...e){let t=e[0];if(e.length===1)return t;let n=Xc(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Xc(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return P.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Xc($c,`composeContextScopes`);var el=globalThis?.document?P.useLayoutEffect:()=>{},tl=Object.defineProperty,nl=(e,t)=>tl(e,`name`,{value:t,configurable:!0}),rl=P.useEffectEvent,il=P.useInsertionEffect;function al(e){if(typeof rl==`function`)return rl(e);let t=P.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof il==`function`?il(()=>{t.current=e}):el(()=>{t.current=e}),P.useMemo(()=>((...e)=>t.current?.(...e)),[])}nl(al,`useEffectEvent`);var ol=Object.defineProperty,sl=(e,t)=>ol(e,`name`,{value:t,configurable:!0}),cl=P.useInsertionEffect||el;function ll({prop:e,defaultProp:t,onChange:n=sl(()=>{},`onChange`),caller:r}){let[i,a,o]=ul({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,P.useCallback(t=>{if(s){let n=dl(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}sl(ll,`useControllableState`);function ul({defaultProp:e,onChange:t}){let[n,r]=P.useState(e),i=P.useRef(n),a=P.useRef(t);return cl(()=>{a.current=t},[t]),P.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}sl(ul,`useUncontrolledState`);function dl(e){return typeof e==`function`}sl(dl,`isFunction`);var fl=Symbol(`RADIX:SYNC_STATE`);function pl(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=al(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=P.useReducer((t,n)=>{if(n.type===fl)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=P.useRef(p);P.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=P.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return P.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:fl,state:i})},[i,d.state,c]),[h,f]}sl(pl,`useControllableStateReducer`);var ml=i(re(),1),hl=Object.defineProperty,gl=(e,t)=>hl(e,`name`,{value:t,configurable:!0}),H=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Tc(`Primitive.${t}`),r=P.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,N.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function _l(e,t){e&&ml.flushSync(()=>e.dispatchEvent(t))}gl(_l,`dispatchDiscreteCustomEvent`);var vl=Object.defineProperty,U=(e,t)=>vl(e,`name`,{value:t,configurable:!0});function yl(e){let t=e+`CollectionProvider`,[n,r]=Qc(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=U(e=>{let{scope:t,children:n}=e,r=P.useRef(null),a=P.useRef(new Map).current;return(0,N.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=Tc(s),l=P.forwardRef((e,t)=>
9{let{scope:n,children:r}=e,i=z(t,a(s,n).collectionRef);return(0,N.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Tc(u),p=P.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=P.useRef(null),s=z(t,o),c=a(u,n);return P.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,N.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return P.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return U(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}U(yl,`createCollection`);var bl=new WeakMap,xl=class e extends Map{static{U(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],bl.set(this,!0)}set(e,t){return bl.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=wl(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=Sl(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=Sl(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return Sl(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function Sl(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=Cl(e,t);return n===-1?void 0:e[n]}U(Sl,`at`);function Cl(e,t){let n=e.length,r=wl(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}U(Cl,`toSafeIndex`);function wl(e){return e!==e||e===0?0:Math.trunc(e)}U(wl,`toSafeInteger`);function Tl(e){let t=e+`CollectionProvider`,[n,r]=Qc(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new xl,setItemMap:U(()=>void 0,`setItemMap`)}),o=U(({state:e,...t})=>e?(0,N.jsx)(c,{...t,state:e}):(0,N.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=U(e=>{let t=h();return(0,N.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=U(e=>{let{scope:t,children:n,state:r}=e,a=P.useRef(null),[o,s]=P.useState(null),c=z(a,s),[l,u]=r;return P.useEffect(()=>{if(!o)return;let e=kl(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,N.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=Tc(l),d=P.forwardRef((e,t)=>
9{let{scope:n,children:r}=e,i=z(t,a(l,n).collectionRef);return(0,N.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=Tc(f),m=P.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=P.useRef(null),[s,c]=P.useState(null),l=z(t,o,c),{setItemMap:u}=a(f,n),d=P.useRef(i);El(d.current,i)||(d.current=i);let m=d.current;return P.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(Ol):(t.set(s,{...e,element:s}),t.toSorted(Ol)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new xl(e)))}},[s,m,u]),(0,N.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function h(){return P.useState(new xl)}U(h,`useInitCollection`);function g(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return U(g,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:h}]}U(Tl,`createCollection`);function El(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}U(El,`shallowEqual`);function Dl(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}U(Dl,`isElementPreceding`);function Ol(e,t){return!e[1].element||!t[1].element?0:Dl(e[1].element,t[1].element)?-1:1}U(Ol,`sortByDocumentPosition`);function kl(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}U(kl,`getChildListObserver`);var Al=Object.defineProperty,jl=(e,t)=>Al(e,`name`,{value:t,configurable:!0}),Ml=P.createContext(void 0);function Nl(e){let t=P.useContext(Ml);return e||t||`ltr`}jl(Nl,`useDirection`);var Pl=Object.defineProperty,Fl=(e,t)=>Pl(e,`name`,{value:t,configurable:!0});function Il(e){let t=P.useRef(e);return P.useEffect(()=>{t.current=e}),P.useMemo(()=>((...e)=>t.current?.(...e)),[])}Fl(Il,`useCallbackRef`);var Ll=Object.defineProperty,W=(e,t)=>Ll(e,`name`,{value:t,configurable:!0}),Rl=`dismissableLayer.update`,zl=`dismissableLayer.pointerDownOutside`,Bl=`dismissableLayer.focusOutside`,Vl,Hl=P.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Ul=P.forwardRef(W(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=P.useContext(Hl),[d,f]=P.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=P.useState({}),h=z(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=P.useRef(!1),C=Kl(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:P.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),w=ql(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),T=d?y===g.length-1:!1,E=Il(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return P.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T,E]),P.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Vl=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Jl(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=Vl))}},[d,p,n,u]),P.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Jl())},[d,u]),P.useEffect(()=>{let e=W(()=>m({}),`handleUpdate`);return document.addEventListener(Rl,e),()=>document.removeEventListener(Rl,e)},[]),(0,N.jsx)(H.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:V(e.onFocusCapture,w.onFocusCapture),onBlurCapture:V(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,C.onPointerDownCapture)})},`DismissableLayer`));function Wl(){let e=P.useContext(Hl),[t,n]=P.useState(null);return P.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}W(Wl,`useDismissableLayerSurface`);var Gl=W(()=>!0,`IS_TRUE`);function Kl(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Gl}=t,s=Il(e),c=P.useRef(!1),l=P.useRef(!1),u=P.useRef(new Map),d=P.useRef(()=>{});return P.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}W(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}W(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}W(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}W(p,`handleInteractionBubble`);let m=W(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||Yl(zl,s,p,{discrete:!0})};if(W(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(
9),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:W(()=>c.current=!0,`onPointerDownCapture`)}}W(Kl,`usePointerDownOutside`);function ql(e,t=globalThis?.document){let n=Il(e),r=P.useRef(!1);return P.useEffect(()=>{let e=W(e=>{e.target&&!r.current&&Yl(Bl,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:W(()=>r.current=!0,`onFocusCapture`),onBlurCapture:W(()=>r.current=!1,`onBlurCapture`)}}W(ql,`useFocusOutside`);function Jl(){let e=new CustomEvent(Rl);document.dispatchEvent(e)}W(Jl,`dispatchUpdate`);function Yl(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?_l(i,a):i.dispatchEvent(a)}W(Yl,`handleAndDispatchCustomEvent`);var Xl=Object.defineProperty,Zl=(e,t)=>Xl(e,`name`,{value:t,configurable:!0}),Ql=0,$l=null;function eu(e){return tu(),e.children}Zl(eu,`FocusGuards`);function tu(){P.useEffect(()=>{$l||={start:nu(),end:nu()};let{start:e,end:t}=$l;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Ql++,()=>{Ql===1&&($l?.start.remove(),$l?.end.remove(),$l=null),Ql=Math.max(0,Ql-1)}},[])}Zl(tu,`useFocusGuards`);function nu(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}Zl(nu,`createFocusGuard`);var ru=Object.defineProperty,iu=(e,t)=>ru(e,`name`,{value:t,configurable:!0}),au=`focusScope.autoFocusOnMount`,ou=`focusScope.autoFocusOnUnmount`,su={bubbles:!1,cancelable:!0},cu=P.forwardRef(iu(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=P.useState(null),l=Il(i),u=Il(a),d=P.useRef(null),f=z(t,c),p=P.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;P.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:hu(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||hu(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&hu(s)};iu(e,`handleFocusIn`),iu(t,`handleFocusOut`),iu(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),P.useEffect(()=>{if(s){gu.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(au,su);s.addEventListener(au,l),s.dispatchEvent(t),t.defaultPrevented||(lu(yu(du(s)),{select:!0}),document.activeElement===e&&hu(s))}return()=>{s.removeEventListener(au,l),setTimeout(()=>{let t=new CustomEvent(ou,su);s.addEventListener(ou,u),s.dispatchEvent(t),t.defaultPrevented||hu(e??document.body,{select:!0}),s.removeEventListener(ou,u),gu.remove(p)},0)}}},[s,l,u,p]);let m=P.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=uu(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&hu(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&hu(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,N.jsx)(H.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function lu(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(hu(r,{select:t}),document.activeElement!==n)return}iu(lu,`focusFirst`);function uu(e){let t=du(e);return[fu(t,e),fu(t.reverse(),e)]}iu(uu,`getTabbableEdges`);function du(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:iu(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)}
9);for(;n.nextNode();)t.push(n.currentNode);return t}iu(du,`getTabbableCandidates`);function fu(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):pu(r,{upTo:t})))return r}iu(fu,`findVisible`);function pu(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}iu(pu,`isHidden`);function mu(e){return e instanceof HTMLInputElement&&`select`in e}iu(mu,`isSelectableInput`);function hu(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&mu(e)&&t&&e.select()}}iu(hu,`focus`);var gu=_u();function _u(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=vu(e,t),e.unshift(t)},remove(t){e=vu(e,t),e[0]?.resume()}}}iu(_u,`createFocusScopesStack`);function vu(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}iu(vu,`arrayRemove`);function yu(e){return e.filter(e=>e.tagName!==`A`)}iu(yu,`removeLinks`);var bu=Object.defineProperty,xu=(e,t)=>bu(e,`name`,{value:t,configurable:!0}),Su=P.useId||(()=>void 0),Cu=0;function wu(e){let[t,n]=P.useState(Su());return el(()=>{e||n(e=>e??String(Cu++))},[e]),e||(t?`radix-${t}`:``)}xu(wu,`useId`);var Tu=[`top`,`right`,`bottom`,`left`],Eu=Math.min,Du=Math.max,Ou=Math.round,ku=Math.floor,Au=e=>({x:e,y:e}),ju={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Mu(e,t,n){return Du(e,Eu(t,n))}function Nu(e,t){return typeof e==`function`?e(t):e}function Pu(e){return e.split(`-`)[0]}function Fu(e){return e.split(`-`)[1]}function Iu(e){return e===`x`?`y`:`x`}function Lu(e){return e===`y`?`height`:`width`}function Ru(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function zu(e){return Iu(Ru(e))}function Bu(e,t,n){n===void 0&&(n=!1);let r=Fu(e),i=zu(e),a=Lu(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Yu(o)),[o,Yu(o)]}function Vu(e){let t=Yu(e);return[Hu(e),t,Hu(t)]}function Hu(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Uu=[`left`,`right`],Wu=[`right`,`left`],Gu=[`top`,`bottom`],Ku=[`bottom`,`top`];function qu(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Wu:Uu:t?Uu:Wu;case`left`:case`right`:return t?Gu:Ku;default:return[]}}function Ju(e,t,n,r){let i=Fu(e),a=qu(Pu(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Hu)))),a}function Yu(e){let t=Pu(e);return ju[t]+e.slice(t.length)}function Xu(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Zu(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Xu(e)}function Qu(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function $u(e,t,n){let{reference:r,floating:i}=e,a=Ru(t),o=zu(t),s=Lu(o),c=Pu(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Fu(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function ed(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Nu(t,e),p=Zu(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Qu(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Qu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left
9:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var td=50,nd=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ed},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=$u(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<td&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=$u(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},rd=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Nu(e,t)||{};if(l==null)return{};let d=Zu(u),f={x:n,y:r},p=zu(i),m=Lu(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Eu(d[_],T),ee=Eu(d[v],T),te=C-h[m]-ee,D=C/2-h[m]/2+w,ne=Mu(E,D,te),re=!c.arrow&&Fu(i)!=null&&D!==ne&&a.reference[m]/2-(D<E?E:ee)-h[m]/2<0,O=re?D<E?D-E:D-te:0;return{[p]:f[p]+O,data:{[p]:ne,centerOffset:D-ne-O,...re&&{alignmentOffset:O}},reset:re}}}),id=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Nu(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Pu(r),_=Ru(o),v=Pu(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Yu(o)]:Vu(o)),x=p!==`none`;!d&&x&&b.push(...Ju(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Bu(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Ru(t)||T.every(e=>Ru(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Ru(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function ad(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function od(e){return Tu.some(t=>e[t]>=0)}var sd=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Nu(e,t);switch(i){case`referenceHidden`:{let e=ad(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:od(e)}}}case`escaped`:{let e=ad(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:od(e)}}}default:return{}}}}},cd=new Set([`left`,`top`]);async function ld(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Pu(n),s=Fu(n),c=Ru(n)===`y`,l=cd.has(o)?-1:1,u=a&&c?-1:1,d=Nu(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var ud=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ld(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},dd=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Nu(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Ru(i),p=Iu(f),m=u[p],h=u[f],g=(e,t)=>Mu(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},fd=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Nu(e,t),u={x:n,y:r},d=Ru(i),f=Iu(d),p=u[f],m=u[d],h=Nu(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=cd.has(Pu(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},pd=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Nu(e,t),c=await i.detectOverflow(t,s),l=Pu(n),u=Fu(n),d=Ru(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Eu(p-c[m],g),y=Eu(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Du(c.left,c.right):S=p-2*Du(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function md(){return typeof window<`u`}function hd(e){return vd(e)?(e.nodeName||``).toLowerCase():`#document`}function gd(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _d(e){return((vd(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function vd(e){return md()?e instanceof Node||e instanceof gd(e).Node:!1}function yd(e){return md()?e instanceof Element||e instanceof gd(e).Element:!1}function bd(e){return md()?e instanceof HTMLElement||e instanceof gd(e).HTMLElement:!1}function xd(e){return!md()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof gd(e).ShadowRoot}function Sd(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Nd(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Cd(e){return/^(table|td|th)$/.test(hd(e))}function wd(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Td=/transform|translate|scale|rotate|perspective|filter/,Ed=/paint|layout|strict|content/,Dd=e=>!!e&&e!==`none`,Od;function kd(e){let t=yd(e)?Nd(e):e;return Dd(t.transform)||Dd(t.translate)||Dd(t.scale)||Dd(t.rotate)||Dd(t.perspective)||!jd()&&(Dd(t.backdropFilter)||Dd(t.filter))||Td.test(t.willChange||``)||Ed.test(t.contain||``)}function Ad(e){let t=Fd(e);for(;bd(t)&&!Md(t);){if(kd(t))return t;if(wd(t))return null;t=Fd(t)}return null}
vendor: 4,219 bytes, line 9
9function jd(){return Od??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Od}function Md(e){return/^(html|body|#document)$/.test(hd(e))}function Nd(e){return gd(e).getComputedStyle(e)}function Pd(e){return yd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fd(e){if(hd(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||xd(e)&&e.host||_d(e);return xd(t)?t.host:t}function Id(e){let t=Fd(e);return Md(t)?(e.ownerDocument||e).body:bd(t)&&Sd(t)?t:Id(t)}function Ld(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Id(e),i=r===e.ownerDocument?.body,a=gd(r);if(i){let e=Rd(a);return t.concat(a,a.visualViewport||[],Sd(r)?r:[],e&&n?Ld(e):[])}return t.concat(r,Ld(r,[],n))}function Rd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zd(e){let t=Nd(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=bd(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ou(n)!==a||Ou(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Bd(e){return yd(e)?e:e.contextElement}function Vd(e){let t=Bd(e);if(!bd(t))return Au(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=zd(t),o=(a?Ou(n.width):n.width)/r,s=(a?Ou(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Hd=Au(0);function Ud(e){let t=gd(e);return!jd()||!t.visualViewport?Hd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Wd(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===gd(e)}function Gd(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Bd(e),o=Au(1);t&&(r?yd(r)&&(o=Vd(r)):o=Vd(e));let s=Wd(a,n,r)?Ud(a):Au(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=gd(a),t=yd(r)?gd(r):r,n=e,i=Rd(n);for(;i&&t!==n;){let e=Vd(i),t=i.getBoundingClientRect(),r=Nd(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=gd(i),i=Rd(n)}}return Qu({width:u,height:d,x:c,y:l})}function Kd(e,t){let n=Pd(e).scrollLeft;return t?t.left+n:Gd(_d(e)).left+n}function qd(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Kd(e,n),y:n.top+t.scrollTop}}function Jd(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=_d(r),s=t?wd(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Au(1),u=Au(0),d=bd(r);if((d||!a)&&((hd(r)!==`body`||Sd(o))&&(c=Pd(r)),d)){let e=Gd(r);l=Vd(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?qd(o,c):Au(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Yd(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Xd(e){let t=Pd(e),n=e.ownerDocument.body,r=Du(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Du(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Kd(e),o=-t.scrollTop;return Nd(n).direction===`rtl`&&(a+=Du(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Zd=25;function Qd(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=gd(e),a=_d(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!jd()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Kd(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Zd&&(s-=o)}return{width:s,height:c,x:l,y:u}}function $d(e,t){let n=Gd(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Vd(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ef(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Qd(e,n,t);else if(t===`document`)r=Xd(_d(e));else if(yd(t))r=$d(t,n);else{let n=Ud(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Qu(r)}function tf(e,t){let n=t.get(e);if(n)return n;let r=Ld(e,[],!1).filter(e=>yd(e)&&hd(e)!==`body`),i=null,a=Nd(e).position===`fixed`,o=a?Fd(e):e;for(;
vendor: 4,905 bytes, line 9
9yd(o)&&!Md(o);){let e=Nd(o),t=kd(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Fd(o)}return t.set(e,r),r}function nf(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?wd(t)?[]:tf(t,this._c):[].concat(n),r],o=ef(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ef(t,a[e],i);s=Du(n.top,s),c=Eu(n.right,c),l=Eu(n.bottom,l),u=Du(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function rf(e){let{width:t,height:n}=zd(e);return{width:t,height:n}}function af(e,t,n){let r=bd(t),i=_d(t),a=n===`fixed`,o=Gd(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Au(0);if((r||!a)&&((hd(t)!==`body`||Sd(i))&&(s=Pd(t)),r)){let e=Gd(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Kd(i));let l=i&&!r&&!a?qd(i,s):Au(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function of(e){return Nd(e).position===`static`}function sf(e,t){if(!bd(e)||Nd(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return _d(e)===n&&(n=n.ownerDocument.body),n}function cf(e,t){let n=gd(e);if(wd(e))return n;if(!bd(e)){let t=Fd(e);for(;t&&!Md(t);){if(yd(t)&&!of(t))return t;t=Fd(t)}return n}let r=sf(e,t);for(;r&&Cd(r)&&of(r);)r=sf(r,t);return r&&Md(r)&&of(r)&&!kd(r)?n:r||Ad(e)||n}var lf=async function(e){let t=this.getOffsetParent||cf,n=this.getDimensions,r=await n(e.floating);return{reference:af(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function uf(e){return Nd(e).direction===`rtl`}var df={convertOffsetParentRelativeRectToViewportRelativeRect:Jd,getDocumentElement:_d,getClippingRect:nf,getOffsetParent:cf,getElementRects:lf,getClientRects:Yd,getDimensions:rf,getScale:Vd,isElement:yd,isRTL:uf};function ff(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pf(e,t,n){let r=null,i,a=_d(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=ku(d),h=ku(a.clientWidth-(u+f)),g=ku(a.clientHeight-(d+p)),_=ku(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Du(0,Eu(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!ff(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=gd(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function mf(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Bd(e),u=i||a?[...l?Ld(l):[],...t?Ld(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?pf(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Gd(e):null;c&&g();function g(){let t=Gd(e);h&&!ff(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var hf=ud,gf=dd,_f=id,vf=pd,yf=sd,bf=rd,xf=fd,Sf=(e,t,n)=>{let r=new Map,i=n??{},a={...df,...i.platform,_c:r};return nd(e,t,{...i,platform:a})},Cf=typeof document<`u`?P.useLayoutEffect:function(){};function wf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!wf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!wf(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Tf(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ef(e,t){let n=Tf(e);return Math.round(t*n)/n}function Df(e){let t=P.useRef(e);return Cf(()=>{t.current=e}),t}function Of(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=P.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=P.useState(r);wf(f,r)||p(r);let[m,h]=P.useState(null),[g,_]=P.useState(null),v=P.useCallback(e=>
vendor: 1,861 bytes, line 9
9{e!==S.current&&(S.current=e,h(e))},[]),y=P.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=P.useRef(null),C=P.useRef(null),w=P.useRef(u),T=c!=null,E=Df(c),ee=Df(i),te=Df(l),D=P.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};ee.current&&(e.platform=ee.current),Sf(S.current,C.current,e).then(e=>{let t={...e,isPositioned:te.current!==!1};ne.current&&!wf(w.current,t)&&(w.current=t,ml.flushSync(()=>{d(t)}))})},[f,t,n,ee,te]);Cf(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ne=P.useRef(!1);Cf(()=>(ne.current=!0,()=>{ne.current=!1}),[]),Cf(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,D);D()}},[b,x,D,E,T]);let re=P.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),O=P.useMemo(()=>({reference:b,floating:x}),[b,x]),ie=P.useMemo(()=>{let e={position:n,left:0,top:0};if(!O.floating)return e;let t=Ef(O.floating,u.x),r=Ef(O.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Tf(O.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,O.floating,u.x,u.y]);return P.useMemo(()=>({...u,update:D,refs:re,elements:O,floatingStyles:ie}),[u,D,re,O,ie])}var kf=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:bf({element:r.current,padding:i}).fn(n):r?bf({element:r,padding:i}).fn(n):{}}}},Af=(e,t)=>{let n=hf(e);return{name:n.name,fn:n.fn,options:[e,t]}},jf=(e,t)=>{let n=gf(e);return{name:n.name,fn:n.fn,options:[e,t]}},Mf=(e,t)=>({fn:xf(e).fn,options:[e,t]}),Nf=(e,t)=>{let n=_f(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pf=(e,t)=>{let n=vf(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ff=(e,t)=>
9{let n=yf(e);return{name:n.name,fn:n.fn,options:[e,t]}},If=(e,t)=>{let n=kf(e);return{name:n.name,fn:n.fn,options:[e,t]}},Lf=Object.defineProperty,Rf=(e,t)=>Lf(e,`name`,{value:t,configurable:!0});function zf(e){let[t,n]=P.useState(void 0);return el(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}Rf(zf,`useSize`);var Bf=Object.defineProperty,Vf=(e,t)=>Bf(e,`name`,{value:t,configurable:!0}),Hf=`Popper`,[Uf,Wf]=Qc(Hf),[Gf,Kf]=Uf(Hf),qf=Vf(e=>{let{__scopePopper:t,children:n}=e,[r,i]=P.useState(null),[a,o]=P.useState(void 0);return(0,N.jsx)(Gf,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Jf=`PopperAnchor`,Yf=P.forwardRef(Vf(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=Kf(Jf,n),o=P.useRef(null),s=a.onAnchorChange,c=z(t,P.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=P.useRef(null);P.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&np(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,N.jsx)(H.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),Xf=`PopperContent`,[Zf,Qf]=Uf(Xf),$f=P.forwardRef(Vf(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=Kf(Xf,n),[_,v]=P.useState(null),y=z(t,v),[b,x]=P.useState(null),S=zf(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},ee=Array.isArray(l)?l:[l],te=ee.length>0,D={padding:E,boundary:ee.filter(ep),altBoundary:te},{refs:ne,floatingStyles:re,placement:O,isPositioned:ie,middlewareData:ae}=Of({strategy:`fixed`,placement:T,whileElementsMounted:Vf((...e)=>mf(...e,{animationFrame:p===`always`}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[Af({mainAxis:i+w,alignmentAxis:o}),c&&jf({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Mf():void 0,...D}),c&&Nf({...D}),Pf({...D,apply:Vf(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),b&&If({element:b,padding:s}),tp({arrowWidth:C,arrowHeight:w}),f&&Ff({strategy:`referenceHidden`,...D,boundary:te?D.boundary:void 0})]}),oe=g.setPlacementState;el(()=>(oe(O),()=>{oe(void 0)}),[O,oe]);let[k,se]=np(O),ce=Il(m);el(()=>{ie&&ce?.()},[ie,ce]);let le=ae.arrow?.x,ue=ae.arrow?.y,de=ae.arrow?.centerOffset!==0,[fe,pe]=P.useState();return el(()=>{_&&pe(window.getComputedStyle(_).zIndex)},[_]),(0,N.jsx)(`div`,{ref:ne.setFloating,"data-radix-popper-content-wrapper":``,style:{...re,transform:ie?re.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:fe,"--radix-popper-transform-origin":[ae.transformOrigin?.x,ae.transformOrigin?.y].join(` `),...ae.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,N.jsx)(Zf,{scope:n,placedSide:k,placedAlign:se,onArrowChange:x,arrowX:le,arrowY:ue,shouldHideArrow:de,children:(0,N.jsx)(H.div,{"data-side":k,"data-align":se,...h,ref:y,style:{...h.style,animation:ie?h.style?.animation:`none`}})})})},`PopperContent`));function ep(e){return e!==null}Vf(ep,`isNotNull`);var tp=Vf(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=np(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function np(e){let[t,n=`center`]=e.split(`-`);return[t,n]}Vf(np,`getSideAndAlignFromPlacement`);var rp=qf,ip=Yf,ap=$f,op=Object.defineProperty,sp=P.forwardRef(((e,t)=>op(e,`name`,{value:t,configurable:!0}
9))(function(e,t){let{container:n,...r}=e,[i,a]=P.useState(!1);el(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?ml.createPortal((0,N.jsx)(H.div,{...r,ref:t}),o):null},`Portal`)),cp=Object.defineProperty,lp=(e,t)=>cp(e,`name`,{value:t,configurable:!0});function up(e,t){return P.useReducer((e,n)=>t[e][n]??e,e)}lp(up,`useStateMachine`);var dp=lp(e=>{let{present:t,children:n}=e,r=fp(t),i=typeof n==`function`?n({present:r.isPresent}):P.Children.only(n),a=mp(r.ref,gp(i));return typeof n==`function`||r.isPresent?P.cloneElement(i,{ref:a}):null},`Presence`);function fp(e){let[t,n]=P.useState(),r=P.useRef(null),i=P.useRef(e),a=P.useRef(`none`),o=P.useRef(void 0),[s,c]=up(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return P.useEffect(()=>{s===`mounted`?(a.current=o.current??hp(r.current),o.current=void 0):a.current=`none`},[s]),el(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=hp(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),el(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=lp(a=>{let o=hp(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=lp(e=>{e.target===t&&(a.current=hp(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:P.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=hp(t)}else r.current=null;n(e)},[])}}lp(fp,`usePresence`);function pp(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}lp(pp,`setRef`);function mp(...e){let t=P.useRef(e);return t.current=e,P.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=pp(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():pp(n[e],null)}}},[])}lp(mp,`useStableComposedRefs`);function hp(e){return e?.animationName||`none`}lp(hp,`getAnimationName`);function gp(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}lp(gp,`getElementRef`);var _p=Object.defineProperty,vp=(e,t)=>_p(e,`name`,{value:t,configurable:!0}),yp=!1;function bp(){let[e,t]=P.useState(yp);return P.useEffect(()=>{yp||(yp=!0,t(!0))},[]),e}vp(bp,`useIsHydrated`);var xp=P.useSyncExternalStore;function Sp(){return()=>{}}vp(Sp,`subscribe`);function Cp(){return xp(Sp,()=>!0,()=>!1)}vp(Cp,`useIsHydratedModern`);var wp=typeof xp==`function`?Cp:bp,Tp=Object.defineProperty,Ep=(e,t)=>Tp(e,`name`,{value:t,configurable:!0}),Dp=`rovingFocusGroup.onEntryFocus`,Op={bubbles:!1,cancelable:!0},kp=`RovingFocusGroup`,[Ap,jp,Mp]=yl(kp),[Np,Pp]=Qc(kp,[Mp]),[Fp,Ip]=Np(kp),Lp=P.forwardRef(Ep(function(e,t){return(0,N.jsx)(Ap.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,N.jsx)(Ap.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,N.jsx)(Rp,{...e,ref:t})})})},`RovingFocusGroup`)),Rp=P.forwardRef(Ep(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=P.useRef(null),p=z(t,f),m=Nl(a),[h,g]=ll({prop:o,defaultProp:s??null,onChange:c,caller:kp}),[_,v]=P.useState(!1),y=Il(l),b=jp(n),x=P.useRef(!1),[S,C]=P.useState(0);return P.useEffect(()=>{let e=f.current;
9if(e)return e.addEventListener(Dp,y),()=>e.removeEventListener(Dp,y)},[y]),(0,N.jsx)(Fp,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:P.useCallback(e=>g(e),[g]),onItemShiftTab:P.useCallback(()=>v(!0),[]),onFocusableItemAdd:P.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:P.useCallback(()=>C(e=>e-1),[]),children:(0,N.jsx)(H.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:V(e.onMouseDown,()=>{x.current=!0}),onFocus:V(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(Dp,Op);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);Wp([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:V(e.onBlur,()=>v(!1))})})},`RovingFocusGroupImpl`)),zp=`RovingFocusGroupItem`,Bp=P.forwardRef(Ep(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=wu(),l=a||c,u=Ip(zp,n),d=u.currentTabStopId===l,f=jp(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=wp();return el(()=>{if(g&&r)return p(),()=>m()},[g,r,p,m]),P.useEffect(()=>{if(!g&&r)return p(),()=>m()},[g,r,p,m]),(0,N.jsx)(Ap.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,N.jsx)(H.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:V(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:V(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:V(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Up(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?Gp(n,r+1):n.slice(r+1)}setTimeout(()=>Wp(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})},`RovingFocusGroupItem`)),Vp={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Hp(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}Ep(Hp,`getDirectionAwareKey`);function Up(e,t,n){let r=Hp(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Vp[r]}Ep(Up,`getFocusIntent`);function Wp(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}Ep(Wp,`focusFirst`);function Gp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Ep(Gp,`wrapArray`);var Kp=Lp,qp=Bp,Jp=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Yp=new WeakMap,Xp=new WeakMap,Zp={},Qp=0,$p=function(e){return e&&(e.host||$p(e.parentNode))},em=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=$p(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},tm=function(e,t,n,r){var i=em(t,Array.isArray(e)?e:[e]);Zp[n]||(Zp[n]=new WeakMap);var a=Zp[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Yp.get(e)||0)+1,l=(a.get(e)||0)+1;Yp.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Xp.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Qp++,function(){o.forEach(function(e){var t=Yp.get(e)-1,i=a.get(e)-1;Yp.set(e,t),a.set(e,i),t||(Xp.has(e)||e.removeAttribute(r),Xp.delete(e)),i||e.removeAttribute(n)}),Qp--,Qp||(Yp=new WeakMap,Yp=new WeakMap,Xp=new WeakMap,Zp={})}},nm=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Jp(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),tm(r,i,n,`aria-hidden`)):function(){return null}},rm=function(){return rm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},rm.apply(this,arguments)};function im(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function am(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;
vendor: 8,898 bytes, lines 9-49
9r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var om=`right-scroll-bar-position`,sm=`width-before-scroll-bar`,cm=`with-scroll-bars-hidden`,lm=`--removed-body-scroll-bar-size`;function um(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function dm(e,t){var n=(0,P.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var fm=typeof window<`u`?P.useLayoutEffect:P.useEffect,pm=new WeakMap;function mm(e,t){var n=dm(t||null,function(t){return e.forEach(function(e){return um(e,t)})});return fm(function(){var t=pm.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||um(e,null)}),i.forEach(function(e){r.has(e)||um(e,a)})}pm.set(n,e)},[e]),n}function hm(e){return e}function gm(e,t){t===void 0&&(t=hm);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function _m(e){e===void 0&&(e={});var t=gm(null);return t.options=rm({async:!0,ssr:!1},e),t}var vm=function(e){var t=e.sideCar,n=im(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return P.createElement(r,rm({},n))};vm.isSideCarExport=!0;function ym(e,t){return e.useMedium(t),vm}var bm=_m(),xm=function(){},Sm=P.forwardRef(function(e,t){var n=P.useRef(null),r=P.useState({onScrollCapture:xm,onWheelCapture:xm,onTouchMoveCapture:xm}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=im(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=mm([n,t]),C=rm(rm({},b),i);return P.createElement(P.Fragment,null,u&&P.createElement(x,{sideCar:bm,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?P.cloneElement(P.Children.only(s),rm(rm({},C),{ref:S})):P.createElement(v,rm({},C,{className:c,ref:S}),s))});Sm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Sm.classNames={fullWidth:sm,zeroRight:om};var Cm=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function wm(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Cm();return t&&e.setAttribute(`nonce`,t),e}function Tm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Em(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Dm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=wm())&&(Tm(t,n),Em(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Om=function(){var e=Dm();return function(t,n){P.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},km=function(){var e=Om();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Am={left:0,top:0,right:0,gap:0},jm=function(e){return parseInt(e||``,10)||0},Mm=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[jm(n),jm(r),jm(i)]},Nm=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Am;var t=Mm(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Pm=km(),Fm=`data-scroll-locked`,Im=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` 10 .${cm} { 11 overflow: hidden ${r}; 12 padding-right: ${s}px ${r}; 13 } 14 body[${Fm}] { 15 overflow: hidden ${r}; 16 overscroll-behavior: contain; 17 ${[t&&`position: relative ${r};`,n===`margin`&&` 18 padding-left: ${i}px; 19 padding-top: ${a}px; 20 padding-right: ${o}px; 21 margin-left:0; 22 margin-top:0; 23 margin-right: ${s}px ${r}; 24 `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} 25 } 26 27 .${om} { 28 right: ${s}px ${r}; 29 } 30 31 .${sm} { 32 margin-right: ${s}px ${r}; 33 } 34 35 .${om} .${om} { 36 right: 0 ${r}; 37 } 38 39 .${sm} .${sm} { 40 margin-right: 0 ${r}; 41 } 42 43 body[${Fm}] { 44 ${lm}: ${s}px; 45 } 46`},Lm=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Rm=function(){P.useEffect(function(){return document.body.setAttribute(Fm,(Lm()+1).toString()),function(){var e=Lm()-1;e<=0?document.body.removeAttribute(Fm):document.body.setAttribute(Fm,e.toString())}},[])},zm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Rm();var a=P.useMemo(function(){return Nm(i)},[i]);return P.createElement(Pm,{styles:Im(a,!t,i,n?``:`!important`)})},Bm=!1;if(typeof window<`u`)try{var Vm=Object.defineProperty({},"passive",{get:function(){return Bm=!0,!0}});window.addEventListener(`test`,Vm,Vm),window.removeEventListener(`test`,Vm,Vm)}catch{Bm=!1}var Hm=Bm?{passive:!1}:!1,Um=function(e){return e.tagName===`TEXTAREA`},Wm=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Um(e)&&n[t]===`visible`)},Gm=function(e){return Wm(e,`overflowY`)},Km=function(e){return Wm(e,`overflowX`)},qm=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Xm(e,r)){var i=Zm(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Jm=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Ym=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Xm=function(e,t){return e===`v`?Gm(t):Km(t)},Zm=function(e,t){return e===`v`?Jm(t):Ym(t)},Qm=function(e,t){return e===`h`&&t===`rtl`?-1:1},$m=function(e,t,n,r,i){var a=Qm(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Zm(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Xm(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},eh=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},th=function(e){return[e.deltaX,e.deltaY]},nh=function(e){return e&&`current`in e?e.current:e},rh=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ih=function(e){return` 47 .block-interactivity-${e} {pointer-events: none;} 48 .allow-interactivity-${e} {pointer-events: all;} 49`},ah=0,oh=[];function sh(e){var t=P.useRef([]),n=P.useRef([0,0]),r=P.useRef(),i=P.useState(ah++)[0],a=P.useState(km)[0],o=P.useRef(e);P.useEffect(function(){o.current=e},[e]),P.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=am([e.lockRef.current],(e.shards||[]).map(nh),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=P.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=eh(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=qm(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=qm(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return $m(h,t,e,h===`h`?s:c,!0)},[]),c=P.useCallback(function(e){var n=e;if(oh.length&&oh[oh.length-1]===a){var r=`deltaY`in n?th(n):eh(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&rh(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}
49if(!i){var c=(o.current.shards||[]).map(nh).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=P.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:ch(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=P.useCallback(function(e){n.current=eh(e),r.current=void 0},[]),d=P.useCallback(function(t){l(t.type,th(t),t.target,s(t,e.lockRef.current))},[]),f=P.useCallback(function(t){l(t.type,eh(t),t.target,s(t,e.lockRef.current))},[]);P.useEffect(function(){return oh.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Hm),document.addEventListener(`touchmove`,c,Hm),document.addEventListener(`touchstart`,u,Hm),function(){oh=oh.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Hm),document.removeEventListener(`touchmove`,c,Hm),document.removeEventListener(`touchstart`,u,Hm)}},[]);var p=e.removeScrollBar,m=e.inert;return P.createElement(P.Fragment,null,m?P.createElement(a,{styles:ih(i)}):null,p?P.createElement(zm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ch(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var lh=ym(bm,sh),uh=P.forwardRef(function(e,t){return P.createElement(Sm,rm({},e,{ref:t,sideCar:lh}))});uh.classNames=Sm.classNames;var dh=Object.defineProperty,G=(e,t)=>dh(e,`name`,{value:t,configurable:!0}),fh=[`Enter`,` `],ph=[`ArrowDown`,`PageUp`,`Home`],mh=[`ArrowUp`,`PageDown`,`End`],hh=[...ph,...mh];[...fh],[...fh];var gh=`Menu`,[_h,vh,yh]=yl(gh),[bh,xh]=Qc(gh,[yh,Wf,Pp]),Sh=Wf(),Ch=Pp(),[wh,Th]=bh(gh),[Eh,Dh]=bh(gh),Oh=G(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Sh(t),[c,l]=P.useState(null),u=P.useRef(!1),d=Il(a),f=Nl(i);return P.useEffect(()=>{let e=G(()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=G(()=>u.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),P.useEffect(()=>{if(!n)return;let e=G(()=>d(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,N.jsx)(rp,{...s,children:(0,N.jsx)(wh,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,N.jsx)(Eh,{scope:t,onClose:P.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})},`Menu`),kh=P.forwardRef(G(function(e,t){let{__scopeMenu:n,...r}=e,i=Sh(n);return(0,N.jsx)(ip,{...i,...r,ref:t})},`MenuAnchor`)),Ah=`MenuPortal`,[jh,Mh]=bh(Ah,{forceMount:void 0}),Nh=G(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Th(Ah,t);return(0,N.jsx)(jh,{scope:t,forceMount:n,children:(0,N.jsx)(dp,{present:n||a.open,children:(0,N.jsx)(sp,{asChild:!0,container:i,children:r})})})},`MenuPortal`),Ph=`MenuContent`,[Fh,Ih]=bh(Ph),Lh=P.forwardRef(G(function(e,t){let n=Mh(Ph,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Th(Ph,e.__scopeMenu),o=Dh(Ph,e.__scopeMenu);return(0,N.jsx)(_h.Provider,{scope:e.__scopeMenu,children:(0,N.jsx)(dp,{present:r||a.open,children:(0,N.jsx)(_h.Slot,{scope:e.__scopeMenu,children:o.modal?(0,N.jsx)(Rh,{...i,ref:t}):(0,N.jsx)(zh,{...i,ref:t})})})})},`MenuContent`)),Rh=P.forwardRef(G(function(e,t){let n=Th(Ph,e.__scopeMenu),r=P.useRef(null),i=z(t,r);return P.useEffect(()=>{let e=r.current;if(e)return nm(e)},[]),(0,N.jsx)(Vh,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),zh=P.forwardRef(G(function(e,t){let n=Th(Ph,e.__scopeMenu);return(0,N.jsx)(Vh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),Bh=Tc(`MenuContent.ScrollLock`),Vh=P.forwardRef(G(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=Th(Ph,n),_=Dh(Ph,n),v=Sh(n),y=Ch(n),b=vh(n),[x,S]=P.useState(null),C=P.useRef(null),w=z(t,C,g.onContentChange),T=P.useRef(0),E=P.useRef(``),ee=P.useRef(0),te=P.useRef(null),D=P.useRef(`right`),ne=P.useRef(0),re=m?uh:P.Fragment,O=m?{as:Bh,allowPinchZoom:!0}:void 0,ie=G(e=>{let t=E.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=rg(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;G((function e(t){E.current=t,window.clearTimeout(T.current),t!==``&&(T.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(t),o&&setTimeout(()=>
49o.focus())},`handleTypeaheadSearch`);P.useEffect(()=>()=>window.clearTimeout(T.current),[]),tu();let ae=P.useCallback(e=>D.current===te.current?.side&&ag(e,te.current?.area),[]);return(0,N.jsx)(Fh,{scope:n,searchRef:E,onItemEnter:P.useCallback(e=>{ae(e)&&e.preventDefault()},[ae]),onItemLeave:P.useCallback(e=>{ae(e)||(C.current?.focus(),S(null))},[ae]),onTriggerLeave:P.useCallback(e=>{ae(e)&&e.preventDefault()},[ae]),pointerGraceTimerRef:ee,onPointerGraceIntentChange:P.useCallback(e=>{te.current=e},[]),children:(0,N.jsx)(re,{...O,children:(0,N.jsx)(cu,{asChild:!0,trapped:i,onMountAutoFocus:V(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,N.jsx)(Ul,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,N.jsx)(Kp,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:V(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,N.jsx)(ap,{role:`menu`,"aria-orientation":`vertical`,"data-state":Qh(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:w,style:{outline:`none`,...h.style},onKeyDown:V(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&ie(e.key));let i=C.current;if(e.target!==i||!hh.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);mh.includes(e.key)&&a.reverse(),tg(a)}),onBlur:V(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),E.current=``)}),onPointerMove:V(e.onPointerMove,og(e=>{let t=e.target,n=ne.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>ne.current?`right`:`left`;D.current=t,ne.current=e.clientX}}))})})})})})})},`MenuContentImpl`)),Hh=`MenuItem`,Uh=`menu.itemSelect`,Wh=P.forwardRef(G(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=P.useRef(null),o=Dh(Hh,e.__scopeMenu),s=Ih(Hh,e.__scopeMenu),c=z(t,a),l=P.useRef(!1),u=G(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(Uh,{bubbles:!0,cancelable:!0});e.addEventListener(Uh,e=>r?.(e),{once:!0}),_l(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,N.jsx)(Gh,{...i,ref:c,disabled:n,onClick:V(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:V(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:V(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&fh.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),Gh=P.forwardRef(G(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Ih(Hh,n),s=Ch(n),c=P.useRef(null),l=z(t,c),[u,d]=P.useState(!1),[f,p]=P.useState(``);return P.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,N.jsx)(_h.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,N.jsx)(qp,{asChild:!0,...s,focusable:!r,children:(0,N.jsx)(H.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:V(e.onPointerMove,og(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:V(e.onPointerLeave,og(e=>o.onItemLeave(e))),onFocus:V(e.onFocus,()=>d(!0)),onBlur:V(e.onBlur,()=>d(!1))})})})},`MenuItemImpl`)),[Kh,qh]=bh(`MenuRadioGroup`,{value:void 0,onValueChange:G(()=>{},`onValueChange`)}),[Jh,Yh]=bh(`MenuItemIndicator`,{checked:!1}),[Xh,Zh]=bh(`MenuSub`);function Qh(e){return e?`open`:`closed`}G(Qh,`getOpenState`);function $h(e){return e===`indeterminate`}G($h,`isIndeterminate`);function eg(e){return $h(e)?`indeterminate`:e?`checked`:`unchecked`}G(eg,`getCheckedState`);function tg(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}G(tg,`focusFirst`);function ng(e,t){return e.map((n,r)=>e[(t+r)%e.length])}G(ng,`wrapArray`);function rg(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=ng(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}G(rg,`getNextMatch`);function ig(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}G(ig,`isPointInPolygon`);function ag(e,t){return t?ig({x:e.clientX,y:e.clientY},t):!1}G(ag,`isPointerInGraceArea`);function og(e){return t=>t.pointerType===`mouse`?e(t):void 0}G(og,`whenMouse`);var sg=Oh,cg=kh,lg=Nh,ug=Lh,dg=Wh,fg=Object.defineProperty,pg=(e,t)=>
49fg(e,`name`,{value:t,configurable:!0}),mg=`DropdownMenu`,[hg,gg]=Qc(mg,[xh]),_g=xh(),[vg,yg]=hg(mg),bg=pg(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=_g(t),l=P.useRef(null),[u,d]=ll({prop:i,defaultProp:a??!1,onChange:o,caller:mg});return(0,N.jsx)(vg,{scope:t,triggerId:wu(),triggerRef:l,contentId:wu(),open:u,onOpenChange:d,onOpenToggle:P.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,N.jsx)(sg,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),xg=`DropdownMenuTrigger`,Sg=P.forwardRef(pg(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=yg(xg,n),o=_g(n),s=z(t,a.triggerRef);return(0,N.jsx)(cg,{asChild:!0,...o,children:(0,N.jsx)(H.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:V(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:V(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),Cg=pg(e=>{let{__scopeDropdownMenu:t,...n}=e,r=_g(t);return(0,N.jsx)(lg,{...r,...n})},`DropdownMenuPortal`),wg=`DropdownMenuContent`,Tg=P.forwardRef(pg(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=yg(wg,n),a=_g(n),o=P.useRef(!1);return(0,N.jsx)(ug,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:V(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),Eg=P.forwardRef(pg(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=_g(n);return(0,N.jsx)(dg,{...i,...r,ref:t})},`DropdownMenuItem`)),Dg=bg,Og=Sg,kg=Cg,Ag=Tg,jg=Eg;function Mg({data:e}){return(0,N.jsxs)(`aside`,{className:`pricing-menu-note rounded-xl border-l-2 border-[#91b4a7] bg-mint/60 p-5 text-sm leading-relaxed`,children:[(0,N.jsx)(`p`,{className:`mb-3 font-medium`,children:e.locale===`fr`?E(`fr`,`layout_pricing_menu_note_which_income_should_you_count`):E(`en`,`layout_pricing_menu_note_which_income_should_you_count`)}),(0,N.jsx)(`p`,{children:e.pricing[e.bands[0].slug].description})]})}function Ng(e){let t=w();return(n,r)=>{if(!e||n.button!==0||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey)return;n.preventDefault();let i={left:window.scrollX,top:window.scrollY};t({to:r,resetScroll:!1}).then(()=>{window.scrollTo({...i,behavior:`instant`}),requestAnimationFrame(()=>{window.scrollTo({...i,behavior:`instant`})})})}}function Pg({data:e,kind:t}){let n=t===`pricing`,r=Ng(e.segments[0]===`tarifs`),[i,a]=(0,P.useState)(!1),o=(0,P.useRef)(null),s=(0,P.useRef)(!1),l=(0,P.useRef)(null),u=()=>{o.current&&clearTimeout(o.current),o.current=null},d=e=>{e.pointerType===`mouse`&&(u(),i||(s.current=!0),a(!0))},f=e=>{e.pointerType===`mouse`&&(u(),o.current=setTimeout(()=>a(!1),180))};return(0,P.useEffect)(()=>()=>{o.current&&clearTimeout(o.current)},[]),(0,N.jsxs)(Dg,{modal:!1,open:i,onOpenChange:e=>{u(),s.current=!1,a(e)},children:[(0,N.jsxs)(`div`,{className:`nav-dropdown-control`,onPointerEnter:d,onPointerLeave:f,children:[!n&&(0,N.jsx)(S,{className:`nav-link product-direct-link`,onClick:()=>{u(),a(!1)},to:c(`/produit`,e.locale),children:e.t.product}),(0,N.jsxs)(Og,{ref:l,className:`nav-link dropdown-toggle ${n?``:`arrow-only`}`,"aria-label":n?void 0:e.locale===`fr`?E(`fr`,`layout_desktop_menu_product_submenu`):E(`en`,`layout_desktop_menu_product_submenu`),children:[n&&e.t.pricing,(0,N.jsx)(`span`,{className:`dropdown-chevron`,"aria-hidden":`true`})]})]}),(0,N.jsx)(kg,{children:(0,N.jsx)(Ag,{onPointerEnter:d,onPointerLeave:f,onCloseAutoFocus:e=>{(n||s.current)&&(e.preventDefault(),l.current?.focus({preventScroll:!0}))},align:`center`,sideOffset:16,className:`z-50 rounded-2xl border border-border bg-background p-6 shadow-menu ${n?`grid max-h-[var(--radix-dropdown-menu-content-available-height)] w-[min(760px,90vw)] grid-cols-2 gap-7 overflow-y-auto`:`grid w-[min(850px,90vw)] grid-cols-4 gap-7`}`,children:n?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`p`,{className:`eyebrow mb-4`,children:e.t.pricingTitle}),e.bands.map(t=>(0,N.jsx)(jg,{asChild:!0,children:(0,N.jsxs)(S,{to:c(`/tarifs/${t.slug}`,e.locale),resetScroll:e.segments[0]!==`tarifs`,onClick:n=>{r(n,c(`/tarifs/${t.slug}`,e.locale)),u(),a(!1)},className:`menu-item`,children:[t.label,(0,N.jsx)(`span`,{"aria-hidden":!0,
49children:`â`})]})},t.slug))]}),(0,N.jsx)(Mg,{data:e})]}):e.products.map(t=>(0,N.jsxs)(`div`,{children:[(0,N.jsx)(jg,{asChild:!0,children:(0,N.jsx)(S,{to:c(`/produit`,e.locale),hash:t.id,hashScrollIntoView:!1,resetScroll:!1,className:`mb-4 block font-medium outline-none hover:text-muted-foreground`,children:t.title})}),t.modules.map(t=>(0,N.jsx)(jg,{asChild:!0,children:(0,N.jsx)(S,{to:c(`/produit`,e.locale),hash:t.id,hashScrollIntoView:!1,resetScroll:!1,className:`menu-item product-menu-item text-sm`,children:t.title})},t.id))]},t.id))})})]})}var Fg=Object.defineProperty,Ig=(e,t)=>Fg(e,`name`,{value:t,configurable:!0}),Lg=`Dialog`,[Rg,zg]=Qc(Lg),[Bg,Vg]=Rg(Lg),Hg=Ig(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=P.useRef(null),c=P.useRef(null),[l,u]=ll({prop:r,defaultProp:i??!1,onChange:a,caller:Lg}),[d,f]=P.useState(0),[p,m]=P.useState(0);return(0,N.jsx)(Bg,{scope:t,triggerRef:s,contentRef:c,contentId:wu(),titleId:wu(),descriptionId:wu(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:l,onOpenChange:u,onOpenToggle:P.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),Ug=`DialogTrigger`,Wg=P.forwardRef(Ig(function(e,t){let{__scopeDialog:n,...r}=e,i=Vg(Ug,n),a=z(t,i.triggerRef);return(0,N.jsx)(H.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":u_(i.open),...r,ref:a,onClick:V(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),Gg=`DialogPortal`,[Kg,qg]=Rg(Gg,{forceMount:void 0}),Jg=Ig(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Vg(Gg,t);return(0,N.jsx)(Kg,{scope:t,forceMount:n,children:P.Children.map(r,e=>(0,N.jsx)(dp,{present:n||a.open,children:(0,N.jsx)(sp,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),Yg=`DialogOverlay`,Xg=P.forwardRef(Ig(function(e,t){let n=qg(Yg,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Vg(Yg,e.__scopeDialog);return a.modal?(0,N.jsx)(dp,{present:r||a.open,children:(0,N.jsx)(Qg,{...i,ref:t})}):null},`DialogOverlay`)),Zg=Tc(`DialogOverlay.RemoveScroll`),Qg=P.forwardRef(Ig(function(e,t){let{__scopeDialog:n,...r}=e,i=Vg(Yg,n),a=z(t,Wl());return(0,N.jsx)(uh,{as:Zg,allowPinchZoom:!0,shards:[i.contentRef],children:(0,N.jsx)(H.div,{"data-state":u_(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),$g=`DialogContent`,e_=P.forwardRef(Ig(function(e,t){let n=qg($g,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Vg($g,e.__scopeDialog);return(0,N.jsx)(dp,{present:r||a.open,children:a.modal?(0,N.jsx)(t_,{...i,ref:t}):(0,N.jsx)(n_,{...i,ref:t})})},`DialogContent`)),t_=P.forwardRef(Ig(function(e,t){let n=Vg($g,e.__scopeDialog),r=P.useRef(null),i=z(t,n.contentRef,r);return P.useEffect(()=>{let e=r.current;if(e)return nm(e)},[]),(0,N.jsx)(r_,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),n_=P.forwardRef(Ig(function(e,t){let n=Vg($g,e.__scopeDialog),r=P.useRef(!1),i=P.useRef(!1);return(0,N.jsx)(r_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),r_=P.forwardRef(Ig(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Vg($g,n);return tu(),(0,N.jsx)(N.Fragment,{children:(0,N.jsx)(cu,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,N.jsx)(Ul,{role:`dialog`,id:s.
49contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":u_(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),i_=`DialogTitle`,a_=P.forwardRef(Ig(function(e,t){let{__scopeDialog:n,...r}=e,i=Vg(i_,n),{setTitleCount:a}=i;return el(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,N.jsx)(H.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),o_=`DialogDescription`,s_=P.forwardRef(Ig(function(e,t){let{__scopeDialog:n,...r}=e,i=Vg(o_,n),{setDescriptionCount:a}=i;return el(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,N.jsx)(H.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),c_=`DialogClose`,l_=P.forwardRef(Ig(function(e,t){let{__scopeDialog:n,...r}=e,i=Vg(c_,n);return(0,N.jsx)(H.button,{type:`button`,...r,ref:t,onClick:V(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function u_(e){return e?`open`:`closed`}Ig(u_,`getState`);function d_({data:e}){let[t,n]=(0,P.useState)(!1),r=Ng(e.segments[0]===`tarifs`);return(0,N.jsxs)(Hg,{open:t,onOpenChange:n,children:[(0,N.jsx)(Wg,{asChild:!0,children:(0,N.jsx)(B,{variant:`ghost`,size:`icon`,className:`lg:hidden`,"aria-label":e.t.openMenu,children:`â°`})}),(0,N.jsxs)(Jg,{children:[(0,N.jsx)(Xg,{className:`fixed inset-0 z-50 bg-foreground
49/30 backdrop-blur-sm`}),(0,N.jsxs)(e_,{className:`fixed inset-y-0 right-0 z-50 w-[min(400px,100vw)] overflow-y-auto bg-background p-6 shadow-menu`,children:[(0,N.jsxs)(`div`,{className:`mb-8 flex items-center justify-between`,children:[(0,N.jsx)(a_,{children:(0,N.jsx)(vc,{})}),(0,N.jsx)(l_,{asChild:!0,children:(0,N.jsx)(B,{size:`icon`,variant:`ghost`,"aria-label":e.t.closeMenu,children:E(e.locale,`components_layout_mobile_menu_`)})})]}),(0,N.jsx)(s_,{className:`sr-only`,children:e.t.openMenu}),(0,N.jsxs)(`nav`,{className:`flex flex-col gap-2`,onClick:()=>n(!1),children:[[[`/`,e.t.home],[`/produit`,e.t.product],[`/a-propos`,e.t.about],[`/migration`,e.t.migration],[`/partenaires`,e.locale===`fr`?`Partenaires`:`Partners`],[`/ressources`,e.t.resources],[`/aide`,e.t.help],[`/contact`,e.t.contact],[e.settings.loginUrl,e.t.login]].filter(([e])=>![`/ressources`,`/aide`].includes(e)).map(([t,n])=>(0,N.jsx)(S,{to:c(t,e.locale),className:`menu-item`,children:n},t)),(0,N.jsx)(`p`,{className:`eyebrow mb-2 mt-6`,children:e.t.pricing}),e.bands.map(t=>(0,N.jsx)(S,{to:c(`/tarifs/${t.slug}`,e.locale),resetScroll:e.segments[0]!==`tarifs`,onClick:n=>r(n,c(`/tarifs/${t.slug}`,e.locale)),className:`menu-item text-sm`,children:t.label},t.slug))]}),(0,N.jsx)(`div`,{className:`mt-5`,children:(0,N.jsx)(Mg,{data:e})}),(0,N.jsx)(B,{asChild:!0,className:`mt-8 w-full`,children:(0,N.jsx)(S,{to:c(`/tarifs`,e.locale),children:e.t.signup})})]})]})]})}function f_({data:e}){return(0,N.jsxs)(`header`,{className:`site-header`,children:[(0,N.jsx)(`div`,{className:`migration-notice`,children:(0,N.jsxs)(S,{to:c(`/migration`,e.locale),className:`flex items-center justify-center gap-3 px-4 py-2 text-center text-xs`,children:[(0,N.jsx)(`strong`,{className:`font-medium`,children:e.t.calebClients}),(0,N.jsx)(`span`,{className:`hidden md:inline`,children:e.t.calebNotice}),(0,N.jsxs)(`span`,{className:`underline underline-offset-4`,children:[e.t.transition,` â`]})]})}),(0,N.jsxs)(`div`,{className:`header-inner`,children:[(0,N.jsx)(S,{to:c(`/`,e.locale),resetScroll:!0,"aria-label":e.t.home,onClick:t=>{t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||window.location.pathname===c(`/`,e.locale)&&window.scrollTo({top:0,left:0,behavior:`instant`})},children:(0,N.jsx)(vc,{})}),(0,N.jsxs)(`nav`,{"aria-label":e.locale===`fr`?E(`fr`,`layout_site_header_main_navigation`):E(`en`,`layout_site_header_main_navigation`),className:`hidden items-center gap-1 lg:flex`,children:[(0,N.jsx)(S,{to:c(`/`,e.locale),className:`nav-link`,children:e.t.home}),(0,N.jsx)(Pg,{data:e,kind:`product`}),(0,N.jsx)(Pg,{data:e,kind:`pricing`}),(0,N.jsx)(S,{to:c(`/a-propos`,e.locale),className:`nav-link`,children:e.t.about}),(0,N.jsx)(S,{to:c(`/migration`,e.locale),className:`nav-link`,children:e.t.migration}),(0,N.jsx)(S,{to:c(`/partenaires`,e.locale),className:`nav-link`,children:e.locale===`fr`?`Partenaires`:`Partners`})]}),(0,N.jsxs)(`div`,{className:`flex items-center gap-3`,children:[!1,(0,N.jsx)(S,{to:c(e.settings.loginUrl,e.locale),className:`hidden text-sm hover:opacity-60 xl:block`,children:e.t.login}),(0,N.jsx)(B,{asChild:!0,size:`sm`,className:`hidden sm:inline-flex`,children:(0,N.jsx)(S,{to:c(`/tarifs`,e.locale),children:e.t.signup})}),(0,N.jsx)(d_,{data:e})]})]})]})}function p_({locale:e}){let[t,n]=(0,P.useState)(`idle`),r=e===`en`;return(0,N.jsxs)(`form`,{className:`mt-8 max-w-md`,onSubmit:async e=>{if(e.preventDefault(),t===`sending`)return;let r=e.currentTarget,i=new FormData(r);n(`sending`);try{if(!(await fetch(`/api/newsletter`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:i.get(`email`),website:i.get(`website`),consent:i.get(`consent`)===`on`})})).ok)throw Error(`newsletter`);r.reset(),n(`sent`)}catch{n(`error`)}},children:[(0,N.jsx)(`label`,{className:`block text-sm font-medium`,htmlFor:`newsletter-email`,children:E(r?`en`:`fr`,`layout_newsletter_form_the_monthly_theoasso_newsletter`)}),(0,N.jsxs)(`div`,{className:`mt-3 flex gap-2`,children:[(0,N.jsx)(`input`,{className:`min-w-0 flex-1 rounded-lg bg-white p-3 text-foreground`,id:`newsletter-email`,name:`email`,type:`email`,autoComplete:`email`,maxLength:254,required:!0,placeholder:E(r?`en`:`fr`,`layout_newsletter_form_your_email`)}),(0,N.jsx)(`button`,{className:`rounded-lg bg-mint px-4 text-foreground disabled:opacity-50`,disabled:t===`sending`,children:t===`sending`?E(r?`en`:`fr`,`layout_newsletter_form_sending`):E(r?`en`:`fr`,`layout_newsletter_form_subscribe`)})]}),(0,N.jsxs)(`label`,{className:`sr-only`,"aria-hidden":`true`,children:[`Website`,(0,N.jsx)(`input`,{name:`website`,tabIndex:-1,autoComplete:`off`})]}),(0,N.jsxs)(`label`,{className:`mt-3 flex items-start gap-2 text-xs`,children:[(0,N.jsx)(`input`,{name:`consent`,type:`checkbox`,required:!0}),E(r?`en`:`fr`,`layout_newsletter_form_i_agree_to_receive_the_monthly_newsletter`)]}),(0,N.jsx)(`a`,{className:`mt-2 inline-block text-xs underline`,href:c(`/confidentialite`,e),children:E(r?`en`:`fr`,`layout_newsletter_form_privacy_policy`)}),(0,N.jsxs)(`div`,{"aria-live":`polite`,children:[t===`sent`&&(0,N.jsx)(`p`,{className:`mt-3 text-sm`,children:E(r?`en`:`fr`,`layout_newsletter_form_thank_you_your_subscription_has_been_registered`)}),t===`error`&&(0,N.jsx)(`p`,{role:`alert`,className:`mt-3 text-sm`,children:E(r?`en`:`fr`,`layout_newsletter_form_registration_failed_please_try_again_later`)})]})]})}function m_({data:e}){return(0,N.jsx)(`footer`,{className:`bg-foreground py-14 text-background`,children:(0,N.jsxs)(`div`,{className:`container-page`,children:[(0,N.jsxs)(`div`,{className:`grid gap-12 md:grid-cols-[2fr_1fr_1fr]`,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(vc,{className:`brightness-0 invert`}),(0,N.jsx)(`p`,{className:`mt-5 text-sm text-background/70`,children:e.t.footer}),(0,N.jsx)(p_,{locale:e.locale})]}),[[e.t.solutions,[[`/`,e.t.home],[`/produit`,e.t.product],[`/tarifs`,e.t.pricing],[`/ressources`,e.t.resources],[`/migration`,e.t.migration],[`/facturation-electronique`,e.locale===`fr`?E(`fr`,`layout_site_footer_electronic_invoicing`):E(`en`,`layout_site_footer_electronic_invoicing`)]]],[e.t.company,[[`/a-propos`,e.t.about],[`/partenaires`,e.locale===`fr`?`Partenaires`:`Partners`],[`/contact`,e.t.contact],[`/aide`,e.t.support]]]].map(([t,n])=>(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`p`,{className:`mb-5 text-sm font-medium`,children:t}),(0,N.jsx)(`ul`,{className:`space-y-3 text-sm text-background/65`,children:n.filter(([e])=>![`/ressources`,`/aide`].includes(e)).map(([t,n])=>(0,N.jsx)(`li`,{children:(0,N.jsx)(S,{className:`transition-colors hover:text-background`,to:c(t,e.locale),children:n})},t))})]},t))]}),(0,N.jsxs)(`div`,{className:`mt-14 flex flex-col gap-4 border-t border-background/15 pt-6 text-xs text-background/55 md:flex-row md:justify-between`,children:[(0,N.jsx)(`p`,{children:e.t.copyright}),(0,N.jsxs)(`div`,{className:`flex flex-wrap gap-6`,children:[(0,N.jsx)(S,{to:c(`/mentions-legales`,e.locale),children:e.t.legal}),(0,N.jsx)(S,{to:c(`/confidentialite`,e.locale),children:e.t.privacy})]})]})]})})}var h_=`mark, h1, h2, h3, p, .article-card, .help-category-card, .popular-article-grid > a, .module-preview, .sector-rail, .contact-form > div, .comparison-group, .why-card, .pricing-card, .migration-step, .founder-card, .team-card, .feature-directory-card`,g_=`.article-card, .help-category-card, .module-preview, .sector-rail, .why-card, .pricing-card, .migration-step, .founder-card, .team-card, .feature-directory-card`,__=`.connection-scene, .orbit-scene, .typewriter-title, .app-preview, .phone-device, .feature-list, .video-carousel, [aria-hidden="true"]`;function v_({children:e,pageKey:t}){let n=(0,P.useRef)(null),r=Oe();return(0,P.useEffect)(()=>
49{if(!n.current||r)return;let e=new WeakSet,t=new Set,i=new Set,a=[];n.current.querySelectorAll(`.cta-decoration, .why-arc, .page-hero-decoration`).forEach(e=>{let t=e.style.translate,n=He(e,{translate:[`0px -8px`,`0px 8px`]},{ease:`linear`}),r=Co(n,{target:e.parentElement,offset:[`start end`,`end start`]});a.push(()=>{r(),n.stop(),e.style.translate=t})});let o=0,s=new Map,c=new IntersectionObserver(e=>{for(let t of e){if(!t.isIntersecting||t.intersectionRatio<.6){clearTimeout(s.get(t.target)),s.delete(t.target);continue}s.has(t.target)||s.set(t.target,setTimeout(()=>{t.target.classList.add(`highlight-visible`),s.delete(t.target),c.unobserve(t.target)},900))}},{threshold:.6,rootMargin:`0px 0px -10% 0px`}),l=new IntersectionObserver(e=>{for(let n of e){if(!n.isIntersecting)continue;let e=n.target;l.unobserve(e);let r=e.style.opacity,a=e.style.translate,s=()=>{e.style.opacity=r,e.style.translate=a,i.delete(s)};i.add(s),e.dataset.motionRevealed=`true`;let c=He(e,{opacity:[.35,1],translate:[`0px 20px`,`0px 0px`]},{duration:.8,delay:o++%3*.07,ease:[.22,1,.36,1]});t.add(c),c.then(()=>{t.delete(c),s()})}},{threshold:.08,rootMargin:`0px 0px -24px 0px`}),u=()=>{n.current?.querySelectorAll(h_).forEach(t=>{e.has(t)||t.closest(__)||t.tagName!==`MARK`&&t.parentElement?.closest(g_)||(e.add(t),t.tagName===`MARK`?c.observe(t):l.observe(t))})};u();let d=new MutationObserver(u);return d.observe(n.current,{childList:!0,subtree:!0}),()=>{a.forEach(e=>e()),l.disconnect(),c.disconnect(),s.forEach(clearTimeout),d.disconnect(),t.forEach(e=>
49e.stop()),i.forEach(e=>e())}},[t,r]),(0,N.jsx)(`main`,{ref:n,id:`main`,children:e})}function y_({text:e,phrases:t,className:n}){let r=t.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`));return(0,N.jsx)(N.Fragment,{children:e.split(RegExp(`(${r.join(`|`)})`,`g`)).map((e,r)=>t.includes(e)?(0,N.jsx)(`mark`,{className:n,children:e},r):(0,N.jsx)(P.Fragment,{children:e},r))})}function b_({className:e,...t}){return(0,N.jsx)(`input`,{"data-slot":`input`,className:ac(`flex h-12 w-full rounded-xl border border-border bg-background px-4 text-sm outline-none transition-colors placeholder:text-muted-foreground focus-visible:border-foreground focus-visible:ring-2 focus-visible:ring-ring/30 disabled:opacity-50`,e),...t})}function x_({className:e,...t}){return(0,N.jsx)(`textarea`,{className:ac(`min-h-36 w-full rounded-xl border border-border bg-background p-4 text-sm outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring/30`,e),...t})}function S_({data:e,subject:t}){let[n,r]=(0,P.useState)(`idle`);return(0,N.jsxs)(`form`,{id:`contact-form`,className:`contact-form`,onSubmit:async n=>{n.preventDefault();let i=n.currentTarget,a=new FormData(i);r(`sending`);try{if(!(await fetch(`/api/contact`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({organization:a.get(`organization`),name:`${a.get(`firstName`)} ${a.get(`lastName`)}`,email:a.get(`email`),phone:``,subject:t??e.contact.defaultSubject,message:a.get(`message`),website:a.get(`website`),locale:e.locale})})).ok)throw Error(`contact`);i.reset(),r(`sent`)}catch{r(`error`)}},children:[(0,N.jsxs)(`label`,{className:`sr-only`,"aria-hidden":`true`,children:[`Website`,(0,N.jsx)(`input`,{name:`website`,type:`text`,tabIndex:-1,autoComplete:`off`})]}),(0,N.jsx)(`div`,{className:`grid gap-6 sm:grid-cols-2`,children:[`organization`,`lastName`,`firstName`,`email`].map(t=>(0,N.jsxs)(`label`,{className:`text-sm ${t===`organization`?`sm:col-span-2`:``}`,children:[(0,N.jsxs)(`span`,{className:`mb-2 block`,children:[t===`firstName`?e.locale===`fr`?E(`fr`,`contact_contact_form_first_name`):E(`en`,`contact_contact_form_first_name`):t===`lastName`?e.locale===`fr`?E(`fr`,`contact_contact_form_last_name`):E(`en`,`contact_contact_form_last_name`):t===`organization`?e.locale===`fr`?E(`fr`,`contact_contact_form_your_organisation`):E(`en`,`contact_contact_form_your_organisation`):e.t.email,` *`]}),(0,N.jsx)(b_,{name:t,type:t===`email`?`email`:`text`,required:!0,maxLength:t===`firstName`||t===`lastName`?79:160,autoComplete:t===`organization`?`organization`:t===`firstName`?`given-name`:t===`email`?`email`:`family-name`})]},t))}),(0,N.jsxs)(`label`,{className:`mt-6 block text-sm`,children:[(0,N.jsxs)(`span`,{className:`mb-2 block`,children:[e.t.message,` *`]}),(0,N.jsx)(x_,{name:`message`,required:!0,maxLength:5e3})]}),(0,N.jsxs)(`label`,{className:`mt-6 flex items-start gap-3 text-xs leading-relaxed text-muted-foreground`,children:[(0,N.jsx)(`input`,{className:`mt-1 size-4 shrink-0 accent-green`,type:`checkbox`,required:!0}),e.t.consent]}),(0,N.jsx)(`div`,{className:`mt-8 flex flex-wrap items-center gap-6`,children:(0,N.jsx)(B,{type:`submit`,disabled:n===`sending`,children:n===`sending`?e.locale===`fr`?E(`fr`,`contact_contact_form_sending`):E(`en`,`contact_contact_form_sending`):e.contact.send})}),(0,N.jsxs)(`div`,{"aria-live":`polite`,"aria-atomic":`true`,children:[n===`sent`&&(0,N.jsx)(`p`,{role:`status`,className:`mt-4 text-sm text-green`,children:e.t.mailNotice}),n===`error`&&(0,N.jsx)(`p`,{role:`alert`,className:`mt-4 text-sm text-red-700`,children:e.locale===`fr`?E(`fr`,`contact_contact_form_the_message_could_not_be_sent_try`):E(`en`,`contact_contact_form_the_message_could_not_be_sent_try`)})]})]})}function K({containerRef:e,children:t,className:n,delay:r=0}){let i=Oe();return(0,N.jsx)(La.div,{ref:e,initial:!1,whileInView:i?void 0:{opacity:[.45,1],y:[22,0]},viewport:{once:!0,amount:.12},transition:{duration:.8,delay:r,ease:[.22,1,.36,1]},className:n,children:t})}var C_={fr:{label:`Partenaires`,title:`Associons-nous pour aider les associations remplir leur mission`,description:`Ãditeurs, cabinets comptables, réseaux associatifs, établissements financiers : Theoasso sâassocie à vous pour apporter aux associations simplicité et rigueur dans leur gestion`,cta:`Prendre contact`,who:`Qui sont nos partenaires`,partners:[[`Ãditeurs de logiciels`,`Nous complétons votre outil par certains modules Theoasso pour couvrir les besoins spécifiques du secteur associatif, sans que vous ayez à les développer vous-même.`],[`Cabinets dâexpertise comptable`,`Un outil de comptabilité et de gestion collaboratif pensé pour simplifier la vie de vos clients du secteur non marchand, et aussi votre mission auprès dâeux.`],[`Têtes de réseau et fédérations associatives`,`Offrez à vos membres un outil moderne, complet, et simple dâutilisation, pensé pour coller à leur réalité.`],[`Ãtablissements financiers`,`Appuyez-vous sur une solution de gestion et de comptabilité à la fois robuste et souple pour pouvoir sâintégrer avec votre écosystème, et accompagner vos clients associatifs.`]],why:`Pourquoi sâassocier à Theoasso ?`,reasons:[[`Profondeur métier`,`Né du rachat de Caleb Gestion et de plus de 30 ans dâexpérience du secteur, Theoasso connaît les spécificités comptables et réglementaires des associations.`],[`Un marché en tension, une demande réelle`,`Entre baisse des financements et exigences réglementaires croissantes, les associations ont besoin dâoutils fiables. Câest une opportunité de valeur ajoutée pour vos propres clients et membres.`],[`Une architecture logicielle intelligente.`,`Theoasso est conçu dans ses fondations pour pouvoir supporter des volumes importants, garantir un haut de niveau de sécurité car nous traitons des informations sensibles, et pouvoir évoluer en fonction des besoins et des opportunités.`]],contact:`Envie de discuter partenariat ? Parlons-en`,subject:`Demande de partenariat`},en:{label:`Partners`,title:`Letâs work together to help associations fulfil their mission`,description:`Software providers, accounting firms, association networks and financial institutions: Theoasso partners with you to bring simplicity and rigour to association management.`,cta:`Get in touch`,who:`Who are our partners?`,partners:[[`Software providers`,`We complement your software with Theoasso modules to meet the specific needs of associations, without you having to develop them yourself.`],[`Accounting firms`,`Collaborative accounting and management software designed to make life easier for your nonprofit clients, and support your work with them.`],[`Association networks and federations`,`Give your members a modern, comprehensive and easy-to-use tool designed for their day-to-day needs.`],[`Financial institutions`,`Rely on robust, flexible management and accounting software that can integrate with your ecosystem and support your association clients.`]],why:`Why partner with Theoasso?`,reasons:[[`Deep sector expertise`,`Built on the acquisition of Caleb Gestion and over 30 years of sector experience, Theoasso understands the accounting and regulatory requirements of associations.`],[`A market under pressure, a real need`,`With funding decreasing and regulatory requirements growing, associations need reliable tools. This is an opportunity to add value for your own clients and members.`],[`Intelligent software architecture`,`Theoasso is designed from the ground up to handle large volumes, ensure a high level of security for sensitive information, and evolve with changing needs and opportunities.`]],contact:`Interested in a partnership? Letâs talk`,subject:`Partnership enquiry`}};function w_({data:e}){let t=C_[e.locale];return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`section`,{className:`page-hero partners-hero`,children:[(0,N.jsx)(`img`,{className:`partners-arc partners-arc-hero`,src:`/images/brand-person-arc.svg`,alt:``,"aria-hidden":`true`}),(0,N.jsxs)(K,{className:`container-page relative mx-auto text-center`,children:[(0,N.jsx)(`h1`,{className:`page-title mx-auto max-w-5xl`,children:(0,N.jsx)(y_,{text:t.title,phrases:[e.locale===`fr`?`leur mission`:`their mission`],className:`highlight-orange`})}),(0,N.jsx)(`p`,{className:`page-hero-description mx-auto mt-8 max-w-2xl`,children:t.description}),(0,N.jsx)(B,{asChild:!0,className:`mt-8`,children:(0,N.jsx)(`a`,{href:`#contact`,children:t.cta})})]})]}),(0,N.jsxs)(`section`,{className:`container-page section-space`,children:[(0,N.jsx)(`h2`,{className:`section-title mb-12`,children:t.who}),(0,N.jsx)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:t.partners.map(([e,t],n)=>(0,N.jsxs)(K,{className:`rounded-3xl border border-border p-8 lg:p-10`,children:[(0,N.jsxs)(`span`,{"aria-hidden":`true`,className:`category-number partners-number mb-6 block`,children:[`0`,n+1]}),(0,N.jsx)(`h3`,{className:`font-display text-2xl lg:text-3xl`,children:e}),(0,N.jsx)(`p`,{className:`mt-5 leading-relaxed text-muted-foreground`,children:t})]},e))})]}),(0,N.jsxs)(`section`,{className:`section-space partners-why`,children:[(0,N.jsx)(`img`,{className:`partners-arc partners-arc-why`,src:`/images/brand-person-arc.svg`,alt:``,"aria-hidden":`true`}),(0,N.jsx)(`img`,{className:`partners-arc partners-arc-corner`,src:`/images/brand-person-arc.svg`,alt:``,"aria-hidden":`true`}),(0,N.jsxs)(`div`,{className:`container-page relative`,children:[(0,N.jsx)(`h2`,{className:`section-title mb-12 max-w-2xl`,children:t.why}),(0,N.jsx)(`div`,{className:`grid gap-10 lg:grid-cols-3`,children:t.reasons.map(([e,t])=>(0,N.jsxs)(K,{children:[(0,N.jsx)(`h3`,{className:`font-display text-2xl`,children:e}),(0,N.jsx)(`p`,{className:`mt-5 leading-relaxed text-muted-foreground`,children:t})]},e))})]})]}),(0,N.jsx)(`section`,{id:`contact`,className:`section-space contact-anchor`,children:(0,N.jsxs)(`div`,{className:`container-page grid items-start gap-12 lg:grid-cols-[1fr_1.5fr]`,children:[(0,N.jsx)(`h2`,{className:`section-title`,children:t.contact}),(0,N.jsx)(S_,{data:e,subject:t.subject})]})})]})}function T_({data:e}){return(0,N.jsx)(`section`,{className:`section-space bg-mint/60`,children:(0,N.jsxs)(`div`,{className:`container-page flex min-h-[50vh] flex-col items-center justify-center text-center`,children:[(0,N.jsx)(`p`,{className:`eyebrow mb-6`,children:e.t.login}),(0,N.jsx)(`h1`,{className:`font-display text-5xl tracking-tight sm:text-7xl`,children:E(e.locale,`loginComingSoonTitle`)}),(0,N.jsx)(`p`,{className:`mt-6 max-w-xl text-lg leading-relaxed text-muted-foreground`,children:E(e.locale,`loginComingSoonDescription`)}),(0,N.jsx)(B,{asChild:!0,size:`lg`,className:`mt-10`,children:(0,N.jsx)(S,{to:c(`/`,e.locale),children:E(e.locale,`loginComingSoonBack`)})})]})})}var E_={fr:E(`fr`,`lib_subscription_copy_theoasso_sera_disponible_des_le_5_janvier`),en:E(`en`,`lib_subscription_copy_theoasso_will_be_available_from_5_january`)},D_={fr:E(`fr`,`lib_subscription_copy_demande_de_prelevement_des_la_souscription_executee`,{v0:E_.fr}),en:E(`en`,`lib_subscription_copy_debit_requested_when_you_subscribe_and_collected`,{v0:E_.en})},O_=[{code:`lt-40k`,slug:`moins-de-40k`,label:n[`band_lt-40k`]},{code:`40k-90k`,slug:`40-a-90k`,label:n[`band_40k-90k`]},{code:`90k-160k`,slug:`90-a-160k`,label:n[`band_90k-160k`]},{code:`160k-400k`,slug:`160-a-400k`,label:n[`band_160k-400k`]},{code:`400k-1m`,slug:`400k-a-1m`,label:n[`band_400k-1m`]},{code:`gt-1m`,slug:`plus-de-1m`,label:n[`band_gt-1m`]}],k_=[n.planSeedling,n.planGrove,n.planForest],A_=[`jeune-pousse`,`chenaie`,`foret`],j_=[[19,29,39],[29,49,59],[59,79,99],[99,129,149],[149,199,229],[229,299,329]],M_=[...O_.flatMap((e,t)=>A_.map((n,r)=>{let i=j_[t][r]*1200;return{id:`${n}:${e.code}`,name:k_[r],band:e.label,kind:`subscription`,amount:i,budget:e.code,...n===`foret`?{promotion:{code:`launch-2026`,amount:i/2,savings:i/2,accessMonths:12,renew
49alAmount:i,renewalStartDate:void 0}}:{}}})),...[[`lt-12k`,n[`band_lt-12k`],199],[`12k-40k`,n[`band_12k-40k`],399],[`40k-120k`,n[`band_40k-120k`],599],[`120k-400k`,n[`band_120k-400k`],999],[`gt-400k`,n[`band_gt-400k`],1499]].map(([e,t,r])=>({id:`migration:${e}`,name:n.planMigration,band:String(t),kind:`migration`,amount:Number(r)*100}))];function N_(e){return M_.find(t=>t.id===e)}function P_(e,t=new Date){return e.promotion&&t.getTime()<Date.parse(`2026-12-31T23:00:00.000Z`)?e.promotion:void 0}function F_(e,t=new Date){let n=P_(e,t);return n?{...e,amount:n.amount}:e}function I_(e,t=`fr`){return new Intl.NumberFormat(t===`fr`?`fr-FR`:`en-GB`,{style:`currency`,currency:`EUR`,maximumFractionDigits:e%100?2:0}).format(e/100)}function L_(e,t=`fr`){return`${t===`en`?`/en`:``}/paiement?offre=${encodeURIComponent(e)}`}function R_(e,t=new Date){return e.kind!==`subscription`||e.id.startsWith(`foret:`)||t.getTime()>=Date.parse(`2026-12-31T23:00:00.000Z`)}function z_(e,t){let r=t===`fr`?n:Me,i=`band_${e.budget||e.id.split(`:`)[1]}`;return{name:e.kind===`migration`?r.planMigration:e.name,band:r[i]||e.band}}function B_(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function V_(e,t=`|`){return e.map(e=>iv(e)).join(t)}function H_(e,t){return typeof t==`bigint`?t.toString():t}function U_(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function W_(e){return e==null}function G_(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function K_(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function q_(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function J_(e){return JSON.stringify(e)}function Y_(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var X_=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Z_(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Q_=U_(()=>{if(Vv.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function $_(e){if(Z_(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return Z_(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function ev(e){return $_(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var tv=new Set([`string`,`number`,`symbol`]);function nv(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function rv(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function q(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function iv(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function av(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}function ov(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return rv(e,q_(e._zod.def,{get shape(){let e={};for(let r of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,r))throw Error(`Unrecognized key: "${String(r)}"`);t[r]&&K_(e,r,n.shape[r])}return K_(this,`shape`,e),e},checks:[]}))}function sv(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return rv(e,q_(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,e))throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&delete r[e]}return K_(this,`shape`,r),r},checks:[]}))}function cv(e,t){if(!$_(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot over
49write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return rv(e,q_(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return K_(this,`shape`,n),n}}))}function lv(e,t){if(!$_(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return rv(e,q_(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return K_(this,`shape`,n),n}}))}function uv(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return rv(e,q_(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return K_(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function dv(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);return rv(t,q_(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(r,t))throw Error(`Unrecognized key: "${String(t)}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t of Reflect.ownKeys(r))i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return K_(this,`shape`,i),i},checks:[]}))}function fv(e,t,n){return rv(t,q_(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(i,t))throw Error(`Unrecognized key: "${String(t)}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t of Reflect.ownKeys(r))i[t]=new e({type:`nonoptional`,innerType:r[t]});return K_(this,`shape`,i),i}}))}function pv(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function mv(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function hv(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function gv(e){return typeof e==`string`?e:e?.message}function _v(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function vv(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:gv(e.inst?._zod.def?.error?.(e))??gv(a?.(e))??gv(t?.error?.(e))??gv(n.customError?.(e))??gv(n.localeError?.(e))??`Invalid input`,{inst:s,schema:c,continue:l,input:u,...d}=e;return d.path??=[],d.message=o,t?.reportInput&&(d.input=u),d}var yv=/[\uD800-\uDBFF]/;function bv(e){let t=e.length;if(!yv.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function xv(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Sv(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Cv(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function wv(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Dv(e,n,r.value)}}function Tv(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Ev(e,t,n){return Tv(e,t,n,!1)}function Dv(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:Tv(this,t,n.bind(this))},set(e){Tv(this,t,e)}})}function Ov(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var kv,Av=!1,jv={configurable:!0,get(){Av=!0}};function J(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&kv!==e._zod){kv=void 0;return}kv=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,jv);let e=Av;Av=!1;try{let r=n(this);return Av?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),Av||=e,r}catch(n){throw delete this[t],Av||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}function Mv(e,t,n,r){let i=Ov(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};
vendor: 23,684 bytes, lines 49-84
49return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var Nv=`~constantCatch`;function Pv(e){let t=()=>e;return t[Nv]=!0,t}var Fv,Iv={value:void 0,enumerable:!1},Lv=`captureStackTrace`in Error?Error:null;function Rv(e){let t=Lv;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return Lv=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function Y(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){Iv.value=new a(r);try{Object.defineProperty(n,"_zod",Iv)}finally{Iv.value=void 0}}if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),wv(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?Rv(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var zv=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Bv=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(Fv=globalThis).__zod_globalConfig??(Fv.__zod_globalConfig={});var Vv=globalThis.__zod_globalConfig;function Hv(e){return e&&Object.assign(Vv,e),Vv}function Uv(){let e=this._zod;return e.message??=JSON.stringify(e.def,H_,2),e.message}function Wv(e){this._zod.message=e}var Gv={get:Uv,set:Wv,enumerable:!0,configurable:!0},Kv={value:void 0,enumerable:!1},qv={value:void 0,enumerable:!1},Jv=new WeakSet([Object.prototype,Error.prototype]),Yv=(e,t)=>{e.name=`$ZodError`,Kv.value=e._zod,Object.defineProperty(e,"_zod",Kv),qv.value=t,Object.defineProperty(e,"issues",qv),Kv.value=void 0,qv.value=void 0,Object.defineProperty(e,"message",Gv);let n=Object.getPrototypeOf(e);Jv.has(n)||(Jv.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},Xv=Y(`$ZodError`,Yv),Zv=Y(`$ZodError`,Yv,void 0,{Parent:Error});function Qv(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function $v(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?Qv(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function ey(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function ty(e,t){return{callee:t?.callee??e,Err:t?.Err}}var ny=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new zv;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>vv(e,o,Hv())));throw X_(n,a?.callee??t),n}return s.value};return t},ry=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>vv(e,o,Hv())));throw X_(n,a?.callee??t),n}return s.value};return t},iy=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new zv;return a.issues.length?{success:!1,error:new(e??Xv)(a.issues.map(e=>vv(e,i,Hv())))}:{success:!0,data:a.value}},ay=iy(Zv),oy=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>vv(e,i,Hv())))}:{success:!0,data:a.value}},sy=oy(Zv),cy=e=>{let t=ny(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,ty(n,a))};return n},ly=e=>{let t=ny(e),n=(e,r,i,a)=>t(e,r,i,ty(n,a));return n},uy=e=>{let t=ry(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,ty(n,a))};return n},dy=e=>{let t=ry(e),n=async(e,r,i,a)=>await t(e,r,i,ty(n,a));return n},fy=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return iy(e)(t,n,i)},py=e=>(t,n,r)=>iy(e)(t,n,r),my=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return oy(e)(t,n,i)},hy=e=>async(t,n,r)=>oy(e)(t,n,r),gy=/^[cC][0-9a-z]{6,}$/,_y=/^[0-9a-z]+$/,vy=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,yy=/^[0-9a-vA-V]{20}$/,by=/^[A-Za-z0-9]{27}$/,xy=/^[a-zA-Z0-9_-]{21}$/;function Sy(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Cy=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,wy=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ty=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ey=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Dy=`^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;function Oy(){return new RegExp(Dy,`u`)}var ky=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ay=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,jy=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,My=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ny=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Py=/^[A-Za-z0-9_-]*$/,Fy=/^https?$/,Iy=/^\+[1-9]\d{6,14}$/,Ly=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;function Ry(e){return RegExp(`^${e}$`)}var zy=Ry(Ly);function By(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Vy(e){return RegExp(`^${By(e)}$`)}function Hy(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${By({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${By({precision:e.precision})}`:n;return RegExp(`^${Ly}T(?:${r})$`)}var Uy=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Wy=/^[^A-Z]*$/,Gy=/^[^a-z]*$/,Ky=Y(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),qy=e=>{let t=e.value;return!W_(t)&&t.length!==void 0},Jy=Y(`$ZodCheckMaxLength`,(e,t)=>{var n;Ky.init(e,t),(n=e._zod.def).when??(n.when=qy),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?bv(r):i)<=t.maximum)return;let a=xv(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Yy=Y(`$ZodCheckMinLength`,(e,t)=>{var n;Ky.init(e,t),(n=e._zod.def).when??(n.when=qy),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?bv(r):i)>=t.minimum)return;let a=xv(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Xy=Y(`$ZodCheckLengthEquals`,(e,t)=>{var n;Ky.init(e,t),(n=e._zod.def).when??(n.when=qy),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?bv(r):i;if(a===t.length)return;let o=xv(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Zy=Y(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Ky.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Qy=Y(`$ZodCheckRegex`,(e,t)=>{Zy.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),$y=Y(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Wy,Zy.init(e,t)}),eb=Y(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Gy,Zy.init(e,t)}),tb=Y(`$ZodCheckIncludes`,(e,t)=>{Ky.init(e,t);let n=nv(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),nb=Y(`$ZodCheckStartsWith`,(e,t)=>{Ky.init(e,t);let n=RegExp(`^${nv(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),rb=Y(`$ZodCheckEndsWith`,(e,t)=>{Ky.init(e,t);let n=RegExp(`.*${nv(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),ib=Y(`$ZodCheckOverwrite`,(e,t)=>{Ky.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),ab=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` 50`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.content??[``];return new e(...Object.keys(this.closed),`return function (${this.args.join(`, `)}) {\n${t.join(` 51`)}\n};`)(...Object.values(this.closed))}},ob={major:4,minor:5,patch:4},X=Y(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ob;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=pv(t),a;for(let o of n){if(o._zod.def.when){if(mv(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new zv;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(_v(t.issues,n,e),i||=pv(t,n))});else{if(t.issues.length===n)continue;_v(t.issues,n,e),i||=pv(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(pv(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new zv;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new zv;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return Ev(this,`~standard`,cb(this))},set"~standard"(e){Tv(this,`~standard`,e)}}),sb=e=>e.success?{value:e.data}:{issues:e.error?.issues};function cb(e){return{validate:t=>{try{return sb(ay(e,t))}catch{return sy(e,t).then(sb)}},vendor:`zod`,version:1}}var lb=Y(`$ZodString`,(e,t)=>{X.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Uy(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Z=Y(`$ZodStringFormat`,(e,t)=>{Zy.init(e,t),lb.init(e,t)}),ub=Y(`$ZodGUID`,(e,t)=>{t.pattern??=wy,Z.init(e,t)}),db=Y(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Ty(e)}else t.pattern??=Ty();Z.init(e,t)}),fb=Y(`$ZodEmail`,(e,t)=>{t.pattern??=Ey,Z.init(e,t)});function pb(e,t){if(!t.normalize&&t.protocol?.source===Fy.source&&!/^https?:\/\//i.test(e))return 1;try{return new URL(e)}catch{return 2}}var mb=/[\t\n\r]/g;function hb(e){return e.replace(mb,``)}function gb(e,t){return t.lastIndex=0,t.test(e.hostname)}function _b(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}var vb=Y(`$ZodURL`,(e,t)=>{Z.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=pb(r,t);if(i===1){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort});return}t.hostname&&!gb(i,t.hostname)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!_b(i,t.protocol)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:hb(r);return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),yb=Y(`$ZodEmoji`,(e,t)=>{t.pattern??=Oy(),Z.init(e,t)}),bb=Y(`$ZodNanoID`,(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??=t.length===void 0?xy:Sy(t.length),Z.init(e,t)}),xb=Y(`$ZodCUID`,(e,t)=>{t.pattern??=gy,Z.init(e,t)}),Sb=Y(`$ZodCUID2`,(e,t)=>{t.pattern??=_y,Z.init(e,t)}),Cb=Y(`$ZodULID`,(e,t)=>{t.pattern??=vy,Z.init(e,t)}),wb=Y(`$ZodXID`,(e,t)=>{t.pattern??=yy,Z.init(e,t)}),Tb=Y(`$ZodKSUID`,(e,t)=>{t.pattern??=by,Z.init(e,t)}),Eb=Y(`$ZodISODateTime`,(e,t)=>{t.pattern??=Hy(t),Z.init(e,t),(t.local||t.precision===-1)&&(e._zod.bag.laxFormat=!0,e._zod.onattach.push(e=>{e._zod.bag.laxFormat=!0}))}),Db=Y(`$ZodISODate`,(e,t)=>{t.pattern??=zy,Z.init(e,t)}),Ob=Y(`$ZodISOTime`,(e,t)=>{t.pattern??=Vy(t),Z.init(e,t)}),kb=Y(`$ZodISODuration`,(e,t)=>{t.pattern??=Cy,Z.init(e,t)}),Ab=Y(`$ZodIPv4`,(e,t)=>{t.pattern??=ky,Z.init(e,t),e._zod.bag.format=`ipv4`}),jb=/^[0-9a-fA-F:.]+$/;function Mb(e){if(!jb.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}var Nb=Y(`$ZodIPv6`,(e,t)=>{t.pattern??=Ay,Z.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{Mb(n.value)||n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}),Pb=Y(`$ZodCIDRv4`,(e,t)=>{t.pattern??=jy,Z.init(e,t)});function Fb(e){let t=e.split(`/`);if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`!==r||i<0||i>128?!1:Mb(n)}var Ib=Y(`$ZodCIDRv6`,(e,t)=>{t.pattern??=My,Z.init(e,t),e._zod.check=n=>{Fb(n.value)||n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}});function Lb(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Rb=Y(`$ZodBase64`,(e,t)=>{t.pattern??=Ny,Z.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Lb(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function zb(e){if(!Py.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Lb(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Bb=Y(`$ZodBase64URL`,(e,t)=>{t.pattern??=Py,Z.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{zb(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Vb=Y(`$ZodE164`,(e,t)=>{t.pattern??=Iy,Z.init(e,t)});function Hb(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Ub=Y(`$ZodJWT`,(e,t)=>{Z.init(e,t),e._zod.check=n=>{Hb(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Wb=Y(`$ZodUnknown`,(e,t)=>{X.init(e,t),e._zod.parse=e=>e}),Gb=Y(`$ZodNever`,(e,t)=>{X.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Kb(e,t,n){e.issues.length&&t.issues.push(...hv(n,e.issues)),t.value[n]=e.value}var qb=Y(`$ZodArray`,(e,t)=>{X.init(e,t);let n=Vv.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[];for(let e=0;e<a.length;e++){let n=a[e],s=t.element._zod.run({value:n,issues:[]},i);s instanceof Promise?o.push(s.then(t=>Kb(t,r,e))):Kb(s,r,e)}return o.length?Promise.all(o).then(()=>r):r}});function Jb(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(o||!s||i!==`optional`){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...hv(n,e.issues))}if(!o&&i===void 0){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}}var Yb=[];function Xb(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Yb,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=av(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function Zb(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin,d=c.optout;for(let i in t){if(s.has(i))continue;if(i===`__proto__`){l===`never`&&o.push(i);continue}if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Jb(e,n,i,t,u,d))):Jb(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var Qb=new WeakMap,$b=Y(`$ZodObject`,(e,t)=>{if(X.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Qb.set(t,e),Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),Qb.set(t,n),n}})}let n=U_(()=>Xb(t));J(e,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||K_(n,e,new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0)}}return n});let r=Z_,i=t.catchall,a,o=Vv.memoizer;o?.attach(e),e._zod.parse=(t,s)=>{a??=n.value;let c=t.value;if(!r(c))return t.issues.push({expected:`object`,code:`invalid_type`,input:c,inst:e}),t;t.value=o?o.alloc(e,t,{},s):{};let l=[],u=a.shape;for(let e of a.allKeys){if(e===`__proto__`)continue;let n=u[e],r=n._zod.optin,i=n._zod.optout,a=n._zod.run({value:c[e],issues:[]},s);a instanceof Promise?l.push(a.then(n=>Jb(n,t,e,c,r,i))):Jb(a,t,e,c,r,i)}return i?Zb(l,c,t,s,n.value,e):l.length?Promise.all(l).then(()=>t):t}}),ex=Y(`$ZodObjectJIT`,(e,t)=>{$b.init(e,t);let n=e._zod.parse,r=U_(()=>Xb(t)),i=Vv.memoizer,a=t=>{let n=r.value,a=n.symbolKeys,o=new ab([`payload`,`ctx`],{shape:t,inst:e,memo:i,syms:a}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,c=(e,t)=>` 52 for (let i = 0; i < ${e}.issues.length; i++) { 53 const iss = ${e}.issues[i]; 54 iss.path = iss.path ? [${t}, ...iss.path] : [${t}]; 55 payload.issues.push(iss); 56 }`;o.write(`const input = payload.value;`);let l=Object.create(null),u=0;for(let e of n.allKeys)l[e]=`key_${u++}`;o.write(i?`const newResult = memo.alloc(inst, payload, {}, ctx);`:`const newResult = {};`);for(let e of n.allKeys){if(e===`__proto__`)continue;let n=l[e],r=typeof e==`symbol`?`syms[${a.indexOf(e)}]`:J_(e),i=`${r} in input`,u=t[e],d=u?._zod?.optin,f=d!==void 0,p=u?._zod?.optout===`optional`;if(o.write(`const ${n} = ${s(r)};`),f&&p){let e=d===`optional`?`${n}_present`:`${n}.value !== undefined || ${n}_present`;o.write(` 57 const ${n}_present = ${i}; 58 if (!${n}.issues.length || ${n}_present) { 59 if (${n}.issues.length) {${c(n,r)} 60 } 61 62 if (${e}) { 63 newResult[${r}] = ${n}.value; 64 } 65 } 66 67 `)}else f?o.write(` 68 if (${n}.issues.length) {${c(n,r)} 69 } 70 71 if (${n}.value === undefined) { 72 if (${i}) { 73 newResult[${r}] = undefined; 74 } 75 } else { 76 newResult[${r}] = ${n}.value; 77 } 78 79 `):o.write(` 80 const ${n}_present = ${i}; 81 if (${n}.issues.length) {${c(n,r)} 82 } 83 if (!${n}_present && !${n}.issues.length) { 84 payload.issues.push({
85 code: "invalid_type", 86 expected: "nonoptional", 87 input: undefined, 88 path: [${r}] 89 }); 90 } 91 92 if (${n}_present) { 93 newResult[${r}] = ${n}.value; 94 } 95 96 `)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=Z_,c=!Vv.jitless,l=c&&Q_.value,u=t.catchall,d;e._zod.parse=(i,f)=>{d??=r.value;let p=i.value;return s(p)?c&&l&&f?.async===!1&&f.jitless!==!0?(o||=a(t.shape),i=o(i,f),u?Zb([],p,i,f,d,e):i):n(i,f):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}});function tx(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!pv(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>vv(e,r,Hv())))}),t)}var nx=Y(`$ZodUnion`,(e,t)=>{X.init(e,t),J(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),J(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),J(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),J(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>G_(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>tx(t,r,e,i)):tx(o,r,e,i)}}),rx=Y(`$ZodIntersection`,(e,t)=>{X.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>ax(e,t,n)):ax(e,i,a)}});function ix(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if($_(e)&&$_(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=ix(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=ix(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function ax(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=ix(t.value,n.value);if(!c.valid){if(pv(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var ox=Y(`$ZodEnum`,(e,t)=>{X.init(e,t);let n=B_(t.entries),r=new Set(n);e._zod.values=r;let i=n.filter(e=>tv.has(typeof e));e._zod.pattern=RegExp(i.length?`^(${i.map(e=>nv(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),sx=Y(`$ZodTransform`,(e,t)=>{X.init(e,t),e._zod.optin=`optional`,Vv.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Bv(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new zv;return n.value=i,n}});function cx(e,t){return e.value=t.issues.length?void 0:t.value,e}var lx=Y(`$ZodOptional`,(e,t)=>{X.init(e,t),J(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,J(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),J(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${G_(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>cx(e,t)):cx(e,r)}return t.innerType._zod.run(e,n)}}),ux=Y(`$ZodExactOptional`,(e,t)=>{lx.init(e,t),J(e,`values`,e=>e.def.innerType._zod.values),J(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),dx=Y(`$ZodNullable`,(e,t)=>{X.init(e,t),J(e,`optin`,e=>e.def.innerType._zod.optin),J(e,`optout`,e=>e.def.innerType._zod.optout),J(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${G_(t.source)}|null)$`):void 0}),J(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),fx=Y(`$ZodDefault`,(e,t)=>{X.init(e,t),e._zod.optin=`defaulted`,J(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>px(e,t)):px(r,t)}});function px(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var mx=Y(`$ZodPrefault`,(e,t)=>{X.init(e,t),e._zod.optin=`defaulted`,J(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),hx=Y(`$ZodNonOptional`,(e,t)=>{X.init(e,t),J(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>gx(t,e)):gx(i,e)}});function gx(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}
vendor: 9,620 bytes, line 96
96function _x(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>vv(e,r,Hv()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var vx=Y(`$ZodCatch`,(e,t)=>{X.init(e,t),J(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),J(e,`optout`,e=>e.def.innerType._zod.optout),J(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>_x(e,r,t,n)):_x(e,r,t,n)}}),yx=Y(`$ZodPipe`,(e,t)=>{X.init(e,t),J(e,`values`,e=>e.def.in._zod.values),J(e,`optin`,e=>e.def.in._zod.optin),J(e,`optout`,e=>e.def.out._zod.optout),J(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>bx(e,t.in,n)):bx(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>bx(e,t.out,n)):bx(r,t.out,n)}});function bx(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var xx=Y(`$ZodReadonly`,(e,t)=>{X.init(e,t),J(e,`propValues`,e=>e.def.innerType._zod.propValues),J(e,`values`,e=>e.def.innerType._zod.values),J(e,`optin`,e=>e.def.innerType?._zod?.optin),J(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Sx):Sx(r)}});function Sx(e){return e.memo||(e.value=Object.freeze(e.value)),e}var Cx=Y(`$ZodCustom`,(e,t)=>{Ky.init(e,t),X.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>wx(t,n,r,e));wx(i,n,r,e)}});function wx(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Cv(e))}}var Tx=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},Ex=`~memo`,Dx=[];function Ox(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var kx=new WeakMap;function Ax(e,t){let n=kx.get(e);if(n!==void 0)return n;if(t.has(e))return!0;t.add(e);let r=!1,i=e=>{!r&&e?._zod&&Ax(e,t)&&(r=!0)},a=e._zod.def;switch(a.type){case`object`:for(let e of Reflect.ownKeys(a.shape))i(a.shape[e]);i(a.catchall);break;case`array`:i(a.element);break;case`tuple`:for(let e of a.items)i(e);i(a.rest);break;case`record`:case`map`:i(a.keyType),i(a.valueType);break;case`set`:i(a.valueType);break;case`union`:for(let e of a.options)i(e);break;case`intersection`:i(a.left),i(a.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:i(a.innerType);break;case`pipe`:i(a.in),i(a.out);break;case`function`:i(a.input),i(a.output);break;case`lazy`:i(e._zod.innerType);break;case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in a){let t=Object.getOwnPropertyDescriptor(a,e);if(!t||t.get)continue;let n=t.value;if(n&&typeof n==`object`){if(n._zod)i(n);else if(Array.isArray(n))for(let e of n)i(e)}}}return t.delete(e),kx.set(e,r),r}function jx(e,t){let n=e.buckets.get(t);return n||(n=new Map,e.buckets.set(t,n)),n}var Mx,Nx=[],Px={alloc(e,t,n){let r=Mx;if(!r)return n;Mx=void 0;let i={value:n,issues:null};return r.set(t.value,i),Nx.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&Ix(n,e.value))throw new Tx;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r,i;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,a=(o,s)=>{if(n===void 0&&(n=Ax(e,new Set),!n))return e._zod.parse=t,e._zod.run===a&&(e._zod.run=t),t(o,s);let c=o.value;if(typeof c!=`object`||!c)return t(o,s);let l=s[Ex];l||(l={buckets:new Map,backEdges:void 0},s[Ex]=l);let u;r===s?u=i:(u=jx(l,e),r=s,i=u);let d=u.get(c);if(d)return o.value=d.value,d.issues?d.issues.length&&o.issues.push(...Ox(d.issues)):(o.memo=!0,l.backEdges??(l.backEdges=new Set),l.backEdges.add(d.value)),o;Mx=u;let f=Nx.length,p=t(o,s);Mx=void 0;let m=Nx.length>f?Nx.pop():void 0;return p instanceof Promise?p.then(e=>(m&&(m.issues=e.issues.length?Ox(e.issues):Dx),e)):(m&&(m.issues=p.issues.length?Ox(p.issues):Dx),p)};e._zod.parse=a,e._zod.run===t&&(e._zod.run=a)})}};function Fx(){return Px}function Ix(e,t){let n=e[Ex]?.backEdges;return n!==void 0&&typeof t==`object`&&!!t&&n.has(t)}var Lx=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,credit_card:`credit card number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(Sv(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${iv(e.values[0])}`:`Invalid option: expected one of ${V_(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${V_(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function Rx(){return{localeError:Lx()}}var zx,Bx=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Vx(){return new Bx}(zx=globalThis).__zod_globalRegistry??(zx.__zod_globalRegistry=Vx());var Hx=globalThis.__zod_globalRegistry;function Ux(e,t){return new e({type:`string`,...q(t)})}function Wx(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...q(t)})}function Gx(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...q(t)})}function Kx(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...q(t)})}function qx(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...q(t)})}function Jx(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...q(t)})}function Yx(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...q(t)})}function Xx(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...q(t)})}function Zx(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...q(t)})}function Qx(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...q(t)})}function $x(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...q(t)})}function eS(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...q(t)})}function tS(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...q(t)})}function nS(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...q(t)})}
vendor: 3,129 bytes, line 96
96function rS(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...q(t)})}function iS(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...q(t)})}function aS(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...q(t)})}function oS(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...q(t)})}function sS(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...q(t)})}function cS(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...q(t)})}function lS(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...q(t)})}function uS(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...q(t)})}function dS(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...q(t)})}function fS(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...q(t)})}function pS(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...q(t)})}function mS(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...q(t)})}function hS(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...q(t)})}function gS(e){return new e({type:`unknown`})}function _S(e,t){return new e({type:`never`,...q(t)})}function vS(e,t){return new Jy({check:`max_length`,...q(t),maximum:e})}function yS(e,t){return new Yy({check:`min_length`,...q(t),minimum:e})}function bS(e,t){return new Xy({check:`length_equals`,...q(t),length:e})}function xS(e,t){return new Qy({check:`string_format`,format:`regex`,...q(t),pattern:e})}function SS(e){return new $y({check:`string_format`,format:`lowercase`,...q(e)})}function CS(e){return new eb({check:`string_format`,format:`uppercase`,...q(e)})}function wS(e,t){return new tb({check:`string_format`,format:`includes`,...q(t),includes:e})}function TS(e,t){return new nb({check:`string_format`,format:`starts_with`,...q(t),prefix:e})}function ES(e,t){return new rb({check:`string_format`,format:`ends_with`,...q(t),suffix:e})}function DS(e){return new ib({check:`overwrite`,tx:e})}function OS(e){return DS(t=>t.normalize(e))}function kS(){return DS(e=>e.trim())}function AS(){return DS(e=>e.toLowerCase())}function jS(){return DS(e=>e.toUpperCase())}function MS(){return DS(e=>Y_(e))}function NS(e,t,n){return new e({type:`array`,element:t,...q(n)})}function PS(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...q(n)})}function FS(e,t){let n=IS(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Cv(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Cv(r))}},e(t.value,t)),t);return n}function IS(e,t){let n=new Ky({check:`custom`,...q(t)});return n._zod.check=e,n}function LS(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&K_(e,t,n[t]);return e}function RS(e){let t=e?.target??`draft-2020-12`;
vendor: 20,000 bytes, lines 96-98
96return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Hx,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function zS(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function BS(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,BS(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&LS(o.schema,c),t.io===`input`&&XS(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function VS(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function HS(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${VS(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+VS(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root> 97 98Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}e.external&&(e.sharedDefsExtractedFor=e.external)}function US(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;US(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var WS=new Set([`type`,`properties`,`required`,`additionalProperties`]),GS=[`oneOf`,`anyOf`];function KS(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function qS(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!WS.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??KS(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}K_(n,r,e.length===1?e[0]:qS(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=KS(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function JS(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of WS)if(t in e)return;let n=t.filter(e=>GS.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=qS(t);else{let e=n[0],i=GS.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>qS([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,LS(e,r))}function YS(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):LS(i,s),LS(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())US(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])JS(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}LS(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,K_(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:QS(t,`input`,e.processors),output:QS(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function XS(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return XS(r.element,n);if(r.type===`set`)return XS(r.valueType,n);if(r.type===`lazy`)return XS(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return XS(r.innerType,n);if(r.type===`intersection`)return XS(r.left,n)||XS(r.right,n);if(r.type===`record`||r.type===`map`)return XS(r.keyType,n)||XS(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:XS(r.in,n)||XS(r.out,n);if(r.type===`object`){for(let e in r.shape)if(XS(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(XS(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(XS(e,n))return!0;return!!(r.rest&&XS(r.rest,n))}return!1}var ZS=(e,t={})=>n=>{let r=RS({...n,processors:t});return BS(e,r),HS(r,e),YS(r,e)},QS=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=RS({...i??{},target:a,io:t,processors:n});return BS(e,o),HS(o,e),YS(o,e)},$S={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},eC=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=$S[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},tC=(e,t,n,r)=>{n.not={}},nC=(e,t,n,r)=>{let i=e._zod.def,a=B_(i.entries);if(a.length===0){n.not={};return}a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},rC=(e,t,n,r)=>{zS(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},iC=(e,t,n,r)=>{zS(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},aC=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=BS(a.element,t,{...r,path:[...r.path,`items`]})};function oC(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?oC(t.out):t.type===`catch`?oC(t.innerType):e._zod.optin}var sC=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&zS(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)K_(i.properties,e,BS(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e];return t.io===`input`?oC(n)===void 0:n._zod.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=BS(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},cC=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>BS(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},lC=(e,t,n,r)=>{let i=e._zod.def,a=BS(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=BS(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},uC=(e,t,n,r)=>{let i=e._zod.def,a=BS(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},dC=(e,t,n,r)=>{let i=e._zod.def;BS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},fC=Symbol();function pC(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(zS(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),fC):JSON.parse(o)}var mC=(e,t,n,r)=>{let i=e._zod.def;BS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=pC(i.defaultValue,e,t,n,r);o!==fC&&(n.default=o)},hC=(e,t,n,r)=>{let i=e._zod.def;BS(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=pC(i.defaultValue,e,t,n,r);o!==fC&&(n._prefault=o)},gC=(e,t,n,r)=>{let i=e._zod.def;BS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{zS(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},_C=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;BS(o,t,r);let s=t.seen.get(e);s.ref=o},vC=(e,t,n,r)=>{let i=e._zod.def;BS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},yC=(e,t,n,r)=>{let i=e._zod.def;BS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},bC=new WeakSet([Object.prototype,Error.prototype]);function xC(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var SC=Y(`ZodError`,(e,t)=>{Xv.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);bC.has(n)||(bC.add(n),xC(n,`format`,e=>t=>ey(e,t)),xC(n,`flatten`,e=>t=>$v(e,t)),xC(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,H_,2)}),xC(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,H_,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),CC=ny(SC),wC=ry(SC),TC=iy(SC),EC=oy(SC),DC=cy(SC),OC=ly(SC),kC=uy(SC),AC=dy(SC),jC=fy(SC),MC=py(SC),NC=my(SC),PC=hy(SC);function FC(){Vv.localeError||Hv(Rx())}function IC(){Vv.memoizer||Hv({memoizer:Fx()})}var Q=Y(`ZodType`,(e,t)=>(FC(),X.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(q_(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return rv(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Ww(e,t))},superRefine(e,t){return this.check(Gw(e,t))},overwrite(e){return this.check(DS(e))},optional(){return Ew(this)},exactOptional(){return Ow(this)},nullable(){return Aw(this)},nullish(){return Ew(Aw(this))},nonoptional(e){return Iw(this,e)},array(){return mw(this)},or(e){return vw([this,e])},and(e){return bw(this,e)},transform(e){return Bw(this,ww(e))},default(e){return Mw(this,e)},prefault(e){return Pw(this,e)},catch(e){return Rw(this,e)},pipe(e){return Bw(this,e)},readonly(){return Hw(this)},describe(e){let t=this.clone();return Hx.add(t,{description:e}),t},meta(...e){if(e.length===0)return Hx.get(this);let t=this.clone();return Hx.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Ev(this,`~standard`,{...cb(this),jsonSchema:{input:QS(this,`input`),output:QS(this,`output`)}})},set"~standard"(e){Tv(this,`~standard`,e)},parse:function e(t,n){return CC(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await wC(this,t,n,{callee:e})},safeParse(e,t){return TC(this,e,t)},async safeParseAsync(e,t){return EC(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Tv(this,`spa`,e)},encode:function e(t,n){return DC(this,t,n,{callee:e})},decode:function e(t,n){return OC(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await kC(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await AC(this,t,n,{callee:e})},safeEncode(e,t){return jC(this,e,t)},safeDecode(e,t){return MC(this,e,t)},async safeEncodeAsync(e,t){return NC(this,e,t)},async safeDecodeAsync(e,t){return PC(this,e,t)},toJSONSchema(e){return ZS(this,{})(e)},get description(){return Hx.get(this)?.description},get _def(){return this._zod.def}}),LC=Y(`_ZodString`,(e,t)=>{lb.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eC(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null},{regex(...e){return this.check(xS(...e))},includes(...e){return this.check(wS(...e))},startsWith(...e){return this.check(TS(...e))},endsWith(...e){return this.check(ES(...e))},min(...e){return this.check(yS(...e))},max(...e){return this.check(vS(...e))},length(...e){return this.check(bS(...e))},nonempty(...e){return this.check(yS(1,...e))},lowercase(e){return this.check(SS(e))},uppercase(e){return this.check(CS(e))},trim(){return this.check(kS())},normalize(...e){return this.check(OS(...e))},toLowerCase(){return this.check(AS())},toUpperCase(){return this.check(jS())},slugify(){return this.check(MS())}}),RC=Y(`ZodString`,(e,t)=>{lb.init(e,t),LC.init(e,t)},{email(e){return this.check(Wx(WC,e))},url(e){return this.check(Xx(qC,e))},jwt(e){return this.check(dS(cw,e))},emoji(e){return this.check(Zx(JC,e))},guid(e){return this.check(Gx(GC,e))},uuid(e){return this.check(Kx(KC,e))},uuidv4(e){return this.check(qx(KC,e))},uuidv6(e){return this.check(Jx(KC,e))},uuidv7(e){return this.check(Yx(KC,e))},nanoid(e){return this.check(Qx(YC,e))},cuid(e){return this.check($x(XC,e))},cuid2(e){return this.check(eS(ZC,e))},ulid(e){return this.check(tS(QC,e))},base64(e){return this.check(cS(aw,e))},base64url(e){return this.check(lS(ow,e))},xid(e){return this.check(nS($C,e))},ksuid(e){return this.check(rS(ew,e))},ipv4(e){return this.check(iS(tw,e))},ipv6(e){return this.check(aS(nw,e))},cidrv4(e){return this.check(oS(rw,e))},cidrv6(e){return this.check(sS(iw,e))},e164(e){return this.check(uS(sw,e))},datetime(e){return this.check(fS(BC,e))},date(e){return this.check(pS(VC,e))},time(e){return this.check(mS(HC,e))},duration(e){return this.check(hS(UC,e))}});function zC(e){return Ux(RC,e)}var $=Y(`ZodStringFormat`,(e,t)=>{Z.init(e,t),LC.init(e,t)}),BC=Y(`ZodISODateTime`,(e,t)=>{Eb.init(e,t),$.init(e,t)}),VC=Y(`ZodISODate`,(e,t)=>{Db.init(e,t),$.init(e,t)}),HC=Y(`ZodISOTime`,(e,t)=>{Ob.init(e,t),$.init(e,t)}),UC=Y(`ZodISODuration`,(e,t)=>{kb.init(e,t),$.init(e,t)}),WC=Y(`ZodEmail`,(e,t)=>{fb.init(e,t),$.init(e,t)}),GC=Y(`ZodGUID`,(e,t)=>{ub.init(e,t),$.init(e,t)}),KC=Y(`ZodUUID`,(e,t)=>{db.init(e,t),$.init(e,t)}),qC=Y(`ZodURL`,(e,t)=>{vb.init(e,t),$.init(e,t)}),JC=Y(`ZodEmoji`,(e,t)=>{yb.init(e,t),$.init(e,t)}),YC=Y(`ZodNanoID`,(e,t)=>{bb.init(e,t),$.init(e,t)}),XC=Y(`ZodCUID`,(e,t)=>{xb.init(e,t),$.init(e,t)}),ZC=Y(`ZodCUID2`,(e,t)=>{Sb.init(e,t),$.init(e,t)}),QC=Y(`ZodULID`,(e,t)=>{Cb.init(e,t),$.init(e,t)}),$C=Y(`ZodXID`,(e,t)=>{wb.init(e,t),$.init(e,t)}),ew=Y(`ZodKSUID`,(e,t)=>{Tb.init(e,t),$.init(e,t)}),tw=Y(`ZodIPv4`,(e,t)=>{Ab.init(e,t),$.init(e,t)}),nw=Y(`ZodIPv6`,(e,t)=>{Nb.init(e,t),$.init(e,t)}),rw=Y(`ZodCIDRv4`,(e,t)=>{Pb.init(e,t),$.init(e,t)}),iw=Y(`ZodCIDRv6`,(e,t)=>{Ib.init(e,t),$.init(e,t)}),aw=Y(`ZodBase64`,(e,t)=>{Rb.init(e,t),$.init(e,t)}),ow=Y(`ZodBase64URL`,(e,t)=>{Bb.init(e,t),$.init(e,t)}),sw=Y(`ZodE164`,(e,t)=>{Vb.init(e,t),$.init(e,t)}),cw=Y(`ZodJWT`,(e,t)=>{Ub.init(e,t),$.init(e,t)}),lw=Y(`ZodUnknown`,(e,t)=>{Wb.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function uw(){return gS(lw)}var dw=Y(`ZodNever`,(e,t)=>{Gb.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tC(e,t,n,r)});function fw(e){return _S(dw,e)}var pw=Y(`ZodArray`,(e,t)=>{IC(),qb.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>aC(e,t,n,r),e.element=t.element},{min(e,t){return this.check(yS(e,t))},nonempty(e){return this.check(yS(1,e))},max(e,t){return this.check(vS(e,t))},length(e,t){return this.check(bS(e,t))},unwrap(){return this.element}});function mw(e,t){return NS(pw,e,t)}var hw=Y(`ZodObject`,(e,t)=>{IC(),ex.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sC(e,t,n,r),Mv(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return Sw(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:uw()})},loose(){return this.clone({...this._zod.def,catchall:uw()})},strict(){return this.clone({...this._zod.def,catchall:fw()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return cv(this,e)},safeExtend(e){return lv(this,e)},merge(e){return uv(this,e)},pick(e){return ov(this,e)},omit(e){return sv(this,e)},partial(...e){return dv(Tw,this,e[0])},exactPartial(...e){return dv(Dw,this,e[0],`exactPartial`)}
98,required(...e){return fv(Fw,this,e[0])}});function gw(e,t){return new hw({type:`object`,shape:e??{},...q(t)})}var _w=Y(`ZodUnion`,(e,t)=>{nx.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cC(e,t,n,r),e.options=t.options});function vw(e,t){return new _w({type:`union`,options:e,...q(t)})}var yw=Y(`ZodIntersection`,(e,t)=>{rx.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lC(e,t,n,r)});function bw(e,t){return new yw({type:`intersection`,left:e,right:t})}var xw=Y(`ZodEnum`,(e,t)=>{ox.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nC(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new xw({...t,checks:[],...q(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new xw({...t,checks:[],...q(r),entries:i})}});function Sw(e,t){return new xw({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...q(t)})}var Cw=Y(`ZodTransform`,(e,t)=>{IC(),sx.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iC(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Bv(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Cv(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Cv(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function ww(e){return new Cw({type:`transform`,transform:e})}var Tw=Y(`ZodOptional`,(e,t)=>{lx.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ew(e){return new Tw({type:`optional`,innerType:e})}var Dw=Y(`ZodExactOptional`,(e,t)=>{ux.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ow(e){return new Dw({type:`optional`,innerType:e})}var kw=Y(`ZodNullable`,(e,t)=>{dx.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Aw(e){return new kw({type:`nullable`,innerType:e})}var jw=Y(`ZodDefault`,(e,t)=>{fx.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Mw(e,t){return new jw({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ev(t)}})}var Nw=Y(`ZodPrefault`,(e,t)=>{mx.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Pw(e,t){return new Nw({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ev(t)}})}var Fw=Y(`ZodNonOptional`,(e,t)=>{hx.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Iw(e,t){return new Fw({type:`nonoptional`,innerType:e,...q(t)})}var Lw=Y(`ZodCatch`,(e,t)=>{vx.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Rw(e,t){return new Lw({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Pv(t)})}var zw=Y(`ZodPipe`,(e,t)=>{yx.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_C(e,t,n,r),e.in=t.in,e.out=t.out});function Bw(e,t){return new zw({type:`pipe`,in:e,out:t})}var Vw=Y(`ZodReadonly`,(e,t)=>{xx.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Hw(e){return new Vw({type:`readonly`,innerType:e})}var Uw=Y(`ZodCustom`,(e,t)=>{Cx.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rC(e,t,n,r)});function Ww(e,t={}){return PS(Uw,e,t)}function Gw(e,t){return FS(e,t)}var Kw=[`Président`,`Trésorier`,`Service comptable et financier`,`Autre`],qw=[`Anciens élèves`,`Caritative`,`Culturelle`,`Ãducation`,`Environnement`,`Fondation`,`Loisirs`,`Médico-sociale`,`Club omnisports`,`Autres`,`Politique`,`Professionnelle`,`Religieuse`,`Défense des droits`,`Sportive`,`Ãtudiante`],Jw=[`lt-40k`,`40k-90k`,`90k-160k`,`160k-400k`,`400k-1m`,`gt-1m`],Yw=[`migrate-2027`,`migrate-later`,`backup-only`];zC().trim().email().max(254),gw({asso_name:zC().trim().min(1).max(100),nom:zC().trim().min(1).max(100),prenom:zC().trim().min(1).max(100),role:Sw(Kw),secteur:Sw(qw),budget:Sw(Jw).optional(),objectif:Sw(Yw).optional()}).strict();async function Xw(e,t){let n=await fetch(`/api/checkout/${e}`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t),credentials:`same-origin`}),r=await n.json();if(!n.ok)throw Error(r.error||`unavailable`);return r}var Zw={configuration:`checkout_error_configuration`,profile_invalid:`checkout_error_profile_invalid`,budget_mismatch:`checkout_error_budget_mismatch`,unauthorized:`checkout_error_unauthorized`,price_changed:`checkout_error_price_changed`,session_expired:`checkout_error_session_expired`,checkout_pending:`checkout_error_checkout_pending`};function Qw(e,t){let n=e instanceof Error?e.message:``;return(Zw[n]?E(t?`en`:`fr`,Zw[n]):``)||E(t?`en`:`fr`,`checkout_checkout_page_the_service_is_temporarily_unavailable_your_details`)}function $w({name:e,label:t,options:n,defaultValue:r=``}){return(0,N.jsxs)(`label`,{className:`block text-sm`,children:[(0,N.jsxs)(`span`,{className:`mb-2 block`,children:[t,` *`]}),(0,N.jsxs)(`select`,{name:e,required:!0,defaultValue:r,className:`checkout-select`,children:[(0,N.jsx)(`option`,{value:``,disabled:!0,children:`â`}),n.map(e=>(0,N.jsx)(`option`,{value:e.value,children:e.label},e.value))]})]})}function eT({data:e}){let t=at(),n=new URLSearchParams(t.searchStr).get(`offre`)||``;return(0,N.jsx)(tT,{data:e,offerId:n},n)}function tT({data:e,offerId:t}){let n=e.locale===`en`,r=N_(t),[i,a]=(0,P.useState)(``),[o,s]=(0,P.useState)(null),[c,l]=(0,P.useState)(!1),[u,d]=(0,P.useState)(``),[f,p]=(0,P.useState)(!1),m=(0,P.useRef)(null);if((0,P.useEffect)(()=>{o&&m.current?.focus()},[o]),!r||!R_(r))return(0,N.jsxs)(`section`,{className:`container-page section-space`,children:[(0,N.jsx)(`h1`,{className:`font-display text-4xl`,children:E(n?`en`:`fr`,`checkout_checkout_page_choose_your_offer`)}),(0,N.jsxs)(`a`,{className:`mt-6 inline-block underline`,href:n?`/en/tarifs`:`/tarifs`,children:[E(n?`en`:`fr`,`checkout_checkout_page_see_pricing`),` `,`â`]})]});async function h(r){if(r.preventDefault(),!c){l(!0),d(``);
98try{s(await Xw(`begin`,{email:i,offerId:t,locale:e.locale}))}catch(e){d(Qw(e,n)),p(e instanceof Error&&e.message===`checkout_pending`)}finally{l(!1)}}}async function g(e){if(e.preventDefault(),c)return;let t=new FormData(e.currentTarget);l(!0),d(``);try{let e=await Xw(`pay`,{profile:o?.profileComplete?void 0:Object.fromEntries([`asso_name`,`nom`,`prenom`,`role`,`secteur`,...r?.kind===`subscription`?[`objectif`]:[]].map(e=>[e,t.get(e)]))});window.location.assign(e.url)}catch(e){d(Qw(e,n)),p(e instanceof Error&&e.message===`checkout_pending`),l(!1)}}let _=z_(r,e.locale),v=F_(r),y=P_(r),b=o?.amount??v.amount;o?.renewalStartDate??y?.renewalStartDate;let x=n?`/en`:``;return(0,N.jsxs)(`section`,{className:`container-page checkout-section`,children:[(0,N.jsxs)(`a`,{href:`${x}/${r.kind===`migration`?`migration`:`tarifs`}`,className:`text-sm underline underline-offset-4`,children:[`â`,` `,E(n?`en`:`fr`,`checkout_checkout_page_back_to_offers`)]}),(0,N.jsxs)(`div`,{className:`checkout-layout`,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`ol`,{className:`checkout-steps`,"aria-label":E(n?`en`:`fr`,`checkout_checkout_page_checkout_steps`),children:[E(n?`en`:`fr`,`checkout_checkout_page_email`),E(n?`en`:`fr`,`checkout_checkout_page_your_details`),`GoCardless`].map((e,t)=>(0,N.jsxs)(`li`,{"aria-current":t===+!!o?`step`:void 0,children:[(0,N.jsx)(`span`,{children:t+1}),e]},e))}),(0,N.jsx)(`h1`,{ref:m,tabIndex:-1,className:`mt-9 font-display text-4xl tracking-tight sm:text-5xl`,children:o?E(n?`en`:`fr`,`checkout_checkout_page_one_last_step`):E(n?`en`:`fr`,`checkout_checkout_page_lets_get_started`)}),(0,N.jsx)(`p`,{className:`mt-5 max-w-xl text-muted-foreground`,children:o?o.profileComplete?E(n?`en`:`fr`,`checkout_checkout_page_your_profile_is_complete_you_can_continue`):E(n?`en`:`fr`,`checkout_checkout_page_tell_us_a_little_about_yourself_to`):E(n?`en`:`fr`,`checkout_checkout_page_enter_your_email_so_we_can_check`)}),o?(0,N.jsxs)(`form`,{onSubmit:g,className:`mt-8`,"aria-busy":c,children:[(0,N.jsxs)(`p`,{className:`mb-6 flex flex-wrap gap-3 text-sm`,children:[(0,N.jsx)(`span`,{children:i}),(0,N.jsx)(`button`,{type:`button`,disabled:c,className:`underline`,onClick:()=>{s(null),d(``)},children:E(n?`en`:`fr`,`checkout_checkout_page_edit`)})]}),(0,N.jsxs)(`fieldset`,{disabled:c,className:`grid gap-5 sm:grid-cols-2`,children:[(0,N.jsx)(`legend`,{className:`sr-only`,children:E(n?`en`:`fr`,`checkout_checkout_page_your_details_2`)}),!o.profileComplete&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`label`,{className:`text-sm sm:col-span-2`,children:[(0,N.jsxs)(`span`,{className:`mb-2 block`,children:[E(e.locale,`checkout_association_name`),` *`]}),(0,N.jsx)(b_,{name:`asso_name`,required:!0,maxLength:100,autoComplete:`organization`})]}),(0,N.jsxs)(`label`,{className:`text-sm`,children:[(0,N.jsxs)(`span`,{className:`mb-2 block`,children:[E(n?`en`:`fr`,`checkout_checkout_page_first_name`),` `,`*`]}),(0,N.jsx)(b_,{name:`prenom`,required:!0,maxLength:100,autoComplete:`given-name`})]}),(0,N.jsxs)(`label`,{className:`text-sm`,children:[(0,N.jsxs)(`span`,{className:`mb-2 block`,children:[E(n?`en`:`fr`,`checkout_checkout_page_last_name`),` `,`*`]}),(0,N.jsx)(b_,{name:`nom`,required:!0,maxLength:100,autoComplete:`family-name`})]}),(0,N.jsx)($w,{name:`role`,label:E(n?`en`:`fr`,`checkout_checkout_page_role`),options:Kw.map((t,n)=>({value:t,label:E(e.locale,`role_${n}`)}))}),(0,N.jsx)($w,{name:`secteur`,label:E(n?`en`:`fr`,`checkout_checkout_page_sector`),options:qw.map((t,n)=>({value:t,label:E(e.locale,`sector_${n}`)}))}),r.kind===`subscription`&&(0,N.jsx)($w,{name:`objectif`,label:E(n?`en`:`fr`,`checkout_checkout_page_your_objective`),options:Yw.map((e,t)=>({value:e,label:(n?[E(`en`,`checkout_checkout_page_migrate_in_2027`),E(`en`,`checkout_checkout_page_migrate_later`),E(`en`,`checkout_checkout_page_back_up_my_data_only`)]:[E(`fr`,`checkout_checkout_page_migrate_in_2027`),E(`fr`,`checkout_checkout_page_migrate_later`),E(`fr`,`checkout_checkout_page_back_up_my_data_only`)])[t]}))})]})]}),(0,N.jsxs)(`p`,{className:`mt-7 text-sm text-muted-foreground`,children:[E(n?`en`:`fr`,`checkout_checkout_page_your_details_are_used_to_process_your`),` `,(0,N.jsx)(`a`,{className:`underline`,href:`${x}
98/confidentialite`,children:E(n?`en`:`fr`,`checkout_checkout_page_privacy_policy`)})]}),(0,N.jsxs)(B,{className:`mt-6`,disabled:c,children:[c?E(n?`en`:`fr`,`checkout_checkout_page_preparing`):E(n?`en`:`fr`,`checkout_checkout_page_continue_to_gocardless`),` `,`â`]})]}):(0,N.jsxs)(`form`,{onSubmit:h,className:`mt-9 max-w-xl`,"aria-busy":c,children:[(0,N.jsxs)(`label`,{className:`block text-sm`,children:[(0,N.jsxs)(`span`,{className:`mb-2 block`,children:[E(n?`en`:`fr`,`checkout_checkout_page_email_address`),` `,`*`]}),(0,N.jsx)(b_,{name:`email`,type:`email`,autoComplete:`email`,maxLength:254,required:!0,value:i,onChange:e=>a(e.target.value),disabled:c})]}),(0,N.jsxs)(B,{className:`mt-6`,disabled:c,children:[c?E(n?`en`:`fr`,`checkout_checkout_page_checking`):E(n?`en`:`fr`,`checkout_checkout_page_continue`),` `,`â`]})]}),u&&(0,N.jsxs)(`div`,{role:`alert`,className:`mt-6 rounded-xl border border-rose p-4 text-sm`,children:[u,f&&(0,N.jsx)(`a`,{className:`mt-2 block underline`,href:`${x}/paiement/retour`,children:E(n?`en`:`fr`,`checkout_checkout_page_view_payment_status`)})]})]}),(0,N.jsxs)(`aside`,{className:`checkout-summary`,"aria-label":E(n?`en`:`fr`,`checkout_checkout_page_order_summary`),children:[(0,N.jsx)(`p`,{className:`text-sm uppercase tracking-widest`,children:r.kind===`migration`?E(n?`en`:`fr`,`checkout_checkout_page_oneoff_purchase`):E(n?`en`:`fr`,`checkout_checkout_page_annual_subscription`)}),(0,N.jsx)(`h2`,{className:`mt-5 font-display text-3xl`,children:r.kind===`subscription`?E(n?`en`:`fr`,`checkout_checkout_page_value_plan`,{v0:r.name}):_.name}),(0,N.jsxs)(`p`,{className:`mt-3 text-sm`,children:[E(n?`en`:`fr`,`checkout_checkout_page_association_annual_income`),(0,N.jsx)(`br`,{}),(0,N.jsx)(`strong`,{className:`mt-1 inline-block text-base`,children:_.band})]}),(0,N.jsxs)(`p`,{className:`mt-8 font-display text-4xl`,children:[I_(b,e.locale),(0,N.jsx)(`span`,{className:`ml-2 font-sans text-sm`,children:E(n?`en`:`fr`,`checkout_checkout_page_incl_tax`)})]}),(0,N.jsx)(`p`,{className:`mt-3 text-sm`,children:r.kind===`subscription`?E(e.locale,`monthlyPaidAnnually`,{amount:I_(b/12,e.locale)}):E(n?`en`:`fr`,`checkout_checkout_page_one_payment_no_subscription`)}
98),(0,N.jsx)(`div`,{className:`mt-7 border-t border-foreground/15 pt-6 text-sm leading-relaxed`,children:r.kind===`subscription`?D_[e.locale]:E(n?`en`:`fr`,`checkout_checkout_page_the_backup_widget_is_free_this_purchase`)}),(0,N.jsx)(`p`,{className:`mt-6 text-sm`,children:E(n?`en`:`fr`,`checkout_checkout_page_bank_details_collected_securely_by_gocardless`)})]})]})]})}function nT({data:e}){let t=e.locale===`en`,[n,r]=(0,P.useState)(null),[i,a]=(0,P.useState)(``),[o,s]=(0,P.useState)(!1);async function c(){s(!0),a(``);try{r(await Xw(`status`,{}))}catch{a(E(e.locale,`checkout_status_unavailable`))}finally{s(!1)}}(0,P.useEffect)(()=>{c()},[]);let l=[`scheduled`,`pending_submission`,`submitted`].includes(n?.status||``),u=[`confirmed`,`paid_out`].includes(n?.status||``),d=[`failed`,`cancelled`,`expired`,`charged_back`].includes(n?.status||``),f=l?E(e.locale,n?.kind===`migration`?`checkout_confirmation_migration_scheduled`:`checkout_checkout_page_your_annual_debit_is_scheduled`):u?E(t?`en`:`fr`,`checkout_checkout_page_payment_confirmed`):d?E(t?`en`:`fr`,`checkout_checkout_page_payment_not_completed`):E(t?`en`:`fr`,`checkout_checkout_page_your_request_is_being_processed`);return(0,N.jsx)(`section`,{className:`container-page checkout-section`,children:(0,N.jsxs)(`div`,{className:`mx-auto max-w-2xl rounded-3xl bg-mint p-8 sm:p-12`,children:[(0,N.jsx)(`p`,{className:`text-sm uppercase tracking-widest`,children:E(e.locale,`components_checkout_checkout_page_gocardless`)}),(0,N.jsx)(`h1`,{className:`mt-5 font-display text-4xl`,children:f}),(0,N.jsx)(`p`,{className:`mt-6`,children:l?E(e.locale,n?.kind===`migration`?`checkout_confirmation_migration_authorised`:`checkout_checkout_page_your_mandate_is_authorised_and_your_annual`):u?E(t?`en`:`fr`,`checkout_checkout_page_gocardless_has_confirmed_receipt_of_your_payment`):d?E(t?`en`:`fr`,`checkout_checkout_page_no_successful_payment_is_confirmed_please_contact`):E(t?`en`:`fr`,`checkout_checkout_page_we_are_checking_your_authorisation_and_payment`)}),(l||u)&&n?.kind===`subscription`&&(0,N.jsx)(`p`,{className:`mt-4 whitespace-pre-line`,children:E(e.locale,`checkout_confirmation_subscription_start`)}),l&&n?.startDate&&(0,N.jsxs)(`p`,{className:`mt-4`,children:[E(t?`en`:`fr`,`checkout_checkout_page_first_debit`),new Intl.DateTimeFormat(E(t?`en`:`fr`,`checkout_checkout_page_engb`),{dateStyle:`long`,timeZone:`UTC`}).format(new Date(n.startDate))]}),l&&n?.renewalStartDate&&(0,N.jsxs)(`p`,{className:`mt-2`,children:[E(t?`en`:`fr`,`checkout_checkout_page_renewal_at_the_standard_price_from`),new Intl.DateTimeFormat(E(t?`en`:`fr`,`checkout_checkout_page_engb_2`),{dateStyle:`long`,timeZone:`UTC`}).format(new Date(n.renewalStartDate))]}),i&&(0,N.jsx)(`p`,{role:`alert`,className:`mt-5`,children:i}),(0,N.jsxs)(`div`,{className:`mt-8 flex flex-wrap gap-4`,children:[(0,N.jsx)(B,{onClick:c,disabled:o,children:o?E(t?`en`:`fr`,`checkout_checkout_page_checking_2`):E(t?`en`:`fr`,`checkout_checkout_page_refresh_status`)}),n?.status===`pending`&&(0,N.jsx)(B,{variant:`outline`,disabled:o,onClick:async()=>{s(!0);try{let e=await Xw(`pay`,{});window.location.assign(e.url)}catch(e){a(Qw(e,t)),s(!1)}},children:E(t?`en`:`fr`,`checkout_checkout_page_resume_on_gocardless`)}),(0,N.jsx)(`a`,{className:`self-center text-sm underline`,href:`${t?`/en`:``}/a-propos#contact`,children:E(t?`en`:`fr`,`checkout_checkout_page_contact_us`)})]})]})})}function rT({name:e}){return(0,N.jsx)(`span`,{className:`partner-logo partner-logo-${e}`,children:(0,N.jsx)(`img`,{src:`/images/partners/${e}.png`,alt:e===`helloasso`?`HelloAsso`:`Pennylane`})})}function iT({eyebrow:e,title:t,description:n,split:r=!1,decoration:i=!1,className:a}){return(0,N.jsxs)(`section`,{className:ac(`page-hero`,r&&`page-hero-split`,a),children:[i&&(0,N.jsx)(`span`,{className:`page-hero-decoration`,"aria-hidden":`true`}),(0,N.jsxs)(K,{className:`container-page`,children:[e&&(0,N.jsx)(`p`,{className:`eyebrow mb-6`,children:e}),(0,N.jsxs)(`div`,{className:r?`grid items-center gap-10 lg:grid-cols-2`:`mx-auto max-w-3xl text-center`,children:[(0,N.jsx)(`h1`,{className:`page-title whitespace-pre-line`,children:t}),n&&(0,N.jsx)(`p`,{className:ac(`page-hero-description`,!r&&`mx-auto mt-6 max-w-lg`),children:n})]})]})]})}var aT=Object.defineProperty,oT=(e,t)=>aT(e,`name`,{value:t,configurable:!0}),sT=`Collapsible`,[cT,lT]=Qc(sT),[uT,dT]=cT(sT),fT=P.forwardRef(oT(function(e,t){let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=ll({prop:r,defaultProp:i??!1,onChange:o,caller:sT});return(0,N.jsx)(uT,{scope:n,disabled:a,contentId:wu(),open:c,onOpenToggle:P.useCallback(()=>l(e=>!e),[l]),children:(0,N.jsx)(H.div,{"data-state":vT(c),"data-disabled":a?``:void 0,...s,ref:t})})},`Collapsible`)),pT=`CollapsibleTrigger`,mT=P.forwardRef(oT(function(e,t){let{__scopeCollapsible:n,...r}=e,i=dT(pT,n);return(0,N.jsx)(H.button,{type:`button`,"aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open||!1,"data-state":vT(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:V(e.onClick,i.onOpenToggle)})},`CollapsibleTrigger`)),hT=`CollapsibleContent`,gT=P.forwardRef(oT(function(e,t){let{forceMount:n,...r}=e,i=dT(hT,e.__scopeCollapsible);return(0,N.jsx)(dp,{present:n||i.open,children:({present:e})=>(0,N.jsx)(_T,{...r,ref:t,present:e})})},`CollapsibleContent`)),_T=P.forwardRef(oT(function(e,t){let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=dT(hT,n),[s,c]=P.useState(r),l=P.useRef(null),u=z(t,l),d=P.useRef(0),f=d.current,p=P.useRef(0),m=p.current,h=o.open||s,g=P.useRef(h),_=P.useRef(void 0);return P.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),el(()=>{let e=l.current;if(e){_.current=_.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,g.current||(e.style.transitionDuration=_.current.transitionDuration,e.style.animationName=_.current.animationName),c(r)}},[o.open,r]),(0,N.jsx)(H.div,{"data-state":vT(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!h,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&i})},`CollapsibleContentImpl`));function vT(e){return e?`open`:`closed`}oT(vT,`getState`);var yT=fT,bT=mT,xT=gT,ST=Object.defineProperty,CT=(e,t)=>ST(e,`name`,{value:t,configurable:!0}),wT=`Accordion`,TT=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[ET,DT,OT]=yl(wT),[kT,AT]=Qc(wT,[OT,lT]),jT=lT(),MT=P.forwardRef(CT(function(e,t){let{type:n,...r}=e,i=r,a=r;return(0,N.jsx)(ET.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,N.jsx)(RT,{...a,ref:t}):(0,N.jsx)(LT,{...i,ref:t})})}
98,`Accordion`)),[NT,PT]=kT(wT),[FT,IT]=kT(wT,{collapsible:!1}),LT=P.forwardRef(CT(function(e,t){let{value:n,defaultValue:r,onValueChange:i=CT(()=>{},`onValueChange`),collapsible:a=!1,...o}=e,[s,c]=ll({prop:n,defaultProp:r??``,onChange:i,caller:wT});return(0,N.jsx)(NT,{scope:e.__scopeAccordion,value:P.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:P.useCallback(()=>a&&c(``),[a,c]),children:(0,N.jsx)(FT,{scope:e.__scopeAccordion,collapsible:a,children:(0,N.jsx)(VT,{...o,ref:t})})})},`AccordionImplSingle`)),RT=P.forwardRef(CT(function(e,t){let{value:n,defaultValue:r,onValueChange:i=CT(()=>{},`onValueChange`),...a}=e,[o,s]=ll({prop:n,defaultProp:r??[],onChange:i,caller:wT}),c=P.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=P.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,N.jsx)(NT,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:l,children:(0,N.jsx)(FT,{scope:e.__scopeAccordion,collapsible:!0,children:(0,N.jsx)(VT,{...a,ref:t})})})},`AccordionImplMultiple`)),[zT,BT]=kT(wT),VT=P.forwardRef(CT(function(e,t){let{__scopeAccordion:n,disabled:r,dir:i,orientation:a=`vertical`,...o}=e,s=z(P.useRef(null),t),c=DT(n),l=Nl(i)===`ltr`,u=V(e.onKeyDown,e=>{if(!TT.includes(e.key))return;let t=e.target,n=c().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let o=r,s=i-1,u=CT(()=>{o=r+1,o>s&&(o=0)},`moveNext`),d=CT(()=>{o=r-1,o<0&&(o=s)},`movePrev`);switch(e.key){case`Home`:o=0;break;case`End`:o=s;break;case`ArrowRight`:a===`horizontal`&&(l?u():d());break;case`ArrowDown`:a===`vertical`&&u();break;case`ArrowLeft`:a===`horizontal`&&(l?d():u());break;case`ArrowUp`:a===`vertical`&&d()}n[o%i].ref.current?.focus()});return(0,N.jsx)(zT,{scope:n,disabled:r,direction:i,orientation:a,children:(0,N.jsx)(ET.Slot,{scope:n,children:(0,N.jsx)(H.div,{...o,"data-orientation":a,ref:s,onKeyDown:r?void 0:u})})})},`AccordionImpl`)),HT=`AccordionItem`,[UT,WT]=kT(HT),GT=P.forwardRef(CT(function(e,t){let{__scopeAccordion:n,value:r,...i}=e,a=BT(HT,n),o=PT(HT,n),s=jT(n),c=wu(),l=r&&o.value.includes(r)||!1,u=a.disabled||e.disabled;return(0,N.jsx)(UT,{scope:n,open:l,disabled:u,triggerId:c,children:(0,N.jsx)(yT,{"data-orientation":a.orientation,"data-state":QT(l),...s,...i,ref:t,disabled:u,open:l,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})},`AccordionItem`)),KT=`AccordionHeader`,qT=P.forwardRef(CT(function(e,t){let{__scopeAccordion:n,...r}=e,i=BT(wT,n),a=WT(KT,n);return(0,N.jsx)(H.h3,{"data-orientation":i.orientation,"data-state":QT(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})},`AccordionHeader`)),JT=`AccordionTrigger`,YT=P.forwardRef(CT(function(e,t){let{__scopeAccordion:n,...r}=e,i=BT(wT,n),a=WT(JT,n),o=IT(JT,n),s=jT(n);return(0,N.jsx)(ET.ItemSlot,{scope:n,children:(0,N.jsx)(bT,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})},`AccordionTrigger`)),XT=`AccordionContent`,ZT=P.forwardRef(CT(function(e,t){let{__scopeAccordion:n,...r}=e,i=BT(wT,n),a=WT(XT,n),o=jT(n);return(0,N.jsx)(xT,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})},`AccordionContent`));function QT(e){return e?`open`:`closed`}CT(QT,`getState`);var $T=MT,eE=GT,tE=qT,nE=YT,rE=ZT;function iE({item:e,value:t}){return(0,N.jsxs)(eE,{value:t,className:`faq-item border-b border-border`,children:[(0,N.jsx)(tE,{children:(0,N.jsxs)(nE,{className:`faq-trigger group flex w-full items-center justify-between gap-6 py-6 text-left text-base transition-colors hover:text-muted-foreground`,children:[(0,N.jsx)(`span`,{className:`faq-question`,children:e.question}),(0,N.jsx)(`span`,{className:`faq-plus text-xl`,"aria-hidden":!0,children:`+`})]})}),(0,N.jsxs)(rE,{className:`accordion-content overflow-hidden text-muted-foreground`,children:[(0,N.jsx)(`p`,{className:`max-w-3xl whitespace-pre-line pb-6 leading-relaxed`,children:e.answer}),e.link&&(0,N.jsx)(`a`,{className:`mb-6 inline-block underline underline-offset-4`,href:e.link.href,target:`_blank`,rel:`noreferrer`,children:e.link.label}),e.table&&(0,N.jsx)(`div`,{className:`mb-6 overflow-x-auto`,children:(0,N.jsxs)(`table`,{className:`migration-data-table`,children:[(0,N.jsx)(`caption`,{className:`sr-only`,children:E(`fr`,`components_shared_faq_item_les_donnees_sauvegardees_et_migrees`)}),(0,N.jsx)(`thead`,{children:(0,N.jsx)(`tr`,{children:e.table.headers.map(e=>(0,N.jsx)(`th`,{scope:`col`,children:e},e))})}),(0,N.jsx)(`tbody`,{children:e.table.rows.map(e=>(0,N.jsx)(`tr`,{children:e.map((e,t)=>t===0?(0,N.jsx)(`th`,{scope:`row`,children:e},t):(0,N.jsx)(`td`,{children:e},t))},e[0]))})]})})]})]})}function aE({eyebrow:e,title:t,description:n,center:r=!1,className:i}){return(0,N.jsxs)(`div`,{className:ac(`mb-10`,r&&`mx-auto max-w-3xl text-center`,i),children:[e&&(0,N.jsx)(`p`,{className:`eyebrow mb-4`,children:e}),(0,N.jsx)(`h2`,{className:`section-title`,children:t}),n&&(0,N.jsx)(`p`,{className:`mt-6 text-lg text-muted-foreground`,children:n})]})}function oE({title:e,items:t}){return(0,N.jsx)(`section`,{id:`faq`,className:`section-space`,children:(0,N.jsxs)(K,{className:`container-page max-w-5xl`,children:[(0,N.jsx)(aE,{title:e,center:!0}),(0,N.jsx)($T,{type:`single`,collapsible:!0,children:t.map((e,t)=>(0,N.jsx)(iE,{item:e,value:`faq-${t}`},t))})]})})}function sE({data:e}){return(0,N.jsx)(`section`,{id:`contact`,className:`section-space contact-anchor`,children:(0,N.jsxs)(K,{className:`container-page grid items-start gap-16 lg:grid-cols-[1fr_1.5fr]`,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`h2`,{className:`section-title`,children:e.t.contactTitle}),(0,N.jsx)(`p`,{className:`mt-6 text-muted-foreground`,children:e.locale===`fr`?E(`fr`,`contact_contact_section_a_question_about_migration_a_demo_or`):E(`en`,`contact_contact_section_a_question_about_migration_a_demo_or`)})]}),(0,N.jsx)(S_,{data:e})]})})}var cE=e=>({title:E(e,`server_content_invoicing_la_facturation_electronique_devient_obligatoire_des_2026`),description:E(e,`server_content_invoicing_a_partir_du_1er_septembre_2026_certaines`),timeline:[{date:E(e,`server_content_invoicing_1er_janvier_2020`),text:E(e,`server_content_invoicing_chorus_pro_entre_en_service_pour_les`)},{date:E(e,`server_content_invoicing_1er_septembre_2026`),text:E(e,`server_content_invoicing_obligation_pour_les_grandes_structures_et_eti`)},{date:E(e,`server_content_invoicing_1er_septembre_2027`),text:E(e,`server_content_invoicing_extension_a_toutes_les_associations_assujetties_a`)}],faq:[{question:E(e,`server_content_invoicing_mon_association_sans_activite_commerciale_estelle_concernee`),answer:E(e,`server_content_invoicing_non_une_association_entierement_a_but_non`)},{question:E(e,`server_content_invoicing_nos_activites_lucratives_sont_accessoires_sommesnous_concernes`),answer:E(e,`server_content_invoicing_non_si_votre_association_beneficie_de_la`)},{question:E(e,`server_content_invoicing_un_pdf_envoye_par_email_cest_une`),answer:E(e,`server_content_invoicing_non_un_pdf_transmis_par_email_nest`)},{question:E(e,`server_content_invoicing_lactivation_de_la_plateforme_agreee_atelle_un`),answer:E(e,`server_content_invoicing_non_lacces_a_la_plateforme_agreee_pennylane`)},{question:E(e,`server_content_invoicing_nous_avons_des_activites_lucratives_non_accessoires`),answer:E(e,`server_content_invoicing_vous_etes_assujetti_partiel_ou_total_a`)},{question:E(e,`server_content_invoicing_je_suis_client_caleb_gestion_doisje_aussi`),answer:E(e,`server_content_invoicing_oui_si_vous_etes_client_caleb_gestion`)}]});function lE({data:e}){let t=cE(e.locale);return(0,N.jsxs)(`div`,{lang:e.locale,children:[(0,N.jsx)(iT,{className:`invoicing-hero brand-watermarks`,title:(0,N.jsx)(y_,{text:t.title,phrases:[`dès 2026`,`pour vous`],className:`highlight-orange`}),description:t.description}),(0,N.jsx)(`section`,{id:`reforme`,className:`section-space bg-mint/60 scroll-mt-28 brand-watermarks invoicing-reform`,children:(0,N.jsxs)(`div`,{className:`container-page`,children:[(0,N.jsx)(`h2`,{className:`section-title`,children:E(e.locale,`components_invoicing_invoicing_page_la_reforme_avance`)}),(0,N.jsx)(`p`,{className:`mt-5 max-w-3xl`,children:E(e.locale,`components_invoicing_invoicing_page_les_evolutions_reglementaires_autour_de_la_facturation`)}),(0,N.jsx)(`ol`,{className:`mt-10 grid gap-6 md:grid-cols-3`,children:t.timeline.map(e=>(0,N.jsxs)(`li`,{className:`rounded-2xl border border-border bg-background p-7`,children:[(0,N.jsx)(`h3`,{className:`font-display text-2xl`,children:(0,N.jsx)(y_,{text:e.date,phrases:[e.date],className:`highlight-orange`})}),(0,N.jsx)(`p`,{className:`mt-5 leading-relaxed`,children:e.text.split(/(Chorus Pro|marchés publics|grandes structures et ETI|Plateforme Agréée|associations assujetties à la TVA)/g).map((e,t)=>t%2?(0,N.jsx)(`strong`,{children:e},t):e)})]},e.date))})]})}),(0,N.jsxs)(`section`,{className:`section-space container-page`,children:[(0,N.jsx)(`h2`,{className:`section-title`,children:E(e.locale,`components_invoicing_invoicing_page_mon_association_estelle_concernee`)}),(0,N.jsx)(`p`,{className:`mt-5`,children:E(e.locale,`components_invoicing_invoicing_page_la_situation_depend_principalement_de_votre_regime`)}),(0,N.jsxs)(`div`,{className:`mt-10 grid gap-6 md:grid-cols-2`,children:[(0,N.jsxs)(`article`,{className:`rounded-2xl bg-mint p-8`,children:[(0,N.jsx)(`p`,{className:`mb-5 text-sm font-medium`,children:E(e.locale,`components_invoicing_invoicing_page_non_concernee`)}),(0,N.jsx)(`h3`,{className:`font-display text-2xl`,children:E(e.locale,`components_invoicing_invoicing_page_association_entierement_a_but_non_lucratif`)}),(0,N.jsx)(`p`,{className:`mt-5`,children:E(e.locale,`components_invoicing_invoicing_page_non_assujettie_a_la_tva_aucune_obligation`)})]}),(0,N.jsxs)(`article`,{className:`invoicing-concerned rounded-2xl bg-orange/25 p-8`,children:[(0,N.jsx)(`p`,{className:`mb-5 text-sm font-medium`,children:(0,N.jsx)(`span`,{className:`invoicing-status`,children:E(e.locale,`components_invoicing_invoicing_page_concernee`)})}),(0,N.jsx)(`h3`,{className:`font-display text-2xl`,children:E(e.locale,`components_invoicing_invoicing_page_association_exercant_une_activite_lucrative_assujettie_a`)}),(0,N.jsx)(`p`,{className:`mt-5`,children:E(e.locale,`components_invoicing_invoicing_page_meme_partiellement_vou
98s_devrez_passer_par_une`)})]})]})]}),(0,N.jsx)(`section`,{className:`section-space bg-mint/60`,children:(0,N.jsxs)(`div`,{className:`container-page`,children:[(0,N.jsx)(`div`,{className:`invoicing-partner-logo mb-8`,children:(0,N.jsx)(rT,{name:`pennylane`})}),(0,N.jsx)(`h2`,{className:`section-title`,children:E(e.locale,`components_invoicing_invoicing_page_pennylane_la_plateforme_agreee_de_reference`)}),(0,N.jsx)(`p`,{className:`mt-5`,children:E(e.locale,`components_invoicing_invoicing_page_nous_avons_choisi_pennylane_parce_que_la`)}),(0,N.jsx)(`div`,{className:`mt-10 grid gap-6 md:grid-cols-3`,children:[[`700 000+`,E(e.locale,`proofOrganisations`),E(e.locale,`proofInvoicing`)],[`ISO 27001`,E(e.locale,`proofCertified`),E(e.locale,`proofInfrastructure`)],[`DGFiP`,E(e.locale,`proofRegistered`),E(e.locale,`proofCompliance`)]].map(([e,t,n])=>(0,N.jsxs)(`article`,{className:`rounded-2xl bg-background p-7`,children:[(0,N.jsx)(`p`,{className:`font-display text-4xl`,children:e}),(0,N.jsx)(`h3`,{className:`mt-4 font-medium`,children:t}),(0,N.jsx)(`p`,{className:`mt-3 text-sm`,children:n})]},e))})]})}),(0,N.jsx)(oE,{title:E(e.locale,`components_invoicing_invoicing_page_foire_aux_questions`),items:t.faq}),(0,N.jsx)(sE,{data:e})]})}function uE({text:e}){let t=0;return(0,N.jsx)(`h1`,{className:`hero-title whitespace-pre-line typewriter-title`,"aria-label":e,children:(0,N.jsx)(`span`,{"aria-hidden":`true`,children:e.split(/(\s+)/).map((e,n)=>{if(/\s/.test(e))return e;let r=/^(sécurisez|simplifiez|secure|simplify)$/i.test(e),i=.45+(t+e.length)*.055;return(0,N.jsx)(`span`,{className:`typed-word${r?` hero-highlight`:``}`,style:{"--highlight-delay":`${i}s`},children:Array.from(e).map(e=>{let n=t++;return(0,N.jsx)(`span`,{className:`typed-letter`,style:{"--letter-delay":`${.4+n*.055}s`},children:e},n)})},n)})})})}function dE({data:e}){return(0,N.jsxs)(`div`,{className:`phone-device expense-phone screenshot-phone`,role:`img`,"aria-label":e.phone.title,children:[(0,N.jsx)(`span`,{className:`phone-side-button phone-volume`,"aria-hidden":`true`}),(0,N.jsx)(`span`,{className:`phone-side-button phone-power`,"aria-hidden":`true`}),(0,N.jsx)(`div`,{className:`phone-screen`,"aria-hidden":`true`,children:(0,N.jsx)(`img`,{className:`phone-screen-capture`,src:`/images/phone-expenses-screen.png`,alt:``,width:596,height:1236,decoding:`async`,draggable:!1})})]})}function fE({data:e}){return(0,N.jsxs)(`section`,{className:`home-hero`,children:[(0,N.jsxs)(`div`,{className:`container-page relative h-full`,children:[(0,N.jsxs)(K,{className:`hero-copy`,children:[(0,N.jsx)(uE,{text:e.page.home.title}),(0,N.jsx)(`p`,{className:`mt-6 max-w-xl text-xl leading-snug`,children:e.page.home.description}),(0,N.jsx)(B,{asChild:!0,size:`lg`,className:`mt-10`,children:(0,N.jsx)(S,{to:c(`/tarifs`,e.locale),children:e.t.start})})]}),(0,N.jsx)(`div`,{className:`hero-app`,children:(0,N.jsx)(K,{delay:.1,className:`hero-dashboard`,children:(0,N.jsx)(`div`,{className:`hero-dashboard-frame`,children:(0,N.jsx)(`img`,{className:`hero-dashboard-image`,src:`/images/dashboard-home.png`,width:`2700`,height:`1686`,fetchPriority:`high`,alt:e.locale===`fr`?E(`fr`,`home_home_hero_theoasso_dashboard_cash_flow_memberships_income_and`):E(`en`,`home_home_hero_theoasso_dashboard_cash_flow_memberships_income_and`)})})})}),(0,N.jsx)(`div`,{className:`hero-phone`,children:(0,N.jsx)(K,{delay:.2,children:(0,N.jsx)(dE,{data:e})})})]}),(0,N.jsx)(`img`,{className:`hero-shape hero-shape-one`,src:`/images/hero-circle-orange.svg`,alt:``,width:`112`,height:`112`}),(0,N.jsx)(`img`,{className:`hero-shape hero-shape-two`,src:`/images/figma/group.svg`,alt:``,width:`224`,height:`224`})]})}function pE({root:e,target:t}){let[n,r]=(0,P.useState)(``),i=(0,P.useId)().replaceAll(`:`,``),a=Oe(),o=(0,P.useRef)(0);return(0,P.useEffect)(()=>{if(!t||!e.current){r(``);return}let n=()=>{let n=e.current,i=n?.querySelector(`.feature-emblem`);if(!n||!i||!t.isConnected){r(``);return}let a=n.getBoundingClientRect(),o=i.getBoundingClientRect(),s=t.getBoundingClientRect(),c=s.x<o.x,l=(c?o.left+o.width*.25:o.right-o.width*.25)-a.left,u=o.top+o.height/2-a.top,d=(c?s.right+10:s.left-10)-a.left,f=s.top+s.height/2-a.top;r(`M ${l} ${u} C ${l+(c?-65:65)} ${u}, ${d+(c?65:-65)} ${f}, ${d} ${f}`)},i=performance.now(),a=()=>{n(),performance.now()-i<650&&(o.current=requestAnimationFrame(a))};a();let s=new ResizeObserver(n);return s.observe(e.current),s.observe(t),()=>{s.disconnect(),cancelAnimationFrame(o.current)}},[e,t]),(0,N.jsxs)(`svg`,{className:`feature-arrow`,"data-side":t?.closest(`.feature-list.right`)?`accounting`:`management`,"aria-hidden":`true`,children:[(0,N.jsx)(`defs`,{children:(0,N.jsx)(`mask`,{id:`${i}-draw`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`100%`,height:`100%`,children:(0,N.jsx)(La.path,{d:n,fill:`none`,stroke:`white`,strokeWidth:`16`,initial:!a&&{pathLength:0},animate:{pathLength:1},transition:{duration:.45,ease:`easeOut`}},t?.textContent)})}),n&&(0,N.jsx)(La.path,{d:n,mask:`url(#${i}-draw)`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.3`,initial:!a&&{opacity:0}
98,animate:{opacity:.6},transition:{duration:.35}},t?.textContent)]})}function mE({items:e,side:t,onTarget:n}){let[r,i]=(0,P.useState)(null);return(0,N.jsx)(`div`,{className:`feature-list ${t}`,children:e.map(e=>(0,N.jsxs)(`div`,{onPointerEnter:t=>{t.pointerType===`mouse`&&(i(e.id),n(t.currentTarget.querySelector(`button`)))},onPointerLeave:e=>{e.pointerType===`mouse`&&(i(null),n(null))},children:[(0,N.jsx)(`button`,{type:`button`,className:r===e.id?`active`:``,"aria-expanded":r===e.id,"aria-controls":`feature-${t}-${e.id}`,onFocus:t=>{t.currentTarget.matches(`:focus-visible`)&&(i(e.id),n(t.currentTarget))},onBlur:()=>{i(null),n(null)},onClick:t=>{n(t.currentTarget),i(window.matchMedia(`(hover: hover)`).matches?e.id:r===e.id?null:e.id)},children:(0,N.jsx)(`span`,{className:`feature-label`,children:e.title})}),(0,N.jsx)(Gr,{initial:!1,children:r===e.id&&(0,N.jsx)(La.div,{id:`feature-${t}-${e.id}`,initial:{height:0,opacity:0},animate:{height:`auto`,opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:`overflow-hidden`,children:(0,N.jsx)(`p`,{className:`pb-4 pt-2 text-sm leading-relaxed text-muted-foreground`,children:e.description})})})]},e.id))})}function hE({data:e}){let t=(0,P.useRef)(null),[n,r]=(0,P.useState)(null),i=Mo(t,{amount:.3}),[a,o]=(0,P.useState)(0);return(0,P.useEffect)(()=>{i&&o(e=>e+1)},[i]),(0,N.jsxs)(`section`,{className:`feature-section`,children:[(0,N.jsx)(`div`,{className:`feature-background feature-background-left`,"aria-hidden":`true`}),(0,N.jsx)(`div`,{className:`feature-background feature-background-right`,"aria-hidden":`true`}),(0,N.jsxs)(K,{className:`feature-layout`,containerRef:t,children:[(0,N.jsx)(mE,{onTarget:r,side:`left`,items:e.features.management}),(0,N.jsx)(`button`,{type:`button`,className:`feature-emblem feature-logo-button`,"aria-label":e.locale===`fr`?E(`fr`,`home_features_section_replay_the_logo_animation`):E(`en`,`home_features_section_replay_the_logo_animation`),onPointerEnter:e=>{e.pointerType===`mouse`&&o(e=>e+1)},onFocus:()=>o(e=>e+1),onClick:()=>o(e=>e+1),children:(0,N.jsx)(`div`,{className:`feature-concentric-logo`,children:(0,N.jsx)(_c,{active:i,run:a})})}),(0,N.jsx)(mE,{onTarget:r,side:`right`,items:e.features.accounting}),(0,N.jsx)(`p`,{className:`feature-category management`,children:e.t.management}),(0,N.jsx)(`p`,{className:`feature-category accounting`,children:e.t.accounting}),(0,N.jsx)(pE,{root:t,target:n})]})]})}function gE({data:e}){let[t,n]=(0,P.useState)(!1),[r,i]=(0,P.useState)(!1),a=(0,P.useRef)(null),o=(0,P.useRef)(null),s=(0,P.useRef)(null),c=(0,P.useRef)(!1),l=(0,P.useRef)(null),u=(0,P.useRef)(0),d=(0,P.useRef)(0);function f(){l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{c.current=!1,l.current=null},1200)}let p=(0,P.useRef)(null),m=Mo(a,{amount:.2}),h=Oe(),g=e.locale===`fr`,_=e.partnerLogos;function v(e){let t=o.current?.offsetWidth??0;if(a.current&&t){let n=(e%t+t)%t;return u.current=n,a.current.scrollLeft=n,d.current=a.current.scrollLeft,n}return e}function y(e){n(!0),p.current?.stop();let t=a.current?.scrollLeft??0,r=o.current?.firstElementChild?.getBoundingClientRect().width??200;p.current=He(t,t+e*(r+16),{duration:h?0:.35,ease:`easeOut`,onUpdate:v})}return wo((e,n)=>{let i=a.current?.scrollLeft??0;i!==d.current&&(u.current=i),m&&!t&&!r&&!h&&!c.current&&s.current===null&&(u.current=v(u.current+Math.min(n,50)*.04))}),(0,P.useEffect)(()=>{let e=a.current,t=t=>{let r=t.deltaX||(t.shiftKey?t.deltaY:0);r&&(t.preventDefault(),n(!0),p.current?.stop(),v((e?.scrollLeft??0)+r))};return e?.addEventListener(`wheel`,t,{passive:!1}),()=>{e?.removeEventListener(`wheel`,t),p.current?.stop(),l.current&&clearTimeout(l.current)}},[]),(0,N.jsxs)(`div`,{className:`relative mt-12 interactive-logo-carousel`,children:[(0,N.jsx)(`div`,{ref:a,className:`logo-carousel`,tabIndex:0,role:`region`,"aria-label":E(g?`fr`:`en`,`logo_carousel_text_8`),onPointerEnter:e=>{e.pointerType===`mouse`&&i(!0)},onPointerLeave:e=>{e.pointerType===`mouse`&&i(!1)},onFocus:e=>{e.currentTarget.matches(`:focus-visible`)&&n(!0)},onKeyDown:e=>{(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(e.preventDefault(),y(e.key===`ArrowLeft`?-1:1))},onPointerDown:e=>{e.pointerType===`mouse`&&e.button===0&&(n(!0),p.current?.stop(),s.current=e.clientX,e.currentTarget.setPointerCapture(e.pointerId))},onPointerMove:e=>{s.current!==null&&(v((a.current?.scrollLeft??0)+s.current-e.clientX),s.current=e.clientX)},onPointerUp:()=>{s.current=null},onPointerCancel:()=>{s.current=null},onLostPointerCapture:()=>{s.current=null},onTouchStart:()=>{c.current=!0,p.current?.stop(),l.current&&clearTimeout(l.current)},onTouchEnd:f,onTouchCancel:f,onScroll:()=>{c.current&&f();let e=o.current?.offsetWidth??0;a.current&&e&&a.current.scrollLeft>=e&&v(a.current.scrollLeft)},children:(0,N.jsx)(`div`,{className:`logo-track`,children:[0,1].map(e=>(0,N.jsx)(`div`,{ref:e===0?o:void 0,className:`logo-group`,"aria-hidden":e===1,children:_.map(e=>(0,N.jsx)(`div`,{className:`partner-carousel-logo`,role:`img`,"aria-label":e.name,children:(0,N.jsx)(`svg`,{viewB
98ox:e.viewBox,"aria-hidden":`true`,focusable:`false`,className:`partner-carousel-art${e.solid?` partner-carousel-art-solid`:``}${e.inverse?` partner-carousel-art-inverse`:``}`,style:{width:e.displayWidth,height:e.displayHeight??64},height:`64`,preserveAspectRatio:`xMidYMid meet`,children:(0,N.jsx)(`image`,{href:e.src,width:e.width,height:e.height})})},e.name))},e))})}),(0,N.jsxs)(`div`,{className:`logo-controls`,children:[(0,N.jsx)(`button`,{type:`button`,onClick:()=>y(-1),"aria-label":E(g?`fr`:`en`,`logo_carousel_text_9`),children:`â`}),(0,N.jsx)(`button`,{type:`button`,onClick:()=>{p.current?.stop(),n(e=>!e)},"aria-pressed":t,"aria-label":g?t?E(`fr`,`logoResume`):E(`fr`,`logoPause`):t?`Resume logo carousel`:`Pause logo carousel`,children:t?`â·`:`â
¡`}),(0,N.jsx)(`button`,{type:`button`,onClick:()=>y(1),"aria-label":E(g?`fr`:`en`,`logo_carousel_text_10`),children:`â`})]})]})}function _E({data:e}){return(0,N.jsx)(`section`,{className:`section-space border-b border-border`,children:(0,N.jsxs)(K,{className:`container-page`,children:[(0,N.jsxs)(`div`,{className:`flex flex-col justify-between gap-10 md:flex-row`,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`p`,{className:`stat-number`,children:`+3000`}),(0,N.jsx)(`p`,{className:`mt-2`,children:e.t.trusted})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`p`,{className:`stat-number`,children:e.t.yearsValue}),(0,N.jsx)(`p`,{className:`mt-2`,children:e.t.years})]})]}),(0,N.jsx)(gE,{data:e})]})})}function vE({className:e}){return(0,N.jsxs)(`div`,{className:ac(`brand-person`,e),"aria-hidden":`true`,children:[(0,N.jsx)(`span`,{className:`person-head`}),(0,N.jsx)(`span`,{className:`person-body person-left`}),(0,N.jsx)(`span`,{className:`person-body person-right`})]})}function yE({data:e}){return(0,N.jsx)(`section`,{className:`section-space`,children:(0,N.jsxs)(K,{className:`container-page`,children:[(0,N.jsx)(aE,{title:e.t.why}),(0,N.jsx)(`div`,{className:`why-grid`,children:e.page.home.reasons.map((t,n)=>(0,N.jsxs)(`article`,{className:`why-card why-${n}`,tabIndex:0,children:[(0,N.jsxs)(`div`,{className:`why-art`,children:[(0,N.jsx)(`span`,{className:`why-arc`}),(0,N.jsxs)(`h3`,{className:`why-art-title`,children:[(0,N.jsx)(`span`,{children:e.page.home.reasonTitles[n].split(` `).slice(0,-1).join(` `)}),` `,(0,N.jsx)(`em`,{children:e.page.home.reasonTitles[n].split(` `).at(-1)})]}),(0,N.jsx)(vE,{className:`person-main`}),n!==2&&(0,N.jsx)(vE,{className:`person-small`})]}),(0,N.jsx)(`p`,{children:t})]},t))})]})})}var bE={hidden:{opacity:0,y:18},visible:{opacity:1,y:0,transition:{duration:.7,ease:[.22,1,.36,1]}}};function xE({data:e,active:t}){let n=Oe(),[r,i]=(0,P.useState)(!1),[a,o]=(0,P.useState)(0),[s,c]=(0,P.useState)(!1),l=r||s,u=(0,P.useId)().replaceAll(`:`,``),d=e.locale===`fr`,f=(0,P.useRef)(null);(0,P.useEffect)(()=>{if(!t){c(!1),i(!1);return}o(e=>e+1);let e=window.setTimeout(()=>c(!0),2e3);return()=>window.clearTimeout(e)},[t]);let p=(0,P.useRef)(null),[m,h]=(0,P.useState)({width:500,height:420,paths:[]});(0,P.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{let t=e.querySelector(`.connection-hello`),n=e.querySelector(`.connection-penny`),r=e.querySelector(`.connection-hub`),i=e.querySelector(`.connection-api`);if(!t||!n||!r||!i)return;let a=r.offsetLeft+r.offsetWidth/2,o=r.offsetTop,s=[t,n].map(e=>{let t=e.offsetLeft+e.offsetWidth/2,n=e.offsetTop+e.offsetHeight,r=(n+o)/2;return`M${t} ${n} C${t} ${r} ${a} ${r} ${a} ${o}`});s.push(`M${a} ${o+r.offsetHeight} L${a} ${i.offsetTop}`),h({width:e.clientWidth,height:e.clientHeight,paths:s})},n=new ResizeObserver(t);return n.observe(e),e.querySelectorAll(`.connection-node`).forEach(e=>n.observe(e)),t(),()=>n.disconnect()},[]);let{paths:g}=m;return(0,N.jsx)(La.div,{ref:f,className:`connection-scene`,initial:!n&&`hidden`,whileInView:`visible`,viewport:{once:!0,amount:.3},variants:{visible:{transition:{staggerChildren:n?0:.13,delayChildren:n?0:.15}}},children:(0,N.jsxs)(`div`,{ref:p,className:`connection-map`,children:[(0,N.jsx)(`svg`,{viewBox:`0 0 ${m.width} ${m.height}`,preserveAspectRatio:`none`,className:`connection-lines`,"aria-hidden":`true`,children:g.map((e,r)=>(0,N.jsxs)(`g`,{children:[(0,N.jsx)(`path`,{d:e,className:`connection-line-base`}),(0,N.jsx)(`path`,{d:e,className:`connection-flow`}),t&&!n&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`circle`,{r:`3`,className:`connection-particle`,children:(0,N.jsx)(`animateMotion`,{dur:`4s`,begin:`${-r-1}s`,repeatCount:`indefinite`,path:e})}),(0,N.jsx)(`circle`,{r:`3`,className:`connection-particle connection-particle-return`,children:(0,N.jsx)(`animateMotion`,{dur:`4s`,begin:`${-r-1}s`,repeatCount:`indefinite`,path:e,keyPoints:`1;0`,keyTimes:`0;1`,calcMode:`linear`})})]})]},r))}),(0,N.jsxs)(La.div,{className:`connection-node connection-hello`,variants:bE,children:[(0,N.jsx)(rT,{name:`helloasso`}),(0,N.jsx)(`small`,{children:E(d?`fr`:`en`,`mission_flow_text_0`)})]}),(0,N.jsxs)(La.div,{className:`connection-node connection-penny`,variants:bE,children:[(0,N.jsx)(rT,{name:`pennylane`}),(0,N.jsx)(`small`,{children:E(d?`fr`:`en`,`mission_flow_text_1`)})]}),(0,N.jsxs)(La.div,{className:`connection-hub`,"data-overview-open":l,onPointerEnter:e=>{e.pointerType===`mouse`&&i(!0)},onPointerLeave:e=>{e.pointerType===`mouse`&&i(!1)},onFocus:()=>i(!0),onBlur:()=>i(!1),onKeyDown:e=>{e.key===`Escape`&&(i(!1),c(!1))},variants:{hidden:{opacity:0}
98,visible:{opacity:1,transition:{duration:.7,delay:.35}}},children:[(0,N.jsx)(`span`,{className:`connection-halo`,"aria-hidden":`true`}),(0,N.jsx)(`button`,{type:`button`,className:`connection-hub-mark`,onPointerEnter:e=>{e.pointerType===`mouse`&&o(e=>e+1)},"aria-label":E(d?`fr`:`en`,`mission_flow_text_2`),"aria-expanded":l,"aria-controls":`${u}-overview`,onClick:()=>i(!0),children:(0,N.jsx)(_c,{className:`animated-mission-logo`,active:t,run:a})}),(0,N.jsxs)(`div`,{id:`${u}-overview`,className:`connection-records`,"aria-hidden":!l,children:[(0,N.jsx)(`span`,{className:`connection-node-title`,children:E(d?`fr`:`en`,`mission_flow_text_3`)}),(0,N.jsx)(`small`,{children:E(d?`fr`:`en`,`mission_flow_text_4`)})]})]}),(0,N.jsxs)(La.div,{className:`connection-node connection-api`,variants:bE,children:[(0,N.jsx)(`span`,{className:`connection-node-title`,children:E(e.locale,`components_home_mission_flow_api`)}),(0,N.jsx)(`small`,{children:E(d?`fr`:`en`,`mission_flow_text_5`)})]})]})})}function SE({data:e}){let t=(0,P.useRef)(null),n=Mo(t,{amount:.3});return(0,N.jsx)(`div`,{ref:t,className:`mission-connections${n?` is-visible`:``}`,children:(0,N.jsx)(xE,{data:e,active:n})})}function CE({data:e}){let t=e.locale===`fr`?E(`fr`,`home_mission_section_simplify_and_secure_your_mission`):E(`en`,`home_mission_section_simplify_and_secure_your_mission`),[n,r]=e.page.home.missionEnd.split(t);return(0,N.jsx)(`section`,{className:`mission-section section-space`,children:(0,N.jsxs)(K,{className:`mission-layout`,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsxs)(`h2`,{className:`mission-text`,children:[e.page.home.mission.split(e.locale===`fr`?E(`fr`,`home_mission_section_bring_together`):E(`en`,`home_mission_section_bring_together`))[0],(0,N.jsx)(`mark`,{children:e.locale===`fr`?E(`fr`,`home_mission_section_bring_together_2`):E(`en`,`home_mission_section_bring_together_2`)}),e.locale===`fr`?(0,N.jsxs)(N.Fragment,{children:[` `,E(e.locale,`components_home_mission_section_dans_un_meme_environnement_toutes_les_fonctionnalites`),` `,(0,N.jsx)(`mark`,{children:E(e.locale,`components_home_mission_section_fonctionnement_de_votre_association`)})]}):e.page.home.mission.split(E(`en`,`home_mission_section_bring_together_3`))[1]]}),(0,N.jsxs)(`p`,{className:`mission-text mission-end`,children:[n,(0,N.jsx)(`mark`,{children:t}),r]})]}),(0,N.jsx)(SE,{data:e})]})})}function wE(){return(0,N.jsx)(`div`,{className:`brand-pattern`,"aria-hidden":`true`,children:[[14,10],[36,19],[47,9],[69,29],[98,8],[6,32],[60,47],[27,60],[36,63],[67,55],[73,60],[90,56],[12,80],[40,70],[66,92],[82,82],[97,65]].map(([e,t],n)=>(0,N.jsx)(`img`,{src:`/images/logomark.svg`,alt:``,width:`42`,height:`32`,style:{left:`${e}%`,top:`${t}%`,transform:`rotate(${n%2?12:-8}deg)`}},n))})}function TE({index:e}){let t=[-13,241,495,749,1003,1257][e];return(0,N.jsx)(`svg`,{className:`sector-art`,viewBox:`${t} 17 48 48`,"aria-hidden":`true`,children:(0,N.jsx)(`use`,{href:`/images/icons/audience.svg#icon`})})}function EE({data:e}){return(0,N.jsxs)(`section`,{className:`audience-section section-space`,children:[(0,N.jsx)(wE,{}),(0,N.jsxs)(K,{className:`container-page`,children:[(0,N.jsx)(aE,{title:e.t.forWho}),(0,N.jsx)(`div`,{className:`audience-description`,children:e.page.home.audience.map(e=>(0,N.jsx)(`p`,{children:e},e))})]}),(0,N.jsx)(`div`,{className:`sector-rail`,children:(0,N.jsx)(`div`,{className:`sector-track`,children:[0,1].map(t=>(0,N.jsx)(`div`,{className:`sector-loop-group`,"aria-hidden":t===1,children:e.page.home.sectors.map(e=>(0,N.jsxs)(`div`,{className:`sector-card`,children:[(0,N.jsx)(TE,{index:e.iconIndex}),(0,N.jsx)(`span`,{children:e.label})]},e.label))},t))})})]})}function DE({data:e}){return(0,N.jsxs)(`section`,{className:`cta-section section-space`,children:[(0,N.jsxs)(K,{className:`container-page relative z-10 text-center`,children:[(0,N.jsx)(`h2`,{className:`section-title`,children:e.locale===`fr`?(0,N.jsxs)(N.Fragment,{children:[E(e.locale,`components_shared_cta_section_securisez`),` `,(0,N.jsx)(`mark`,{className:`highlight-green`,children:E(e.locale,`components_shared_cta_section_les_finances`)}),` `,E(e.locale,`components_shared_cta_section_de_votre_association`)]}):(0,N.jsxs)(N.Fragment,{children:[E(e.locale,`components_shared_cta_section_secure`),` `,(0,N.jsx)(`mark`,{className:`highlight-green`,children:E(e.locale,`components_shared_cta_section_your_associations_finances`)})]})}),(0,N.jsx)(B,{asChild:!0,size:`lg`,className:`mt-10`,children:(0,N.jsx)(S,{to:c(`/tarifs`,e.locale),children:e.t.start})})]}),(0,N.jsx)(`img`,{src:`/images/figma/group.svg`,alt:``,className:`cta-decoration`,width:`300`,height:`300`})]})}function OE({data:e}){return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(fE,{data:e}),(0,N.jsx)(hE,{data:e}),(0,N.jsx)(_E,{data:e}),(0,N.jsx)(yE,{data:e}),(0,N.jsx)(CE,{data:e}),(0,N.jsx)(EE,{data:e}),(0,N.jsx)(DE,{data:e})]})}function kE({plan:e,href:t,billing:n,locale:r}){let i=e.featured||Date.now()>=Date.parse(`2026-12-31T23:00:00.000Z`),a=n===`yearly`?e.yearlyPrice:e.monthlyPrice;return(0,N.jsxs)(`article`,{className:ac(`pricing-card`,e.featured?`featured`:`pricing-card-muted`),children:[e.promotion&&(0,N.jsx)(`span`,{className:`pricing-badge`,children:E(r===`fr`?`fr`:`en`,`pricing_pricing_card_launch_offer_50`)}),(0,N.jsx)(`h2`,{className:`font-display text-3xl tracking-tight`,children:E(r===`fr`?`fr`:`en`,`pricing_pricing_card_value_plan`,{v0:e.name})}),(0,N.jsx)(`p`,{className:`mt-2 text-sm`,children:e.description}),(0,N.jsxs)(`p`,{className:`mt-7 font-display text-4xl tracking-tight`,children:[e.promotion&&e.regularMonthlyPrice&&(0,N.jsx)(`span`,{className:`mr-3 font-sans text-lg text-muted-foreground line-through`,children:e.regularMonthlyPrice}),e.promotion?(0,N.jsx)(y_,{text:a,phrases:[a],className:`highlight-orange`}):a,(0,N.jsxs)(`span`,{className:`ml-2 font-sans text-sm`,children:[`/`,` `,n===`yearly`?E(r===`fr`?`fr`:`en`,`pricing_pricing_card_year`):E(r===`fr`?`fr`:`en`,`pricing_pricing_card_month`)]})]}),(0,N.jsxs)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:[e.yearlyPrice,` `,E(r,`pricing_pricing_card_incl_tax_year`)]}),e.promotion&&(0,N.jsx)(`p`,{className:`pricing-savings mt-3 text-sm font-medium`,children:(0,N.jsx)(y_,{text:E(r===`fr`?`fr`:`en`,`pricing_pricing_card_value_saved_over_12_months`,{v0:e.savings}),phrases:[e.savings||``]})}),(0,N.jsx)(`p`,{className:`mt-5 text-sm font-medium`,children:e.users}),i?(0,N.jsx)(B,{asChild:!0,className:`my-7 w-full px-3 text-xs`,children:(0,N.jsx)(`a`,{href:t,children:e.cta})}):(0,N.jsx)(B,{disabled:!0,className:`my-7 w-full px-3 text-xs`,variant:`outline`,children:E(r,`offerUnavailable`)}),(0,N.jsxs)(`div`,{className:`border-t border-border pt-6`,children:[e.introduction&&(0,N.jsx)(`p`,{className:`mb-4 text-sm`,children:e.introduction}),(0,N.jsx)(`ul`,{className:`space-y-3 text-sm`,children:e.features.map(e=>(0,N.jsxs)(`li`,{className:`flex gap-3`,children:[(0,N.jsx)(`span`,{"aria-hidden":!0,
98children:`â¢`}),e]},e))})]}),!i&&(0,N.jsx)(`p`,{className:`pricing-availability`,children:(0,N.jsx)(y_,{text:E(r===`fr`?`fr`:`en`,`pricing_pricing_card_available_in_january_2027`),phrases:[E(r===`fr`?`fr`:`en`,`pricing_pricing_card_available_in_january_2027_2`)],className:`highlight-orange`})}),e.promotion&&(0,N.jsx)(`p`,{className:`pricing-offer-deadline`,children:E(r===`fr`?`fr`:`en`,`pricing_pricing_card_offer_valid_until_the_end_of_2026`)})]})}function AE({data:e,band:t}){let n=`monthly`,r=e.pricing[t];return(0,N.jsx)(`section`,{id:`offres`,className:`pb-20`,children:(0,N.jsxs)(`div`,{className:`container-page`,children:[(0,N.jsx)(`aside`,{className:`pricing-revenue-note`,children:(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`h2`,{children:e.locale===`fr`?E(`fr`,`pricing_pricing_offers_which_income_should_you_count`):E(`en`,`pricing_pricing_offers_which_income_should_you_count`)}),(0,N.jsx)(`p`,{children:r.description})]})}),(0,N.jsxs)(`div`,{className:`mb-12 mt-9 flex flex-wrap items-center justify-center gap-5`,children:[(0,N.jsx)(`p`,{className:`text-sm`,children:e.locale===`fr`?E(`fr`,`pricing_pricing_offers_monthly_prices_incl_tax_annual_payment`):E(`en`,`pricing_pricing_offers_monthly_prices_incl_tax_annual_payment`)}),(0,N.jsx)(B,{asChild:!0,variant:`outline`,size:`sm`,children:(0,N.jsxs)(S,{to:c(`/migration`,e.locale),children:[e.t.calebButton,` â`]})})]}),(0,N.jsx)(`div`,{className:`grid gap-6 md:grid-cols-3`,"data-billing":n,children:r.plans.map((r,i)=>(0,N.jsx)(kE,{plan:r,billing:n,locale:e.locale,href:L_(`${A_[i]}:${O_.find(e=>e.slug===t).code}`,e.locale)},A_[i]))}),(0,N.jsx)(`p`,{className:`pricing-start-notice`,children:E(e.locale,`pricing_subscription_start_notice`)})]})})}function jE({data:e,band:t}){let n=e.pricing[t].plans;return(0,N.jsx)(`section`,{className:`section-space`,children:(0,N.jsxs)(K,{className:`container-page`,children:[(0,N.jsx)(aE,{title:e.t.compare,center:!0}),(0,N.jsxs)(`div`,{className:`comparison-header`,children:[(0,N.jsx)(`span`,{}),(0,N.jsx)(`div`,{children:n.map((t,n)=>(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`h3`,{className:`font-display text-xl`,children:e.locale===`fr`?E(`fr`,`pricing_pricing_comparison_value_plan`,{v0:t.name}):E(`en`,`pricing_pricing_comparison_value_plan`,{v0:t.name})}),(0,N.jsxs)(`p`,{className:`mt-1 text-sm`,children:[t.yearlyPrice,` /`,` `,e.locale===`fr`?E(`fr`,`pricing_pricing_comparison_year_incl_tax`):E(`en`,`pricing_pricing_comparison_year_incl_tax`)]}),(0,N.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:t.users})]},n))})]}),e.comparison.map((t,n)=>(0,N.jsxs)(`details`,{className:`comparison-group`,open:n===0,children:[(0,N.jsxs)(`summary`,{children:[t.title,(0,N.jsx)(`span`,{"aria-hidden":!0,children:`â`})]}),(0,N.jsx)(`div`,{className:`overflow-x-auto`,children:(0,N.jsx)(`table`,{className:`comparison-table`,children:(0,N.jsx)(`tbody`,{children:t.rows.map(t=>(0,N.jsxs)(`tr`,{children:[(0,N.jsx)(`th`,{scope:`row`,children:t.label}),t.values.map((t,n)=>(0,N.jsx)(`td`,{children:(0,N.jsx)(`span`,{"aria-label":t===`â`?e.locale===`fr`?E(`fr`,`pricing_pricing_comparison_included`):E(`en`,`pricing_pricing_comparison_included`):t===`â`&&e.locale===`fr`?E(`fr`,`pricing_pricing_comparison_non_inclus`):t===E(`en`,`pricing_pricing_comparison_text`)?E(`en`,`pricing_pricing_comparison_not_included`):void 0,children:t})},n))]},t.label))})})})]},t.title)),(0,N.jsx)(`div`,{className:`mt-12 text-center`,children:(0,N.jsx)(B,{asChild:!0,children:(0,N.jsx)(`a`,{href:`#offres`,children:e.t.start})})})]})})}function ME({data:e}){let t=w(),n=e.segments[1]||`moins-de-40k`,r=e.pricing[n].heading,i=e.locale===`fr`?E(`fr`,`pricing_pricing_page_discover_the_theoasso_offer`):E(`en`,`pricing_pricing_page_discover_the_theoasso_offer`);return(0,N.jsxs)(`div`,{style:{overflowAnchor:`none`},children:[(0,N.jsx)(iT,{className:`pricing-hero`,title:(0,N.jsx)(y_,{text:i,phrases:[`Theoasso`]}),description:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`span`,{className:`hidden md:inline`,children:(0,N.jsx)(y_,{text:r,phrases:[r],className:`highlight-orange`})}),(0,N.jsxs)(`label`,{className:`block md:hidden`,children:[(0,N.jsx)(`span`,{className:`sr-only`,children:E(e.locale,`checkout_checkout_page_annual_income`)}),(0,N.jsx)(`select`,{className:`checkout-select`,style:{fontSize:`1rem`},value:n,onChange:n=>{t({to:c(`/tarifs/${n.target.value}`,e.locale),resetScroll:!1})},children:e.bands.map(e=>(0,N.jsx)(`option`,{value:e.slug,children:e.label},e.slug))})]}),(0,N.jsx)(`span`,{className:`pricing-payment-caption`,children:e.locale===`fr`?E(`fr`,`pricing_pricing_page_all_plans_include_vat_and_are_payable`):E(`en`,`pricing_pricing_page_all_plans_include_vat_and_are_payable`)})]})}),(0,N.jsx)(AE,{data:e,band:n}),(0,N.jsx)(jE,{data:e,band:n}),(0,N.jsxs)(`section`,{className:`section-space container-page`,children:[(0,N.jsx)(aE,{title:e.t.trustTitle,center:!0}),(0,N.jsx)(gE,{data:e})]}),(0,N.jsx)(`div`,{lang:`fr`,children:(0,N.jsx)(oE,{title:e.t.pricingFaq,items:e.faq[n]})})]})}function NE({id:e}){let t=Oe();return(0,N.jsx)(La.span,{"aria-hidden":`true`,className:`choice-highlight`,layoutId:e,transition:t?{duration:0}:{type:`spring`,stiffness:350,damping:32}})}function PE({images:e,locale:t}){let[n,r]=(0,P.useState)(0),[i,a]=(0,P.useState)(!1),o=(0,P.useId)(),s=Oe(),c={duration:s?0:.24,ease:`easeOut`},l=e[n],u=E(t===`fr`?`fr`:`en`,`product_product_screenshots_enlarge_screenshot`);return(0,N.jsxs)(`div`,{className:`module-preview product-screenshots`,children:[e.length>1&&(0,N.jsx)(`div`,{className:`screenshot-choices`,role:`group`,"aria-label":E(t===`fr`?`fr`:`en`,`product_product_screenshots_budget_views`),children:e.map((e,t)=>(0,N.jsxs)(`button`,{type:`button`,"aria-pressed":t===n,onClick:()=>r(t),children:[n===t&&(0,N.jsx)(NE,{id:o}),(0,N.jsx)(`span`,{className:`choice-label`,children:e.alt})]},e.src))}),(0,N.jsxs)(`div`,{className:`screenshot-frame`,children:[(0,N.jsx)(`span`,{className:`screenshot-enlarge product-design-badge`,children:t===`fr`?`Design en cours`:`Design in progress`}),(0,N.jsxs)(Hg,{open:i,onOpenChange:a,children:[(0,N.jsx)(Wg,{asChild:!0,children:(0,N.jsxs)(La.button,{layout:!0,transition:c,type:`button`,className:`screenshot-trigger`,"aria-label":`${u} : ${l.alt}`,children:[(0,N.jsx)(Gr,{initial:!1,mode:`popLayout`,children:(0,N.jsx)(La.img,{initial:{opacity:0}
98,animate:{opacity:1},exit:{opacity:0},transition:c,src:l.src,alt:l.alt,width:l.width,height:l.height,loading:`lazy`,decoding:`async`},l.src)}),(0,N.jsxs)(`span`,{className:`screenshot-enlarge`,children:[(0,N.jsx)(`span`,{"aria-hidden":`true`,children:`â`}),` `,u]})]})}),(0,N.jsx)(Jg,{forceMount:!0,children:(0,N.jsxs)(Gr,{children:[i&&(0,N.jsx)(Xg,{forceMount:!0,asChild:!0,children:(0,N.jsx)(La.div,{className:`screenshot-overlay`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:c})},`overlay`),i&&(0,N.jsx)(e_,{forceMount:!0,asChild:!0,"aria-describedby":void 0,children:(0,N.jsxs)(La.div,{className:`screenshot-dialog`,style:{"--capture-ratio":l.width/l.height,"--capture-width":`${l.width}px`},initial:{opacity:0,scale:s?1:.96,y:s?0:14},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:s?1:.98,y:s?0:8},transition:c,children:[(0,N.jsxs)(`div`,{className:`screenshot-dialog-header`,children:[(0,N.jsx)(a_,{children:l.alt}),(0,N.jsx)(l_,{className:`screenshot-close`,"aria-label":E(t===`fr`?`fr`:`en`,`product_product_screenshots_close_screenshot`),children:E(`fr`,`components_product_product_screenshots_`)})]}),(0,N.jsx)(`div`,{className:`screenshot-dialog-body`,children:(0,N.jsx)(`img`,{src:l.src,alt:l.alt,width:l.width,height:l.height})})]})},`capture`)]})})]})]})]})}function FE({module:e,data:t,index:n}){return(0,N.jsxs)(`article`,{id:e.id,className:`product-module ${n%2?`reverse`:``}`,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`h3`,{className:`section-title`,children:e.title}),(0,N.jsx)(`div`,{className:`module-description`,children:e.description.map((e,t)=>(0,N.jsx)(`p`,{children:e},t))})]}),(0,N.jsx)(PE,{images:e.screenshots,locale:t.locale})]})}function IE({data:e}){let t=Ae({select:e=>e.location}),n=(0,P.useRef)(null),r=(0,P.useRef)(!1),i=(0,P.useRef)(0),a=(0,P.useId)(),[o,s]=(0,P.useState)(e.products[0].id);function c(){cancelAnimationFrame(i.current),r.current=!1;let e=window.innerHeight*.3,t=Array.from(n.current?.querySelectorAll(`[data-category]`)??[]).find(t=>{let n=t.getBoundingClientRect();return n.top<=e&&n.bottom>e});t&&s(t.dataset.category)}(0,P.useEffect)(()=>{let e=document.querySelector(`.site-header`),t=new ResizeObserver(()=>n.current?.style.setProperty(`--header-height`,`${e?.getBoundingClientRect().height??100}px`));e&&t.observe(e);let a=new IntersectionObserver(e=>{if(!r.current)for(let t of e)t.isIntersecting&&s(t.target.dataset.category)},{rootMargin:`-25% 0px -65% 0px`,threshold:0});n.current?.querySelectorAll(`[data-category]`).forEach(e=>a.observe(e));let o=()=>{r.current&&c()},l=e=>{[`ArrowUp`,`ArrowDown`,`PageUp`,`PageDown`,`Home`,`End`,` `].includes(e.key)&&o()};return window.addEventListener(`wheel`,o,{passive:!0}),window.addEventListener(`touchstart`,o,{passive:!0}),window.addEventListener(`keydown`,l),()=>{a.disconnect(),t.disconnect(),cancelAnimationFrame(i.current),window.removeEventListener(`wheel`,o),window.removeEventListener(`touchstart`,o),window.removeEventListener(`keydown`,l)}},[]);function l(e,t=!1){let a=n.current?.querySelector(`[id="${CSS.escape(e)}"]`);if(a){cancelAnimationFrame(i.current),r.current=!0;let e=document.querySelector(`.site-header`)?.getBoundingClientRect().height??0,o=n.current?.querySelector(`.product-categories`)?.getBoundingClientRect().height??0,s=a.matches(`.product-category`)?a.querySelector(`.product-category-heading`):a;window.scrollTo({top:window.scrollY+s.getBoundingClientRect().top-e-o-24,behavior:t||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches?`instant`:`smooth`});let l=window.scrollY,u=0,d=()=>{u=Math.abs(window.scrollY-l)<.5?u+1:0,l=window.scrollY,u>=6?c():i.current=requestAnimationFrame(d)};i.current=requestAnimationFrame(d)}a&&s(a.closest(`[data-category]`).dataset.category)}return(0,P.useEffect)(()=>{if(!t.hash)return;let e=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>l(t.hash,!0))});return()=>cancelAnimationFrame(e)},[t]),(0,N.jsxs)(`section`,{ref:n,className:`product-explorer`,children:[(0,N.jsx)(`nav`,{className:`product-categories`,"aria-label":e.t.product,children:e.products.map(e=>(0,N.jsxs)(`button`,{type:`button`,onClick:()=>l(e.id),"aria-pressed":o===e.id,children:[o===e.id&&(0,N.jsx)(NE,{id:a}),(0,N.jsx)(`span`,{className:`category-label`,children:e.title}),(0,N.jsx)(`span`,{className:`category-count`,children:e.modules.length})]},e.id))}),(0,N.jsx)(`div`,{className:`product-scroll`,children:e.products.map((t,n)=>(0,N.jsxs)(`div`,{id:t.id,"data-category":t.id,className:`product-category`,children:[(0,N.jsxs)(`header`,{className:`product-category-heading container-page`,children:[(0,N.jsx)(`span`,{className:`category-number`,children:String(n+1).padStart(2,`0`)}),(0,N.jsx)(`h2`,{children:t.title})]}),t.modules.map((t,n)=>(0,N.jsx)(FE,{module:t,data:e,index:n},t.id))]},t.id))})]})}function LE({data:e}){return(0,N.jsx)(`div`,{lang:`fr`,children:(0,N.jsx)(oE,{title:E(`fr`,`components_product_product_faq_section_questions_frequentes`),items:e.productFaq.general})})}function RE({accent:e=!1,title:t,description:n,label:r,href:i}){return(0,N.jsx)(`section`,{className:`container-page banner-cta-section`,children:(0,N.jsxs)(K,{className:`banner-cta ${e?`banner-cta-accent`:``}`,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`h2`,{children:t}),(0,N.jsx)(`p`,{children:n})]}),r&&i&&(0,N.jsx)(B,{asChild:!0,size:`lg`,children:(0,N.jsx)(`a`,{href:i,children:r})})]})})}function zE({data:e}){return(0,N.jsx)(`section`,{className:`feature-directory section-space`,children:(0,N.jsxs)(`div`,{className:`container-page`,children:[(0,N.jsx)(aE,{title:e.t.allFeatures,center:!0}),(0,N.jsx)(`div`,{className:`module-shortcuts`,children:e.products.map(t=>(0,N.jsxs)(`div`,{className:`module-shortcut-group`,children:[(0,N.jsx)(`h3`,{children:t.title}),t.modules.map(t=>(0,N.jsxs)(S,{to:c(`/produit`,e.locale),hash:t.id,hashScrollIntoView:!1,resetScroll:!1,className:`module-shortcut`,children:[(0,N.jsx)(`span`,{children:t.title}),(0,N.jsx)(`span`,{"aria-hidden":`true`,children:`â`})]},t.id))]},t.id))})]})})}function BE({data:e}){return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(iT,{className:`product-hero`,title:(0,N.jsx)(y_,{text:e.productPresentation.heroTitle,phrases:[e.locale===`fr`?E(`fr`,`product_product_page_your_finances`):E(`en`,`product_product_page_your_finances`)],className:`highlight-orange`}),description:e.productPresentation.heroDescription}),(0,N.jsx)(IE,{data:e}),(0,N.jsx)(`section`,{className:`container-page section-space`,"aria-label":e.t.trustTitle,children:(0,N.jsx)(gE,{data:e})}),(0,N.jsx)(LE,{data:e}),(0,N.jsx)(RE,{accent:!0,title:e.productPresentation.ctaTitle,de
98scription:e.productPresentation.ctaDescription,label:e.t.signup,href:c(`/tarifs`,e.locale)}),(0,N.jsx)(zE,{data:e})]})}function VE({data:e}){return(0,N.jsxs)(`section`,{className:`section-space container-page`,children:[(0,N.jsx)(aE,{title:e.t.teamTitle}),(0,N.jsxs)(`div`,{className:`team-grid`,children:[e.teams.map((e,t)=>(0,N.jsx)(K,{delay:t%4*.04,children:(0,N.jsxs)(`article`,{className:`team-card`,children:[(0,N.jsx)(`div`,{className:`team-member-heading`,children:(0,N.jsx)(`h3`,{children:e.name})}),(0,N.jsx)(`div`,{className:`team-photo team-${e.color}`,children:e.image?(0,N.jsx)(`img`,{src:e.image,alt:e.name,loading:`lazy`}):(0,N.jsx)(`span`,{"aria-hidden":`true`})}),(0,N.jsx)(HE,{text:e.role})]})},t)),!1]})]})}function HE({text:e}){let t=Oe(),n=0;return(0,N.jsxs)(La.p,{className:`team-role`,initial:!t&&`hidden`,animate:t?`visible`:void 0,whileInView:`visible`,viewport:{once:!0,amount:.6},children:[(0,N.jsx)(`span`,{className:`sr-only`,children:e}),(0,N.jsx)(`span`,{"aria-hidden":`true`,children:e.split(/(\s+)/).map((e,r)=>/\s/.test(e)?e:(0,N.jsx)(`span`,{className:`inline-block whitespace-nowrap`,children:Array.from(e).map(e=>{let r=n++;return(0,N.jsx)(La.span,{className:`team-role-letter`,variants:{hidden:{opacity:0},visible:{opacity:1,transition:{delay:t?0:r*.035,duration:0}}},children:e},r)})},r))})]})}function UE({data:e}){return(0,N.jsx)(`section`,{lang:e.locale,className:`founders-section container-page`,children:e.founders.map((e,t)=>(0,N.jsx)(K,{children:(0,N.jsxs)(`article`,{className:`founder-card`,children:[(0,N.jsxs)(`div`,{className:`founder-header team-${t?`sage`:`mint`}`,children:[(0,N.jsx)(`img`,{src:e.image,className:`founder-avatar`,alt:``,loading:`lazy`}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`h2`,{className:`font-display text-2xl`,children:e.title}),(0,N.jsx)(`p`,{className:`mt-2 text-sm`,children:e.role})]})]}),(0,N.jsxs)(`div`,{className:`founder-quote`,children:[(0,N.jsx)(`span`,{"aria-hidden":`true`,children:`â`}),e.paragraphs.map((t,n)=>(0,N.jsx)(`p`,{className:n===e.paragraphs.length-1?`italic`:void 0,children:t},t))]})]})},e.title))})}function WE({data:e}){return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(iT,{title:(0,N.jsx)(y_,{text:e.page.about.title,phrases:[`Caleb Gestion`,`2025`]}),description:(0,N.jsx)(y_,{text:e.page.about.description,phrases:[e.locale===`fr`?E(`fr`,`about_about_page_secure_and_simplify`):E(`en`,`about_about_page_secure_and_simplify`)],className:`highlight-orange`}),decoration:!0,split:!0}),(0,N.jsx)(UE,{data:e}),(0,N.jsx)(VE,{data:e}),(0,N.jsx)(sE,{data:e})]})}function GE({data:e}){return(0,N.jsx)(iT,{split:!0,className:`migration-hero`,decoration:!0,title:(0,N.jsx)(y_,{text:e.page.migration.title.replaceAll(` 99`,` `).replace(`vos données`,`vos\xA0données`),phrases:e.migration.titleHighlights}),description:(0,N.jsx)(y_,{text:e.page.migration.description,phrases:e.migration.descriptionHighlights,className:`highlight-orange`})})}function KE({data:e}){return(0,N.jsxs)(`section`,{className:`section-space container-page`,children:[(0,N.jsx)(aE,{title:e.t.migrationWidget}),(0,N.jsx)(K,{children:e.migration.videoUrl?(0,N.jsx)(`video`,{controls:!0,preload:`metadata`,className:`w-full rounded-xl`,src:e.migration.videoUrl,"aria-label":e.t.migrationWidget}):(0,N.jsx)(`div`,{className:`migration-video-placeholder`,role:`img`,"aria-label":e.t.migrationWidget,children:(0,N.jsx)(`p`,{className:`text-base`,children:e.locale===`fr`?E(`fr`,`migration_migration_widget_section_the_theosync_presentation_video_will_be_available`):E(`en`,`migration_migration_widget_section_the_theosync_presentation_video_will_be_available`)})})})]})}function qE({data:e}){return(0,N.jsx)(`section`,{lang:e.locale,className:`section-space bg-mint/60`,children:(0,N.jsxs)(K,{className:`container-page`,children:[(0,N.jsx)(aE,{title:e.t.migrationSteps}),(0,N.jsx)(`div`,{className:`grid gap-8 md:grid-cols-3`,children:e.migration.steps.map((e,t)=>(0,N.jsxs)(`article`,{className:`migration-step`,children:[(0,N.jsxs)(`span`,{className:`font-display text-5xl text-green`,children:[`0`,t+1]}),(0,N.jsx)(`h3`,{className:`mb-4 mt-7 text-xl`,children:e.title}),(0,N.jsx)(`p`,{className:`text-sm leading-relaxed text-muted-foreground`,children:e.description}),e.cta&&(0,N.jsx)(B,{asChild:!0,className:`mt-6`,children:(0,N.jsx)(`a`,{href:`https://75c8e384.sibforms.com/serve/MUIFAEP7sus_n4H_InmyVCUzt-0Id4XHw37uqwNpO8mfKaC1-54mrIOPTgn7uhNCkHrbZoIUqxr1LkEJ_cthWAOv_cW4i6HTr7h66DylFLH5BY2hy7ul_mq5Vabj7VG-bjl1wt7r-7TVR5sRgAhk_Rdmqmi7zG
99y2EQgNhz1aSULBuBnxnQPInnboF_HdGSkq9bWCoWBiw1jwzieh`,target:`_blank`,rel:`noopener noreferrer`,children:e.cta})})]},t))})]})})}function JE({data:e}){return(0,N.jsx)(RE,{title:e.migration.contactTitle,description:e.migration.contactDescription,label:e.t.contact,href:c(`/contact`,e.locale)})}function YE({data:e}){let t=e.locale===`en`;return(0,N.jsxs)(`section`,{id:`packs-migration`,className:`container-page section-space`,children:[(0,N.jsxs)(`div`,{className:`migration-pack-intro`,children:[(0,N.jsx)(`h2`,{className:`mt-4 font-display text-4xl`,children:E(t?`en`:`fr`,`migration_migration_packs_your_migration_pack`)}),(0,N.jsxs)(`p`,{className:`mt-5 text-muted-foreground`,children:[E(t?`en`:`fr`,`migration_migration_packs_theosync_backs_up_and_secures_caleb_data`),` `,(0,N.jsx)(`mark`,{className:`highlight-orange`,children:E(e.locale,`migration_migration_packs_serenity_renamed`)}),`, `,E(e.locale,`migration_migration_packs_serenity_buyers`)]})]}),(0,N.jsx)(`div`,{className:`mt-9 overflow-x-auto rounded-2xl border border-border`,children:(0,N.jsxs)(`table`,{className:`w-full text-left text-sm sm:text-base`,children:[(0,N.jsx)(`caption`,{className:`sr-only`,children:E(t?`en`:`fr`,`migration_migration_packs_migration_pack_prices`)}),(0,N.jsx)(`thead`,{className:`bg-mint`,children:(0,N.jsxs)(`tr`,{children:[(0,N.jsx)(`th`,{scope:`col`,className:`p-3 sm:p-5`,children:E(t?`en`:`fr`,`migration_migration_packs_annual_income`)}),(0,N.jsx)(`th`,{scope:`col`,className:`p-3 sm:p-5`,children:E(t?`en`:`fr`,`migration_migration_packs_price_incl_tax`)}),(0,N.jsx)(`th`,{scope:`col`,children:(0,N.jsx)(`span`,{className:`sr-only`,children:E(t?`en`:`fr`,`migration_migration_packs_choose`)})})]})}),(0,N.jsx)(`tbody`,{children:e.migrationOffers.map(n=>(0,N.jsxs)(`tr`,{className:`border-t border-border`,children:[(0,N.jsx)(`th`,{scope:`row`,className:`p-3 sm:p-5 font-normal`,children:n.band}),(0,N.jsx)(`td`,{className:`p-3 sm:p-5 whitespace-nowrap font-semibold`,children:I_(n.amount,e.locale)}),(0,N.jsx)(`td`,{className:`p-3 sm:p-5 text-right`,children:(0,N.jsx)(B,{asChild:!0,variant:`outline`,size:`sm`,className:`h-11 px-3 text-sm sm:px-5`,children:(0,N.jsxs)(`a`,{href:L_(n.id,e.locale),"aria-label":`${E(t?`en`:`fr`,`migration_migration_packs_choose_2`)} ${n.name} ${n.band}`,children:[E(t?`en`:`fr`,`migration_migration_packs_choose_3`),` `,`â`]})})})]},n.id))})]})})]})}function XE({data:e}){return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(GE,{data:e}),(0,N.jsx)(qE,{data:e}),(0,N.jsx)(KE,{data:e}),(0,N.jsx)(YE,{data:e}),(0,N.jsx)(`div`,{lang:`fr`,children:(0,N.jsx)(oE,{title:e.migration.faqTitle,items:e.migration.faq})}),(0,N.jsx)(JE,{data:e})]})}function ZE({data:e}){let[t,n]=(0,P.useState)(``),r=e.articles.filter(n=>`${n.title} ${n.description}`.toLocaleLowerCase(e.locale).includes(t.trim().toLocaleLowerCase(e.locale)));return(0,N.jsx)(`section`,{className:`resources-hero`,children:(0,N.jsxs)(`div`,{className:`container-page`,children:[(0,N.jsx)(`p`,{className:`eyebrow`,children:e.t.resources}),(0,N.jsx)(`h1`,{className:`page-title`,children:e.resources.title}),(0,N.jsx)(`p`,{className:`resources-intro`,children:e.resources.description}),(0,N.jsxs)(`form`,{className:`help-search-form`,onSubmit:e=>{e.preventDefault()},children:[(0,N.jsx)(`span`,{"aria-hidden":`true`,children:`â`}),(0,N.jsx)(`input`,{value:t,onChange:e=>n(e.target.value),"aria-label":e.t.search,placeholder:e.t.search}),(0,N.jsx)(`button`,{type:`submit`,children:e.locale===`fr`?E(`fr`,`resources_resources_hero_search`):E(`en`,`resources_resources_hero_search`)})]}),(0,N.jsxs)(`p`,{className:`popular-links`,children:[e.resources.popular,` :`,` `,[`searchMigration`,`searchTaxReceipts`,`searchBankConnection`].map(t=>E(e.locale,t)).map((t,n)=>(0,N.jsx)(S,{to:c(`/aide/${[`migration`,`recus`,`banques`][n]}`,e.locale),children:e.locale===`fr`?t:[E(`en`,`resources_resources_hero_caleb_migration`),E(`en`,`resources_resources_hero_tax_receipts`),E(`en`,`resources_resources_hero_bank_connection`)][n]},t))]}),t.trim()&&(0,N.jsx)(`div`,{className:`help-search-results`,"aria-live":`polite`,children:r.length?r.map(t=>(0,N.jsxs)(S,{to:c(`/ressources/${t.slug}`,e.locale),children:[t.title,` â`]},t.slug)):(0,N.jsx)(`p`,{children:e.t.noResults})})]})})}function QE({data:e}){return(0,N.jsx)(`section`,{className:`popular-articles section-space`,children:(0,N.jsxs)(`div`,{className:`container-page`,children:[(0,N.jsx)(`h2`,{children:e.resources.consulted}),(0,N.jsx)(`div`,{className:`popular-article-grid`,children:e.resources.popularArticles.map(t=>(0,N.jsxs)(S,{to:c(`/ressources/${t.slug}`,e.locale),children:[t.title,(0,N.jsx)(`span`,{"aria-hidden":`true`,children:`â`})]},t.slug))})]})})}function $E({category:e,data:t}){return(0,N.jsxs)(S,{to:c(`/aide/${e.id}`,t.locale),className:`help-category-card`,children:[(0,N.jsx)(`span`,{className:`topic-dot`}),(0,N.jsx)(`h2`,{children:e.title}),(0,N.jsxs)(`p`,{children:[e.count,` `,t.t.articles]})]})}function eD({data:e}){return(0,N.jsx)(`section`,{className:`help-topics section-space`,children:(0,N.jsxs)(`div`,{className:`container-page`,children:[(0,N.jsxs)(`div`,{className:`topics-heading`,children:[(0,N.jsx)(`h2`,{children:e.resources.browse}),(0,N.jsx)(`p`,{children:e.resources.collections})]}),(0,N.jsx)(`div`,{className:`help-topic-grid`,children:e.helpCategories.map(t=>(0,N.jsx)($E,{category:t,data:e},t.id))})]})})}function tD({article:e,data:t}){let n=t.resources.filters.find(t=>
99t.id===e.kind)?.label||t.t.guides;return(0,N.jsxs)(S,{className:`article-card`,to:c(`/ressources/${e.slug}`,t.locale),children:[(0,N.jsx)(`div`,{className:`article-art`,children:e.kind===`video`?(0,N.jsx)(`span`,{className:`article-play`,children:`â¶`}):(0,N.jsx)(`span`,{children:E(t.locale,`components_resources_article_card_visuel`)})}),(0,N.jsxs)(`div`,{className:`article-card-copy`,children:[(0,N.jsxs)(`p`,{children:[(0,N.jsx)(`span`,{className:`article-kind kind-${e.kind}`,children:n}),(0,N.jsxs)(`span`,{className:`article-duration`,children:[e.minutes,E(t.locale,`components_resources_article_card_min`)]})]}),(0,N.jsx)(`h3`,{children:e.title})]})]})}function nD({data:e}){let[t,n]=(0,P.useState)(!1),[r,i]=(0,P.useState)(`all`),a=e.articles.filter(e=>(t||e.kind!==`help`)&&(r===`all`||e.kind===r));return(0,N.jsx)(`section`,{className:`resource-library section-space`,children:(0,N.jsxs)(`div`,{className:`container-page`,children:[(0,N.jsx)(`p`,{className:`eyebrow`,children:E(e.locale,`components_resources_resource_library_blog`)}),(0,N.jsxs)(`div`,{className:`library-heading`,children:[(0,N.jsx)(`h2`,{children:e.t.guides}),(0,N.jsx)(`div`,{className:`category-filters`,children:e.resources.filters.map(e=>(0,N.jsx)(`button`,{type:`button`,"aria-pressed":r===e.id,onClick:()=>i(e.id),children:e.label},e.id))})]}),(0,N.jsx)(`div`,{className:`resource-grid`,children:a.map(t=>(0,N.jsx)(tD,{article:t,data:e},t.slug))}),r===`all`&&(0,N.jsx)(`div`,{className:`mt-10 text-center`,children:(0,N.jsx)(B,{variant:`outline`,onClick:()=>n(!t),children:e.locale===`fr`?t?E(`fr`,`resources_resource_library_show_fewer_articles`):E(`fr`,`resources_resource_library_see_more_articles`):t?E(`en`,`resources_resource_library_show_fewer_articles`):E(`en`,`resources_resource_library_see_more_articles`)})}),!a.length&&(0,N.jsx)(`p`,{className:`py-12 text-center`,role:`status`,children:e.t.noResults})]})})}function rD({data:e}){return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(ZE,{data:e}),(0,N.jsx)(QE,{data:e}),(0,N.jsx)(eD,{data:e}),(0,N.jsx)(nD,{data:e}),(0,N.jsx)(RE,{title:e.resources.support,description:e.migration.contactDescription,label:e.t.contact,href:c(`/contact`,e.locale)})]})}function iD({table:e}){return(0,N.jsx)(`div`,{className:`article-table-wrap`,children:(0,N.jsxs)(`table`,{children:[(0,N.jsx)(`thead`,{children:(0,N.jsx)(`tr`,{children:e.headers.map(e=>(0,N.jsx)(`th`,{children:e},e))})}),(0,N.jsx)(`tbody`,{children:e.rows.map((e,t)=>(0,N.jsx)(`tr`,{children:e.map((e,t)=>(0,N.jsx)(`td`,{children:e},t))},t))})]})})}function aD({section:e,index:t}){return(0,N.jsxs)(`section`,{id:`section-${t}`,className:`article-body-section`,children:[e.title&&(0,N.jsx)(`h2`,{className:`mb-6 font-display text-3xl tracking-tight`,children:e.title}),e.paragraphs.map((t,n)=>(0,N.jsxs)(P.Fragment,{children:[(0,N.jsx)(`p`,{className:e.calloutIndex===n?`article-callout`:void 0,children:t}),e.tables?.filter(e=>e.afterParagraph===n).map((e,t)=>(0,N.jsx)(iD,{table:e},t)),e.imageAfter===n&&(0,N.jsx)(`div`,{className:`article-placeholder`,children:E(`fr`,`components_resources_article_body_section_lorem_ipsum`)})]},n))]})}function oD({data:e}){let t=e.articles.find(t=>t.slug===e.segments[1]);return(0,N.jsxs)(`article`,{className:`container-page article-page py-14`,children:[(0,N.jsxs)(S,{to:c(`/ressources`,e.locale),className:`text-sm text-muted-foreground`,children:[`â `,e.t.back]}),(0,N.jsxs)(`div`,{className:`article-layout`,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsxs)(`p`,{className:`eyebrow mb-6`,children:[e.helpCategories.find(e=>e.id===t.category)?.title,` `,`· `,t.minutes,E(e.locale,`components_resources_article_page_min`)]}),(0,N.jsx)(`h1`,{className:`page-title`,children:t.title}),(0,N.jsx)(`p`,{className:`my-8 text-xl leading-relaxed text-muted-foreground`,children:t.description}),(0,N.jsx)(`div`,{className:`article-rule`}),t.sections.map((e,t)=>(0,N.jsx)(aD,{section:e,index:t},t))]}),(0,N.jsxs)(`aside`,{className:`article-toc`,children:[(0,N.jsx)(`p`,{className:`eyebrow mb-6`,children:e.t.toc}),(0,N.jsx)(`nav`,{className:`space-y-4`,children:t.sections.map((e,n)=>(0,N.jsx)(`a`,{href:`#section-${n}`,className:`block text-sm text-muted-foreground transition-colors hover:text-foreground`,children:e.title||t.title},n))}),(0,N.jsxs)(S,{className:`mt-8 block text-sm underline underline-offset-4`,to:c(`/aide`,e.locale),children:[e.t.help,` â`]})]})]})]})}function sD({name:e,className:t}){return(0,N.jsx)(`img`,{src:`/images/figma/${e}.svg`,alt:``,"aria-hidden":`true`,width:`24`,height:`24`,className:ac(`size-5 shrink-0 object-contain`,t)})}
99function cD({value:e,onChange:t,label:n}){return(0,N.jsxs)(`div`,{className:`relative mx-auto max-w-2xl`,children:[(0,N.jsx)(sD,{name:`medium16-magnifying-glass`,className:`absolute left-5 top-5 size-5 brightness-0`}),(0,N.jsx)(b_,{type:`search`,value:e,onChange:e=>t(e.target.value),"aria-label":n,placeholder:n,className:`h-16 rounded-2xl bg-background pl-14 text-base shadow-button`})]})}function lD({data:e}){let[t,n]=(0,P.useState)(``),r=e.helpCategories.find(t=>t.id===e.segments[1]),i=e.articles.filter(n=>(!r||n.category===r.id)&&`${n.title} ${n.description}`.toLocaleLowerCase(e.locale).includes(t.toLocaleLowerCase(e.locale)));return e.segments[1]?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`section`,{className:`help-hero`,children:(0,N.jsxs)(`div`,{className:`container-page`,children:[(0,N.jsx)(`p`,{className:`eyebrow mb-5`,children:E(e.locale,`components_resources_help_page_theoasso`)}),(0,N.jsx)(`h1`,{className:`page-title mb-8`,children:r?.title||e.t.help}),(0,N.jsx)(cD,{value:t,onChange:n,label:e.t.search})]})}),(0,N.jsxs)(`section`,{className:`section-space container-page max-w-5xl`,children:[r&&(0,N.jsxs)(S,{to:c(`/aide`,e.locale),className:`mb-8 inline-block text-sm text-muted-foreground`,children:[`â `,e.t.help]}),!t&&!r?(0,N.jsx)(`div`,{className:`grid gap-5 md:grid-cols-2 lg:grid-cols-3`,children:e.helpCategories.map(t=>(0,N.jsx)($E,{category:t,data:e},t.id))}):(0,N.jsxs)(`div`,{className:`overflow-hidden rounded-2xl border border-border`,children:[i.map(t=>(0,N.jsxs)(S,{className:`help-article-row`,to:c(`/ressources/${t.slug}`,e.locale),children:[(0,N.jsx)(sD,{name:`frame`}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`h2`,{children:t.title}),(0,N.jsxs)(`p`,{className:`mt-2 text-xs text-muted-foreground`,children:[t.minutes,E(e.locale,`components_resources_help_page_min`)]})]}),(0,N.jsx)(`span`,{className:`ml-auto`,"aria-hidden":!0,children:`â`})]},t.slug)),i.length===0&&(0,N.jsx)(`p`,{className:`p-10 text-center`,role:`status`,children:e.t.noResults})]})]})]}):(0,N.jsx)(rD,{data:e})}function uD({section:e}){return(0,N.jsxs)(`section`,{className:`border-t border-border py-8`,children:[(0,N.jsx)(`h2`,{className:`mb-5 text-lg font-medium`,children:e.title}),(0,N.jsx)(`div`,{className:`space-y-4 text-base leading-relaxed text-muted-foreground`,children:e.paragraphs.map((e,t)=>(0,N.jsx)(`p`,{className:`whitespace-pre-line`,children:e===`[email protected]`?(0,N.jsx)(`a`,{className:`underline underline-offset-4`,href:`mailto:${e}`,children:e}):e},t))})]})}function dD({data:e,kind:t}){return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(iT,{title:e.t[t]}),(0,N.jsxs)(`div`,{lang:e.locale,className:`container-page max-w-3xl pb-24 pt-12`,children:[t===`privacy`&&(0,N.jsxs)(`section`,{className:`mb-10`,children:[(0,N.jsx)(`h2`,{className:`text-xl`,children:E(e.locale,`analyticsPrivacyTitle`)}),(0,N.jsx)(`p`,{className:`my-4`,children:E(e.locale,`analyticsPrivacyBody`)}),(0,N.jsx)(u,{locale:e.locale})]}),e.legal[t].map(e=>(0,N.jsx)(uD,{section:e},e.title))]})]})}function fD({data:e}){return(0,N.jsxs)(`section`,{className:`container-page py-32 text-center`,children:[(0,N.jsx)(`p`,{className:`eyebrow mb-8`,children:`404`}),(0,N.jsx)(`h1`,{className:`page-title`,children:e.t.notFound}),(0,N.jsx)(B,{asChild:!0,className:`mt-8`,children:(0,N.jsx)(S,{to:c(`/`,e.locale),children:e.t.returnHome})})]})}function pD({data:e}){let[t,n,...r]=e.segments;if([`ressources`,`aide`].includes(t)||r.length)return(0,N.jsx)(fD,{data:e});if(!t)return(0,N.jsx)(OE,{data:e});if(t===`paiement`&&n===`retour`)return(0,N.jsx)(nT,{data:e});if(t===`paiement`&&!n)return(0,N.jsx)(eT,{data:e});if(t===`tarifs`&&(!n||e.pricing[n]))return(0,N.jsx)(ME,{data:e});if(t===`ressources`&&n&&e.articles.some(e=>e.slug===n))return(0,N.jsx)(oD,{data:e});if(t===`aide`&&(!n||e.helpCategories.some(e=>e.id===n)))return(0,N.jsx)(lD,{data:e});if(n)return(0,N.jsx)(fD,{data:e});switch(t){case`connexion`:return(0,N.jsx)(T_,{data:e});case`facturation-electronique`:return(0,N.jsx)(lE,{data:e});case`partenaires`:return(0,N.jsx)(w_,{data:e});case`produit`:return(0,N.jsx)(BE,{data:e});case`a-propos`:return(0,N.jsx)(WE,{data:e});case`migration`:return(0,N.jsx)(XE,{data:e});case`ressources`:return(0,N.jsx)(rD,{data:e});case`mentions-legales`:return(0,N.jsx)(dD,{data:e,kind:`legal`});case`confidentialite`:return(0,N.jsx)(dD,{data:e,kind:`privacy`});default:return(0,N.jsx)(fD,{data:e})}}function mD({data:e}){return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`a`,{className:`sr-only focu
99s:not-sr-only focus:fixed focus:z-50 focus:bg-background focus:p-4`,href:`#main`,children:e.locale===`fr`?E(`fr`,`layout_site_page_skip_to_content`):E(`en`,`layout_site_page_skip_to_content`)}),(0,N.jsx)(f_,{data:e}),(0,N.jsx)(v_,{pageKey:`${e.locale}:${e.segments[0]===`tarifs`?`/tarifs`:e.path}`,children:(0,N.jsx)(pD,{data:e})}),(0,N.jsx)(m_,{data:e})]})}export{mD as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.