1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9cfd399c-cdf4-55bf-9aa9-e637ec374102")}catch(e){}}(); 3import{r as n,j as x}from"./chunk-62JRHF6Z-Cg50Stu2.js";import{M as I,P as L,L as $}from"./MotionConfigContext-By1XHkUp.js";import{u as P,a as S}from"./use-constant-1tyEX1cw.js";class b extends n.Component{getSnapshotBeforeUpdate(c){const t=this.props.childRef.current;if(t&&c.isPresent&&!this.props.isPresent){const s=this.props.sizeRef.current;s.height=t.offsetHeight||0,s.width=t.offsetWidth||0,s.top=t.offsetTop,s.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function A({children:r,isPresent:c}){const t=n.useId(),s=n.useRef(null),a=n.useRef({width:0,height:0,top:0,left:0}),{nonce:C}=n.useContext(I);return n.useInsertionEffect(()=>{const{width:p,height:e,top:f,left:d}=a.current;if(c||!s.current||!p||!e)return;s.current.dataset.motionPopId=t;const u=document.createElement("style");return C&&(u.nonce=C),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` 4 [data-motion-pop-id="${t}"] { 5 position: absolute !important; 6 width: ${p}px !important; 7 height: ${e}px !important; 8 top: ${f}px !important; 9 left: ${d}px !important; 10 } 11 `),()=>{document.head.removeChild(u)}},[c]),x.jsx(b,{isPresent:c,childRef:s,sizeRef:a,children:n.cloneElement(r,{ref:s})})}const B=({children:r,initial:c,isPresent:t,onExitComplete:s,custom:a,presenceAffectsLayout:C,mode:p})=>{const e=P(D),f=n.useId(),d=n.useCallback(i=>{e.set(i,!0);for(const g of e.values())if(!g)return;s&&s()},[e,s]),u=n.useMemo(()=>({id:f,initial:c,isPresent:t,custom:a,onExitComplete:d,register:i=>(e.set(i,!1),()=>e.delete(i))}),C?[Math.random(),d]:[t,d]);return n.useMemo(()=>{e.forEach((i,g)=>e.set(g,!1))},[t]),n.useEffect(()=>{!t&&!e.size&&s&&s()},[t]),p==="popLayout"&&(r=x.jsx(A,{isPresent:t,children:r})),x.jsx(L.Provider,{value:u,children:r})};function D(){return new Map}const y=r=>r.key||"";function w(r){const c=[];return n.Children.forEach(r,t=>{n.isValidElement(t)&&c.push(t)}),c}const G=({children:r,exitBeforeEnter:c,custom:t,initial:s=!0,onExitComplete:a,presenceAffectsLayout:C=!0,mode:p="sync"})=>{const e=n.useMemo(()=>w(r),[r]),f=e.map(y),d=n.useRef(!0),u=n.useRef(e),i=P(()=>new Map),[g,z]=n.useState(e),[h,M]=n.useState(e);S(()=>{d.current=!1,u.current=e;for(let l=0;l<h.length;l++){const o=y(h[l]);f.includes(o)?i.delete(o):i.get(o)!==!0&&i.set(o,!1)}},[h,f.length,f.join("-")]);const E=[];if(e!==g){let l=[...e];for(let o=0;o<h.length;o++){const m=h[o],v=y(m);f.includes(v)||(l.splice(o,0,m),E.push(m))}p==="wait"&&E.length&&(l=E),M(w(l)),z(e);return}const{forceRender:R}=n.useContext($);return x.jsx(x.Fragment,{children:h.map(l=>{const o=y(l),m=e===h||f.includes(o),v=()=>{if(i.has(o))i.set(o,!0);else return;let j=!0;i.forEach(k=>{k||(j=!1)}),j&&(R?.(),M(u.current),a&&a())};return x.jsx(B,{isPresent:m,initial:!d.current||s?void 0:!1,custom:m?void 0:t,presenceAffectsLayout:C,mode:p,onExitComplete:m?void 0:v,children:l},o)})})};export{G as A}; 12//# sourceMappingURL=index-pkjIrXzL.js.map 13 14//# debugId=9cfd399c-cdf4-55bf-9aa9-e637ec374102
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.