@timum/booking 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/booking.js +50 -48
- package/build/booking.umd.cjs +49 -44
- package/build/component/booking.js +50 -48
- package/build/component/booking.umd.cjs +49 -44
- package/package.json +183 -183
|
@@ -270,7 +270,7 @@ LAST-MODIFIED:`+n[1].replace(/[^\w_\-:,;=+/<br>]/g,"").replace(/<br>/g,`\r
|
|
|
270
270
|
0%, 100% {
|
|
271
271
|
transform: translateX(0);
|
|
272
272
|
}
|
|
273
|
-
`;function U_(e){const{t}=pn(),{userName:n,doOnSuccess:r}=eo(e,pb),{enqueueSnackbar:i}=d2(),o=Pb({defaultValues:tx(Cx),resolver:v3(hf().shape(ex(Cx)))}),s=Pp(),a=we(g=>He(g,"host")),[l,u]=R.useState(),[d,{isLoading:f,isError:m}]=kH(),p=async g=>{const v=await d({body:{userName:n,password:g.password}});v.error?(u(!0),setTimeout(()=>{u(!1)},1e3)):(r&&r(),s(uS({pathToProp:"auth2",newValue:v.data.auth2})),i(t("login.success"),{variant:"success"}))};return T.jsxs(vr,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[T.jsx(zee,{sx:{m:1,bgcolor:"secondary.main"},children:T.jsx(H_,{})}),T.jsx(Be,{variant:"h2",children:t("login.sign_in")}),T.jsx(Be,{variant:"subtitle2",textAlign:"center",mt:1,children:T.jsxs(tX,{t,i18nKey:"login.explanation",children:["Ein Benutzer mit dieser E-Mail existiert bereits. ",T.jsx("br",{})," Sie müssen sich authentifizieren, bevor Sie buchen können."]})}),T.jsx(vr,{borderBottom:"1px solid #ddd",width:"80%",mt:2,mb:2}),T.jsxs(vr,{component:"form",onSubmit:o.handleSubmit(p),noValidate:!0,sx:{mt:1},children:[T.jsx(Be,{variant:"body1",textAlign:"center",children:n}),T.jsx(Vm,{fields:Cx,disableEmptyErrorText:!0,rhfProps:{control:o.control},containerProps:{spacing:0},textFieldProps:{sx:{animation:l?`${uxe} 500ms linear 1`:""}}}),m&&T.jsx(Be,{color:"error.main",variant:"body1",textAlign:"center",children:t("login.failed")}),T.jsx(nm,{type:"submit",loading:f,fullWidth:!0,variant:"contained",sx:{mt:3,mb:2},children:t("login.sign_in")}),T.jsx(y2,{href:`${a}/auth/reset`,display:"block",variant:"body2",textAlign:"center",target:"_blank",children:t("login.forgot_password")})]})]})}U_.propTypes={};function wf({utilizeProductInterface:e=!0,utilizeUnknownCustomerInterface:t=!0,utilizeIdentifiedCustomerInterface:n=!0,utilizeCancelAppointmentInterface:r=!0,utilizeConfirmationInterface:i=!0,utilizeLoginInterface:o=!0,utilizeErrorDialogInterface:s=!0}){const a=we(C=>He(C,"interfaces.ProductPage")),l=we(C=>He(C,"interfaces.UnkownBookingPage")),u=we(C=>He(C,"interfaces.IdentifiedBookingPage")),d=we(C=>He(C,"interfaces.CancelPage")),f=we(C=>He(C,"interfaces.ConfirmationPage")),m=we(C=>He(C,"interfaces.LoginPage")),p=we(C=>He(C,"interfaces.ErrorDialog")),g=R.useContext(J0),v=R.useContext(X0),b=R.useContext(fb),x=R.useContext(hb),w=R.useContext(pb),S=R.useContext(V$);return T.jsxs(T.Fragment,{children:[e&&T.jsx(a,{open:g==null?void 0:g.open,onClose:g==null?void 0:g.onClose,children:T.jsx(K$,{onProductSelected:g==null?void 0:g.onClose})}),n&&T.jsx(u,{open:v==null?void 0:v.identifiedOpen,onClose:v==null?void 0:v.onClose,children:T.jsx(c_,{...v})}),t&&T.jsx(l,{open:v.unknownOpen,onClose:v.onClose,children:T.jsx(u_,{...v})}),r&&T.jsx(d,{open:b.open,onClose:b.onClose,children:T.jsx(d_,{})}),i&&T.jsxs(f,{open:x.open,onClose:x.onClose,children:[T.jsx(z_,{}),";"]}),o&&T.jsx(m,{open:w.open,onClose:w.onClose,children:T.jsx(U_,{doOnSuccess:w.handleCloseLoginPage})}),s&&T.jsx(p,{open:S.open,onClose:S.onClose})]})}const V_=R.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Km=R.createContext({}),Qm=R.createContext(null),Jm=typeof document<"u",Tx=Jm?R.useLayoutEffect:R.useEffect,W_=R.createContext({strict:!1}),$x=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),q_="data-"+$x("framerAppearId"),G_={skipAnimations:!1,useManualTiming:!1};class Y_{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function cxe(e){let t=new Y_,n=new Y_,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,d=!1)=>{const f=d&&i,m=f?t:n;return u&&s.add(l),m.add(l)&&f&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const d=t.order[u];s.has(d)&&(a.schedule(d),e()),d(l)}i=!1,o&&(o=!1,a.process(l))}};return a}const Xm=["prepare","read","update","preRender","render","postRender"],dxe=40;function Z_(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Xm.reduce((f,m)=>(f[m]=cxe(()=>n=!0),f),{}),s=f=>{o[f].process(i)},a=()=>{const f=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,dxe),1),i.timestamp=f,i.isProcessing=!0,Xm.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:Xm.reduce((f,m)=>{const p=o[m];return f[m]=(g,v=!1,b=!1)=>(n||l(),p.schedule(g,v,b)),f},{}),cancel:f=>Xm.forEach(m=>o[m].cancel(f)),state:i,steps:o}}const{schedule:Ex,cancel:hje}=Z_(queueMicrotask,!1);function fxe(e,t,n,r){const{visualElement:i}=R.useContext(Km),o=R.useContext(W_),s=R.useContext(Qm),a=R.useContext(V_).reducedMotion,l=R.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;R.useInsertionEffect(()=>{u&&u.update(n,s)});const d=R.useRef(!!(n[q_]&&!window.HandoffComplete));return Tx(()=>{u&&(Ex.postRender(u.render),d.current&&u.animationState&&u.animationState.animateChanges())}),R.useEffect(()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),u}function Gu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function hxe(e,t,n){return R.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Gu(n)&&(n.current=r))},[t])}function Sf(e){return typeof e=="string"||Array.isArray(e)}function eg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const kx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ax=["initial",...kx];function tg(e){return eg(e.animate)||Ax.some(t=>Sf(e[t]))}function K_(e){return!!(tg(e)||e.variants)}function pxe(e,t){if(tg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Sf(n)?n:void 0,animate:Sf(r)?r:void 0}}return e.inherit!==!1?t:{}}function mxe(e){const{initial:t,animate:n}=pxe(e,R.useContext(Km));return R.useMemo(()=>({initial:t,animate:n}),[Q_(t),Q_(n)])}function Q_(e){return Array.isArray(e)?e.join(" "):e}const J_={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"]},Cf={};for(const e in J_)Cf[e]={isEnabled:t=>J_[e].some(n=>!!t[n])};function gxe(e){for(const t in e)Cf[t]={...Cf[t],...e[t]}}const Ox=R.createContext({}),X_=R.createContext({}),vxe=Symbol.for("motionComponentSymbol");function yxe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&gxe(e);function o(a,l){let u;const d={...R.useContext(V_),...a,layoutId:bxe(a)},{isStatic:f}=d,m=mxe(a),p=r(a,f);if(!f&&Jm){m.visualElement=fxe(i,p,d,t);const g=R.useContext(X_),v=R.useContext(W_).strict;m.visualElement&&(u=m.visualElement.loadFeatures(d,v,e,g))}return B.createElement(Km.Provider,{value:m},u&&m.visualElement?B.createElement(u,{visualElement:m.visualElement,...d}):null,n(i,a,hxe(p,m.visualElement,l),p,f,m.visualElement))}const s=R.forwardRef(o);return s[vxe]=i,s}function bxe({layoutId:e}){const t=R.useContext(Ox).id;return t&&e!==void 0?t+"-"+e:e}function xxe(e){function t(r,i={}){return yxe(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const wxe=["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 _x(e){return typeof e!="string"||e.includes("-")?!1:!!(wxe.indexOf(e)>-1||/[A-Z]/.test(e))}const ng={};function Sxe(e){Object.assign(ng,e)}const Tf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nl=new Set(Tf);function eR(e,{layout:t,layoutId:n}){return nl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ng[e]||e==="opacity")}const br=e=>!!(e&&e.getVelocity),Cxe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Txe=Tf.length;function $xe(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<Txe;s++){const a=Tf[s];if(e[a]!==void 0){const l=Cxe[a]||a;o+=`${l}(${e[a]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const tR=e=>t=>typeof t=="string"&&t.startsWith(e),nR=tR("--"),Exe=tR("var(--"),rg=e=>Exe(e)?kxe.test(e.split("/*")[0].trim()):!1,kxe=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,Axe=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Hs=(e,t,n)=>n>t?t:n<e?e:n,Yu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$f={...Yu,transform:e=>Hs(0,1,e)},ig={...Yu,default:1},Ef=e=>Math.round(e*1e5)/1e5,Rx=/(-)?([\d]*\.?[\d])+/g,Oxe=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,_xe=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function kf(e){return typeof e=="string"}const Af=e=>({test:t=>kf(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Us=Af("deg"),no=Af("%"),Xe=Af("px"),Rxe=Af("vh"),Pxe=Af("vw"),rR={...no,parse:e=>no.parse(e)/100,transform:e=>no.transform(e*100)},iR={...Yu,transform:Math.round},oR={borderWidth:Xe,borderTopWidth:Xe,borderRightWidth:Xe,borderBottomWidth:Xe,borderLeftWidth:Xe,borderRadius:Xe,radius:Xe,borderTopLeftRadius:Xe,borderTopRightRadius:Xe,borderBottomRightRadius:Xe,borderBottomLeftRadius:Xe,width:Xe,maxWidth:Xe,height:Xe,maxHeight:Xe,size:Xe,top:Xe,right:Xe,bottom:Xe,left:Xe,padding:Xe,paddingTop:Xe,paddingRight:Xe,paddingBottom:Xe,paddingLeft:Xe,margin:Xe,marginTop:Xe,marginRight:Xe,marginBottom:Xe,marginLeft:Xe,rotate:Us,rotateX:Us,rotateY:Us,rotateZ:Us,scale:ig,scaleX:ig,scaleY:ig,scaleZ:ig,skew:Us,skewX:Us,skewY:Us,distance:Xe,translateX:Xe,translateY:Xe,translateZ:Xe,x:Xe,y:Xe,z:Xe,perspective:Xe,transformPerspective:Xe,opacity:$f,originX:rR,originY:rR,originZ:Xe,zIndex:iR,fillOpacity:$f,strokeOpacity:$f,numOctaves:iR};function Px(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,u=!1,d=!0;for(const f in t){const m=t[f];if(nR(f)){o[f]=m;continue}const p=oR[f],g=Axe(m,p);if(nl.has(f)){if(l=!0,s[f]=g,!d)continue;m!==(p.default||0)&&(d=!1)}else f.startsWith("origin")?(u=!0,a[f]=g):i[f]=g}if(t.transform||(l||r?i.transform=$xe(e.transform,n,d,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:m="50%",originZ:p=0}=a;i.transformOrigin=`${f} ${m} ${p}`}}const Dx=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sR(e,t,n){for(const r in t)!br(t[r])&&!eR(r,n)&&(e[r]=t[r])}function Dxe({transformTemplate:e},t,n){return R.useMemo(()=>{const r=Dx();return Px(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Mxe(e,t,n){const r=e.style||{},i={};return sR(i,r,e),Object.assign(i,Dxe(e,t,n)),i}function Ixe(e,t,n){const r={},i=Mxe(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const Nxe=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","ignoreStrict","viewport"]);function og(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Nxe.has(e)}let aR=e=>!og(e);function Lxe(e){e&&(aR=t=>t.startsWith("on")?!og(t):e(t))}try{Lxe(require("@emotion/is-prop-valid").default)}catch{}function Fxe(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(aR(i)||n===!0&&og(i)||!t&&!og(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function lR(e,t,n){return typeof e=="string"?e:Xe.transform(t+n*e)}function jxe(e,t,n){const r=lR(t,e.x,e.width),i=lR(n,e.y,e.height);return`${r} ${i}`}const Bxe={offset:"stroke-dashoffset",array:"stroke-dasharray"},zxe={offset:"strokeDashoffset",array:"strokeDasharray"};function Hxe(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Bxe:zxe;e[o.offset]=Xe.transform(-r);const s=Xe.transform(t),a=Xe.transform(n);e[o.array]=`${s} ${a}`}function Mx(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},d,f,m){if(Px(e,u,d,m),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:v}=e;p.transform&&(v&&(g.transform=p.transform),delete p.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=jxe(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&Hxe(p,s,a,l,!1)}const uR=()=>({...Dx(),attrs:{}}),Ix=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Uxe(e,t,n,r){const i=R.useMemo(()=>{const o=uR();return Mx(o,t,{enableHardwareAcceleration:!1},Ix(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};sR(o,e.style,e),i.style={...o,...i.style}}return i}function Vxe(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(_x(n)?Uxe:Ixe)(r,o,s,n),u=Fxe(r,typeof n=="string",e),d=n!==R.Fragment?{...u,...l,ref:i}:{},{children:f}=r,m=R.useMemo(()=>br(f)?f.get():f,[f]);return R.createElement(n,{...d,children:m})}}function cR(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const dR=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function fR(e,t,n,r){cR(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(dR.has(i)?i:$x(i),t.attrs[i])}function Nx(e,t){const{style:n}=e,r={};for(const i in n)(br(n[i])||t.style&&br(t.style[i])||eR(i,e))&&(r[i]=n[i]);return r}function hR(e,t){const n=Nx(e,t);for(const r in e)if(br(e[r])||br(t[r])){const i=Tf.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Lx(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function pR(e){const t=R.useRef(null);return t.current===null&&(t.current=e()),t.current}const sg=e=>Array.isArray(e),Wxe=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),qxe=e=>sg(e)?e[e.length-1]||0:e;function ag(e){const t=br(e)?e.get():e;return Wxe(t)?t.toValue():t}function Gxe({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:Yxe(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const mR=e=>(t,n)=>{const r=R.useContext(Km),i=R.useContext(Qm),o=()=>Gxe(e,t,r,i);return n?o():pR(o)};function Yxe(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=ag(o[m]);let{initial:s,animate:a}=e;const l=tg(e),u=K_(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const f=d?a:s;return f&&typeof f!="boolean"&&!eg(f)&&(Array.isArray(f)?f:[f]).forEach(p=>{const g=Lx(e,p);if(!g)return;const{transitionEnd:v,transition:b,...x}=g;for(const w in x){let S=x[w];if(Array.isArray(S)){const C=d?S.length-1:0;S=S[C]}S!==null&&(i[w]=S)}for(const w in v)i[w]=v[w]}),i}const mn=e=>e,{schedule:Qt,cancel:jo,state:Bn,steps:Fx}=Z_(typeof requestAnimationFrame<"u"?requestAnimationFrame:mn,!0),Zxe={useVisualState:mR({scrapeMotionValuesFromProps:hR,createRenderState:uR,onMount:(e,t,{renderState:n,latestValues:r})=>{Qt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Qt.render(()=>{Mx(n,r,{enableHardwareAcceleration:!1},Ix(t.tagName),e.transformTemplate),fR(t,n)})}})},Kxe={useVisualState:mR({scrapeMotionValuesFromProps:Nx,createRenderState:Dx})};function Qxe(e,{forwardMotionProps:t=!1},n,r){return{..._x(e)?Zxe:Kxe,preloadedFeatures:n,useRender:Vxe(t),createVisualElement:r,Component:e}}function Bo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const gR=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function lg(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Jxe=e=>t=>gR(t)&&e(t,lg(t));function zo(e,t,n,r){return Bo(e,t,Jxe(n),r)}const Xxe=(e,t)=>n=>t(e(n)),Ho=(...e)=>e.reduce(Xxe);function vR(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const yR=vR("dragHorizontal"),bR=vR("dragVertical");function xR(e){let t=!1;if(e==="y")t=bR();else if(e==="x")t=yR();else{const n=yR(),r=bR();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function wR(){const e=xR(!0);return e?(e(),!1):!0}class Vs{constructor(t){this.isMounted=!1,this.node=t}update(){}}function SR(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||wR())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Qt.update(()=>a[r](o,s))};return zo(e.current,n,i,{passive:!e.getProps()[r]})}class e5e extends Vs{mount(){this.unmount=Ho(SR(this.node,!0),SR(this.node,!1))}unmount(){}}class t5e extends Vs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Ho(Bo(this.node.current,"focus",()=>this.onFocus()),Bo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const CR=(e,t)=>t?e===t?!0:CR(e,t.parentElement):!1;function jx(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,lg(n))}class n5e extends Vs{constructor(){super(...arguments),this.removeStartListeners=mn,this.removeEndListeners=mn,this.removeAccessibleListeners=mn,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=zo(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:d,globalTapTarget:f}=this.node.getProps();Qt.update(()=>{!f&&!CR(this.node.current,a.target)?d&&d(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=zo(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Ho(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||jx("up",(l,u)=>{const{onTap:d}=this.node.getProps();d&&Qt.update(()=>d(l,u))})};this.removeEndListeners(),this.removeEndListeners=Bo(this.node.current,"keyup",s),jx("down",(a,l)=>{this.startPress(a,l)})},n=Bo(this.node.current,"keydown",t),r=()=>{this.isPressing&&jx("cancel",(o,s)=>this.cancelPress(o,s))},i=Bo(this.node.current,"blur",r);this.removeAccessibleListeners=Ho(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Qt.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!wR()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Qt.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=zo(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Bo(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ho(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Bx=new WeakMap,zx=new WeakMap,r5e=e=>{const t=Bx.get(e.target);t&&t(e)},i5e=e=>{e.forEach(r5e)};function o5e({root:e,...t}){const n=e||document;zx.has(n)||zx.set(n,{});const r=zx.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(i5e,{root:e,...t})),r[i]}function s5e(e,t,n){const r=o5e(t);return Bx.set(e,n),r.observe(e),()=>{Bx.delete(e),r.unobserve(e)}}const a5e={some:0,all:1};class l5e extends Vs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:a5e[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),m=u?d:f;m&&m(l)};return s5e(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(u5e(t,n))&&this.startObserver()}unmount(){}}function u5e({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const c5e={inView:{Feature:l5e},tap:{Feature:n5e},focus:{Feature:t5e},hover:{Feature:e5e}};function TR(e,t){if(!Array.isArray(t))return!1;const 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}function d5e(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function f5e(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function ug(e,t,n){const r=e.getProps();return Lx(r,t,n!==void 0?n:r.custom,d5e(e),f5e(e))}let h5e=mn,Hx=mn;const Ws=e=>e*1e3,Uo=e=>e/1e3,p5e={current:!1},$R=e=>Array.isArray(e)&&typeof e[0]=="number";function ER(e){return!!(!e||typeof e=="string"&&kR[e]||$R(e)||Array.isArray(e)&&e.every(ER))}const Of=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,kR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Of([0,.65,.55,1]),circOut:Of([.55,0,1,.45]),backIn:Of([.31,.01,.66,-.59]),backOut:Of([.33,1.53,.69,.99])};function AR(e){if(e)return $R(e)?Of(e):Array.isArray(e)?e.map(AR):kR[e]}function m5e(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=AR(a);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function g5e(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const OR=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,v5e=1e-7,y5e=12;function b5e(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=OR(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>v5e&&++a<y5e);return s}function _f(e,t,n,r){if(e===t&&n===r)return mn;const i=o=>b5e(o,0,1,e,n);return o=>o===0||o===1?o:OR(i(o),t,r)}const x5e=_f(.42,0,1,1),w5e=_f(0,0,.58,1),_R=_f(.42,0,.58,1),S5e=e=>Array.isArray(e)&&typeof e[0]!="number",RR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,PR=e=>t=>1-e(1-t),Ux=e=>1-Math.sin(Math.acos(e)),DR=PR(Ux),C5e=RR(Ux),MR=_f(.33,1.53,.69,.99),Vx=PR(MR),T5e=RR(Vx),$5e={linear:mn,easeIn:x5e,easeInOut:_R,easeOut:w5e,circIn:Ux,circInOut:C5e,circOut:DR,backIn:Vx,backInOut:T5e,backOut:MR,anticipate:e=>(e*=2)<1?.5*Vx(e):.5*(2-Math.pow(2,-10*(e-1)))},IR=e=>{if(Array.isArray(e)){Hx(e.length===4);const[t,n,r,i]=e;return _f(t,n,r,i)}else if(typeof e=="string")return $5e[e];return e},Rf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},tn=(e,t,n)=>e+(t-e)*n;function Wx(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function E5e({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Wx(l,a,e+1/3),o=Wx(l,a,e),s=Wx(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const qx=(e,t)=>n=>!!(kf(n)&&_xe.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),NR=(e,t,n)=>r=>{if(!kf(r))return r;const[i,o,s,a]=r.match(Rx);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},k5e=e=>Hs(0,255,e),Gx={...Yu,transform:e=>Math.round(k5e(e))},rl={test:qx("rgb","red"),parse:NR("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Gx.transform(e)+", "+Gx.transform(t)+", "+Gx.transform(n)+", "+Ef($f.transform(r))+")"};function A5e(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Yx={test:qx("#"),parse:A5e,transform:rl.transform},Zu={test:qx("hsl","hue"),parse:NR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+no.transform(Ef(t))+", "+no.transform(Ef(n))+", "+Ef($f.transform(r))+")"},Zx=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},O5e=[Yx,rl,Zu],_5e=e=>O5e.find(t=>t.test(e));function LR(e){const t=_5e(e);let n=t.parse(e);return t===Zu&&(n=E5e(n)),n}const FR=(e,t)=>{const n=LR(e),r=LR(t),i={...n};return o=>(i.red=Zx(n.red,r.red,o),i.green=Zx(n.green,r.green,o),i.blue=Zx(n.blue,r.blue,o),i.alpha=tn(n.alpha,r.alpha,o),rl.transform(i))},Zn={test:e=>rl.test(e)||Yx.test(e)||Zu.test(e),parse:e=>rl.test(e)?rl.parse(e):Zu.test(e)?Zu.parse(e):Yx.parse(e),transform:e=>kf(e)?e:e.hasOwnProperty("red")?rl.transform(e):Zu.transform(e)};function R5e(e){var t,n;return isNaN(e)&&kf(e)&&(((t=e.match(Rx))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Oxe))===null||n===void 0?void 0:n.length)||0)>0}const jR="number",BR="color",P5e="var",D5e="var(",zR="${}",HR=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function cg(e){const t=e.toString(),n=t.match(HR)||[],r=[],i={color:[],number:[],var:[]},o=[];for(let l=0;l<n.length;l++){const u=n[l];Zn.test(u)?(i.color.push(l),o.push(BR),r.push(Zn.parse(u))):u.startsWith(D5e)?(i.var.push(l),o.push(P5e),r.push(u)):(i.number.push(l),o.push(jR),r.push(parseFloat(u)))}const a=t.replace(HR,zR).split(zR);return{values:r,split:a,indexes:i,types:o}}function UR(e){return cg(e).values}function VR(e){const{split:t,types:n}=cg(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const a=n[s];a===jR?o+=Ef(i[s]):a===BR?o+=Zn.transform(i[s]):o+=i[s]}return o}}const M5e=e=>typeof e=="number"?0:e;function I5e(e){const t=UR(e);return VR(e)(t.map(M5e))}const qs={test:R5e,parse:UR,createTransformer:VR,getAnimatableNone:I5e};function Kx(e,t){return n=>n>0?t:e}function N5e(e,t){return n=>tn(e,t,n)}function Qx(e){return typeof e=="number"?N5e:typeof e=="string"?rg(e)?Kx:Zn.test(e)?FR:j5e:Array.isArray(e)?WR:typeof e=="object"?Zn.test(e)?FR:L5e:Kx}function WR(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Qx(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function L5e(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Qx(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function F5e(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][i[s]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[o]=l,i[s]++}return r}const j5e=(e,t)=>{const n=qs.createTransformer(t),r=cg(e),i=cg(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ho(WR(F5e(r,i),i.values),n):Kx(e,t)};function qR(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tn(e,t,n):Qx(e)(e,t)}function B5e(e,t,n){const r=[],i=n||qR,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||mn:t;a=Ho(l,a)}r.push(a)}return r}function z5e(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Hx(o===t.length),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=B5e(t,r,i),a=s.length,l=u=>{let d=0;if(a>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=Rf(e[d],e[d+1],u);return s[d](f)};return n?u=>l(Hs(e[0],e[o-1],u)):l}function H5e(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Rf(0,t,r);e.push(tn(n,1,i))}}function U5e(e){const t=[0];return H5e(t,e.length-1),t}function V5e(e,t){return e.map(n=>n*t)}function W5e(e,t){return e.map(()=>t||_R).splice(0,e.length-1)}function dg({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=S5e(r)?r.map(IR):IR(r),o={done:!1,value:t[0]},s=V5e(n&&n.length===t.length?n:U5e(t),e),a=z5e(s,t,{ease:Array.isArray(i)?i:W5e(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function GR(e,t){return t?e*(1e3/t):0}const q5e=5;function YR(e,t,n){const r=Math.max(t-q5e,0);return GR(n-e(r),t-r)}const Jx=.001,G5e=.01,ZR=10,Y5e=.05,Z5e=1;function K5e({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;h5e(e<=Ws(ZR));let s=1-t;s=Hs(Y5e,Z5e,s),e=Hs(G5e,ZR,Uo(e)),s<1?(i=u=>{const d=u*s,f=d*e,m=d-n,p=Xx(u,s),g=Math.exp(-f);return Jx-m/p*g},o=u=>{const f=u*s*e,m=f*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-f),v=Xx(Math.pow(u,2),s);return(-i(u)+Jx>0?-1:1)*((m-p)*g)/v}):(i=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Jx+d*f},o=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const a=5/e,l=J5e(i,o,a);if(e=Ws(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const Q5e=12;function J5e(e,t,n){let r=n;for(let i=1;i<Q5e;i++)r=r-e(r)/t(r);return r}function Xx(e,t){return e*Math.sqrt(1-t*t)}const X5e=["duration","bounce"],e4e=["stiffness","damping","mass"];function KR(e,t){return t.some(n=>e[n]!==void 0)}function t4e(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!KR(e,e4e)&&KR(e,X5e)){const n=K5e(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function QR({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:m}=t4e({...r,velocity:-Uo(r.velocity||0)}),p=f||0,g=l/(2*Math.sqrt(a*u)),v=o-i,b=Uo(Math.sqrt(a/u)),x=Math.abs(v)<5;n||(n=x?.01:2),t||(t=x?.005:.5);let w;if(g<1){const S=Xx(b,g);w=C=>{const E=Math.exp(-g*b*C);return o-E*((p+g*b*v)/S*Math.sin(S*C)+v*Math.cos(S*C))}}else if(g===1)w=S=>o-Math.exp(-b*S)*(v+(p+b*v)*S);else{const S=b*Math.sqrt(g*g-1);w=C=>{const E=Math.exp(-g*b*C),k=Math.min(S*C,300);return o-E*((p+g*b*v)*Math.sinh(k)+S*v*Math.cosh(k))/S}}return{calculatedDuration:m&&d||null,next:S=>{const C=w(S);if(m)s.done=S>=d;else{let E=p;S!==0&&(g<1?E=YR(w,S,C):E=0);const k=Math.abs(E)<=n,O=Math.abs(o-C)<=t;s.done=k&&O}return s.value=s.done?o:C,s}}}function JR({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:d}){const f=e[0],m={done:!1,value:f},p=A=>a!==void 0&&A<a||l!==void 0&&A>l,g=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let v=n*t;const b=f+v,x=s===void 0?b:s(b);x!==b&&(v=x-f);const w=A=>-v*Math.exp(-A/r),S=A=>x+w(A),C=A=>{const D=w(A),M=S(A);m.done=Math.abs(D)<=u,m.value=m.done?x:M};let E,k;const O=A=>{p(m.value)&&(E=A,k=QR({keyframes:[m.value,g(m.value)],velocity:YR(S,A,m.value),damping:i,stiffness:o,restDelta:u,restSpeed:d}))};return O(0),{calculatedDuration:null,next:A=>{let D=!1;return!k&&E===void 0&&(D=!0,C(A),O(A)),E!==void 0&&A>E?k.next(A-E):(!D&&C(A),m)}}}let fg;function n4e(){fg=void 0}const il={now:()=>(fg===void 0&&il.set(Bn.isProcessing||G_.useManualTiming?Bn.timestamp:performance.now()),fg),set:e=>{fg=e,queueMicrotask(n4e)}},r4e=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Qt.update(t,!0),stop:()=>jo(t),now:()=>Bn.isProcessing?Bn.timestamp:il.now()}},XR=2e4;function eP(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<XR;)t+=n,r=e.next(t);return t>=XR?1/0:t}const i4e={decay:JR,inertia:JR,tween:dg,keyframes:dg,spring:QR},o4e=e=>e/100;function hg({autoplay:e=!0,delay:t=0,driver:n=r4e,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:d,onUpdate:f,...m}){let p=1,g=!1,v,b;const x=()=>{b=new Promise(se=>{v=se})};x();let w;const S=i4e[i]||dg;let C;S!==dg&&typeof r[0]!="number"&&(C=Ho(o4e,qR(r[0],r[1])),r=[0,100]);const E=S({...m,keyframes:r});let k;a==="mirror"&&(k=S({...m,keyframes:[...r].reverse(),velocity:-(m.velocity||0)}));let O="idle",A=null,D=null,M=null;E.calculatedDuration===null&&o&&(E.calculatedDuration=eP(E));const{calculatedDuration:j}=E;let F=1/0,z=1/0;j!==null&&(F=j+s,z=F*(o+1)-s);let H=0;const P=se=>{if(D===null)return;p>0&&(D=Math.min(D,se)),p<0&&(D=Math.min(se-z/p,D)),A!==null?H=A:H=Math.round(se-D)*p;const ke=H-t*(p>=0?1:-1),ve=p>=0?ke<0:ke>z;H=Math.max(ke,0),O==="finished"&&A===null&&(H=z);let pe=H,ye=E;if(o){const Ge=Math.min(H,z)/F;let rt=Math.floor(Ge),Re=Ge%1;!Re&&Ge>=1&&(Re=1),Re===1&&rt--,rt=Math.min(rt,o+1),!!(rt%2)&&(a==="reverse"?(Re=1-Re,s&&(Re-=s/F)):a==="mirror"&&(ye=k)),pe=Hs(0,1,Re)*F}const Te=ve?{done:!1,value:r[0]}:ye.next(pe);C&&(Te.value=C(Te.value));let{done:qe}=Te;!ve&&j!==null&&(qe=p>=0?H>=z:H<=0);const Ae=A===null&&(O==="finished"||O==="running"&&qe);return f&&f(Te.value),Ae&&K(),Te},U=()=>{w&&w.stop(),w=void 0},G=()=>{O="idle",U(),v(),x(),D=M=null},K=()=>{O="finished",d&&d(),U(),v()},ne=()=>{if(g)return;w||(w=n(P));const se=w.now();l&&l(),A!==null?D=se-A:(!D||O==="finished")&&(D=se),O==="finished"&&x(),M=D,A=null,O="running",w.start()};e&&ne();const ee={then(se,ke){return b.then(se,ke)},get time(){return Uo(H)},set time(se){se=Ws(se),H=se,A!==null||!w||p===0?A=se:D=w.now()-se/p},get duration(){const se=E.calculatedDuration===null?eP(E):E.calculatedDuration;return Uo(se)},get speed(){return p},set speed(se){se===p||!w||(p=se,ee.time=Uo(H))},get state(){return O},play:ne,pause:()=>{O="paused",A=H},stop:()=>{g=!0,O!=="idle"&&(O="idle",u&&u(),G())},cancel:()=>{M!==null&&P(M),G()},complete:()=>{O="finished"},sample:se=>(D=0,P(se))};return ee}function s4e(e){let t;return()=>(t===void 0&&(t=e()),t)}const a4e=s4e(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),l4e=new Set(["opacity","clipPath","filter","transform"]),pg=10,u4e=2e4,c4e=(e,t)=>t.type==="spring"||e==="backgroundColor"||!ER(t.ease);function d4e(e,t,{onUpdate:n,onComplete:r,...i}){if(!(a4e()&&l4e.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const d=()=>{l=new Promise(S=>{a=S})};d();let{keyframes:f,duration:m=300,ease:p,times:g}=i;if(c4e(t,i)){const S=hg({...i,repeat:0,delay:0});let C={done:!1,value:f[0]};const E=[];let k=0;for(;!C.done&&k<u4e;)C=S.sample(k),E.push(C.value),k+=pg;g=void 0,f=E,m=k-pg,p="linear"}const v=m5e(e.owner.current,t,f,{...i,duration:m,ease:p,times:g}),b=()=>{u=!1,v.cancel()},x=()=>{u=!0,Qt.update(b),a(),d()};return v.onfinish=()=>{u||(e.set(g5e(f,i)),r&&r(),x())},{then(S,C){return l.then(S,C)},attachTimeline(S){return v.timeline=S,v.onfinish=null,mn},get time(){return Uo(v.currentTime||0)},set time(S){v.currentTime=Ws(S)},get speed(){return v.playbackRate},set speed(S){v.playbackRate=S},get duration(){return Uo(m)},play:()=>{s||(v.play(),jo(b))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:S}=v;if(S){const C=hg({...i,autoplay:!1});e.setWithVelocity(C.sample(S-pg).value,C.sample(S).value,pg)}x()},complete:()=>{u||v.finish()},cancel:x}}function f4e({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:mn,pause:mn,stop:mn,then:o=>(o(),Promise.resolve()),cancel:mn,complete:mn});return t?hg({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const h4e={type:"spring",stiffness:500,damping:25,restSpeed:10},p4e=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),m4e={type:"keyframes",duration:.8},g4e={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},v4e=(e,{keyframes:t})=>t.length>2?m4e:nl.has(e)?e.startsWith("scale")?p4e(t[1]):h4e:g4e,e5=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(qs.test(t)||t==="0")&&!t.startsWith("url(")),y4e=new Set(["brightness","contrast","saturate","opacity"]);function b4e(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Rx)||[];if(!r)return e;const i=n.replace(r,"");let o=y4e.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const x4e=/([a-z-]*)\(.*?\)/g,t5={...qs,getAnimatableNone:e=>{const t=e.match(x4e);return t?t.map(b4e).join(" "):e}},w4e={...oR,color:Zn,backgroundColor:Zn,outlineColor:Zn,fill:Zn,stroke:Zn,borderColor:Zn,borderTopColor:Zn,borderRightColor:Zn,borderBottomColor:Zn,borderLeftColor:Zn,filter:t5,WebkitFilter:t5},n5=e=>w4e[e];function tP(e,t){let n=n5(e);return n!==t5&&(n=qs),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const nP=e=>/^0[^.\s]+$/.test(e);function S4e(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||nP(e)}function C4e(e,t,n,r){const i=e5(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;u<o.length;u++)o[u]===null&&(o[u]=u===0?s:o[u-1]),S4e(o[u])&&l.push(u),typeof o[u]=="string"&&o[u]!=="none"&&o[u]!=="0"&&(a=o[u]);if(i&&l.length&&a)for(let u=0;u<l.length;u++){const d=l[u];o[d]=tP(t,a)}return o}function T4e({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...d}){return!!Object.keys(d).length}function r5(e,t){return e[t]||e.default||e}const i5=(e,t,n,r={})=>i=>{const o=r5(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Ws(s);const l=C4e(t,e,n,o),u=l[0],d=l[l.length-1],f=e5(e,u),m=e5(e,d);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(T4e(o)||(p={...p,...v4e(e,p)}),p.duration&&(p.duration=Ws(p.duration)),p.repeatDelay&&(p.repeatDelay=Ws(p.repeatDelay)),!f||!m||p5e.current||o.type===!1||G_.skipAnimations)return f4e(p);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=d4e(t,e,p);if(g)return g}return hg(p)};function mg(e){return!!(br(e)&&e.add)}const rP=e=>/^\-?\d*\.?\d+$/.test(e);function o5(e,t){e.indexOf(t)===-1&&e.push(t)}function s5(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class a5{constructor(){this.subscriptions=[]}add(t){return o5(this.subscriptions,t),()=>s5(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const iP=30,$4e=e=>!isNaN(parseFloat(e));class E4e{constructor(t,n={}){this.version="11.0.8",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=il.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=$4e(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=il.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new a5);const r=this.events[t].add(n);return t==="change"?()=>{r(),Qt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=il.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>iP)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,iP);return GR(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ku(e,t){return new E4e(e,t)}const oP=e=>t=>t.test(e),sP=[Yu,Xe,no,Us,Pxe,Rxe,{test:e=>e==="auto",parse:e=>e}],Pf=e=>sP.find(oP(e)),k4e=[...sP,Zn,qs],A4e=e=>k4e.find(oP(e));function O4e(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ku(n))}function _4e(e,t){const n=ug(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=qxe(o[s]);O4e(e,s,a)}}function R4e(e,t,n){var r,i;const o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],u=t[l];let d=null;Array.isArray(u)&&(d=u[0]),d===null&&(d=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),d!=null&&(typeof d=="string"&&(rP(d)||nP(d))?d=parseFloat(d):!A4e(d)&&qs.test(u)&&(d=tP(l,u)),e.addValue(l,Ku(d,{owner:e})),n[l]===void 0&&(n[l]=d),d!==null&&e.setBaseTarget(l,d))}}function P4e(e,t){return t?(t[e]||t.default||t).from:void 0}function D4e(e,t,n){const r={};for(const i in e){const o=P4e(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function M4e({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function I4e(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function aP(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in a){const m=e.getValue(f),p=a[f];if(!m||p===void 0||d&&M4e(d,f))continue;const g={delay:n,elapsed:0,...r5(o||{},f)};if(window.HandoffAppearAnimations){const x=e.getProps()[q_];if(x){const w=window.HandoffAppearAnimations(x,f,m,Qt);w!==null&&(g.elapsed=w,g.isHandoff=!0)}}let v=!g.isHandoff&&!I4e(m,p);if(g.type==="spring"&&(m.getVelocity()||g.velocity)&&(v=!1),m.animation&&(v=!1),v)continue;m.start(i5(f,m,p,e.shouldReduceMotion&&nl.has(f)?{type:!1}:g));const b=m.animation;mg(l)&&(l.add(f),b.then(()=>l.remove(f))),u.push(b)}return s&&Promise.all(u).then(()=>{s&&_4e(e,s)}),u}function l5(e,t,n={}){const r=ug(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(aP(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return N4e(e,t,u+l,d,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function N4e(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(L4e).forEach((u,d)=>{u.notify("AnimationStart",t),s.push(l5(u,t,{...o,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function L4e(e,t){return e.sortNodePosition(t)}function F4e(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>l5(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=l5(e,t,n);else{const i=typeof t=="function"?ug(e,t,n.custom):t;r=Promise.all(aP(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const j4e=[...kx].reverse(),B4e=kx.length;function z4e(e){return t=>Promise.all(t.map(({animation:n,options:r})=>F4e(e,n,r)))}function H4e(e){let t=z4e(e);const n=V4e();let r=!0;const i=(l,u)=>{const d=ug(e,u);if(d){const{transition:f,transitionEnd:m,...p}=d;l={...l,...p,...m}}return l};function o(l){t=l(e)}function s(l,u){const d=e.getProps(),f=e.getVariantContext(!0)||{},m=[],p=new Set;let g={},v=1/0;for(let x=0;x<B4e;x++){const w=j4e[x],S=n[w],C=d[w]!==void 0?d[w]:f[w],E=Sf(C),k=w===u?S.isActive:null;k===!1&&(v=x);let O=C===f[w]&&C!==d[w]&&E;if(O&&r&&e.manuallyAnimateOnMount&&(O=!1),S.protectedKeys={...g},!S.isActive&&k===null||!C&&!S.prevProp||eg(C)||typeof C=="boolean")continue;let D=U4e(S.prevProp,C)||w===u&&S.isActive&&!O&&E||x>v&&E,M=!1;const j=Array.isArray(C)?C:[C];let F=j.reduce(i,{});k===!1&&(F={});const{prevResolvedValues:z={}}=S,H={...z,...F},P=U=>{D=!0,p.has(U)&&(M=!0,p.delete(U)),S.needsAnimating[U]=!0};for(const U in H){const G=F[U],K=z[U];if(g.hasOwnProperty(U))continue;let ne=!1;sg(G)&&sg(K)?ne=!TR(G,K):ne=G!==K,ne?G!==void 0?P(U):p.add(U):G!==void 0&&p.has(U)?P(U):S.protectedKeys[U]=!0}S.prevProp=C,S.prevResolvedValues=F,S.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(D=!1),D&&(!O||M)&&m.push(...j.map(U=>({animation:U,options:{type:w,...l}})))}if(p.size){const x={};p.forEach(w=>{const S=e.getBaseTarget(w);S!==void 0&&(x[w]=S)}),m.push({animation:x})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function a(l,u,d){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),n[l].isActive=u;const m=s(d,l);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function U4e(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!TR(t,e):!1}function ol(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function V4e(){return{animate:ol(!0),whileInView:ol(),whileHover:ol(),whileTap:ol(),whileDrag:ol(),whileFocus:ol(),exit:ol()}}class W4e extends Vs{constructor(t){super(t),t.animationState||(t.animationState=H4e(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),eg(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let q4e=0;class G4e extends Vs{constructor(){super(...arguments),this.id=q4e++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Y4e={animation:{Feature:W4e},exit:{Feature:G4e}},lP=(e,t)=>Math.abs(e-t);function Z4e(e,t){const n=lP(e.x,t.x),r=lP(e.y,t.y);return Math.sqrt(n**2+r**2)}class uP{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=c5(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=Z4e(f.offset,{x:0,y:0})>=3;if(!m&&!p)return;const{point:g}=f,{timestamp:v}=Bn;this.history.push({...g,timestamp:v});const{onStart:b,onMove:x}=this.handlers;m||(b&&b(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=u5(m,this.transformPagePoint),Qt.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=c5(f.type==="pointercancel"?this.lastMoveEventInfo:u5(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,b),g&&g(f,b)},!gR(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=lg(t),a=u5(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Bn;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,c5(a,this.history)),this.removeListeners=Ho(zo(this.contextWindow,"pointermove",this.handlePointerMove),zo(this.contextWindow,"pointerup",this.handlePointerUp),zo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),jo(this.updatePoint)}}function u5(e,t){return t?{point:t(e.point)}:e}function cP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function c5({point:e},t){return{point:e,delta:cP(e,dP(t)),offset:cP(e,K4e(t)),velocity:Q4e(t,.1)}}function K4e(e){return e[0]}function dP(e){return e[e.length-1]}function Q4e(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=dP(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ws(t)));)n--;if(!r)return{x:0,y:0};const o=Uo(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Fr(e){return e.max-e.min}function d5(e,t=0,n=.01){return Math.abs(e-t)<=n}function fP(e,t,n,r=.5){e.origin=r,e.originPoint=tn(t.min,t.max,e.origin),e.scale=Fr(n)/Fr(t),(d5(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=tn(n.min,n.max,e.origin)-e.originPoint,(d5(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Df(e,t,n,r){fP(e.x,t.x,n.x,r?r.originX:void 0),fP(e.y,t.y,n.y,r?r.originY:void 0)}function hP(e,t,n){e.min=n.min+t.min,e.max=e.min+Fr(t)}function J4e(e,t,n){hP(e.x,t.x,n.x),hP(e.y,t.y,n.y)}function pP(e,t,n){e.min=t.min-n.min,e.max=e.min+Fr(t)}function Mf(e,t,n){pP(e.x,t.x,n.x),pP(e.y,t.y,n.y)}function X4e(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tn(n,e,r.max):Math.min(e,n)),e}function mP(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ewe(e,{top:t,left:n,bottom:r,right:i}){return{x:mP(e.x,n,i),y:mP(e.y,t,r)}}function gP(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 twe(e,t){return{x:gP(e.x,t.x),y:gP(e.y,t.y)}}function nwe(e,t){let n=.5;const r=Fr(e),i=Fr(t);return i>r?n=Rf(t.min,t.max-r,e.min):r>i&&(n=Rf(e.min,e.max-i,t.min)),Hs(0,1,n)}function rwe(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const f5=.35;function iwe(e=f5){return e===!1?e=0:e===!0&&(e=f5),{x:vP(e,"left","right"),y:vP(e,"top","bottom")}}function vP(e,t,n){return{min:yP(e,t),max:yP(e,n)}}function yP(e,t){return typeof e=="number"?e:e[t]||0}const bP=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qu=()=>({x:bP(),y:bP()}),xP=()=>({min:0,max:0}),gn=()=>({x:xP(),y:xP()});function ai(e){return[e("x"),e("y")]}function wP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function owe({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function swe(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function h5(e){return e===void 0||e===1}function p5({scale:e,scaleX:t,scaleY:n}){return!h5(e)||!h5(t)||!h5(n)}function sl(e){return p5(e)||SP(e)||e.z||e.rotate||e.rotateX||e.rotateY}function SP(e){return CP(e.x)||CP(e.y)}function CP(e){return e&&e!=="0%"}function gg(e,t,n){const r=e-n,i=t*r;return n+i}function TP(e,t,n,r,i){return i!==void 0&&(e=gg(e,i,r)),gg(e,n,r)+t}function m5(e,t=0,n=1,r,i){e.min=TP(e.min,t,n,r,i),e.max=TP(e.max,t,n,r,i)}function $P(e,{x:t,y:n}){m5(e.x,t.translate,t.scale,t.originPoint),m5(e.y,n.translate,n.scale,n.originPoint)}function awe(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ju(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,$P(e,s)),r&&sl(o.latestValues)&&Ju(e,o.latestValues))}t.x=EP(t.x),t.y=EP(t.y)}function EP(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Gs(e,t){e.min=e.min+t,e.max=e.max+t}function kP(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=tn(e.min,e.max,o);m5(e,t[n],t[r],s,t.scale)}const lwe=["x","scaleX","originX"],uwe=["y","scaleY","originY"];function Ju(e,t){kP(e.x,t,lwe),kP(e.y,t,uwe)}function AP(e,t){return wP(swe(e.getBoundingClientRect(),t))}function cwe(e,t,n){const r=AP(e,n),{scroll:i}=t;return i&&(Gs(r.x,i.offset.x),Gs(r.y,i.offset.y)),r}const OP=({current:e})=>e?e.ownerDocument.defaultView:null,dwe=new WeakMap;class fwe{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(lg(d,"page").point)},o=(d,f)=>{const{drag:m,dragPropagation:p,onDragStart:g}=this.getProps();if(m&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=xR(m),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ai(b=>{let x=this.getAxisMotionValue(b).get()||0;if(no.test(x)){const{projection:w}=this.visualElement;if(w&&w.layout){const S=w.layout.layoutBox[b];S&&(x=Fr(S)*(parseFloat(x)/100))}}this.originPoint[b]=x}),g&&Qt.update(()=>g(d,f),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(d,f)=>{const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:g,onDrag:v}=this.getProps();if(!m&&!this.openGlobalLock)return;const{offset:b}=f;if(p&&this.currentDirection===null){this.currentDirection=hwe(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,b),this.updateAxis("y",f.point,b),this.visualElement.render(),v&&v(d,f)},a=(d,f)=>this.stop(d,f),l=()=>ai(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new uP(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:OP(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Qt.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!vg(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=X4e(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Gu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=ewe(i.layoutBox,n):this.constraints=!1,this.elastic=iwe(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ai(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=rwe(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gu(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=cwe(r,i.root,this.visualElement.getTransformPagePoint());let s=twe(i.layout.layoutBox,o);if(n){const a=n(owe(s));this.hasMutatedConstraints=!!a,a&&(s=wP(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=ai(d=>{if(!vg(d,n,this.currentDirection))return;let f=l&&l[d]||{};s&&(f={min:0,max:0});const m=i?200:1e6,p=i?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:m,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(i5(t,r,0,n))}stopAnimation(){ai(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ai(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ai(n=>{const{drag:r}=this.getProps();if(!vg(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-tn(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Gu(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ai(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=nwe({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ai(s=>{if(!vg(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(tn(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;dwe.set(this.visualElement,this);const t=this.visualElement.current,n=zo(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Gu(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=Bo(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ai(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=f5,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function vg(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function hwe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class pwe extends Vs{constructor(t){super(t),this.removeGroupControls=mn,this.removeListeners=mn,this.controls=new fwe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||mn}unmount(){this.removeGroupControls(),this.removeListeners()}}const _P=e=>(t,n)=>{e&&Qt.update(()=>e(t,n))};class mwe extends Vs{constructor(){super(...arguments),this.removePointerDownListener=mn}onPointerDown(t){this.session=new uP(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:OP(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:_P(t),onStart:_P(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Qt.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=zo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function gwe(){const e=R.useContext(Qm);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=R.useId();return R.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const yg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function RP(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const If={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Xe.test(e))e=parseFloat(e);else return e;const n=RP(e,t.target.x),r=RP(e,t.target.y);return`${n}% ${r}%`}},vwe={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=qs.parse(e);if(i.length>5)return r;const o=qs.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=tn(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class ywe extends R.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Sxe(bwe),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),yg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Qt.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ex.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function PP(e){const[t,n]=gwe(),r=R.useContext(Ox);return R.createElement(ywe,{...e,layoutGroup:r,switchLayoutGroup:R.useContext(X_),isPresent:t,safeToRemove:n})}const bwe={borderRadius:{...If,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:If,borderTopRightRadius:If,borderBottomLeftRadius:If,borderBottomRightRadius:If,boxShadow:vwe},DP=["TopLeft","TopRight","BottomLeft","BottomRight"],xwe=DP.length,MP=e=>typeof e=="string"?parseFloat(e):e,IP=e=>typeof e=="number"||Xe.test(e);function wwe(e,t,n,r,i,o){i?(e.opacity=tn(0,n.opacity!==void 0?n.opacity:1,Swe(r)),e.opacityExit=tn(t.opacity!==void 0?t.opacity:1,0,Cwe(r))):o&&(e.opacity=tn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<xwe;s++){const a=`border${DP[s]}Radius`;let l=NP(t,a),u=NP(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||IP(l)===IP(u)?(e[a]=Math.max(tn(MP(l),MP(u),r),0),(no.test(u)||no.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=tn(t.rotate||0,n.rotate||0,r))}function NP(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Swe=LP(0,.5,DR),Cwe=LP(.5,.95,mn);function LP(e,t,n){return r=>r<e?0:r>t?1:n(Rf(e,t,r))}function FP(e,t){e.min=t.min,e.max=t.max}function li(e,t){FP(e.x,t.x),FP(e.y,t.y)}function jP(e,t,n,r,i){return e-=t,e=gg(e,1/n,r),i!==void 0&&(e=gg(e,1/i,r)),e}function Twe(e,t=0,n=1,r=.5,i,o=e,s=e){if(no.test(t)&&(t=parseFloat(t),t=tn(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=tn(o.min,o.max,r);e===o&&(a-=t),e.min=jP(e.min,t,n,a,i),e.max=jP(e.max,t,n,a,i)}function BP(e,t,[n,r,i],o,s){Twe(e,t[n],t[r],t[i],t.scale,o,s)}const $we=["x","scaleX","originX"],Ewe=["y","scaleY","originY"];function zP(e,t,n,r){BP(e.x,t,$we,n?n.x:void 0,r?r.x:void 0),BP(e.y,t,Ewe,n?n.y:void 0,r?r.y:void 0)}function HP(e){return e.translate===0&&e.scale===1}function UP(e){return HP(e.x)&&HP(e.y)}function kwe(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function VP(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function WP(e){return Fr(e.x)/Fr(e.y)}class Awe{constructor(){this.members=[]}add(t){o5(this.members,t),t.scheduleRender()}remove(t){if(s5(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function qP(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:d}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),d&&(r+=`rotateY(${d}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const Owe=(e,t)=>e.depth-t.depth;class _we{constructor(){this.children=[],this.isDirty=!1}add(t){o5(this.children,t),this.isDirty=!0}remove(t){s5(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Owe),this.isDirty=!1,this.children.forEach(t)}}function Rwe(e,t){const n=il.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(jo(r),e(o-t))};return Qt.read(r,!0),()=>jo(r)}function Pwe(e){window.MotionDebug&&window.MotionDebug.record(e)}function Dwe(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Mwe(e,t,n){const r=br(e)?e:Ku(e);return r.start(i5("",r,t,n)),r.animation}const GP=["","X","Y","Z"],Iwe={visibility:"hidden"},YP=1e3;let Nwe=0;const al={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ZP({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=Nwe++,this.animationId=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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,al.totalNodes=al.resolvedTargetDeltas=al.recalculatedProjection=0,this.nodes.forEach(jwe),this.nodes.forEach(Vwe),this.nodes.forEach(Wwe),this.nodes.forEach(Bwe),Pwe(al)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new _we)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new a5),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Dwe(s),this.instance=s;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const m=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Rwe(m,250),yg.hasAnimatedSinceResize&&(yg.hasAnimatedSinceResize=!1,this.nodes.forEach(QP))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:m,hasRelativeTargetChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||Kwe,{onLayoutAnimationStart:b,onLayoutAnimationComplete:x}=d.getProps(),w=!this.targetLayout||!VP(this.targetLayout,g)||p,S=!m&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||m&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const C={...r5(v,"layout"),onPlay:b,onComplete:x};(d.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else m||QP(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,jo(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(qwe),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(KP);return}this.isUpdating||this.nodes.forEach(Hwe),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(Uwe),this.nodes.forEach(Lwe),this.nodes.forEach(Fwe),this.clearAllSnapshots();const a=il.now();Bn.delta=Hs(0,1e3/60,a-Bn.timestamp),Bn.timestamp=a,Bn.isProcessing=!0,Fx.update.process(Bn),Fx.preRender.process(Bn),Fx.render.process(Bn),Bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ex.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(zwe),this.sharedNodes.forEach(Gwe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=gn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!UP(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&(a||sl(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Qwe(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return gn();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(Gs(a.x,l.offset.x),Gs(a.y,l.offset.y)),a}removeElementScroll(s){const a=gn();li(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:d,options:f}=u;if(u!==this.root&&d&&f.layoutScroll){if(d.isRoot){li(a,s);const{scroll:m}=this.root;m&&(Gs(a.x,-m.offset.x),Gs(a.y,-m.offset.y))}Gs(a.x,d.offset.x),Gs(a.y,d.offset.y)}}return a}applyTransform(s,a=!1){const l=gn();li(l,s);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ju(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),sl(d.latestValues)&&Ju(l,d.latestValues)}return sl(this.latestValues)&&Ju(l,this.latestValues),l}removeTransform(s){const a=gn();li(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!sl(u.latestValues))continue;p5(u.latestValues)&&u.updateSnapshot();const d=gn(),f=u.measurePageBox();li(d,f),zP(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return sl(this.latestValues)&&zP(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}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!==Bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:m}=this.options;if(!(!this.layout||!(f||m))){if(this.resolvedRelativeTargetAt=Bn.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gn(),this.relativeTargetOrigin=gn(),Mf(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),li(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=gn(),this.targetWithTransforms=gn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),J4e(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):li(this.target,this.layout.layoutBox),$P(this.target,this.targetDelta)):li(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gn(),this.relativeTargetOrigin=gn(),Mf(this.relativeTargetOrigin,this.target,p.target),li(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}al.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||p5(this.parent.latestValues)||SP(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Bn.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;li(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,p=this.treeScale.y;awe(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=gn());const{target:g}=a;if(!g){this.projectionTransform&&(this.projectionDelta=Qu(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Qu(),this.projectionDeltaWithTransform=Qu());const v=this.projectionTransform;Df(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=qP(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==m||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),al.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=Qu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const m=gn(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,v=p!==g,b=this.getStack(),x=!b||b.members.length<=1,w=!!(v&&!x&&this.options.crossfade===!0&&!this.path.some(Zwe));this.animationProgress=0;let S;this.mixTargetDelta=C=>{const E=C/1e3;JP(f.x,s.x,E),JP(f.y,s.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mf(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ywe(this.relativeTarget,this.relativeTargetOrigin,m,E),S&&kwe(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=gn()),li(S,this.relativeTarget)),v&&(this.animationValues=d,wwe(d,u,this.latestValues,E,w,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(jo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qt.update(()=>{yg.hasAnimatedSinceResize=!0,this.currentAnimation=Mwe(0,YP,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(YP),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&rD(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||gn();const f=Fr(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const m=Fr(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+m}li(a,l),Ju(a,d),Df(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Awe),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let d=0;d<GP.length;d++){const f="rotate"+GP[d];l[f]&&(u[f]=l[f],s.setStaticValue(f,0))}s.render();for(const d in u)s.setStaticValue(d,u[d]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Iwe;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=ag(s==null?void 0:s.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=ag(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!sl(this.latestValues)&&(v.transform=d?d({},""):"none",this.hasProjected=!1),v}const m=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=qP(this.projectionDeltaWithTransform,this.treeScale,m),d&&(u.transform=d(m,u.transform));const{x:p,y:g}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${g.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(a=m.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:u.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const v in ng){if(m[v]===void 0)continue;const{correct:b,applyTo:x}=ng[v],w=u.transform==="none"?m[v]:b(m[v],f);if(x){const S=x.length;for(let C=0;C<S;C++)u[x[C]]=w}else u[v]=w}return this.options.layoutId&&(u.pointerEvents=f===this?ag(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(KP),this.root.sharedNodes.clear()}}}function Lwe(e){e.updateLayout()}function Fwe(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?ai(f=>{const m=s?n.measuredBox[f]:n.layoutBox[f],p=Fr(m);m.min=r[f].min,m.max=m.min+p}):rD(o,n.layoutBox,r)&&ai(f=>{const m=s?n.measuredBox[f]:n.layoutBox[f],p=Fr(r[f]);m.max=m.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const a=Qu();Df(a,r,n.layoutBox);const l=Qu();s?Df(l,e.applyTransform(i,!0),n.measuredBox):Df(l,r,n.layoutBox);const u=!UP(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:m,layout:p}=f;if(m&&p){const g=gn();Mf(g,n.layoutBox,m.layoutBox);const v=gn();Mf(v,r,p.layoutBox),VP(g,v)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function jwe(e){al.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Bwe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zwe(e){e.clearSnapshot()}function KP(e){e.clearMeasurements()}function Hwe(e){e.isLayoutDirty=!1}function Uwe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function QP(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Vwe(e){e.resolveTargetDelta()}function Wwe(e){e.calcProjection()}function qwe(e){e.resetRotation()}function Gwe(e){e.removeLeadSnapshot()}function JP(e,t,n){e.translate=tn(t.translate,0,n),e.scale=tn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function XP(e,t,n,r){e.min=tn(t.min,n.min,r),e.max=tn(t.max,n.max,r)}function Ywe(e,t,n,r){XP(e.x,t.x,n.x,r),XP(e.y,t.y,n.y,r)}function Zwe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Kwe={duration:.45,ease:[.4,0,.1,1]},eD=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tD=eD("applewebkit/")&&!eD("chrome/")?Math.round:mn;function nD(e){e.min=tD(e.min),e.max=tD(e.max)}function Qwe(e){nD(e.x),nD(e.y)}function rD(e,t,n){return e==="position"||e==="preserve-aspect"&&!d5(WP(t),WP(n),.2)}const Jwe=ZP({attachResizeListener:(e,t)=>Bo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),g5={current:void 0},iD=ZP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!g5.current){const e=new Jwe({});e.mount(window),e.setOptions({layoutScroll:!0}),g5.current=e}return g5.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Xwe={pan:{Feature:mwe},drag:{Feature:pwe,ProjectionNode:iD,MeasureLayout:PP}},e8e=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function t8e(e){const t=e8e.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function v5(e,t,n=1){const[r,i]=t8e(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return rP(s)?parseFloat(s):s}else return rg(i)?v5(i,t,n+1):i}function n8e(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!rg(o))return;const s=v5(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!rg(o))continue;const s=v5(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const r8e=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),oD=e=>r8e.has(e),i8e=e=>Object.keys(e).some(oD),sD=e=>e===Yu||e===Xe,aD=(e,t)=>parseFloat(e.split(", ")[t]),lD=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return aD(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?aD(o[1],e):0}},o8e=new Set(["x","y","z"]),s8e=Tf.filter(e=>!o8e.has(e));function a8e(e){const t=[];return s8e.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Xu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:lD(4,13),y:lD(5,14)};Xu.translateX=Xu.x,Xu.translateY=Xu.y;const l8e=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Xu[u](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const d=t.getValue(u);d&&d.jump(a[u]),e[u]=Xu[u](l,o)}),e},u8e=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(oD);let o=[],s=!1;const a=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],f=Pf(d);const m=t[l];let p;if(sg(m)){const g=m.length,v=m[0]===null?1:0;d=m[v],f=Pf(d);for(let b=v;b<g&&m[b]!==null;b++)p?Hx(Pf(m[b])===p):p=Pf(m[b])}else p=Pf(m);if(f!==p)if(sD(f)&&sD(p)){const g=u.get();typeof g=="string"&&u.set(parseFloat(g)),typeof m=="string"?t[l]=parseFloat(m):Array.isArray(m)&&p===Xe&&(t[l]=m.map(parseFloat))}else f!=null&&f.transform&&(p!=null&&p.transform)&&(d===0||m===0)?d===0?u.set(p.transform(d)):t[l]=f.transform(m):(s||(o=a8e(e),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:t[l],u.jump(m))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,u=l8e(t,e,a);return o.length&&o.forEach(([d,f])=>{e.getValue(d).set(f)}),e.render(),Jm&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function c8e(e,t,n,r){return i8e(t)?u8e(e,t,n,r):{target:t,transitionEnd:r}}const d8e=(e,t,n,r)=>{const i=n8e(e,t,r);return t=i.target,r=i.transitionEnd,c8e(e,t,n,r)},y5={current:null},uD={current:!1};function f8e(){if(uD.current=!0,!!Jm)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>y5.current=e.matches;e.addListener(t),t()}else y5.current=!1}function h8e(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(br(o))e.addValue(i,o),mg(r)&&r.add(i);else if(br(s))e.addValue(i,Ku(o,{owner:e})),mg(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,Ku(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const cD=new WeakMap,dD=Object.keys(Cf),p8e=dD.length,fD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],m8e=Ax.length;class g8e{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Qt.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=tg(n),this.isVariantNode=K_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{});for(const f in d){const m=d[f];a[f]!==void 0&&br(m)&&(m.set(a[f],!1),mg(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,cD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),uD.current||f8e(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:y5.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){cD.delete(this.current),this.projection&&this.projection.unmount(),jo(this.notifyUpdate),jo(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=nl.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Qt.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,a;for(let l=0;l<p8e;l++){const u=dD[l],{isEnabled:d,Feature:f,ProjectionNode:m,MeasureLayout:p}=Cf[u];m&&(s=m),d(n)&&(!this.features[u]&&f&&(this.features[u]=new f(this)),p&&(a=p))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:d,dragConstraints:f,layoutScroll:m,layoutRoot:p}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!d||f&&Gu(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:m,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<fD.length;r++){const i=fD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=h8e(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<m8e;r++){const i=Ax[r],o=this.props[i];(Sf(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ku(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Lx(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!br(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new a5),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class hD extends g8e{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},i){const o=D4e(r,t||{},this);if(i){R4e(this,r,o);const s=d8e(this,r,o,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function v8e(e){return window.getComputedStyle(e)}class y8e extends hD{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(nl.has(n)){const r=n5(n);return r&&r.default||0}else{const r=v8e(t),i=(nR(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return AP(t,n)}build(t,n,r,i){Px(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Nx(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;br(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){cR(t,n,r,i)}}class b8e extends hD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(nl.has(n)){const r=n5(n);return r&&r.default||0}return n=dR.has(n)?n:$x(n),t.getAttribute(n)}measureInstanceViewportBox(){return gn()}scrapeMotionValuesFromProps(t,n){return hR(t,n)}build(t,n,r,i){Mx(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){fR(t,n,r,i)}mount(t){this.isSVGTag=Ix(t.tagName),super.mount(t)}}const x8e=(e,t)=>_x(e)?new b8e(t,{enableHardwareAcceleration:!1}):new y8e(t,{enableHardwareAcceleration:!0}),w8e={...Y4e,...c5e,...Xwe,...{layout:{ProjectionNode:iD,MeasureLayout:PP}}},ll=xxe((e,t)=>Qxe(e,t,w8e,x8e));function pD(){const e=R.useRef(!1);return Tx(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function S8e(){const e=pD(),[t,n]=R.useState(0),r=R.useCallback(()=>{e.current&&n(t+1)},[t]);return[R.useCallback(()=>Qt.postRender(r),[r]),t]}class C8e extends B.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function T8e({children:e,isPresent:t}){const n=R.useId(),r=R.useRef(null),i=R.useRef({width:0,height:0,top:0,left:0});return R.useInsertionEffect(()=>{const{width:o,height:s,top:a,left:l}=i.current;if(t||!r.current||!o||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
|
|
273
|
+
`;function U_(e){const{t}=pn(),{userName:n,doOnSuccess:r}=eo(e,pb),{enqueueSnackbar:i}=d2(),o=Pb({defaultValues:tx(Cx),resolver:v3(hf().shape(ex(Cx)))}),s=Pp(),a=we(g=>He(g,"host")),[l,u]=R.useState(),[d,{isLoading:f,isError:m}]=kH(),p=async g=>{const v=await d({body:{userName:n,password:g.password}});v.error?(u(!0),setTimeout(()=>{u(!1)},1e3)):(r&&r(),s(uS({pathToProp:"auth2",newValue:v.data.auth2})),i(t("login.success"),{variant:"success"}))};return T.jsxs(vr,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[T.jsx(zee,{sx:{m:1,bgcolor:"secondary.main"},children:T.jsx(H_,{})}),T.jsx(Be,{variant:"h2",children:t("login.sign_in")}),T.jsx(Be,{variant:"subtitle2",textAlign:"center",mt:1,children:T.jsxs(tX,{t,i18nKey:"login.explanation",children:["Ein Benutzer mit dieser E-Mail existiert bereits. ",T.jsx("br",{})," Sie müssen sich authentifizieren, bevor Sie buchen können."]})}),T.jsx(vr,{borderBottom:"1px solid #ddd",width:"80%",mt:2,mb:2}),T.jsxs(vr,{component:"form",onSubmit:o.handleSubmit(p),noValidate:!0,sx:{mt:1},children:[T.jsx(Be,{variant:"body1",textAlign:"center",children:n}),T.jsx(Vm,{fields:Cx,disableEmptyErrorText:!0,rhfProps:{control:o.control},containerProps:{spacing:0},textFieldProps:{sx:{animation:l?`${uxe} 500ms linear 1`:""}}}),m&&T.jsx(Be,{color:"error.main",variant:"body1",textAlign:"center",children:t("login.failed")}),T.jsx(nm,{type:"submit",loading:f,fullWidth:!0,variant:"contained",sx:{mt:3,mb:2},children:t("login.sign_in")}),T.jsx(y2,{href:`${a}/auth/reset`,display:"block",variant:"body2",textAlign:"center",target:"_blank",children:t("login.forgot_password")})]})]})}U_.propTypes={};function wf({utilizeProductInterface:e=!0,utilizeUnknownCustomerInterface:t=!0,utilizeIdentifiedCustomerInterface:n=!0,utilizeCancelAppointmentInterface:r=!0,utilizeConfirmationInterface:i=!0,utilizeLoginInterface:o=!0,utilizeErrorDialogInterface:s=!0}){const a=we(C=>He(C,"interfaces.ProductPage")),l=we(C=>He(C,"interfaces.UnkownBookingPage")),u=we(C=>He(C,"interfaces.IdentifiedBookingPage")),d=we(C=>He(C,"interfaces.CancelPage")),f=we(C=>He(C,"interfaces.ConfirmationPage")),m=we(C=>He(C,"interfaces.LoginPage")),p=we(C=>He(C,"interfaces.ErrorDialog")),g=R.useContext(J0),v=R.useContext(X0),b=R.useContext(fb),x=R.useContext(hb),w=R.useContext(pb),S=R.useContext(V$);return T.jsxs(T.Fragment,{children:[e&&T.jsx(a,{open:g==null?void 0:g.open,onClose:g==null?void 0:g.onClose,children:T.jsx(K$,{onProductSelected:g==null?void 0:g.onClose})}),n&&T.jsx(u,{open:v==null?void 0:v.identifiedOpen,onClose:v==null?void 0:v.onClose,children:T.jsx(c_,{...v})}),t&&T.jsx(l,{open:v.unknownOpen,onClose:v.onClose,children:T.jsx(u_,{...v})}),r&&T.jsx(d,{open:b.open,onClose:b.onClose,children:T.jsx(d_,{})}),i&&T.jsx(f,{open:x.open,onClose:x.onClose,children:T.jsx(z_,{})}),o&&T.jsx(m,{open:w.open,onClose:w.onClose,children:T.jsx(U_,{doOnSuccess:w.handleCloseLoginPage})}),s&&T.jsx(p,{open:S.open,onClose:S.onClose})]})}const V_=R.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Km=R.createContext({}),Qm=R.createContext(null),Jm=typeof document<"u",Tx=Jm?R.useLayoutEffect:R.useEffect,W_=R.createContext({strict:!1}),$x=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),q_="data-"+$x("framerAppearId"),G_={skipAnimations:!1,useManualTiming:!1};class Y_{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function cxe(e){let t=new Y_,n=new Y_,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,d=!1)=>{const f=d&&i,m=f?t:n;return u&&s.add(l),m.add(l)&&f&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const d=t.order[u];s.has(d)&&(a.schedule(d),e()),d(l)}i=!1,o&&(o=!1,a.process(l))}};return a}const Xm=["prepare","read","update","preRender","render","postRender"],dxe=40;function Z_(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Xm.reduce((f,m)=>(f[m]=cxe(()=>n=!0),f),{}),s=f=>{o[f].process(i)},a=()=>{const f=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,dxe),1),i.timestamp=f,i.isProcessing=!0,Xm.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:Xm.reduce((f,m)=>{const p=o[m];return f[m]=(g,v=!1,b=!1)=>(n||l(),p.schedule(g,v,b)),f},{}),cancel:f=>Xm.forEach(m=>o[m].cancel(f)),state:i,steps:o}}const{schedule:Ex,cancel:hje}=Z_(queueMicrotask,!1);function fxe(e,t,n,r){const{visualElement:i}=R.useContext(Km),o=R.useContext(W_),s=R.useContext(Qm),a=R.useContext(V_).reducedMotion,l=R.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;R.useInsertionEffect(()=>{u&&u.update(n,s)});const d=R.useRef(!!(n[q_]&&!window.HandoffComplete));return Tx(()=>{u&&(Ex.postRender(u.render),d.current&&u.animationState&&u.animationState.animateChanges())}),R.useEffect(()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),u}function Gu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function hxe(e,t,n){return R.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Gu(n)&&(n.current=r))},[t])}function Sf(e){return typeof e=="string"||Array.isArray(e)}function eg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const kx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ax=["initial",...kx];function tg(e){return eg(e.animate)||Ax.some(t=>Sf(e[t]))}function K_(e){return!!(tg(e)||e.variants)}function pxe(e,t){if(tg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Sf(n)?n:void 0,animate:Sf(r)?r:void 0}}return e.inherit!==!1?t:{}}function mxe(e){const{initial:t,animate:n}=pxe(e,R.useContext(Km));return R.useMemo(()=>({initial:t,animate:n}),[Q_(t),Q_(n)])}function Q_(e){return Array.isArray(e)?e.join(" "):e}const J_={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"]},Cf={};for(const e in J_)Cf[e]={isEnabled:t=>J_[e].some(n=>!!t[n])};function gxe(e){for(const t in e)Cf[t]={...Cf[t],...e[t]}}const Ox=R.createContext({}),X_=R.createContext({}),vxe=Symbol.for("motionComponentSymbol");function yxe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&gxe(e);function o(a,l){let u;const d={...R.useContext(V_),...a,layoutId:bxe(a)},{isStatic:f}=d,m=mxe(a),p=r(a,f);if(!f&&Jm){m.visualElement=fxe(i,p,d,t);const g=R.useContext(X_),v=R.useContext(W_).strict;m.visualElement&&(u=m.visualElement.loadFeatures(d,v,e,g))}return B.createElement(Km.Provider,{value:m},u&&m.visualElement?B.createElement(u,{visualElement:m.visualElement,...d}):null,n(i,a,hxe(p,m.visualElement,l),p,f,m.visualElement))}const s=R.forwardRef(o);return s[vxe]=i,s}function bxe({layoutId:e}){const t=R.useContext(Ox).id;return t&&e!==void 0?t+"-"+e:e}function xxe(e){function t(r,i={}){return yxe(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const wxe=["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 _x(e){return typeof e!="string"||e.includes("-")?!1:!!(wxe.indexOf(e)>-1||/[A-Z]/.test(e))}const ng={};function Sxe(e){Object.assign(ng,e)}const Tf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nl=new Set(Tf);function eR(e,{layout:t,layoutId:n}){return nl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ng[e]||e==="opacity")}const br=e=>!!(e&&e.getVelocity),Cxe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Txe=Tf.length;function $xe(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<Txe;s++){const a=Tf[s];if(e[a]!==void 0){const l=Cxe[a]||a;o+=`${l}(${e[a]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const tR=e=>t=>typeof t=="string"&&t.startsWith(e),nR=tR("--"),Exe=tR("var(--"),rg=e=>Exe(e)?kxe.test(e.split("/*")[0].trim()):!1,kxe=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,Axe=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Hs=(e,t,n)=>n>t?t:n<e?e:n,Yu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$f={...Yu,transform:e=>Hs(0,1,e)},ig={...Yu,default:1},Ef=e=>Math.round(e*1e5)/1e5,Rx=/(-)?([\d]*\.?[\d])+/g,Oxe=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,_xe=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function kf(e){return typeof e=="string"}const Af=e=>({test:t=>kf(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Us=Af("deg"),no=Af("%"),Xe=Af("px"),Rxe=Af("vh"),Pxe=Af("vw"),rR={...no,parse:e=>no.parse(e)/100,transform:e=>no.transform(e*100)},iR={...Yu,transform:Math.round},oR={borderWidth:Xe,borderTopWidth:Xe,borderRightWidth:Xe,borderBottomWidth:Xe,borderLeftWidth:Xe,borderRadius:Xe,radius:Xe,borderTopLeftRadius:Xe,borderTopRightRadius:Xe,borderBottomRightRadius:Xe,borderBottomLeftRadius:Xe,width:Xe,maxWidth:Xe,height:Xe,maxHeight:Xe,size:Xe,top:Xe,right:Xe,bottom:Xe,left:Xe,padding:Xe,paddingTop:Xe,paddingRight:Xe,paddingBottom:Xe,paddingLeft:Xe,margin:Xe,marginTop:Xe,marginRight:Xe,marginBottom:Xe,marginLeft:Xe,rotate:Us,rotateX:Us,rotateY:Us,rotateZ:Us,scale:ig,scaleX:ig,scaleY:ig,scaleZ:ig,skew:Us,skewX:Us,skewY:Us,distance:Xe,translateX:Xe,translateY:Xe,translateZ:Xe,x:Xe,y:Xe,z:Xe,perspective:Xe,transformPerspective:Xe,opacity:$f,originX:rR,originY:rR,originZ:Xe,zIndex:iR,fillOpacity:$f,strokeOpacity:$f,numOctaves:iR};function Px(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,u=!1,d=!0;for(const f in t){const m=t[f];if(nR(f)){o[f]=m;continue}const p=oR[f],g=Axe(m,p);if(nl.has(f)){if(l=!0,s[f]=g,!d)continue;m!==(p.default||0)&&(d=!1)}else f.startsWith("origin")?(u=!0,a[f]=g):i[f]=g}if(t.transform||(l||r?i.transform=$xe(e.transform,n,d,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:m="50%",originZ:p=0}=a;i.transformOrigin=`${f} ${m} ${p}`}}const Dx=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sR(e,t,n){for(const r in t)!br(t[r])&&!eR(r,n)&&(e[r]=t[r])}function Dxe({transformTemplate:e},t,n){return R.useMemo(()=>{const r=Dx();return Px(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Mxe(e,t,n){const r=e.style||{},i={};return sR(i,r,e),Object.assign(i,Dxe(e,t,n)),i}function Ixe(e,t,n){const r={},i=Mxe(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const Nxe=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","ignoreStrict","viewport"]);function og(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Nxe.has(e)}let aR=e=>!og(e);function Lxe(e){e&&(aR=t=>t.startsWith("on")?!og(t):e(t))}try{Lxe(require("@emotion/is-prop-valid").default)}catch{}function Fxe(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(aR(i)||n===!0&&og(i)||!t&&!og(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function lR(e,t,n){return typeof e=="string"?e:Xe.transform(t+n*e)}function jxe(e,t,n){const r=lR(t,e.x,e.width),i=lR(n,e.y,e.height);return`${r} ${i}`}const Bxe={offset:"stroke-dashoffset",array:"stroke-dasharray"},zxe={offset:"strokeDashoffset",array:"strokeDasharray"};function Hxe(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Bxe:zxe;e[o.offset]=Xe.transform(-r);const s=Xe.transform(t),a=Xe.transform(n);e[o.array]=`${s} ${a}`}function Mx(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},d,f,m){if(Px(e,u,d,m),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:v}=e;p.transform&&(v&&(g.transform=p.transform),delete p.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=jxe(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&Hxe(p,s,a,l,!1)}const uR=()=>({...Dx(),attrs:{}}),Ix=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Uxe(e,t,n,r){const i=R.useMemo(()=>{const o=uR();return Mx(o,t,{enableHardwareAcceleration:!1},Ix(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};sR(o,e.style,e),i.style={...o,...i.style}}return i}function Vxe(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(_x(n)?Uxe:Ixe)(r,o,s,n),u=Fxe(r,typeof n=="string",e),d=n!==R.Fragment?{...u,...l,ref:i}:{},{children:f}=r,m=R.useMemo(()=>br(f)?f.get():f,[f]);return R.createElement(n,{...d,children:m})}}function cR(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const dR=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function fR(e,t,n,r){cR(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(dR.has(i)?i:$x(i),t.attrs[i])}function Nx(e,t){const{style:n}=e,r={};for(const i in n)(br(n[i])||t.style&&br(t.style[i])||eR(i,e))&&(r[i]=n[i]);return r}function hR(e,t){const n=Nx(e,t);for(const r in e)if(br(e[r])||br(t[r])){const i=Tf.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Lx(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function pR(e){const t=R.useRef(null);return t.current===null&&(t.current=e()),t.current}const sg=e=>Array.isArray(e),Wxe=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),qxe=e=>sg(e)?e[e.length-1]||0:e;function ag(e){const t=br(e)?e.get():e;return Wxe(t)?t.toValue():t}function Gxe({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:Yxe(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const mR=e=>(t,n)=>{const r=R.useContext(Km),i=R.useContext(Qm),o=()=>Gxe(e,t,r,i);return n?o():pR(o)};function Yxe(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=ag(o[m]);let{initial:s,animate:a}=e;const l=tg(e),u=K_(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const f=d?a:s;return f&&typeof f!="boolean"&&!eg(f)&&(Array.isArray(f)?f:[f]).forEach(p=>{const g=Lx(e,p);if(!g)return;const{transitionEnd:v,transition:b,...x}=g;for(const w in x){let S=x[w];if(Array.isArray(S)){const C=d?S.length-1:0;S=S[C]}S!==null&&(i[w]=S)}for(const w in v)i[w]=v[w]}),i}const mn=e=>e,{schedule:Qt,cancel:jo,state:Bn,steps:Fx}=Z_(typeof requestAnimationFrame<"u"?requestAnimationFrame:mn,!0),Zxe={useVisualState:mR({scrapeMotionValuesFromProps:hR,createRenderState:uR,onMount:(e,t,{renderState:n,latestValues:r})=>{Qt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Qt.render(()=>{Mx(n,r,{enableHardwareAcceleration:!1},Ix(t.tagName),e.transformTemplate),fR(t,n)})}})},Kxe={useVisualState:mR({scrapeMotionValuesFromProps:Nx,createRenderState:Dx})};function Qxe(e,{forwardMotionProps:t=!1},n,r){return{..._x(e)?Zxe:Kxe,preloadedFeatures:n,useRender:Vxe(t),createVisualElement:r,Component:e}}function Bo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const gR=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function lg(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Jxe=e=>t=>gR(t)&&e(t,lg(t));function zo(e,t,n,r){return Bo(e,t,Jxe(n),r)}const Xxe=(e,t)=>n=>t(e(n)),Ho=(...e)=>e.reduce(Xxe);function vR(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const yR=vR("dragHorizontal"),bR=vR("dragVertical");function xR(e){let t=!1;if(e==="y")t=bR();else if(e==="x")t=yR();else{const n=yR(),r=bR();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function wR(){const e=xR(!0);return e?(e(),!1):!0}class Vs{constructor(t){this.isMounted=!1,this.node=t}update(){}}function SR(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||wR())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Qt.update(()=>a[r](o,s))};return zo(e.current,n,i,{passive:!e.getProps()[r]})}class e5e extends Vs{mount(){this.unmount=Ho(SR(this.node,!0),SR(this.node,!1))}unmount(){}}class t5e extends Vs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Ho(Bo(this.node.current,"focus",()=>this.onFocus()),Bo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const CR=(e,t)=>t?e===t?!0:CR(e,t.parentElement):!1;function jx(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,lg(n))}class n5e extends Vs{constructor(){super(...arguments),this.removeStartListeners=mn,this.removeEndListeners=mn,this.removeAccessibleListeners=mn,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=zo(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:d,globalTapTarget:f}=this.node.getProps();Qt.update(()=>{!f&&!CR(this.node.current,a.target)?d&&d(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=zo(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Ho(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||jx("up",(l,u)=>{const{onTap:d}=this.node.getProps();d&&Qt.update(()=>d(l,u))})};this.removeEndListeners(),this.removeEndListeners=Bo(this.node.current,"keyup",s),jx("down",(a,l)=>{this.startPress(a,l)})},n=Bo(this.node.current,"keydown",t),r=()=>{this.isPressing&&jx("cancel",(o,s)=>this.cancelPress(o,s))},i=Bo(this.node.current,"blur",r);this.removeAccessibleListeners=Ho(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Qt.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!wR()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Qt.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=zo(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Bo(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ho(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Bx=new WeakMap,zx=new WeakMap,r5e=e=>{const t=Bx.get(e.target);t&&t(e)},i5e=e=>{e.forEach(r5e)};function o5e({root:e,...t}){const n=e||document;zx.has(n)||zx.set(n,{});const r=zx.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(i5e,{root:e,...t})),r[i]}function s5e(e,t,n){const r=o5e(t);return Bx.set(e,n),r.observe(e),()=>{Bx.delete(e),r.unobserve(e)}}const a5e={some:0,all:1};class l5e extends Vs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:a5e[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),m=u?d:f;m&&m(l)};return s5e(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(u5e(t,n))&&this.startObserver()}unmount(){}}function u5e({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const c5e={inView:{Feature:l5e},tap:{Feature:n5e},focus:{Feature:t5e},hover:{Feature:e5e}};function TR(e,t){if(!Array.isArray(t))return!1;const 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}function d5e(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function f5e(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function ug(e,t,n){const r=e.getProps();return Lx(r,t,n!==void 0?n:r.custom,d5e(e),f5e(e))}let h5e=mn,Hx=mn;const Ws=e=>e*1e3,Uo=e=>e/1e3,p5e={current:!1},$R=e=>Array.isArray(e)&&typeof e[0]=="number";function ER(e){return!!(!e||typeof e=="string"&&kR[e]||$R(e)||Array.isArray(e)&&e.every(ER))}const Of=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,kR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Of([0,.65,.55,1]),circOut:Of([.55,0,1,.45]),backIn:Of([.31,.01,.66,-.59]),backOut:Of([.33,1.53,.69,.99])};function AR(e){if(e)return $R(e)?Of(e):Array.isArray(e)?e.map(AR):kR[e]}function m5e(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=AR(a);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function g5e(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const OR=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,v5e=1e-7,y5e=12;function b5e(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=OR(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>v5e&&++a<y5e);return s}function _f(e,t,n,r){if(e===t&&n===r)return mn;const i=o=>b5e(o,0,1,e,n);return o=>o===0||o===1?o:OR(i(o),t,r)}const x5e=_f(.42,0,1,1),w5e=_f(0,0,.58,1),_R=_f(.42,0,.58,1),S5e=e=>Array.isArray(e)&&typeof e[0]!="number",RR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,PR=e=>t=>1-e(1-t),Ux=e=>1-Math.sin(Math.acos(e)),DR=PR(Ux),C5e=RR(Ux),MR=_f(.33,1.53,.69,.99),Vx=PR(MR),T5e=RR(Vx),$5e={linear:mn,easeIn:x5e,easeInOut:_R,easeOut:w5e,circIn:Ux,circInOut:C5e,circOut:DR,backIn:Vx,backInOut:T5e,backOut:MR,anticipate:e=>(e*=2)<1?.5*Vx(e):.5*(2-Math.pow(2,-10*(e-1)))},IR=e=>{if(Array.isArray(e)){Hx(e.length===4);const[t,n,r,i]=e;return _f(t,n,r,i)}else if(typeof e=="string")return $5e[e];return e},Rf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},tn=(e,t,n)=>e+(t-e)*n;function Wx(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function E5e({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Wx(l,a,e+1/3),o=Wx(l,a,e),s=Wx(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const qx=(e,t)=>n=>!!(kf(n)&&_xe.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),NR=(e,t,n)=>r=>{if(!kf(r))return r;const[i,o,s,a]=r.match(Rx);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},k5e=e=>Hs(0,255,e),Gx={...Yu,transform:e=>Math.round(k5e(e))},rl={test:qx("rgb","red"),parse:NR("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Gx.transform(e)+", "+Gx.transform(t)+", "+Gx.transform(n)+", "+Ef($f.transform(r))+")"};function A5e(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Yx={test:qx("#"),parse:A5e,transform:rl.transform},Zu={test:qx("hsl","hue"),parse:NR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+no.transform(Ef(t))+", "+no.transform(Ef(n))+", "+Ef($f.transform(r))+")"},Zx=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},O5e=[Yx,rl,Zu],_5e=e=>O5e.find(t=>t.test(e));function LR(e){const t=_5e(e);let n=t.parse(e);return t===Zu&&(n=E5e(n)),n}const FR=(e,t)=>{const n=LR(e),r=LR(t),i={...n};return o=>(i.red=Zx(n.red,r.red,o),i.green=Zx(n.green,r.green,o),i.blue=Zx(n.blue,r.blue,o),i.alpha=tn(n.alpha,r.alpha,o),rl.transform(i))},Zn={test:e=>rl.test(e)||Yx.test(e)||Zu.test(e),parse:e=>rl.test(e)?rl.parse(e):Zu.test(e)?Zu.parse(e):Yx.parse(e),transform:e=>kf(e)?e:e.hasOwnProperty("red")?rl.transform(e):Zu.transform(e)};function R5e(e){var t,n;return isNaN(e)&&kf(e)&&(((t=e.match(Rx))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Oxe))===null||n===void 0?void 0:n.length)||0)>0}const jR="number",BR="color",P5e="var",D5e="var(",zR="${}",HR=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function cg(e){const t=e.toString(),n=t.match(HR)||[],r=[],i={color:[],number:[],var:[]},o=[];for(let l=0;l<n.length;l++){const u=n[l];Zn.test(u)?(i.color.push(l),o.push(BR),r.push(Zn.parse(u))):u.startsWith(D5e)?(i.var.push(l),o.push(P5e),r.push(u)):(i.number.push(l),o.push(jR),r.push(parseFloat(u)))}const a=t.replace(HR,zR).split(zR);return{values:r,split:a,indexes:i,types:o}}function UR(e){return cg(e).values}function VR(e){const{split:t,types:n}=cg(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const a=n[s];a===jR?o+=Ef(i[s]):a===BR?o+=Zn.transform(i[s]):o+=i[s]}return o}}const M5e=e=>typeof e=="number"?0:e;function I5e(e){const t=UR(e);return VR(e)(t.map(M5e))}const qs={test:R5e,parse:UR,createTransformer:VR,getAnimatableNone:I5e};function Kx(e,t){return n=>n>0?t:e}function N5e(e,t){return n=>tn(e,t,n)}function Qx(e){return typeof e=="number"?N5e:typeof e=="string"?rg(e)?Kx:Zn.test(e)?FR:j5e:Array.isArray(e)?WR:typeof e=="object"?Zn.test(e)?FR:L5e:Kx}function WR(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Qx(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function L5e(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Qx(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function F5e(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][i[s]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[o]=l,i[s]++}return r}const j5e=(e,t)=>{const n=qs.createTransformer(t),r=cg(e),i=cg(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ho(WR(F5e(r,i),i.values),n):Kx(e,t)};function qR(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tn(e,t,n):Qx(e)(e,t)}function B5e(e,t,n){const r=[],i=n||qR,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||mn:t;a=Ho(l,a)}r.push(a)}return r}function z5e(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Hx(o===t.length),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=B5e(t,r,i),a=s.length,l=u=>{let d=0;if(a>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=Rf(e[d],e[d+1],u);return s[d](f)};return n?u=>l(Hs(e[0],e[o-1],u)):l}function H5e(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Rf(0,t,r);e.push(tn(n,1,i))}}function U5e(e){const t=[0];return H5e(t,e.length-1),t}function V5e(e,t){return e.map(n=>n*t)}function W5e(e,t){return e.map(()=>t||_R).splice(0,e.length-1)}function dg({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=S5e(r)?r.map(IR):IR(r),o={done:!1,value:t[0]},s=V5e(n&&n.length===t.length?n:U5e(t),e),a=z5e(s,t,{ease:Array.isArray(i)?i:W5e(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function GR(e,t){return t?e*(1e3/t):0}const q5e=5;function YR(e,t,n){const r=Math.max(t-q5e,0);return GR(n-e(r),t-r)}const Jx=.001,G5e=.01,ZR=10,Y5e=.05,Z5e=1;function K5e({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;h5e(e<=Ws(ZR));let s=1-t;s=Hs(Y5e,Z5e,s),e=Hs(G5e,ZR,Uo(e)),s<1?(i=u=>{const d=u*s,f=d*e,m=d-n,p=Xx(u,s),g=Math.exp(-f);return Jx-m/p*g},o=u=>{const f=u*s*e,m=f*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-f),v=Xx(Math.pow(u,2),s);return(-i(u)+Jx>0?-1:1)*((m-p)*g)/v}):(i=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Jx+d*f},o=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const a=5/e,l=J5e(i,o,a);if(e=Ws(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const Q5e=12;function J5e(e,t,n){let r=n;for(let i=1;i<Q5e;i++)r=r-e(r)/t(r);return r}function Xx(e,t){return e*Math.sqrt(1-t*t)}const X5e=["duration","bounce"],e4e=["stiffness","damping","mass"];function KR(e,t){return t.some(n=>e[n]!==void 0)}function t4e(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!KR(e,e4e)&&KR(e,X5e)){const n=K5e(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function QR({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:m}=t4e({...r,velocity:-Uo(r.velocity||0)}),p=f||0,g=l/(2*Math.sqrt(a*u)),v=o-i,b=Uo(Math.sqrt(a/u)),x=Math.abs(v)<5;n||(n=x?.01:2),t||(t=x?.005:.5);let w;if(g<1){const S=Xx(b,g);w=C=>{const E=Math.exp(-g*b*C);return o-E*((p+g*b*v)/S*Math.sin(S*C)+v*Math.cos(S*C))}}else if(g===1)w=S=>o-Math.exp(-b*S)*(v+(p+b*v)*S);else{const S=b*Math.sqrt(g*g-1);w=C=>{const E=Math.exp(-g*b*C),k=Math.min(S*C,300);return o-E*((p+g*b*v)*Math.sinh(k)+S*v*Math.cosh(k))/S}}return{calculatedDuration:m&&d||null,next:S=>{const C=w(S);if(m)s.done=S>=d;else{let E=p;S!==0&&(g<1?E=YR(w,S,C):E=0);const k=Math.abs(E)<=n,O=Math.abs(o-C)<=t;s.done=k&&O}return s.value=s.done?o:C,s}}}function JR({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:d}){const f=e[0],m={done:!1,value:f},p=A=>a!==void 0&&A<a||l!==void 0&&A>l,g=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let v=n*t;const b=f+v,x=s===void 0?b:s(b);x!==b&&(v=x-f);const w=A=>-v*Math.exp(-A/r),S=A=>x+w(A),C=A=>{const D=w(A),M=S(A);m.done=Math.abs(D)<=u,m.value=m.done?x:M};let E,k;const O=A=>{p(m.value)&&(E=A,k=QR({keyframes:[m.value,g(m.value)],velocity:YR(S,A,m.value),damping:i,stiffness:o,restDelta:u,restSpeed:d}))};return O(0),{calculatedDuration:null,next:A=>{let D=!1;return!k&&E===void 0&&(D=!0,C(A),O(A)),E!==void 0&&A>E?k.next(A-E):(!D&&C(A),m)}}}let fg;function n4e(){fg=void 0}const il={now:()=>(fg===void 0&&il.set(Bn.isProcessing||G_.useManualTiming?Bn.timestamp:performance.now()),fg),set:e=>{fg=e,queueMicrotask(n4e)}},r4e=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Qt.update(t,!0),stop:()=>jo(t),now:()=>Bn.isProcessing?Bn.timestamp:il.now()}},XR=2e4;function eP(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<XR;)t+=n,r=e.next(t);return t>=XR?1/0:t}const i4e={decay:JR,inertia:JR,tween:dg,keyframes:dg,spring:QR},o4e=e=>e/100;function hg({autoplay:e=!0,delay:t=0,driver:n=r4e,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:d,onUpdate:f,...m}){let p=1,g=!1,v,b;const x=()=>{b=new Promise(se=>{v=se})};x();let w;const S=i4e[i]||dg;let C;S!==dg&&typeof r[0]!="number"&&(C=Ho(o4e,qR(r[0],r[1])),r=[0,100]);const E=S({...m,keyframes:r});let k;a==="mirror"&&(k=S({...m,keyframes:[...r].reverse(),velocity:-(m.velocity||0)}));let O="idle",A=null,D=null,M=null;E.calculatedDuration===null&&o&&(E.calculatedDuration=eP(E));const{calculatedDuration:j}=E;let F=1/0,z=1/0;j!==null&&(F=j+s,z=F*(o+1)-s);let H=0;const P=se=>{if(D===null)return;p>0&&(D=Math.min(D,se)),p<0&&(D=Math.min(se-z/p,D)),A!==null?H=A:H=Math.round(se-D)*p;const ke=H-t*(p>=0?1:-1),ve=p>=0?ke<0:ke>z;H=Math.max(ke,0),O==="finished"&&A===null&&(H=z);let pe=H,ye=E;if(o){const Ge=Math.min(H,z)/F;let rt=Math.floor(Ge),Re=Ge%1;!Re&&Ge>=1&&(Re=1),Re===1&&rt--,rt=Math.min(rt,o+1),!!(rt%2)&&(a==="reverse"?(Re=1-Re,s&&(Re-=s/F)):a==="mirror"&&(ye=k)),pe=Hs(0,1,Re)*F}const Te=ve?{done:!1,value:r[0]}:ye.next(pe);C&&(Te.value=C(Te.value));let{done:qe}=Te;!ve&&j!==null&&(qe=p>=0?H>=z:H<=0);const Ae=A===null&&(O==="finished"||O==="running"&&qe);return f&&f(Te.value),Ae&&K(),Te},U=()=>{w&&w.stop(),w=void 0},G=()=>{O="idle",U(),v(),x(),D=M=null},K=()=>{O="finished",d&&d(),U(),v()},ne=()=>{if(g)return;w||(w=n(P));const se=w.now();l&&l(),A!==null?D=se-A:(!D||O==="finished")&&(D=se),O==="finished"&&x(),M=D,A=null,O="running",w.start()};e&&ne();const ee={then(se,ke){return b.then(se,ke)},get time(){return Uo(H)},set time(se){se=Ws(se),H=se,A!==null||!w||p===0?A=se:D=w.now()-se/p},get duration(){const se=E.calculatedDuration===null?eP(E):E.calculatedDuration;return Uo(se)},get speed(){return p},set speed(se){se===p||!w||(p=se,ee.time=Uo(H))},get state(){return O},play:ne,pause:()=>{O="paused",A=H},stop:()=>{g=!0,O!=="idle"&&(O="idle",u&&u(),G())},cancel:()=>{M!==null&&P(M),G()},complete:()=>{O="finished"},sample:se=>(D=0,P(se))};return ee}function s4e(e){let t;return()=>(t===void 0&&(t=e()),t)}const a4e=s4e(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),l4e=new Set(["opacity","clipPath","filter","transform"]),pg=10,u4e=2e4,c4e=(e,t)=>t.type==="spring"||e==="backgroundColor"||!ER(t.ease);function d4e(e,t,{onUpdate:n,onComplete:r,...i}){if(!(a4e()&&l4e.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const d=()=>{l=new Promise(S=>{a=S})};d();let{keyframes:f,duration:m=300,ease:p,times:g}=i;if(c4e(t,i)){const S=hg({...i,repeat:0,delay:0});let C={done:!1,value:f[0]};const E=[];let k=0;for(;!C.done&&k<u4e;)C=S.sample(k),E.push(C.value),k+=pg;g=void 0,f=E,m=k-pg,p="linear"}const v=m5e(e.owner.current,t,f,{...i,duration:m,ease:p,times:g}),b=()=>{u=!1,v.cancel()},x=()=>{u=!0,Qt.update(b),a(),d()};return v.onfinish=()=>{u||(e.set(g5e(f,i)),r&&r(),x())},{then(S,C){return l.then(S,C)},attachTimeline(S){return v.timeline=S,v.onfinish=null,mn},get time(){return Uo(v.currentTime||0)},set time(S){v.currentTime=Ws(S)},get speed(){return v.playbackRate},set speed(S){v.playbackRate=S},get duration(){return Uo(m)},play:()=>{s||(v.play(),jo(b))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:S}=v;if(S){const C=hg({...i,autoplay:!1});e.setWithVelocity(C.sample(S-pg).value,C.sample(S).value,pg)}x()},complete:()=>{u||v.finish()},cancel:x}}function f4e({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:mn,pause:mn,stop:mn,then:o=>(o(),Promise.resolve()),cancel:mn,complete:mn});return t?hg({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const h4e={type:"spring",stiffness:500,damping:25,restSpeed:10},p4e=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),m4e={type:"keyframes",duration:.8},g4e={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},v4e=(e,{keyframes:t})=>t.length>2?m4e:nl.has(e)?e.startsWith("scale")?p4e(t[1]):h4e:g4e,e5=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(qs.test(t)||t==="0")&&!t.startsWith("url(")),y4e=new Set(["brightness","contrast","saturate","opacity"]);function b4e(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Rx)||[];if(!r)return e;const i=n.replace(r,"");let o=y4e.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const x4e=/([a-z-]*)\(.*?\)/g,t5={...qs,getAnimatableNone:e=>{const t=e.match(x4e);return t?t.map(b4e).join(" "):e}},w4e={...oR,color:Zn,backgroundColor:Zn,outlineColor:Zn,fill:Zn,stroke:Zn,borderColor:Zn,borderTopColor:Zn,borderRightColor:Zn,borderBottomColor:Zn,borderLeftColor:Zn,filter:t5,WebkitFilter:t5},n5=e=>w4e[e];function tP(e,t){let n=n5(e);return n!==t5&&(n=qs),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const nP=e=>/^0[^.\s]+$/.test(e);function S4e(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||nP(e)}function C4e(e,t,n,r){const i=e5(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;u<o.length;u++)o[u]===null&&(o[u]=u===0?s:o[u-1]),S4e(o[u])&&l.push(u),typeof o[u]=="string"&&o[u]!=="none"&&o[u]!=="0"&&(a=o[u]);if(i&&l.length&&a)for(let u=0;u<l.length;u++){const d=l[u];o[d]=tP(t,a)}return o}function T4e({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...d}){return!!Object.keys(d).length}function r5(e,t){return e[t]||e.default||e}const i5=(e,t,n,r={})=>i=>{const o=r5(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Ws(s);const l=C4e(t,e,n,o),u=l[0],d=l[l.length-1],f=e5(e,u),m=e5(e,d);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(T4e(o)||(p={...p,...v4e(e,p)}),p.duration&&(p.duration=Ws(p.duration)),p.repeatDelay&&(p.repeatDelay=Ws(p.repeatDelay)),!f||!m||p5e.current||o.type===!1||G_.skipAnimations)return f4e(p);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=d4e(t,e,p);if(g)return g}return hg(p)};function mg(e){return!!(br(e)&&e.add)}const rP=e=>/^\-?\d*\.?\d+$/.test(e);function o5(e,t){e.indexOf(t)===-1&&e.push(t)}function s5(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class a5{constructor(){this.subscriptions=[]}add(t){return o5(this.subscriptions,t),()=>s5(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const iP=30,$4e=e=>!isNaN(parseFloat(e));class E4e{constructor(t,n={}){this.version="11.0.8",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=il.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=$4e(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=il.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new a5);const r=this.events[t].add(n);return t==="change"?()=>{r(),Qt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=il.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>iP)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,iP);return GR(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ku(e,t){return new E4e(e,t)}const oP=e=>t=>t.test(e),sP=[Yu,Xe,no,Us,Pxe,Rxe,{test:e=>e==="auto",parse:e=>e}],Pf=e=>sP.find(oP(e)),k4e=[...sP,Zn,qs],A4e=e=>k4e.find(oP(e));function O4e(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ku(n))}function _4e(e,t){const n=ug(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=qxe(o[s]);O4e(e,s,a)}}function R4e(e,t,n){var r,i;const o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],u=t[l];let d=null;Array.isArray(u)&&(d=u[0]),d===null&&(d=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),d!=null&&(typeof d=="string"&&(rP(d)||nP(d))?d=parseFloat(d):!A4e(d)&&qs.test(u)&&(d=tP(l,u)),e.addValue(l,Ku(d,{owner:e})),n[l]===void 0&&(n[l]=d),d!==null&&e.setBaseTarget(l,d))}}function P4e(e,t){return t?(t[e]||t.default||t).from:void 0}function D4e(e,t,n){const r={};for(const i in e){const o=P4e(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function M4e({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function I4e(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function aP(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in a){const m=e.getValue(f),p=a[f];if(!m||p===void 0||d&&M4e(d,f))continue;const g={delay:n,elapsed:0,...r5(o||{},f)};if(window.HandoffAppearAnimations){const x=e.getProps()[q_];if(x){const w=window.HandoffAppearAnimations(x,f,m,Qt);w!==null&&(g.elapsed=w,g.isHandoff=!0)}}let v=!g.isHandoff&&!I4e(m,p);if(g.type==="spring"&&(m.getVelocity()||g.velocity)&&(v=!1),m.animation&&(v=!1),v)continue;m.start(i5(f,m,p,e.shouldReduceMotion&&nl.has(f)?{type:!1}:g));const b=m.animation;mg(l)&&(l.add(f),b.then(()=>l.remove(f))),u.push(b)}return s&&Promise.all(u).then(()=>{s&&_4e(e,s)}),u}function l5(e,t,n={}){const r=ug(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(aP(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return N4e(e,t,u+l,d,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function N4e(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(L4e).forEach((u,d)=>{u.notify("AnimationStart",t),s.push(l5(u,t,{...o,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function L4e(e,t){return e.sortNodePosition(t)}function F4e(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>l5(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=l5(e,t,n);else{const i=typeof t=="function"?ug(e,t,n.custom):t;r=Promise.all(aP(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const j4e=[...kx].reverse(),B4e=kx.length;function z4e(e){return t=>Promise.all(t.map(({animation:n,options:r})=>F4e(e,n,r)))}function H4e(e){let t=z4e(e);const n=V4e();let r=!0;const i=(l,u)=>{const d=ug(e,u);if(d){const{transition:f,transitionEnd:m,...p}=d;l={...l,...p,...m}}return l};function o(l){t=l(e)}function s(l,u){const d=e.getProps(),f=e.getVariantContext(!0)||{},m=[],p=new Set;let g={},v=1/0;for(let x=0;x<B4e;x++){const w=j4e[x],S=n[w],C=d[w]!==void 0?d[w]:f[w],E=Sf(C),k=w===u?S.isActive:null;k===!1&&(v=x);let O=C===f[w]&&C!==d[w]&&E;if(O&&r&&e.manuallyAnimateOnMount&&(O=!1),S.protectedKeys={...g},!S.isActive&&k===null||!C&&!S.prevProp||eg(C)||typeof C=="boolean")continue;let D=U4e(S.prevProp,C)||w===u&&S.isActive&&!O&&E||x>v&&E,M=!1;const j=Array.isArray(C)?C:[C];let F=j.reduce(i,{});k===!1&&(F={});const{prevResolvedValues:z={}}=S,H={...z,...F},P=U=>{D=!0,p.has(U)&&(M=!0,p.delete(U)),S.needsAnimating[U]=!0};for(const U in H){const G=F[U],K=z[U];if(g.hasOwnProperty(U))continue;let ne=!1;sg(G)&&sg(K)?ne=!TR(G,K):ne=G!==K,ne?G!==void 0?P(U):p.add(U):G!==void 0&&p.has(U)?P(U):S.protectedKeys[U]=!0}S.prevProp=C,S.prevResolvedValues=F,S.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(D=!1),D&&(!O||M)&&m.push(...j.map(U=>({animation:U,options:{type:w,...l}})))}if(p.size){const x={};p.forEach(w=>{const S=e.getBaseTarget(w);S!==void 0&&(x[w]=S)}),m.push({animation:x})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function a(l,u,d){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),n[l].isActive=u;const m=s(d,l);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function U4e(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!TR(t,e):!1}function ol(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function V4e(){return{animate:ol(!0),whileInView:ol(),whileHover:ol(),whileTap:ol(),whileDrag:ol(),whileFocus:ol(),exit:ol()}}class W4e extends Vs{constructor(t){super(t),t.animationState||(t.animationState=H4e(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),eg(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let q4e=0;class G4e extends Vs{constructor(){super(...arguments),this.id=q4e++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Y4e={animation:{Feature:W4e},exit:{Feature:G4e}},lP=(e,t)=>Math.abs(e-t);function Z4e(e,t){const n=lP(e.x,t.x),r=lP(e.y,t.y);return Math.sqrt(n**2+r**2)}class uP{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=c5(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=Z4e(f.offset,{x:0,y:0})>=3;if(!m&&!p)return;const{point:g}=f,{timestamp:v}=Bn;this.history.push({...g,timestamp:v});const{onStart:b,onMove:x}=this.handlers;m||(b&&b(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=u5(m,this.transformPagePoint),Qt.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=c5(f.type==="pointercancel"?this.lastMoveEventInfo:u5(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,b),g&&g(f,b)},!gR(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=lg(t),a=u5(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Bn;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,c5(a,this.history)),this.removeListeners=Ho(zo(this.contextWindow,"pointermove",this.handlePointerMove),zo(this.contextWindow,"pointerup",this.handlePointerUp),zo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),jo(this.updatePoint)}}function u5(e,t){return t?{point:t(e.point)}:e}function cP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function c5({point:e},t){return{point:e,delta:cP(e,dP(t)),offset:cP(e,K4e(t)),velocity:Q4e(t,.1)}}function K4e(e){return e[0]}function dP(e){return e[e.length-1]}function Q4e(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=dP(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ws(t)));)n--;if(!r)return{x:0,y:0};const o=Uo(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Fr(e){return e.max-e.min}function d5(e,t=0,n=.01){return Math.abs(e-t)<=n}function fP(e,t,n,r=.5){e.origin=r,e.originPoint=tn(t.min,t.max,e.origin),e.scale=Fr(n)/Fr(t),(d5(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=tn(n.min,n.max,e.origin)-e.originPoint,(d5(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Df(e,t,n,r){fP(e.x,t.x,n.x,r?r.originX:void 0),fP(e.y,t.y,n.y,r?r.originY:void 0)}function hP(e,t,n){e.min=n.min+t.min,e.max=e.min+Fr(t)}function J4e(e,t,n){hP(e.x,t.x,n.x),hP(e.y,t.y,n.y)}function pP(e,t,n){e.min=t.min-n.min,e.max=e.min+Fr(t)}function Mf(e,t,n){pP(e.x,t.x,n.x),pP(e.y,t.y,n.y)}function X4e(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tn(n,e,r.max):Math.min(e,n)),e}function mP(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ewe(e,{top:t,left:n,bottom:r,right:i}){return{x:mP(e.x,n,i),y:mP(e.y,t,r)}}function gP(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 twe(e,t){return{x:gP(e.x,t.x),y:gP(e.y,t.y)}}function nwe(e,t){let n=.5;const r=Fr(e),i=Fr(t);return i>r?n=Rf(t.min,t.max-r,e.min):r>i&&(n=Rf(e.min,e.max-i,t.min)),Hs(0,1,n)}function rwe(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const f5=.35;function iwe(e=f5){return e===!1?e=0:e===!0&&(e=f5),{x:vP(e,"left","right"),y:vP(e,"top","bottom")}}function vP(e,t,n){return{min:yP(e,t),max:yP(e,n)}}function yP(e,t){return typeof e=="number"?e:e[t]||0}const bP=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qu=()=>({x:bP(),y:bP()}),xP=()=>({min:0,max:0}),gn=()=>({x:xP(),y:xP()});function ai(e){return[e("x"),e("y")]}function wP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function owe({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function swe(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function h5(e){return e===void 0||e===1}function p5({scale:e,scaleX:t,scaleY:n}){return!h5(e)||!h5(t)||!h5(n)}function sl(e){return p5(e)||SP(e)||e.z||e.rotate||e.rotateX||e.rotateY}function SP(e){return CP(e.x)||CP(e.y)}function CP(e){return e&&e!=="0%"}function gg(e,t,n){const r=e-n,i=t*r;return n+i}function TP(e,t,n,r,i){return i!==void 0&&(e=gg(e,i,r)),gg(e,n,r)+t}function m5(e,t=0,n=1,r,i){e.min=TP(e.min,t,n,r,i),e.max=TP(e.max,t,n,r,i)}function $P(e,{x:t,y:n}){m5(e.x,t.translate,t.scale,t.originPoint),m5(e.y,n.translate,n.scale,n.originPoint)}function awe(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ju(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,$P(e,s)),r&&sl(o.latestValues)&&Ju(e,o.latestValues))}t.x=EP(t.x),t.y=EP(t.y)}function EP(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Gs(e,t){e.min=e.min+t,e.max=e.max+t}function kP(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=tn(e.min,e.max,o);m5(e,t[n],t[r],s,t.scale)}const lwe=["x","scaleX","originX"],uwe=["y","scaleY","originY"];function Ju(e,t){kP(e.x,t,lwe),kP(e.y,t,uwe)}function AP(e,t){return wP(swe(e.getBoundingClientRect(),t))}function cwe(e,t,n){const r=AP(e,n),{scroll:i}=t;return i&&(Gs(r.x,i.offset.x),Gs(r.y,i.offset.y)),r}const OP=({current:e})=>e?e.ownerDocument.defaultView:null,dwe=new WeakMap;class fwe{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(lg(d,"page").point)},o=(d,f)=>{const{drag:m,dragPropagation:p,onDragStart:g}=this.getProps();if(m&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=xR(m),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ai(b=>{let x=this.getAxisMotionValue(b).get()||0;if(no.test(x)){const{projection:w}=this.visualElement;if(w&&w.layout){const S=w.layout.layoutBox[b];S&&(x=Fr(S)*(parseFloat(x)/100))}}this.originPoint[b]=x}),g&&Qt.update(()=>g(d,f),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(d,f)=>{const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:g,onDrag:v}=this.getProps();if(!m&&!this.openGlobalLock)return;const{offset:b}=f;if(p&&this.currentDirection===null){this.currentDirection=hwe(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,b),this.updateAxis("y",f.point,b),this.visualElement.render(),v&&v(d,f)},a=(d,f)=>this.stop(d,f),l=()=>ai(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new uP(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:OP(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Qt.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!vg(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=X4e(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Gu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=ewe(i.layoutBox,n):this.constraints=!1,this.elastic=iwe(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ai(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=rwe(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gu(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=cwe(r,i.root,this.visualElement.getTransformPagePoint());let s=twe(i.layout.layoutBox,o);if(n){const a=n(owe(s));this.hasMutatedConstraints=!!a,a&&(s=wP(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=ai(d=>{if(!vg(d,n,this.currentDirection))return;let f=l&&l[d]||{};s&&(f={min:0,max:0});const m=i?200:1e6,p=i?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:m,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(i5(t,r,0,n))}stopAnimation(){ai(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ai(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ai(n=>{const{drag:r}=this.getProps();if(!vg(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-tn(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Gu(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ai(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=nwe({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ai(s=>{if(!vg(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(tn(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;dwe.set(this.visualElement,this);const t=this.visualElement.current,n=zo(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Gu(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=Bo(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ai(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=f5,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function vg(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function hwe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class pwe extends Vs{constructor(t){super(t),this.removeGroupControls=mn,this.removeListeners=mn,this.controls=new fwe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||mn}unmount(){this.removeGroupControls(),this.removeListeners()}}const _P=e=>(t,n)=>{e&&Qt.update(()=>e(t,n))};class mwe extends Vs{constructor(){super(...arguments),this.removePointerDownListener=mn}onPointerDown(t){this.session=new uP(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:OP(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:_P(t),onStart:_P(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Qt.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=zo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function gwe(){const e=R.useContext(Qm);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=R.useId();return R.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const yg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function RP(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const If={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Xe.test(e))e=parseFloat(e);else return e;const n=RP(e,t.target.x),r=RP(e,t.target.y);return`${n}% ${r}%`}},vwe={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=qs.parse(e);if(i.length>5)return r;const o=qs.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=tn(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class ywe extends R.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Sxe(bwe),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),yg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Qt.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ex.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function PP(e){const[t,n]=gwe(),r=R.useContext(Ox);return R.createElement(ywe,{...e,layoutGroup:r,switchLayoutGroup:R.useContext(X_),isPresent:t,safeToRemove:n})}const bwe={borderRadius:{...If,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:If,borderTopRightRadius:If,borderBottomLeftRadius:If,borderBottomRightRadius:If,boxShadow:vwe},DP=["TopLeft","TopRight","BottomLeft","BottomRight"],xwe=DP.length,MP=e=>typeof e=="string"?parseFloat(e):e,IP=e=>typeof e=="number"||Xe.test(e);function wwe(e,t,n,r,i,o){i?(e.opacity=tn(0,n.opacity!==void 0?n.opacity:1,Swe(r)),e.opacityExit=tn(t.opacity!==void 0?t.opacity:1,0,Cwe(r))):o&&(e.opacity=tn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<xwe;s++){const a=`border${DP[s]}Radius`;let l=NP(t,a),u=NP(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||IP(l)===IP(u)?(e[a]=Math.max(tn(MP(l),MP(u),r),0),(no.test(u)||no.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=tn(t.rotate||0,n.rotate||0,r))}function NP(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Swe=LP(0,.5,DR),Cwe=LP(.5,.95,mn);function LP(e,t,n){return r=>r<e?0:r>t?1:n(Rf(e,t,r))}function FP(e,t){e.min=t.min,e.max=t.max}function li(e,t){FP(e.x,t.x),FP(e.y,t.y)}function jP(e,t,n,r,i){return e-=t,e=gg(e,1/n,r),i!==void 0&&(e=gg(e,1/i,r)),e}function Twe(e,t=0,n=1,r=.5,i,o=e,s=e){if(no.test(t)&&(t=parseFloat(t),t=tn(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=tn(o.min,o.max,r);e===o&&(a-=t),e.min=jP(e.min,t,n,a,i),e.max=jP(e.max,t,n,a,i)}function BP(e,t,[n,r,i],o,s){Twe(e,t[n],t[r],t[i],t.scale,o,s)}const $we=["x","scaleX","originX"],Ewe=["y","scaleY","originY"];function zP(e,t,n,r){BP(e.x,t,$we,n?n.x:void 0,r?r.x:void 0),BP(e.y,t,Ewe,n?n.y:void 0,r?r.y:void 0)}function HP(e){return e.translate===0&&e.scale===1}function UP(e){return HP(e.x)&&HP(e.y)}function kwe(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function VP(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function WP(e){return Fr(e.x)/Fr(e.y)}class Awe{constructor(){this.members=[]}add(t){o5(this.members,t),t.scheduleRender()}remove(t){if(s5(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function qP(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:d}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),d&&(r+=`rotateY(${d}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const Owe=(e,t)=>e.depth-t.depth;class _we{constructor(){this.children=[],this.isDirty=!1}add(t){o5(this.children,t),this.isDirty=!0}remove(t){s5(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Owe),this.isDirty=!1,this.children.forEach(t)}}function Rwe(e,t){const n=il.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(jo(r),e(o-t))};return Qt.read(r,!0),()=>jo(r)}function Pwe(e){window.MotionDebug&&window.MotionDebug.record(e)}function Dwe(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Mwe(e,t,n){const r=br(e)?e:Ku(e);return r.start(i5("",r,t,n)),r.animation}const GP=["","X","Y","Z"],Iwe={visibility:"hidden"},YP=1e3;let Nwe=0;const al={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ZP({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=Nwe++,this.animationId=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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,al.totalNodes=al.resolvedTargetDeltas=al.recalculatedProjection=0,this.nodes.forEach(jwe),this.nodes.forEach(Vwe),this.nodes.forEach(Wwe),this.nodes.forEach(Bwe),Pwe(al)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new _we)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new a5),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Dwe(s),this.instance=s;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const m=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Rwe(m,250),yg.hasAnimatedSinceResize&&(yg.hasAnimatedSinceResize=!1,this.nodes.forEach(QP))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:m,hasRelativeTargetChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||Kwe,{onLayoutAnimationStart:b,onLayoutAnimationComplete:x}=d.getProps(),w=!this.targetLayout||!VP(this.targetLayout,g)||p,S=!m&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||m&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const C={...r5(v,"layout"),onPlay:b,onComplete:x};(d.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else m||QP(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,jo(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(qwe),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(KP);return}this.isUpdating||this.nodes.forEach(Hwe),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(Uwe),this.nodes.forEach(Lwe),this.nodes.forEach(Fwe),this.clearAllSnapshots();const a=il.now();Bn.delta=Hs(0,1e3/60,a-Bn.timestamp),Bn.timestamp=a,Bn.isProcessing=!0,Fx.update.process(Bn),Fx.preRender.process(Bn),Fx.render.process(Bn),Bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ex.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(zwe),this.sharedNodes.forEach(Gwe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=gn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!UP(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&(a||sl(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Qwe(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return gn();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(Gs(a.x,l.offset.x),Gs(a.y,l.offset.y)),a}removeElementScroll(s){const a=gn();li(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:d,options:f}=u;if(u!==this.root&&d&&f.layoutScroll){if(d.isRoot){li(a,s);const{scroll:m}=this.root;m&&(Gs(a.x,-m.offset.x),Gs(a.y,-m.offset.y))}Gs(a.x,d.offset.x),Gs(a.y,d.offset.y)}}return a}applyTransform(s,a=!1){const l=gn();li(l,s);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ju(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),sl(d.latestValues)&&Ju(l,d.latestValues)}return sl(this.latestValues)&&Ju(l,this.latestValues),l}removeTransform(s){const a=gn();li(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!sl(u.latestValues))continue;p5(u.latestValues)&&u.updateSnapshot();const d=gn(),f=u.measurePageBox();li(d,f),zP(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return sl(this.latestValues)&&zP(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}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!==Bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:m}=this.options;if(!(!this.layout||!(f||m))){if(this.resolvedRelativeTargetAt=Bn.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gn(),this.relativeTargetOrigin=gn(),Mf(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),li(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=gn(),this.targetWithTransforms=gn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),J4e(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):li(this.target,this.layout.layoutBox),$P(this.target,this.targetDelta)):li(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gn(),this.relativeTargetOrigin=gn(),Mf(this.relativeTargetOrigin,this.target,p.target),li(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}al.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||p5(this.parent.latestValues)||SP(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Bn.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;li(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,p=this.treeScale.y;awe(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=gn());const{target:g}=a;if(!g){this.projectionTransform&&(this.projectionDelta=Qu(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Qu(),this.projectionDeltaWithTransform=Qu());const v=this.projectionTransform;Df(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=qP(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==m||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),al.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=Qu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const m=gn(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,v=p!==g,b=this.getStack(),x=!b||b.members.length<=1,w=!!(v&&!x&&this.options.crossfade===!0&&!this.path.some(Zwe));this.animationProgress=0;let S;this.mixTargetDelta=C=>{const E=C/1e3;JP(f.x,s.x,E),JP(f.y,s.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mf(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ywe(this.relativeTarget,this.relativeTargetOrigin,m,E),S&&kwe(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=gn()),li(S,this.relativeTarget)),v&&(this.animationValues=d,wwe(d,u,this.latestValues,E,w,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(jo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qt.update(()=>{yg.hasAnimatedSinceResize=!0,this.currentAnimation=Mwe(0,YP,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(YP),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&rD(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||gn();const f=Fr(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const m=Fr(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+m}li(a,l),Ju(a,d),Df(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Awe),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let d=0;d<GP.length;d++){const f="rotate"+GP[d];l[f]&&(u[f]=l[f],s.setStaticValue(f,0))}s.render();for(const d in u)s.setStaticValue(d,u[d]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Iwe;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=ag(s==null?void 0:s.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=ag(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!sl(this.latestValues)&&(v.transform=d?d({},""):"none",this.hasProjected=!1),v}const m=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=qP(this.projectionDeltaWithTransform,this.treeScale,m),d&&(u.transform=d(m,u.transform));const{x:p,y:g}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${g.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(a=m.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:u.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const v in ng){if(m[v]===void 0)continue;const{correct:b,applyTo:x}=ng[v],w=u.transform==="none"?m[v]:b(m[v],f);if(x){const S=x.length;for(let C=0;C<S;C++)u[x[C]]=w}else u[v]=w}return this.options.layoutId&&(u.pointerEvents=f===this?ag(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(KP),this.root.sharedNodes.clear()}}}function Lwe(e){e.updateLayout()}function Fwe(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?ai(f=>{const m=s?n.measuredBox[f]:n.layoutBox[f],p=Fr(m);m.min=r[f].min,m.max=m.min+p}):rD(o,n.layoutBox,r)&&ai(f=>{const m=s?n.measuredBox[f]:n.layoutBox[f],p=Fr(r[f]);m.max=m.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const a=Qu();Df(a,r,n.layoutBox);const l=Qu();s?Df(l,e.applyTransform(i,!0),n.measuredBox):Df(l,r,n.layoutBox);const u=!UP(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:m,layout:p}=f;if(m&&p){const g=gn();Mf(g,n.layoutBox,m.layoutBox);const v=gn();Mf(v,r,p.layoutBox),VP(g,v)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function jwe(e){al.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Bwe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zwe(e){e.clearSnapshot()}function KP(e){e.clearMeasurements()}function Hwe(e){e.isLayoutDirty=!1}function Uwe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function QP(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Vwe(e){e.resolveTargetDelta()}function Wwe(e){e.calcProjection()}function qwe(e){e.resetRotation()}function Gwe(e){e.removeLeadSnapshot()}function JP(e,t,n){e.translate=tn(t.translate,0,n),e.scale=tn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function XP(e,t,n,r){e.min=tn(t.min,n.min,r),e.max=tn(t.max,n.max,r)}function Ywe(e,t,n,r){XP(e.x,t.x,n.x,r),XP(e.y,t.y,n.y,r)}function Zwe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Kwe={duration:.45,ease:[.4,0,.1,1]},eD=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tD=eD("applewebkit/")&&!eD("chrome/")?Math.round:mn;function nD(e){e.min=tD(e.min),e.max=tD(e.max)}function Qwe(e){nD(e.x),nD(e.y)}function rD(e,t,n){return e==="position"||e==="preserve-aspect"&&!d5(WP(t),WP(n),.2)}const Jwe=ZP({attachResizeListener:(e,t)=>Bo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),g5={current:void 0},iD=ZP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!g5.current){const e=new Jwe({});e.mount(window),e.setOptions({layoutScroll:!0}),g5.current=e}return g5.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Xwe={pan:{Feature:mwe},drag:{Feature:pwe,ProjectionNode:iD,MeasureLayout:PP}},e8e=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function t8e(e){const t=e8e.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function v5(e,t,n=1){const[r,i]=t8e(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return rP(s)?parseFloat(s):s}else return rg(i)?v5(i,t,n+1):i}function n8e(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!rg(o))return;const s=v5(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!rg(o))continue;const s=v5(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const r8e=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),oD=e=>r8e.has(e),i8e=e=>Object.keys(e).some(oD),sD=e=>e===Yu||e===Xe,aD=(e,t)=>parseFloat(e.split(", ")[t]),lD=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return aD(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?aD(o[1],e):0}},o8e=new Set(["x","y","z"]),s8e=Tf.filter(e=>!o8e.has(e));function a8e(e){const t=[];return s8e.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Xu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:lD(4,13),y:lD(5,14)};Xu.translateX=Xu.x,Xu.translateY=Xu.y;const l8e=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Xu[u](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const d=t.getValue(u);d&&d.jump(a[u]),e[u]=Xu[u](l,o)}),e},u8e=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(oD);let o=[],s=!1;const a=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],f=Pf(d);const m=t[l];let p;if(sg(m)){const g=m.length,v=m[0]===null?1:0;d=m[v],f=Pf(d);for(let b=v;b<g&&m[b]!==null;b++)p?Hx(Pf(m[b])===p):p=Pf(m[b])}else p=Pf(m);if(f!==p)if(sD(f)&&sD(p)){const g=u.get();typeof g=="string"&&u.set(parseFloat(g)),typeof m=="string"?t[l]=parseFloat(m):Array.isArray(m)&&p===Xe&&(t[l]=m.map(parseFloat))}else f!=null&&f.transform&&(p!=null&&p.transform)&&(d===0||m===0)?d===0?u.set(p.transform(d)):t[l]=f.transform(m):(s||(o=a8e(e),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:t[l],u.jump(m))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,u=l8e(t,e,a);return o.length&&o.forEach(([d,f])=>{e.getValue(d).set(f)}),e.render(),Jm&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function c8e(e,t,n,r){return i8e(t)?u8e(e,t,n,r):{target:t,transitionEnd:r}}const d8e=(e,t,n,r)=>{const i=n8e(e,t,r);return t=i.target,r=i.transitionEnd,c8e(e,t,n,r)},y5={current:null},uD={current:!1};function f8e(){if(uD.current=!0,!!Jm)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>y5.current=e.matches;e.addListener(t),t()}else y5.current=!1}function h8e(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(br(o))e.addValue(i,o),mg(r)&&r.add(i);else if(br(s))e.addValue(i,Ku(o,{owner:e})),mg(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,Ku(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const cD=new WeakMap,dD=Object.keys(Cf),p8e=dD.length,fD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],m8e=Ax.length;class g8e{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Qt.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=tg(n),this.isVariantNode=K_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{});for(const f in d){const m=d[f];a[f]!==void 0&&br(m)&&(m.set(a[f],!1),mg(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,cD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),uD.current||f8e(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:y5.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){cD.delete(this.current),this.projection&&this.projection.unmount(),jo(this.notifyUpdate),jo(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=nl.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Qt.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,a;for(let l=0;l<p8e;l++){const u=dD[l],{isEnabled:d,Feature:f,ProjectionNode:m,MeasureLayout:p}=Cf[u];m&&(s=m),d(n)&&(!this.features[u]&&f&&(this.features[u]=new f(this)),p&&(a=p))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:d,dragConstraints:f,layoutScroll:m,layoutRoot:p}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!d||f&&Gu(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:m,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<fD.length;r++){const i=fD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=h8e(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<m8e;r++){const i=Ax[r],o=this.props[i];(Sf(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ku(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Lx(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!br(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new a5),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class hD extends g8e{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},i){const o=D4e(r,t||{},this);if(i){R4e(this,r,o);const s=d8e(this,r,o,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function v8e(e){return window.getComputedStyle(e)}class y8e extends hD{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(nl.has(n)){const r=n5(n);return r&&r.default||0}else{const r=v8e(t),i=(nR(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return AP(t,n)}build(t,n,r,i){Px(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Nx(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;br(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){cR(t,n,r,i)}}class b8e extends hD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(nl.has(n)){const r=n5(n);return r&&r.default||0}return n=dR.has(n)?n:$x(n),t.getAttribute(n)}measureInstanceViewportBox(){return gn()}scrapeMotionValuesFromProps(t,n){return hR(t,n)}build(t,n,r,i){Mx(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){fR(t,n,r,i)}mount(t){this.isSVGTag=Ix(t.tagName),super.mount(t)}}const x8e=(e,t)=>_x(e)?new b8e(t,{enableHardwareAcceleration:!1}):new y8e(t,{enableHardwareAcceleration:!0}),w8e={...Y4e,...c5e,...Xwe,...{layout:{ProjectionNode:iD,MeasureLayout:PP}}},ll=xxe((e,t)=>Qxe(e,t,w8e,x8e));function pD(){const e=R.useRef(!1);return Tx(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function S8e(){const e=pD(),[t,n]=R.useState(0),r=R.useCallback(()=>{e.current&&n(t+1)},[t]);return[R.useCallback(()=>Qt.postRender(r),[r]),t]}class C8e extends B.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function T8e({children:e,isPresent:t}){const n=R.useId(),r=R.useRef(null),i=R.useRef({width:0,height:0,top:0,left:0});return R.useInsertionEffect(()=>{const{width:o,height:s,top:a,left:l}=i.current;if(t||!r.current||!o||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
|
|
274
274
|
[data-motion-pop-id="${n}"] {
|
|
275
275
|
position: absolute !important;
|
|
276
276
|
width: ${o}px !important;
|
|
@@ -1146,26 +1146,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1146
1146
|
}
|
|
1147
1147
|
`,Ske=Ul`
|
|
1148
1148
|
:root {
|
|
1149
|
-
--fc-border-color: #efefef;
|
|
1150
|
-
--fc-button-text-color: #2c2f34;
|
|
1151
|
-
--fc-button-bg-color: transparent;
|
|
1152
|
-
--fc-button-border-color: #d0d0d0;
|
|
1153
|
-
--fc-button-hover-bg-color: #e2f0fc;
|
|
1154
|
-
--fc-button-active-bg-color: #94adc3;
|
|
1155
|
-
--fc-event-bg-color: #fff;
|
|
1156
|
-
--fc-event-text-color: #555;
|
|
1157
|
-
--fc-event-border-color: #fff;
|
|
1158
|
-
--fc-today-bg-color: transparent;
|
|
1159
|
-
--fc-event-shadow-color: #d0d0d0;
|
|
1149
|
+
--fc-border-color: #efefef !important;
|
|
1150
|
+
--fc-button-text-color: #2c2f34 !important;
|
|
1151
|
+
--fc-button-bg-color: transparent !important;
|
|
1152
|
+
--fc-button-border-color: #d0d0d0 !important;
|
|
1153
|
+
--fc-button-hover-bg-color: #e2f0fc !important;
|
|
1154
|
+
--fc-button-active-bg-color: #94adc3 !important;
|
|
1155
|
+
--fc-event-bg-color: #fff !important;
|
|
1156
|
+
--fc-event-text-color: #555 !important;
|
|
1157
|
+
--fc-event-border-color: #fff !important;
|
|
1158
|
+
--fc-today-bg-color: transparent !important;
|
|
1159
|
+
--fc-event-shadow-color: #d0d0d0 !important;
|
|
1160
1160
|
}
|
|
1161
1161
|
.fc .fc-today-button {
|
|
1162
|
-
border: 0px;
|
|
1162
|
+
border: 0px !important;
|
|
1163
1163
|
}
|
|
1164
1164
|
.fc .fc-prev-button {
|
|
1165
|
-
border: 0px;
|
|
1165
|
+
border: 0px !important;
|
|
1166
1166
|
}
|
|
1167
1167
|
.fc .fc-next-button {
|
|
1168
|
-
border: 0px;
|
|
1168
|
+
border: 0px !important;
|
|
1169
1169
|
}
|
|
1170
1170
|
.fc .fc-button-primary:focus {
|
|
1171
1171
|
box-shadow: 0 0 0 0rem #4c5b6a80 !important;
|
|
@@ -1179,77 +1179,82 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1179
1179
|
}
|
|
1180
1180
|
@media (max-width: 767px) {
|
|
1181
1181
|
.fc-toolbar.fc-header-toolbar {
|
|
1182
|
-
font-size: 80
|
|
1182
|
+
font-size: 80% !important;
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
1185
|
@media (max-width: 767px) {
|
|
1186
1186
|
.fc-footer-toolbar.fc-toolbar {
|
|
1187
|
-
font-size: 80
|
|
1188
|
-
margin-top: 0.5em;
|
|
1187
|
+
font-size: 80% !important;
|
|
1188
|
+
margin-top: 0.5em !important;
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
|
|
1192
1192
|
.fc .fc-col-header-cell-cushion {
|
|
1193
1193
|
/*column label*/
|
|
1194
|
-
display: inline-block;
|
|
1195
|
-
padding: 2px 4px;
|
|
1194
|
+
display: inline-block !important;
|
|
1195
|
+
padding: 2px 4px !important;
|
|
1196
1196
|
font-size: 0.8em !important;
|
|
1197
|
-
color: #888;
|
|
1198
|
-
font-weight: normal;
|
|
1197
|
+
color: #888 !important;
|
|
1198
|
+
font-weight: normal !important;
|
|
1199
1199
|
}
|
|
1200
1200
|
.fc .fc-timegrid-slot-label-cushion {
|
|
1201
1201
|
/*row label*/
|
|
1202
|
-
font-size: 0.8em;
|
|
1203
|
-
color: #888;
|
|
1202
|
+
font-size: 0.8em !important;
|
|
1203
|
+
color: #888 !important;
|
|
1204
1204
|
}
|
|
1205
1205
|
.fc .fc-timegrid-slot-minor {
|
|
1206
|
-
border-top-width: 0px;
|
|
1206
|
+
border-top-width: 0px !important;
|
|
1207
1207
|
}
|
|
1208
1208
|
.fc .fc-timegrid-slot-lane {
|
|
1209
|
-
border-top-width: 1px;
|
|
1210
|
-
border-top-color: #f1f1f1;
|
|
1211
|
-
border-top-style: dotted;
|
|
1209
|
+
border-top-width: 1px !important;
|
|
1210
|
+
border-top-color: #f1f1f1 !important;
|
|
1211
|
+
border-top-style: dotted !important;
|
|
1212
1212
|
}
|
|
1213
1213
|
.fc .fc-v-event {
|
|
1214
|
-
cursor: pointer;
|
|
1215
|
-
box-shadow: 0px 0px 3px 1px var(--fc-event-shadow-color);
|
|
1214
|
+
cursor: pointer !important;
|
|
1215
|
+
box-shadow: 0px 0px 3px 1px var(--fc-event-shadow-color) !important;
|
|
1216
1216
|
}
|
|
1217
1217
|
.fc .fc-v-event:hover {
|
|
1218
|
-
cursor: pointer;
|
|
1219
|
-
background-color: var(--fc-button-hover-bg-color);
|
|
1220
|
-
border: 1px solid var(--fc-button-hover-bg-color);
|
|
1221
|
-
box-shadow: 0px 0px 3px 1px (--fc-event-shadow-color);
|
|
1218
|
+
cursor: pointer !important;
|
|
1219
|
+
background-color: var(--fc-button-hover-bg-color) !important;
|
|
1220
|
+
border: 1px solid var(--fc-button-hover-bg-color) !important;
|
|
1221
|
+
box-shadow: 0px 0px 3px 1px (--fc-event-shadow-color) !important;
|
|
1222
1222
|
}
|
|
1223
1223
|
|
|
1224
1224
|
.fc .fc-v-event .fc-event-time {
|
|
1225
|
-
text-align: center;
|
|
1226
|
-
width: 100
|
|
1225
|
+
text-align: center !important;
|
|
1226
|
+
width: 100% !important;
|
|
1227
1227
|
}
|
|
1228
1228
|
|
|
1229
1229
|
.fc .fc-v-event .fc-event-main {
|
|
1230
|
-
container-type: size;
|
|
1231
|
-
container-name: custom-event-container;
|
|
1230
|
+
container-type: size !important;
|
|
1231
|
+
container-name: custom-event-container !important;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
.fc .fc-event-title {
|
|
1235
|
+
text-align: center !important;
|
|
1236
|
+
width: 100% !important;
|
|
1232
1237
|
}
|
|
1233
1238
|
|
|
1234
1239
|
@container custom-event-container (height < 22px) {
|
|
1235
1240
|
.fc .fc-v-event .fc-event-time {
|
|
1236
|
-
line-height: 1em;
|
|
1237
|
-
font-size: 0.8em;
|
|
1241
|
+
line-height: 1em !important;
|
|
1242
|
+
font-size: 0.8em !important;
|
|
1238
1243
|
}
|
|
1239
1244
|
}
|
|
1240
1245
|
@container custom-event-container (width < 15px) {
|
|
1241
1246
|
.fc .fc-v-event .fc-event-time {
|
|
1242
|
-
line-height: 1em;
|
|
1243
|
-
font-size: 0.7em;
|
|
1247
|
+
line-height: 1em !important;
|
|
1248
|
+
font-size: 0.7em !important;
|
|
1244
1249
|
}
|
|
1245
1250
|
}
|
|
1246
1251
|
|
|
1247
1252
|
.fc .fc-v-event .fc-event-time:after {
|
|
1248
|
-
display: none;
|
|
1253
|
+
display: none !important;
|
|
1249
1254
|
}
|
|
1250
1255
|
|
|
1251
1256
|
.fc .fc-v-event .fc-event-title {
|
|
1252
|
-
display: none;
|
|
1257
|
+
display: none !important;
|
|
1253
1258
|
}
|
|
1254
1259
|
`;function Cke(){const e=we(t=>FU(t,"useCustomTimumCss"));return T.jsxs(T.Fragment,{children:[e&&T.jsx(_y,{styles:Ske}),T.jsx(_y,{styles:wke})]})}function Tke(e){const t=we(Ca),n=we(NU),r=we(s=>He(s,"calendarFrontend")),i=we(s=>He(s,"calendarFrontendOptions"));let o=Xy(n??{});if(o=DY(o,{factor:2.5}),t)return T.jsxs(IY,{theme:o,children:[T.jsx(Ate,{}),T.jsx(Cke,{}),r==="fullCalendar"&&T.jsx(tm,{...e,...i.fullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:T.jsx(cke,{})}),r==="detailsListView"&&T.jsx(tm,{...e,...i.detailsListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:T.jsx(I8e,{})}),r==="pureListView"&&T.jsx(tm,{...e,...i.pureListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:T.jsx(bg,{})}),r==="minimalView"&&T.jsx(tm,{...e,...i.minimalView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:T.jsx(xke,{})}),r!=="fullCalendar"&&r!=="minimalView"&&r!=="detailsListView"&&r!=="pureListView"&&T.jsxs(T.Fragment,{children:["You must set calendarFrontend either to ",T.jsx("code",{children:"fullCalendar"}),",",T.jsx("code",{children:"detailsListView"})," or ",T.jsx("code",{children:"pureListView"})," in your config."]})]})}function fc(e){const t=parseFloat(getComputedStyle(document.documentElement).fontSize);return e/t}var _4={},$ke=dn;Object.defineProperty(_4,"__esModule",{value:!0});var ON=_4.default=void 0,Eke=$ke(Tn()),kke=T;ON=_4.default=(0,Eke.default)((0,kke.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Kf(e){const{children:t,onClose:n,...r}=e;return T.jsxs(r$,{sx:{m:0,p:2},...r,children:[t,n?T.jsx(Gd,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:i=>i.palette.grey[500]},children:T.jsx(ON,{})}):null]})}Kf.propTypes={children:nt.node,onClose:nt.func.isRequired};const ra=14,vl='"Ek Mukta","Helvetica Neue", Helvetica, Arial, sans-serif',hc=Math.floor(ra*1.428571429),Ake=fc(Math.floor(ra*2.6)),Oke=fc(Math.floor(ra*2.3)),_ke=fc(Math.floor(ra*1.9)),Rke=fc(Math.floor(ra*1.5)),Pke=fc(Math.floor(ra*1.15)),Dke=fc(Math.floor(ra)),yl={appConfig:{host:"https://www.timum.de",resource_channel:"RESOURCE_REFERENCE",calendarFrontend:"detailsListView",calendarFrontendOptions:{minimalView:{forceResourceSelectorDialog:!0}},allowCloseOnBooking:!0,hideTimumFooter:!1,sendCustomValuesAsMessage:!1,height:500,fields:{firstName:{index:0,title:"fields.firstName",validation:Fs().required("validation.field_required")},lastName:{index:1,title:"fields.lastName",validation:Fs().required("validation.field_required")},email:{index:2,title:"fields.email",format:"email",type:"text",validation:Fs().email("validation.email_field_must_be_valid").required("validation.field_required")},mobile:{index:3,title:"fields.mobile",type:"phoneNumber",isRequired:!1,defaultCountry:"DE",preferredCountries:["DE","CH","AT"]},message:{index:4,title:"fields.message",type:"textarea",validation:Fs().max(1024),limit:1024},agbs:{index:5,title:"fields.accept_timum_privacy",type:"checkbox",validation:Om().required("validation.field_required").test("privacyAccepted","validation.privacy_field_required",e=>e===!0)},locale:{index:6,preventRendering:!0}},interfaces:{UnkownBookingPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=wi(r.breakpoints.down("sm"));return T.jsxs(Rs,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[T.jsx(Kf,{onClose:t}),T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:n})})]})},IdentifiedBookingPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=wi(r.breakpoints.down("sm"));return T.jsxs(Rs,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[T.jsx(Kf,{onClose:t}),T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:n})})]})},ConfirmationPage:e=>{const{open:t,onClose:n,allowCloseOnBooking:r,children:i}=e,o=Ki(),s=wi(o.breakpoints.down("sm"));return T.jsxs(Rs,{open:t,onClose:()=>{r&&n()},hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:[r&&T.jsx(Kf,{onClose:n}),T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:i})})]})},LoginPage:({open:e,onClose:t,children:n})=>T.jsx(Rs,{open:e,onClose:t,hideBackdrop:!0,fullWidth:!0,children:T.jsx(Ps,{children:n})}),CancelPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=wi(r.breakpoints.down("sm"));return T.jsxs(Rs,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[T.jsx(Kf,{onClose:t}),T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:n})})]})},ResourcePage:({mobileOpen:e,mobileOnClose:t,shouldDisplay:n,height:r,children:i})=>{const o=Ki(),s=wi(o.breakpoints.down("sm"));return T.jsxs(T.Fragment,{children:[T.jsx(Rs,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:i})})}),n&&T.jsxs(he,{xs:"auto",item:!0,container:!0,display:{xs:"none",sm:"flex"},wrap:"nowrap",sx:{mr:2,maxHeight:r,boxSizing:"border-box"},children:[T.jsx(he,{item:!0,xs:"auto",children:i}),T.jsx(he,{item:!0,xs:"1",children:T.jsx(s$,{orientation:"vertical",variant:"middle"})})]})]})},ProductPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=wi(r.breakpoints.down("sm"));return T.jsx(Rs,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:n})})})},ErrorDialog:({open:e,onClose:t})=>{const{t:n}=pn();return T.jsxs(Rs,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[T.jsx(r$,{id:"alert-dialog-title",children:n("reservation_failed.title")}),T.jsx(Ps,{children:T.jsx(nne,{id:"alert-dialog-description",children:n("reservation_failed.message")})}),T.jsx(Wte,{children:T.jsx(Nr,{onClick:t,autoFocus:!0,children:"Ok"})})]})}},callbacks:{}},muiTheme:{palette:{primary:{main:"#337ab7"},secondary:{main:"#777"},success:{main:"#5cb85c"},warning:{main:"#f0ad4e"},error:{main:"#d9534f"},info:{main:"#5bc0de"}},shape:{borderRadius:2},typography:{fontFamily:vl,fontSize:ra,h1:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${Ake}rem`},h2:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${Oke}rem`},h3:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${_ke}rem`},h4:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${Rke}rem`},h5:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${Pke}rem`},h6:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${Dke}rem`}},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarColor:"#bfbfbf #ffffff","&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:"#ffffff"},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:"#bfbfbf",minHeight:8,width:3,border:"5px solid #ffffff"},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:"#ffffff"}}}},MuiButton:{styleOverrides:{root:{borderRadius:4}}},MuiTextField:{defaultProps:{variant:"outlined"}},MuiListItem:{styleOverrides:{root:{borderRadius:4}}},MuiListItemButton:{styleOverrides:{root:{borderRadius:4}}},MuiListItemText:{styleOverrides:{borderRadius:4}},MuiTypography:{styleOverrides:{h1:{marginBottom:hc/2},h2:{marginBottom:hc/2},h3:{marginBottom:hc/2},h4:{marginBottom:hc/2},h5:{marginBottom:hc/2},h6:{marginBottom:hc/2}}}}},fcConfig:{initialView:"timeGridWeek",useCustomTimumCss:!0,displayEventEnd:!1,views:{timeGridWeek:{slotMinTime:"08:00:00",slotMaxTime:"21:00:00",allDaySlot:!1}}}},Mke=(e,t,n="debug")=>{const r=R.useRef(t);R.useEffect(()=>{const i=Object.entries(t).reduce((o,[s,a])=>(r.current[s]!==a&&(o[s]={old:r.current[s],new:a}),o),{});Object.keys(i).length>0&&console[n](`[${e}] Changed props:`,i),r.current=t})},Ike=({wait:e,children:t})=>{const n=we(xy),r=we(Ca);if(!e&&n&&r)return t},_N=({muiTheme:e={},fcConfig:t={},appConfig:n={},children:r})=>{const i=Pp(),o=we(BU),s=we(zU),a=we(HU),l=R.useMemo(()=>{var x;return(x=n==null?void 0:n.callbacks)==null?void 0:x.fetchingPublicDataFailed},[n]),[u,{isFetching:d,error:f}]=TH(),[m,{isFetching:p}]=xH(),[g,{isFetching:v}]=SH();Mke("ConfigHandler",{appConfig:n,muiTheme:e,fcConfig:t,dispatch:i,isThemingAllowed:o,areCustomFieldsAllowed:s,isLocalisationAllowed:a,fetchPublicData:u,fetchSpecificBookables:m,fetchSpecificProducts:g});const b=R.useCallback((x=n,w=e,S=t)=>{const C=NN(x);C&&(LN(C,w,S,o,s,a,i),IN(C,i,u,m,g))},[n,e,t,o,s,a,i,u,m,g]);if(R.useEffect(()=>{var x;(x=window==null?void 0:window.parent)!=null&&x.document&&(window.parent.document.rerenderTimumBooking=b)},[b]),R.useEffect(()=>{const x=NN(n);x&&(LN(x,e,t,o,s,a,i),IN(x,i,u,m,g))},[n,e,t,i,o,s,a,u,m,g]),f)l&&l(f);else return T.jsx(Ike,{wait:p||d||v,children:r})};function Nke(e,t){return e&&Object.hasOwn(e,"message")&&typeof e.message>"u"&&delete t.message,e&&Object.hasOwn(e,"mobile")&&typeof e.mobile>"u"&&delete t.mobile,e&&Object.hasOwn(e,"email")&&typeof e.email>"u"&&delete t.email,e&&Object.hasOwn(e,"firstName")&&typeof e.firstName>"u"&&delete t.firstName,e&&Object.hasOwn(e,"lastName")&&typeof e.lastName>"u"&&delete t.lastName,t}function RN(e,t,n){if(n||(n={}),typeof t>"u"&&(t=0),t>=Object.entries(e).length)return n;for(const[r,i]of Object.entries(e))i.index===t&&(n[r]=i);return t++,RN(e,t,n)}function Lke(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""}function R4(e,t,n){if(!e.includes("@")&&!e.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i))if(!t)console.warn("One or more ref parameters aren't fully qualified AND you have not provided a `platform` prop which allows timum to do it for you. Most likely timum won't find anything. Please either add a platform prop to your configuration or use a full reference in either the ref prop or a ref url parameter.");else return`${e}${n?"@"+n:""}@${t}`;return e}const PN=(e,t)=>{e&&!t.includes(e)&&t.push(e)},DN=(e,t)=>{e&&e.forEach(n=>{t[n.resource.uuid]={...n}})},MN=(e,t)=>{e&&e.forEach(n=>{t[n.resource.uuid]?(t[n.resource.uuid].bookables=n.bookables,t[n.resource.uuid].products=n.products):t[n.resource.uuid]={...n}})};async function IN(e,t,n,r,i){var m,p;let o={};const s=e==null?void 0:e.ref,a=e==null?void 0:e.tslRefs,l=e==null?void 0:e.prdRefs,u=e==null?void 0:e.publicData,d=e==null?void 0:e.tsls,f=e==null?void 0:e.channelKey;if((s==null?void 0:s.length)>0&&!(u!=null&&u.length)>0){const g=await n({channelOrResourceId:s[0],params:{channelKey:f,ref:s}});DN(g==null?void 0:g.data,o)}if((u==null?void 0:u.length)>0&&DN(u,o),(a==null?void 0:a.length)>0&&!(d!=null&&d.length)>0){const g=await r({params:{channelKey:f,tlsIds:a}});MN(g==null?void 0:g.data,o)}if((d==null?void 0:d.length)>0&&MN(d,o),(l==null?void 0:l.length)>0){Object.values(o).forEach(b=>{var x;b.bookables&&((x=Object.values(b.bookables))==null||x.forEach(w=>{w.forEach(S=>{var C;PN(S.product_uuid,l),(C=S.products)==null||C.forEach(E=>{PN(E.uuid,l)})})}))});const g=await i({params:{prdRefs:l}}),v=Object.entries(o).filter(([,b])=>{var w,S;if(((S=(w=b.resource)==null?void 0:w.supportedProducts)==null?void 0:S.length)===0)return!1;const x=g.data.filter(C=>{var k;const E=(k=b.resource)==null?void 0:k.supportedProducts;return E&&E.some(O=>O===C.uuid)});return console.log(x),x.length===0?!1:(b.products=x,!0)});console.log(v),o=Object.fromEntries(v),console.log(o)}if(t(IU(o)),Object.values(o).length>1)if(e.cancelableAppointment){let g=!1;for(const v of Object.values(o))((m=v==null?void 0:v.resource)==null?void 0:m.uuid)===((p=e.cancelableAppointment)==null?void 0:p.resId)&&(t(nd(v)),g=!0);g||t(nd(Object.values(o)[0]))}else t(nd(Object.values(o)[0]));else Object.values(o).length===1?t(nd(Object.values(o)[0])):console.warn("Given reference(s) seems to be invalid.")}function NN(e){var b,x,w;const t={...e},n=window.location.search,r=new URLSearchParams(t.queryString||n),i=r.get("pData")??r.get("pdata"),o=r.get("pDataPlatform")?{platform:r.get("pDataPlatform"),id:r.get("pDataId"),idPropName:r.get("pDataIdPropName")}:void 0,s=Lke("PLAY_SESSION"),a=r.get("channelKey")??r.get("channelkey"),l=r.get("X-SIGNED-APP-CUSTOMER"),u=r.get("resId"),d=r.getAll("ref"),f=r.getAll("tslRefs"),m=r.getAll("prdRefs"),p=r.get("culture"),g=t.queryHash||window.location.hash,[,,v]=(g==null?void 0:g.split("/"))??[];if((i||o)&&(t.pData=i??o),a&&(t.channelKey=a),d&&d.length>0&&(t.ref=d),f&&f.length>0&&(t.tslRefs=f),m&&m.length>0&&(t.prdRefs=m),p&&(t.culture=p),Zt.isArray(t.ref)?t.ref=[...t.ref]:t.ref?t.ref=[t.ref]:t.ref=[],Zt.isArray(t.tslRefs)?t.tslRefs=[...t.tslRefs]:t.tslRefs?t.tslRefs=[t.tslRefs]:t.tslRefs=[],Zt.isArray(t.prdRefs)?t.prdRefs=[...t.prdRefs]:t.prdRefs?t.prdRefs=[t.prdRefs]:t.prdRefs=[],(!t.ref||t.ref.length===0)&&(!t.tslRefs||t.tslRefs.length===0)){console.log("timum hides itself. No reference in either url or options detected.");return}for(let S=0;S<((b=t==null?void 0:t.ref)==null?void 0:b.length);S++)t.ref[S]=R4(t.ref[S],t.platform,t.prvUuid);for(let S=0;S<((x=t==null?void 0:t.tslRefs)==null?void 0:x.length);S++)t.tslRefs[S]=R4(t.tslRefs[S],t.platform,t.prvUuid);for(let S=0;S<((w=t==null?void 0:t.prdRefs)==null?void 0:w.length);S++)t.prdRefs[S]=R4(t.prdRefs[S],t.platform,t.prvUuid);return s&&(t.cookie=s),l&&(t.cancelableAppointment={authToken:l,appointmentUuid:v,customerUuid:o.id,resourceUuid:u}),t.host&&vH(t.host),t}const LN=(e,t,n,r,i,o,s)=>{const a=Object.keys(t).length>0,l=Object.keys(e).length>0;let u=Zt.merge({},yl.appConfig,e),d=Zt.merge({},yl.muiTheme,t),f=Zt.merge({},yl.fcConfig,n);u.fields=Nke(e.fields,u.fields),u.fields=RN(u.fields),l&&!o&&(u.localization=yl.appConfig.localization,console.warn("timum detected you configured custom localization/wording.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),l&&!i&&(u.fields=yl.appConfig.fields,console.warn("timum detected you configured custom fields.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),l&&!r&&(u.hideTimumFooter=yl.appConfig.hideTimumFooter,console.warn(`timum detected you want to suppress the "powered by timum" footerSince the Account the referenced resource belongs to isn't in an appropriate plan, this feature is disabled.`)),a&&!r&&(d=yl.muiTheme,console.warn("timum detected you configured custom theming.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),s(DU(f)),s(PU(u)),s(MU(d))};_N.displayName="ConfigHandler";const Fke=uU({reducer:{[xp.reducerPath]:xp.reducer,appState:UU},middleware:e=>e().concat(xp.middleware),devTools:{trace:!0}});var FN=[],jke=FN.forEach,Bke=FN.slice;function zke(e){return jke.call(Bke.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var jN=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Hke=function(t,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),s="".concat(t,"=").concat(o);if(i.maxAge>0){var a=i.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(a))}if(i.domain){if(!jN.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!jN.test(i.path))throw new TypeError("option path is invalid");s+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.sameSite){var l=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},BN={create:function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=Hke(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null},remove:function(t){this.create(t,"",-1)}},Uke={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=BN.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&BN.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},Vke={name:"querystring",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),s=0;s<o.length;s++){var a=o[s].indexOf("=");if(a>0){var l=o[s].substring(0,a);l===t.lookupQuerystring&&(n=o[s].substring(a+1))}}}return n}},Qf=null,zN=function(){if(Qf!==null)return Qf;try{Qf=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Qf=!1}return Qf},Wke={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&zN()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&zN()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Jf=null,HN=function(){if(Jf!==null)return Jf;try{Jf=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Jf=!1}return Jf},qke={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&HN()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&HN()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},Gke={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},Yke={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Zke={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},Kke={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function Qke(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var UN=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Mi(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Ii(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=zke(r,this.options||{},Qke()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(Uke),this.addDetector(Vke),this.addDetector(Wke),this.addDetector(qke),this.addDetector(Gke),this.addDetector(Yke),this.addDetector(Zke),this.addDetector(Kke)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var s=r.detectors[o].lookup(r.options);s&&typeof s=="string"&&(s=[s]),s&&(i=i.concat(s))}}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}]),e}();UN.type="languageDetector";var P4=["",""],D4=RegExp("([".concat(P4.join(""),"]{9})+"),"gu"),Jke=9,Xke="subliminal:start",eAe=function(t){return Array.from(new TextEncoder().encode(t))},tAe=function(t){return new TextDecoder().decode(new Uint8Array(t))},nAe=function(t){var n=8-t.length;return"0".repeat(n)+t},VN=function(t){var n=eAe(t).map(Number),r=n.map(function(o){return nAe(o.toString(2))+"0"}).join(""),i=Array.from(r).map(function(o){return P4[Number(o)]}).join("");return i},WN=VN(Xke),qN=function(t){var n=Array.from(t).map(function(o){return P4.indexOf(o)}).map(String).join(""),r=n.match(/(.{9})/g),i=Uint8Array.from((r==null?void 0:r.map(function(o){return parseInt(o.slice(0,8),2)}))||[]);return tAe(i)},rAe=function(t){var n,r=(n=t.match(D4))===null||n===void 0?void 0:n.filter(function(i){return i.length>Jke-1});if(!(!r||r.length===0))return qN(r[r.length-1])},iAe=function(t){return t.replace(D4,"")},oAe=function(t){if(Object.keys(t).length===0)return t;var n={k:t.key,n:t.ns,l:t.lng,s:t.source};return JSON.stringify(n)},sAe=function(t){if(!(!t||typeof t!="string"||t.indexOf("{")!==0))try{var n=JSON.parse(t||"{}");return{key:n.k,ns:n.n,lng:n.l,source:n.s}}catch{return}};function GN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=oAe(t),r=VN(n);return typeof e=="string"&&e?WN+e+r:e}function t1(e){var t=rAe(e),n=sAe(t),r=iAe(e);return{text:r,invisibleMeta:n}}function M4(e){if(!e||e.length<27||!D4.test(e))return!1;var t=e.substring(e.length-9),n=qN(t);return n==="}"}function aAe(e){return e.startsWith(WN)}function YN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function n1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YN(Object(n),!0).forEach(function(r){Gt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ZN="subliminal",lAe={name:ZN,type:"postProcessor",options:{},setOptions:function(t){this.options=n1(n1({},t),this.options)},process:function(t,n,r,i){var o=this.options=n1(n1({},r),this.options),s,a,l,u;if(r.i18nResolved)s=r.i18nResolved.exactUsedKey,a=r.i18nResolved.usedNS,l=r.i18nResolved.usedLng,r.i18nResolved.res===void 0?s!==t?u="default":u="key":u="translation";else{var d,f,m,p,g,v,b=(d=(f=o.keySeparator)!==null&&f!==void 0?f:i==null||(m=i.options)===null||m===void 0?void 0:m.keySeparator)!==null&&d!==void 0?d:".",x=i.extractFromKey(n.join(b),r),w=x.key,S=x.namespaces;s=w,a=(p=(g=S==null?void 0:S[0])!==null&&g!==void 0?g:o.ns)!==null&&p!==void 0?p:i==null||(v=i.options)===null||v===void 0?void 0:v.defaultNS,l=r.lng||this.language,s===t?u="key":u="translation"}return GN(t,{key:s,ns:a,lng:l,source:u})},overloadTranslationOptionHandler:function(){return{postProcess:ZN,postProcessPassResolved:!0}}},KN=["placeholder","title","alt"],Li={highlight:"#26a69a",warning:"#e67a00"},QN=function(){var t,n;typeof process<"u"&&(n=process),!n&&typeof window<"u"&&(n=window.process);var r=n||{},i=((t=r.env)===null||t===void 0?void 0:t.locizeIncontext)||"production";return i==="development"?"http://localhost:3003/":i==="staging"?"https://incontext-dev.locize.app":"https://incontext.locize.app"},Xo=function(){if(!(typeof document>"u")){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}}();function JN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function uAe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JN(Object(n),!0).forEach(function(r){Gt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var XN={committed:"commitKeys"};function cAe(e){return XN[e]?XN[e]:e}var I4=[];function Qn(e,t){if(!_e.source){var n;_e.source=(n=document.getElementById("i18next-editor-iframe"))===null||n===void 0?void 0:n.contentWindow}if(_e.origin||(_e.origin=QN()),!_e.source||!_e.source.postMessage){I4.push({action:e,payload:t});return}_e.legacy?_e.source.postMessage(uAe({message:e},t),_e.origin):_e.source.postMessage({sender:"i18next-editor",senderAPIVersion:"v1",action:e,message:e,payload:t},_e.origin);var r=I4;I4=[],r.forEach(function(i){var o=i.action,s=i.payload;Qn(o,s)})}var bl={},N4=5,_e={init:function(t,n){_e.i18n=t,_e.clickHandler=n},requestInitialize:function(t){Qn("requestInitialize",t),!_e.initInterval&&(_e.initInterval=setInterval(function(){N4=N4-1,_e.requestInitialize(t),N4<0&&_e.initInterval&&(clearInterval(_e.initInterval),delete _e.initInterval)},1e3))},selectKey:function(t){Qn("selectKey",t)},confirmResourceBundle:function(t){Qn("confirmResourceBundle",t)},sendCurrentParsedContent:function(){Qn("sendCurrentParsedContent",{content:Object.values(uo.data).map(function(t){return{id:t.id,keys:t.keys}})})},sendCurrentTargetLanguage:function(t){Qn("sendCurrentTargetLanguage",{targetLng:t||_e.i18n.getLng()})},addHandler:function(t,n){bl[t]||(bl[t]=[]),bl[t].push(n)},sendLocizeIsEnabled:function(){Qn("locizeIsEnabled",{enabled:!0})},turnOn:function(){if(_e.scriptTurnedOff)return Qn("forcedOff");_e.clickInterceptionEnabled||window.document.body.addEventListener("click",_e.clickHandler,!0),_e.clickInterceptionEnabled=!0,Qn("turnedOn")},turnOff:function(){if(_e.scriptTurnedOff)return Qn("forcedOff");_e.clickInterceptionEnabled&&window.document.body.removeEventListener("click",_e.clickHandler,!0),_e.clickInterceptionEnabled=!1,Qn("turnedOff")},onAddedKey:function(t,n,r,i){var o={lng:t,ns:n,key:r,value:i};Qn("added",o)}};typeof window<"u"&&window.addEventListener("message",function(e){var t=e.data,n=t.sender,r=t.action,i=t.message,o=t.payload;if(i){var s=cAe(i);bl[s]&&bl[s].forEach(function(a){a(o,e)})}else n==="i18next-editor-frame"&&bl[r]&&bl[r].forEach(function(a){a(o)})});function r1(e,t){var n=uo.get(e.eleUniqueID);if(!(!n||!n.keys[e.textType])){var r=GN(t,n.subliminal);if(e.textType==="text")n.node.textContent=r;else if(e.textType.indexOf("attr:")===0){var i=e.textType.replace("attr:","");n.node.setAttribute(i,r)}else if(e.textType==="html"){var o="".concat(e.textType,"-").concat(e.children);if(!n.originalChildNodes){var s=[];n.node.childNodes.forEach(function(f){s.push(f)}),n.originalChildNodes=s}if(n.children[o].length===n.node.childNodes.length)n.node.innerHTML=r;else{var a=n.children[o],l=a[0].child,u=document.createElement("div");u.innerHTML=r;var d=[];u.childNodes.forEach(function(f){d.push(f)}),d.forEach(function(f){try{n.node.insertBefore(f,l)}catch{n.node.appendChild(f)}}),a.forEach(function(f){n.node.contains(f.child)&&n.node.removeChild(f.child)})}}}}function dAe(e){var t=e.meta,n=e.value;t&&n!==void 0&&r1(t,n)}_e.addHandler("editKey",dAe);function fAe(e){var t=e.meta,n=e.value,r=e.lng;if(t&&n!==void 0){r1(t,n);var i=r||_e.i18n.getLng();_e.i18n.setResource(i,t.ns,t.key,n),_e.i18n.triggerRerender()}}_e.addHandler("commitKey",fAe);function hAe(e){if(Array.isArray(e))return $4(e)}function pAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1255
1260
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mAe(e){return hAe(e)||oN(e)||sN(e)||pAe()}function gAe(e){var t=e.updated;t.forEach(function(n){var r=n.lng,i=n.ns,o=n.key,s=n.data,a=n.metas,l=n.meta;l&&s.value&&r1(l,s.value),a&&Object.values(a).forEach(function(u){r1(u,s.value)}),_e.i18n.setResource(r,i,o,s.value)}),Object.values(uo.data).forEach(function(n){if(n.originalChildNodes){var r;(r=n.node).replaceChildren.apply(r,mAe(n.originalChildNodes))}}),_e.i18n.triggerRerender(),_e.locizeSavedHandler&&_e.locizeSavedHandler(e),window.locizeSavedHandler&&window.locizeSavedHandler(e)}_e.addHandler("commitKeys",gAe);function vAe(e){_e.initialized=!0,clearInterval(_e.initInterval),delete _e.initInterval,_e.sendCurrentParsedContent(),_e.sendCurrentTargetLanguage()}_e.addHandler("confirmInitialized",vAe);function eL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eL(Object(n),!0).forEach(function(r){Gt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ia={};function yAe(){Object.values(ia).forEach(function(e){document.body.contains(e.node)||(eh(e.id,e.node),delete ia[e.id])})}function bAe(e,t,n){!e||!t||!n||(ia[e]||(ia[e]={id:e,node:n}),ia[e].keys=tL(tL({},ia[e].keys),{},Gt({},"".concat(t),"uninstrumented")))}function xAe(e){return ia[e]}var L4={save:bAe,clean:yAe,get:xAe,data:ia};function nL(e){var t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth,i=t.top<=n&&t.top+t.height>=0,o=t.left<=r&&t.left+t.width>=0;return i&&o}function F4(e,t){var n=t,r=e.pageX,i=e.pageY,o={x:r,y:i},s=n.getBoundingClientRect(),a=s.top+document.documentElement.scrollTop,l=a+n.offsetHeight,u=s.left+document.documentElement.scrollLeft,d=u+n.offsetWidth,f=Math.max(r,u),m=Math.min(r,d),p=Math.max(i,a),g=Math.min(i,l),v=m>=f,b=g>=p,x={x:v?r:d<r?d:u,y:b?i:l<i?l:a},w=x.x-o.x,S=x.y-o.y,C=Math.pow(Math.pow(w,2)+Math.pow(S,2),1/2);return Math.floor(C)}function rL(e,t,n){var r;return function(){var i=this,o=arguments,s=function(){r=null,n||e.apply(i,o)},a=n&&!r;clearTimeout(r),r=setTimeout(s,t),a&&e.apply(i,o)}}function wAe(e){return e!=null&&e===e.window}function SAe(e){return wAe(e)?e:e.nodeType===9&&e.defaultView}function iL(e){var t={top:0,left:0,right:0,bottom:0},n=e&&e.ownerDocument,r=n&&n.documentElement;if(!r)return t;Gr(e.getBoundingClientRect)!=="undefined"&&(t=e.getBoundingClientRect());var i=SAe(n),o=t.top+i.pageYOffset-r.clientTop,s=t.left+i.pageXOffset-r.clientLeft;return{top:o,left:s,right:s+(t.right-t.left),bottom:o+(t.bottom-t.top)}}function CAe(e){if(e.srcElement&&e.srcElement.nodeType===1&&(e.srcElement.nodeName==="BUTTON"||e.srcElement.nodeName==="INPUT"))return e.srcElement.getAttribute&&e.srcElement.getAttribute("ignorelocizeeditor")===""?null:e.srcElement;var t;if(e.originalEvent&&e.originalEvent.explicitOriginalTarget)t=e.originalEvent.explicitOriginalTarget;else{var n=e.srcElement;if(n.getAttribute&&n.getAttribute("ignorelocizeeditor")==="")return null;for(var r=e.pageX,i=e.pageY,o=0,s,a=0;a<n.childNodes.length;a++){var l=n.childNodes[a],u=iL(l);l.nodeType===1&&u.bottom<i&&(o=a+1),!s&&u.top+(l.clientHeight||0)>i&&(s=a)}o+1>n.childNodes.length&&(o=n.childNodes.length-1),s||(s=n.childNodes.length);for(var d=o;d<s;d++){var f=n.childNodes[d],m=iL(f);if(m.left>r)break;f&&f.nodeType!==8&&(t=f)}}return t}function TAe(e){var t=e.textContent||e.text&&e.text.innerText||e.placeholder;if(typeof t=="string")return t.replace(/\n +/g,"").trim()}function es(e,t){return e&&e.getAttribute&&e.getAttribute(t)}function oL(e){var t=es(e,"data-i18n");if(t)return t;if(e.nodeType===window.Node.TEXT_NODE&&e.parentElement)return oL(e.parentElement)}function $Ae(e){var t,n=function r(i){var o=es(i,"i18next-options");if(o||(o=es(i,"data-i18next-options")),o||(o=es(i,"i18n-options")),o||(o=es(i,"data-i18n-options")),o){var s={};try{s=JSON.parse(o)}catch{}s.ns&&(t=s.ns)}t||(t=es(i,"i18next-ns")),t||(t=es(i,"data-i18next-ns")),t||(t=es(i,"i18n-ns")),t||(t=es(i,"data-i18n-ns")),!t&&i.parentElement&&r(i.parentElement)};return n(e),t}function EAe(e,t){if(typeof window>"u")return null;t||(t=window.location.href.toLowerCase()),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),r=n.exec(t);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null}var kAe=rL(function(e,t){Object.values(uo.data).forEach(function(n){if(nL(n.node)){var r=F4(e,n.node);if(r<5)JAe(n,n.node,n.keys);else if(r>5){var i=n.ribbonBox?F4(e,n.ribbonBox):1e3;i>10&&eh(n,n.node,n.keys)}}}),Object.values(L4.data).forEach(function(n){if(nL(n.node)){var r=F4(e,n.node);r<10?XAe(n,n.node,n.keys):r>10&&eh(n,n.node,n.keys)}})},50),j4;function i1(e){j4=function(n){kAe(n,e)},document.addEventListener("mousemove",j4)}function B4(){document.removeEventListener("mousemove",j4)}var AAe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#FFFFFF"><g></g><g><g><g><path d="M3,21l3.75,0L17.81,9.94l-3.75-3.75L3,17.25L3,21z M5,18.08l9.06-9.06l0.92,0.92L5.92,19L5,19L5,18.08z"/></g><g><path d="M18.37,3.29c-0.39-0.39-1.02-0.39-1.41,0l-1.83,1.83l3.75,3.75l1.83-1.83c0.39-0.39,0.39-1.02,0-1.41L18.37,3.29z"/></g></g></g></svg>',OAe=`
|