vendor: 5,575 bytes, lines 1-81
1import{a as v}from"./react-vendor-Bh7RbIMb.js";import{j as X}from"./query-CyCZztXp.js";/** 2 * @license lucide-react v0.471.2 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const cr=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ks=(...t)=>t.filter((e,n,s)=>!!e&&e.trim()!==""&&s.indexOf(e)===n).join(" ").trim();/** 7 * @license lucide-react v0.471.2 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */var lr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 12 * @license lucide-react v0.471.2 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const ur=v.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:i="",children:o,iconNode:r,...a},c)=>v.createElement("svg",{ref:c,...lr,width:e,height:e,stroke:t,strokeWidth:s?Number(n)*24/Number(e):n,className:ks("lucide",i),...a},[...r.map(([u,l])=>v.createElement(u,l)),...Array.isArray(o)?o:[o]]));/** 17 * @license lucide-react v0.471.2 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const M=(t,e)=>{const n=v.forwardRef(({className:s,...i},o)=>v.createElement(ur,{ref:o,iconNode:e,className:ks(`lucide-${cr(t)}`,s),...i}));return n.displayName=`${t}`,n};/** 22 * @license lucide-react v0.471.2 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */const hr=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Du=M("ArrowLeft",hr);/** 27 * @license lucide-react v0.471.2 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */const fr=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],ku=M("Award",fr);/** 32 * @license lucide-react v0.471.2 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */const dr=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Ru=M("CalendarDays",dr);/** 37 * @license lucide-react v0.471.2 - ISC 38 * 39 * This source code is licensed under the ISC license. 40 * See the LICENSE file in the root directory of this source tree. 41 */const pr=[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],Eu=M("Camera",pr);/** 42 * @license lucide-react v0.471.2 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */const mr=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Lu=M("ChevronDown",mr);/** 47 * @license lucide-react v0.471.2 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */const yr=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Fu=M("ChevronLeft",yr);/** 52 * @license lucide-react v0.471.2 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */const gr=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Bu=M("ChevronRight",gr);/** 57 * @license lucide-react v0.471.2 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree. 61 */const vr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ju=M("CircleCheck",vr);/** 62 * @license lucide-react v0.471.2 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */const xr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Iu=M("Clock",xr);/** 67 * @license lucide-react v0.471.2 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */const Tr=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ou=M("Copy",Tr);/** 72 * @license lucide-react v0.471.2 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */const Sr=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Nu=M("CreditCard",Sr);/** 77 * @license lucide-react v0.471.2 - ISC 78 * 79 * This source code is licensed under the ISC license. 80 * See the LICENSE file in the root directory of this source tree. 81 */const wr=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}
81]],_u=M("Facebook",wr);/** 82 * @license lucide-react v0.471.2 - ISC 83 * 84 * This source code is licensed under the ISC license. 85 * See the LICENSE file in the root directory of this source tree. 86 */const Pr=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],$u=M("Instagram",Pr);/** 87 * @license lucide-react v0.471.2 - ISC 88 * 89 * This source code is licensed under the ISC license. 90 * See the LICENSE file in the root directory of this source tree. 91 */const br=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Uu=M("LoaderCircle",br);/** 92 * @license lucide-react v0.471.2 - ISC 93 * 94 * This source code is licensed under the ISC license. 95 * See the LICENSE file in the root directory of this source tree. 96 */const Ar=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Ku=M("Mail",Ar);/** 97 * @license lucide-react v0.471.2 - ISC 98 * 99 * This source code is licensed under the ISC license. 100 * See the LICENSE file in the root directory of this source tree. 101 */const Mr=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Wu=M("MapPin",Mr);/** 102 * @license lucide-react v0.471.2 - ISC 103 * 104 * This source code is licensed under the ISC license. 105 * See the LICENSE file in the root directory of this source tree. 106 */const Vr=[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]],zu=M("Maximize2",Vr);/** 107 * @license lucide-react v0.471.2 - ISC 108 * 109 * This source code is licensed under the ISC license. 110 * See the LICENSE file in the root directory of this source tree. 111 */const Cr=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],Hu=M("Menu",Cr);/** 112 * @license lucide-react v0.471.2 - ISC 113 * 114 * This source code is licensed under the ISC license. 115 * See the LICENSE file in the root directory of this source tree. 116 */const Dr=[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]],Gu=M("MonitorSmartphone",Dr);/** 117 * @license lucide-react v0.471.2 - ISC 118 * 119 * This source code is licensed under the ISC license. 120 * See the LICENSE file in the root directory of this source tree. 121 */const kr=[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]],Xu=M("Radio",kr);/** 122 * @license lucide-react v0.471.2 - ISC 123 * 124 * This source code is licensed under the ISC license. 125 * See the LICENSE file in the root directory of this source tree. 126 */const Rr=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Yu=M("Send",Rr);/** 127 * @license lucide-react v0.471.2 - ISC 128 * 129 * This source code is licensed under the ISC license. 130 * See the LICENSE file in the root directory of this source tree. 131 */const Er=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],qu=M("ShoppingCart",Er);/** 132 * @license lucide-react v0.471.2 - ISC 133 * 134 * This source code is licensed under the ISC license. 135 * See the LICENSE file in the root directory of this source tree. 136 */const Lr=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
vendor: 5,282 bytes, lines 136-171
136],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Zu=M("Trash2",Lr);/** 137 * @license lucide-react v0.471.2 - ISC 138 * 139 * This source code is licensed under the ISC license. 140 * See the LICENSE file in the root directory of this source tree. 141 */const Fr=[["path",{d:"M7 21h10",key:"1b0cd5"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}]],Ju=M("TvMinimal",Fr);/** 142 * @license lucide-react v0.471.2 - ISC 143 * 144 * This source code is licensed under the ISC license. 145 * See the LICENSE file in the root directory of this source tree. 146 */const Br=[["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",ry:"2",key:"10ag99"}],["polyline",{points:"17 2 12 7 7 2",key:"11pgbg"}]],Qu=M("Tv",Br);/** 147 * @license lucide-react v0.471.2 - ISC 148 * 149 * This source code is licensed under the ISC license. 150 * See the LICENSE file in the root directory of this source tree. 151 */const jr=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],th=M("User",jr);/** 152 * @license lucide-react v0.471.2 - ISC 153 * 154 * This source code is licensed under the ISC license. 155 * See the LICENSE file in the root directory of this source tree. 156 */const Ir=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],eh=M("Users",Ir);/** 157 * @license lucide-react v0.471.2 - ISC 158 * 159 * This source code is licensed under the ISC license. 160 * See the LICENSE file in the root directory of this source tree. 161 */const Or=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],nh=M("Volume2",Or);/** 162 * @license lucide-react v0.471.2 - ISC 163 * 164 * This source code is licensed under the ISC license. 165 * See the LICENSE file in the root directory of this source tree. 166 */const Nr=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]],sh=M("VolumeX",Nr);/** 167 * @license lucide-react v0.471.2 - ISC 168 * 169 * This source code is licensed under the ISC license. 170 * See the LICENSE file in the root directory of this source tree. 171 */const _r=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ih=M("X",_r),Le=v.createContext({});function Fe(t){const e=v.useRef(null);return e.current===null&&(e.current=t()),e.current}const Be=typeof window<"u",Rs=Be?v.useLayoutEffect:v.useEffect,Yt=v.createContext(null);function je(t,e){t.indexOf(e)===-1&&t.push(e)}function Ie(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Y=(t,e,n)=>n>e?e:n<t?t:n;let Oe=()=>{};const q={},Es=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Ls(t){return typeof t=="object"&&t!==null}const Fs=t=>/^0[^.\s]+$/u.test(t);function Ne(t){let e;return()=>(e===void 0&&(e=t()),e)}const U=t=>t,$r=(t,e)=>n=>e(t(n)),Et=(...t)=>t.reduce($r),At=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class _e{constructor(){this.subscriptions=[]}add(e){return je(this.subscriptions,e),()=>Ie(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const W=t=>t*1e3,z=t=>t/1e3;function Bs(t,e){return e?t*(1e3/e):0}const js=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Ur=1e-7,Kr=12;function Wr(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=js(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>Ur&&++a<Kr);return r}function Lt(t,e,n,s){if(t===e&&n===s)return U;const i=o=>Wr(o,0,1,t,n);return o=>o===0||o===1?o:js(i(o),e,s)}const Is=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Os=t=>e=>1-t(1-e),Ns=Lt(.33,1.53,.69,.99),$e=Os(Ns),_s=Is($e),$s=t=>(t*=2)<1?.5*$e(t):.5*(2-Math.pow(2,-10*(t-1))),Ue=t=>1-Math.sin(Math.acos(t)),Us=Os(Ue),Ks=Is(Ue),zr=Lt(.42,0,1,1),Hr=Lt(0,0,.58,1),Ws=Lt(.42,0,.58,1),Gr=t=>Array.isArray(t)&&typeof t[0]!="number",zs=t=>Array.isArray(t)&&typeof t[0]=="number",Xr={linear:U,easeIn:zr,easeInOut:Ws,easeOut:Hr,circIn:Ue,circInOut:Ks,circOut:Us,backIn:$e,backInOut:_s,backOut:Ns,anticipate:$s},Yr=t=>typeof t=="string",gn=t=>{if(zs(t)){Oe(t.length===4);const[e,n,s,i]=t;return Lt(e,n,s,i)}else if(Yr(t))return Xr[t];return t},jt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],vn={value:null};function qr(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},c=0;function u(h){r.has(h)&&(l.schedule(h),t()),c++,h(a)}const l={schedule:(h,f=!1,d=!1)=>{const y=d&&i?n:s;return f&&r.add(h),y.has(h)||y.add(h),h},cancel:h=>{s.delete(h),r.delete(h)},process:h=>{if(a=h,i){o=!0;return}
vendor: 5,793 bytes, line 171
171i=!0,[n,s]=[s,n],n.forEach(u),e&&vn.value&&vn.value.frameloop[e].push(c),c=0,n.clear(),i=!1,o&&(o=!1,l.process(h))}};return l}const Zr=40;function Hs(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=jt.reduce((g,A)=>(g[A]=qr(o,e?A:void 0),g),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:h,preRender:f,render:d,postRender:p}=r,y=()=>{const g=q.useManualTiming?i.timestamp:performance.now();n=!1,q.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(g-i.timestamp,Zr),1)),i.timestamp=g,i.isProcessing=!0,a.process(i),c.process(i),u.process(i),l.process(i),h.process(i),f.process(i),d.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(y))},x=()=>{n=!0,s=!0,i.isProcessing||t(y)};return{schedule:jt.reduce((g,A)=>{const T=r[A];return g[A]=(P,V=!1,b=!1)=>(n||x(),T.schedule(P,V,b)),g},{}),cancel:g=>{for(let A=0;A<jt.length;A++)r[jt[A]].cancel(g)},state:i,steps:r}}const{schedule:D,cancel:J,state:L,steps:ee}=Hs(typeof requestAnimationFrame<"u"?requestAnimationFrame:U,!0);let _t;function Jr(){_t=void 0}const N={now:()=>(_t===void 0&&N.set(L.isProcessing||q.useManualTiming?L.timestamp:performance.now()),_t),set:t=>{_t=t,queueMicrotask(Jr)}},Gs=t=>e=>typeof e=="string"&&e.startsWith(t),Ke=Gs("--"),Qr=Gs("var(--"),We=t=>Qr(t)?to.test(t.split("/*")[0].trim()):!1,to=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Mt={...mt,transform:t=>Y(0,1,t)},It={...mt,default:1},Tt=t=>Math.round(t*1e5)/1e5,ze=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function eo(t){return t==null}const no=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,He=(t,e)=>n=>!!(typeof n=="string"&&no.test(n)&&n.startsWith(t)||e&&!eo(n)&&Object.prototype.hasOwnProperty.call(n,e)),Xs=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(ze);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},so=t=>Y(0,255,t),ne={...mt,transform:t=>Math.round(so(t))},st={test:He("rgb","red"),parse:Xs("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ne.transform(t)+", "+ne.transform(e)+", "+ne.transform(n)+", "+Tt(Mt.transform(s))+")"};function io(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const de={test:He("#"),parse:io,transform:st.transform},Ft=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Z=Ft("deg"),H=Ft("%"),S=Ft("px"),ro=Ft("vh"),oo=Ft("vw"),xn={...H,parse:t=>H.parse(t)/100,transform:t=>H.transform(t*100)},ct={test:He("hsl","hue"),parse:Xs("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+H.transform(Tt(e))+", "+H.transform(Tt(n))+", "+Tt(Mt.transform(s))+")"},F={test:t=>st.test(t)||de.test(t)||ct.test(t),parse:t=>st.test(t)?st.parse(t):ct.test(t)?ct.parse(t):de.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?st.transform(t):ct.transform(t)},ao=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function co(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(ze))==null?void 0:e.length)||0)+(((n=t.match(ao))==null?void 0:n.length)||0)>0}const Ys="number",qs="color",lo="var",uo="var(",Tn="${}",ho=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Vt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(ho,c=>(F.test(c)?(s.color.push(o),i.push(qs),n.push(F.parse(c))):c.startsWith(uo)?(s.var.push(o),i.push(lo),n.push(c)):(s.number.push(o),i.push(Ys),n.push(parseFloat(c))),++o,Tn)).split(Tn);return{values:n,split:a,indexes:s,types:i}}function Zs(t){return Vt(t).values}function Js(t){const{split:e,types:n}=Vt(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===Ys?o+=Tt(i[r]):a===qs?o+=F.transform(i[r]):o+=i[r]}return o}}const fo=t=>typeof t=="number"?0:t;function po(t){const e=Zs(t);return Js(t)(e.map(fo))}const Q={test:co,parse:Zs,createTransformer:Js,getAnimatableNone:po};function se(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function mo({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=se(c,a,t+1/3),o=se(c,a,t),r=se(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Wt(t,e){return n=>n>0?e:t}const C=(t,e,n)=>t+(e-t)*n,ie=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},yo=[de,st,ct],go=t=>yo.find(e=>e.test(t));function Sn(t){const e=go(t);if(!e)return!1;let n=e.parse(t);return e===ct&&(n=mo(n)),n}const wn=(t,e)=>{const n=Sn(t),s=Sn(e);if(!n||!s)return Wt(t,e);const i={...n};return o=>(i.red=ie(n.red,s.red,o),i.green=ie(n.green,s.green,o),i.blue=ie(n.blue,s.blue,o),i.alpha=C(n.alpha,s.alpha,o),st.transform(i))},pe=new Set(["none","hidden"]);function vo(t,e){return pe.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function xo(t,e){return n=>C(t,e,n)}function Ge(t){return typeof t=="number"?xo:typeof t=="string"?We(t)?Wt:F.test(t)?wn:wo:Array.isArray(t)?Qs:typeof t=="object"?F.test(t)?wn:To:Wt}function Qs(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>
vendor: 14,788 bytes, line 171
171Ge(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function To(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Ge(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function So(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const wo=(t,e)=>{const n=Q.createTransformer(e),s=Vt(t),i=Vt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?pe.has(t)&&!i.values.length||pe.has(e)&&!s.values.length?vo(t,e):Et(Qs(So(s,i),i.values),n):Wt(t,e)};function ti(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?C(t,e,n):Ge(t)(t,e)}const Po=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>D.update(e,n),stop:()=>J(e),now:()=>L.isProcessing?L.timestamp:N.now()}},ei=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=t(o/(i-1))+", ";return`linear(${s.substring(0,s.length-2)})`},zt=2e4;function Xe(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<zt;)e+=n,s=t.next(e);return e>=zt?1/0:e}function bo(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(Xe(s),zt);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:z(i)}}const Ao=5;function ni(t,e,n){const s=Math.max(e-Ao,0);return Bs(n-t(s),e-s)}const k={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Pn=.001;function Mo({duration:t=k.duration,bounce:e=k.bounce,velocity:n=k.velocity,mass:s=k.mass}){let i,o,r=1-e;r=Y(k.minDamping,k.maxDamping,r),t=Y(k.minDuration,k.maxDuration,z(t)),r<1?(i=u=>{const l=u*r,h=l*t,f=l-n,d=me(u,r),p=Math.exp(-h);return Pn-f/d*p},o=u=>{const h=u*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(u,2)*t,p=Math.exp(-h),y=me(Math.pow(u,2),r);return(-i(u)+Pn>0?-1:1)*((f-d)*p)/y}):(i=u=>{const l=Math.exp(-u*t),h=(u-n)*t+1;return-.001+l*h},o=u=>{const l=Math.exp(-u*t),h=(n-u)*(t*t);return l*h});const a=5/t,c=Co(i,o,a);if(t=W(t),isNaN(c))return{stiffness:k.stiffness,damping:k.damping,duration:t};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const Vo=12;function Co(t,e,n){let s=n;for(let i=1;i<Vo;i++)s=s-t(s)/e(s);return s}function me(t,e){return t*Math.sqrt(1-e*e)}const Do=["duration","bounce"],ko=["stiffness","damping","mass"];function bn(t,e){return e.some(n=>t[n]!==void 0)}function Ro(t){let e={velocity:k.velocity,stiffness:k.stiffness,damping:k.damping,mass:k.mass,isResolvedFromDuration:!1,...t};if(!bn(t,ko)&&bn(t,Do))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*Y(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:k.mass,stiffness:i,damping:o}}else{const n=Mo(t);e={...e,...n,mass:k.mass},e.isResolvedFromDuration=!0}return e}function Ht(t=k.visualDuration,e=k.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:u,mass:l,duration:h,velocity:f,isResolvedFromDuration:d}=Ro({...n,velocity:-z(n.velocity||0)}),p=f||0,y=u/(2*Math.sqrt(c*l)),x=r-o,m=z(Math.sqrt(c/l)),w=Math.abs(x)<5;s||(s=w?k.restSpeed.granular:k.restSpeed.default),i||(i=w?k.restDelta.granular:k.restDelta.default);let g;if(y<1){const T=me(m,y);g=P=>{const V=Math.exp(-y*m*P);return r-V*((p+y*m*x)/T*Math.sin(T*P)+x*Math.cos(T*P))}}else if(y===1)g=T=>r-Math.exp(-m*T)*(x+(p+m*x)*T);else{const T=m*Math.sqrt(y*y-1);g=P=>{const V=Math.exp(-y*m*P),b=Math.min(T*P,300);return r-V*((p+y*m*x)*Math.sinh(b)+T*x*Math.cosh(b))/T}}const A={calculatedDuration:d&&h||null,next:T=>{const P=g(T);if(d)a.done=T>=h;else{let V=T===0?p:0;y<1&&(V=T===0?W(p):ni(g,T,P));const b=Math.abs(V)<=s,E=Math.abs(r-P)<=i;a.done=b&&E}return a.value=a.done?r:P,a},toString:()=>{const T=Math.min(Xe(A),zt),P=ei(V=>A.next(T*V).value,T,30);return T+"ms "+P},toTransition:()=>{}};return A}Ht.applyToOptions=t=>{const e=bo(t,100,Ht);return t.ease=e.ease,t.duration=W(e.duration),t.type="keyframes",t};function ye({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:c,restDelta:u=.5,restSpeed:l}){const h=t[0],f={done:!1,value:h},d=b=>a!==void 0&&b<a||c!==void 0&&b>c,p=b=>a===void 0?c:c===void 0||Math.abs(a-b)<Math.abs(c-b)?a:c;let y=n*e;const x=h+y,m=r===void 0?x:r(x);m!==x&&(y=m-h);const w=b=>-y*Math.exp(-b/s),g=b=>m+w(b),A=b=>{const E=w(b),O=g(b);f.done=Math.abs(E)<=u,f.value=f.done?m:O};let T,P;const V=b=>{d(f.value)&&(T=b,P=Ht({keyframes:[f.value,p(f.value)],velocity:ni(g,b,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:l}))};return V(0),{calculatedDuration:null,next:b=>{let E=!1;return!P&&T===void 0&&(E=!0,A(b),V(b)),T!==void 0&&b>=T?P.next(b-T):(!E&&A(b),f)}}}function Eo(t,e,n){const s=[],i=n||q.mix||ti,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const c=Array.isArray(e)?e[r]||U:e;a=Et(c,a)}s.push(a)}return s}function Lo(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(Oe(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Eo(e,s,i),c=a.length,u=l=>{if(r&&l<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const f=At(t[h],t[h+1],l);return a[h](f)};return n?l=>u(Y(t[0],t[o-1],l)):u}function Fo(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=At(0,e,s);t.push(C(n,1,i))}}function Bo(t){const e=[0];return Fo(e,t.length-1),e}function jo(t,e){return t.map(n=>n*e)}function Io(t,e){return t.map(()=>e||Ws).splice(0,t.length-1)}function St({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Gr(s)?s.map(gn):gn(s),o={done:!1,value:e[0]},r=jo(n&&n.length===e.length?n:Bo(e),t),a=Lo(r,e,{ease:Array.isArray(i)?i:Io(e,i)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}const Oo=t=>t!==null;function Ye(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(Oo),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const No={decay:ye,inertia:ye,tween:St,keyframes:St,spring:Ht};function si(t){typeof t.type=="string"&&(t.type=No[t.type])}class qe{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const _o=t=>t/100;class Ze extends qe{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=(n=!0)=>{var s,i;if(n){const{motionValue:o}=this.options;o&&o.updatedAt!==N.now()&&this.tick(N.now())}this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;si(e);const{type:n=St,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const c=n||St;c!==St&&typeof a[0]!="number"&&(this.mixKeyframes=Et(_o,ti(a[0],a[1])),a=[0,100]);const u=c({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Xe(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:l,repeat:h,repeatType:f,repeatDelay:d,type:p,onUpdate:y,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const m=this.currentTime-u*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let g=this.currentTime,A=s;if(h){const b=Math.min(this.currentTime,i)/a;let E=Math.floor(b),O=b%1;!O&&b>=1&&(O=1),O===1&&E--,E=Math.min(E,h+1),!!(E%2)&&(f==="reverse"?(O=1-O,d&&(O-=d/a)):f==="mirror"&&(A=r)),g=Y(0,1,O)*a}const T=w?{done:!1,value:l[0]}:A.next(g);o&&(T.value=o(T.value));let{done:P}=T;!w&&c!==null&&(P=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return V&&p!==ye&&(T.value=Ye(l,this.options,x,this.speed)),y&&y(T.value),V&&this.finish(),T}then(e,n){return this.finished.then(e,n)}get duration(){return z(this.calculatedDuration)}get time(){return z(this.currentTime)}set time(e){var n;e=W(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(N.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=z(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:e=Po,startTime:n}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),(o=(i=this.options).onPlay)==null||o.call(i);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(N.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function $o(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const it=t=>t*180/Math.PI,ge=t=>{const e=it(Math.atan2(t[1],t[0]));return ve(e)},Uo={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:ge,rotateZ:ge,skewX:t=>it(Math.atan(t[1])),skewY:t=>it(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ve=t=>(t=t%360,t<0&&(t+=360),t),An=ge,Mn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Vn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Ko={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Mn,scaleY:Vn,scale:t=>(Mn(t)+Vn(t))/2,rotateX:t=>ve(it(Math.atan2(t[6],t[5]))),rotateY:t=>ve(it(Math.atan2(-t[2],t[0]))),rotateZ:An,rotate:An,skewX:t=>it(Math.atan(t[4])),skewY:t=>it(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function xe(t){return t.includes("scale")?1:0}function Te(t,e){if(!t||t==="none")return xe(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Ko,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Uo,i=a}if(!i)return xe(e);const o=s[e],r=i[1].split(",").map(zo);return typeof o=="function"?o(r):r[o]}const Wo=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Te(n,e)};function zo(t){return parseFloat(t.trim())}const yt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gt=new Set(yt),Cn=t=>t===mt||t===S,Ho=new Set(["x","y","z"]),Go=yt.filter(t=>!Ho.has(t));function Xo(t){const e=[];return Go.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const rt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Te(e,"x"),y:(t,{transform:e})=>Te(e,"y")};rt.translateX=rt.x;rt.translateY=rt.y;const ot=new Set;let Se=!1,we=!1,Pe=!1;function ii(){if(we){const t=Array.from(ot).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Xo(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))==null||a.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}we=!1,Se=!1,ot.forEach(t=>t.complete(Pe)),ot.clear()}function ri(){ot.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(we=!0)})}function Yo(){Pe=!0,ri(),ii(),Pe=!1}class Je{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(ot.add(this),Se||(Se=!0,D.read(ri),D.resolveKeyframes(ii))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i==null?void 0:i.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}$o(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ot.delete(this)}cancel(){this.state==="scheduled"&&(ot.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const qo=t=>t.startsWith("--");function Zo(t,e,n){qo(e)?t.style.setProperty(e,n):t.style[e]=n}const Jo=Ne(()=>window.ScrollTimeline!==void 0),Qo={};function ta(t,e){const n=Ne(t);return()=>Qo[e]??n()}const oi=ta(()=>{try{document.createElement("div").animate({opacity:0}
171,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),xt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Dn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xt([0,.65,.55,1]),circOut:xt([.55,0,1,.45]),backIn:xt([.31,.01,.66,-.59]),backOut:xt([.33,1.53,.69,.99])};function ai(t,e){if(t)return typeof t=="function"?oi()?ei(t,e):"ease-out":zs(t)?xt(t):Array.isArray(t)?t.map(n=>ai(n,e)||Dn.easeOut):Dn[t]}function ea(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[e]:n};c&&(l.offset=c);const h=ai(a,i);Array.isArray(h)&&(l.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(l,f)}function ci(t){return typeof t=="function"&&"applyToOptions"in t}function na({type:t,...e}){return ci(t)&&oi()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class sa extends qe{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,Oe(typeof e.type!="string");const u=na(e);this.animation=ea(n,s,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const l=Ye(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(l):Zo(n,s,l),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,s;const e=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return z(Number(e))}get time(){return z(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=W(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&Jo()?(this.animation.timeline=e,U):n(this)}}const li={anticipate:$s,backInOut:_s,circInOut:Ks};function ia(t){return t in li}function ra(t){typeof t.ease=="string"&&ia(t.ease)&&(t.ease=li[t.ease])}const kn=10;class oa extends sa{constructor(e){ra(e),si(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new Ze({...r,autoplay:!1}),c=W(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-kn).value,a.sample(c).value,kn),a.stop()}}const Rn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Q.test(t)||t==="0")&&!t.startsWith("url("));function aa(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function ca(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Rn(i,e),a=Rn(o,e);return!r||!a?!1:aa(t)||(n==="spring"||ci(n))&&s}function Qe(t){return Ls(t)&&"offsetHeight"in t}const la=new Set(["opacity","clipPath","filter","transform"]),ua=Ne(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ha(t){var u;const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!Qe((u=e==null?void 0:e.owner)==null?void 0:u.current))return!1;const{onUpdate:a,transformTemplate:c}=e.owner.getProps();return ua()&&n&&la.has(n)&&(n!=="transform"||!c)&&!a&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const fa=40;class da extends qe{constructor({autoplay:e=!0,delay:n=0,type:s="
171keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:c,motionValue:u,element:l,...h}){var p;super(),this.stop=()=>{var y,x;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(x=this.keyframeResolver)==null||x.cancel()},this.createdAt=N.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:c,motionValue:u,element:l,...h},d=(l==null?void 0:l.KeyframeResolver)||Je;this.keyframeResolver=new d(a,(y,x,m)=>this.onKeyframesResolved(y,x,f,!m),c,u,l),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:c,isHandoff:u,onUpdate:l}=s;this.resolvedAt=N.now(),ca(e,o,r,a)||((q.instantAnimations||!c)&&(l==null||l(Ye(e,s,n))),e[0]=e[e.length-1],s.duration=0,s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>fa?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=!u&&ha(f)?new oa({...f,element:f.motionValue.owner.current}):new Ze(f);d.finished.then(()=>this.notifyFinished()).catch(U),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),Yo()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const pa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ma(t){const e=pa.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function ui(t,e,n=1){const[s,i]=ma(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Es(r)?parseFloat(r):r}return We(i)?ui(i,e,n+1):i}function tn(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const hi=new Set(["width","height","top","left","right","bottom",...yt]),ya={test:t=>t==="auto",parse:t=>t},fi=t=>e=>e.test(t),di=[mt,S,H,Z,oo,ro,ya],En=t=>di.find(fi(t));function ga(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Fs(t):!0}const va=new Set(["brightness","contrast","saturate","opacity"]);function xa(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(ze)||[];if(!s)return t;const i=n.replace(s,"");let o=va.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Ta=/\b([a-z-]*)\(.*?\)/gu,be={...Q,getAnimatableNone:t=>{const e=t.match(Ta);return e?e.map(xa).join(" "):t}},Ln={...mt,transform:Math.round},Sa={rotate:Z,rotateX:Z,rotateY:Z,rotateZ:Z,scale:It,scaleX:It,scaleY:It,scaleZ:It,skew:Z,skewX:Z,skewY:Z,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:Mt,originX:xn,originY:xn,originZ:S},en={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,radius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,backgroundPositionX:S,backgroundPositionY:S,...Sa,zIndex:Ln,fillOpacity:Mt,strokeOpacity:Mt,numOctaves:Ln},wa={...en,color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:be,WebkitFilter:be},pi=t=>wa[t];function mi(t,e){let n=pi(t);return n!==be&&(n=Q),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
vendor: 1,652 bytes, line 171
171const Pa=new Set(["auto","none","0"]);function ba(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!Pa.has(o)&&Vt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=mi(n,i)}class Aa extends Je{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let u=e[c];if(typeof u=="string"&&(u=u.trim(),We(u))){const l=ui(u,n.current);l!==void 0&&(e[c]=l),c===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!hi.has(s)||e.length!==2)return;const[i,o]=e,r=En(i),a=En(o);if(r!==a)if(Cn(r)&&Cn(a))for(let c=0;c<e.length;c++){const u=e[c];typeof u=="string"&&(e[c]=parseFloat(u))}else rt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||ga(e[i]))&&s.push(i);s.length&&ba(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=rt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=rt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEac
171h(([c,u])=>{e.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function Ma(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=(n==null?void 0:n[t])??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const Fn=30,Va=t=>!isNaN(parseFloat(t));class Ca{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{var r,a;const o=N.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((r=this.events.change)==null||r.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty();i&&((a=this.events.renderRequest)==null||a.notify(this.current))},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=N.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Va(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new _e);const s=this.events[e].add(n);return e==="change"?()=>{s(),D.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=N.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Fn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Fn);return Bs(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(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(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function dt(t,e){return new Ca(t,e)}const yi=(t,e)=>e&&typeof t=="number"?e.transform(t):t,{schedule:nn}=Hs(queueMicrotask,!1),K={x:!1,y:!1};function gi(){return K.x||K.y}function Da(t){return t==="x"||t==="y"?K[t]?null:(K[t]=!0,()=>{K[t]=!1}):K.x||K.y?null:(K.x=K.y=!0,()=>{K.x=K.y=!1})}function vi(t,e){const n=Ma(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Bn(t){return!(t.pointerType==="touch"||gi())}function ka(t,e,n={}){const[s,i,o]=vi(t,n),r=a=>{if(!Bn(a))return;const{target:c}=a,u=e(c,a);if(typeof u!="function"||!c)return;const l=h=>{Bn(h)&&(u(h),c.removeEventListener("pointerleave",l))};c.addEventListener("pointerleave",l,i)};return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const xi=(t,e)=>e?t===e?!0:xi(t,e.parentElement):!1,sn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Ra=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ea(t){return Ra.has(t.tagName)||t.tabIndex!==-1}const $t=new WeakSet;function jn(t){return e=>{e.key==="Enter"&&t(e)}}function re(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const La=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=jn(()=>
vendor: 7,586 bytes, lines 171-179
171{if($t.has(n))return;re(n,"down");const i=jn(()=>{re(n,"up")}),o=()=>re(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function In(t){return sn(t)&&!gi()}function Fa(t,e,n={}){const[s,i,o]=vi(t,n),r=a=>{const c=a.currentTarget;if(!In(a))return;$t.add(c);const u=e(c,a),l=(d,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),$t.has(c)&&$t.delete(c),In(d)&&typeof u=="function"&&u(d,{success:p})},h=d=>{l(d,c===window||c===document||n.useGlobalTarget||xi(c,d.target))},f=d=>{l(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),Qe(a)&&(a.addEventListener("focus",u=>La(u,i)),!Ea(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Ti(t){return Ls(t)&&"ownerSVGElement"in t}function Ba(t){return Ti(t)&&t.tagName==="svg"}const B=t=>!!(t&&t.getVelocity),ja=[...di,F,Q],Ia=t=>ja.find(fi(t)),rn=v.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Oa extends v.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=n.offsetParent,i=Qe(s)&&s.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Na({children:t,isPresent:e,anchorX:n}){const s=v.useId(),i=v.useRef(null),o=v.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:r}=v.useContext(rn);return v.useInsertionEffect(()=>{const{width:a,height:c,top:u,left:l,right:h}=o.current;if(e||!i.current||!a||!c)return;const f=n==="left"?`left: ${l}`:`right: ${h}`;i.current.dataset.motionPopId=s;const d=document.createElement("style");return r&&(d.nonce=r),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` 172 [data-motion-pop-id="${s}"] { 173 position: absolute !important; 174 width: ${a}px !important; 175 height: ${c}px !important; 176 ${f}px !important; 177 top: ${u}px !important; 178 } 179 `),()=>{document.head.contains(d)&&document.head.removeChild(d)}},[e]),X.jsx(Oa,{isPresent:e,childRef:i,sizeRef:o,children:v.cloneElement(t,{ref:i})})}const _a=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r,anchorX:a})=>{const c=Fe($a),u=v.useId();let l=!0,h=v.useMemo(()=>(l=!1,{id:u,initial:e,isPresent:n,custom:i,onExitComplete:f=>{c.set(f,!0);for(const d of c.values())if(!d)return;s&&s()},register:f=>(c.set(f,!1),()=>c.delete(f))}),[n,c,s]);return o&&l&&(h={...h}),v.useMemo(()=>{c.forEach((f,d)=>c.set(d,!1))},[n]),v.useEffect(()=>{!n&&!c.size&&s&&s()},[n]),r==="popLayout"&&(t=X.jsx(Na,{isPresent:n,anchorX:a,children:t})),X.jsx(Yt.Provider,{value:h,children:t})};function $a(){return new Map}function Si(t=!0){const e=v.useContext(Yt);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=v.useId();v.useEffect(()=>{if(t)return i(o)},[t]);const r=v.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Ot=t=>t.key||"";function On(t){const e=[];return v.Children.forEach(t,n=>{v.isValidElement(n)&&e.push(n)}),e}const rh=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:o="sync",propagate:r=!1,anchorX:a="left"})=>{const[c,u]=Si(r),l=v.useMemo(()=>On(t),[t]),h=r&&!c?[]:l.map(Ot),f=v.useRef(!0),d=v.useRef(l),p=Fe(()=>new Map),[y,x]=v.useState(l),[m,w]=v.useState(l);Rs(()=>{f.current=!1,d.current=l;for(let T=0;T<m.length;T++){const P=Ot(m[T]);h.includes(P)?p.delete(P):p.get(P)!==!0&&p.set(P,!1)}},[m,h.length,h.join("-")]);const g=[];if(l!==y){let T=[...l];for(let P=0;P<m.length;P++){const V=m[P],b=Ot(V);h.includes(b)||(T.splice(P,0,V),g.push(V))}return o==="wait"&&g.length&&(T=g),w(On(T)),x(l),null}const{forceRender:A}=v.useContext(Le);return X.jsx(X.Fragment,{children:m.map(T=>{const P=Ot(T),V=r&&!c?!1:l===m||h.includes(P),b=()=>{if(p.has(P))p.set(P,!0);else return;let E=!0;p.forEach(O=>{O||(E=!1)}),E&&(A==null||A(),w(d.current),r&&(u==null||u()),s&&s())};return X.jsx(_a,{isPresent:V,initial:!f.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,onExitComplete:V?void 0:b,anchorX:a,children:T},P)})})},wi=v.createContext({strict:!1}),Nn={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"]},pt={};for(const t in Nn)pt[t]={isEnabled:e=>Nn[t].some(n=>!!e[n])};function Ua(t){for(const e in t)pt[e]={...pt[e],...t[e]}}const Ka=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 Gt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Ka.has(t)}let Pi=t=>!Gt(t);function Wa(t){t&&(Pi=e=>e.startsWith("on")?!Gt(e):t(e))}try{Wa(require("@emotion/is-prop-valid").default)}catch{}function za(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Pi(i)||n===!0&&Gt(i)||!e&&!Gt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function Ha(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>t(...s);return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const qt=v.createContext({});function Zt(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ct(t){return typeof t=="string"||Array.isArray(t)}const on=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],an=["initial",...on];function Jt(t){return Zt(t.animate)||an.some(e=>Ct(t[e]))}function bi(t){return!!(Jt(t)||t.variants)}function Ga(t,e){if(Jt(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Ct(n)?n:void 0,animate:Ct(s)?s:void 0}}return t.inherit!==!1?e:{}}function Xa(t){const{initial:e,animate:n}=Ga(t,v.useContext(qt));return v.useMemo(()=>({initial:e,animate:n}),[_n(e),_n(n)])}function _n(t){return Array.isArray(t)?t.join(" "):t}const Ya=Symbol.for("motionComponentSymbol");function lt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function qa(t,e,n){return v.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):lt(n)&&(n.current=s))},[e])}const cn=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Za="framerAppearId",Ai="data-"+cn(Za),Mi=v.createContext({});function Ja(t,e,n,s,i){var y,x;const{visualElement:o}=v.useContext(qt),r=v.useContext(wi),a=v.useContext(Yt),c=v.useContext(rn).reducedMotion,u=v.useRef(null);s=s||r.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}
vendor: 47,526 bytes, line 179
179));const l=u.current,h=v.useContext(Mi);l&&!l.projection&&i&&(l.type==="html"||l.type==="svg")&&Qa(u.current,n,i,h);const f=v.useRef(!1);v.useInsertionEffect(()=>{l&&f.current&&l.update(n,a)});const d=n[Ai],p=v.useRef(!!d&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,d))&&((x=window.MotionHasOptimisedAnimation)==null?void 0:x.call(window,d)));return Rs(()=>{l&&(f.current=!0,window.MotionIsMounted=!0,l.updateFeatures(),nn.render(l.render),p.current&&l.animationState&&l.animationState.animateChanges())}),v.useEffect(()=>{l&&(!p.current&&l.animationState&&l.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)==null||m.call(window,d)}),p.current=!1))}),l}function Qa(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:u,layoutCrossfade:l}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Vi(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&<(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:l,layoutScroll:c,layoutRoot:u})}function Vi(t){if(t)return t.options.allowProjection!==!1?t.projection:Vi(t.parent)}function tc({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&Ua(t);function o(a,c){let u;const l={...v.useContext(rn),...a,layoutId:ec(a)},{isStatic:h}=l,f=Xa(a),d=s(a,h);if(!h&&Be){nc();const p=sc(l);u=p.MeasureLayout,f.visualElement=Ja(i,d,l,e,p.ProjectionNode)}return X.jsxs(qt.Provider,{value:f,children:[u&&f.visualElement?X.jsx(u,{visualElement:f.visualElement,...l}):null,n(i,a,qa(d,f.visualElement,c),d,h,f.visualElement)]})}o.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const r=v.forwardRef(o);return r[Ya]=i,r}function ec({layoutId:t}){const e=v.useContext(Le).id;return e&&t!==void 0?e+"-"+t:t}function nc(t,e){v.useContext(wi).strict}function sc(t){const{drag:e,layout:n}=pt;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const Dt={};function ic(t){for(const e in t)Dt[e]=t[e],Ke(e)&&(Dt[e].isCSSVariable=!0)}function Ci(t,{layout:e,layoutId:n}){return gt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Dt[t]||t==="opacity")}const rc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},oc=yt.length;function ac(t,e,n){let s="",i=!0;for(let o=0;o<oc;o++){const r=yt[o],a=t[r];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(r.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const u=yi(a,en[r]);if(!c){i=!1;const l=rc[r]||r;s+=`${l}(${u}) `}n&&(e[r]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function ln(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const c in e){const u=e[c];if(gt.has(c)){r=!0;continue}else if(Ke(c)){i[c]=u;continue}else{const l=yi(u,en[c]);c.startsWith("origin")?(a=!0,o[c]=l):s[c]=l}}if(e.transform||(r||n?s.transform=ac(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:l=0}=o;s.transformOrigin=`${c} ${u} ${l}`}}const un=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Di(t,e,n){for(const s in e)!B(e[s])&&!Ci(s,n)&&(t[s]=e[s])}function cc({transformTemplate:t},e){return v.useMemo(()=>{const n=un();return ln(n,e,t),Object.assign({},n.vars,n.style)},[e])}function lc(t,e){const n=t.style||{},s={};return Di(s,n,t),Object.assign(s,cc(t,e)),s}function uc(t,e){const n={},s=lc(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const hc={offset:"stroke-dashoffset",array:"stroke-dasharray"},fc={offset:"strokeDashoffset",array:"strokeDasharray"};function dc(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?hc:fc;t[o.offset]=S.transform(-s);const r=S.transform(e),a=S.transform(n);t[o.array]=`${r} ${a}`}function ki(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},c,u,l){if(ln(t,a,u),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=(l==null?void 0:l.transformBox)??"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&dc(h,i,o,r,!1)}const Ri=()=>({...un(),attrs:{}}),Ei=t=>typeof t=="string"&&t.toLowerCase()==="svg";function pc(t,e,n,s){const i=v.useMemo(()=>{const o=Ri();return ki(o,e,Ei(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Di(o,t.style,t),i.style={...o,...i.style}}return i}const mc=["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 hn(t){return typeof t!="string"||t.includes("-")?!1:!!(mc.indexOf(t)>-1||/[A-Z]/u.test(t))}function yc(t=!1){return(n,s,i,{latestValues:o},r)=>{const c=(hn(n)?pc:uc)(s,o,r,n),u=za(s,typeof n=="string",t),l=n!==v.Fragment?{...u,...c,ref:i}:{},{children:h}=s,f=v.useMemo(()=>B(h)?h.get():h,[h]);return v.createElement(n,{...l,children:f})}}function $n(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function fn(t,e,n,s){if(typeof e=="function"){const[i,o]=$n(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=$n(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function Ut(t){return B(t)?t.get():t}function gc({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:vc(n,s,i,t),renderState:e()}}const Li=t=>(e,n)=>{const s=v.useContext(qt),i=v.useContext(Yt),o=()=>gc(t,e,s,i);return n?o():Fe(o)};function vc(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=Ut(o[f]);let{initial:r,animate:a}=t;const c=Jt(t),u=bi(t);e&&u&&!c&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let l=n?n.initial===!1:!1;l=l||r===!1;const h=l?a:r;if(h&&typeof h!="boolean"&&!Zt(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const p=fn(t,f[d]);if(p){const{transitionEnd:y,transition:x,...m}=p;for(const w in m){let g=m[w];if(Array.isArray(g)){const A=l?g.length-1:0;g=g[A]}g!==null&&(i[w]=g)}for(const w in y)i[w]=y[w]}}}return i}function dn(t,e,n){var o;const{style:s}=t,i={};for(const r in s)(B(s[r])||e.style&&B(e.style[r])||Ci(r,t)||((o=n==null?void 0:n.getValue(r))==null?void 0:o.liveStyle)!==void 0)&&(i[r]=s[r]);return i}const xc={useVisualState:Li({scrapeMotionValuesFromProps:dn,createRenderState:un})};function Fi(t,e,n){const s=dn(t,e,n);for(const i in t)if(B(t[i])||B(e[i])){const o=yt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}const Tc={useVisualState:Li({scrapeMotionValuesFromProps:Fi,createRenderState:Ri})};function Sc(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const r={...hn(s)?Tc:xc,preloadedFeatures:t,useRender:yc(i),createVisualElement:e,Component:s};return tc(r)}}function kt(t,e,n){const s=t.getProps();return fn(s,e,n!==void 0?n:s.custom,t)}const Ae=t=>Array.isArray(t);function wc(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,dt(n))}function Pc(t){return Ae(t)?t[t.length-1]||0:t}function bc(t,e){const n=kt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Pc(o[r]);wc(t,r,a)}}function Ac(t){return!!(B(t)&&t.add)}function Me(t,e){const n=t.getValue("willChange");if(Ac(n))return n.add(e);if(!n&&q.WillChange){const s=new q.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Bi(t){return t.props[Ai]}const Mc=t=>t!==null;function Vc(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Mc),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}const Cc={type:"spring",stiffness:500,damping:25,restSpeed:10},Dc=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),kc={type:"keyframes",duration:.8},Rc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ec=(t,{keyframes:e})=>e.length>2?kc:gt.has(t)?t.startsWith("scale")?Dc(e[1]):Cc:Rc;function Lc({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:c,elapsed:u,...l}){return!!Object.keys(l).length}const pn=(t,e,n,s={},i,o)=>r=>{const a=tn(s,t)||{},c=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-W(c);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};Lc(a)||Object.assign(l,Ec(t,l)),l.duration&&(l.duration=W(l.duration)),l.repeatDelay&&(l.repeatDelay=W(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let h=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(l.duration=0,l.delay===0&&(h=!0)),(q.instantAnimations||q.skipAnimations)&&(h=!0,l.duration=0,l.delay=0),l.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=Vc(l.keyframes,a);if(f!==void 0){D.update(()=>{l.onUpdate(f),l.onComplete()});return}}return a.isSync?new Ze(l):new da(l)};function Fc({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function ji(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;s&&(o=s);const c=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const l in a){const h=t.getValue(l,t.latestValues[l]??null),f=a[l];if(f===void 0||u&&Fc(u,l))continue;const d={delay:n,...tn(o||{},l)},p=h.get();if(p!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===p&&!d.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const m=Bi(t);if(m){const w=window.MotionHandoffAnimation(m,l,D);w!==null&&(d.startTime=w,y=!0)}}Me(t,l),h.start(pn(l,h,f,t.shouldReduceMotion&&hi.has(l)?{type:!1}:d,t,y));const x=h.animation;x&&c.push(x)}return r&&Promise.all(c).then(()=>{D.update(()=>{r&&bc(t,r)})}),c}function Ve(t,e,n={}){var c;const s=kt(t,e,n.type==="exit"?(c=t.presenceContext)==null?void 0:c.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(ji(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:h,staggerDirection:f}=i;return Bc(t,e,l+u,h,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,l]=a==="beforeChildren"?[o,r]:[r,o];return u().then(()=>l())}else return Promise.all([o(),r(n.delay)])}function Bc(t,e,n=0,s=0,i=1,o){const r=[],a=(t.variantChildren.size-1)*s,c=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(jc).forEach((u,l)=>{u.notify("AnimationStart",e),r.push(Ve(u,e,{...o,delay:n+c(l)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(r)}function jc(t,e){return t.sortNodePosition(e)}function Ic(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Ve(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Ve(t,e,n);else{const i=typeof e=="function"?kt(t,e,n.custom):e;s=Promise.all(ji(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}function Ii(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const Oc=an.length;function Oi(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Oi(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Oc;n++){const s=an[n],i=t.props[s];(Ct(i)||i===!1)&&(e[s]=i)}return e}const Nc=[...on].reverse(),_c=on.length;function $c(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Ic(t,n,s)))}function Uc(t){let e=$c(t),n=Un(),s=!0;const i=c=>(u,l)=>{var f;const h=kt(t,l,c==="exit"?(f=t.presenceContext)==null?void 0:f.custom:void 0);if(h){const{transition:d,transitionEnd:p,...y}=h;u={...u,...y,...p}}return u};function o(c){e=c(t)}function r(c){const{props:u}=t,l=Oi(t.parent)||{},h=[],f=new Set;let d={},p=1/0;for(let x=0;x<_c;x++){const m=Nc[x],w=n[m],g=u[m]!==void 0?u[m]:l[m],A=Ct(g),T=m===c?w.isActive:null;T===!1&&(p=x);let P=g===l[m]&&g!==u[m]&&A;if(P&&s&&t.manuallyAnimateOnMount&&(P=!1),w.protectedKeys={...d},!w.isActive&&T===null||!g&&!w.prevProp||Zt(g)||typeof g=="boolean")continue;const V=Kc(w.prevProp,g);let b=V||m===c&&w.isActive&&!P&&A||x>p&&A,E=!1;const O=Array.isArray(g)?g:[g];let at=O.reduce(i(m),{});T===!1&&(at={});const{prevResolvedValues:mn={}}=w,ar={...mn,...at},yn=j=>{b=!0,f.has(j)&&(E=!0,f.delete(j)),w.needsAnimating[j]=!0;const G=t.getValue(j);G&&(G.liveStyle=!1)};for(const j in ar){const G=at[j],Qt=mn[j];if(d.hasOwnProperty(j))continue;let te=!1;Ae(G)&&Ae(Qt)?te=!Ii(G,Qt):te=G!==Qt,te?G!=null?yn(j):f.add(j):G!==void 0&&f.has(j)?yn(j):w.protectedKeys[j]=!0}w.prevProp=g,w.prevResolvedValues=at,w.isActive&&(d={...d,...at}),s&&t.blockInitialAnimation&&(b=!1),b&&(!(P&&V)||E)&&h.push(...O.map(j=>({animation:j,options:{type:m}})))}if(f.size){const x={};if(typeof u.initial!="boolean"){const m=kt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);m&&m.transition&&(x.transition=m.transition)}f.forEach(m=>{const w=t.getBaseTarget(m),g=t.getValue(m);g&&(g.liveStyle=!0),x[m]=w??null}),h.push({animation:x})}let y=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,y?e(h):Promise.resolve()}function a(c,u){var h;if(n[c].isActive===u)return Promise.resolve();(h=t.variantChildren)==null||h.forEach(f=>{var d;return(d=f.animationState)==null?void 0:d.setActive(c,u)}),n[c].isActive=u;const l=r(c);for(const f in n)n[f].protectedKeys={};return l}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Un(),s=!0}}}function Kc(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ii(e,t):!1}function et(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Un(){return{animate:et(!0),whileInView:et(),whileHover:et(),whileTap:et(),whileDrag:et(),whileFocus:et(),exit:et()}}class tt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Wc extends tt{constructor(e){super(e),e.animationState||(e.animationState=Uc(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Zt(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let zc=0;class Hc extends tt{constructor(){super(...arguments),this.id=zc++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Gc={animation:{Feature:Wc},exit:{Feature:Hc}};function Rt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function Bt(t){return{point:{x:t.pageX,y:t.pageY}}}const Xc=t=>e=>sn(e)&&t(e,Bt(e));function wt(t,e,n,s){return Rt(t,e,Xc(n),s)}function Ni({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Yc({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function qc(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}const _i=1e-4,Zc=1-_i,Jc=1+_i,$i=.01,Qc=0-$i,tl=0+$i;function I(t){return t.max-t.min}function el(t,e,n){return Math.abs(t-e)<=n}function Kn(t,e,n,s=.5){t.origin=s,t.originPoint=C(e.min,e.max,t.origin),t.scale=I(n)/I(e),t.translate=C(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Zc&&t.scale<=Jc||isNaN(t.scale))&&(t.scale=1),(t.translate>=Qc&&t.translate<=tl||isNaN(t.translate))&&(t.translate=0)}function Pt(t,e,n,s){Kn(t.x,e.x,n.x,s?s.originX:void 0),Kn(t.y,e.y,n.y,s?s.originY:void 0)}function Wn(t,e,n){t.min=n.min+e.min,t.max=t.min+I(e)}function nl(t,e,n){Wn(t.x,e.x,n.x),Wn(t.y,e.y,n.y)}function zn(t,e,n){t.min=e.min-n.min,t.max=t.min+I(e)}function bt(t,e,n){zn(t.x,e.x,n.x),zn(t.y,e.y,n.y)}const Hn=()=>({translate:0,scale:1,origin:0,originPoint:0}),ut=()=>({x:Hn(),y:Hn()}),Gn=()=>({min:0,max:0}),R=()=>({x:Gn(),y:Gn()});function $(t){return[t("x"),t("y")]}function oe(t){return t===void 0||t===1}function Ce({scale:t,scaleX:e,scaleY:n}){return!oe(t)||!oe(e)||!oe(n)}function nt(t){return Ce(t)||Ui(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ui(t){return Xn(t.x)||Xn(t.y)}function Xn(t){return t&&t!=="0%"}function Xt(t,e,n){const s=t-n,i=e*s;return n+i}function Yn(t,e,n,s,i){return i!==void 0&&(t=Xt(t,i,s)),Xt(t,n,s)+e}function De(t,e=0,n=1,s,i){t.min=Yn(t.min,e,n,s,i),t.max=Yn(t.max,e,n,s,i)}function Ki(t,{x:e,y:n}){De(t.x,e.translate,e.scale,e.originPoint),De(t.y,n.translate,n.scale,n.originPoint)}const qn=.999999999999,Zn=1.0000000000001;function sl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ft(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Ki(t,r)),s&&nt(o.latestValues)&&ft(t,o.latestValues))}e.x<Zn&&e.x>qn&&(e.x=1),e.y<Zn&&e.y>qn&&(e.y=1)}function ht(t,e){t.min=t.min+e,t.max=t.max+e}function Jn(t,e,n,s,i=.5){const o=C(t.min,t.max,i);De(t,e,n,o,s)}function ft(t,e){Jn(t.x,e.x,e.scaleX,e.scale,e.originX),Jn(t.y,e.y,e.scaleY,e.scale,e.originY)}function Wi(t,e){return Ni(qc(t.getBoundingClientRect(),e))}function il(t,e,n){const s=Wi(t,n),{scroll:i}=e;return i&&(ht(s.x,i.offset.x),ht(s.y,i.offset.y)),s}const zi=({current:t})=>t?t.ownerDocument.defaultView:null,Qn=(t,e)=>Math.abs(t-e);function rl(t,e){const n=Qn(t.x,e.x),s=Qn(t.y,e.y);return Math.sqrt(n**2+s**2)}class Hi{constructor(e,n,{transformPagePoint:s,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 h=ce(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=rl(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:p}=h,{timestamp:y}=L;this.history.push({...p,timestamp:y});const{onStart:x,onMove:m}=this.handlers;f||(x&&x(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ae(f,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:p,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=ce(h.type==="pointercancel"?this.lastMoveEventInfo:ae(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,x),p&&p(h,x)},!sn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const r=Bt(e),a=ae(r,this.transformPagePoint),{point:c}=a,{timestamp:u}=L;this.history=[{...c,timestamp:u}];const{onSessionStart:l}=n;l&&l(e,ce(a,this.history)),this.removeListeners=Et(wt(this.contextWindow,"pointermove",this.handlePointerMove),wt(this.contextWindow,"pointerup",this.handlePointerUp),wt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),J(this.updatePoint)}}function ae(t,e){return e?{point:e(t.point)}:t}function ts(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ce({point:t},e){return{point:t,delta:ts(t,Gi(e)),offset:ts(t,ol(e)),velocity:al(e,.1)}}function ol(t){return t[0]}function Gi(t){return t[t.length-1]}function al(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Gi(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>W(e)));)n--;if(!s)return{x:0,y:0};const o=z(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function cl(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?C(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?C(n,t,s.max):Math.min(t,n)),t}function es(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function ll(t,{top:e,left:n,bottom:s,right:i}){return{x:es(t.x,n,i),y:es(t.y,e,s)}}function ns(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function ul(t,e){return{x:ns(t.x,e.x),y:ns(t.y,e.y)}}function hl(t,e){let n=.5;const s=I(t),i=I(e);return i>s?n=At(e.min,e.max-s,t.min):s>i&&(n=At(t.min,t.max-i,e.min)),Y(0,1,n)}function fl(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const ke=.35;function dl(t=ke){return t===!1?t=0:t===!0&&(t=ke),{x:ss(t,"left","right"),y:ss(t,"top","bottom")}}function ss(t,e,n){return{min:is(t,e),max:is(t,n)}}function is(t,e){return typeof t=="number"?t:t[e]||0}const pl=new WeakMap;class ml{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=R(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=l=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Bt(l).point)},o=(l,h)=>{const{drag:f,dragPropagation:d,onDragStart:p}=this.getProps();if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Da(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$(x=>{let m=this.getAxisMotionValue(x).get()||0;if(H.test(m)){const{projection:w}=this.visualElement;if(w&&w.layout){const g=w.layout.layoutBox[x];g&&(m=I(g)*(parseFloat(m)/100))}}this.originPoint[x]=m}),p&&D.postRender(()=>p(l,h)),Me(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},r=(l,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:p,onDrag:y}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=h;if(d&&this.currentDirection===null){this.currentDirection=yl(x),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,x),this.updateAxis("y",h.point,x),this.visualElement.render(),y&&y(l,h)},a=(l,h)=>this.stop(l,h),c=()=>$(l=>{var h;return this.getAnimationState(l)==="paused"&&((h=this.getAxisMotionValue(l).animation)==null?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Hi(e,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:zi(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&D.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Nt(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=cl(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var o;const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;e&<(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=ll(s.layoutBox,e):this.constraints=!1,this.elastic=dl(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&$(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=fl(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!lt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=il(s,i.root,this.visualElement.getTransformPagePoint());let r=ul(i.layout.layoutBox,o);if(n){const a=n(Yc(r));this.hasMutatedConstraints=!!a,a&&(r=Ni(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},u=$(l=>{if(!Nt(l,n,this.currentDirection))return;let h=c&&c[l]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[l]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(l,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Me(this.visualElement,e),s.start(pn(e,s,0,n,this.visualElement,!1))}stopAnimation(){$(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){$(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){$(n=>{const{drag:s}=this.getProps();if(!Nt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-C(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!lt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const c=a.get();i[r]=hl({min:c,max:c},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),$(r=>{if(!Nt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:c,max:u}=this.constraints[r];a.set(C(c,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;pl.set(this.visualElement,this);const e=this.visualElement.current,n=wt(e,"pointerdown",c=>{const{drag:u,dragListener:l=!0}=this.getProps();u&&l&&this.start(c)}),s=()=>{const{dragConstraints:c}=this.getProps();lt(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),D.read(s);const r=Rt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&($(l=>{const h=this.getAxisMotionValue(l);h&&(this.originPoint[l]+=c[l].translate,h.set(h.get()+c[l].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=ke,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Nt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function yl(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class gl extends tt{constructor(e){super(e),this.removeGroupControls=U,this.removeListeners=U,this.controls=new ml(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||U}unmount(){this.removeGroupControls(),this.removeListeners()}}const rs=t=>(e,n)=>{t&&D.postRender(()=>t(e,n))};class vl extends tt{constructor(){super(...arguments),this.removePointerDownListener=U}onPointerDown(e){this.session=new Hi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zi(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:rs(e),onStart:rs(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&D.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=wt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Kt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function os(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const vt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(S.test(t))t=parseFloat(t);else return t;const n=os(t,e.target.x),s=os(t,e.target.y);return`${n}% ${s}%`}},xl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=Q.parse(t);if(i.length>5)return s;const o=Q.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=c;const u=C(a,c,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}};class Tl extends v.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;ic(Sl),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Kt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||D.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),nn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Xi(t){const[e,n]=Si(),s=v.useContext(Le);return X.jsx(Tl,{...t,layoutGroup:s,switchLayoutGroup:v.useContext(Mi),isPresent:e,safeToRemove:n})}const Sl={borderRadius:{...vt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vt,borderTopRightRadius:vt,borderBottomLeftRadius:vt,borderBottomRightRadius:vt,boxShadow:xl};function wl(t,e,n){const s=B(t)?t:dt(t);return s.start(pn("",s,e,n)),s.animation}const Pl=(t,e)=>t.depth-e.depth;class bl{constructor(){this.children=[],this.isDirty=!1}add(e){je(this.children,e),this.isDirty=!0}remove(e){Ie(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Pl),this.isDirty=!1,this.children.forEach(e)}}function Al(t,e){const n=N.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(J(s),t(o-e))};return D.setup(s,!0),()=>J(s)}const Yi=["TopLeft","TopRight","BottomLeft","BottomRight"],Ml=Yi.length,as=t=>typeof t=="string"?parseFloat(t):t,cs=t=>typeof t=="number"||S.test(t);function Vl(t,e,n,s,i,o){i?(t.opacity=C(0,n.opacity??1,Cl(s)),t.opacityExit=C(e.opacity??1,0,Dl(s))):o&&(t.opacity=C(e.opacity??1,n.opacity??1,s));for(let r=0;r<Ml;r++){const a=`border${Yi[r]}Radius`;let c=ls(e,a),u=ls(n,a);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||cs(c)===cs(u)?(t[a]=Math.max(C(as(c),as(u),s),0),(H.test(u)||H.test(c))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=C(e.rotate||0,n.rotate||0,s))}function ls(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Cl=qi(0,.5,Us),Dl=qi(.5,.95,U);function qi(t,e,n){return s=>s<t?0:s>e?1:n(At(t,e,s))}function us(t,e){t.min=e.min,t.max=e.max}function _(t,e){us(t.x,e.x),us(t.y,e.y)}function hs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function fs(t,e,n,s,i){return t-=e,t=Xt(t,1/n,s),i!==void 0&&(t=Xt(t,1/i,s)),t}function kl(t,e=0,n=1,s=.5,i,o=t,r=t){if(H.test(e)&&(e=parseFloat(e),e=C(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=C(o.min,o.max,s);t===o&&(a-=e),t.min=fs(t.min,e,n,a,i),t.max=fs(t.max,e,n,a,i)}function ds(t,e,[n,s,i],o,r){kl(t,e[n],e[s],e[i],e.scale,o,r)}const Rl=["x","scaleX","originX"],El=["y","scaleY","originY"];function ps(t,e,n,s){ds(t.x,e,Rl,n?n.x:void 0,s?s.x:void 0),ds(t.y,e,El,n?n.y:void 0,s?s.y:void 0)}function ms(t){return t.translate===0&&t.scale===1}function Zi(t){return ms(t.x)&&ms(t.y)}function ys(t,e){return t.min===e.min&&t.max===e.max}function Ll(t,e){return ys(t.x,e.x)&&ys(t.y,e.y)}function gs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ji(t,e){return gs(t.x,e.x)&&gs(t.y,e.y)}function vs(t){return I(t.x)/I(t.y)}function xs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Fl{constructor(){this.members=[]}add(e){je(this.members,e),e.scheduleRender()}remove(e){if(Ie(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Bl(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=(n==null?void 0:n.z)||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:l,rotateX:h,rotateY:f,skewX:d,skewY:p}=n;u&&(s=`perspective(${u}px) ${s}`),l&&(s+=`rotate(${l}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const le=["","X","Y","Z"],jl={visibility:"hidden"},Il=1e3;let Ol=0;function ue(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Qi(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Bi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",D,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Qi(s)}function tr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=Ol++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach($l),this.nodes.forEach(Hl),this.nodes.forEach(Gl),this.nodes.forEach(Ul)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,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 c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new bl)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new _e),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const c=this.eventHandlers.get(r);c&&c.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Ti(r)&&!Ba(r),this.instance=r;const{layoutId:a,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let l;const h=()=>this.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,l&&l(),l=Al(h,250),Kt.hasAnimatedSinceResize&&(Kt.hasAnimatedSinceResize=!1,this.nodes.forEach(Ss))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||c)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||Jl,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=u.getProps(),m=!this.targetLayout||!Ji(this.targetLayout,d),w=!h&&f;if(this.options.layoutRoot||this.resumeFrom||w||h&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(l,w);const g={...tn(p,"layout"),onPlay:y,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(g.delay=0,g.type=!1),this.startAnimation(g)}else h||Ss(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),J(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(Xl),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Qi(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const h=this.path[l];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ts);return}this.isUpdating||this.nodes.forEach(Wl),this.isUpdating=!1,this.nodes.forEach(zl),this.nodes.forEach(Nl),this.nodes.forEach(_l),this.clearAllSnapshots();const a=N.now();L.delta=Y(0,1e3/60,a-L.timestamp),L.timestamp=a,L.isProcessing=!0,ee.update.process(L),ee.preRender.process(L),ee.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Kl),this.sharedNodes.forEach(Yl)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!I(this.snapshot.measuredBox.x)&&!I(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=R(),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,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Zi(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,l=u!==this.prevTransformTemplateValue;r&&this.instance&&(a||nt(this.latestValues)||l)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),Ql(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:r}=this.options;if(!r)return R();const a=r.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(tu))){const{scroll:l}=this.root;l&&(ht(a.x,l.offset.x),ht(a.y,l.offset.y))}return a}removeElementScroll(r){var c;const a=R();if(_(a,r),(c=this.scroll)!=null&&c.wasRoot)return a;for(let u=0;u<this.path.length;u++){const l=this.path[u],{scroll:h,options:f}=l;l!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&_(a,r),ht(a.x,h.offset.x),ht(a.y,h.offset.y))}return a}applyTransform(r,a=!1){const c=R();_(c,r);for(let u=0;u<this.path.length;u++){const l=this.path[u];!a&&l.options.layoutScroll&&l.scroll&&l!==l.root&&ft(c,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),nt(l.latestValues)&&ft(c,l.latestValues)}return nt(this.latestValues)&&ft(c,this.latestValues),c}removeTransform(r){const a=R();_(a,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!nt(u.latestValues))continue;Ce(u.latestValues)&&u.updateSnapshot();const l=R(),h=u.measurePageBox();_(l,h),ps(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,l)}return nt(this.latestValues)&&ps(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.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!==L.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var f;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:h}=this.options;if(!(!this.layout||!(l||h))){if(this.resolvedRelativeTargetAt=L.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),bt(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),_(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=R(),this.targetWithTransforms=R()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),nl(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):_(this.target,this.layout.layoutBox),Ki(this.target,this.targetDelta)):_(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),bt(this.relativeTargetOrigin,this.target,d.target),_(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ce(this.parent.latestValues)||Ui(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 p;const r=this.getLead(),a=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&
vendor: 4,143 bytes, line 179
179(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===L.timestamp&&(c=!1),c)return;const{layout:u,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||l))return;_(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;sl(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=R());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(hs(this.prevProjectionDelta.x,this.projectionDelta.x),hs(this.prevProjectionDelta.y,this.projectionDelta.y)),Pt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!xs(this.projectionDelta.x,this.prevProjectionDelta.x)||!xs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),r){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ut(),this.projectionDelta=ut(),this.projectionDeltaWithTransform=ut()}setAnimationOrigin(r,a=!1){const c=this.snapshot,u=c?c.latestValues:{},l={...this.latestValues},h=ut();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=R(),d=c?c.source:void 0,p=this.layout?this.layout.source:void 0,y=d!==p,x=this.getStack(),m=!x||x.members.length<=1,w=!!(y&&!m&&this.options.crossfade===!0&&!this.path.some(Zl));this.animationProgress=0;let g;this.mixTargetDelta=A=>{const T=A/1e3;ws(h.x,r.x,T),ws(h.y,r.y,T),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ql(this.relativeTarget,this.relativeTargetOrigin,f,T),g&&Ll(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=R()),_(g,this.relativeTarget)),y&&(this.animationValues=l,Vl(l,u,this.latestValues,T,w,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){var a,c,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(!1),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(!1),this.pendingAnimation&&(J(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{Kt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=dt(0)),this.currentAnimation=wl(this.motionValue,[0,1e3],{...r,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),r.onUpdate&&r.onUpdate(l)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.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 r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Il),this.currentAnimation.stop(!1)),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:l}=r;if(!(!a||!c||!u)){if(this!==r&&this.layout&&u&&er(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||R();const h=I(this.layout.layoutBox.x);
vendor: 17,245 bytes, line 179
179c.x.min=r.target.x.min,c.x.max=c.x.min+h;const f=I(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+f}_(a,c),ft(a,l),Pt(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Fl),this.sharedNodes.get(r).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 r=this.getStack();return r?r.lead===this:!0}getLead(){var a;const{layoutId:r}=this.options;return r?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:r}=this.options;return r?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const u={};c.z&&ue("z",r,u,this.animationValues);for(let l=0;l<le.length;l++)ue(`rotate${le[l]}`,r,u,this.animationValues),ue(`skew${le[l]}`,r,u,this.animationValues);r.render();for(const l in u)r.setStaticValue(l,u[l]),this.animationValues&&(this.animationValues[l]=u[l]);r.scheduleRender()}getProjectionStyles(r){if(!this.instance||this.isSVG)return;if(!this.isVisible)return jl;const a={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,a.opacity="",a.pointerEvents=Ut(r==null?void 0:r.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none",a;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const d={};return this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=Ut(r==null?void 0:r.pointerEvents)||""),this.hasProjected&&!nt(this.latestValues)&&(d.transform=c?c({},""):"none",this.hasProjected=!1),d}const l=u.animationValues||u.latestValues;this.applyTransformsToTarget(),a.transform=Bl(this.projectionDeltaWithTransform,this.treeScale,l),c&&(a.transform=c(l,a.transform));const{x:h,y:f}=this.projectionDelta;a.transformOrigin=`${h.origin*100}% ${f.origin*100}% 0`,u.animationValues?a.opacity=u===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:a.opacity=u===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const d in Dt){if(l[d]===void 0)continue;const{correct:p,applyTo:y,isCSSVariable:x}=Dt[d],m=a.transform==="none"?l[d]:p(l[d],u);if(y){const w=y.length;for(let g=0;g<w;g++)a[y[g]]=m}else x?this.options.visualElement.renderState.vars[d]=m:a[d]=m}return this.options.layoutId&&(a.pointerEvents=u===this?Ut(r==null?void 0:r.pointerEvents)||"":"none"),a}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)==null?void 0:a.stop(!1)}),this.root.nodes.forEach(Ts),this.root.sharedNodes.clear()}}}function Nl(t){t.updateLayout()}function _l(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=e.source!==t.layout.source;o==="size"?$(h=>{const f=r?e.measuredBox[h]:e.layoutBox[h],d=I(f);f.min=s[h].min,f.max=f.min+d}):er(o,e.layoutBox,s)&&$(h=>{const f=r?e.measuredBox[h]:e.layoutBox[h],d=I(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=ut();Pt(a,s,e.layoutBox);const c=ut();r?Pt(c,t.applyTransform(i,!0),e.measuredBox):Pt(c,s,e.layoutBox);const u=!Zi(a);let l=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const p=R();bt(p,e.layoutBox,f.layoutBox);const y=R();bt(y,s,d.layoutBox),Ji(p,y)||(l=!0),h.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:c,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function $l(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Ul(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Kl(t){t.clearSnapshot()}function Ts(t){t.clearMeasurements()}function Wl(t){t.isLayoutDirty=!1}function zl(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ss(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Hl(t){t.resolveTargetDelta()}function Gl(t){t.calcProjection()}function Xl(t){t.resetSkewAndRotation()}function Yl(t){t.removeLeadSnapshot()}function ws(t,e,n){t.translate=C(e.translate,0,n),t.scale=C(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ps(t,e,n,s){t.min=C(e.min,n.min,s),t.max=C(e.max,n.max,s)}function ql(t,e,n,s){Ps(t.x,e.x,n.x,s),Ps(t.y,e.y,n.y,s)}function Zl(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Jl={duration:.45,ease:[.4,0,.1,1]},bs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),As=bs("applewebkit/")&&!bs("chrome/")?Math.round:U;function Ms(t){t.min=As(t.min),t.max=As(t.max)}function Ql(t){Ms(t.x),Ms(t.y)}function er(t,e,n){return t==="position"||t==="preserve-aspect"&&!el(vs(e),vs(n),.2)}function tu(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const eu=tr({attachResizeListener:(t,e)=>Rt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),he={current:void 0},nr=tr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!he.current){const t=new eu({});t.mount(window),t.setOptions({layoutScroll:!0}),he.current=t}return he.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),nu={pan:{Feature:vl},drag:{Feature:gl,ProjectionNode:nr,MeasureLayout:Xi}};function Vs(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&D.postRender(()=>o(e,Bt(e)))}class su extends tt{mount(){const{current:e}=this.node;e&&(this.unmount=ka(e,(n,s)=>(Vs(this.node,s,"Start"),i=>Vs(this.node,i,"End"))))}unmount(){}}class iu extends tt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Et(Rt(this.node.current,"focus",()=>this.onFocus()),Rt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Cs(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&D.postRender(()=>o(e,Bt(e)))}class ru extends tt{mount(){const{current:e}=this.node;e&&(this.unmount=Fa(e,(n,s)=>(Cs(this.node,s,"Start"),(i,{success:o})=>Cs(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Re=new WeakMap,fe=new WeakMap,ou=t=>{const e=Re.get(t.target);e&&e(t)},au=t=>{t.forEach(ou)};function cu({root:t,...e}){const n=t||document;fe.has(n)||fe.set(n,{});const s=fe.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(au,{root:t,...e})),s[i]}function lu(t,e,n){const s=cu(e);return Re.set(t,n),s.observe(t),()=>{Re.delete(t),s.unobserve(t)}}const uu={some:0,all:1};class hu extends tt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:uu[i]},a=c=>{const{isIntersecting:u}=c;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:l,onViewportLeave:h}=this.node.getProps(),f=u?l:h;f&&f(c)};return lu(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(fu(e,n))&&this.startObserver()}unmount(){}}function fu({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const du={inView:{Feature:hu},tap:{Feature:ru},focus:{Feature:iu},hover:{Feature:su}},pu={layout:{ProjectionNode:nr,MeasureLayout:Xi}},Ee={current:null},sr={current:!1};function mu(){if(sr.current=!0,!!Be)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ee.current=t.matches;t.addListener(e),e()}else Ee.current=!1}const yu=new WeakMap;function gu(t,e,n){for(const s in e){const i=e[s],o=n[s];if(B(i))t.addValue(s,i);else if(B(o))t.addValue(s,dt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,dt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Ds=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class vu{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Je,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.renderScheduledAt=0,this.scheduleRender=()=>{const f=N.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,D.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=r;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Jt(n),this.isVariantNode=bi(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];c[f]!==void 0&&B(d)&&d.set(c[f],!1)}}mount(e){this.current=e,yu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),sr.current||mu(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ee.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),J(this.notifyUpdate),J(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=gt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&D.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),r&&r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in pt){const n=pt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):R()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Ds.length;s++){const i=Ds[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=gu(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=dt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Es(s)||Fs(s))?s=parseFloat(s):!Ia(s)&&Q.test(n)&&(s=mi(e,n)),this.setBaseTarget(e,B(s)?s.get():s)),B(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var o;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=fn(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!B(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new _e),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class ir extends vu{constructor(){super(...arguments),this.KeyframeResolver=Aa}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;B(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function rr(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const o in n)t.style.setProperty(o,n[o])}function xu(t){return window.getComputedStyle(t)}class Tu extends ir{constructor(){super(...arguments),this.type="html",this.renderInstance=rr}readValueFromInstance(e,n){var s;if(gt.has(n))return(s=this.projection)!=null&&s.isProjecting?xe(n):Wo(e,n);{const i=xu(e),o=(Ke(n)?i.getPropertyValue(n):i[n])||0;
179return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Wi(e,n)}build(e,n,s){ln(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return dn(e,n,s)}}const or=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 Su(t,e,n,s){rr(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(or.has(i)?i:cn(i),e.attrs[i])}class wu extends ir{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=R}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(gt.has(n)){const s=pi(n);return s&&s.default||0}return n=or.has(n)?n:cn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Fi(e,n,s)}build(e,n,s){ki(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Su(e,n,s,i)}mount(e){this.isSVGTag=Ei(e.tagName),super.mount(e)}}const Pu=(t,e)=>hn(t)?new wu(e):new Tu(e,{allowProjection:t!==v.Fragment}),bu=Sc({...Gc,...du,...nu,...pu},Pu),ah=Ha(bu);export{rh as A,Fu as C,_u as F,$u as I,Uu as L,Hu as M,Xu as R,qu as S,Ju as T,th as U,sh as V,ih as X,nh as a,Bu as b,Gu as c,Ou as d,Nu as e,Iu as f,Qu as g,ju as h,Du as i,Zu as j,Wu as k,Ru as l,ah as m,Eu as n,Lu as o,Ku as p,Yu as q,zu as r,eh as s,ku as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.