1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,64868,e=>{"use strict";let t,i,s;var n,r=e.i(43476),a=e.i(71645),o=e.i(47167);let l=(0,a.createContext)({});function h(e){let t=(0,a.useRef)(null);return null===t.current&&(t.current=e()),t.current}let c="u">typeof window?a.useLayoutEffect:a.useEffect,d=(0,a.createContext)(null),u=e=>"object"==typeof e&&null!==e;function m(e){return u(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}var p=a;let f=(0,a.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function x(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class g extends p.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(m(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,i=m(e)&&e.offsetWidth||0,s=m(e)&&e.offsetHeight||0,n=getComputedStyle(t),r=this.props.sizeRef.current;r.height=parseFloat(n.height),r.width=parseFloat(n.width),r.top=t.offsetTop,r.left=t.offsetLeft,r.right=i-r.width-r.left,r.bottom=s-r.height-r.top,r.direction=n.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function y({children:e,isPresent:t,anchorX:i,anchorY:s,root:n,pop:o}){let l=(0,p.useId)(),h=(0,p.useRef)(null),c=(0,p.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:d}=(0,p.useContext)(f),u=function(...e){return a.useCallback(function(...e){return t=>{let i=!1,s=e.map(e=>{let s=x(e,t);return i||"function"!=typeof s||(i=!0),s});if(i)return()=>{for(let t=0;t<s.length;t++){let i=s[t];"function"==typeof i?i():x(e[t],null)}}}}(...e),e)}(h,e.props?.ref??e?.ref);return(0,p.useInsertionEffect)(()=>{let{width:e,height:r,top:a,left:u,right:m,bottom:p,direction:f}=c.current;if(t||!1===o||!h.current||!e||!r)return;let x="rtl"===f,g="left"===i?x?`right: ${m}`:`left: ${u}`:x?`left: ${u}`:`right: ${m}`,y="bottom"===s?`bottom: ${p}`:`top: ${a}`;h.current.dataset.motionPopId=l;let v=document.createElement("style");d&&(v.nonce=d);let b=n??document.head;return b.appendChild(v),v.sheet&&v.sheet.insertRule(` 2 [data-motion-pop-id="${l}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${r}px !important; 6 ${g}px !important; 7 ${y}px !important; 8 } 9 `),()=>{h.current?.removeAttribute("data-motion-pop-id"),b.contains(v)&&b.removeChild(v)}},[t]),(0,r.jsx)(g,{isPresent:t,childRef:h,sizeRef:c,pop:o,children:!1===o?e:p.cloneElement(e,{ref:u})})}let v=({children:e,initial:t,isPresent:i,onExitComplete:s,custom:n,presenceAffectsLayout:o,mode:l,anchorX:u,anchorY:m,root:p})=>{let f=h(b),x=(0,a.useId)(),g=(0,a.useRef)(i),v=(0,a.useRef)(s);c(()=>{g.current=i,v.current=s});let w=!0,j=(0,a.useMemo)(()=>(w=!1,{id:x,initial:t,isPresent:i,custom:n,onExitComplete:e=>{for(let t of(f.set(e,!0),f.values()))if(!t)return;s&&s()},register:e=>(f.set(e,!1),()=>{f.delete(e),g.current||f.size||v.current?.()})}),[i,f,s]);return o&&w&&(j={...j}),(0,a.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[i]),a.useEffect(()=>{i||f.size||!s||s()},[i]),e=(0,r.jsx)(y,{pop:"popLayout"===l,isPresent:i,anchorX:u,anchorY:m,root:p,children:e}),(0,r.jsx)(d.Provider,{value:j,children:e})};function b(){return new Map}function w(e=!0){let t=(0,a.useContext)(d);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:s,register:n}=t,r=(0,a.useId)();(0,a.useEffect)(()=>{if(e)return n(r)},[e]);let o=(0,a.useCallback)(()=>e&&s&&s(r),[r,s,e]);return!i&&s?[!1,o]:[!0]}let j=e=>e.key||"";function S(e){let t=[];return a.Children.forEach(e,e=>{(0,a.isValidElement)(e)&&t.push(e)}),t}let N=({children:e,custom:t,initial:i=!0,onExitComplete:s,presenceAffectsLayout:n=!0,mode:o="sync",propagate:d=!1,anchorX:u="left",anchorY:m="top",root:p})=>{let[f,x]=w(d),g=(0,a.useMemo)(()=>S(e),[e]),y=d&&!f?[]:g.map(j),b=(0,a.useRef)(!0),N=(0,a.useRef)(g),T=h(()=>new Map),k=(0,a.useRef)(new Set),[P,A]=(0,a.useState)(g),[E,M]=(0,a.useState)(g);c(()=>{b.current=!1,N.current=g;for(let e=0;e<E.length;e++){let t=j(E[e]);y.includes(t)?(T.delete(t),k.current.delete(t)):!0!==T.get(t)&&T.set(t,!1)}},[E,y.length,y.join("-")]);let C=[];if(g!==P){let e=[...g];for(let t=0;t<E.length;t++){let i=E[t],s=j(i);y.includes(s)||(e.splice(t,0,i),C.push(i))}return"wait"===o&&C.length&&(e=C),M(S(e)),A(g),null}let{forceRender:V}=(0,a.useContext)(l);return(0,r.jsx)(r.Fragment,{children:E.map(e=>{let a=j(e),l=(!d||!!f)&&(g===E||y.includes(a));return(0,r.jsx)(v,{isPresent:l,initial:(!b.current||!!i)&&void 0,custom:t,presenceAffectsLayout:n,mode:o,root:p,onExitComplete:l?void 0:()=>
9{if(k.current.has(a)||!T.has(a))return;k.current.add(a),T.set(a,!0);let e=!0;T.forEach(t=>{t||(e=!1)}),e&&(V?.(),M(N.current),d&&x?.(),s&&s())},anchorX:u,anchorY:m,children:e},a)})})},T=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],k=new Set([...T,"pathRotation"]),P=(e,t,i)=>i>t?t:i<e?e:i,A={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},E={...A,transform:e=>P(0,1,e)},M={...A,default:1},C=e=>Math.round(1e5*e)/1e5,V=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,R=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,D=(e,t)=>i=>!!("string"==typeof i&&R.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),L=(e,t,i)=>s=>{if("string"!=typeof s)return s;let[n,r,a,o]=s.match(V);return{[e]:parseFloat(n),[t]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},B={...A,transform:e=>Math.round(P(0,255,e))},F={test:D("rgb","red"),parse:L("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:s=1})=>"rgba("+B.transform(e)+", "+B.transform(t)+", "+B.transform(i)+", "+C(E.transform(s))+")"},I={test:D("#"),parse:function(e){let t="",i="",s="",n="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),s=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),s=e.substring(3,4),n=e.substring(4,5),t+=t,i+=i,s+=s,n+=n),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}},transform:F.transform},O=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),$=O("deg"),U=O("%"),W=O("px"),z=O("vh"),K=O("vw"),Y={...U,parse:e=>U.parse(e)/100,transform:e=>U.transform(100*e)},H={test:D("hsl","hue"),parse:L("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:s=1})=>"hsla("+Math.round(e)+", "+U.transform(C(t))+", "+U.transform(C(i))+", "+C(E.transform(s))+")"},X={test:e=>F.test(e)||I.test(e)||H.test(e),parse:e=>F.test(e)?F.parse(e):H.test(e)?H.parse(e):I.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?F.transform(e):H.transform(e),getAnimatableNone:e=>{let t=X.parse(e);return t.alpha=0,X.transform(t)}},_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,q="number",G="color",Z=/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 Q(e){let t=e.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,a=t.replace(Z,e=>(X.test(e)?(s.color.push(r),n.push(G),i.push(X.parse(e))):e.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(e)):(s.number.push(r),n.push(q),i.push(parseFloat(e))),++r,"${}")).split("${}");return{values:i,split:a,indexes:s,types:n}}function J({split:e,types:t}){let i=e.length;return s=>{let n="";for(let r=0;r<i;r++)if(n+=e[r],void 0!==s[r]){let e=t[r];e===q?n+=C(s[r]):e===G?n+=X.transform(s[r]):n+=s[r]}return n}}let ee={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(V)?.length||0)+(e.match(_)?.length||0)>0},parse:function(e){return Q(e).values},createTransformer:function(e){return J(Q(e))},getAnimatableNone:function(e){let t=Q(e);return J(t)(t.values.map((e,i)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:X.test(e)?X.getAnimatableNone(e):e)(e,t.split[i])))}},et=new Set(["brightness","contrast","saturate","opacity"]);function ei(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[s]=i.match(V)||[];if(!s)return e;let n=i.replace(s,""),r=+!!et.has(t);return s!==i&&(r*=100),t+"("+r+n+")"}let es=/\b([a-z-]*)\(.*?\)/gu,en={...ee,getAnimatableNone:e=>{let t=e.match(es);return t?t.map(ei).join(" "):e}},er={...ee,getAnimatableNone:e=>{let t=ee.parse(e);return ee.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},ea={...A,transform:Math.round},eo={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,
9inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,fontSize:W,backgroundPositionX:W,backgroundPositionY:W,rotate:$,pathRotation:$,rotateX:$,rotateY:$,rotateZ:$,scale:M,scaleX:M,scaleY:M,scaleZ:M,skew:$,skewX:$,skewY:$,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:E,originX:Y,originY:Y,originZ:W,zIndex:ea,fillOpacity:E,strokeOpacity:E,numOctaves:ea},el={...eo,color:X,backgroundColor:X,outlineColor:X,fill:X,stroke:X,borderColor:X,borderTopColor:X,borderRightColor:X,borderBottomColor:X,borderLeftColor:X,filter:en,WebkitFilter:en,mask:er,WebkitMask:er},eh=e=>el[e],ec=()=>({translate:0,scale:1,origin:0,originPoint:0}),ed=()=>({x:ec(),y:ec()}),eu=()=>({min:0,max:0}),em=()=>({x:eu(),y:eu()}),ep=e=>!!(e&&e.getVelocity),ef=new Set(["width","height","top","left","right","bottom",...T]),ex=e=>t=>t.test(e),eg=[A,W,U,$,K,z,{test:e=>"auto"===e,parse:e=>e}],ey=e=>eg.find(ex(e)),ev=()=>{},eb=()=>{};o.default;let ew=e=>t=>"string"==typeof t&&t.startsWith(e),ej=ew("--"),eS=ew("var(--"),eN=e=>!!eS(e)&&eT.test(e.split("/*")[0].trim()),eT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ek(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let eP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eA=e=>180*e/Math.PI,eE=e=>eC(eA(Math.atan2(e[1],e[0]))),eM={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:eE,rotateZ:eE,skewX:e=>eA(Math.atan(e[1])),skewY:e=>eA(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},eC=e=>((e%=360)<0&&(e+=360),e),eV=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eR=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),eD={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eV,scaleY:eR,scale:e=>(eV(e)+eR(e))/2,rotateX:e=>eC(eA(Math.atan2(e[6],e[5]))),rotateY:e=>eC(eA(Math.atan2(-e[2],e[0]))),rotateZ:eE,rotate:eE,skewX:e=>eA(Math.atan(e[4])),skewY:e=>eA(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function eL(e){return+!!e.includes("scale")}function eB(e,t){let i,s;if(!e||"none"===e)return eL(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=eD,s=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=eM,s=t}if(!s)return eL(t);let r=i[t],a=s[1].split(",").map(eF);return"function"==typeof r?r(a):a[r]}function eF(e){return parseFloat(e.trim())}let eI=e=>e===A||e===W,eO=new Set(["x","y","z"]),e$=T.filter(e=>!eO.has(e)),eU={width:({x:e},{paddingLeft:t="0",paddingRight:i="0",boxSizing:s})=>{let n=e.max-e.min;return"border-box"===s?n:n-parseFloat(t)-parseFloat(i)},height:({y:e},{paddingTop:t="0",paddingBottom:i="0",boxSizing:s})=>{let n=e.max-e.min;return"border-box"===s?n:n-parseFloat(t)-parseFloat(i)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>eB(t,"x"),y:(e,{transform:t})=>eB(t,"y")};eU.translateX=eU.x,eU.translateY=eU.y;let eW=e=>e,ez={},eK=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eY(e,t){let i=!1,s=!0,n={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=eK.reduce((e,t)=>(e[t]=function(e){let t=new Set,i=new Set,s=!1,n=!1,r=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function o(t){r.has(t)&&(l.schedule(t),e()),t(a)}let l={schedule:(e,n=!1,a=!1)=>{let o=a&&s?t:i;return n&&r.add(e),o.add(e),e},cancel:e=>{i.delete(e),r.delete(e)},process:e=>{if(a=e,s){n=!0;return}s=!0;let r=t;t=i,i=r,t.forEach(o),t.clear(),s=!1,n&&(n=!1,l.process(e))}};return l}(r),e),{}),{setup:o,read:l,resolveKeyframes:h,preUpdate:c,update:d,preRender:u,render:m,postRender:p}=a,f=()=>{let r=ez.useManualTiming,a=r?n.timestamp:performance.now();i=!1,r||(n.delta=s?1e3/60:Math.max(Math.min(a-n.timestamp,40),1)),n.timestamp=a,n.isProcessing=!0,o.process(n),l.process(n),h.process(n),c.process(n),d.process(n),u.process(n),m.process(n),p.process(n),n.isProcessing=!1,i&&t&&(s=!1,e(f))};return{schedule:eK.reduce((t,r)=>{let o=a[r];return t[r]=(t,r=!1,a=!1)=>(!i&&(i=!0,s=!0,n.isProcessing||e(f)),o.schedule(t,r,a)),t},{}),cancel:e=>{for(let t=0;t<eK.length;t++)a[eK[t]].cancel(e)},state:n,steps:a}}let{schedule:eH,cancel:eX,state:e_,steps:eq}=eY("u">typeof requestAnimationFrame?requestAnimationFrame:eW,!0),eG=new Set,eZ=!1,eQ=!1,eJ=!1;function e0(){if(eQ){let e=Array.from(eG).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;
9t.forEach(e=>{let t,s=(t=[],e$.forEach(i=>{let s=e.getValue(i);void 0!==s&&(t.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),t);s.length&&(i.set(e,s),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eQ=!1,eZ=!1,eG.forEach(e=>e.complete(eJ)),eG.clear()}function e1(){eG.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eQ=!0)})}class e2{constructor(e,t,i,s,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(eG.add(this),eZ||(eZ=!0,eH.read(e1),eH.resolveKeyframes(e0))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:s}=this;if(null===e[0]){let n=s?.get(),r=e[e.length-1];if(void 0!==n)e[0]=n;else if(i&&t){let s=i.readValue(t,r);null!=s&&(e[0]=s)}void 0===e[0]&&(e[0]=r),s&&void 0===n&&s.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eG.delete(this)}cancel(){"scheduled"===this.state&&(eG.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let e3=new Set([en,er]);function e5(e,t){let i=eh(e);return e3.has(i)||(i=ee),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let e4=new Set(["auto","none","0"]);class e6 extends e2{constructor(e,t,i,s,n){super(e,t,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let s=e[i];if("string"==typeof s&&eN(s=s.trim())){let n=function e(t,i,s=1){eb(s<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,r]=function(e){let t=eP.exec(e);if(!t)return[,];let[,i,s,n]=t;return[`--${i??s}`,n]}(t);if(!n)return;let a=window.getComputedStyle(i).getPropertyValue(n);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return eN(r)?e(r,i,s+1):r}(s,t.current);void 0!==n&&(e[i]=n),i===e.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!ef.has(i)||2!==e.length)return;let[s,n]=e,r=ey(s),a=ey(n);if(ek(s)!==ek(n)&&eU[i]){this.needsMeasurement=!0;return}if(r!==a)if(eI(r)&&eI(a))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else eU[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&i.push(t);i.length&&function(e,t,i){let s,n=0;for(;n<e.length&&!s;){let t=e[n];"string"==typeof t&&!e4.has(t)&&Q(t).values.length&&(s=e[n]),n++}if(s&&i)for(let n of t)e[n]=e5(i,s)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eU[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let s=t[t.length-1];void 0!==s&&e.getValue(i,s).jump(s,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;let s=e.getValue(t);s&&s.jump(this.measuredOrigin,!1);let n=i.length-1,r=i[n];i[n]=eU[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
9h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let e8=e=>1e3*e;function e9(e,t){-1===e.indexOf(t)&&e.push(t)}function e7(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class te{constructor(){this.subscriptions=[]}add(e){return e9(this.subscriptions,e),()=>e7(this.subscriptions,e)}notify(e,t,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](e,t,i);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tt(e,t,i){t.startsWith("--")?e.style.setProperty(t,i):e.style[t]=i}function ti(e){let t;return()=>(void 0===t&&(t=e()),t)}let ts={};function tn(e,t){let i=ti(e);return()=>ts[t]??i()}let tr=tn(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),ta=e=>null!==e;function to(e,{repeat:t,repeatType:i="loop"},s,n=1){let r=e.filter(ta),a=n<0||t&&"loop"!==i&&t%2==1?0:r.length-1;return a&&void 0!==s?s:r[a]}class tl{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let th=e=>Array.isArray(e)&&"number"==typeof e[0],tc=tn(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),td=(e,t,i=10)=>{let s="",n=Math.max(Math.round(t/i),2);for(let t=0;t<n;t++)s+=Math.round(1e4*e(t/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},tu=([e,t,i,s])=>`cubic-bezier(${e}, ${t}, ${i}, ${s})`,tm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tu([0,.65,.55,1]),circOut:tu([.55,0,1,.45]),backIn:tu([.31,.01,.66,-.59]),backOut:tu([.33,1.53,.69,.99])};function tp(e){return"function"==typeof e&&"applyToOptions"in e}class tf extends tl{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:i,keyframes:s,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=e;this.isPseudoElement=!!n,this.allowFlatten=r,this.options=e,eb("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return tp(e)&&tc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h){let c={[t]:i};l&&(c.offset=l);let d=function e(t,i){if(t)return"function"==typeof t?tc()?td(t,i):"ease-out":th(t)?tu(t):Array.isArray(t)?t.map(t=>e(t,i)||tm.easeOut):tm[t]}(o,n);Array.isArray(d)&&(c.easing=d);let u={delay:s,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};return h&&(u.pseudoElement=h),e.animate(c,u)}(t,i,s,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let e=to(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(e),tt(t,i,e),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=e8(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:i,observe:s}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&tr())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),i&&(this.animation.rangeEnd=i),eW):s(this)}}let tx=new Set(["opacity","clipPath","filter","transform"]),{schedule:tg}=eY(queueMicrotask,!1);function ty(){t=void 0}let tv={now:()=>(void 0===t&&tv.set(e_.isProcessing||ez.useManualTiming?e_.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(ty)}},tb=(e,t)=>t?1e3/t*e:0,tw;class tj{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tv.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tv.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new te);let i=this.events[e].add(t);return"change"===e?()=>{i(),eH.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return tw&&tw.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=tv.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tb(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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 tS(e,t){return new tj(e,t)}let tN=[...eg,X,ee],tT=new WeakMap;function tk(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tP(e){return"string"==typeof e||Array.isArray(e)}let tA=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tE=["initial",...tA];function tM(e){return tk(e.animate)||tE.some(t=>tP(e[t]))}function tC(e){return!!(tM(e)||e.variants)}let tV={current:null},tR={current:!1},tD="u">typeof window;function tL(e){let t=[{},{}];
9return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function tB(e,t,i,s){if("function"==typeof t){let[n,r]=tL(s);t=t(void 0!==i?i:e.custom,n,r)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[n,r]=tL(s);t=t(void 0!==i?i:e.custom,n,r)}return t}let tF=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tI={};class tO{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:s,skipAnimations:n,blockInitialAnimation:r,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=e2,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=()=>{let e=tv.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eH.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=h,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=tM(t),this.isVariantNode=tC(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&ep(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,tT.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tR.current||function(){if(tR.current=!0,tD)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tV.current=e.matches;e.addEventListener("change",t),t()}else tV.current=!1}(),this.shouldReduceMotion=tV.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eX(this.notifyUpdate),eX(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let i;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&tx.has(e)&&this.current instanceof HTMLElement){let{factory:i,keyframes:s,times:n,ease:r,duration:a}=t.accelerate,o=new tf({element:this.current,name:e,keyframes:s,times:n,ease:r,duration:e8(a)}),l=i(o);this.valueSubscriptions.set(e,()=>{l(),o.cancel()});return}let s=k.has(e);s&&this.onBindTransform&&this.onBindTransform();let n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eH.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),i&&i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tI){let t=tI[e];if(!t)continue;let{isEnabled:i,Feature:s}=t;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(this)),this.features[e]){let t=this.features[e];
9t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):em()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tF.length;t++){let i=tF[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=e["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(e,t,i){for(let s in t){let n=t[s],r=i[s];if(ep(n))e.addValue(s,n);else if(ep(r))e.addValue(s,tS(n,{owner:e}));else if(r!==n)if(e.hasValue(s)){let t=e.getValue(s);!0===t.liveStyle?t.jump(n):t.hasAnimated||t.set(n)}else{let t=e.getStaticValue(s);e.addValue(s,tS(void 0!==t?t:n,{owner:e}))}}for(let s in i)void 0===t[s]&&e.removeValue(s);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=tS(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=i){let s,n;if("string"==typeof i&&(s=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s)||(n=i,/^0[^.\s]+$/u.test(n))))i=parseFloat(i);else{let s;s=i,!tN.find(ex(s))&&ee.test(t)&&(i=e5(e,t))}this.setBaseTarget(e,ep(i)?i.get():i)}return ep(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=tB(this.props,i,this.presenceContext?.custom);s&&(t=s[e])}if(i&&void 0!==t)return t;let s=this.getBaseTargetFromProps(this.props,e);return void 0===s||ep(s)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:s}on(e,t){return this.events[e]||(this.events[e]=new te),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){tg.render(this.render)}}class t$ extends tO{constructor(){super(...arguments),this.KeyframeResolver=e6}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let i=e.style;return i?i[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;ep(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tU(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tW=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tK=T.length;function tY(e,t,i){let{style:s,vars:n,transformOrigin:r}=e,a=!1,o=!1;for(let e in t){let i=t[e];if(k.has(e)){a=!0;continue}if(ej(e)){n[e]=i;continue}{let t=tW(i,eo[e]);e.startsWith("origin")?(o=!0,r[e]=t):s[e]=t}}if(!t.transform&&(a||i?s.transform=function(e,t,i){let s="",n=!0;for(let r=0;r<tK;r++){let a=T[r],o=e[a];if(void 0===o)continue;let l=!0;if("number"==typeof o)l=o===+!!a.startsWith("scale");else{let e=parseFloat(o);l=a.startsWith("scale")?1===e:0===e}if(!l||i){let e=tW(o,eo[a]);if(!l){n=!1;let t=tz[a]||a;s+=`${t}(${e}) `}i&&(t[a]=e)}}let r=e.pathRotation;return r&&(n=!1,s+=`rotate(${tW(r,eo.pathRotation)}) `),s=s.trim(),i?s=i(t,n?"":s):n&&(s="none"),s}(t,e.transform,i):s.transform&&(s.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:i=0}=r;s.transformOrigin=`${e} ${t} ${i}`}}let tH={offset:"stroke-dashoffset",array:"stroke-dasharray"},tX={offset:"strokeDashoffset",array:"strokeDasharray"},t_=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tq(e,{attrX:t,attrY:i,attrScale:s,pathLength:n,pathSpacing:r=1,pathOffset:a=0,...o}
9,l,h,c){if(tY(e,o,h),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:u}=e;for(let e of(d.transform&&(u.transform=d.transform,delete d.transform),(u.transform||d.transformOrigin)&&(u.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),u.transform&&(u.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t_))void 0!==d[e]&&(u[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==i&&(d.y=i),void 0!==s&&(d.scale=s),void 0!==n&&function(e,t,i=1,s=0,n=!0){e.pathLength=1;let r=n?tH:tX;e[r.offset]=`${-s}`,e[r.array]=`${t} ${i}`}(d,n,r,a,!1)}let tG=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"]),tZ=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tQ(e,{style:t,vars:i},s,n){let r,a=e.style;for(r in t)a[r]=t[r];for(r in n?.applyProjectionStyles(a,s),i)a.setProperty(r,i[r])}function tJ(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let t0={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!W.test(e))return e;else e=parseFloat(e);let i=tJ(e,t.target.x),s=tJ(e,t.target.y);return`${i}% ${s}%`}},t1=(e,t,i)=>e+(t-e)*i,t2={borderRadius:{...t0,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:t0,borderTopRightRadius:t0,borderBottomLeftRadius:t0,borderBottomRightRadius:t0,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let s=ee.parse(e);if(s.length>5)return e;let n=ee.createTransformer(e),r=+("number"!=typeof s[0]),a=i.x.scale*t.x,o=i.y.scale*t.y;s[0+r]/=a,s[1+r]/=o;let l=t1(a,o,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}};function t3(e,{layout:t,layoutId:i}){return k.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!t2[e]||"opacity"===e)}function t5(e,t,i){let s=e.style,n=t?.style,r={};if(!s)return r;for(let t in s)(ep(s[t])||n&&ep(n[t])||t3(t,e)||i?.getValue(t)?.liveStyle!==void 0)&&(r[t]=s[t]);return r}function t4(e,t,i){let s=t5(e,t,i);for(let i in e)(ep(e[i])||ep(t[i]))&&(s[-1!==T.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return s}class t6 extends t${constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=em}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(k.has(t)){let e=eh(t);return e&&e.default||0}return t=tG.has(t)?t:tU(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return t4(e,t,i)}build(e,t,i){tq(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,s){for(let i in tQ(e,t,void 0,s),t.attrs)e.setAttribute(tG.has(i)?i:tU(i),t.attrs[i])}mount(e){this.isSVGTag=tZ(e.tagName),super.mount(e)}}function t8({top:e,left:t,right:i,bottom:s}){return{x:{min:t,max:i},y:{min:e,max:s}}}function t9(e){return void 0===e||1===e}function t7({scale:e,scaleX:t,scaleY:i}){return!t9(e)||!t9(t)||!t9(i)}function ie(e){return t7(e)||it(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function it(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function ii(e,t,i,s,n){return void 0!==n&&(e=s+n*(e-s)),s+i*(e-s)+t}function is(e,t=0,i=1,s,n){e.min=ii(e.min,t,i,s,n),e.max=ii(e.max,t,i,s,n)}function ir(e,{x:t,y:i}){is(e.x,t.translate,t.scale,t.originPoint),is(e.y,i.translate,i.scale,i.originPoint)}function ia(e,t){e.min+=t,e.max+=t}function io(e,t,i,s,n=.5){let r=t1(e.min,e.max,n);is(e,t,i,r,s)}function il(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function ih(e,t,i){let s=i??e;io(e.x,il(t.x,s.x),t.scaleX,t.scale,t.originX),io(e.y,il(t.y,s.y),t.scaleY,t.scale,t.originY)}function ic(e,t){return t8(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}class id extends t${constructor(){super(...arguments),this.type="html",this.renderInstance=tQ}readValueFromInstance(e,t){if(k.has(t))return this.projection?.isProjecting?eL(t):((e,t)=>{let{transform:i="none"}=getComputedStyle(e);return eB(i,t)})(e,t);
9{let i=window.getComputedStyle(e),s=(ej(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ic(e,t)}build(e,t,i){tY(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return t5(e,t,i)}}let iu=["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 im(e){if("string"!=typeof e||e.includes("-"));else if(iu.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let ip=(0,a.createContext)({strict:!1}),ix=(0,a.createContext)({});function ig(e){return Array.isArray(e)?e.join(" "):e}let iy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iv(e,t,i){for(let s in t)ep(t[s])||t3(s,i)||(e[s]=t[s])}let ib=()=>({...iy(),attrs:{}}),iw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ij(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||iw.has(e)}let iS=e=>!ij(e);try{n=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default,"function"==typeof n&&(iS=e=>e.startsWith("on")?!ij(e):n(e))}catch{}function iN(e){return ep(e)?e.get():e}let iT=e=>(t,i)=>{let s=(0,a.useContext)(ix),n=(0,a.useContext)(d),r=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,s,n){return{latestValues:function(e,t,i,s){let n={},r=s(e,{});for(let e in r)n[e]=iN(r[e]);let{initial:a,animate:o}=e,l=tM(e),h=tC(e);t&&h&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let c=!!i&&!1===i.initial,d=(c=c||!1===a)?o:a;if(d&&"boolean"!=typeof d&&!tk(d)){let t=Array.isArray(d)?d:[d];for(let i=0;i<t.length;i++){let s=tB(e,t[i]);if(s){let{transitionEnd:e,transition:t,...i}=s;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(n[e]=t)}for(let t in e)n[t]=e[t]}}}return n}(i,s,n,e),renderState:t()}})(e,t,s,n);return i?r():h(r)},ik=iT({scrapeMotionValuesFromProps:t5,createRenderState:iy}),iP=iT({scrapeMotionValuesFromProps:t4,createRenderState:ib}),iA={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"]},iE=!1;function iM(){return!function(){if(iE)return;let e={};for(let t in iA)e[t]={isEnabled:e=>iA[t].some(t=>!!e[t])};tI=e,iE=!0}(),tI}let iC=Symbol.for("motionComponentSymbol"),iV="data-"+tU("framerAppearId"),iR=(0,a.createContext)({});function iD(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function iL(e,{forwardMotionProps:t=!1,type:i}={},s,n){s&&function(e){let t=iM();for(let i in e)t[i]={...t[i],...e[i]};tI=t}(s);let o=i?"svg"===i:im(e),h=o?iP:ik;function u(i,s){var u;let m,p,x,g={...(0,a.useContext)(f),...i,layoutId:function({layoutId:e}){let t=(0,a.useContext)(l).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:y}=g,v=function(e){let{initial:t,animate:i}=function(e,t){if(tM(e)){let{initial:t,animate:i}=e;return{initial:!1===t||tP(t)?t:void 0,animate:tP(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(ix));return(0,a.useMemo)(()=>({initial:t,animate:i}),[ig(t),ig(i)])}(i),b=h(i,y);if(!y&&"u">typeof window){(0,a.useContext)(ip).strict;let t=function(e){let{drag:t,layout:i}=iM();if(!t&&!i)return{};let s={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
9(g);m=t.MeasureLayout,v.visualElement=function(e,t,i,s,n,r){let{visualElement:o}=(0,a.useContext)(ix),l=(0,a.useContext)(ip),h=(0,a.useContext)(d),u=(0,a.useContext)(f),m=u.reducedMotion,p=u.skipAnimations,x=(0,a.useRef)(null),g=(0,a.useRef)(!1);s=s||l.renderer,!x.current&&s&&(x.current=s(e,{visualState:t,parent:o,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:m,skipAnimations:p,isSVG:r}),g.current&&x.current&&(x.current.manuallyAnimateOnMount=!0));let y=x.current,v=(0,a.useContext)(iR);y&&!y.projection&&n&&("html"===y.type||"svg"===y.type)&&function(e,t,i,s){let{layoutId:n,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:h,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:n,layout:r,alwaysMeasureLayout:!!a||o&&iD(o),visualElement:e,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,crossfade:d,layoutScroll:l,layoutRoot:h,layoutAnchor:c})}(x.current,i,n,v);let b=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{y&&b.current&&y.update(i,h)});let w=i[iV],j=(0,a.useRef)(!!w&&"u">typeof window&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return c(()=>{g.current=!0,y&&(b.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),j.current&&y.animationState&&y.animationState.animateChanges())}),(0,a.useEffect)(()=>{y&&(!j.current&&y.animationState&&y.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),j.current=!1),y.enteringChildren=void 0)}),y}(e,b,g,n,t.ProjectionNode,o)}return(0,r.jsxs)(ix.Provider,{value:v,children:[m&&v.visualElement?(0,r.jsx)(m,{visualElement:v.visualElement,...g}):null,function(e,t,i,{latestValues:s},n,r=!1,o){let l=(o??im(e)?function(e,t,i,s){let n=(0,a.useMemo)(()=>{let i=ib();return tq(i,t,tZ(s),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};iv(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t){let i,s,n={},r=(i=e.style||{},iv(s={},i,e),Object.assign(s,function({transformTemplate:e},t){return(0,a.useMemo)(()=>{let i=iy();return tY(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),s);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(t,s,n,e),h=function(e,t,i){let s={};for(let n in e)("values"!==n||"object"!=typeof e.values)&&!ep(e[n])&&(iS(n)||!0===i&&ij(n)||!t&&!ij(n)||e.draggable&&n.startsWith("onDrag"))&&(s[n]=e[n]);return s}(t,"string"==typeof e,r),c=e!==a.Fragment?{...h,...l,ref:i}:{},{children:d}=t,u=(0,a.useMemo)(()=>ep(d)?d.get():d,[d]);return(0,a.createElement)(e,{...c,children:u})}(e,i,(u=v.visualElement,p=(0,a.useRef)(s),(0,a.useInsertionEffect)(()=>{p.current=s}),x=(0,a.useRef)(null),(0,a.useCallback)(e=>{e&&b.onMount?.(e),u&&(e?u.mount(e):u.unmount());let t=p.current;if("function"==typeof t)if(e){let i=t(e);"function"==typeof i&&(x.current=i)}else x.current?(x.current(),x.current=null):t(e);else t&&(t.current=e)},[u])),b,y,t,o)]})}u.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let m=(0,a.forwardRef)(u);return m[iC]=e,m}class iB{constructor(e){this.isMounted=!1,this.node=e}update(){}}function iF(e,t,i){let s=e.getProps();return tB(s,t,void 0!==i?i:s.custom,e)}function iI(e,t){if(e?.inherit&&t){let{inherit:i,...s}=e;return{...t,...s}}return e}function iO(e,t){let i=e?.[t]??e?.default??e;return i!==e?iI(i,e):i}let i$=e=>Array.isArray(e);function iU(e,t){let i=e.getValue("willChange");if(ep(i)&&i.add)return i.add(t);if(!i&&ez.WillChange){let i=new ez.WillChange("auto");e.addValue("willChange",i),i.add(t)}}let iW=(...e)=>e.reduce((e,t)=>i=>t(e(i)));function iz(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function iK(e,t){return i=>i>0?t:e}let iY=(e,t,i)=>{let s=e*e,n=i*(t*t-s)+s;return n<0?0:Math.sqrt(n)},iH=[I,F,H];function iX(e){let t=iH.find(t=>t.test(e));if(ev(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let i=t.parse(e);return t===H&&(i=function({hue:e,saturation:t,lightness:i,alpha:s}){e/=360,i/=100;let n=0,r=0,a=0;if(t/=100){let s=i<.5?i*(1+t):i+t-i*t,o=2*i-s;n=iz(o,s,e+1/3),r=iz(o,s,e),a=iz(o,s,e-1/3)}else n=r=a=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*a),alpha:s}}(i)),i}let i_=(e,t)=>{let i=iX(e),s=iX(t);if(!i||!s)return iK(e,t);let n={...i};return e=>(n.red=iY(i.red,s.red,e),n.green=iY(i.green,s.green,e),n.blue=iY(i.blue,s.blue,e),n.alpha=t1(i.alpha,s.alpha,e),F.transform(n))},iq=new Set(["none","hidden"]);function iG(e,t){return i=>t1(e,t,i)}function iZ(e){return"number"==typeof e?iG:"string"==typeof e?eN(e)?iK:X.test(e)?i_:i0:Array.isArray(e)?iQ:"object"==typeof e?X.test(e)?i_:iJ:iK}function iQ(e,t){let i=[...e],s=i.length,n=e.map((e,i)=>iZ(e)(e,t[i]));return e=>{for(let t=0;t<s;t++)i[t]=n[t](e);return i}}function iJ(e,t){let i={...e,...t},s={};for(let n in i)void 0!==e[n]&&void 0!==t[n]&&(s[n]=iZ(e[n])(e[n],t[n]));return e=>{for(let t in s)i[t]=s[t](e);return i}}let i0=(e,t)=>{let i=ee.createTransformer(t),s=Q(e),n=Q(t);if(!(s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length))return ev(!0,`Complex values '${e}' and '${t}
9' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iK(e,t);if(iq.has(e)&&!n.values.length||iq.has(t)&&!s.values.length)return iq.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return iW(iQ(function(e,t){let i=[],s={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let r=t.types[n],a=e.indexes[r][s[r]],o=e.values[a]??0;i[n]=o,s[r]++}return i}(s,n),n.values),i)};function i1(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?t1(e,t,i):iZ(e)(e,t)}let i2=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eH.update(t,e),stop:()=>eX(t),now:()=>e_.isProcessing?e_.timestamp:tv.now()}};function i3(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}let i5=.01,i4=2,i6=.005,i8=.5;function i9(e,t){return e*Math.sqrt(1-t*t)}let i7=["duration","bounce"],se=["stiffness","damping","mass"];function st(e,t){return t.some(t=>void 0!==e[t])}function si(e=.3,t=.3){let i,s,n,r,a,o,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:h,restDelta:c}=l,d=l.keyframes[0],u=l.keyframes[l.keyframes.length-1],m={done:!1,value:d},{stiffness:p,damping:f,mass:x,duration:g,velocity:y,isResolvedFromDuration:v}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!st(e,se)&&st(e,i7))if(t.velocity=0,e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),s=i*i,n=2*P(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:1,stiffness:s,damping:n}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:s=1}){let n,r;ev(e<=e8(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=P(.05,1,a),e=P(.01,10,e/1e3),a<1?(n=t=>{let s=t*a,n=s*e;return .001-(s-i)/i9(t,a)*Math.exp(-n)},r=t=>{let s=t*a*e,r=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-s),l=i9(Math.pow(t,2),a);return(s*i+i-r)*o*(-n(t)+.001>0?-1:1)/l}):(n=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),r=t=>e*e*(i-t)*Math.exp(-t*e));let o=function(e,t,i){let s=i;for(let i=1;i<12;i++)s-=e(s)/t(s);return s}(n,r,5/e);if(e=e8(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*s;return{stiffness:t,damping:2*a*Math.sqrt(s*t),duration:e}}}({...e,velocity:0});(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-((l.velocity||0)/1e3)}),b=y||0,w=f/(2*Math.sqrt(p*x)),j=u-d,S=Math.sqrt(p/x)/1e3,N=5>Math.abs(j);if(h||(h=N?i5:i4),c||(c=N?i6:i8),w<1)n=i9(S,w),r=(b+w*S*j)/n,i=e=>u-Math.exp(-w*S*e)*(r*Math.sin(n*e)+j*Math.cos(n*e)),a=w*S*r+j*n,o=w*S*j-r*n,s=e=>Math.exp(-w*S*e)*(a*Math.sin(n*e)+o*Math.cos(n*e));else if(1===w){i=e=>u-Math.exp(-S*e)*(j+(b+S*j)*e);let e=b+S*j;s=t=>Math.exp(-S*t)*(S*e*t-b)}else{let e=S*Math.sqrt(w*w-1);i=t=>{let i=Math.exp(-w*S*t),s=Math.min(e*t,300);return u-i*((b+w*S*j)*Math.sinh(s)+e*j*Math.cosh(s))/e};let t=(b+w*S*j)/e,n=w*S*t-j*e,r=w*S*j-t*e;s=t=>{let i=Math.exp(-w*S*t),s=Math.min(e*t,300);return i*(n*Math.sinh(s)+r*Math.cosh(s))}}let T={calculatedDuration:v&&g||null,velocity:e=>e8(s(e)),next:e=>{if(!v&&w<1){let t=Math.exp(-w*S*e),i=Math.sin(n*e),s=Math.cos(n*e),l=u-t*(r*i+j*s);return m.done=Math.abs(e8(t*(a*i+o*s)))<=h&&Math.abs(u-l)<=c,m.value=m.done?u:l,m}let t=i(e);return v?m.done=e>=g:m.done=Math.abs(e8(s(e)))<=h&&Math.abs(u-t)<=c,m.value=m.done?u:t,m},toString:()=>{let e=Math.min(i3(T),2e4),t=td(t=>T.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return T}function ss(e,t,i){let s=Math.max(t-5,0);return tb(i-e(s),t-s)}function sn({keyframes:e,velocity:t=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:c}){let d,u,m=e[0],p={done:!1,value:m},f=i*t,x=m+f,g=void 0===a?x:a(x);g!==x&&(f=g-m);let y=e=>-f*Math.exp(-e/s),v=e=>g+y(e),b=e=>{let t=y(e),i=v(e);p.done=Math.abs(t)<=h,p.value=p.done?g:i},w=e=>{let t;if(t=p.value,void 0!==o&&t<o||void 0!==l&&t>l){var i;d=e,u=si({keyframes:[p.value,(i=p.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:ss(v,e,p.value),damping:n,stiffness:r,restDelta:h,restSpeed:c})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(u||void 0!==d||(t=!0,b(e),w(e)),void 0!==d&&e>=d)?u.next(e-d):(t||b(e),p)}}}si.applyToOptions=e=>{let t=function(e,t=100,i){let s=i({...e,keyframes:[0,t]}),n=Math.min(i3(s),2e4);return{type:"keyframes",ease:e=>s.next(n*e).value/t,duration:n/1e3}}(e,100,si);return e.ease=t.ease,e.duration=e8(t.duration),e.type="keyframes",e};let sr=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function sa(e,t,i,s){return e===t&&i===s?eW:n=>0===n||1===n?n:sr(function(e,t,i,s,n){let r,a,o=0;do(r=sr(a=t+(i-t)/2,s,n)-e)>0?i=a:t=a;while(Math.abs(r)>1e-7&&++o<12)return a}(n,0,1,e,i),t,s)}let so=sa(.42,0,1,1),sl=sa(0,0,.58,1),sh=sa(.42,0,.58,1),sc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,sd=e=>t=>1-e(1-t),su=sa(.33,1.53,.69,.99),sm=sd(su),sp=sc(sm),sf=e=>e>=1?1:(e*=2)<1?.5*sm(e):.5*(2-Math.pow(2,-10*(e-1))),sx=e=>1-Math.sin(Math.acos(e)),sg=sd(sx),sy=sc(sx),sv={linear:eW,easeIn:so,easeInOut:sh,easeOut:sl,cir
9cIn:sx,circInOut:sy,circOut:sg,backIn:sm,backInOut:sp,backOut:su,anticipate:sf},sb=e=>{if(th(e)){eb(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,i,s,n]=e;return sa(t,i,s,n)}return"string"==typeof e?(eb(void 0!==sv[e],`Invalid easing type '${e}'`,"invalid-easing-type"),sv[e]):e},sw=(e,t,i)=>{let s=t-e;return s?(i-e)/s:1};function sj({duration:e=300,keyframes:t,times:i,ease:s="easeInOut"}){var n;let r,a=Array.isArray(s)&&"number"!=typeof s[0]?s.map(sb):sb(s),o={done:!1,value:t[0]},l=function(e,t,{clamp:i=!0,ease:s,mixer:n}={}){let r=e.length;if(eb(r===t.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>t[0];if(2===r&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,i){let s=[],n=i||ez.mix||i1,r=e.length-1;for(let i=0;i<r;i++){let r=n(e[i],e[i+1]);t&&(r=iW(Array.isArray(t)?t[i]||eW:t,r)),s.push(r)}return s}(t,s,n),l=o.length,h=i=>{if(a&&i<e[0])return t[0];let s=0;if(l>1)for(;s<e.length-2&&!(i<e[s+1]);s++);let n=sw(e[s],e[s+1],i);return o[s](n)};return i?t=>h(P(e[0],e[r-1],t)):h}((n=i&&i.length===t.length?i:(!function(e,t){let i=e[e.length-1];for(let s=1;s<=t;s++){let n=sw(0,t,s);e.push(t1(i,1,n))}}(r=[0],t.length-1),r),n.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||sh).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let sS={decay:sn,inertia:sn,tween:sj,keyframes:sj,spring:si};function sN(e){"string"==typeof e.type&&(e.type=sS[e.type])}let sT=e=>e/100;class sk extends tl{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==tv.now()&&this.tick(tv.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;sN(e);let{type:t=sj,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=e,{keyframes:a}=e,o=t||sj;o!==sj&&"number"!=typeof a[0]&&(this.mixKeyframes=iW(sT,i1(a[0],a[1])),a=[0,100]);let l=o({...e,keyframes:a});"mirror"===n&&(this.mirroredGenerator=o({...e,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=i3(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let i,{generator:s,totalDuration:n,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return s.next(0);let{delay:h=0,keyframes:c,repeat:d,repeatType:u,repeatDelay:m,type:p,onUpdate:f,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-h*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=this.currentTime,b=s;if(d){let e=Math.min(this.currentTime,n)/o,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,d+1))%2&&("reverse"===u?(i=1-i,m&&(i-=m/o)):"mirror"===u&&(b=a)),v=P(0,1,i)*o}y?(this.delayState.value=c[0],i=this.delayState):i=b.next(v),r&&!y&&(i.value=r(i.value));let{done:w}=i;y||null===l||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let j=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return j&&p!==sn&&(i.value=to(c,this.options,x,this.speed)),f&&f(i.value),j&&this.finish(),i}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=e8(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return ss(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(tv.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=i2,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),"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(tv.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}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let sP={anticipate:sf,backInOut:sp,circInOut:sy};class sA extends tf{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in sP&&(e.ease=sP[e.ease])}(e),sN(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:s,element:n,...r}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new sk({...r,autoplay:!1}),o=Math.max(10,tv.now()-this.startTime),l=P(0,10,o-10),h=a.sample(o).value,{name:c}=this.options;n&&c&&tt(n,c,h),t.setWithVelocity(a.sample(Math.max(0,o-l)).value,h,l),a.stop()}}let sE=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ee.test(e)||"0"===e)&&!e.startsWith("url("));function sM(e){e.duration=0,e.type="keyframes"}let sC=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,sV=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),sR=ti(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class sD extends tl{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:h,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tv.now();const d={autoplay:e,delay:t,type:i,repeat:s,repeatDelay:n,repeatType:r,name:o,motionValue:l,element:h,...c},u=h?.KeyframeResolver||e2;this.keyframeResolver=new u(a,(e,t,i)=>this.onKeyframesResolved(e,t,d,!i),o,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,s){let n;this.keyframeResolver=void 0;let{name:r,type:a,velocity:o,delay:l,isHandoff:h,onUpdate:c}=i;this.resolvedAt=tv.now();let d=!0;!function(e,t,i,s){let n=e[0];if(null===n)return!1;if("display"===t||"visibility"===t)return!0;let r=e[e.length-1],a=sE(n,t),o=sE(r,t);return ev(a===o,`You are trying to animate ${t} from "${n}" to "${r}". "${a?r:n}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||tp(i))&&s)}(e,r,a,o)&&(d=!1,(ez.instantAnimations||!l)&&c?.(to(e,i,t)),e[0]=e[e.length-1],sM(i),i.repeat=0);let u={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},m=d&&!h&&function(e){let{motionValue:t,name:i,repeatDelay:s,repeatType:n,damping:r,type:a,keyframes:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;
9let{onUpdate:l,transformTemplate:h}=t.owner.getProps();return sR()&&i&&(tx.has(i)||sV.has(i)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&sC.test(e[t]))return!0;return!1}(o))&&("transform"!==i||!h)&&!l&&!s&&"mirror"!==n&&0!==r&&"inertia"!==a}(u),p=u.motionValue?.owner?.current;if(m)try{n=new sA({...u,element:p})}catch{n=new sk(u)}else n=new sk(u);n.finished.then(()=>{this.notifyFinished()}).catch(eW),this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eJ=!0,e1(),e0(),eJ=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let sL={type:"spring",stiffness:500,damping:25,restSpeed:10},sB={type:"keyframes",duration:.8},sF={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sI=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),sO=(e,t,i,s={},n,r)=>a=>{let o=iO(s,e)||{},l=o.delay||s.delay||0,{elapsed:h=0}=s;h-=e8(l);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-h,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:r?void 0:n};!function(e){for(let t in e)if(!sI.has(t))return!0;return!1}(o)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?sB:k.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:sL:sF)(e,c)),c.duration&&(c.duration=e8(c.duration)),c.repeatDelay&&(c.repeatDelay=e8(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(sM(c),0===c.delay&&(d=!0)),(ez.instantAnimations||ez.skipAnimations||n?.shouldSkipAnimations||o.skipAnimations)&&(d=!0,sM(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!r&&void 0!==t.get()){let e=to(c.keyframes,o);if(void 0!==e)return void eH.update(()=>{c.onUpdate(e),c.onComplete()})}return o.isSync?new sk(c):new sD(c)};function s$(e,t,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:r,transitionEnd:a,...o}=t,l=e.getDefaultTransition();r=r?iI(r,l):l;let h=r?.reduceMotion,c=r?.skipAnimations;s&&(r=s);let d=[],u=n&&e.animationState&&e.animationState.getState()[n],m=r?.path;for(let t in m&&m.animateVisualElement(e,o,r,i,d),o){let s=e.getValue(t,e.latestValues[t]??null),n=o[t];if(void 0===n||u&&function({protectedKeys:e,needsAnimating:t},i){let s=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,s}(u,t))continue;let a={delay:i,...iO(r||{},t)};c&&(a.skipAnimations=!0);let l=s.get();if(void 0!==l&&!s.isAnimating()&&!Array.isArray(n)&&n===l&&!a.velocity){eH.update(()=>s.set(n));continue}let m=!1;if(window.MotionHandoffAnimation){let i=e.props[iV];if(i){let e=window.MotionHandoffAnimation(i,t,eH);null!==e&&(a.startTime=e,m=!0)}}iU(e,t);let p=h??e.shouldReduceMotion;s.start(sO(t,s,n,p&&ef.has(t)?{type:!1}:a,e,m));let f=s.animation;f&&d.push(f)}if(a){let t=()=>eH.update(()=>{a&&function(e,t){let{transitionEnd:i={},transition:s={},...n}=iF(e,t)||{};for(let t in n={...n,...i}){var r;let i=i$(r=n[t])?r[r.length-1]||0:r;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,tS(i))}}(e,a)});d.length?Promise.all(d).then(t):t()}return d}function sU(e,t,i,s=0,n=1){let r=Array.from(e).sort((e,t)=>
9e.sortNodePosition(t)).indexOf(t),a=e.size,o=(a-1)*s;return"function"==typeof i?i(r,a):1===n?r*s:o-r*s}function sW(e,t,i={}){let s=iF(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let r=s?()=>Promise.all(s$(e,s,i)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=n;return function(e,t,i=0,s=0,n=0,r=1,a){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(sW(l,t,{...a,delay:i+("function"==typeof s?0:s)+sU(e.variantChildren,l,s,n,r)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,s,r,a,o,i)}:()=>Promise.resolve(),{when:o}=n;if(!o)return Promise.all([r(),a(i.delay)]);{let[e,t]="beforeChildren"===o?[r,a]:[a,r];return e().then(()=>t())}}let sz=tE.length;function sK(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let s=0;s<i;s++)if(t[s]!==e[s])return!1;return!0}let sY=[...tA].reverse(),sH=tA.length;function sX(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function s_(){return{animate:sX(!0),whileInView:sX(),whileHover:sX(),whileTap:sX(),whileDrag:sX(),whileFocus:sX(),exit:sX()}}let sq=0;function sG(e){return[e("x"),e("y")]}function sZ(e,t,i,s={passive:!0}){return e.addEventListener(t,i,s),()=>e.removeEventListener(t,i,s)}let sQ={x:!1,y:!1};function sJ(e){return e.max-e.min}function s0(e,t,i,s=.5){e.origin=s,e.originPoint=t1(t.min,t.max,e.origin),e.scale=sJ(i)/sJ(t),e.translate=t1(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function s1(e,t,i,s){s0(e.x,t.x,i.x,s?s.originX:void 0),s0(e.y,t.y,i.y,s?s.originY:void 0)}function s2(e,t,i,s=0){e.min=(s?t1(i.min,i.max,s):i.min)+t.min,e.max=e.min+sJ(t)}function s3(e,t,i,s=0){let n=s?t1(i.min,i.max,s):i.min;e.min=t.min-n,e.max=e.min+sJ(t)}function s5(e,t,i,s){s3(e.x,t.x,i.x,s?.x),s3(e.y,t.y,i.y,s?.y)}function s4(e){return u(e)&&"ownerSVGElement"in e}function s6(e,t,i){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let s=document;t&&(s=t.current);let n=i?.[e]??s.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(e=>null!=e)}let s8=new WeakMap,s9=(e,t,i)=>(s,n)=>n&&n[0]?n[0][e+"Size"]:s4(s)&&"getBBox"in s?s.getBBox()[t]:s[i],s7=s9("inline","width","offsetWidth"),ne=s9("block","height","offsetHeight");function nt({target:e,borderBoxSize:t}){s8.get(e)?.forEach(i=>{i(e,{get width(){return s7(e,t)},get height(){return ne(e,t)}})})}function ni(e){e.forEach(nt)}let ns=new Set;function nn(e,t){let n;return"function"==typeof e?(ns.add(e),s||(s=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ns.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{ns.delete(e),ns.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(ni)),(n=s6(e)).forEach(e=>{let s=s8.get(e);s||(s=new Set,s8.set(e,s)),s.add(t),i?.observe(e)}),()=>{n.forEach(e=>{let s=s8.get(e);s?.delete(t),s?.size||i?.unobserve(e)})})}let nr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),na=new Set(["INPUT","SELECT","TEXTAREA"]),no=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function nl(e){return{point:{x:e.pageX,y:e.pageY}}}function nh(e,t,i,s){return sZ(e,t,e=>no(e)&&i(e,nl(e)),s)}let nc=({current:e})=>e?e.ownerDocument.defaultView:null,nd=(e,t)=>Math.abs(e-t),nu=new Set(["auto","scroll"]);class nm{constructor(e,t,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=np(this.lastRawMoveEventInfo,this.transformPagePoint));let i=nx(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(e=i.offset,t={x:0,y:0},Math.sqrt(nd(e.x,t.x)**2+nd(e.y,t.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:r}=i,{timestamp:a}=e_;this.history.push({...r,timestamp:a});
9let{onStart:o,onMove:l}=this.handlers;s||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=np(t,this.transformPagePoint),eH.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=nx("pointercancel"===e.type?this.lastMoveEventInfo:np(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,r),s&&s(e,r)},!no(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const o=np(nl(e),this.transformPagePoint),{point:l}=o,{timestamp:h}=e_;this.history=[{...l,timestamp:h}];const{onSessionStart:c}=t;c&&c(e,nx(o,this.history));const d={passive:!0,capture:!0};this.removeListeners=iW(nh(this.contextWindow,"pointermove",this.handlePointerMove,d),nh(this.contextWindow,"pointerup",this.handlePointerUp,d),nh(this.contextWindow,"pointercancel",this.handlePointerUp,d)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(nu.has(e.overflowX)||nu.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let i=e===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},n={x:s.x-t.x,y:s.y-t.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(e,s),eH.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eX(this.updatePoint)}}function np(e,t){return t?{point:t(e.point)}:e}function nf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nx({point:e},t){return{point:e,delta:nf(e,ng(t)),offset:nf(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,i=null,s=ng(e);for(;t>=0&&(i=e[t],!(s.timestamp-i.timestamp>e8(.1)));)t--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&s.timestamp-i.timestamp>2*e8(.1)&&(i=e[1]);let n=(s.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let r={x:(s.x-i.x)/n,y:(s.y-i.y)/n};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(t)}}function ng(e){return e[e.length-1]}function ny(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function nv(e,t){let i=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,s]=[s,i]),{min:i,max:s}}function nb(e,t,i){return{min:nw(e,t),max:nw(e,i)}}function nw(e,t){return"number"==typeof e?e:e[t]||0}let nj=new WeakMap;class nS{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=em(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=e=>{t&&this.snapToCursor(nl(e).point),this.stopAnimation()},r=(e,t)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(sQ[e])return null;else return sQ[e]=!0,()=>{sQ[e]=!1}
9;return sQ.x||sQ.y?null:(sQ.x=sQ.y=!0,()=>{sQ.x=sQ.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),sG(e=>{let t=this.getAxisMotionValue(e).get()||0;if(U.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[e];s&&(t=sJ(s)*(parseFloat(t)/100))}}this.originPoint[e]=t}),n&&eH.update(()=>n(e,t),!1,!0),iU(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(s&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),r&&eH.update(()=>r(e,t),!1,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new nm(e,{onSessionStart:n,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:nc(this.visualElement),element:this.visualElement.current})}stop(e,t){let i=e||this.latestPointerEvent,s=t||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:r}=s;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&eH.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,i){let{drag:s}=this.getProps();if(!i||!nT(e,s,this.currentDirection))return;let n=this.getAxisMotionValue(e),r=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(r=function(e,{min:t,max:i},s){return void 0!==t&&e<t?e=s?t1(t,e,s.min):Math.max(e,t):void 0!==i&&e>i&&(e=s?t1(i,e,s.max):Math.min(e,i)),e}(r,this.constraints[e],this.elastic[e])),n.set(r)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&iD(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:s,right:n}){return{x:ny(e.x,i,n),y:ny(e.y,t,s)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nb(e,"left","right"),y:nb(e,"top","bottom")}}(t),s!==this.constraints&&!iD(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&sG(e=>{var t,s;let n;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=i.layoutBox[e],s=this.constraints[e],n={},void 0!==s.min&&(n.min=s.min-t.min),void 0!==s.max&&(n.max=s.max-t.min),n))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!iD(t))return!1;let s=t.current;eb(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;n.root&&(n.root.scroll=void 0,n.root.updateScroll());let r=function(e,t,i){let s=ic(e,i),{scroll:n}=t;return n&&(ia(s.x,n.offset.x),ia(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),a=(e=n.layout.layoutBox,{x:nv(e.x,r.x),y:nv(e.y,r.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=t8(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(sG(a=>{if(!nT(a,t,this.currentDirection))return;let l=o&&o[a]||{};(!0===r||r===a)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?e[a]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return iU(this.visualElement,e),i.start(sO(e,i,0,t,this.visualElement,!1))}stopAnimation(){sG(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){sG(t=>{let{drag:i}=this.getProps();if(!nT(t,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(t);if(s&&s.layout){let{min:i,max:r}=s.layout.layoutBox[t],a=n.get()||0;n.set(e[t]-t1(i,r,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!iD(t)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};sG(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,n;let r,a,o,l=t.get();s[e]=(i={min:l,max:l},n=this.constraints[e],r=.5,a=sJ(i),(o=sJ(n))>a?r=sw(n.min,n.max-a,i.min):a>o&&(r=sw(i.min,i.max-o,n.min)),P(0,1,r))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),sG
9(t=>{if(!nT(t,e,null))return;let i=this.getAxisMotionValue(t),{min:n,max:r}=this.constraints[t];i.set(t1(n,r,s[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;nj.set(this.visualElement,this);let t=this.visualElement.current,i=nh(t,"pointerdown",e=>{let{drag:i,dragListener:s=!0}=this.getProps(),n=e.target,r=n!==t&&(na.has(n.tagName)||!0===n.isContentEditable);i&&s&&!r&&this.start(e)}),s=()=>{var i,s,n;let r,a,{dragConstraints:o}=this.getProps();iD(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),e||(i=t,s=o.current,r=nn(i,nN(n=()=>this.scalePositionWithinConstraints())),a=nn(s,nN(n)),e=()=>{r(),a()}))},{projection:n}=this.visualElement,r=n.addEventListener("measure",s);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),eH.read(s);let a=sZ(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(sG(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),i(),r(),o&&o(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:a}}}function nN(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function nT(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let nk=e=>(t,i)=>{e&&eH.update(()=>e(t,i),!1,!0)},nP={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var nA=a;let nE=!1;class nM extends nA.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=e;n&&(t.group&&t.group.add(n),i&&i.register&&s&&i.register(n),nE&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nP.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:s,isPresent:n}=this.props,{projection:r}=i;return r&&(r.isPresent=n,e.layoutDependency!==t&&r.setOptions({...r.options,layoutDependency:t}),nE=!0,s||e.layoutDependency!==t||void 0===t||e.isPresent!==n?r.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?r.promote():r.relegate()||eH.postRender(()=>{let e=r.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:i}=e;i&&(i.options.layoutAnchor=t,i.root.didUpdate(),tg.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:s}=e;nE=!0,s&&(s.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nC(e){let[t,i]=w(),s=(0,nA.useContext)(l);return(0,r.jsx)(nM,{...e,layoutGroup:s,switchLayoutGroup:(0,nA.useContext)(iR),isPresent:t,safeToRemove:i})}let nV=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],nR=nV.length,nD=e=>"string"==typeof e?parseFloat(e):e,nL=e=>"number"==typeof e||W.test(e);function nB(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nF=nO(0,.5,sg),nI=nO(.5,.95,eW);function nO(e,t,i){return s=>s<e?0:s>t?1:i(sw(e,t,s))}function n$(e,t){e.min=t.min,e.max=t.max}function nU(e,t){n$(e.x,t.x),n$(e.y,t.y)}function nW(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nz(e,t,i,s,n){return e-=t,e=s+1/i*(e-s),void 0!==n&&(e=s+1/n*(e-s)),e}function nK(e,t,[i,s,n],r,a){!function(e,t=0,i=1,s=.5,n,r=e,a=e){if(U.test(t)&&(t=parseFloat(t),t=t1(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=t1(r.min,r.max,s);e===r&&(o-=t),e.min=nz(e.min,t,i,o,n),e.max=nz(e.max,t,i,o,n)}(e,t[i],t[s],t[n],t.scale,r,a)}let nY=["x","scaleX","originX"],nH=["y","scaleY","originY"];function nX(e,t,i,s){nK(e.x,t,nY,i?i.x:void 0,s?s.x:void 0),nK(e.y,t,nH,i?i.y:void 0,s?s.y:void 0)}function n_(e){return 0===e.translate&&1===e.scale}function nq(e){return n_(e.x)&&n_(e.y)}function nG(e,t){return e.min===t.min&&e.max===t.max}function nZ(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nQ(e,t){return nZ(e.x,t.x)&&nZ(e.y,t.y)}function nJ(e){return sJ(e.x)/sJ(e.y)}function n0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class n1{constructor(){this.members=[]}add(e){e9(this.members,e);for(let t=this.members.length-1;t>=0;t--){let i=this.members[t];if(i===e||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1!==s.isConnected||i.snapshot||(e7(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if(e7(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();let{layoutDependency:s}=i.options,{layoutDependency:n}=e.options;(void 0===s||s!==n)&&(e.resumeFrom=i,t&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root?.isU
9pdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let n2=(e,t)=>e.depth-t.depth;class n3{constructor(){this.children=[],this.isDirty=!1}add(e){e9(this.children,e),this.isDirty=!0}remove(e){e7(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(n2),this.isDirty=!1,this.children.forEach(e)}}let n5=["","X","Y","Z"],n4=0;function n6(e,t,i,s){let{latestValues:n}=t;n[e]&&(i[e]=n[e],t.setStaticValue(e,0),s&&(s[e]=0))}function n8({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(e={},i=t?.()){this.id=n4++,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,this.nodes.forEach(re),this.nodes.forEach(rh),this.nodes.forEach(rc),this.nodes.forEach(rt)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new n3)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new te),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=s4(t)&&!(s4(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),e){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;eH.read(()=>{s=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==s){let t,r;s=e,this.root.updateBlockedByResize=!0,i&&i(),t=tv.now(),r=({timestamp:e})=>{let i=e-t;i>=250&&(eX(r),n(i-250))},eH.setup(r,!0),i=()=>eX(r),nP.hasAnimatedSinceResize&&(nP.hasAnimatedSinceResize=!1,this.nodes.forEach(rl))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||rx,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),l=!this.targetLayout||!nQ(this.targetLayout,s),h=!t&&i;if(this.options.layoutRoot||this.resumeFrom||h||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...iO(r,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,h,t.path)}else t||rl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eX(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.forEac
9h(rd),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let s=i.props[iV];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",eH,!(e||i))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&e(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(rn),this.nodes.forEach(rs);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(rr);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ra),this.nodes.forEach(ro),this.nodes.forEach(n9),this.nodes.forEach(n7)):this.nodes.forEach(rr),this.clearAllSnapshots();let e=tv.now();e_.delta=P(0,1e3/60,e-e_.timestamp),e_.timestamp=e,e_.isProcessing=!0,eq.update.process(e_),eq.preRender.process(e_),eq.render.process(e_),e_.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ri),this.sharedNodes.forEach(ru)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eH.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eH.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||sJ(this.snapshot.measuredBox.x)||sJ(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=em()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=s(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!n)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nq(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;e&&this.instance&&(t||ie(this.latestValues)||r)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),s=this.removeElementScroll(i);return e&&(s=this.removeTransform(s)),rv((t=s).x),rv(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return em();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rw))){let{scroll:e}=this.root;e&&(ia(t.x,e.offset.x),ia(t.y,e.offset.y))}return t}removeElementScroll(e){let t=em();if(nU(t,e),this.scroll?.wasRoot)return t;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:r}=s;s!==this.root&&n&&r.layoutScroll&&(n.wasRoot&&nU(t,e),ia(t.x,n.offset.x),ia(t.y,n.offset.y))}return t}applyTransform(e,t=!1,i){let s=i||em();nU(s,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(ia(s.x,-i.scroll.offset.x),ia(s.y,-i.scroll.offset.y)),ie(i.latestValues)&&ih(s,i.latestValues,i.layout?.layoutBox)}return ie(this.latestValues)&&ih(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(e){let t=em();nU(t,e);for(let e=0;e<this.path.length;e++){let i,s=this.path[e];ie(s.latestValues)&&(s.instance&&(t7(s.latestValues)&&s.updateSnapshot(),nU(i=em(),s.measurePageBox())),nX(t,s.latestValues,s.snapshot?.layoutBox,i))}return ie(this.latestValues)&&nX(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==e_.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
9isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:n}=this.options;if(!this.layout||!(s||n))return;this.resolvedRelativeTargetAt=e_.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=em(),this.targetWithTransforms=em()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l,h;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,s2(a.x,o.x,l.x,h?.x),s2(a.y,o.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):nU(this.target,this.layout.layoutBox),ir(this.target,this.targetDelta)):nU(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||t7(this.parent.latestValues)||it(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,i){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=em(),this.relativeTargetOrigin=em(),s5(this.relativeTargetOrigin,t,i,this.options.layoutAnchor||void 0),nU(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===e_.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;nU(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(e,t,i,s=!1){let n,r,a=i.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){r=(n=i[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(ia(e.x,-n.scroll.offset.x),ia(e.y,-n.scroll.offset.y)),r&&(t.x*=r.x.scale,t.y*=r.y.scale,ir(e,r)),s&&ie(n.latestValues)&&ih(e,n.latestValues,n.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=em());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nW(this.prevProjectionDelta.x,this.projectionDelta.x),nW(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),s1(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&n0(this.projectionDelta.x,this.prevProjectionDelta.x)&&n0(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ed(),this.projectionDelta=ed(),this.projectionDeltaWithTransform=ed()}setAnimationOrigin(e,t=!1,i){let s,n=this.snapshot,r=n?n.latestValues:{},a={...this.latestValues},o=ed();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=em(),h=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),d=!c||c.members.length<=1,u=!!(h&&!d&&!0===this.options.crossfade&&!this.path.some(rf));this.animationProgress=0;let m=i?.interpolateProjection(e);this.mixTargetDelta=t=>{let i=t/1e3,n=m?.(i);if(n?(o.x.translate=n.x,o.x.scale=t1(e.x.scale,1,i),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=n.y,o.y.scale=t1(e.y.scale,1,i),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(rm(o.x,e.x,i),rm(o.y,e.y,i)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,p,f,x,g,y;s5(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,x=this.relativeTargetOrigin,g=l,y=i,rp(f.x,x.x,g.x,y),rp(f.y,x.y,g.y,y),s&&(c=this.relativeTarget,p=s,nG(c.x,p.x)&&nG(c.y,p.y))&&(this.isProjectionDirty=!1),s||(s=em()),nU(s,this.relativeTarget)}h&&(this.animationValues=a,function(e,t,i,s,n,r){n?(e.opacity=t1(0,i.opacity??1,nF(s)),e.opacityExit=t1(t.opacity??1,0,nI(s))):r&&(e.opacity=t1(t.opacity??1,i.opacity??1,s));for(let n=0;n<nR;n++){let r=nV[n],a=nB(t,r),o=nB(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||nL(a)===nL(o)?(e[r]=Math.max(t1(nD(a),nD(o),s),0),(U.test(o)||U.test(a))&&(e[r]+="%")):e[r]=o)}(t.rotate||i.rotate)&&(e.rotate=t1(t.rotate||0,i.rotate||0,s))}(a,r,this.latestValues,i,u,d)),n&&void 0!==n.rotate&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=n.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eX(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eH.update(()=>{var t,i,s;let n;nP.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=tS(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,i=[0,1e3],s={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(n=ep(t)?t:tS(t)).start(sO("",n,i,s)),n.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:s,latestValues:n}=e;if(t&&i&&s){if(this!==e&&this.layout&&s&&rb(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||em();let t=sJ(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let s=sJ(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+s}nU(t,i),ih(t,n),s1(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new n1),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;
9return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let s={};i.z&&n6("z",e,s,this.animationValues);for(let t=0;t<n5.length;t++)n6(`rotate${n5[t]}`,e,s,this.animationValues),n6(`skew${n5[t]}`,e,s,this.animationValues);for(let t in e.render(),s)e.setStaticValue(t,s[t]),this.animationValues&&(this.animationValues[t]=s[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=iN(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=iN(t?.pointerEvents)||""),this.hasProjected&&!ie(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1);return}e.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let r=function(e,t,i){let s="",n=e.x.translate/t.x,r=e.y.translate/t.y,a=i?.z||0;if((n||r||a)&&(s=`translate3d(${n}px, ${r}px, ${a}px) `),(1!==t.x||1!==t.y)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,pathRotation:n,rotateX:r,rotateY:a,skewX:o,skewY:l}=i;e&&(s=`perspective(${e}px) ${s}`),t&&(s+=`rotate(${t}deg) `),n&&(s+=`rotate(${n}deg) `),r&&(s+=`rotateX(${r}deg) `),a&&(s+=`rotateY(${a}deg) `),o&&(s+=`skewX(${o}deg) `),l&&(s+=`skewY(${l}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(s+=`scale(${o}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(r=i(n,r)),e.transform=r;let{x:a,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,s.animationValues?e.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:e.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,t2){if(void 0===n[t])continue;let{correct:i,applyTo:a,isCSSVariable:o}=t2[t],l="none"===r?n[t]:i(n[t],s);if(a){let t=a.length;for(let i=0;i<t;i++)e[a[i]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=s===this?iN(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(rs),this.root.sharedNodes.clear()}}}function n9(e){e.updateLayout()}function n7(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=e.layout,{animationType:n}=e.options,r=t.source!==e.layout.source;if("size"===n)sG(e=>{let s=r?t.measuredBox[e]:t.layoutBox[e],n=sJ(s);s.min=i[e].min,s.max=s.min+n});else if("x"===n||"y"===n){let e="x"===n?"y":"x";
9n$(r?t.measuredBox[e]:t.layoutBox[e],i[e])}else rb(n,t.layoutBox,i)&&sG(s=>{let n=r?t.measuredBox[s]:t.layoutBox[s],a=sJ(i[s]);n.max=n.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[s].max=e.relativeTarget[s].min+a)});let a=ed();s1(a,i,t.layoutBox);let o=ed();r?s1(o,e.applyTransform(s,!0),t.measuredBox):s1(o,i,t.layoutBox);let l=!nq(a),h=!1;if(!e.resumeFrom){let s=e.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let a=e.options.layoutAnchor||void 0,o=em();s5(o,t.layoutBox,n.layoutBox,a);let l=em();s5(l,i,r.layoutBox,a),nQ(o,l)||(h=!0),s.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=o,e.relativeParent=s)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function re(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rt(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ri(e){e.clearSnapshot()}function rs(e){e.clearMeasurements()}function rn(e){e.isLayoutDirty=!0,e.updateLayout()}function rr(e){e.isLayoutDirty=!1}function ra(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function ro(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rh(e){e.resolveTargetDelta()}function rc(e){e.calcProjection()}function rd(e){e.resetSkewAndRotation()}function ru(e){e.removeLeadSnapshot()}function rm(e,t,i){e.translate=t1(t.translate,0,i),e.scale=t1(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function rp(e,t,i,s){e.min=t1(t.min,i.min,s),e.max=t1(t.max,i.max,s)}function rf(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let rx={duration:.45,ease:[.4,0,.1,1]},rg=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ry=rg("applewebkit/")&&!rg("chrome/")?Math.round:eW;function rv(e){e.min=ry(e.min),e.max=ry(e.max)}function rb(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(nJ(t)-nJ(i)))}function rw(e){return e!==e.root&&e.scroll?.wasRoot}let rj=n8({attachResizeListener:(e,t)=>sZ(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rS={current:void 0},rN=n8({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rS.current){let e=new rj({});e.mount(window),e.setOptions({layoutScroll:!0}),rS.current=e}return rS.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function rT(e,t){let i=s6(e),s=new AbortController;return[i,{passive:!0,...t,signal:s.signal},()=>s.abort()]}function rk(e,t,i){let{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&eH.postRender(()=>n(t,nl(t)))}let rP=(e,t)=>!!t&&(e===t||rP(e,t.parentElement)),rA=new WeakSet;function rE(e){return t=>{"Enter"===t.key&&e(t)}}function rM(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function rC(e){return no(e)&&!(sQ.x||sQ.y)}let rV=new WeakSet;function rR(e,t,i){let{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&eH.postRender(()=>n(t,nl(t)))}let rD=new WeakMap,rL=new WeakMap,rB=e=>{let t=rD.get(e.target);t&&t(e)},rF=e=>{e.forEach(rB)},rI={some:0,all:1},rO=function(e,t){if("u"<typeof Proxy)return iL;let i=new Map,s=(i,s)=>iL(i,s,e,t);return new Proxy((e,t)=>s(e,t),{get:(n,r)=>"create"===r?s:(i.has(r)||i.set(r,iL(r,void 0,e,t)),i.get(r))})}({animation:{Feature:class extends iB{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let s;if(e.notify("AnimationStart",t),Array.isArray(t))s=Promise.all(t.map(t=>sW(e,t,i)));else if("string"==typeof t)s=sW(e,t,i);else{let n="function"==typeof t?iF(e,t,i.custom):t;s=Promise.all(s$(e,n,i))}return s.then(()=>
9{e.notify("AnimationComplete",t)})})(e,t,i))),i=s_(),s=!0,n=!1,r=t=>(i,s)=>{let n=iF(e,s,"exit"===t?e.presenceContext?.custom:void 0);if(n){let{transition:e,transitionEnd:t,...s}=n;i={...i,...s,...t}}return i};function a(a){let{props:o}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<sz;e++){let s=tE[e],n=t.props[s];(tP(n)||!1===n)&&(i[s]=n)}return i}(e.parent)||{},h=[],c=new Set,d={},u=1/0;for(let t=0;t<sH;t++){var m,p;let f=sY[t],x=i[f],g=void 0!==o[f]?o[f]:l[f],y=tP(g),v=f===a?x.isActive:null;!1===v&&(u=t);let b=g===l[f]&&g!==o[f]&&y;if(b&&(s||n)&&e.manuallyAnimateOnMount&&(b=!1),x.protectedKeys={...d},!x.isActive&&null===v||!g&&!x.prevProp||tk(g)||"boolean"==typeof g)continue;if("exit"===f&&x.isActive&&!0!==v){x.prevResolvedValues&&(d={...d,...x.prevResolvedValues});continue}let w=(m=x.prevProp,"string"==typeof(p=g)?p!==m:!!Array.isArray(p)&&!sK(p,m)),j=w||f===a&&x.isActive&&!b&&y||t>u&&y,S=!1,N=Array.isArray(g)?g:[g],T=N.reduce(r(f),{});!1===v&&(T={});let{prevResolvedValues:k={}}=x,P={...k,...T},A=t=>{j=!0,c.has(t)&&(S=!0,c.delete(t)),x.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in P){let t=T[e],i=k[e];if(!d.hasOwnProperty(e))(i$(t)&&i$(i)?!sK(t,i)||w:t!==i)?null!=t?A(e):c.add(e):void 0!==t&&c.has(e)?A(e):x.protectedKeys[e]=!0}x.prevProp=g,x.prevResolvedValues=T,x.isActive&&(d={...d,...T}),(s||n)&&e.blockInitialAnimation&&(j=!1);let E=b&&w,M=!E||S;j&&M&&h.push(...N.map(t=>{let i={type:f};if("string"==typeof t&&(s||n)&&!E&&e.manuallyAnimateOnMount&&e.parent){let{parent:s}=e,n=iF(s,t);if(s.enteringChildren&&n){let{delayChildren:t}=n.transition||{};i.delay=sU(s.enteringChildren,e,t)}}return{animation:t,options:i}}))}if(c.size){let t={};if("boolean"!=typeof o.initial){let i=iF(e,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(t.transition=i.transition)}c.forEach(i=>{let s=e.getBaseTarget(i),n=e.getValue(i);n&&(n.liveStyle=!0),t[i]=s??null}),h.push({animation:t})}let f=!!h.length;return s&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),s=!1,n=!1,f?t(h):Promise.resolve()}return{animateChanges:a,setActive:function(t,s){if(i[t].isActive===s)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,s)),i[t].isActive=s;let n=a(t);for(let e in i)i[e].protectedKeys={};return n},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=s_(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tk(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iB{constructor(){super(...arguments),this.id=sq++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;if(e&&!1===i){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let i=iF(this.node,e,t);if(i){let{transition:e,transitionEnd:t,...s}=i;for(let e in s)this.node.getValue(e)?.jump(s[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let s=this.node.animationState.setActive("exit",!e);t&&!e&&s.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends iB{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:r="some",once:a}=i,o={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:rI[r]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=t?i:s;n&&n(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let i=e||document;
9rL.has(i)||rL.set(i,{});let s=rL.get(i),n=JSON.stringify(t);return s[n]||(s[n]=new IntersectionObserver(rF,{root:e,...t})),s[n]}(o),rD.set(e,l),t.observe(e),()=>{rD.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iB{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:i}=this.node.props;this.unmount=function(e,t,i={}){let[s,n,r]=rT(e,i),a=e=>{let s=e.currentTarget;if(!rC(e)||rV.has(e))return;rA.add(s),i.stopPropagation&&rV.add(e);let r=t(s,e),a={...n,capture:!0},o=(e,t)=>{window.removeEventListener("pointerup",l,a),window.removeEventListener("pointercancel",h,a),rA.has(s)&&rA.delete(s),rC(e)&&"function"==typeof r&&r(e,{success:t})},l=e=>{o(e,s===window||s===document||i.useGlobalTarget||rP(s,e.target))},h=e=>{o(e,!1)};window.addEventListener("pointerup",l,a),window.addEventListener("pointercancel",h,a)};return s.forEach(e=>{((i.useGlobalTarget?window:e).addEventListener("pointerdown",a,n),m(e))&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let s=rE(()=>{if(rA.has(i))return;rM(i,"down");let e=rE(()=>{rM(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>rM(i,"cancel"),t)});i.addEventListener("keydown",s,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),t)})(e,n)),nr.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),r}(e,(e,t)=>(rR(this.node,t,"Start"),(e,{success:t})=>rR(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iB{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=iW(sZ(this.node.current,"focus",()=>this.onFocus()),sZ(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iB{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[s,n,r]=rT(e,i);return s.forEach(e=>{let i,s=!1,r=!1,a=t=>{i&&(i(t),i=void 0),e.removeEventListener("pointerleave",l)},o=e=>{s=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),r&&(r=!1,a(e))},l=e=>{if("touch"!==e.pointerType){if(s){r=!0;return}a(e)}};e.addEventListener("pointerenter",s=>{if("touch"===s.pointerType||sQ.x||sQ.y)return;r=!1;let a=t(e,s);"function"==typeof a&&(i=a,e.addEventListener("pointerleave",l,n))},n),e.addEventListener("pointerdown",()=>{s=!0,window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",o,n)},n)}),r}(e,(e,t)=>(rk(this.node,t,"Start"),e=>rk(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends iB{constructor(){super(...arguments),this.removePointerDownListener=eW}onPointerDown(e){this.session=new nm(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nc(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:nk(e),onStart:nk(t),onMove:nk(i),onEnd:(e,t)=>{delete this.session,s&&eH.postRender(()=>s(e,t))}}}mount(){this.removePointerDownListener=nh(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iB{constructor(e){super(e),this.removeGroupControls=eW,this.removeListeners=eW,this.controls=new nS(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eW}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:rN,MeasureLayout:nC},layout:{ProjectionNode:rN,MeasureLayout:nC}},(e,t)=>t.isSVG??im(e)?new t6(t):new id(t,{allowProjection:e!==a.Fragment}));function r$(e,t={}){try{window.gtag?.("event",e,t)}catch{}try{window.parent?.postMessage({source:"otterpos-demo",event:e,...t},"*")}catch{}}function rU({onStart:e}){return(0,r.jsxs)("div",{className:"relative flex h-full w-full flex-col items-center justify-center overflow-hidden px-6 text-center",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute -top-32 left-1/2 h-96 w-96 -translate-x-1/2 roun
9ded-full bg-otter/10 blur-3xl"}),(0,r.jsx)(rO.img,{src:"/otter-wordmark.svg",alt:"ì¤í°",initial:{scale:.6,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",stiffness:200,damping:16,delay:.1},className:"mb-6 h-9 w-auto"}),(0,r.jsx)(rO.span,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.25},className:"mb-3 rounded-full border border-otter/30 bg-otter-soft px-3 py-1 text-xs font-bold text-otter-strong",children:"ì¤í°í¬ì¤ ì²´íí"}),(0,r.jsxs)(rO.h1,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},transition:{delay:.35},className:"break-keep text-balance text-[26px] font-black leading-snug text-foreground sm:text-4xl",children:["ì°ë¦¬ ê°ê²ë¡ ì§ì ",(0,r.jsx)("br",{className:"hidden sm:block"})," ì¤í°í¬ì¤ë¥¼ ê²½íí´ë³´ìê² ì´ì?"]}),(0,r.jsx)(rO.p,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},transition:{delay:.45},className:"mt-4 max-w-md break-keep text-balance text-sm leading-relaxed text-muted",children:"ëì¸ ê°ì§ë§ ìë ¤ì£¼ìë©´, ì¬ì¥ë ê°ê²ì ë§ì¶ 주문 íë©´ì ë°ë¡ ë³´ì¬ë릴ê²ì. 1ë¶ì´ë©´ ì¶©ë¶í´ì."}),(0,r.jsx)(rO.button,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.55},onClick:e,whileHover:{scale:1.03},whileTap:{scale:.97},className:"mt-8 rounded-2xl bg-otter px-8 py-4 text-base font-extrabold text-white shadow-lg shadow-otter/25 transition-colors hover:bg-otter-strong",children:"ë°ëª¨ ììí기 â"})]})}let rW={ëê¹ì¤:[{name:"ë±ì¬ ëê¹ì¤",price:9e3},{name:"ìì¬ ëê¹ì¤",price:9500},{name:"ì¹ì¦ ëê¹ì¤",price:10500},{name:"ìì ê¹ì¤",price:9500},{name:"ëê¹ì¤ ì ì",price:12e3}],ì¹í¨:[{name:"íë¼ì´ë ì¹í¨",price:18e3},{name:"ìë
ì¹í¨",price:19e3},{name:"ê°ì¥ ì¹í¨",price:19e3},{name:"ë°ë° ì¹í¨",price:19e3},{name:"ë¿ë§í´ ì¹í¨",price:2e4}],íì:[{name:"ê¹ì¹ì°ê°",price:9e3},{name:"ëì¥ì°ê°",price:9e3},{name:"ì ì¡ë³¶ì",price:1e4},{name:"ë¶ê³ 기 ì ì",price:12e3},{name:"ë¹ë¹ë°¥",price:9500}],ì¤ì:[{name:"ì§ì¥ë©´",price:7e3},{name:"짬ë½",price:8e3},{name:"íìì¡(ì)",price:16e3},{name:"ë³¶ìë°¥",price:8e3},{name:"ì ì°ì¬",price:22e3}],ì¼ì:[{name:"ì°ì´ ì´ë°¥(10pc)",price:16e3},{name:"모ë ì´ë°¥",price:18e3},{name:"ì¬ì¼ë",price:13e3},{name:"ì°ë",price:8e3},{name:"ê·ë",price:11e3}],ë¶ì:[{name:"ë¡ë³¶ì´",price:5e3},{name:"ì¹ì¦ ë¡ë³¶ì´",price:6500},{name:"ìë",price:5e3},{name:"íê¹ ëª¨ë ",price:5500},{name:"ë¼ë³¶ì´",price:6e3}],í¼ì:[{name:"íí¼ë¡ë í¼ì",price:19900},{name:"í¬í
ì´í í¼ì",price:21900},{name:"ë¶ê³ 기 í¼ì",price:22900},{name:"ê³ ë¥´ê³¤ì¡¸ë¼ í¼ì",price:23900},{name:"콤ë¹ë¤ì´ì
í¼ì",price:20900}],ë²ê±°:[{name:"ì¹ì¦ë²ê±°",price:6500},{name:"ë² ì´ì»¨ë²ê±°",price:7900},{name:"ëë¸í¨í°ë²ê±°",price:9900},{name:"ì¹í¨ë²ê±°",price:7500},{name:"ê°ìíê¹",price:3500}],족ë°:[{name:"족ë°(ì¤)",price:28e3},{name:"ë³´ì(ì¤)",price:27e3},{name:"ë§êµì",price:8e3},{name:"ìë°êµì",price:9e3},{name:"ì¡±ë° ë³´ì ì¸í¸",price:35e3}],ì¹´í:[{name:"ìë©ë¦¬ì¹´ë
¸",price:4e3},{name:"ì¹´íë¼ë¼",price:4800},{name:"ë°ëë¼ë¼ë¼",price:5300},{name:"ì¹ì¦ì¼ì´í¬",price:6500},{name:"í¬ë¡í",price:5500}],ë§ë¼í:[{name:"ë§ë¼í",price:11e3},{name:"ë§ë¼ì¹ê¶",price:16e3},{name:"ê¿ë°ë¡ì°",price:13e3},{name:"ë©ë³´ì¤",price:9500},{name:"í ë§í ë§ë¼í",price:12e3}],ìë¬ë:[{name:"ëê°ì´ì´ ìë¬ë",price:8900},{name:"리ì½íì¹ì¦ ìë¬ë",price:9500},{name:"ìì ìë¬ë",price:9e3},{name:"ì°ì´ í¬ì¼ë³¼",price:11500},{name:"ë¨í¸ë° ìë¬ë",price:8500}],ëìë½:[{name:"ì ì¡ ëìë½",price:6500},{name:"ì¹í¨ë§ì ëìë½",price:5500},{name:"ëê¹ì¤ ëìë½",price:6e3},{name:"ë¶ê³ 기 ëìë½",price:6500},{name:"ìì°íê¹ ëìë½",price:7e3}],ìì:[{name:"í ë§í íì¤í",price:12e3},{name:"í¬ë¦¼ íì¤í",price:13e3},{name:"ë¡ì íì¤í",price:13500},{name:"ì리ì¤ì¬ë¦¬ì¤",price:11500},{name:"ìì¬ ì¤í
ì´í¬",price:24e3}],ê³ ê¸°:[{name:"ì¼ê²¹ì´",price:14e3},{name:"목ì´",price:14e3},{name:"ìë
ê°ë¹",price:16e3},{name:"íì ì´",price:16e3},{name:"ì°¨ëë°ì´",price:15e3}],ì°ë:[{name:"ìëì°ë(ì¤)",price:24e3},{name:"ìëì°ë(ë)",price:3e4},{name:"ë§ëì°ë",price:26e3},{name:"매ì´ì°ë",price:26e3},{name:"ì¹ì¦ì°ë",price:28e3}],ëê°ë¹:[{name:"ì¶ì²ëê°ë¹",price:13e3},{name:"ì¹ì¦ëê°ë¹",price:15e3},{name:"ëê°ë¹ ë§êµìì¸í¸",price:18e3},{name:"ì² í ë³¶ìë°¥",price:8e3},{name:"ë목ì´êµ¬ì´",price:14e3}],곱창:[{name:"모ë¬ê³±ì°½",price:28e3},{name:"ë창구ì´",price:26e3},{name:"ë§ì°½êµ¬ì´",price:18e3},{name:"곱창ì 골(2ì¸)",price:3e4},{name:"ì¼ì±ê³±ì°½",price:22e3}],ë¶ëì°ê°:[{name:"ë¶ëì°ê°",price:9e3},{name:"ì¹ì¦ ë¶ëì°ê°",price:11e3},{name:"ë¶ëì 골(2ì¸)",price:22e3},{name:"íë¬ë¿ ë¶ëì°ê°",price:12e3},{name:"ë¼ë©´ì¬ë¦¬ ë¶ëì°ê°",price:1e4}],í:[{name:"모ë í(ì)",price:39e3},{name:"ê´ì´í",price:35e3},{name:"ì°ì´í",price:25e3},{name:"물í",price:14e3},{name:"매ì´í",price:12e3}],ììì:[{name:"ìê³ ê¸° ìêµì",price:9500},{name:"ë¶ì§",price:11e3},{name:"ííì´",price:11500},{name:"ì§ì¡°(ì¤íë§ë¡¤)",price:6e3},{name:"ìì° ìêµì",price:1e4}],ë©ì칸:[{name:"ë¶ë¦¬ë",price:9500},{name:"íì½(3pc)",price:9e3},{name:"ì¼ì¬ëì",price:1e4},{name:"ëì´",price:8500},{name:"ë¶ë¦¬ëë³¼",price:10500}],죽:[{name:"ì 복죽",price:12e3},{name:"ì¼ì±ì£½",price:8e3},{name:"ìê³ ê¸°ì£½",price:9e3},{name:"ì°¸ì¹ì£½",price:8500},{name:"ë¨í¸ë°ì£½",price:8500}],ê¹ë°¥:[{name:"ê¹ë°¥",price:3500},{name:"ì°¸ì¹ê¹ë°¥",price:4500},{name:"ì¹ì¦ê¹ë°¥",price:4e3},{name:"ë¼ë©´",price:4e3},{name:"ì ì¡ë®ë°¥",price:7e3}],ë² ì´ì»¤ë¦¬:[{name:"ìê¸ë¹µ",price:3500},{name:"í¬ë£¨ìì",price:4e3},{name:"íëìì",price:3e3},{name:"ì¡°ê°ì¼ì´í¬",price:6500},{name:"ìë¹µ",price:5e3}],ì¤ë¸ì¤ë¸:[{name:"ìê³ ê¸° ì¤ë¸ì¤ë¸",price:24e3},{name:"í´ë¬¼ ì¤ë¸ì¤ë¸",price:27e3},{name:"ìë¨ì ì¸í¸",price:18e3},{name:"ë²ì¯ì 골",price:2e4},{name:"모ë ì¤ë¸(2ì¸)",price:3e4}]}
9,rz={ëê°ì¤:"ëê¹ì¤",ì¹í¨ì§:"ì¹í¨",ë°±ë°:"íì",êµë°¥:"íì",ì¤êµì§:"ì¤ì",ì¤ì:"ì¼ì",ì´ë°¥:"ì¼ì",ë¡ë³¶ì´:"ë¶ì",íë²ê±°:"ë²ê±°",ë³´ì:"족ë°",ëì í¸:"ì¹´í",커í¼:"ì¹´í",ë§ë¼:"ë§ë¼í",ë§ë¼ì¹ê¶:"ë§ë¼í",íí쿵í¸:"ë§ë¼í",í¬ì¼:"ìë¬ë",í¬ì¼ë³¼:"ìë¬ë",ìë¬ë:"ìë¬ë",íì¥:"ëìë½",ëìë½ì§:"ëìë½",íì¤í:"ìì",ì¤íê²í°:"ìì",ì´í리ì:"ìì",ì¤í
ì´í¬:"ìì",리조ë:"ìì",ì¼ê²¹ì´:"ê³ ê¸°",ê³ ê¹ì§:"ê³ ê¸°",ê³ ê¸°ì§:"ê³ ê¸°",구ì´:"ê³ ê¸°",ê°ë¹:"ê³ ê¸°",ìëì°ë:"ì°ë",ì¶ì²ëê°ë¹:"ëê°ë¹",ë§ì°½:"곱창",ëì°½:"곱창",ë¶ë:"ë¶ëì°ê°",íì§:"í",물í:"í",ì¬ì미:"í",모ë¬í:"í",ìêµì:"ììì",ë² í¸ë¨:"ììì",ííì´:"ììì",ë¶ì§:"ììì",íêµ:"ììì",íì½:"ë©ì칸",ë¶ë¦¬ë:"ë©ì칸",ë©ìì½:"ë©ì칸",죽ì§:"죽",ê¹ë°¥ì²êµ:"ê¹ë°¥",ê¹ë°¥ì§:"ê¹ë°¥",ë¹µ:"ë² ì´ì»¤ë¦¬",ì ê³¼:"ë² ì´ì»¤ë¦¬",ë² ì´ì»¤ë¦¬ì¹´í:"ë² ì´ì»¤ë¦¬",ì¤ë¸:"ì¤ë¸ì¤ë¸",ìë¨ì:"ì¤ë¸ì¤ë¸"};function rK({onComplete:e}){let[t,i]=(0,a.useState)("service"),[s,n]=(0,a.useState)(null),[o,l]=(0,a.useState)("postpay"),[h,c]=(0,a.useState)(""),[d,u]=(0,a.useState)([]);function m(e){n(e),setTimeout(()=>i("hall_delivery"===e?"payment":"category"),250)}function p(e){l(e),setTimeout(()=>i("category"),250)}let f="hall_delivery"===s?3:2;return(0,r.jsx)("div",{className:"relative flex h-full w-full flex-col items-center justify-center px-6",children:(0,r.jsxs)(N,{mode:"wait",children:["service"===t&&(0,r.jsxs)(rO.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:-16},className:"w-full max-w-lg text-center",children:[(0,r.jsx)(rY,{n:1,total:f}),(0,r.jsx)("h2",{className:"mt-3 break-keep text-balance text-2xl font-black text-foreground sm:text-3xl",children:"ì¬ì¥ë ììì ì ì´ë¤ ííë¡ ì´ìíì¸ì?"}),(0,r.jsxs)("div",{className:"mt-8 grid gap-3 sm:grid-cols-2",children:[(0,r.jsx)(rH,{emoji:"ð½ï¸",title:"í + ë°°ë¬",desc:"ë§¤ì¥ ìì¬ì ë°°ë¬ì í¨ê» ì´ìí´ì",selected:"hall_delivery"===s,onClick:()=>m("hall_delivery")}),(0,r.jsx)(rH,{emoji:"ðµ",title:"ë°°ë¬ë§",desc:"ë°°ë¬ ì 문ì¼ë¡ ì´ìí´ì",selected:"delivery_only"===s,onClick:()=>m("delivery_only")})]})]},"service"),"payment"===t&&(0,r.jsxs)(rO.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:-16},className:"w-full max-w-lg text-center",children:[(0,r.jsx)(rY,{n:2,total:3}),(0,r.jsx)("h2",{className:"mt-3 break-keep text-balance text-2xl font-black text-foreground sm:text-3xl",children:"ê²°ì ë ì¸ì ë°ì¼ì¸ì?"}),(0,r.jsx)("p",{className:"mt-3 text-sm text-muted",children:"ë§¤ì¥ ì´ì ë°©ìì ë§ì¶° 주문·결ì íë¦ì ë³´ì¬ë릴ê²ì."}),(0,r.jsxs)("div",{className:"mt-8 grid gap-3 sm:grid-cols-2",children:[(0,r.jsx)(rH,{emoji:"â",title:"ì ê²°ì ",desc:"주문í ë 미리 ê²°ì (ì¹´íÂ·ë² ì´ì»¤ë¦¬ ë±)",selected:"prepay"===o,onClick:()=>p("prepay")}),(0,r.jsx)(rH,{emoji:"ð½ï¸",title:"íê²°ì ",desc:"ìì¬ í ê²°ì (ì¼ë° ììì )",selected:"postpay"===o,onClick:()=>p("postpay")})]})]},"payment"),"category"===t&&(0,r.jsxs)(rO.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:-16},className:"w-full max-w-lg text-center",children:[(0,r.jsx)(rY,{n:f,total:f}),(0,r.jsx)("h2",{className:"mt-3 break-keep text-balance text-2xl font-black text-foreground sm:text-3xl",children:"ì´ë¤ ììì íë ê°ê²ì¸ê°ì?"}),(0,r.jsx)("p",{className:"mt-3 text-sm text-muted",children:"ë¶ë¥ë¥¼ ì ì´ì£¼ìë©´ ëí ë©ë´ë¥¼ ë§ë¤ì´ ëë ¤ì. (ì: ëê¹ì¤, ì¹í¨, íìâ¦)"}),(0,r.jsxs)("form",{onSubmit:t=>{t.preventDefault(),function(){let t=h.trim();if(!t||!s)return;i("generating");let n=function(e){let t=e.trim(),i=rz[t]??t;if(rW[i])return rW[i];for(let e of Object.keys(rW))if(t.includes(e))return rW[e];for(let e of Object.keys(rz))if(t.includes(e))return rW[rz[e]];let s=t||"ì°ë¦¬ì§";return[{name:`${s} 기본`,price:9e3},{name:`${s} ì¤íì
`,price:11e3},{name:`${s} ì¸í¸`,price:13e3},{name:`${s} 곱빼기`,price:1e4},{name:`${s} ì ì`,price:12e3}]}(t);u(n),setTimeout(()=>e(s,o,t,n),n.length?2600:800)}()},className:"mt-8",children:[(0,r.jsx)("input",{autoFocus:!0,value:h,onChange:e=>c(e.target.value),placeholder:"ì) ëê¹ì¤",maxLength:20,className:"w-full rounded-2xl border border-border bg-surface px-5 py-4 text-center text-lg font-bold text-foreground outline-none ring-otter/40 transition placeholder:text-muted/60 focus:border-otter focus:ring-4"}),(0,r.jsx)("button",{type:"submit",disabled:!h.trim(),className:"mt-4 w-full rounded-2xl bg-otter py-4 text-base font-extrabold text-white transition-colors hover:bg-otter-strong disabled:cursor-not-allowed disabled:opacity-40",children:"ë©ë´ ë§ë¤ê¸° â"})]})]},"category"),"generating"===t&&(0,r.jsx)(rX,{category:h,menus:d},"generating")]})})}function rY({n:e,total:t}){return(0,r.jsxs)("span",{className:"rounded-full border border-border bg-surface px-3 py-1 text-xs font-bold text-otter",children:["ì§ë¬¸ ",e," / ",t]})}function rH({emoji:e,title:t,desc:i,selected:s,onClick:n}){return(0,r.jsxs)(rO.button,{whileHover:{scale:1.03},whileTap:{scale:.97},onClick:n,className:`rounded-2xl border-2 bg-surface p-5 text-left transition-colors ${s?"border-otter bg-otter-soft":"border-border hover:border-otter/50"}`,children:[(0,r.jsx)("div",{className:"text-3xl",children:e}),(0,r.jsx)("div",{className:"mt-3 text-lg font-extrabold text-foreground",children:t}),(0,r.jsx)("div",{className:"mt-1 text-sm text-muted",children:i})]})}function rX({category:e,menus:t}){return(0,r.jsxs)(rO.div,{initial:{opacity:0,y:16}
9,animate:{opacity:1,y:0},exit:{opacity:0,y:-16},className:"w-full max-w-md text-center",children:[(0,r.jsx)(rO.div,{animate:{rotate:[0,-8,8,-8,0]},transition:{repeat:1/0,duration:1.6},className:"mx-auto mb-5 grid h-16 w-16 place-items-center rounded-2xl bg-otter text-4xl",children:"ð¦¦"}),(0,r.jsxs)("h2",{className:"break-keep text-balance text-xl font-black text-foreground",children:["â",e,"â ë©ë´ë¥¼ ì¤ë¹íê³ ìì´ìâ¦"]}),(0,r.jsxs)("div",{className:"mt-6 space-y-2 text-left",children:[(0,r.jsx)(N,{children:t.map((e,t)=>(0,r.jsxs)(rO.div,{initial:{opacity:0,x:-16},animate:{opacity:1,x:0},transition:{delay:.35*t},className:"flex items-center justify-between rounded-xl border border-border bg-surface px-4 py-3",children:[(0,r.jsx)("span",{className:"font-bold text-foreground",children:e.name}),(0,r.jsxs)("span",{className:"tabular-nums text-otter",children:[e.price.toLocaleString("ko-KR"),"ì"]})]},e.name+t))}),!t.length&&(0,r.jsx)("div",{className:"flex justify-center gap-1.5 py-6",children:[0,1,2].map(e=>(0,r.jsx)(rO.span,{animate:{y:[0,-8,0]},transition:{repeat:1/0,duration:.7,delay:.15*e},className:"h-2.5 w-2.5 rounded-full bg-otter"},e))})]})]},"generating")}function r_({active:e,storeName:t,time:i="ì¤ì 10:49"}){return(0,r.jsxs)("header",{className:"flex items-center justify-between border-b border-slate-200 bg-white px-4 py-2.5",children:[(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5 sm:gap-3",children:[(0,r.jsx)("svg",{className:"shrink-0",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#334155",strokeWidth:"2",strokeLinecap:"round",children:(0,r.jsx)("path",{d:"M3 6h18M3 12h18M3 18h18"})}),(0,r.jsx)("span",{className:"shrink-0 whitespace-nowrap text-lg font-extrabold text-slate-800",children:"주문"}),t&&(0,r.jsxs)("span",{className:"flex min-w-0 items-center gap-1 text-sm font-medium text-slate-500",children:[(0,r.jsx)("span",{className:"truncate",children:t}),(0,r.jsx)("svg",{className:"shrink-0",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:(0,r.jsx)("path",{d:"m6 9 6 6 6-6"})})]})]}),(0,r.jsx)("div",{className:"flex shrink-0 items-center gap-1 text-[13px]",children:["주문ì ì²´","ë´ì íí©","ë´ì 주문"].map(t=>(0,r.jsx)("span",{className:t===e?"whitespace-nowrap rounded-md bg-slate-800 px-3.5 py-1.5 font-bold text-white":"hidden whitespace-nowrap px-3.5 py-1.5 font-medium text-slate-400 md:inline-block",children:t},t))}),(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("span",{className:"hidden text-xs text-slate-400 sm:inline",children:i}),(0,r.jsxs)("div",{className:"hidden items-center gap-3.5 text-[10px] text-slate-500 sm:flex",children:[(0,r.jsx)(rq,{label:"매ì¥ê´ë¦¬",tint:"#2F6FED",children:(0,r.jsx)(rZ,{})}),(0,r.jsx)(rq,{label:"주문ìì±",tint:"#5B6470",children:(0,r.jsx)(rQ,{})}),(0,r.jsx)(rq,{label:"ì í주문",tint:"#5B6470",children:(0,r.jsx)(rJ,{})}),(0,r.jsx)(rq,{label:"ë보기",tint:"#5B6470",children:(0,r.jsx)(r0,{})})]})]})]})}function rq({label:e,tint:t,children:i}){return(0,r.jsxs)("div",{className:"flex w-9 flex-col items-center gap-0.5",children:[(0,r.jsx)("span",{style:{color:t},children:i}),(0,r.jsx)("span",{children:e})]})}let rG={fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round"};function rZ(){return(0,r.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",...rG,children:(0,r.jsx)("path",{d:"M3 9l1.5-4.5h15L21 9M4 9v10h16V9M4 9h16M9 19v-5h6v5"})})}function rQ(){return(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",...rG,children:[(0,r.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4"}),(0,r.jsx)("path",{d:"M12 8v8M8 12h8"})]})}function rJ(){return(0,r.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",...rG,children:(0,r.jsx)("path",{d:"M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3 19.5 19.5 0 0 1-6-6 19.8 19.8 0 0 1-3-8.6A2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z"})})}function r0(){return(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"
9currentColor",children:[(0,r.jsx)("circle",{cx:"12",cy:"5",r:"1.6"}),(0,r.jsx)("circle",{cx:"12",cy:"12",r:"1.6"}),(0,r.jsx)("circle",{cx:"12",cy:"19",r:"1.6"})]})}function r1({text:e,align:t="left"}){let i="right"===t;return(0,r.jsxs)("div",{className:`pointer-events-none absolute z-30 flex items-end gap-2.5 sm:gap-3 ${i?"bottom-[68px] right-4 flex-row-reverse sm:bottom-[68px] sm:right-5":"bottom-4 left-4 sm:bottom-5 sm:left-5"}`,children:[(0,r.jsx)(rO.div,{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",stiffness:260,damping:18},className:"grid h-11 w-11 shrink-0 place-items-center rounded-full bg-white text-2xl shadow-md ring-2 ring-otter/25 sm:h-14 sm:w-14 sm:text-3xl",children:"ð¦¦"}),(0,r.jsx)(N,{mode:"wait",children:e&&(0,r.jsxs)(rO.div,{initial:{opacity:0,y:12,scale:.92},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-8,scale:.96},transition:{type:"spring",stiffness:300,damping:22},className:`relative mb-1.5 max-w-[78vw] rounded-2xl bg-otter px-4 py-2.5 text-[13px] font-bold leading-snug text-white shadow-lg shadow-otter/30 sm:mb-2 sm:max-w-xs sm:text-sm ${i?"rounded-br-sm":"rounded-bl-sm"}`,children:[(0,r.jsx)("span",{className:`absolute bottom-2 h-3 w-3 rotate-45 bg-otter ${i?"-right-1.5":"-left-1.5"}`}),e]},e)})]})}let r2=["#F4731F","#34A853","#2F6FED","#E5337E","#8B3FE8"];function r3({data:e,mode:t,handoff:i=!0,speed:s=1,onDone:n}){let o="prepay"===t,l=e.menus.slice(0,5),[h,c]=(0,a.useState)(o?"order":"map"),[d,u]=(0,a.useState)(null),[m,p]=(0,a.useState)([]),[f,x]=(0,a.useState)(null),[g,y]=(0,a.useState)(!1),[v,b]=(0,a.useState)(!1),[w,j]=(0,a.useState)(!1),[S,T]=(0,a.useState)(!1),[k,P]=(0,a.useState)(null),A=m.reduce((e,t)=>e+t.price*t.qty,0),E=m.reduce((e,t)=>e+t.qty,0),M=(0,a.useRef)(s);return M.current=s,(0,a.useEffect)(()=>{let e=!1,t=e=>new Promise(t=>setTimeout(t,e/M.current)),s=e=>p(t=>{let i=t.findIndex(t=>t.name===e.name);if(i>=0){let e=[...t];return e[i]={...e[i],qty:e[i].qty+1},e}return[...t,{...e,qty:1}]});return async function(){if(o){if(await t(700),P("ì¹´íì²ë¼ ì ê²°ì 매ì¥ì 주문과 ëìì ê²°ì í´ì â"),await t(1700),e)return;P(null),await t(300)}else{if(await t(700),P("ë§¤ì¥ í 주문ë ê°ì POSìì ë°ìì ð½ï¸"),await t(1500),e||(u(1),await t(950),e))return;u(null),P(null),c("order"),await t(850)}for(let i of[l[1],l[2],l[0]].filter(Boolean)){if(e)return;s(i),x(i.name),await t(640),x(null),await t(120)}await t(600),e||(y(!0),await t(1400),e||(y(!1),c("pay"),await t(800),P(o?"주문 ì¦ì ì¹´ë ê²°ì â í POSìì í ë²ì ð³":"ì¹´ë·íê¸Â·ë¶í ê²°ì ·ëì¹íì´ ëª¨ë ì§ìí´ì ð³"),b(!0),await t(1600),e||(b(!1),j(!0),await t(1e3),!e&&(P(null),i?(T(!0),await t(1700)):await t(500),e||n()))))}(),()=>{e=!0}},[]),(0,r.jsxs)("div",{className:"relative flex h-full w-full flex-col bg-slate-50 text-slate-900",children:["pay"!==h&&(0,r.jsx)(r_,{active:"ë´ì 주문",storeName:e.storeName}),"map"===h&&(0,r.jsx)(r5,{menus:l,pulse:d}),"order"===h&&(0,r.jsx)(r6,{prepay:o,menus:l,cart:m,count:E,total:A,justAdded:f,payPulse:g}),"pay"===h&&(0,r.jsx)(r9,{cart:m,count:E,total:A,cardPulse:v,completing:w}),(0,r.jsx)(N,{children:S&&(0,r.jsx)(rO.div,{initial:{opacity:0}
9,animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 z-50 flex items-center justify-center bg-slate-900/45 px-6 backdrop-blur-sm",children:(0,r.jsxs)(rO.div,{initial:{opacity:0,y:18,scale:.92},animate:{opacity:1,y:0,scale:1},transition:{type:"spring",stiffness:280,damping:22},className:"flex items-center gap-4 rounded-2xl bg-otter px-7 py-5 text-white shadow-2xl shadow-otter/40",children:[(0,r.jsx)("span",{className:"text-3xl",children:"ðµ"}),(0,r.jsxs)("div",{className:"text-left",children:[(0,r.jsx)("div",{className:"text-base font-extrabold sm:text-lg",children:"ë°°ë¬ ì£¼ë¬¸ ê´ë¦¬ë¡ ì´ë"}),(0,r.jsx)("div",{className:"text-xs text-white/80 sm:text-sm",children:"ë§¤ì¥ ê²°ì ìë£ Â· ë°°ë¬ì± 주문ì íì¸í ê²ì"})]})]})},"handoff")}),(0,r.jsx)(r1,{text:k,align:"right"})]})}function r5({menus:e,pulse:t}){let i=e[0];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(r4,{}),(0,r.jsx)("div",{className:"no-scrollbar flex-1 overflow-y-auto p-4",children:(0,r.jsx)("div",{className:"grid grid-cols-3 gap-3",children:[1,2,3,4,5,6].map(e=>{let s=3===e,n=t===e;return(0,r.jsx)(rO.div,{animate:n?{scale:[1,1.03,1]}:{},transition:{duration:.6,repeat:n?1/0:0},className:`relative flex h-32 flex-col rounded-lg border p-3 sm:h-36 ${s?"border-slate-800 bg-[#1f2937] text-white":"border-slate-200 bg-white"} ${n?"ring-4 ring-otter/30":""}`,children:s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex items-start justify-between",children:[(0,r.jsx)("span",{className:"text-base font-bold",children:"3"}),(0,r.jsx)("span",{className:"text-[11px] text-white/60",children:"00:00"})]}),(0,r.jsx)("div",{className:"mt-2 line-clamp-2 text-[12px] leading-snug text-white/90",children:i?.name??"주문"}),(0,r.jsxs)("div",{className:"mt-auto flex items-end justify-between",children:[(0,r.jsx)("span",{className:"text-[11px] text-white/60",children:"1"}),(0,r.jsxs)("span",{className:"text-sm font-bold tabular-nums",children:["â©",(i?.price??0).toLocaleString("ko-KR")]})]})]}):(0,r.jsx)("span",{className:"text-base font-bold text-slate-400",children:e})},e)})})})]})}function r4(){return(0,r.jsxs)("div",{className:"flex items-center justify-between border-b border-slate-200 bg-white px-4 py-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4 text-[13px]",children:[(0,r.jsxs)("span",{className:"relative font-bold text-slate-800",children:["기본공ê°",(0,r.jsx)("span",{className:"absolute -bottom-2 left-0 h-0.5 w-full rounded bg-[#F15A29]"})]}),(0,r.jsx)("span",{className:"font-medium text-slate-400",children:"기본공ê°2"}),(0,r.jsx)("span",{className:"font-medium text-slate-400",children:"기본공ê°3"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 text-[12px] text-slate-500",children:[(0,r.jsx)("span",{className:"grid h-7 w-7 place-items-center rounded border border-slate-200",children:"â¹"}),(0,r.jsx)("span",{className:"grid h-7 w-7 place-items-center rounded border border-slate-200",children:"âº"}),(0,r.jsx)("span",{className:"rounded border border-slate-200 px-3 py-1.5 font-medium",children:"ê²°ì ë´ì"}),(0,r.jsx)("span",{className:"rounded border border-slate-200 px-3 py-1.5 font-medium",children:"ëíµì´ê¸°"}),(0,r.jsx)("span",{className:"grid h-7 w-7 place-items-center rounded border border-slate-200",children:"â"})]})]})}function r6({prepay:e,menus:t,cart:i,count:s,total:n,justAdded:a,payPulse:o}){return(0,r.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,r.jsxs)("div",{className:"flex min-h-0 flex-1",children:[(0,r.jsxs)("div",{className:"hidden w-[260px] shrink-0 flex-col border-r border-slate-200 bg-white md:flex",children:[e?(0,r.jsxs)("div",{className:"flex items-center gap-1 border-b border-slate-100 p-2",children:[(0,r.jsx)("span",{className:"flex-1 rounded-lg bg-otter-soft py-2 text-center text-sm font-bold text-otter-strong",children:"ë´ì "}),(0,r.jsx)("span",{className:"flex-1 rounded-lg py-2 text-center text-sm font-medium text-slate-400",children:"í¬ì¥"})]}):(0,r.jsxs)("div",{className:"flex items-center justify-between border-b border-slate-100 px-3 py-2.5",children:[(0,r.jsxs)("span",{className:"text-sm font-bold text-slate-800",children:["ê¸°ë³¸ê³µê° - ",1]}),(0,r.jsxs)("span",{className:"flex items-center gap-2 text-slate-300",children:[(0,r.jsx)(r8,{children:"ð·ï¸"}),(0,r.jsx)(r8,{children:"âï¸"}),(0,r.jsx)(r8,{children:"ð¨ï¸"}),(0,r.jsx)(r8,{children:"ðï¸"})]})]}),(0,r.jsx)("div",{className:"no-scrollbar flex-1 space-y-1 overflow-y-auto p-2",children:(0,r.jsx)(N,{initial:!1,children:0===i.length?(0,r.jsx)("div",{className:"py-10 text-center text-xs text-slate-300",children:"ë©ë´ë¥¼ ì ííì¸ì"}):i.map(e=>(0,r.jsxs)(rO.div,{initial:{opacity:0,x:-10}
9,animate:{opacity:1,x:0},className:"rounded-lg border border-slate-100 px-3 py-2",children:[(0,r.jsx)("div",{className:"truncate text-[13px] font-medium text-slate-800",children:e.name}),(0,r.jsxs)("div",{className:"mt-0.5 flex items-center justify-between text-xs tabular-nums text-slate-500",children:[(0,r.jsx)("span",{children:e.qty}),(0,r.jsxs)("span",{className:"font-semibold text-slate-700",children:["â©",(e.price*e.qty).toLocaleString("ko-KR")]})]})]},e.name))})}),e?(0,r.jsxs)("div",{className:"grid grid-cols-[1.4fr_1fr] gap-2 border-t border-slate-100 p-2.5",children:[(0,r.jsxs)(rO.div,{animate:o?{scale:[1,1.04,1]}:{},transition:{duration:.7,repeat:o?1/0:0},className:`grid place-items-center rounded-lg bg-otter py-2.5 text-sm font-extrabold text-white ${o?"ring-4 ring-otter/40":""}`,children:["â©",n.toLocaleString("ko-KR"),"ì · ",s,"ê°"]}),(0,r.jsx)("div",{className:"grid place-items-center rounded-lg border-2 border-otter py-2.5 text-sm font-extrabold text-otter",children:"ì¹´ë"})]}):(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-2 border-t border-slate-100 p-2.5",children:[(0,r.jsxs)("div",{className:"grid place-items-center rounded-lg border border-slate-200 py-2.5 text-sm font-bold text-slate-500",children:["주문 · ",s,"ê°"]}),(0,r.jsxs)(rO.div,{animate:o?{scale:[1,1.05,1]}:{},transition:{duration:.7,repeat:o?1/0:0},className:`grid place-items-center rounded-lg bg-slate-800 px-2 py-2 text-center text-[13px] font-bold leading-tight text-white ${o?"ring-4 ring-otter/40":""}`,children:["ê²°ì · ",s,"ê°",(0,r.jsx)("br",{}),"â©",n.toLocaleString("ko-KR")]})]})]}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col bg-slate-50",children:[(0,r.jsxs)("div",{className:"no-scrollbar flex items-center gap-1.5 overflow-x-auto border-b border-slate-200 bg-white px-3 py-2 text-[12px]",children:[(0,r.jsx)("span",{className:"shrink-0 whitespace-nowrap rounded-md bg-slate-800 px-3 py-1.5 font-bold text-white",children:"ì ì²´ë©ë´"}),["ì¸ê¸°","ì¸í¸","ì¬ì´ë","ìë£"].map(e=>(0,r.jsx)("span",{className:"shrink-0 whitespace-nowrap rounded-md border border-slate-200 px-3 py-1.5 font-medium text-slate-500",children:e},e)),(0,r.jsx)("span",{className:"ml-auto shrink-0 text-slate-300",children:"â"})]}),(0,r.jsx)("div",{className:"no-scrollbar flex-1 overflow-y-auto p-3",children:(0,r.jsx)("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-3 md:grid-cols-4",children:t.map((e,t)=>(0,r.jsxs)(rO.div,{animate:a===e.name?{scale:[1,.94,1]}:{},transition:{duration:.3},className:`relative h-[84px] overflow-hidden rounded-lg border bg-white p-2.5 ${a===e.name?"border-otter ring-2 ring-otter/30":"border-slate-200"}`,children:[(0,r.jsx)("span",{className:"absolute left-0 top-0 h-0 w-0",style:{borderTop:`13px solid ${r2[t%r2.length]}`,borderRight:"13px solid transparent"}}),(0,r.jsx)("div",{className:"line-clamp-2 pl-1.5 text-[12px] font-bold leading-snug text-slate-800",children:e.name}),(0,r.jsxs)("div",{className:"absolute bottom-2 left-2.5 text-[11px] text-slate-400",children:["â©",e.price.toLocaleString("ko-KR")]})]},e.name))})}),(0,r.jsxs)("div",{className:"flex items-center justify-center gap-3 border-t border-slate-200 bg-white py-2 text-xs text-slate-400",children:[(0,r.jsx)("span",{children:"â¹"}),(0,r.jsx)("span",{className:"font-medium text-slate-600",children:"1 / 1"}),(0,r.jsx)("span",{children:"âº"})]})]}),(0,r.jsxs)("div",{className:"hidden w-[140px] shrink-0 flex-col border-l border-slate-200 bg-white md:flex",children:[(0,r.jsx)("div",{className:"border-b border-slate-100 px-3 py-2.5 text-sm font-bold text-slate-500",children:"ìµì
"}),(0,r.jsx)("div",{className:"flex-1 space-y-1 p-2",children:i.length>0&&["기본","곱빼기","ì¶ê°"].map((e,t)=>(0,r.jsxs)("div",{className:`flex items-center justify-between rounded-md px-2.5 py-2 text-[12px] ${0===t?"bg-slate-800 font-bold text-white":"text-slate-500"}`,children:[e,0===t&&(0,r.jsx)("span",{children:"â"})]},e))}),(0,r.jsx)("div",{className:"px-3 py-2 text-right text-xs text-slate-300",children:i.length?"1/1":"0/0"})]})]}),(0,r.jsxs)("div",{className:"border-t border-slate-200 bg-white md:hidden",children:[i.length>0&&(0,r.jsx)("div",{className:"no-scrollbar flex gap-2 overflow-x-auto px-3 pt-2.5",children:i.map(e=>(0,r.jsxs)("span",{className:"flex shrink-0 items-center gap-1 rounded-full border border-slate-200 px-2.5 py-1 text-xs",children:[(0,r.jsx)("span",{className:"max-w-[96px] truncate text-slate-700",children:e.name}),(0,r.jsxs)("span",{className:"font-bold text-slate-400",children:["Ã",e.qty]})]},e.name))}),(0,r.jsx)("div",{className:"flex items-center gap-2 p-3",children:e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(rO.div,{animate:o?{scale:[1,1.03,1]}:{},transition:{duration:.7,repeat:o?1/0:0},className:`flex flex-1 items-center justify-between rounded-xl bg-otter px-4 py-3 text-sm font-extrabold text-white ${o?"ring-4 ring-otter/40":""}`,children:[(0,r.jsxs)("span",{children:[s,"ê°"]}
9),(0,r.jsxs)("span",{children:["â©",n.toLocaleString("ko-KR"),"ì"]})]}),(0,r.jsx)("div",{className:"grid w-20 shrink-0 place-items-center rounded-xl border-2 border-otter py-3 text-sm font-extrabold text-otter",children:"ì¹´ë"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"grid w-24 shrink-0 place-items-center rounded-xl border border-slate-200 py-3 text-sm font-bold text-slate-500",children:["주문 ",s,"ê°"]}),(0,r.jsxs)(rO.div,{animate:o?{scale:[1,1.03,1]}:{},transition:{duration:.7,repeat:o?1/0:0},className:`flex flex-1 items-center justify-between rounded-xl bg-slate-800 px-4 py-3 text-sm font-bold text-white ${o?"ring-4 ring-otter/40":""}`,children:[(0,r.jsxs)("span",{children:["ê²°ì ",s,"ê°"]}),(0,r.jsxs)("span",{children:["â©",n.toLocaleString("ko-KR")]})]})]})})]})]})}function r8({children:e}){return(0,r.jsx)("span",{className:"text-[12px] grayscale",children:e})}function r9({cart:e,count:t,total:i,cardPulse:s,completing:n}){return(0,r.jsxs)(rO.div,{initial:{opacity:0},animate:{opacity:1},className:"flex min-h-0 flex-1 flex-col bg-white md:flex-row",children:[(0,r.jsxs)("div",{className:"flex w-full shrink-0 flex-col border-b border-slate-200 p-5 md:w-[280px] md:border-b-0 md:border-r",children:[(0,r.jsx)("div",{className:"text-xs text-slate-400",children:"ì´ ê²°ì ê¸ì¡"}),(0,r.jsxs)("div",{className:"mt-1 text-2xl font-extrabold tabular-nums text-slate-900",children:["â©",i.toLocaleString("ko-KR"),"ì ",(0,r.jsx)("span",{className:"text-base font-bold text-slate-500",children:"ê²°ì "})]}),(0,r.jsx)("div",{className:"mt-5 space-y-2",children:e.map(e=>(0,r.jsxs)("div",{className:"flex items-center justify-between rounded-lg border border-slate-100 px-3 py-2 text-[13px]",children:[(0,r.jsx)("span",{className:"min-w-0 flex-1 truncate text-slate-700",children:e.name}),(0,r.jsx)("span",{className:"mx-2 text-slate-400",children:e.qty}),(0,r.jsxs)("span",{className:"font-semibold tabular-nums text-slate-800",children:["â©",(e.price*e.qty).toLocaleString("ko-KR")]})]},e.name))}),(0,r.jsxs)("div",{className:"mt-auto flex items-center justify-between border-t border-slate-200 pt-3 text-sm",children:[(0,r.jsxs)("span",{className:"text-slate-500",children:["ì´ ",t,"ê°"]}),(0,r.jsxs)("span",{className:"font-extrabold tabular-nums text-slate-900",children:["â©",i.toLocaleString("ko-KR")]})]})]}),(0,r.jsxs)("div",{className:"relative flex min-w-0 flex-1 flex-col justify-end p-6",children:[(0,r.jsx)("span",{className:"absolute right-5 top-5 grid h-8 w-8 place-items-center rounded-md bg-slate-100 text-slate-500",children:"â"}),(0,r.jsx)("div",{className:"mb-3 text-base font-bold text-slate-700",children:"ê²°ì ìë¨ì ì íí´ì£¼ì¸ì"}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,r.jsx)(r7,{label:"ì¹´ë",highlight:s,chosen:n,primary:!0,children:(0,r.jsx)(ae,{})}),(0,r.jsx)(r7,{label:"íê¸",children:(0,r.jsx)(at,{})})]}),(0,r.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-3 text-sm",children:[(0,r.jsx)("div",{className:"grid place-items-center rounded-xl border border-slate-200 py-3 font-medium text-slate-600",children:"⥠ë¶í ê²°ì "}),(0,r.jsx)("div",{className:"grid place-items-center rounded-xl border border-slate-200 py-3 font-medium text-slate-600",children:"â ëì¹íì´"})]}),(0,r.jsx)(rO.div,{animate:n?{scale:[1,.97,1]}:{},transition:{duration:.4},className:`mt-3 grid place-items-center rounded-xl py-3.5 text-sm font-bold ${n?"bg-otter text-white":"border border-slate-200 text-slate-600"}`,children:n?"â ê²°ì ìë£":"ê²°ì ìë£ ì²ë¦¬"})]})]})}function r7({label:e,children:t,primary:i,highlight:s,chosen:n}){let a=i&&(s||n);return(0,r.jsxs)(rO.div,{animate:s?{scale:[1,1.03,1]}:{},transition:{duration:.8,repeat:s?1/0:0},className:`flex h-24 flex-col justify-between rounded-xl border-2 p-4 ${a?"border-otter bg-otter-soft":"border-slate-200 bg-white"}`,children:[(0,r.jsx)("span",{className:a?"text-otter-strong":"text-slate-400",children:t}),(0,r.jsx)("span",{className:`text-lg font-extrabold ${a?"text-otter-strong":"text-slate-700"}`,children:e})]})}function ae(){return(0,r.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,r.jsx)("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2.5"}),(0,r.jsx)("path",{d:"M2 10h20"})]})}function at(){return(0,r.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,r.jsx)("rect",{x:"2",y:"6",width:"20",height:"12",rx:"2"}),(0,r.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}let ai=[{id:"baemin",name:"ë°°ë¬ì민족",color:"#2AC1BC",mark:"배민",commission:.068},{id:"coupang",name:"ì¿ í¡ì´ì¸ ",color:"#00A8E1",mark:"ì¿ í¡",commission:.075},{id:"yogiyo",name:"ì기ì",color:"#FA0050",mark:"ì기ì",commission:.078},{id:"ddangyo",name:"ë¡ê²¨ì",color:"#F8682B",mark:"ë¡ê²¨ì",commission:.02}],as=Object.fromEntries(ai.map(e=>[e.id,e]));function an({platform:e}){let t=as[e];return(0,r.jsx)("span",{className:"grid h-9 w-9 shrink-0 place-items-center rounded-full text-[11px] font-bold leading-none text-white",style:{backgroundColor:t.color},children:t.mark.slice(0,2)})}
9function ar(e){return e.toLocaleString("ko-KR")}function aa(e){let t=e.items[0]?.name??"",i=e.items.slice(1).map(e=>e.name),s=i.length?` \xb7 ${i.join(" · ")}`:"";return`ë©ë´ ${e.items.length}ê° \xb7 ${t}${s}`}function ao(){return(0,r.jsx)("span",{className:"shrink-0 rounded bg-otter/15 px-1.5 py-0.5 text-[10px] font-bold text-otter-strong",children:"ë¤ë¥¸ ì¬ì
ì"})}function al({order:e,accepting:t,dimmed:i=!1}){return(0,r.jsxs)(rO.div,{layout:!0,initial:{opacity:0,y:-14,backgroundColor:"rgba(28,105,232,0.08)"},animate:{opacity:i?.35:1,y:0,backgroundColor:"rgba(255,255,255,0)"},transition:{layout:{type:"spring",stiffness:320,damping:30},backgroundColor:{duration:1.6},opacity:{duration:.5},default:{type:"spring",stiffness:300,damping:28}},className:`border-b border-slate-100 px-4 py-3 sm:px-5 sm:py-3.5 ${e.shopInShop?"ring-1 ring-inset ring-otter/40":""}`,children:[(0,r.jsxs)("div",{className:"flex items-start gap-2.5 sm:hidden",children:[(0,r.jsx)(an,{platform:e.platform}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsxs)("span",{className:"truncate text-[11px] text-slate-400",children:[e.timeText," · ",e.code]}),(0,r.jsxs)("span",{className:"shrink-0 text-sm font-extrabold text-slate-800",children:["â©",ar(e.total)]})]}),(0,r.jsxs)("div",{className:"mt-0.5 flex items-center gap-1.5",children:[(0,r.jsx)("span",{className:"truncate text-sm font-bold text-slate-800",children:e.storeName}),e.shopInShop&&(0,r.jsx)(ao,{})]}),(0,r.jsx)("div",{className:"truncate text-[12px] text-slate-400",children:aa(e)}),(0,r.jsx)("div",{className:"mt-2 flex items-center justify-end",children:(0,r.jsx)(ah,{order:e,accepting:t})})]})]}),(0,r.jsxs)("div",{className:"hidden items-center gap-3 sm:flex",children:[(0,r.jsxs)("div",{className:"flex w-[188px] shrink-0 items-center gap-3",children:[(0,r.jsx)(an,{platform:e.platform}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:"truncate text-xs text-slate-400",children:e.timeText}),(0,r.jsx)("div",{className:"truncate text-sm font-semibold text-slate-800",children:e.code})]})]}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)("span",{className:"truncate text-sm font-medium text-slate-800",children:e.storeName}),e.shopInShop&&(0,r.jsx)(ao,{})]}),(0,r.jsx)("div",{className:"truncate text-[13px] text-slate-400",children:aa(e)})]}),(0,r.jsx)("div",{className:"hidden w-32 shrink-0 truncate text-[13px] text-slate-500 lg:block",children:e.address}),(0,r.jsxs)("div",{className:"w-24 shrink-0 text-right",children:[(0,r.jsx)("div",{className:"text-xs text-slate-400",children:"ì ê²°ì "}),(0,r.jsxs)("div",{className:"text-sm font-bold text-slate-800",children:["â©",ar(e.total)]})]}),(0,r.jsx)("div",{className:"flex w-[196px] shrink-0 items-center justify-end gap-2",children:(0,r.jsx)(ah,{order:e,accepting:t})})]})]})}function ah({order:e,accepting:t}){return(0,r.jsx)(N,{mode:"popLayout",children:t?(0,r.jsxs)(rO.div,{initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0}
9,transition:{type:"spring",stiffness:360,damping:18},className:"flex items-center gap-1.5 rounded-full bg-otter/15 px-3 py-1.5 text-sm font-bold text-otter-strong",children:[(0,r.jsx)(ad,{})," ìë ìë½"]},"check"):(0,r.jsx)(rO.div,{initial:{opacity:0},animate:{opacity:1},className:"flex items-center gap-2",children:(0,r.jsx)(ac,{order:e})},"action")})}function ac({order:e}){if("fresh"===e.state)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"rounded-md bg-[#FFEADF] px-2.5 py-1 text-xs font-bold text-[#F2682F]",children:"ë°°ì°¨íì"}),(0,r.jsxs)("button",{className:"flex items-center gap-1.5 rounded-lg bg-[#2B313A] px-3 py-2 text-sm font-bold text-white",children:[(0,r.jsx)(am,{})," ë°°ì°¨ìì²"]})]});let t="dispatched"===e.state;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("span",{className:`flex items-center gap-1 text-xs font-bold ${t?"text-[#16A34A]":"text-slate-400"}`,children:[t?(0,r.jsx)(ad,{small:!0}):(0,r.jsx)(au,{}),t?"ë°°ì°¨ìë£":"ë°°ì°¨ ì¤"]}),(0,r.jsxs)("div",{className:"flex flex-col items-end gap-0.5",children:[(0,r.jsxs)("button",{className:"flex items-center gap-1.5 rounded-lg bg-[#F15A29] px-3 py-2 text-sm font-bold text-white",children:[(0,r.jsx)(ap,{})," 조리ìë£"]}),null!=e.cookMinutes&&(0,r.jsxs)("span",{className:"text-[11px] text-slate-400",children:[e.cookMinutes,"ë¶"]})]})]})}function ad({small:e}){let t=e?13:16;return(0,r.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("path",{d:"M20 6 9 17l-5-5"})})}function au(){return(0,r.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,r.jsx)("path",{d:"M12 7v5l3 2"})]})}function am(){return(0,r.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("circle",{cx:"6",cy:"19",r:"2.5"}),(0,r.jsx)("circle",{cx:"18",cy:"5",r:"2.5"}),(0,r.jsx)("path",{d:"M8.5 19H15a3.5 3.5 0 0 0 0-7H9a3.5 3.5 0 0 1 0-7h6.5"})]})}function ap(){return(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:(0,r.jsx)("path",{d:"M12 2s4 4 4 8a4 4 0 0 1-8 0c0-1.5.8-2.8.8-2.8S6 9 6 13a6 6 0 0 0 12 0c0-5-6-11-6-11z"})})}let af=["ìì¸ ê°ë¨êµ¬ ëì¹ë","ìì¸ ë§í¬êµ¬ ìêµë","ìì¸ ê°ë¨êµ¬ ìì¼ë","ìì¸ ëë문구 ì¥ìë","ìì¸ ê´ì
구 ì 림ë"],ax=["7K2D9XQM","QP41ZB","5R8WLT0C","M93EVA1P","B1PE00DCLN","X7Q2M8WZ","P5N1KD"],ag=["ì°ë¦¬ëë¤","íë³µí","ë ë ","ì íµ"];function ay(e){let t=e.trim()||"ì°ë¦¬ì§";return ag.map(e=>`${e} ${t}`)}function av(e){return 100*Math.round(e/100)}function ab({data:e,speed:t=1,focus:i="full",onDone:s}){var n;let o,l,h,c,d=e.orders.filter(e=>!e.shopInShop),u=e.orders.filter(e=>e.shopInShop),m=(0,a.useRef)((n=e.menus,o=ay(e.category),l=n.length?n:[{name:"기본 ë©ë´",price:9e3}],h=e=>l[e%l.length],[(c=(e,t,i,s,n,r,a)=>{let o=n.map(e=>({name:h(e).name,price:h(e).price,qty:1}));return{id:`amb-${t}`,platform:e,code:t,timeText:i,storeName:s,items:o,total:av(o.reduce((e,t)=>e+t.price*t.qty,0)),address:"ìì¸ ì¡í구 ì ì¤ë",state:r,cookMinutes:a,shopInShop:!1}})("yogiyo","JKD63#4918","19:10 · 11ë¶ ê²½ê³¼",o[0],[1],"dispatched",13),c("coupang","1SPX80","19:08 · 13ë¶ ê²½ê³¼",o[0],[2,3,4],"dispatching",12)])),[p,f]=(0,a.useState)("multi"===i?[...d].reverse():[]),[x,g]=(0,a.useState)(new Set),[y,v]=(0,a.useState)(null),[b,w]=(0,a.useState)(!1),[j,S]=(0,a.useState)(!1),T=(0,a.useRef)(t);T.current=t,(0,a.useEffect)(()=>{let e=!1,t=e=>new Promise(t=>setTimeout(t,e/T.current)),n=(e,t)=>g(i=>{let s=new Set(i);return t?s.add(e):s.delete(e),s});async function r(i){e||(f(e=>[i,...e]),n(i.id,!0),await t(1150),e||n(i.id,!1))}return async function(){if(await t(800),"multi"!==i){for(let i of(v("ì¤í°í¬ì¤ë ìë주문ìë½ì ì ê³µí©ëë¤ ð"),await t(1300),d)){if(e)return;await r(i),await t(550)}await t(900),v(null),await t(700)}if("auto"!==i&&u.length){if(S(!0),w(!0),await t(1700),e)return;for(let i of(w(!1),await t(350),v("ì¤í°í¬ì¤ë ì¬ë¬ ì¬ì
ìì 주문ë í íë©´ìì ê´ë¦¬í ì ìì´ì!"),await t(700),u)){if(e)return;await r(i),await t(600)}await t(1500)}v(null),await t(700),e||s()}(),()=>{e=!0}},[]);let k=[...p,...m.current];return(0,r.jsxs)("div",{className:"relative flex h-full w-full flex-col bg-white text-slate-900",children:[(0,r.jsx)(r_,{active:"주문ì ì²´",storeName:e.storeName}),(0,r.jsx)(aj,{}),(0,r.jsx)(aS,{progress:k.length}),(0,r.jsxs)("div",{className:"no-scrollbar flex-1 overflow-y-auto bg-slate-50",children:[(0,r.jsxs)("div",{className:"px-5 pb-2 pt-3 text-sm font-bold text-slate-400",children:["ì¡°ë¦¬ì¤ (",k.length,")"]}),(0,r.jsx)("div",{className:"bg-white",children:(0,r.jsx)(N,{initial:!1,children:k.map(e=>(0,r.jsx)(al,{order:e,accepting:x.has(e.id),dimmed:j&&!e.shopInShop},e.id))})})]}),(0,r.jsx)(aw,{show:b}),(0,r.jsx)(r1,{text:y})]})}function aw({show:e}){return(0,r.jsx)(N,{children:e&&(0,r.jsx)(rO.div,{initial:{opacity:0,y:-24,scale:.92}
9,animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.95},transition:{type:"spring",stiffness:280,damping:22},className:"pointer-events-none absolute inset-x-0 top-1/2 z-40 flex -translate-y-1/2 justify-center px-6",children:(0,r.jsxs)("div",{className:"flex items-center gap-3 rounded-2xl bg-otter px-6 py-4 text-white shadow-xl shadow-otter/30",children:[(0,r.jsx)("span",{className:"text-3xl",children:"ðª"}),(0,r.jsxs)("div",{className:"text-left",children:[(0,r.jsx)("div",{className:"text-base font-extrabold sm:text-lg",children:"ë¤ë¥¸ ì¬ì
ì ì£¼ë¬¸ì´ ë¤ì´ìì´ì"}),(0,r.jsx)("div",{className:"text-xs text-white/80",children:"í íë©´ìì ê°ì´ ê´ë¦¬ë¼ì"})]})]})},"banner")})}function aj(){return(0,r.jsxs)("div",{className:"flex items-center gap-3 border-b border-slate-100 px-5 py-3",children:[(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2 rounded-xl bg-slate-50 px-3 py-2.5 text-sm text-slate-400",children:[(0,r.jsx)(aT,{}),(0,r.jsx)("span",{className:"truncate",children:"주문ë²í¸ í¹ì ë©ë´ëª
ì¼ë¡ ìíë 주문ì ì°¾ì¼ì¤ ì ìì´ì."})]}),(0,r.jsxs)("button",{className:"flex items-center gap-1.5 rounded-xl border border-slate-200 px-3.5 py-2.5 text-sm font-medium text-slate-600",children:[(0,r.jsx)(ak,{})," íí°"]})]})}function aS({progress:e}){return(0,r.jsxs)("div",{className:"flex items-center justify-between border-b border-slate-100 px-5 py-2.5",children:[(0,r.jsxs)("div",{className:"flex items-center gap-5 text-sm",children:[(0,r.jsxs)("span",{className:"relative font-bold text-slate-900",children:["ì§í (",e,")",(0,r.jsx)("span",{className:"absolute -bottom-2.5 left-0 h-0.5 w-full rounded bg-[#F15A29]"})]}),(0,r.jsx)("span",{className:"font-medium text-slate-400",children:"ìë£ (24)"})]}),(0,r.jsxs)("button",{className:"flex items-center gap-1.5 rounded-lg border border-slate-200 px-3 py-1.5 text-sm font-medium text-slate-600",children:["ëì°©ìì ìê° ",(0,r.jsx)(aP,{})]})]})}let aN={fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};function aT(){return(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",...aN,children:[(0,r.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,r.jsx)("path",{d:"m21 21-4.3-4.3"})]})}function ak(){return(0,r.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",...aN,children:(0,r.jsx)("path",{d:"M4 6h16M7 12h10M10 18h4"})})}function aP(){return(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",...aN,children:(0,r.jsx)("path",{d:"m6 9 6 6 6-6"})})}let aA=[{key:"yogiyo",name:"Yogiyo",color:"#34A853",last:133500,delta:"-92.6%"},{key:"baedal",name:"Baedal Minjok",color:"#E5337E",last:793240,delta:"-83.8%"},{key:"coupang",name:"Coupang Eats",color:"#1AA0A0",last:7547800,delta:"-86.3%"},{key:"baemin1",name:"Baemin1",color:"#8B3FE8",last:8087200,delta:"-86.4%"}],aE=[{label:"18ì¼",vals:[12e4,76e4,81e5,802e4]},{label:"19ì¼",vals:[11e4,7e5,79e5,779e4]},{label:"20ì¼",vals:[13e4,78e4,805e4,804e4]},{label:"21ì¼",vals:[15e4,9e5,1e7,995e4]},{label:"22ì¼",vals:[9e4,6e5,68e5,651e4]},{label:"23ì¼",vals:[8e4,55e4,64e5,597e4]},{label:"24ì¼",vals:[133500,793240,7547800,8087200]}],aM=["#F4731F","#34A853","#E5337E","#8B3FE8"],aC=[{v:1697140,d:"-16.5%"},{v:995100,d:"-32.8%"},{v:793240,d:"-21.3%"},{v:404500,d:"-30.2%"}],aV=[[18e5,9e5,7e5,6e5],[2e6,1e6,8e5,65e4],[19e5,95e4,78e4,62e4],[26e5,13e5,11e5,9e5],[12e5,7e5,5e5,4e5],[1e6,6e5,45e4,35e4],[1697140,995100,793240,404500]],aR=["18ì¼","19ì¼","20ì¼","21ì¼","22ì¼","23ì¼","24ì¼"],aD=[{date:"06/24",sales:8880440,settle:0,ratio:"0%"},{date:"06/23",sales:6768500,settle:3708717,ratio:"54.79%"},{date:"06/22",sales:6744840,settle:4497251,ratio:"66.68%"},{date:"06/21",sales:0xa96b90,settle:7349341,ratio:"66.19%"},{date:"06/20",sales:9069400,settle:5961664,ratio:"65.73%"},{date:"06/19",sales:9134760,settle:5989242,ratio:"65.57%"}],aL=[{name:"ë°°ë¬ì 민족",value:8880440,delta:"-4.1%"},{name:"ì¿ í¡ì´ì¸ ",value:7547800,delta:"-14.3%"},{name:"ì기ì",value:133500,delta:"-52.6%"}];function aB(e){return Math.round(e).toLocaleString("ko-KR")}function aF(e,t=1200,i=0){let[s,n]=(0,a.useState)(0),r=(0,a.useRef)(void 0);return(0,a.useEffect)(()=>{let s=null,a=setTimeout(()=>{let i=a=>{null===s&&(s=a);let o=Math.min((a-s)/t,1);n(e*(1-Math.pow(1-o,3))),o<1&&(r.current=requestAnimationFrame(i))};r.current=requestAnimationFrame(i)},i);return()=>{clearTimeout(a),r.current&&cancelAnimationFrame(r.current)}},[e,t,i]),s}function aI({data:e,onDone:t}){let[i,s]=(0,a.useState)("overview"),[n,o]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=setTimeout(()=>
9o("ì´ìíë ë°°ë¬ì± ì¤ì ì ì°ì¡ì íë²ì íì¸í ì ìì´ì ð°"),900),i=setTimeout(()=>{s("baemin"),o("ì¬ì
ì(ì§ì )ë³ ë§¤ì¶ê³¼ ì ì°ê¸ì¡ê¹ì§ ë¹êµí ì ìì´ì ð")},4400),n=setTimeout(()=>t(),10500);return()=>{[e,i,n].forEach(clearTimeout)}},[t]);let l=e.businesses.slice(0,4).map((e,t)=>({key:`b${t}`,name:e,color:aM[t],last:aC[t].v,delta:aC[t].d}));return(0,r.jsxs)("div",{className:"no-scrollbar relative flex h-full w-full flex-col overflow-y-auto bg-white px-6 py-5 text-slate-900",children:[(0,r.jsx)("h1",{className:"text-xl font-extrabold text-slate-900 sm:text-2xl",children:"ë°°ë¬ì± ë§¤ì¶ ë³´ê³ ì"}),(0,r.jsx)("p",{className:"mt-1.5 max-w-4xl text-[12px] leading-relaxed text-slate-400",children:"ë°°ë¬ì민족, ì¿ í¡ì´ì¸ , ì기ì 매ì¶ì ê° ë°°ë¬ì±ì ì¤ì ë§¤ì¶ ê³ì° ë¡ì§ì ë§ì¶° ê³ì°í ëìë³´ëì
ëë¤. ê° ë°°ë¬ì± ê¸°ì¤ ë§¤ì¶ì íëì íì¸í ì ììµëë¤."}),(0,r.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-2",children:[(0,r.jsx)(aH,{caret:!0,children:"ì§ë주"}),(0,r.jsx)(aH,{caret:!0,children:"ì§ì"}),(0,r.jsx)(aH,{caret:!0,children:"ë¸ëë"})]}),(0,r.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-2 text-sm",children:[(0,r.jsx)(aX,{active:"overview"===i,onClick:()=>s("overview"),children:"ë°°ë¬ì± 3ì¬"}),(0,r.jsx)(aX,{active:"baemin"===i,onClick:()=>s("baemin"),children:"ë°°ë¬ì 민족"}),(0,r.jsx)(aX,{children:"ì¿ í¡ì´ì¸ "}),(0,r.jsx)(aX,{children:"ì기ì"})]}),"overview"===i?(0,r.jsx)(aO,{}):(0,r.jsx)(a$,{facSeries:l}),(0,r.jsx)(r1,{text:n})]})}function aO(){let e=aF(0x6e13088,1400,200);return(0,r.jsxs)(rO.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3},children:[(0,r.jsxs)("div",{className:"mt-4 rounded-2xl border border-slate-200 p-5",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-3xl font-extrabold tabular-nums text-slate-900",children:aB(e)}),(0,r.jsxs)("div",{className:"mt-0.5 text-xs",children:[(0,r.jsx)("span",{className:"font-bold text-red-500",children:"-4.9%"})," ",(0,r.jsx)("span",{className:"text-slate-400",children:"vs 6ì 11ì¼~17ì¼"})]}),(0,r.jsx)("div",{className:"text-xs text-slate-400",children:"ì§ë주"})]}),(0,r.jsxs)("div",{className:"flex gap-1.5",children:[(0,r.jsx)(a_,{children:"?"}),(0,r.jsx)(a_,{children:"â¤"})]})]}),(0,r.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-2 text-xs text-slate-500",children:[(0,r.jsx)("span",{className:"font-medium",children:"ë°°ë¬ì± 3ì¬ ë§¤ì¶ ì´í©"}),(0,r.jsx)(aq,{}),(0,r.jsx)("span",{className:"rounded bg-blue-50 px-2 py-0.5 font-medium text-blue-600",children:"⥠OFO"}),(0,r.jsx)("span",{className:"rounded bg-blue-50 px-2 py-0.5 font-medium text-blue-600",children:"â¡ Yogiyo, Baemin1, 2 more"})]}),(0,r.jsx)(az,{series:aA,days:aE,axisMaxM:25}),(0,r.jsx)(aK,{series:aA}),(0,r.jsxs)("div",{className:"mt-3 flex items-center justify-between text-[11px] text-slate-400",children:[(0,r.jsx)("span",{children:"6ì 18ì¼~24ì¼ â¾"}),(0,r.jsx)("span",{children:"Updated 2 mins ago"})]})]}),(0,r.jsx)("div",{className:"mt-4 grid gap-3 sm:grid-cols-3",children:aL.map((e,t)=>(0,r.jsx)(aY,{...e,delay:400+150*t},e.name))})]})}function a$({facSeries:e}){let t=aF(8880440,1200,150),i=aV.map((e,t)=>({label:aR[t],vals:e}));return(0,r.jsxs)(rO.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3},children:[(0,r.jsxs)("div",{className:"mt-4 rounded-2xl border border-slate-200 p-5",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 text-sm font-bold text-slate-700",children:["배민 ë§¤ì¶ ì¶ì´ per day",(0,r.jsx)("span",{className:"rounded bg-blue-50 px-2 py-0.5 text-xs font-medium text-blue-600",children:"⥠Facility Name"})]}),(0,r.jsx)("div",{className:"mt-2 text-3xl font-extrabold tabular-nums text-slate-900",children:aB(t)}),(0,r.jsxs)("div",{className:"text-xs",children:[(0,r.jsx)("span",{className:"font-bold text-red-500",children:"-4.1%"})," ",(0,r.jsx)("span",{className:"text-slate-400",children:"vs 6ì 17ì¼ Â· ì§ë주"})]}),(0,r.jsx)(az,{series:e,days:i,axisMaxM:7}),(0,r.jsx)(aK,{series:e})]}),(0,r.jsx)("h2",{className:"mt-6 text-lg font-extrabold text-slate-900",children:"ë°°ë¬ì 민족 ë§¤ì¶ Â· ì ì°ê¸ì¡ ë¹êµ"}),(0,r.jsxs)("div",{className:"mt-3 grid gap-4 lg:grid-cols-2",children:[(0,r.jsx)(aU,{}),(0,r.jsx)(aW,{})]})]})}function aU(){return(0,r.jsx)("div",{className:"overflow-hidden rounded-2xl border border-slate-200",children:(0,r.jsxs)("table",{className:"w-full text-sm",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{className:"border-b border-slate-100 text-left text-xs text-slate-400",children:[(0,r.jsx)("th",{className:"px-4 py-3 font-medium",children:"ì¼ì"}),(0,r.jsx)("th",{className:"px-4 py-3 text-right font-medium",children:"배민 매ì¶"}),(0,r.jsx)("th",{className:"px-4 py-3 text-right font-medium",children:"배민 ì ì°ê¸ì¡"}),(0,r.jsx)("th",{className:"px-4 py-3 text-right font-medium",children:"ë¹ì¨"})]})}),(0,r.jsx)("tbody",{children:aD.map(e=>(0,r.jsxs)("tr",{className:"border-b border-slate-50 last:border-0",children:[(0,r.jsx)("td",{className:"px-4 py-3 text-slate-600",children:e.date}),(0,r.jsx)("td",{className:"px-4 py-3 text-right tabular-nums text-slate-800",children:aB(e.sales)}),(0,r.jsx)("td",{className:"px-4 py-3 text-right tabular-nums text-slate-800",children:aB(e.settle)}),(0,r.jsx)("td",{className:"px-4 py-3 text-right tabular-nums font-medium text-slate-600",children:e.ratio})]},e.date))})]})})}function aW(){let e=[9134760,9069400,0xa96b90,6744840,6768500,8880440],t=[5989242,5961664,7349341,4497251,3708717,0],i=t=>36+368*t/(e.length-1),s=e=>164-e/12e6*128,n=e=>e.map((e,t)=>`${0===t?"M":"L"}${i(t)},${s(e)}`).join(" ");return(0,r.jsxs)("div",{className:"rounded-2xl border border-slate-200 p-4",children:[(0,r.jsx)("div",{className:"flex items-center gap-2 text-sm font-bold text-slate-700",children:"매ì¶Â·ì ì°ê¸ì¡ ì¶ì´ per day"}),(0,r.jsxs)("div",{className:"mt-1 flex items-center gap-3 text-[11px]",children:[(0,r.jsxs)("span",{className:"flex items-center gap-1 text-slate-500",children:[(0,r.jsx)("span",{className:"h-2 w-2 rounded-full bg-[#8B3FE8]"})," 매ì¶"]}),(0,r.jsxs)("span",{className:"flex items-center gap-1 text-slate-500",children:[(0,r.jsx)("span",{className:"h-2 w-2 rounded-full bg-[#1AA0A0]"})," ì ì°ê¸ì¡"]})]}),(0,r.jsxs)("svg",{viewBox:"0 0 440 200",className:"mt-2 w-full",children:[[0,.25,.5,.75,1].map(e=>(0,r.jsx)("line",{x1:36,x2:404,y1:36+128*e,y2:36+128*e,stroke:"#f1f5f9"},e)),["19","20","21","22","23","24"].map((e,t)=>(0,r.jsxs)("text",{x:i(t),y:188,fontSize:"11",fill:"#94a3b8",textAnchor:"middle",children:[e,"ì¼"]},e)),(0,r.jsx)(rO.path,{d:n(t),fill:"none",stroke:"#1AA0A0",strokeWidth:"2.5",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:1,delay:.2}}),(0,r.jsx)(rO.path,{d:n(e),fill:"none",stroke:"#8B3FE8",strokeWidth:"2.5",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:1,delay:.2}}),e.map((e,t)=>(0,r.jsx)("circle",{cx:i(t),cy:s(e),r:"3",fill:"#8B3FE8"},t)),t.map((e,t)=>(0,r.jsx)("circle",{cx:i(t),cy:s(e),r:"3",fill:"#1AA0A0"},t))]})]})}function az({series:e,days:t,axisMaxM:i}){let s=1e6*i,n=i<=7?1:5,a=[];for(let e=i;e>=0;e-=n)a.push(e);return(0,r.jsxs)("div",{className:"mt-4 flex gap-2",children:[(0,r.jsx)("div",{className:"flex h-[200px] flex-col justify-between pr-1 text-[10px] text-slate-300",children:a.map(e=>(0,r.jsxs)("span",{children:[e,"M"]},e))}),(0,r.jsxs)("div",{className:"relative flex flex-1 items-end justify-around border-l border-slate-100",children:[a.map((e,t)=>(0,r.jsx)("span",{className:"absolute left-0 right-0 border-t border-slate-50",style:{to
9p:`${t/(a.length-1)*100}%`}},e)),t.map((t,i)=>(0,r.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,r.jsx)("div",{className:"flex w-6 flex-col-reverse overflow-hidden rounded-sm sm:w-9",children:t.vals.map((t,n)=>(0,r.jsx)(rO.div,{initial:{height:0},animate:{height:t/s*200},transition:{duration:.6,delay:.2+.06*i,ease:"easeOut"},style:{backgroundColor:e[n].color}},e[n].key))}),(0,r.jsx)("span",{className:"text-[11px] text-slate-400",children:t.label})]},t.label))]})]})}function aK({series:e}){return(0,r.jsx)("div",{className:"mt-4 flex flex-wrap items-start justify-center gap-x-7 gap-y-2",children:e.map(e=>(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"h-3 w-3 rounded-sm",style:{backgroundColor:e.color}}),(0,r.jsxs)("div",{className:"text-xs",children:[(0,r.jsx)("div",{className:"font-medium text-slate-600",children:e.name}),(0,r.jsxs)("div",{className:"tabular-nums text-slate-500",children:[aB(e.last)," ",(0,r.jsx)("span",{className:"font-bold text-red-500",children:e.delta})]})]})]},e.key))})}function aY({name:e,value:t,delta:i,delay:s}){let n=aF(t,1100,s);return(0,r.jsxs)("div",{className:"rounded-2xl border border-slate-200 p-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1 text-sm font-medium text-slate-500",children:[e," ë§¤ì¶ per day ",(0,r.jsx)(aq,{})]}),(0,r.jsx)("div",{className:"mt-1 text-2xl font-extrabold tabular-nums text-slate-900",children:aB(n)}),(0,r.jsxs)("div",{className:"mt-0.5 text-xs",children:[(0,r.jsx)("span",{className:"font-bold text-red-500",children:i})," ",(0,r.jsx)("span",{className:"text-slate-400",children:"vs 6ì 17ì¼"})]}),(0,r.jsx)("div",{className:"text-xs text-slate-400",children:"ì§ë주"})]})}function aH({children:e,caret:t}){return(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-lg border border-slate-200 px-3 py-1.5 text-sm font-medium text-slate-600",children:[e,t&&(0,r.jsx)("span",{className:"text-slate-400",children:"â¾"})]})}function aX({children:e,active:t,onClick:i}){return(0,r.jsx)("button",{onClick:i,className:`rounded-full border px-3.5 py-1.5 font-medium transition-colors ${t?"border-blue-300 bg-blue-50 text-blue-600":"border-slate-200 text-slate-500 hover:border-slate-300"}`,children:e})}function a_({children:e}){return(0,r.jsx)("span",{className:"grid h-7 w-7 place-items-center rounded-md border border-slate-200 text-xs text-slate-400",children:e})}function aq(){return(0,r.jsx)("span",{className:"grid h-3.5 w-3.5 place-items-center rounded-full border border-slate-300 text-[9px] text-slate-400",children:"i"})}let aG=[{key:"auto",emoji:"â¡",title:"ìë 주문ìë½",desc:"ë¤ì´ì¨ 주문ì ìëì¼ë¡ ìë½"},{key:"multi",emoji:"ðª",title:"ë¤ì¤ì¬ì
ì íµí©ê´ë¦¬",desc:"ì¬ë¬ ì¬ì
ì 주문ì í íë©´ìì"},{key:"settlement",emoji:"ð°",title:"ë°°ë¬ì± íµí©ì ì°",desc:"ë°°ë¬ì±ë³ ì¤ì ì ì°ì¡ì íëì"}];function aZ({storeName:e,serviceType:t,paymentMode:i,onReplay:s}){let n="hall_delivery"===t?[{key:"hall",emoji:"prepay"===i?"â":"ð½ï¸",title:"prepay"===i?"ì ê²°ì ë§¤ì¥ ì£¼ë¬¸":"íê²°ì ë§¤ì¥ ì£¼ë¬¸",desc:"í 주문ë¶í° ê²°ì ê¹ì§ í íë©´ìì"},...aG]:aG;return(0,r.jsxs)("div",{className:"no-scrollbar relative flex h-full w-full flex-col items-center justify-center overflow-y-auto px-6 py-6 text-center",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute -bottom-32 left-1/2 h-96 w-96 -translate-x-1/2 rounded-full bg-otter/10 blur-3xl"}),(0,r.jsx)(rO.img,{src:"/otter-wordmark.svg",alt:"ì¤í°",initial:{scale:.6,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",stiffness:200,damping:16},className:"mb-3 h-7 w-auto"}),(0,r.jsx)(rO.h1,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},transition:{delay:.1},className:"break-keep text-balance text-xl font-black leading-snug text-foreground sm:text-2xl",children:"주문 ì ìë¶í° ì ì°ê¹ì§, ì¤í°í¬ì¤ í íë©´ìì."}),(0,r.jsxs)(rO.p,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},transition:{delay:.2},className:"mt-2 max-w-md break-keep text-balance text-[13px] leading-relaxed text-muted",children:["ë°©ê¸ ë³´ì íë©´, ",e," ì¬ì¥ë ê°ê²ììë ê·¸ëë¡ ì¸ ì ìì´ì."]}),(0,r.jsx)("div",{className:"mt-4 flex w-full max-w-md flex-col gap-2",children:n.map((e,t)=>(0,r.jsxs)(rO.button,{initial:{opacity:0,y:12}
9,animate:{opacity:1,y:0},transition:{delay:.25+.06*t},whileHover:{scale:1.02},whileTap:{scale:.98},onClick:()=>s(e.key),className:"group flex items-center gap-3 rounded-xl border border-border bg-surface px-3.5 py-2.5 text-left transition-colors hover:border-otter/60",children:[(0,r.jsx)("span",{className:"text-xl",children:e.emoji}),(0,r.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,r.jsx)("span",{className:"block text-sm font-extrabold text-foreground",children:e.title}),(0,r.jsx)("span",{className:"block truncate text-xs text-muted",children:e.desc})]}),(0,r.jsx)("span",{className:"shrink-0 text-xs font-bold text-otter opacity-80 transition-opacity group-hover:opacity-100",children:"ë¤ì 보기 â¸"})]},e.key))}),(0,r.jsx)(rO.a,{href:"https://www.tryotter.co.kr/secret-sauce",target:"_blank",rel:"noopener noreferrer",onClick:()=>r$("cta_click"),initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.55},whileHover:{scale:1.03},whileTap:{scale:.97},className:"mt-5 rounded-2xl bg-otter px-10 py-3.5 text-base font-extrabold text-white shadow-lg shadow-otter/25 transition-colors hover:bg-otter-strong",children:"ì§ê¸ ì°ë¦¬ ê°ê²ë ì ì²í기 â"}),(0,r.jsx)(rO.span,{initial:{opacity:0}
9,animate:{opacity:1},transition:{delay:.65},className:"mt-2.5 text-xs text-muted",children:"tryotter.co.kr/secret-sauce"})]})}function aQ({canSkip:e,onSkip:t,onReplay:i}){return(0,r.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2",children:[(0,r.jsxs)("button",{onClick:i,"aria-label":"ì²ìë¶í°",className:"rounded-full border border-border bg-surface/90 px-2.5 py-2 text-xs font-bold text-muted shadow-sm backdrop-blur transition-colors hover:text-foreground sm:px-3.5",children:["âº",(0,r.jsx)("span",{className:"hidden sm:inline",children:" ì²ìë¶í°"})]}),e&&(0,r.jsxs)("button",{onClick:t,"aria-label":"ê±´ëë°ê¸°",className:"rounded-full border border-border bg-surface/90 px-2.5 py-2 text-xs font-bold text-muted shadow-sm backdrop-blur transition-colors hover:text-foreground sm:px-3.5",children:[(0,r.jsx)("span",{className:"hidden sm:inline",children:"ê±´ëë°ê¸° "}),"â"]})]})}e.s(["DemoApp",0,function(){let[e,t]=(0,a.useState)("intro"),[i,s]=(0,a.useState)("tour"),[n,o]=(0,a.useState)("full"),[l,h]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=setTimeout(()=>r$("demo_dwell_15s"),15e3),t=setTimeout(()=>r$("demo_dwell_45s"),45e3);return()=>{clearTimeout(e),clearTimeout(t)}},[]),(0,a.useEffect)(()=>{"tour"===i&&("settlement"===e?r$("demo_reached_settlement"):"cta"===e&&r$("demo_reached_cta"))},[e,i]);let c="hall"===e||"pos"===e||"settlement"===e,d="pos"===e?`pos-${i}-${n}`:e;return(0,r.jsx)("main",{className:"flex min-h-[100dvh] flex-col items-center justify-center bg-background p-0 md:p-4",children:(0,r.jsxs)("div",{className:"relative h-[100dvh] w-full overflow-hidden border-0 bg-surface md:h-[88vh] md:max-h-[840px] md:max-w-5xl md:rounded-3xl md:border md:border-border md:shadow-[0_16px_40px_-12px_rgba(32,53,90,0.18)]",children:[(0,r.jsx)(N,{mode:"wait",children:(0,r.jsxs)(rO.div,{initial:{opacity:0}
9,animate:{opacity:1},exit:{opacity:0},transition:{duration:.35},className:"absolute inset-0",children:["intro"===e&&(0,r.jsx)(rU,{onStart:()=>{r$("demo_start"),t("questions")}}),"questions"===e&&(0,r.jsx)(rK,{onComplete:function(e,i,n,r){let a,l,c,d,u,m=(a=ay(n),l=r.length?r:[{name:"기본 ë©ë´",price:9e3}],c=e=>l[e%l.length],d=ai.map((e,t)=>{let i=c(t),s=t%2==1?c(t+2):null,n=[{name:i.name,price:i.price,qty:1},...s?[{name:s.name,price:s.price,qty:1}]:[]],r=av(n.reduce((e,t)=>e+t.price*t.qty,0));return{id:`${e.id}-1`,platform:e.id,code:ax[t],timeText:"ë°©ê¸ ì ",storeName:a[0],items:n,total:r,address:af[t%af.length],state:"fresh",shopInShop:!1}}),u=["baemin","coupang","yogiyo"],a.slice(1).forEach((e,t)=>{let i=c(t);d.push({id:`sis-${t+1}`,platform:u[t%u.length],code:ax[4+t],timeText:"ë°©ê¸ ì ",storeName:e,items:[{name:i.name,price:i.price,qty:1}],total:av(i.price),address:af[(t+2)%af.length],state:"fresh",shopInShop:!0})}),d);h({serviceType:e,paymentMode:i,category:n,storeName:ay(n)[0],businesses:ay(n),menus:r,orders:m}),s("tour"),o("full"),t("hall_delivery"===e?"hall":"pos")}}),"hall"===e&&l&&(0,r.jsx)(r3,{data:l,mode:l.paymentMode,handoff:"tour"===i,onDone:function(){t("tour"===i?"pos":"cta")}}),"pos"===e&&l&&(0,r.jsx)(ab,{data:l,focus:n,onDone:function(){t("tour"===i?"settlement":"cta")}}),"settlement"===e&&l&&(0,r.jsx)(aI,{data:l,onDone:function(){t("cta")}}),"cta"===e&&(0,r.jsx)(aZ,{storeName:l?.storeName??"ì°ë¦¬",serviceType:l?.serviceType??"delivery_only",paymentMode:l?.paymentMode??"postpay",onReplay:function(e){s("replay"),"auto"===e?(o("auto"),t("pos")):"multi"===e?(o("multi"),t("pos")):"hall"===e?t("hall"):t("settlement")}})]},d)}),"intro"!==e&&(0,r.jsx)("div",{className:"absolute right-3 top-3 z-40 md:bottom-3 md:top-auto",children:(0,r.jsx)(aQ,{canSkip:c,onSkip:function(){"replay"===i?t("cta"):"hall"===e?t("pos"):"pos"===e?t("settlement"):"settlement"===e&&t("cta")},onReplay:function(){h(null),s("tour"),o("full"),t("intro")}})})]})})}],64868)}]);
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.