1"use strict";(self.webpackChunkzen_car_buying=self.webpackChunkzen_car_buying||[]).push([[193],{386:function(t,e,n){n.d(e,{p:function(){return i}});const i=()=>"/"},655:function(t,e,n){var i=n(6955),s=String;t.exports=function(t){if("Symbol"===i(t))throw new TypeError("Cannot convert a Symbol value to a string");return s(t)}},864:function(t,e,n){n.d(e,{A:function(){return a}});var i=n(6540),s=n(3085);const o="h-5 w-5",r=[{key:"google",label:"Google Business Profile",icon:i.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",className:o},i.createElement("path",{d:"M20.5 12.23c0-.7-.06-1.21-.19-1.74H12v3.19h4.88c-.1.79-.64 1.99-1.84 2.79l-.02.11 2.55 1.94.18.02c1.65-1.49 2.75-3.69 2.75-6.31Z",fill:"currentColor"}),i.createElement("path",{d:"M12 20.75c2.39 0 4.4-.77 5.87-2.09l-2.8-2.07c-.75.51-1.76.87-3.07.87-2.34 0-4.33-1.49-5.04-3.56l-.11.01-2.65 2.01-.04.1A8.86 8.86 0 0 0 12 20.75Z",fill:"currentColor"}),i.createElement("path",{d:"M6.96 13.9A5.33 5.33 0 0 1 6.66 12c0-.66.11-1.29.29-1.9l-.01-.13-2.69-2.04-.09.04A8.53 8.53 0 0 0 3.25 12c0 1.44.35 2.8.96 4l2.75-2.1Z",fill:"currentColor"}),i.createElement("path",{d:"M12 6.54c1.65 0 2.76.69 3.39 1.26l2.47-2.34C16.38 4.12 14.39 3.25 12 3.25A8.86 8.86 0 0 0 4.16 7.98l2.79 2.13c.72-2.07 2.71-3.57 5.05-3.57Z",fill:"currentColor"}))},{key:"facebook",label:"Facebook",icon:i.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",className:o},i.createElement("path",{d:"M13.36 21v-7.3h2.45l.37-2.85h-2.82V9.04c0-.83.23-1.39 1.43-1.39H16.3V5.1c-.26-.03-1.14-.1-2.16-.1-2.14 0-3.61 1.31-3.61 3.71v2.14H8.1v2.85h2.43V21h2.83Z"}))},{key:"instagram",label:"Instagram",icon:i.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",className:o},i.createElement("rect",{x:"3.25",y:"3.25",width:"17.5",height:"17.5",rx:"5",stroke:"currentColor",strokeWidth:"1.8"}),i.createElement("circle",{cx:"12",cy:"12",r:"4.1",stroke:"currentColor",strokeWidth:"1.8"}),i.createElement("circle",{cx:"17.2",cy:"6.8",r:"1.1",fill:"currentColor"}))},{key:"linkedin",label:"LinkedIn",icon:i.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",className:o},i.createElement("path",{d:"M6.94 8.5A1.72 1.72 0 1 1 6.93 5a1.72 1.72 0 0 1 .01 3.5ZM5.5 9.86h2.87V19H5.5V9.86Zm4.67 0h2.75v1.25h.04c.38-.72 1.32-1.48 2.72-1.48 2.9 0 3.44 1.91 3.44 4.39V19h-2.87v-4.42c0-1.06-.02-2.41-1.47-2.41-1.48 0-1.7 1.15-1.7 2.33V19h-2.91V9.86Z"}))}];function a(){return i.createElement("div",{className:"mt-4"},i.createElement("div",{className:"flex flex-wrap items-center gap-3"},r.map(t=>i.createElement("a",{key:t.key,href:(0,s.VM)(t.key),target:"_blank",rel:"noreferrer nofollow","aria-label":"Visit Zen Car Buying on "+t.label,className:"inline-flex h-11 w-11 items-center justify-center rounded-full border border-white/35 text-white transition-colors duration-200 hover:bg-white/10 hover:border-white focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2 focus:ring-offset-primary"},t.icon))))}},1456:function(t,e,n){n.d(e,{A:function(){return o}});var i=n(6540),s=n(2508);function o(){const{0:t,1:e}=(0,i.useState)(!0);if(!t)return null;return i.createElement(i.Fragment,null,i.createElement("div",{className:"fixed bottom-6 right-6 z-50 sm:hidden no-swap"},i.createElement("div",{className:"relative"},i.createElement("button",{onClick:()=>e(!1),"aria-label":"Dismiss text-us button",className:"absolute -top-1 -right-1 bg-primary text-white w-5 h-5 rounded-full text-xs flex items-center justify-center hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 shadow-md"},"â"),i.createElement(s.P.button,{type:"button",whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2},onClick:()=>{const t="+19714656205".replace(/[^\d+]/g,""),e=encodeURIComponent("Hi Zen Car Buying â I'm ready to chat about a car."),n=/iPad|iPhone|iPod/.test(navigator.userAgent)?"sms:"+t+"&body="+e:"sms:"+t+"?body="+e;window.location.href=n},className:"bg-primary text-white px-4 py-3 text-sm font-semibold rounded-full shadow-lg hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 flex flex-col items-center gap-1","aria-label":"Text us"},i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor",className:"w-7 h-7","aria-hidden":"true"},i.createElement("path",{d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10H2l3-3C3.119 17.261 2 14.761 2 12z"})),i.createElement("span",{className:"leading-none"},"Text Us")))))}},2140:function(t,e,n){var i={};i[n(8227)("toStringTag")]="z",t.exports="[object z]"===String(i)},2217:function(t,e,n){var i=n(9039);t.exports=function(t,e){var n=[][t];return!!n&&i(function(){n.call(null,e||function(){return 1},1)})}},2508:function(t,e,n){n.d(e,{P:function(){return la}});var i=n(6540);const s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=(()=>new Set(s))(),r=t=>180*t/Math.PI,a=t=>{const e=r(Math.atan2(t[1],t[0]));return c(e)},l={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:a,rotateZ:a,skewX:t=>r(Math.atan(t[1])),skewY:t=>r(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},c=t=>((t%=360)<0&&(t+=360),t),u=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),h=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),d={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:u,scaleY:h,scale:t=>(u(t)+h(t))/2,rotateX:t=>c(r(Math.atan2(t[6],t[5]))),rotateY:t=>c(r(Math.atan2(-t[2],t[0]))),rotateZ:a,rotate:a,skewX:t=>r(Math.atan(t[4])),skewY:t=>r(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function m(t){return t.includes("scale")?1:0}function p(t,e){if(!t||"none"===t)return m(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(n)i=d,s=n;else{const e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=l,s=e}if(!s)return m(e);const o=i[e],r=s[1].split(",").map(f);return"function"==typeof o?o(r):r[o]}function f(t){return parseFloat(t.trim())}const g=t=>e=>"string"==typeof e&&e.startsWith(t),y=g("--"),v=g("var(--"),x=t=>!!v(t)&&w.test(t.split("/*")[0].trim()),w=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function b({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}const T=(t,e,n)=>t+(e-t)*n;function S(t){return void 0===t||1===t}function P({scale:t,scaleX:e,scaleY:n}){return!S(t)||!S(e)||!S(n)}function E(t){return P(t)||C(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function C(t){return A(t.x)||A(t.y)}function A(t){return t&&"0%"!==t}function k(t,e,n){return n+e*(t-n)}function M(t,e,n,i,s){return void 0!==s&&(t=k(t,s,i)),k(t,n,i)+e}function V(t,e=0,n=1,i,s){t.min=M(t.min,e,n,i,s),t.max=M(t.max,e,n,i,s)}function D(t,{x:e,y:n}){V(t.x,e.translate,e.scale,e.originPoint),V(t.y,n.translate,n.scale,n.originPoint)}const L=.999999999999,R=1.0000000000001;function j(t,e){t.min=t.min+e,t.max=t.max+e}function B(t,e,n,i,s=.5){V(t,e,n,T(t.min,t.max,s),i)}function F(t,e){B(t.x,e.x,e.scaleX,e.scale,e.originX),B(t.y,e.y,e.scaleY,e.scale,e.originY)}function O(t,e){return b(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}const I=new Set(["width","height","top","left","right","bottom",...s]),N=(t,e,n)=>n>e?e:n<t?t:n,U={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},$={...U,transform:t=>N(0,1,t)},z={...U,default:1},W=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),H=W("deg"),Y=W("%"),K=W("px"),X=W("vh"),q=W("vw"),G=(()=>({...Y,parse:t=>Y.parse(t)/100,transform:t=>Y.transform(100*t)}))(),_=t=>e=>e.test(t),Z=[U,K,Y,H,q,X,{test:t=>"auto"===t,parse:t=>t}],Q=t=>Z.find(_(t));const J=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),tt=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function et(t,e,n=1){const[i,s]=function(t){const e=tt.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return J(t)?parseFloat(t):t}return x(s)?et(s,e,n+1):s}const nt=t=>t===U||t===K,it=new Set(["x","y","z"]),st=s.filter(t=>!it.has(t));const ot={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})=>p(e,"x"),y:(t,{transform:e})=>p(e,"y")};ot.translateX=ot.x,ot.translateY=ot.y;const rt=t=>t,at={},lt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],ct={value:null,addProjectionMetrics:null};function ut(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=lt.reduce((t,n)=>(t[n]=function(t,e){let n=new Set,i=new Set,s=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function c(e){r.has(e)&&(u.schedule(e),t()),l++,e(a)}const u={schedule:(t,e=!1,o=!1)=>{const a=o&&s?n:i;return e&&r.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>
vendor: 8,746 bytes, line 1
1{a=t,s?o=!0:(s=!0,[n,i]=[i,n],n.forEach(c),e&&ct.value&&ct.value.frameloop[e].push(l),l=0,n.clear(),s=!1,o&&(o=!1,u.process(t)))}};return u}(o,e?n:void 0),t),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:d,render:m,postRender:p}=r,f=()=>{const o=at.useManualTiming?s.timestamp:performance.now();n=!1,at.useManualTiming||(s.delta=i?1e3/60:Math.max(Math.min(o-s.timestamp,40),1)),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),h.process(s),d.process(s),m.process(s),p.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(f))};return{schedule:lt.reduce((e,o)=>{const a=r[o];return e[o]=(e,o=!1,r=!1)=>(n||(n=!0,i=!0,s.isProcessing||t(f)),a.schedule(e,o,r)),e},{}),cancel:t=>{for(let e=0;e<lt.length;e++)r[lt[e]].cancel(t)},state:s,steps:r}}const{schedule:ht,cancel:dt,state:mt,steps:pt}=ut("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:rt,!0),ft=new Set;let gt=!1,yt=!1,vt=!1;function xt(){if(yt){const t=Array.from(ft).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{const e=function(t){const e=[];return st.forEach(n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=n.get(t);e&&e.forEach(([e,n])=>{t.getValue(e)?.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}yt=!1,gt=!1,ft.forEach(t=>t.complete(vt)),ft.clear()}function wt(){ft.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(yt=!0)})}class bt{constructor(t,e,n,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ft.add(this),gt||(gt=!0,ht.read(wt),ht.resolveKeyframes(xt))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(null===t[0]){const s=i?.get(),o=t[t.length-1];if(void 0!==s)t[0]=s;else if(n&&e){const i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===s&&i.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ft.delete(this)}cancel(){"scheduled"===this.state&&(ft.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const Tt=t=>/^0[^.\s]+$/u.test(t);function St(t){return"number"==typeof t?0===t:null===t||("none"===t||"0"===t||Tt(t))}const Pt=t=>Math.round(1e5*t)/1e5,Et=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const Ct=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,At=(t,e)=>n=>Boolean("string"==typeof n&&Ct.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),kt=(t,e,n)=>i=>{if("string"!=typeof i)return i;const[s,o,r,a]=i.match(Et);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},Mt={...U,transform:t=>Math.round((t=>N(0,255,t))(t))},Vt={test:At("rgb","red"),parse:kt("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Mt.transform(t)+", "+Mt.transform(e)+", "+Mt.transform(n)+", "+Pt($.transform(i))+")"};const Dt={test:At("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:Vt.transform},Lt={test:At("hsl","hue"),parse:kt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Y.transform(Pt(e))+", "+Y.transform(Pt(n))+", "+Pt($.transform(i))+")"},Rt={test:t=>Vt.test(t)||Dt.test(t)||Lt.test(t),parse:t=>Vt.test(t)?Vt.parse(t):Lt.test(t)?Lt.parse(t):Dt.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?Vt.transform(t):Lt.transform(t),getAnimatableNone:t=>{const e=Rt.parse(t);return e.alpha=0,Rt.transform(e)}},jt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const Bt="number",Ft="color",Ot=/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 It(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const r=e.replace(Ot,t=>(Rt.test(t)?(i.color.push(o),s.push(Ft),n.push(Rt.parse(t))):t.startsWith("var(")?(i.var.push(o),s.push("var"),n.push(t)):(i.number.push(o),s.push(Bt),n.push(parseFloat(t))),++o,"${}")).split("${}");return{values:n,split:r,indexes:i,types:s}}function Nt(t){return It(t).values}function Ut(t){const{split:e,types:n}=It(t),i=e.length;return t=>{let s="";for(let o=0;o<i;o++)if(s+=e[o],void 0!==t[o]){const e=n[o];s+=e===Bt?Pt(t[o]):e===Ft?Rt.transform(t[o]):t[o]}return s}}const $t=t=>"number"==typeof t?0:Rt.test(t)?Rt.getAnimatableNone(t):t;const zt={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(Et)?.length||0)+(t.match(jt)?.length||0)>0},parse:Nt,createTransformer:Ut,getAnimatableNone:function(t){const e=Nt(t);return Ut(t)(e.map($t))}},Wt=new Set(["brightness","contrast","saturate","opacity"]);function Ht(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(Et)||[];if(!i)return t;const s=n.replace(i,"");let o=Wt.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const Yt=/\b([a-z-]*)\(.*?\)/gu,Kt={...zt,getAnimatableNone:t=>{const e=t.match(Yt);return e?e.map(Ht).join(" "):t}},Xt={...U,transform:Math.round},qt={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,radius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,top:K,right:K,bottom:K,left:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,backgroundPositionX:K,backgroundPositionY:K,...{rotate:H,rotateX:H,rotateY:H,rotateZ:H,scale:z,scaleX:z,scaleY:z,scaleZ:z,skew:H,skewX:H,skewY:H,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:$,originX:G,originY:G,originZ:K},zIndex:Xt,fillOpacity:$,strokeOpacity:$,numOctaves:Xt},Gt={...qt,color:Rt,backgroundColor:Rt,outlineColor:Rt,fill:Rt,stroke:Rt,borderColor:Rt,borderTopColor:Rt,borderRightColor:Rt,borderBottomColor:Rt,borderLeftColor:Rt,filter:Kt,WebkitFilter:Kt},_t=t=>Gt[t];function Zt(t,e){let n=_t(t);return n!==Kt&&(n=zt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Qt=new Set(["auto","none","0"]);class Jt extends bt{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let n=t[a];if("string"==typeof n&&(n=n.trim(),x(n))){const i=et(n,e.current);void 0!==i&&(t[a]=i),a===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!I.has(n)||2!==t.length)return;const[i,s]=t,o=Q(i),r=Q(s);if(o!==r)if(nt(o)&&nt(r))for(let a=0;a<t.length;a++){const e=t[a];"string"==typeof e&&(t[a]=parseFloat(e))}else ot[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let i=0;i<t.length;i++)(null===t[i]||St(t[i]))&&n.push(i);n.length&&function(t,e,n){let i,s=0;for(;s<t.length&&!i;){const e=t[s];"string"==typeof e&&!Qt.has(e)&&It(e).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Zt(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ot[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){const{element:t,name:e,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const i=t.getValue(e);i&&i.jump(this.measuredOrigin,!1);const s=n.length-1,o=n[s];n[s]=ot[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}const te=t=>Boolean(t&&t.getVelocity);let ee;function ne(){ee=void 0}const ie={now:()=>(void 0===ee&&ie.set(mt.isProcessing||at.useManualTiming?mt.timestamp:performance.now()),ee),set:t=>{ee=t,queueMicrotask(ne)}};function se(t,e){-1===t.indexOf(e)&&t.push(e)}function oe(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class re{constructor(){this.subscriptions=[]}add(t){return se(this.subscriptions,t),()=>oe(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ae(t,e){return e?t*(1e3/e):0}const le={current:void 0};class ce{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{const e=ie.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=ie.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new re);const n=this.events[t].add(e);return"change"===t?()=>{n(),ht.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return le.current&&le.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=ie.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ae(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ue(t,e){return new ce(t,e)}const he=[...Z,Rt,zt],{schedule:de,cancel:me}=ut(queueMicrotask,!1),pe={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"]},fe={};for(const ca in pe)fe[ca]={isEnabled:t=>pe[ca].some(e=>!!t[e])};const ge=()=>({x:{min:0,max:0},y:{min:0,max:0}});var ye=n(8288);const ve={current:null},xe={current:!1};const we=new WeakMap;function be(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function Te(t){return"string"==typeof t||Array.isArray(t)}const Se=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Pe=["initial",...Se];function Ee(t){return be(t.animate)||Pe.some(e=>Te(t[e]))}function Ce(t){return Boolean(Ee(t)||t.variants)}function Ae(t){const e=[{},{}];
vendor: 9,912 bytes, line 1
1return t?.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function ke(t,e,n,i){if("function"==typeof e){const[s,o]=Ae(i);e=e(void 0!==n?n:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[s,o]=Ae(i);e=e(void 0!==n?n:t.custom,s,o)}return e}const Me=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ve{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=bt,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 t=ie.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,ht.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.blockInitialAnimation=Boolean(s),this.isControllingVariants=Ee(e),this.isVariantNode=Ce(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(e,{},this);for(const h in u){const t=u[h];void 0!==a[h]&&te(t)&&t.set(a[h])}}mount(t){this.current=t,we.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),xe.current||function(){if(xe.current=!0,ye.B)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ve.current=t.matches;t.addEventListener("change",e),e()}else ve.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ve.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),dt(this.notifyUpdate),dt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=o.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&ht.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in fe){const e=fe[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<Me.length;n++){const e=Me[n];this.propEventSubscriptions[e]&&(this.propEventSubscriptions[e](),delete this.propEventSubscriptions[e]);const i=t["on"+e];i&&(this.propEventSubscriptions[e]=this.on(e,i))}this.prevMotionValues=function(t,e,n){for(const i in e){const s=e[i],o=n[i];if(te(s))t.addValue(i,s);else if(te(o))t.addValue(i,ue(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{const e=t.getStaticValue(i);t.addValue(i,ue(void 0!==e?e:s,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=ue(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){let n=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var i;return null!=n&&("string"==typeof n&&(J(n)||Tt(n))?n=parseFloat(n):(i=n,!he.find(_(i))&&zt.test(e)&&(n=Zt(t,e))),this.setBaseTarget(t,te(n)?n.get():n)),te(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){const{initial:e}=this.props;let n;if("string"==typeof e||"object"==typeof e){const i=ke(this.props,e,this.presenceContext?.custom);i&&(n=i[t])}if(e&&void 0!==n)return n;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||te(i)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new re),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){de.render(this.render)}}class De extends Ve{constructor(){super(...arguments),this.KeyframeResolver=Jt}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;te(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}const Le=(t,e)=>e&&"number"==typeof t?e.transform(t):t,Re={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},je=s.length;function Be(t,e,n){const{style:i,vars:r,transformOrigin:a}=t;let l=!1,c=!1;for(const s in e){const t=e[s];if(o.has(s))l=!0;else if(y(s))r[s]=t;else{const e=Le(t,qt[s]);s.startsWith("origin")?(c=!0,a[s]=e):i[s]=e}}if(e.transform||(l||n?i.transform=function(t,e,n){let i="",o=!0;for(let r=0;r<je;r++){const a=s[r],l=t[a];if(void 0===l)continue;let c=!0;if(c="number"==typeof l?l===(a.startsWith("scale")?1:0):0===parseFloat(l),!c||n){const t=Le(l,qt[a]);c||(o=!1,i+=`${Re[a]||a}(${t}) `),n&&(e[a]=t)}}return i=i.trim(),n?i=n(e,o?"":i):o&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:n=0}=a;i.transformOrigin=`${t} ${e} ${n}`}}function Fe(t,{style:e,vars:n},i,s){const o=t.style;let r;for(r in e)o[r]=e[r];for(r in s?.applyProjectionStyles(o,i),n)o.setProperty(r,n[r])}const Oe={};function Ie(t,{layout:e,layoutId:n}){return o.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!Oe[t]||"opacity"===t)}function Ne(t,e,n){const{style:i}=t,s={};for(const o in i)(te(i[o])||e.style&&te(e.style[o])||Ie(o,t)||void 0!==n?.getValue(o)?.liveStyle)&&(s[o]=i[o]);return s}class Ue extends De{constructor(){super(...arguments),this.type="html",this.renderInstance=Fe}readValueFromInstance(t,e){if(o.has(e))return this.projection?.isProjecting?m(e):((t,e)=>{const{transform:n="none"}=getComputedStyle(t);return p(n,e)})(t,e);{const i=(n=t,window.getComputedStyle(n)),s=(y(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return O(t,e)}build(t,e,n){Be(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return Ne(t,e,n)}}const $e=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ze={offset:"stroke-dashoffset",array:"stroke-dasharray"},We={offset:"strokeDashoffset",array:"strokeDasharray"};function He(t,{attrX:e,attrY:n,attrScale:i,pathLength:s,pathSpacing:o=1,pathOffset:r=0,...a},l,c,u){if(Be(t,a,c),l)return void(t.style.viewBox&&(t.attrs.viewB
1ox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:h,style:d}=t;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete h.transformBox),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==i&&(h.scale=i),void 0!==s&&function(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?ze:We;t[o.offset]=K.transform(-i);const r=K.transform(e),a=K.transform(n);t[o.array]=`${r} ${a}`}(h,s,o,r,!1)}const Ye=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"]),Ke=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Xe(t,e,n){const i=Ne(t,e,n);for(const o in t)if(te(t[o])||te(e[o])){i[-1!==s.indexOf(o)?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o]=t[o]}return i}class qe extends De{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ge}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(o.has(e)){const t=_t(e);return t&&t.default||0}return e=Ye.has(e)?e:$e(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return Xe(t,e,n)}
1build(t,e,n){He(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){!function(t,e,n,i){Fe(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(Ye.has(s)?s:$e(s),e.attrs[s])}(t,e,0,i)}mount(t){this.isSVGTag=Ke(t.tagName),super.mount(t)}}const Ge=["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 _e(t){return"string"==typeof t&&!t.includes("-")&&!!(Ge.indexOf(t)>-1||/[A-Z]/u.test(t))}const Ze=(t,e)=>_e(t)?new qe(e):new Ue(e,{allowProjection:t!==i.Fragment});var Qe=n(4848),Je=n(9473);const tn=(0,i.createContext)({strict:!1});var en=n(5446);const nn=(0,i.createContext)({});function sn(t){const{initial:e,animate:n}=function(t,e){if(Ee(t)){const{initial:e,animate:n}=t;return{initial:!1===e||Te(e)?e:void 0,animate:Te(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,i.useContext)(nn));return(0,i.useMemo)(()=>({initial:e,animate:n}),[on(e),on(n)])}function on(t){return Array.isArray(t)?t.join(" "):t}const rn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function an(t,e,n){for(const i in e)te(e[i])||Ie(i,n)||(t[i]=e[i])}function ln(t,e){const n={};return an(n,t.style||{},t),Object.assign(n,function({transformTemplate:t},e){return(0,i.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return Be(n,e,t),Object.assign({},n.vars,n.style)},[e])}(t,e)),n}function cn(t,e){const n={},i=ln(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const un=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}});function hn(t,e,n,s){const o=(0,i.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return He(n,e,Ke(s),t.transformTemplate,t.style),{...n.attrs,style:{...n.style}}},[e]);if(t.style){const e={};an(e,t.style,t),o.style={...e,...o.style}}return o}const dn=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 mn(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||dn.has(t)}let pn=t=>!mn(t);try{"function"==typeof(fn=require("@emotion/is-prop-valid").default)&&(pn=t=>t.startsWith("on")?!mn(t):fn(t))}catch{}var fn;function gn(t,e,n,{latestValues:s},o,r=!1){const a=(_e(t)?hn:cn)(e,s,o,t),l=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"==typeof t.values||(pn(s)||!0===n&&mn(s)||!e&&!mn(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(e,"string"==typeof t,r),c=t!==i.Fragment?{...l,...a,ref:n}:{},{children:u}=e,h=(0,i.useMemo)(()=>te(u)?u.get():u,[u]);return(0,i.createElement)(t,{...c,children:h})}var yn=n(6719),vn=n(8601);function xn(t){return te(t)?t.get():t}function wn(t,e,n,i){const s={},o=i(t,{});for(const d in o)s[d]=xn(o[d]);let{initial:r,animate:a}=t;const l=Ee(t),c=Ce(t);e&&c&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let u=!!n&&!1===n.initial;u=u||!1===r;const h=u?a:r;if(h&&"boolean"!=typeof h&&!be(h)){const e=Array.isArray(h)?h:[h];for(let n=0;n<e.length;n++){const i=ke(t,e[n]);if(i){const{transitionEnd:t,transition:e,...n}=i;for(const i in n){let t=n[i];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(s[i]=t)}for(const i in t)s[i]=t[i]}}}return s}const bn=t=>(e,n)=>{const s=(0,i.useContext)(nn),o=(0,i.useContext)(yn.t),r=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,s){return{latestValues:wn(n,i,s,t),renderState:e()}}(t,e,s,o);return n?r():(0,vn.M)(r)},Tn=bn({scrapeMotionValuesFromProps:Ne,createRenderState:rn}),Sn=bn({scrapeMotionValuesFromProps:Xe,createRenderState:un});const Pn=Symbol.for("motionComponentSymbol");function En(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function Cn(t,e,n){return(0,i.useCallback)(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&("function"==typeof n?n(i):En(n)&&(n.current=i))},[e])}const An="data-"+$e("framerAppearId"),kn=(0,i.createContext)({});var Mn=n(5128);function Vn(t,e,n,s,o){const{visualElement:r}=(0,i.useContext)(nn),a=(0,i.useContext)(tn),l=(0,i.useContext)(yn.t),c=(0,i.useContext)(en.Q).reducedMotion,u=(0,i.useRef)(null);s=s||a.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:r,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c}
1));const h=u.current,d=(0,i.useContext)(kn);!h||h.projection||!o||"html"!==h.type&&"svg"!==h.type||function(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Dn(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(r)||a&&En(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,crossfade:u,layoutScroll:l,layoutRoot:c})}(u.current,n,o,d);const m=(0,i.useRef)(!1);(0,i.useInsertionEffect)(()=>{h&&m.current&&h.update(n,l)});const p=n[An],f=(0,i.useRef)(Boolean(p)&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,Mn.E)(()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),f.current&&h.animationState&&h.animationState.animateChanges())}),(0,i.useEffect)(()=>{h&&(!f.current&&h.animationState&&h.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),f.current=!1),h.enteringChildren=void 0)}),h}function Dn(t){if(t)return!1!==t.options.allowProjection?t.projection:Dn(t.parent)}function Ln(t,{forwardMotionProps:e=!1}={},n,s){n&&function(t){for(const e in t)fe[e]={...fe[e],...t[e]}}(n);const o=_e(t)?Sn:Tn;function r(n,r){let a;const l={...(0,i.useContext)(en.Q),...n,layoutId:Rn(n)},{isStatic:c}=l,u=sn(n),h=o(n,c);if(!c&&ye.B){!function(){(0,i.useContext)(tn).strict;0}();const e=function(t){const{drag:e,layout:n}=fe;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(l);a=e.MeasureLayout,u.visualElement=Vn(t,h,l,s,e.ProjectionNode)}return(0,Qe.jsxs)(nn.Provider,{value:u,children:[a&&u.visualElement?(0,Qe.jsx)(a,{visualElement:u.visualElement,...l}):null,gn(t,n,Cn(h,u.visualElement,r),h,c,e)]})}r.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;const a=(0,i.forwardRef)(r);return a[Pn]=t,a}function Rn({layoutId:t}){const e=(0,i.useContext)(Je.L).id;return e&&void 0!==t?e+"-"+t:t}function jn(t,e){if("undefined"==typeof Proxy)return Ln;const n=new Map,i=(n,i)=>Ln(n,i,t,e);return new Proxy((t,e)=>i(t,e),{get:(s,o)=>"create"===o?i:(n.has(o)||n.set(o,Ln(o,void 0,t,e)),n.get(o))})}function Bn(t,e,n){const i=t.getProps();return ke(i,e,void 0!==n?n:i.custom,t)}function Fn(t,e){return t?.[e]??t?.default??t}const On=t=>Array.isArray(t);function In(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ue(n))}function Nn(t){return On(t)?t[t.length-1]||0:t}function Un(t,e){const n=t.getValue("willChange");if(i=n,Boolean(te(i)&&i.add))return n.add(e);if(!n&&at.WillChange){const n=new at.WillChange("auto");t.addValue("willChange",n),n.add(e)}var i}function $n(t){return t.props[An]}function zn(t){t.duration=0,t.type="keyframes"}const Wn=(t,e)=>n=>e(t(n)),Hn=(...t)=>t.reduce(Wn),Yn=t=>1e3*t,Kn=t=>t/1e3,Xn={layout:0,mainThread:0,waapi:0};function qn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Gn(t,e){return n=>n>0?e:t}const _n=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},Zn=[Dt,Vt,Lt];function Qn(t){const e=(n=t,Zn.find(t=>t.test(n)));var n;if(Boolean(e),!Boolean(e))return!1;let i=e.parse(t);return e===Lt&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,o=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=qn(a,i,t+1/3),o=qn(a,i,t),r=qn(a,i,t-1/3)}else s=o=r=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*r),alpha:i}}(i)),i}const Jn=(t,e)=>{const n=Qn(t),i=Qn(e);if(!n||!i)return Gn(t,e);const s={...n};return t=>(s.red=_n(n.red,i.red,t),s.green=_n(n.green,i.green,t),s.blue=_n(n.blue,i.blue,t),s.alpha=T(n.alpha,i.alpha,t),Vt.transform(s))},ti=new Set(["none","hidden"]);function ei(t,e){return n=>T(t,e,n)}function ni(t){return"number"==typeof t?ei:"string"==typeof t?x(t)?Gn:Rt.test(t)?Jn:oi:Array.isArray(t)?ii:"object"==typeof t?Rt.test(t)?Jn:si:Gn}function ii(t,e){const n=[...t],i=n.length,s=t.map((t,n)=>ni(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}}function si(t,e){const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=ni(t[s])(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const oi=(t,e)=>{const n=zt.createTransformer(e),i=It(t),s=It(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?ti.has(t)&&!s.values.length||ti.has(e)&&!i.values.length?function(t,e){return ti.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}
1(t,e):Hn(ii(function(t,e){const n=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],r=t.indexes[o][i[o]],a=t.values[r]??0;n[s]=a,i[o]++}return n}(i,s),s.values),n):Gn(t,e)};function ri(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return T(t,e,n);return ni(t)(t,e)}const ai=t=>{const e=({timestamp:e})=>t(e);return{start:(t=!0)=>ht.update(e,t),stop:()=>dt(e),now:()=>mt.isProcessing?mt.timestamp:ie.now()}},li=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let o=0;o<s;o++)i+=Math.round(1e4*t(o/(s-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},ci=2e4;function ui(t){let e=0;let n=t.next(e);for(;!n.done&&e<ci;)e+=50,n=t.next(e);return e>=ci?1/0:e}function hi(t,e,n){const i=Math.max(e-5,0);return ae(n-t(i),e-i)}const di=100,mi=10,pi=1,fi=0,gi=800,yi=.3,vi=.3,xi={granular:.01,default:2},wi={granular:.005,default:.5},bi=.01,Ti=10,Si=.05,Pi=1,Ei=.001;function Ci({duration:t=gi,bounce:e=yi,velocity:n=fi,mass:i=pi}){let s,o;Yn(Ti);let r=1-e;r=N(Si,Pi,r),t=N(bi,Ti,Kn(t)),r<1?(s=e=>
vendor: 9,985 bytes, line 1
1{const i=e*r,s=i*t,o=i-n,a=ki(e,r),l=Math.exp(-s);return Ei-o/a*l},o=e=>{const i=e*r*t,o=i*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-i),c=ki(Math.pow(e,2),r);return(-s(e)+Ei>0?-1:1)*((o-a)*l)/c}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let s=1;s<Ai;s++)i-=t(i)/e(i);return i}(s,o,5/t);if(t=Yn(t),isNaN(a))return{stiffness:di,damping:mi,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*r*Math.sqrt(i*e),duration:t}}}const Ai=12;function ki(t,e){return t*Math.sqrt(1-e*e)}const Mi=["duration","bounce"],Vi=["stiffness","damping","mass"];function Di(t,e){return e.some(e=>void 0!==t[e])}function Li(t=vi,e=yi){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:h,velocity:d,isResolvedFromDuration:m}=function(t){let e={velocity:fi,stiffness:di,damping:mi,mass:pi,isResolvedFromDuration:!1,...t};if(!Di(t,Vi)&&Di(t,Mi))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,o=2*N(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:pi,stiffness:s,damping:o}}else{const n=Ci(t);e={...e,...n,mass:pi},e.isResolvedFromDuration=!0}return e}({...n,velocity:-Kn(n.velocity||0)}),p=d||0,f=c/(2*Math.sqrt(l*u)),g=r-o,y=Kn(Math.sqrt(l/u)),v=Math.abs(g)<5;let x;if(i||(i=v?xi.granular:xi.default),s||(s=v?wi.granular:wi.default),f<1){const t=ki(y,f);x=e=>{const n=Math.exp(-f*y*e);return r-n*((p+f*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}}else if(1===f)x=t=>r-Math.exp(-y*t)*(g+(p+y*g)*t);else{const t=y*Math.sqrt(f*f-1);x=e=>{const n=Math.exp(-f*y*e),i=Math.min(t*e,300);return r-n*((p+f*y*g)*Math.sinh(i)+t*g*Math.cosh(i))/t}}const w={calculatedDuration:m&&h||null,next:t=>{const e=x(t);if(m)a.done=t>=h;else{let n=0===t?p:0;f<1&&(n=0===t?Yn(p):hi(x,t,e));const o=Math.abs(n)<=i,l=Math.abs(r-e)<=s;a.done=o&&l}return a.value=a.done?r:e,a},toString:()=>{const t=Math.min(ui(w),ci),e=li(e=>w.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return w}function Ri({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},m=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let p=n*e;const f=h+p,g=void 0===r?f:r(f);g!==f&&(p=g-h);const y=t=>-p*Math.exp(-t/i),v=t=>g+y(t),x=t=>{const e=y(t),n=v(t);d.done=Math.abs(e)<=c,d.value=d.done?g:n};let w,b;const T=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(w=t,b=Li({keyframes:[d.value,m(d.value)],velocity:hi(v,t,d.value),damping:s,stiffness:o,restDelta:c,restSpeed:u}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return b||void 0!==w||(e=!0,x(t),T(t)),void 0!==w&&t>=w?b.next(t-w):(!e&&x(t),d)}}}Li.applyToOptions=t=>{const e=function(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(ui(i),ci);return{type:"keyframes",ease:t=>i.next(s*t).value/e,duration:Kn(s)}}(t,100,Li);return t.ease=e.ease,t.duration=Yn(e.duration),t.type="keyframes",t};const ji=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function Bi(t,e,n,i){if(t===e&&n===i)return rt;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=ji(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:ji(s(t),e,i)}const Fi=Bi(.42,0,1,1),Oi=Bi(0,0,.58,1),Ii=Bi(.42,0,.58,1),Ni=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ui=t=>e=>1-t(1-e),$i=Bi(.33,1.53,.69,.99),zi=Ui($i),Wi=Ni(zi),Hi=t=>(t*=2)<1?.5*zi(t):.5*(2-Math.pow(2,-10*(t-1))),Yi=t=>1-Math.sin(Math.acos(t)),Ki=Ui(Yi),Xi=Ni(Yi),qi=t=>Array.isArray(t)&&"number"==typeof t[0],Gi={linear:rt,easeIn:Fi,easeInOut:Ii,easeOut:Oi,circIn:Yi,circInOut:Xi,circOut:Ki,backIn:zi,backInOut:Wi,backOut:$i,anticipate:Hi},_i=t=>{if(qi(t)){t.length;const[e,n,i,s]=t;return Bi(e,n,i,s)}return"string"==typeof t?Gi[t]:t},Zi=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i};function Qi(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(e.length,1===o)return()=>e[0];if(2===o&&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=function(t,e,n){const i=[],s=n||at.mix||ri,o=t.length-1;for(let r=0;r<o;r++){let n=s(t[r],t[r+1]);if(e){const t=Array.isArray(e)?e[r]||rt:e;n=Hn(t,n)}i.push(n)}return i}(e,i,s),l=a.length,c=n=>{if(r&&n<t[0])return e[0];let i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);const s=Zi(t[i],t[i+1],n);return a[i](s)};return n?e=>c(N(t[0],t[o-1],e)):c}function Ji(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=Zi(0,e,i);t.push(T(n,1,s))}}(e,t.length-1),e}function ts({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(_i):_i(i),o={done:!1,value:e[0]},r=function(t,e){return t.map(t=>t*e)}(n&&n.length===e.length?n:Ji(e),t),a=Qi(r,e,{ease:Array.isArray(s)?s:(l=e,c=s,l.map(()=>c||Ii).splice(0,l.length-1))});var l,c;return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}const es=t=>null!==t;function ns(t,{repeat:e,repeatType:n="loop"},i,s=1){const o=t.filter(es),r=s<0||e&&"loop"!==n&&e%2==1?0:o.length-1;return r&&void 0!==i?i:o[r]}const is={decay:Ri,inertia:Ri,tween:ts,keyframes:ts,spring:Li};function ss(t){"string"==typeof t.type&&(t.type=is[t.type])}class os{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const rs=t=>t/100;class as extends os{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==ie.now()&&this.tick(ie.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},Xn.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){const{options:t}=this;ss(t);const{type:e=ts,repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:r}=t;const a=e||ts;a!==ts&&"number"!=typeof r[0]&&(this.mixKeyframes=Hn(rs,ri(r[0],r[1])),r=[0,100]);const l=a({...t,keyframes:r});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...r].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=ui(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:n,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:r,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:c,repeat:u,repeatType:h,repeatDelay:d,type:m,onUpdate:p,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let v=this.currentTime,x=n;if(u){const t=Math.min(this.currentTime,i)/r;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,u+1);Boolean(e%2)&&("reverse"===h?(n=1-n,d&&(n-=d/r)):"mirror"===h&&(x=o)),v=N(0,1,n)*r}const w=y?{done:!1,value:c[0]}:x.next(v);s&&(w.value=s(w.value));let{done:b}=w;y||null===a||(b=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return T&&m!==Ri&&(w.value=ns(c,this.options,f,this.speed)),p&&p(w.value),T&&this.finish(),w}then(t,e){return this.finished.then(t,e)}get duration(){return Kn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Kn(t)}get time(){return Kn(this.currentTime)}set time(t){t=Yn(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ie.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=Kn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=ai,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ie.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,Xn.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function ls(t){let e;return()=>(void 0===e&&(e=t()),e)}const cs=ls(()=>void 0!==window.ScrollTimeline),us={};function hs(t,e){const n=ls(t);return()=>us[e]??n()}const ds=hs(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ms=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,ps={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ms([0,.65,.55,1]),circOut:ms([.55,0,1,.45]),backIn:ms([.31,.01,.66,-.59]),backOut:ms([.33,1.53,.69,.99])};function fs(t,e){return t?"function"==typeof t?ds()?li(t,e):"ease-out":qi(t)?ms(t):Array.isArray(t)?t.map(t=>fs(t,e)||ps.easeOut):ps[t]:void 0}function gs(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const h=fs(a,s);Array.isArray(h)&&(u.easing=h),ct.value&&Xn.waapi++;const d={delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"};c&&(d.pseudoElement=c);const m=t.animate(u,d);return ct.value&&m.finished.finally(()=>{Xn.waapi--}),m}function ys(t){return"function"==typeof t&&"applyToOptions"in t}class vs extends os{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:n,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:r,onComplete:a}=t;this.isPseudoElement=Boolean(s),this.allowFlatten=o,this.options=t,t.type;const l=function({type:t,...e}){return ys(t)&&ds()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=gs(e,n,i,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const t=ns(i,this.options,r,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,n){(t=>t.startsWith("--"))(e)?t.style.setProperty(e,n):t.style[e]=n}(e,n,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Kn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Kn(t)}get time(){return Kn(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Yn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&cs()?(this.animation.timeline=t,rt):e(this)}}const xs={anticipate:Hi,backInOut:Wi,circInOut:Xi};function ws(t){"string"==typeof t.ease&&t.ease in xs&&(t.ease=xs[t.ease])}class bs extends vs{constructor(t){ws(t),ss(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:n,onComplete:i,element:s,...o}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);const r=new as({...o,autoplay:!1}),a=Yn(this.finishedTime??this.time);e.setWithVelocity(r.sample(a-10).value,r.sample(a).value,10),r.stop()}}const Ts=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!zt.test(t)&&"0"!==t||t.startsWith("url(")));const Ss=new Set(["opacity","clipPath","filter","transform"]),Ps=ls(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class Es extends os{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:r,name:a,motionValue:l,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ie.now();const h={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:s,repeatType:
vendor: 51,184 bytes, line 1
1o,name:a,motionValue:l,element:c,...u},d=c?.KeyframeResolver||bt;this.keyframeResolver=new d(r,(t,e,n)=>this.onKeyframesResolved(t,e,h,!n),a,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,n,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:r,delay:a,isHandoff:l,onUpdate:c}=n;this.resolvedAt=ie.now(),function(t,e,n,i){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],r=Ts(s,e),a=Ts(o,e);return!(!r||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||ys(n))&&i)}(t,s,o,r)||(!at.instantAnimations&&a||c?.(ns(t,n,e)),t[0]=t[t.length-1],zn(n),n.repeat=0);const u={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:t},h=!l&&function(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t,a=e?.owner?.current;if(!(a instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return Ps()&&n&&Ss.has(n)&&("transform"!==n||!c)&&!l&&!i&&"mirror"!==s&&0!==o&&"inertia"!==r}(u)?new bs({...u,element:u.motionValue.owner.current}):new as(u);h.finished.then(()=>this.notifyFinished()).catch(rt),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),vt=!0,wt(),xt(),vt=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Cs=t=>null!==t;const As={type:"spring",stiffness:500,damping:25,restSpeed:10},ks={type:"keyframes",duration:.8},Ms={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Vs=(t,{keyframes:e})=>e.length>2?ks:o.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:As:Ms;const Ds=(t,e,n,i={},s,o)=>r=>{const a=Fn(i,t)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c-=Yn(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(a)||Object.assign(u,Vs(t,u)),u.duration&&(u.duration=Yn(u.duration)),u.repeatDelay&&(u.repeatDelay=Yn(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let h=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(zn(u),0===u.delay&&(h=!0)),(at.instantAnimations||at.skipAnimations)&&(h=!0,zn(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!o&&void 0!==e.get()){const t=function(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(Cs),o=e&&"loop"!==n&&e%2==1?0:s.length-1;return o&&void 0!==i?i:s[o]}(u.keyframes,a);if(void 0!==t)return void ht.update(()=>{u.onUpdate(t),u.onComplete()})}return a.isSync?new as(u):new Es(u)};function Ls({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function Rs(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;i&&(o=i);const l=[],c=s&&t.animationState&&t.animationState.getState()[s];for(const u in a){const e=t.getValue(u,t.latestValues[u]??null),i=a[u];if(void 0===i||c&&Ls(c,u))continue;const s={delay:n,...Fn(o||{},u)},r=e.get();if(void 0!==r&&!e.isAnimating&&!Array.isArray(i)&&i===r&&!s.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){const e=$n(t);if(e){const t=window.MotionHandoffAnimation(e,u,ht);null!==t&&(s.startTime=t,h=!0)}}Un(t,u),e.start(Ds(u,e,i,t.shouldReduceMotion&&I.has(u)?{type:!1}:s,t,h));const d=e.animation;d&&l.push(d)}return r&&Promise.all(l).then(()=>{ht.update(()=>{r&&function(t,e){const n=Bn(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const r in o)In(t,r,Nn(o[r]))}(t,r)})}),l}function js(t,e,n,i=0,s=1){const o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),r=t.size,a=(r-1)*i;return"function"==typeof n?n(o,r):1===s?o*i:a-o*i}function Bs(t,e,n={}){const i=Bn(t,e,"exit"===n.type?t.presenceContext?.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(Rs(t,i,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;return function(t,e,n=0,i=0,s=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(Bs(l,e,{...r,delay:n+("function"==typeof i?0:i)+js(t.variantChildren,l,i,s,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,i,o,r,a,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[t,e]="beforeChildren"===a?[o,r]:[r,o];return t().then(()=>e())}return Promise.all([o(),r(n.delay)])}function Fs(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const Os=Pe.length;function Is(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&Is(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<Os;n++){const i=Pe[n],s=t.props[i];(Te(s)||!1===s)&&(e[i]=s)}return e}const Ns=[...Se].reverse(),Us=Se.length;function $s(t){return e=>Promise.all(e.map(({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map(e=>Bs(t,e,n));i=Promise.all(s)}else if("string"==typeof e)i=Bs(t,e,n);else{const s="function"==typeof e?Bn(t,e,n.custom):e;i=Promise.all(Rs(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}(t,e,n)))}function zs(t){let e=$s(t),n=Ys(),i=!0;const s=e=>(n,i)=>{const s=Bn(t,i,"exit"===e?t.presenceContext?.custom:void 0);if(s){const{transition:t,transitionEnd:e,...i}=s;n={...n,...i,...e}}return n};function o(o){const{props:r}=t,a=Is(t.parent)||{},l=[],c=new Set;let u={},h=1/0;for(let e=0;e<Us;e++){const d=Ns[e],m=n[d],p=void 0!==r[d]?r[d]:a[d],f=Te(p),g=d===o?m.isActive:null;!1===g&&(h=e);let y=p===a[d]&&p!==r[d]&&f;if(y&&i&&t.manuallyAnimateOnMount&&(y=!1),m.protectedKeys={...u},!m.isActive&&null===g||!p&&!m.prevProp||be(p)||"boolean"==typeof p)continue;const v=Ws(m.prevProp,p);let x=v||d===o&&m.isActive&&!y&&f||e>h&&f,w=!1;const b=Array.isArray(p)?p:[p];let T=b.reduce(s(d),{});!1===g&&(T={});const{prevResolvedValues:S={}}=m,P={...S,...T},E=e=>{x=!0,c.has(e)&&(w=!0,c.delete(e)),m.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in P){const e=T[t],n=S[t];if(u.hasOwnProperty(t))continue;let i=!1;i=On(e)&&On(n)?!Fs(e,n):e!==n,i?null!=e?E(t):c.add(t):void 0!==e&&c.has(t)?E(t):m.protectedKeys[t]=!0}m.prevProp=p,m.prevResolvedValues=T,m.isActive&&(u={...u,...T}),i&&t.blockInitialAnimation&&(x=!1);const C=y&&v;x&&(!C||w)&&l.push(...b.map(e=>{const n={type:d};if("string"==typeof e&&i&&!C&&t.manuallyAnimateOnMount&&t.parent){const{parent:i}=t,s=Bn(i,e);if(i.enteringChildren&&s){const{delayChildren:e}=s.transition||{};n.delay=js(i.enteringChildren,t,e)}}return{animation:e,options:n}}))}if(c.size){const e={};if("boolean"!=typeof r.initial){const n=Bn(t,Array.isArray(r.initial)?r.initial[0]:r.initial);n&&n.transition&&(e.transition=n.transition)}c.forEach(n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=i??null}),l.push({animation:e})}let d=Boolean(l.length);return!i||!1!==r.initial&&r.initial!==r.animate||t.manuallyAnimateOnMount||(d=!1),i=!1,d?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){if(n[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),n[e].isActive=i;const s=o(e);for(const t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=Ys()}}}function Ws(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!Fs(e,t)}function Hs(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ys(){return{animate:Hs(!0),whileInView:Hs(),whileHover:Hs(),whileTap:Hs(),whileDrag:Hs(),whileFocus:Hs(),exit:Hs()}}class Ks{constructor(t){this.isMounted=!1,this.node=t}update(){}}let Xs=0;const qs={animation:{Feature:class extends Ks{constructor(t){super(t),t.animationState||(t.animationState=zs(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();be(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends Ks{constructor(){super(...arguments),this.id=Xs++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>{e(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}},Gs={x:!1,y:!1};function _s(){return Gs.x||Gs.y}function Zs(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const Qs=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function Js(t){return{point:{x:t.pageX,y:t.pageY}}}function to(t,e,n,i){return Zs(t,e,(t=>e=>Qs(e)&&t(e,Js(e)))(n),i)}function eo(t){return t.max-t.min}function no(t,e,n,i=.5){t.origin=i,t.originPoint=T(e.min,e.max,t.origin),t.scale=eo(n)/eo(e),t.translate=T(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function io(t,e,n,i){no(t.x,e.x,n.x,i?i.originX:void 0),no(t.y,e.y,n.y,i?i.originY:void 0)}function so(t,e,n){t.min=n.min+e.min,t.max=t.min+eo(e)}function oo(t,e,n){t.min=e.min-n.min,t.max=t.min+eo(e)}function ro(t,e,n){oo(t.x,e.x,n.x),oo(t.y,e.y,n.y)}function ao(t){return[t("x"),t("y")]}const lo=({current:t})=>t?t.ownerDocument.defaultView:null,co=(t,e)=>Math.abs(t-e);class uo{constructor(t,e,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=po(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=co(t.x,e.x),i=co(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=mt;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=ho(e,this.transformPagePoint),ht.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=po("pointercancel"===t.type?this.lastMoveEventInfo:ho(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!Qs(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;const r=ho(Js(t),this.transformPagePoint),{point:a}=r,{timestamp:l}=mt;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=e;c&&c(t,po(r,this.history)),this.removeListeners=Hn(to(this.contextWindow,"pointermove",this.handlePointerMove),to(this.contextWindow,"pointerup",this.handlePointerUp),to(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),dt(this.updatePoint)}}function ho(t,e){return e?{point:e(t.point)}:t}function mo(t,e){return{x:t.x-e.x,y:t.y-e.y}}function po({point:t},e){return{point:t,delta:mo(t,go(e)),offset:mo(t,fo(e)),velocity:yo(e,.1)}}function fo(t){return t[0]}function go(t){return t[t.length-1]}function yo(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=go(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>Yn(e)));)n--;if(!i)return{x:0,y:0};const o=Kn(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function vo(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function xo(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}const wo=.35;function bo(t,e,n){return{min:To(t,e),max:To(t,n)}}function To(t,e){return"number"==typeof t?t:t[e]||0}const So=new WeakMap;class Po{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:n}={}){const{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;const{dragSnapToOrigin:s}=this.getProps();this.panSession=new uo(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(Js(t).point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(o=n)||"y"===o?Gs[o]?null:(Gs[o]=!0,()=>{Gs[o]=!1}):Gs.x||Gs.y?null:(Gs.x=Gs.y=!0,()=>{Gs.x=Gs.y=!1}),!this.openDragLock))return;var o;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ao(t=>{let e=this.getAxisMotionValue(t).get()||0;if(Y.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=eo(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e}),s&&ht.postRender(()=>s(t,e)),Un(this.visualElement,"transform");const{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>ao(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,distanceThreshold:n,contextWindow:lo(this.visualElement)})}stop(t,e){const n=t||this.latestPointerEvent,i=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!n)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:r}=this.getProps();r&&ht.postRender(()=>r(n,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!Eo(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?T(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?T(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&En(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:i,right:s}){return{x:vo(t.x,n,s),y:vo(t.y,e,i)}}(n.layoutBox,t),this.elastic=function(t=wo){return!1===t?t=0:!0===t&&(t=wo),{x:bo(t,"left","right"),y:bo(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ao(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!En(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=function(t,e,n){const i=O(t,n),{scroll:s}=e;return s&&(j(i.x,s.offset.x),j(i.y,s.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:xo(t.x,e.x),y:xo(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=b(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=ao(r=>{if(!Eo(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});const c=i?200:1e6,u=i?40:1e7,h={type:"inertia",velocity:n?t[r]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,h)});return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return Un(this.visualElement,t),n.start(Ds(t,n,0,e,this.visualElement,!1))}stopAnimation(){ao(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ao(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){ao(e=>{const{drag:n}=this.getProps();if(!Eo(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-T(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!En(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ao(t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=eo(t),s=eo(e);return s>i?n=Zi(e.min,e.max-i,t.min):i>s&&(n=Zi(t.min,t.max-s,e.min)),N(0,1,n)}({min:n,max:n},this.constraints[t])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ao(e=>{if(!Eo(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set(T(s,o,i[e]))})}addListeners(){if(!this.visualElement.current)return;So.set(this.visualElement,this);const t=to(this.visualElement.current,"pointerdown",t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),e=()=>{const{dragConstraints:t}=this.getProps();En(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),ht.read(e);const s=Zs(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ao(e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=wo,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function Eo(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const Co=t=>(e,n)=>{t&&ht.postRender(()=>t(e,n))};var Ao=n(9120);const ko={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Mo(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Vo={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!K.test(t))return t;t=parseFloat(t)}return`${Mo(t,e.target.x)}% ${Mo(t,e.target.y)}%`}},Do={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=zt.parse(t);if(s.length>5)return i;const o=zt.createTransformer(t),r="number"!=typeof s[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const c=T(a,l,.5);return"number"==typeof s[2+r]&&(s[2+r]/=c),"number"==typeof s[3+r]&&(s[3+r]/=c),o(s)}};let Lo=!1;class Ro extends i.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;!function(t){for(const e in t)Oe[e]=t[e],y(e)&&(Oe[e].isCSSVariable=!0)}(Bo),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),Lo&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ko.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,{projection:o}=n;return o?(o.isPresent=s,Lo=!0,i||t.layoutDependency!==e||void 0===e||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||ht.postRender(()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),de.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;Lo=!0,i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function jo(t){const[e,n]=(0,Ao.xQ)(),s=(0,i.useContext)(Je.L);return(0,Qe.jsx)(Ro,{...t,layoutGroup:s,switchLayoutGroup:(0,i.useContext)(kn),isPresent:e,safeToRemove:n})}const Bo={borderRadius:{...Vo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vo,borderTopRightRadius:Vo,borderBottomLeftRadius:Vo,borderBottomRightRadius:Vo,boxShadow:Do};var Fo=n(9359);function Oo(t){return(0,Fo.G)(t)&&"ownerSVGElement"in t}const Io=(t,e)=>t.depth-e.depth;class No{constructor(){this.children=[],this.isDirty=!1}add(t){se(this.children,t),this.isDirty=!0}remove(t){oe(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Io),this.isDirty=!1,this.children.forEach(t)}}function Uo(t,e){const n=ie.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(dt(i),t(o-e))};return ht.setup(i,!0),()=>dt(i)}const $o=["TopLeft","TopRight","BottomLeft","BottomRight"],zo=$o.length,Wo=t=>"string"==typeof t?parseFloat(t):t,Ho=t=>"number"==typeof t||K.test(t);function Yo(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Ko=qo(0,.5,Ki),Xo=qo(.5,.95,rt);function qo(t,e,n){return i=>i<t?0:i>e?1:n(Zi(t,e,i))}function Go(t,e){t.min=e.min,t.max=e.max}function _o(t,e){Go(t.x,e.x),Go(t.y,e.y)}function Zo(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Qo(t,e,n,i,s){return t=k(t-=e,1/n,i),void 0!==s&&(t=k(t,1/s,i)),t}function Jo(t,e,[n,i,s],o,r){!function(t,e=0,n=1,i=.5,s,o=t,r=t){Y.test(e)&&(e=parseFloat(e),e=T(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=T(o.min,o.max,i);t===o&&(a-=e),t.min=Qo(t.min,e,n,a,s),t.max=Qo(t.max,e,n,a,s)}(t,e[n],e[i],e[s],e.scale,o,r)}const tr=["x","scaleX","originX"],er=["y","scaleY","originY"];function nr(t,e,n,i){Jo(t.x,e,tr,n?n.x:void 0,i?i.x:void 0),Jo(t.y,e,er,n?n.y:void 0,i?i.y:void 0)}function ir(t){return 0===t.translate&&1===t.scale}function sr(t){return ir(t.x)&&ir(t.y)}function or(t,e){return t.min===e.min&&t.max===e.max}function rr(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function ar(t,e){return rr(t.x,e.x)&&rr(t.y,e.y)}function lr(t){return eo(t.x)/eo(t.y)}function cr(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ur{constructor(){this.members=[]}add(t){se(this.members,t),t.scheduleRender()}remove(t){if(oe(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex(e=>t===e);if(0===e)return!1;let n;for(let i=e;i>=0;i--){const t=this.members[i];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const hr={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},dr=["","X","Y","Z"];let mr=0;function pr(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function fr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=$n(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",ht,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&fr(i)}function gr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(t={},n=e?.()){this.id=mr++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ct.value&&(hr.nodes=hr.calculatedTargetDeltas=hr.calculatedProjections=0),this.nodes.forEach(xr),this.nodes.forEach(Cr),this.nodes.forEach(Ar),this.nodes.forEach(wr),ct.addProjectionMetrics&&ct.addProjectionMetrics(hr)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new No)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new re),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;var n;this.isSVG=Oo(e)&&!(Oo(n=e)&&"svg"===n.tagName),this.instance=e;const{layoutId:i,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let n,i=0;const s=()=>this.root.updateBlockedByResize=!1;ht.read(()=>{i=window.innerWidth}),t(e,()=>{const t=window.innerWidth;t!==i&&(i=t,this.root.updateBlockedByResize=!0,n&&n(),n=Uo(s,250),ko.hasAnimatedSinceResize&&(ko.hasAnimatedSinceResize=!1,this.nodes.forEach(Er)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const s=this.options.transition||o.getDefaultTransition()||Rr,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!ar(this.targetLayout,i),c=!e&&n;if(this.options.layoutRoot||this.resumeFrom||c||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const e={...Fn(s,"layout"),onPlay:r,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,c)}else e||Er(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),dt(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(kr),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&fr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;s<this.path.length;s++){const t=this.path[s];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Tr);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(Sr);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Pr),this.nodes.forEach(yr),this.nodes.forEach(vr)):this.nodes.forEach(Sr),this.clearAllSnapshots();const t=ie.now();mt.delta=N(0,1e3/60,t-mt.timestamp),mt.timestamp=t,mt.isProcessing=!0,pt.update.process(mt),pt.preRender.process(mt),pt.render.process(mt),mt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,de.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(br),this.sharedNodes.forEach(Mr)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ht.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ht.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||eo(this.snapshot.measuredBox.x)||eo(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){const e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!sr(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&this.instance&&(e||E(this.latestValues)||o)&&(s(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),Fr((i=n).x),Fr(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ir))){const{scroll:t}=this.root;t&&(j(e.x,t.offset.x),j(e.y,t.offset.y))}return e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};if(_o(e,t),this.scroll?.wasRoot)return e;for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:s,options:o}=i;i!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&_o(e,t),j(e.x,s.offset.x),j(e.y,s.offset.y))}return e}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};_o(n,t);for(let i=0;i<this.path.length;i++){const t=this.path[i];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&F(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),E(t.latestValues)&&F(n,t.latestValues)}return E(this.latestValues)&&F(n,this.latestValues),n}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};_o(e,t);for(let n=0;n<this.path.length;n++){const t=this.path[n];if(!t.instance)continue;if(!E(t.latestValues))continue;P(t.latestValues)&&t.updateSnapshot();const i=ge();_o(i,t.measurePageBox()),nr(e,t.latestValues,t.snapshot?t.snapshot.layoutBox:void 0,i)}return E(this.latestValues)&&nr(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==mt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){const e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==e;if(!(t||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:i,layoutId:s}=this.options;if(!this.layout||!i&&!s)return;this.resolvedRelativeTargetAt=mt.timestamp;const o=this.getClosestProjectingParent();var r,a,l;(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,so(r.x,a.x,l.x),so(r.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):_o(this.target,this.layout.layoutBox),D(this.target,this.targetDelta)):_o(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&Boolean(o.resumingFrom)===Boolean(this.resumingFrom)&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),ct.value&&hr.calculatedTargetDeltas++)}getClosestProjectingParent(){if(this.parent&&!P(this.parent.latestValues)&&!C(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,n){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},ro(this.relativeTargetOrigin,e,n),_o(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const t=this.getLead(),e=Boolean(this.resumingFrom)||this!==t;let n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===mt.timestamp&&(n=!1),n)return;const{layout:i,layoutId:s}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!s)return;_o(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,r=this.treeScale.y;!function(t,e,n,i=!1){const s=n.length;if(!s)return;let o,r;e.x=e.y=1;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:s}=o.options;s&&s.props.style&&"contents"===s.props.style.display||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&F(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,D(t,r)),i&&E(o.latestValues)&&F(t,o.latestValues))}e.x<R&&e.x>L&&(e.x=1),e.y<R&&e.y>L&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,e),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:a}=t;a?(this.projectionDelta&&this.prevProjectionDelta?(Zo(this.prevProjectionDelta.x,this.projectionDelta.x),Zo(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),io(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===r&&cr(this.projectionDelta.x,this.prevProjectionDelta.x)&&cr(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),ct.value&&hr.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(Lr));let h;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,m,p,f,g;Vr(o.x,t.x,n),Vr(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ro(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,f=r,g=n,Dr(m.x,p.x,f.x,g),Dr(m.y,p.y,f.y,g),h&&(l=this.relativeTarget,d=h,or(l.x,d.x)&&or(l.y,d.y))&&(this.isProjectionDirty=!1),h||(h={x:{min:0,max:0},y:{min:0,max:0}}),_o(h,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,n,i,s,o){s?(t.opacity=T(0,n.opacity??1,Ko(i)),t.opacityExit=T(e.opacity??1,0,Xo(i))):o&&(t.opacity=T(e.opacity??1,n.opacity??1,i));for(let r=0;r<zo;r++){const s=`border${$o[r]}Radius`;let o=Yo(e,s),a=Yo(n,s);void 0===o&&void 0===a||(o||(o=0),a||(a=0),0===o||0===a||Ho(o)===Ho(a)?(t[s]=Math.max(T(Wo(o),Wo(a),i),0),(Y.test(a)||Y.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=T(e.rotate||0,n.rotate||0,i))}(s,i,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(dt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ht.update(()=>{ko.hasAnimatedSinceResize=!0,Xn.layout++,this.motionValue||(this.motionValue=ue(0)),this.currentAnimation=function(t,e,n){const i=te(t)?t:ue(t);return i.start(Ds("",i,e,n)),i.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{Xn.layout--},onComplete:()=>{Xn.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&Or(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=eo(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=eo(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}_o(e,n),F(e,s),io(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ur);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){const{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&pr("z",t,i,this.animationValues);for(let s=0;s<dr.length;s++)pr(`rotate${dr[s]}`,t,i,this.animationValues),pr(`skew${dr[s]}`,t,i,this.animationValues);t.render();for(const s in i)t.setStaticValue(s,i[s]),this.animationValues&&(this.animationValues[s]=i[s]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(t.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=xn(e?.pointerEvents)||"",void(t.transform=n?n(this.latestValues,""):"none");const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target)return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=xn(e?.pointerEvents)||""),void(this.hasProjected&&!E(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1));t.visibility="";const s=i.animationValues||i.latestValues;this.applyTransformsToTarget();let o=function(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:s,rotateY:o,skewX:r,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),s&&(i+=`rotateX(${s}deg) `),o&&(i+=`rotateY(${o}deg) `),r&&(i+=`skewX(${r}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);n&&(o=n(s,o)),t.transform=o;const{x:r,y:a}=this.projectionDelta;t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,i.animationValues?t.opacity=i===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const l in Oe){if(void 0===s[l])continue;const{correct:e,applyTo:n,isCSSVariable:r}=Oe[l],a="none"===o?s[l]:e(s[l],i);if(n){const e=n.length;for(let i=0;i<e;i++)t[n[i]]=a}else r?this.options.visualElement.renderState.vars[l]=a:t[l]=a}this.options.layoutId&&(t.pointerEvents=i===this?xn(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(Tr),this.root.sharedNodes.clear()}}}function yr(t){t.updateLayout()}function vr(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:s}=t.options,o=e.source!==t.layout.source;"size"===s?ao(t=>{const i=o?e.measuredBox[t]:e.layoutBox[t],s=eo(i);i.min=n[t].min,i.max=i.min+s}):Or(s,e.layoutBox,n)&&ao(i=>{const s=o?e.measuredBox[i]:e.layoutBox[i],r=eo(n[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)});const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};io(r,n,e.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?io(a,t.applyTransform(i,!0),e.measuredBox):io(a,n,e.layoutBox);const l=!sr(r);let c=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r={x:{min:0,max:0},y:{min:0,max:0}};ro(r,e.layoutBox,s.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};ro(a,n,o.layoutBox),ar(r,a)||(c=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function xr(t){ct.value&&hr.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function wr(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function br(t){t.clearSnapshot()}function Tr(t){t.clearMeasurements()}function Sr(t){t.isLayoutDirty=!1}function Pr(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Er(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Cr(t){t.resolveTargetDelta()}function Ar(t){t.calcProjection()}
1function kr(t){t.resetSkewAndRotation()}function Mr(t){t.removeLeadSnapshot()}function Vr(t,e,n){t.translate=T(e.translate,0,n),t.scale=T(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Dr(t,e,n,i){t.min=T(e.min,n.min,i),t.max=T(e.max,n.max,i)}function Lr(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Rr={duration:.45,ease:[.4,0,.1,1]},jr=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Br=jr("applewebkit/")&&!jr("chrome/")?Math.round:rt;function Fr(t){t.min=Br(t.min),t.max=Br(t.max)}function Or(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=lr(e),s=lr(n),o=.2,!(Math.abs(i-s)<=o));var i,s,o}function Ir(t){return t!==t.root&&t.scroll?.wasRoot}const Nr=gr({attachResizeListener:(t,e)=>Zs(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ur={current:void 0},$r=gr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ur.current){const t=new Nr({});t.mount(window),t.setOptions({layoutScroll:!0}),Ur.current=t}return Ur.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),zr={pan:{Feature:class extends Ks{constructor(){super(...arguments),this.removePointerDownListener=rt}onPointerDown(t){this.session=new uo(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:lo(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Co(t),onStart:Co(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&ht.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=to(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Ks{constructor(t){super(t),this.removeGroupControls=rt,this.removeListeners=rt,this.controls=new Po(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||rt}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:$r,MeasureLayout:jo}};function Wr(t,e){const n=function(t,e,n){if(t instanceof EventTarget)return[t];if("string"==typeof t){let i=document;e&&(i=e.current);const s=n?.[t]??i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function Hr(t){return!("touch"===t.pointerType||_s())}function Yr(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const s=i["onHover"+n];s&&ht.postRender(()=>s(e,Js(e)))}var Kr=n(6995);const Xr=(t,e)=>!!e&&(t===e||Xr(t,e.parentElement)),qr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const Gr=new WeakSet;function _r(t){return e=>{"Enter"===e.key&&t(e)}}function Zr(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function Qr(t){return Qs(t)&&!_s()}function Jr(t,e,n={}){const[i,s,o]=Wr(t,n),r=t=>{const i=t.currentTarget;if(!Qr(t))return;Gr.add(i);const o=e(i,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),Gr.has(i)&&Gr.delete(i),Qr(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{r(t,i===window||i===document||n.useGlobalTarget||Xr(i,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return i.forEach(t=>{var e;(n.useGlobalTarget?window:t).addEventListener("pointerdown",r,s),(0,Kr.s)(t)&&(t.addEventListener("focus",t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const i=_r(()=>{if(Gr.has(n))return;Zr(n,"down");const t=_r(()=>{Zr(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>Zr(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)}
1)(t,s)),e=t,qr.has(e.tagName)||-1!==e.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}function ta(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const s=i["onTap"+("End"===n?"":n)];s&&ht.postRender(()=>s(e,Js(e)))}const ea=new WeakMap,na=new WeakMap,ia=t=>{const e=ea.get(t.target);e&&e(t)},sa=t=>{t.forEach(ia)};function oa(t,e,n){const i=function({root:t,...e}){const n=t||document;na.has(n)||na.set(n,{});const i=na.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(sa,{root:t,...e})),i[s]}(e);return ea.set(t,n),i.observe(t),()=>{ea.delete(t),i.unobserve(t)}}const ra={some:0,all:1};const aa={inView:{Feature:class extends Ks{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:ra[i]};return oa(this.node.current,o,t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Ks{mount(){const{current:t}=this.node;t&&(this.unmount=Jr(t,(t,e)=>(ta(this.node,e,"Start"),(t,{success:e})=>ta(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Ks{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Hn(Zs(this.node.current,"focus",()=>this.onFocus()),Zs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Ks{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){const[i,s,o]=Wr(t,n),r=t=>{if(!Hr(t))return;const{target:n}=t,i=e(n,t);if("function"!=typeof i||!n)return;const o=t=>{Hr(t)&&(i(t),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,s)};return i.forEach(t=>{t.addEventListener("pointerenter",r,s)}),o}(t,(t,e)=>(Yr(this.node,e,"Start"),t=>Yr(this.node,t,"End"))))}unmount(){}}}},la=jn({...qs,...aa,...zr,...{layout:{ProjectionNode:$r,MeasureLayout:jo}}},Ze)},2532:function(t,e,n){n.d(e,{G:function(){return F},L:function(){return g},M:function(){return P},P:function(){return S},_:function(){return a},a:function(){return r},b:function(){return d},c:function(){return c},d:function(){return u},g:function(){return m},h:function(){return l}});n(6910);var i=n(6540),s=(n(2729),n(5556)),o=n.n(s);function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r.apply(this,arguments)}function a(t,e){if(null==t)return{};var n,i,s={},o=Object.keys(t);for(i=0;i<o.length;i++)e.indexOf(n=o[i])>=0||(s[n]=t[n]);return s}const l=()=>"undefined"!=typeof HTMLImageElement&&"loading"in HTMLImageElement.prototype;const c=t=>{var e;return(t=>{var e,n;return Boolean(null==t||null==(e=t.images)||null==(n=e.fallback)?void 0:n.src)})(t)?t:(t=>Boolean(null==t?void 0:t.gatsbyImageData))(t)?t.gatsbyImageData:(t=>Boolean(null==t?void 0:t.gatsbyImage))(t)?t.gatsbyImage:null==t||null==(e=t.childImageSharp)?void 0:e.gatsbyImageData},u=t=>{var e,n,i;return null==(e=c(t))||null==(n=e.images)||null==(i=n.fallback)?void 0:i.src};function h(t,e,n){const i={};let s="gatsby-image-wrapper";return"fixed"===n?(i.width=t,i.height=e):"constrained"===n&&(s="gatsby-image-wrapper gatsby-image-wrapper-constrained"),{className:s,"data-gatsby-image-wrapper":"",style:i}}function d(t,e,n,i,s){return void 0===s&&(s={}),r({},n,{loading:i,shouldLoad:t,"data-main-image":"",style:r({},s,{opacity:e?1:0})})}function m(t,e,n,i,s,o,a,l){const c={};o&&(c.backgroundColor=o,"fixed"===n?(c.width=i,c.height=s,c.backgroundColor=o,c.position="relative"):("constrained"===n||"fullWidth"===n)&&(c.position="absolute",c.top=0,c.left=0,c.bottom=0,c.right=0)),a&&(c.objectFit=a),l&&(c.objectPosition=l);const u=r({},t,{"aria-hidden":!0,"data-placeholder-image":"",style:r({opacity:e?0:1,transition:"opacity 500ms linear"},c)});return u}const p=["children"],f=function(t){let{layout:e,width:n,height:s}=t;return"fullWidth"===e?i.createElement("div",{"aria-hidden":!0,style:{paddingTop:s/n*100+"%"}}):"constrained"===e?i.createElement("div",{style:{maxWidth:n,display:"block"}},i.createElement("img",{alt:"",role:"presentation","aria-hidden":"true",src:"data:image/svg+xml;charset=utf-8,%3Csvg%20height='"+s+"'%20width='"+n+"'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%3E%3C/svg%3E",style:{maxWidth:"100%",display:"block",position:"static"}})):null},g=function(t){let{children:e}
1=t,n=a(t,p);return i.createElement(i.Fragment,null,i.createElement(f,r({},n)),e,null)},y=["src","srcSet","loading","alt","shouldLoad"],v=["fallback","sources","shouldLoad"],x=function(t){let{src:e,srcSet:n,loading:s,alt:o="",shouldLoad:l}=t,c=a(t,y);return i.createElement("img",r({},c,{decoding:"async",loading:s,src:l?e:void 0,"data-src":l?void 0:e,srcSet:l?n:void 0,"data-srcset":l?void 0:n,alt:o}))},w=function(t){let{fallback:e,sources:n=[],shouldLoad:s=!0}=t,o=a(t,v);const l=o.sizes||(null==e?void 0:e.sizes),c=i.createElement(x,r({},o,e,{sizes:l,shouldLoad:s}));return n.length?i.createElement("picture",null,n.map(t=>{let{media:e,srcSet:n,type:o}=t;return i.createElement("source",{key:e+"-"+o+"-"+n,type:o,media:e,srcSet:s?n:void 0,"data-srcset":s?void 0:n,sizes:l})}),c):c};var b;x.propTypes={src:s.string.isRequired,alt:s.string.isRequired,sizes:s.string,srcSet:s.string,shouldLoad:s.bool},w.displayName="Picture",w.propTypes={alt:s.string.isRequired,shouldLoad:s.bool,fallback:s.exact({src:s.string.isRequired,srcSet:s.string,sizes:s.string}),sources:s.arrayOf(s.oneOfType([s.exact({media:s.string.isRequired,type:s.string,sizes:s.string,srcSet:s.string.isRequired}),s.exact({media:s.string,type:s.string.isRequired,sizes:s.string,srcSet:s.string.isRequired})]))};const T=["fallback"],S=function(t){let{fallback:e}=t,n=a(t,T);return e?i.createElement(w,r({},n,{fallback:{src:e},"aria-hidden":!0,alt:""})):i.createElement("div",r({},n))};S.displayName="Placeholder",S.propTypes={fallback:s.string,sources:null==(b=w.propTypes)?void 0:b.sources,alt:function(t,e,n){return t[e]?new Error("Invalid prop `"+e+"` supplied to `"+n+"`. Validation failed."):null}};const P=function(t){return i.createElement(i.Fragment,null,i.createElement(w,r({},t)),i.createElement("noscript",null,i.createElement(w,r({},t,{shouldLoad:!0}))))};P.displayName="MainImage",P.propTypes=w.propTypes;const E=["as","className","class","style","image","loading","imgClassName","imgStyle","backgroundColor","objectFit","objectPosition"],C=["style","className"],A=t=>t.replace(/\n/g,""),k=function(t,e,n){for(var i=arguments.length,s=new Array(i>3?i-3:0),r=3;r<i;r++)s[r-3]=arguments[r];return t.alt||""===t.alt?o().string.apply(o(),[t,e,n].concat(s)):new Error('The "alt" prop is required in '+n+'. If the image is purely presentational then pass an empty string: e.g. alt="". Learn more: https://a11y-style-guide.com/style-guide/section-media.html')},M={image:o().object.isRequired,alt:k},V=["as","image","style","backgroundColor","className","class","onStartLoad","onLoad","onError"],D=["style","className"],L=new Set;let R,j;const B=function(t){let{as:e="div",image:s,style:o,backgroundColor:c,className:u,class:d,onStartLoad:m,onLoad:p,onError:f}=t,g=a(t,V);const{width:y,height:v,layout:x}=s,w=h(y,v,x),{style:b,className:T}=w,S=a(w,D),P=(0,i.useRef)(),E=(0,i.useMemo)(()=>JSON.stringify(s.images),[s.images]);d&&(u=d);const C=function(t,e,n){let i="";return"fullWidth"===t&&(i='<div aria-hidden="true" style="padding-top: '+n/e*100+'%;"></div>'),"constrained"===t&&(i='<div style="max-width: '+e+'px; display: block;"><img alt="" role="presentation" aria-hidden="true" src="data:image/svg+xml;charset=utf-8,%3Csvg%20height=\''+n+"'%20width='"+e+"'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%3E%3C/svg%3E\" style=\"max-width: 100%; display: block; position: static;\"></div>"),i}(x,y,v);return(0,i.useEffect)(()=>{R||(R=n.e(108).then(n.bind(n,1108)).then(t=>{let{renderImageToString:e,swapPlaceholderImage:n}=t;return j=e,{renderImageToString:e,swapPlaceholderImage:n}}));const t=P.current.querySelector("[data-gatsby-image-ssr]");if(t&&l())return t.complete?(null==m||m({wasCached:!0}),null==p||p({wasCached:!0}),setTimeout(()=>{t.removeAttribute("data-gatsby-image-ssr")},0)):(null==m||m({wasCached:!0}),t.addEventListener("load",function e(){t.removeEventListener("load",e),null==p||p({wasCached:!0}),setTimeout(()=>{t.removeAttribute("data-gatsby-image-ssr")},0)})),void L.add(E);if(j&&L.has(E))return;let e,i;return R.then(t=>{let{renderImageToString:n,swapPlaceholderImage:a}=t;P.current&&(P.current.innerHTML=n(r({isLoading:!0,isLoaded:L.has(E),image:s},g)),L.has(E)||(e=requestAnimationFrame(()=>{P.current&&(i=a(P.current,E,L,o,m,p,f))})))}),()=>{e&&cancelAnimationFrame(e),i&&i()}},[s]),(0,i.useLayoutEffect)(()=>{L.has(E)&&j&&(P.current.innerHTML=j(r({isLoading:L.has(E),isLoaded:L.has(E),image:s},g)),null==m||m({wasCached:!0}),null==p||p({wasCached:!0}))},[s]),(0,i.createElement)(e,r({},S,{style:r({},b,o,{backgroundColor:c}),className:T+(u?" "+u:""),ref:P,dangerouslySetInnerHTML:{__html:C},suppressHydrationWarning:!0}))},F=(0,i.memo)(function(t){return t.image?(0,i.createElement)(B,t):null});F.propTypes=M,F.displayName="GatsbyImage";const O=["src","__imageData","__error","width","height","aspectRatio","tracedSVGOptions","placeholder","formats","quality","transformOptions","jpgOptions","pngOptions","webpOptions","avifOptions","blurredOptions","breakpoints","outputPixelDensities"];function I(t){return function(e){let{src:n,__imageData:s,__error:o}=e,l=a(e,O);return o&&console.warn(o),s?i.createElement(t,r({image:s},l)):(console.warn("Image not loaded",n),null)}}const N=I(function(t){let{as:e="div",className:n,class:s,style:o,image:l,loading:c="lazy",imgClassName:u,imgStyle:p,backgroundColor:f,objectFit:y,objectPosition:v}=t,x=a(t,E);if(!l)return console.warn("[gatsby-plugin-image] Missing image prop"),null;s&&(n=s),p=r({objectFit:y,objectPosition:v,backgroundColor:f},p);const{width:w,height:b,layout:T,images:k,placeholder:M,backgroundColor:V}=l,D=h(w,b,T),{style:L,className:R}=D,j=a(D,C),B={fallback:void 0,sources:[]};return k.fallback&&(B.fallback=r({},k.fallback,{srcSet:k.fallback.srcSet?A(k.fallback.srcSet):void 0})),k.sources&&(B.sources=k.sources.map(t=>r({},t,{srcSet:A(t.srcSet)}))),i.createElement(e,r({},j,{style:r({},L,o,{backgroundColor:f}),className:R+(n?" "+n:"")}),i.createElement(g,{layout:T,width:w,height:b},i.createElement(S,r({},m(M,!1,T,w,b,V,y,v))),i.createElement(P,r({"data-gatsby-image-ssr":"",className:u},x,d("eager"===c,!1,B,c,p)))))}),U=function(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];return"fullWidth"!==t.layout||"width"!==e&&"height"!==e||!t[e]?o().number.apply(o(),[t,e].concat(i)):new Error('"'+e+'" '+t[e]+" may not be passed when layout is fullWidth.")},$=new Set(["fixed","fullWidth","constrained"]),z={src:o().string.isRequired,alt:k,width:U,height:U,sizes:o().string,layout:t=>{if(void 0!==t.layout&&!$.has(t.layout))return new Error("Invalid value "+t.layout+'" provided for prop "layout". Defaulting to "constrained". Valid values are "fixed", "fullWidth" or "constrained".')}};N.displayName="StaticImage",N.propTypes=z;const W=I(F);W.displayName="StaticImage",W.propTypes=z},2729:function(t){const e=/[\p{Lu}]/u,n=/[\p{Ll}]/u,i=/^[\p{Lu}](?![\p{Lu}])/gu,s=/([\p{Alpha}\p{N}_]|$)/u,o=/[_.\- ]+/,r=new RegExp("^"+o.source),a=new RegExp(o.source+s.source,"gu"),l=new RegExp("\\d+"+s.source,"gu"),c=(t,s)=>{if("string"!=typeof t&&!Array.isArray(t))throw new TypeError("Expected the input to be `string | string[]`");if(s={pascalCase:!1,preserveConsecutiveUppercase:!1,...s},0===(t=Array.isArray(t)?t.map(t=>t.trim()).filter(t=>t.length).join("-"):t.trim()).length)return"";const o=!1===s.locale?t=>t.toLowerCase():t=>t.toLocaleLowerCase(s.locale),c=!1===s.locale?t=>t.toUpperCase():t=>t.toLocaleUpperCase(s.locale);if(1===t.length)return s.pascalCase?c(t):o(t);return t!==o(t)&&(t=((t,i,s)=>{let o=!1,r=!1,a=!1;for(let l=0;l<t.length;l++){const c=t[l];o&&e.test(c)?(t=t.slice(0,l)+"-"+t.slice(l),o=!1,a=r,r=!0,l++):r&&a&&n.test(c)?(t=t.slice(0,l-1)+"-"+t.slice(l-1),a=r,r=!1,o=!0):(o=i(c)===c&&s(c)!==c,a=r,r=s(c)===c&&i(c)!==c)}return t})(t,o,c)),t=t.replace(r,""),t=s.preserveConsecutiveUppercase?((t,e)=>(i.lastIndex=0,t.replace(i,t=>e(t))))(t,o):o(t),s.pascalCase&&(t=c(t.charAt(0))+t.slice(1)),((t,e)=>(a.lastIndex=0,l.lastIndex=0,t.replace(a,(t,n)=>e(n)).replace(l,t=>e(t))))(t,c)};
1t.exports=c,t.exports.default=c},3085:function(t,e,n){n.d(e,{VM:function(){return o},mS:function(){return s}});const i={google:"https://maps.app.goo.gl/bS4cykpSzT3H7jYCA",facebook:"https://www.facebook.com/profile.php?id=61568879049463",instagram:"https://www.instagram.com/zencarbuying?igsh=MTBoOTA4czUxOXU2bg==",linkedin:"https://www.linkedin.com/company/zen-car-buying",yelp:"https://www.yelp.com/biz/zencarbuying"},s=[i.google,i.facebook,i.instagram,i.linkedin,i.yelp],o=t=>i[t]||""},3607:function(t,e,n){var i=n(2839).match(/AppleWebKit\/(\d+)\./);t.exports=!!i&&+i[1]},3709:function(t,e,n){var i=n(2839).match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},3763:function(t,e,n){var i=n(2839);t.exports=/MSIE|Trident/.test(i)},4488:function(t,e,n){var i=n(7680),s=Math.floor,o=function(t,e){var n=t.length;if(n<8)for(var r,a,l=1;l<n;){for(a=l,r=t[l];a&&e(t[a-1],r)>0;)t[a]=t[--a];a!==l++&&(t[a]=r)}else for(var c=s(n/2),u=o(i(t,0,c),e),h=o(i(t,c),e),d=u.length,m=h.length,p=0,f=0;p<d||f<m;)t[p+f]=p<d&&f<m?e(u[p],h[f])<=0?u[p++]:h[f++]:p<d?u[p++]:h[f++];return t};t.exports=o},4606:function(t,e,n){var i=n(6823),s=TypeError;t.exports=function(t,e){if(!delete t[e])throw new s("Cannot delete property "+i(e)+" of "+i(t))}},5128:function(t,e,n){n.d(e,{E:function(){return s}});var i=n(6540);const s=n(8288).B?i.useLayoutEffect:i.useEffect},5446:function(t,e,n){n.d(e,{Q:function(){return i}});const i=(0,n(6540).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},6719:function(t,e,n){n.d(e,{t:function(){return i}});const i=(0,n(6540).createContext)(null)},6910:function(t,e,n){var i=n(6518),s=n(9504),o=n(9306),r=n(8981),a=n(6198),l=n(4606),c=n(655),u=n(9039),h=n(4488),d=n(2217),m=n(3709),p=n(3763),f=n(9519),g=n(3607),y=[],v=s(y.sort),x=s(y.push),w=u(function(){y.sort(void 0)}),b=u(function(){y.sort(null)}),T=d("sort"),S=!u(function(){if(f)return f<70;if(!(m&&m>3)){if(p)return!0;if(g)return g<603;var t,e,n,i,s="";for(t=65;t<76;
1t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)y.push({k:e+i,v:n})}for(y.sort(function(t,e){return e.v-t.v}),i=0;i<y.length;i++)e=y[i].k.charAt(0),s.charAt(s.length-1)!==e&&(s+=e);return"DGBEFHACIJK"!==s}});i({target:"Array",proto:!0,forced:w||!b||!T||!S},{sort:function(t){void 0!==t&&o(t);var e=r(this);if(S)return void 0===t?v(e):v(e,t);var n,i,s=[],u=a(e);for(i=0;i<u;i++)i in e&&x(s,e[i]);for(h(s,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:c(e)>c(n)?1:-1}}(t)),n=a(s),i=0;i<n;)e[i]=s[i++];for(;i<u;)l(e,i++);return e}})},6955:function(t,e,n){var i=n(2140),s=n(4901),o=n(2195),r=n(8227)("toStringTag"),a=Object,l="Arguments"===o(function(){return arguments}());t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=a(t),r))?n:l?o(e):"Object"===(i=o(e))&&s(e.callee)?"Arguments":i}},6995:function(t,e,n){n.d(e,{s:function(){return s}});var i=n(9359);function s(t){return(0,i.G)(t)&&"offsetHeight"in t}},7680:function(t,e,n){var i=n(9504);t.exports=i([].slice)},8288:function(t,e,n){n.d(e,{B:function(){return i}});const i="undefined"!=typeof window},8601:function(t,e,n){n.d(e,{M:function(){return s}});var i=n(6540);function s(t){const e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}},9120:function(t,e,n){n.d(e,{xQ:function(){return o}});var i=n(6540),s=n(6719);function o(t=!0){const e=(0,i.useContext)(s.t);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=e,a=(0,i.useId)();(0,i.useEffect)(()=>{if(t)return r(a)},[t]);const l=(0,i.useCallback)(()=>t&&o&&o(a),[a,o,t]);return!n&&o?[!1,l]:[!0]}},9359:function(t,e,n){function i(t){return"object"==typeof t&&null!==t}n.d(e,{G:function(){return i}})},9473:function(t,e,n){n.d(e,{L:function(){return i}});const i=(0,n(6540).createContext)({})},9836:function(t,e,n){n.d(e,{A:function(){return p}});var i=n(6540),s=n(4794),o=n(2532);const r=({color:t="currentColor",direction:e="left",distance:n="md",duration:s=.4,easing:o="cubic-bezier(0, 0, 0, 1)",hideOutline:r=!0,label:a,lines:l=3,onToggle:c,render:u,rounded:h=!1,size:d=32,toggle:m,toggled:p,disabled:f=!1,animateO
1nMount:g=!1})=>{const[y,v]=(0,i.useState)(!1),[x,w]=(0,i.useState)(!1);(0,i.useEffect)(()=>{w(!0)},[]);const b=Math.max(12,Math.min(48,d)),T=Math.round((48-b)/2),S=b/12,P=Math.round(S),E=b/(l*(("lg"===n?.25:"sm"===n?.75:.5)+(3===l?1:1.25))),C=Math.round(E),A=P*l+C*(l-1),k=Math.round((48-A)/2),M=parseFloat((b/(3===l?"lg"===n?4.0425:"sm"===n?5.1625:4.6325:"lg"===n?6.7875:"sm"===n?8.4875:7.6675)-(S-P+(E-C))/(3===l?1:2)/(4/3)).toFixed(2)),V=Math.max(0,s),D={cursor:f?"not-allowed":"pointer",height:"48px",position:"relative",transition:`${V}s ${o}`,userSelect:"none",width:"48px"},L={background:t,height:`${P}px`,left:`${T}px`,position:"absolute"};r&&(D.outline="none"),h&&(L.borderRadius="9em");const R=m||v,j=(()=>{const t=void 0!==p?p:y;return g&&!x?!t:t})();return u({barHeight:P,barStyles:L,burgerStyles:D,easing:o,handler:()=>{R(!j),"function"==typeof c&&c(!j)},isLeft:"left"===e,isToggled:j,label:a,margin:C,move:M,time:V,topOffset:k,width:b})};function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a.apply(this,arguments)}const l=t=>i.createElement(r,a({},t,{render:e=>i.createElement("div",{className:"hamburger-react","aria-label":e.label,"aria-expanded":e.isToggled,onClick:t.disabled?void 0:e.handler,onKeyUp:t.disabled?void 0:t=>"Enter"===t.key&&e.handler(),role:"button",style:e.burgerStyles,tabIndex:0},i.createElement("div",{style:{transition:`${e.time/2}s ${e.easing} ${e.isToggled?"0s":e.time/2+"s"}`,transform:""+(e.isToggled?`translateY(${e.barHeight+e.margin}px)`:"none")}},i.createElement("div",{style:{...e.barStyles,width:`${e.width}px`,top:`${e.topOffset}px`,transition:`${e.time/2}s ${e.easing} ${e.isToggled?e.time/2+"s":"0s"}`,transform:""+(e.isToggled?"rotate(45deg)":"none")}})),i.createElement("div",{style:{transition:`${e.time/2}s ${e.easing}`,opacity:""+(e.isToggled?"0":"1")}},i.createElement("div",{style:{...e.barStyles,width:`${e.width}px`,top:`${e.topOffset+e.barHeight+e.margin}px`,transition:`${e.time/2}s ${e.easing}`}})),i.createElement("div",{style:{transition:`${e.time/2}s ${e.easing} ${e.isToggled?"0s":e.time/2+"s"}`,transform:""+(e.isToggled?`translateY(-${e.barHeight+e.margin}px)`:"none")}},i.createElement("div",{style:{...e.barStyles,width:`${e.width}px`,top:`${e.topOffset+2*e.barHeight+2*e.margin}px`,transition:`${e.time/2}s ${e.easing} ${e.isToggled?e.time/2+"s":"0s"}`,transform:""+(e.isToggled?"rotate(-45deg)":"none")}})))}));var c=n(8587),u=n(2508);const h=["to","onClick","children","color","size","className","disabled"];var d=t=>{let{to:e="/purchase/",onClick:n,children:o="View Packages",color:r="accent",size:a="base",className:l="",disabled:d=!1}=t,m=(0,c.A)(t,h);const p="bg-accent hover:bg-accent-dark text-white \n px-6 py-3 rounded-md font-bold text-sm xl:text-base whitespace-nowrap \n transition-all duration-200 ease-in-out hover:shadow-md \n focus:outline-none "+(d?"opacity-50 cursor-not-allowed":"")+"\n "+l+"\n ",f="function"==typeof n?n:void 0;return i.createElement(u.P.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2}},f?i.createElement("button",Object.assign({onClick:f,disabled:d,className:p},m),o):i.createElement(s.Link,Object.assign({to:e,className:p},m),o))},m=n(386);function p(){const{0:t,1:e}=(0,i.useState)(!1),{0:n,1:r}=(0,i.useState)(!0),a=(0,i.useRef)(0);(0,i.useEffect)(()=>{const t=()=>{const t=window.scrollY;t<=10?r(!0):t>a.current?r(!1):t<a.current&&r(!0),a.current=t};return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[]),(0,i.useEffect)(()=>{const t=document.documentElement,e=document.querySelector("header");if(!e)return;const n=()=>{const n=e.getBoundingClientRect(),i=Math.max(0,n.height);t.style.setProperty("--header-offset",i+8+"px")};n();const i=()=>n(),s=()=>n();window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",s);const o="ResizeObserver"in window?new ResizeObserver(n):null;return o&&o.observe(e),()=>{window.removeEventListener("scroll",i),window.removeEventListener("resize",s),o&&o.disconnect()}},[]);
1const c=(0,s.useStaticQuery)("2319313900"),u=(0,o.c)(c.logo),h=[{name:"About",path:"/about/"},{name:"FAQ",path:"/faq/"},{name:"Services",path:"/services/"},{name:"Blog",path:"/blog/"},{name:"Contact",path:"/contact/"}],p=h.filter(t=>"Contact"!==t.name);return i.createElement("header",{className:"bg-white backdrop-blur-md fixed top-0 left-0 w-full z-50 border-b border-primary transition-transform duration-300 ease-in-out transform "+(n?"translate-y-0":"-translate-y-full")},i.createElement("nav",{className:"container mx-auto px-4 py-3 flex items-center justify-between flex-wrap",role:"navigation","aria-label":"Main Navigation"},i.createElement(s.Link,{to:(0,m.p)(),className:"z-50 flex-shrink-0",style:{width:"300px"},"aria-label":"Go to Home Page"},i.createElement("div",{className:"h-[64px] flex items-center"},i.createElement(o.G,{image:u,alt:"Zen Car Buying Logo",className:"h-[64px] w-auto",imgStyle:{objectFit:"contain"}}))),i.createElement("div",{className:"flex lg:hidden w-full justify-center min-[365px]:w-auto min-[365px]:justify-end mt-2 min-[365px]:mt-0"},i.createElement(l,{toggled:t,toggle:e,size:28,color:"#6B8385",rounded:!0,as:"button",label:t?"Close menu":"Open menu","aria-controls":"mobile-menu","aria-expanded":t})),i.createElement("ul",{className:"hidden lg:flex items-center gap-x-6 xl:gap-x-8 ml-auto"},i.createElement("li",null,i.createElement("a",{href:"tel:+15555550100",className:"flex items-center text-sm xl:text-base font-bold text-primary hover:text-accent transition-colors whitespace-nowrap mr-2","aria-label":"Call Zen Car Buying at (555) 555-0100"},"(555) 555-0100")),h.map(t=>i.createElement("li",{key:t.path},i.createElement(s.Link,{to:t.path,className:"text-primary hover:text-accent transition-colors font-bold text-sm xl:text-base whitespace-nowrap focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2",activeClassName:"text-accent","aria-label":"Go to "+t.name+" page"},t.name))),i.createElement("li",{className:"ml-2"},i.createElement(d,{to:"/purchase/",size:"lg",color:"accent"},"View Packages"))),i.createElement("div",{className:(t?"block":"hidden")+" lg:hidden absolute top-full left-0 right-0 bg-primary z-40 shadow-lg","aria-hidden":!t},i.createElement("ul",{className:"flex flex-col items-center py-4 space-y-4"},i.createElement("li",{className:"mt-4 w-full text-center"},i.createElement(d,{to:"/purchase/",size:"lg",color:"accent"},"View Packages")),p.map(t=>i.createElement("li",{key:t.path},i.createElement(s.Link,{to:t.path,className:"block text-white hover:text-accent pt-0 pb-2 px-4 transition-colors font-medium focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2",activeClassName:"text-accent","aria-label":"Go to "+t.name+" page"},t.name)))))))}}}]); 2//# sourceMappingURL=23b93ce0e04b9193a17b3c020f65684f410bf0be-3a60a33d6ccf8166046b.js.map
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.