HEX
Server: Apache
System: Linux cp4.skywebbox.com 5.14.0-503.15.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 28 07:25:19 EST 2024 x86_64
User: alfouzantranspor (1054)
PHP: 8.3.23
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/alfouzantranspor/www/wp-content/plugins_backup/surerank/build/vendor-ed663bda/index.js
"use strict";(globalThis.webpackChunksurerank=globalThis.webpackChunksurerank||[]).push([[9743],{1084:(t,e,i)=>{i.d(e,{j:()=>s,p:()=>r});const o=t=>e=>"string"===typeof e&&e.startsWith(t),s=o("--"),n=o("var(--"),r=t=>!!n(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},3322:(t,e,i)=>{i.d(e,{I:()=>o});const o=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},5272:(t,e,i)=>{i.d(e,{E4:()=>r,Hr:()=>d,W9:()=>c});var o=i(74748),s=i(42881),n=i(21727);const r=t=>t===o.ai||t===s.px,a=(t,e)=>parseFloat(t.split(", ")[e]),l=(t,e)=>(i,{transform:o})=>{if("none"===o||!o)return 0;const s=o.match(/^matrix3d\((.+)\)$/u);if(s)return a(s[1],e);{const e=o.match(/^matrix\((.+)\)$/u);return e?a(e[1],t):0}},u=new Set(["x","y","z"]),h=n.U.filter(t=>!u.has(t));function c(t){const e=[];return h.forEach(i=>{const o=t.getValue(i);void 0!==o&&(e.push([i,o.get()]),o.set(i.startsWith("scale")?1:0))}),e}const d={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:l(4,13),y:l(5,14)};d.translateX=d.x,d.translateY=d.y},6445:(t,e,i)=>{i.d(e,{OU:()=>c,Ql:()=>d,Ww:()=>m,hq:()=>n,o4:()=>l});var o=i(39301),s=i(24338);function n(t,e,i){return i+e*(t-i)}function r(t,e,i,o,s){return void 0!==s&&(t=n(t,s,o)),n(t,i,o)+e}function a(t,e=0,i=1,o,s){t.min=r(t.min,e,i,o,s),t.max=r(t.max,e,i,o,s)}function l(t,{x:e,y:i}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,i.translate,i.scale,i.originPoint)}const u=.999999999999,h=1.0000000000001;function c(t,e,i,o=!1){const n=i.length;if(!n)return;let r,a;e.x=e.y=1;for(let u=0;u<n;u++){r=i[u],a=r.projectionDelta;const{visualElement:n}=r.options;n&&n.props.style&&"contents"===n.props.style.display||(o&&r.options.layoutScroll&&r.scroll&&r!==r.root&&m(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,l(t,a)),o&&(0,s.HD)(r.latestValues)&&m(t,r.latestValues))}e.x<h&&e.x>u&&(e.x=1),e.y<h&&e.y>u&&(e.y=1)}function d(t,e){t.min=t.min+e,t.max=t.max+e}function p(t,e,i,s,n=.5){a(t,e,i,(0,o.k)(t.min,t.max,n),s)}function m(t,e){p(t.x,e.x,e.scaleX,e.scale,e.originX),p(t.y,e.y,e.scaleY,e.scale,e.originY)}},7859:(t,e,i)=>{function o(t){if("undefined"===typeof Proxy)return t;const e=new Map;return new Proxy((...e)=>t(...e),{get:(i,o)=>"create"===o?t:(e.has(o)||e.set(o,t(o)),e.get(o))})}i.d(e,{P:()=>$i});var s=i(35822),n=i(75900),r=i(71091),a=i(51963),l=i(33533),u=i(45288),h=i(2671);const c=u._.length;function d(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&d(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let i=0;i<c;i++){const o=u._[i],s=t.props[o];((0,a.w)(s)||!1===s)&&(e[o]=s)}return e}const p=[...u.U].reverse(),m=u.U.length;function f(t){let e=function(t){return e=>Promise.all(e.map(({animation:e,options:i})=>(0,h._)(t,e,i)))}(t),i=y(),o=!0;const u=e=>(i,o)=>{var s;const n=(0,l.K)(t,o,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(n){const{transition:t,transitionEnd:e,...o}=n;i={...i,...o,...e}}return i};function c(l){const{props:h}=t,c=d(t.parent)||{},f=[],g=new Set;let y={},x=1/0;for(let e=0;e<m;e++){const d=p[e],m=i[d],S=void 0!==h[d]?h[d]:c[d],w=(0,a.w)(S),T=d===l?m.isActive:null;!1===T&&(x=e);let P=S===c[d]&&S!==h[d]&&w;if(P&&o&&t.manuallyAnimateOnMount&&(P=!1),m.protectedKeys={...y},!m.isActive&&null===T||!S&&!m.prevProp||(0,s.N)(S)||"boolean"===typeof S)continue;const V=v(m.prevProp,S);let b=V||d===l&&m.isActive&&!P&&w||e>x&&w,C=!1;const A=Array.isArray(S)?S:[S];let R=A.reduce(u(d),{});!1===T&&(R={});const{prevResolvedValues:j={}}=m,D={...j,...R},k=e=>{b=!0,g.has(e)&&(C=!0,g.delete(e)),m.needsAnimating[e]=!0;const i=t.getValue(e);i&&(i.liveStyle=!1)};for(const t in D){const e=R[t],i=j[t];if(y.hasOwnProperty(t))continue;let o=!1;o=(0,n.p)(e)&&(0,n.p)(i)?!(0,r.a)(e,i):e!==i,o?void 0!==e&&null!==e?k(t):g.add(t):void 0!==e&&g.has(t)?k(t):m.protectedKeys[t]=!0}m.prevProp=S,m.prevResolvedValues=R,m.isActive&&(y={...y,...R}),o&&t.blockInitialAnimation&&(b=!1),b&&(!P||!V||C)&&f.push(...A.map(t=>({animation:t,options:{type:d}})))}if(g.size){const e={};g.forEach(i=>{const o=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=null!==o&&void 0!==o?o:null}),f.push({animation:e})}let S=Boolean(f.length);return!o||!1!==h.initial&&h.initial!==h.animate||t.manuallyAnimateOnMount||(S=!1),o=!1,S?e(f):Promise.resolve()}return{animateChanges:c,setActive:function(e,o){var s;if(i[e].isActive===o)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,o)}),i[e].isActive=o;const n=c(e);for(const t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=y(),o=!0}}}function v(t,e){return"string"===typeof e?e!==t:!!Array.isArray(e)&&!(0,r.a)(e,t)}function g(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function y(){return{animate:g(!0),whileInView:g(),whileHover:g(),whileTap:g(),whileDrag:g(),whileFocus:g(),exit:g()}}var x=i(20440);let S=0;const w={animation:{Feature:class extends x.X{constructor(t){super(t),t.animationState||(t.animationState=f(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();(0,s.N)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends x.X{constructor(){super(...arguments),this.id=S++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t);e&&!t&&o.then(()=>e(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}};var T=i(80195),P=i(98676),V=i(74848),b=i(51609),C=i(44044),A=i(4965),R=i(85193);const j={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var D=i(42881);function k(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const E={correct:(t,e)=>{if(!e.target)return t;if("string"===typeof t){if(!D.px.test(t))return t;t=parseFloat(t)}return`${k(t,e.target.x)}% ${k(t,e.target.y)}%`}};var B=i(39301),L=i(5092);const M={correct:(t,{treeScale:e,projectionDelta:i})=>{const o=t,s=L.f.parse(t);if(s.length>5)return o;const n=L.f.createTransformer(t),r="number"!==typeof s[0]?1:0,a=i.x.scale*e.x,l=i.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const u=(0,B.k)(a,l,.5);return"number"===typeof s[2+r]&&(s[2+r]/=u),"number"===typeof s[3+r]&&(s[3+r]/=u),n(s)}},F={};var U=i(33680),O=i(88804);class I extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:o}=this.props,{projection:s}=t;Object.assign(F,W),s&&(e.group&&e.group.add(s),i&&i.register&&o&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),j.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:i,drag:o,isPresent:s}=this.props,n=i.projection;return n?(n.isPresent=s,o||t.layoutDependency!==e||void 0===e?n.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?n.promote():n.relegate()||O.Gt.postRender(()=>{const t=n.getStack();t&&t.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),U.k.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function N(t){const[e,i]=(0,C.xQ)(),o=(0,b.useContext)(A.L);return(0,V.jsx)(I,{...t,layoutGroup:o,switchLayoutGroup:(0,b.useContext)(R.N),isPresent:e,safeToRemove:i})}const W={borderRadius:{...E,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:E,borderTopRightRadius:E,borderBottomLeftRadius:E,borderBottomRightRadius:E,boxShadow:M};var X=i(58370),$=i(11265),Y=i(26048),K=i(16902),H=i(45954),z=i(66818);const G=(t,e)=>t.depth-e.depth;class Q{constructor(){this.children=[],this.isDirty=!1}add(t){(0,z.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,z.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(G),this.isDirty=!1,this.children.forEach(t)}}var Z=i(508),q=i(29748),_=i(39706),J=i(57582),tt=i(46452),et=i(22960);const it=["TopLeft","TopRight","BottomLeft","BottomRight"],ot=it.length,st=t=>"string"===typeof t?parseFloat(t):t,nt=t=>"number"===typeof t||D.px.test(t);function rt(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const at=ut(0,.5,et.yT),lt=ut(.5,.95,$.l);function ut(t,e,i){return o=>o<t?0:o>e?1:i((0,tt.q)(t,e,o))}function ht(t,e){t.min=e.min,t.max=e.max}function ct(t,e){ht(t.x,e.x),ht(t.y,e.y)}function dt(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var pt=i(6445),mt=i(87916);function ft(t,e,i,o,s){return t=(0,pt.hq)(t-=e,1/i,o),void 0!==s&&(t=(0,pt.hq)(t,1/s,o)),t}function vt(t,e,[i,o,s],n,r){!function(t,e=0,i=1,o=.5,s,n=t,r=t){if(D.KN.test(e)&&(e=parseFloat(e),e=(0,B.k)(r.min,r.max,e/100)-r.min),"number"!==typeof e)return;let a=(0,B.k)(n.min,n.max,o);t===n&&(a-=e),t.min=ft(t.min,e,i,a,s),t.max=ft(t.max,e,i,a,s)}(t,e[i],e[o],e[s],e.scale,n,r)}const gt=["x","scaleX","originX"],yt=["y","scaleY","originY"];function xt(t,e,i,o){vt(t.x,e,gt,i?i.x:void 0,o?o.x:void 0),vt(t.y,e,yt,i?i.y:void 0,o?o.y:void 0)}var St=i(9038);function wt(t){return 0===t.translate&&1===t.scale}function Tt(t){return wt(t.x)&&wt(t.y)}function Pt(t,e){return t.min===e.min&&t.max===e.max}function Vt(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function bt(t,e){return Vt(t.x,e.x)&&Vt(t.y,e.y)}function Ct(t){return(0,mt.CQ)(t.x)/(0,mt.CQ)(t.y)}function At(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Rt{constructor(){this.members=[]}add(t){(0,z.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,z.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex(e=>t===e);if(0===e)return!1;let i;for(let o=e;o>=0;o--){const t=this.members[o];if(!1!==t.isPresent){i=t;break}}return!!i&&(this.promote(i),!0)}promote(t,e){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;!1===o&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var jt=i(38302),Dt=i(24338);const kt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Et="undefined"!==typeof window&&void 0!==window.MotionDebug,Bt=["","X","Y","Z"],Lt={visibility:"hidden"};let Mt=0;function Ft(t,e,i,o){const{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),o&&(o[t]=0))}function Ut(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const i=(0,K.P)(e);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:e,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",O.Gt,!(e||o))}const{parent:o}=t;o&&!o.hasCheckedOptimisedAppear&&Ut(o)}function Ot({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:o,resetTransform:s}){return class{constructor(t={},i=(null===e||void 0===e?void 0:e())){this.id=Mt++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Et&&(kt.totalNodes=kt.resolvedTargetDeltas=kt.recalculatedProjection=0),this.nodes.forEach(Wt),this.nodes.forEach(Gt),this.nodes.forEach(Qt),this.nodes.forEach(Xt),Et&&window.MotionDebug.record(kt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,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 Q)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new _.v),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;var o;this.isSVG=(o=e)instanceof SVGElement&&"svg"!==o.tagName,this.instance=e;const{layoutId:s,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(n||s)&&(this.isLayoutDirty=!0),t){let i;const o=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=(0,q.c)(o,250),j.hasAnimatedSinceResize&&(j.hasAnimatedSinceResize=!1,this.nodes.forEach(zt))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&r&&(s||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:o})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const s=this.options.transition||r.getDefaultTransition()||ee,{onLayoutAnimationStart:n,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!bt(this.targetLayout,o)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...(0,X.rU)(s,"layout"),onPlay:n,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||zt(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,O.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Zt),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ut(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;s<this.path.length;s++){const t=this.path[s];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;const o=this.getTransformTemplate();this.prevTransformTemplateValue=o?o(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Yt);this.isUpdating||this.nodes.forEach(Kt),this.isUpdating=!1,this.nodes.forEach(Ht),this.nodes.forEach(It),this.nodes.forEach(Nt),this.clearAllSnapshots();const t=H.k.now();O.uv.delta=(0,Z.q)(0,1e3/60,t-O.uv.timestamp),O.uv.timestamp=t,O.uv.isProcessing=!0,O.PP.update.process(O.uv),O.PP.preRender.process(O.uv),O.PP.render.process(O.uv),O.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,U.k.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($t),this.sharedNodes.forEach(qt)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,O.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){O.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let i=0;i<this.path.length;i++)this.path[i].updateScroll();const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,St.ge)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){const e=o(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!Tt(this.projectionDelta),i=this.getTransformTemplate(),o=i?i(this.latestValues,""):void 0,n=o!==this.prevTransformTemplateValue;t&&(e||(0,Dt.HD)(this.latestValues)||n)&&(s(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let i=this.removeElementScroll(e);var o;return t&&(i=this.removeTransform(i)),se((o=i).x),se(o.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return(0,St.ge)();const i=e.measureViewportBox();if(!(null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)&&!this.path.some(re)){const{scroll:t}=this.root;t&&((0,pt.Ql)(i.x,t.offset.x),(0,pt.Ql)(i.y,t.offset.y))}return i}removeElementScroll(t){var e;const i=(0,St.ge)();if(ct(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let o=0;o<this.path.length;o++){const e=this.path[o],{scroll:s,options:n}=e;e!==this.root&&s&&n.layoutScroll&&(s.wasRoot&&ct(i,t),(0,pt.Ql)(i.x,s.offset.x),(0,pt.Ql)(i.y,s.offset.y))}return i}applyTransform(t,e=!1){const i=(0,St.ge)();ct(i,t);for(let o=0;o<this.path.length;o++){const t=this.path[o];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&(0,pt.Ww)(i,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),(0,Dt.HD)(t.latestValues)&&(0,pt.Ww)(i,t.latestValues)}return(0,Dt.HD)(this.latestValues)&&(0,pt.Ww)(i,this.latestValues),i}removeTransform(t){const e=(0,St.ge)();ct(e,t);for(let i=0;i<this.path.length;i++){const t=this.path[i];if(!t.instance)continue;if(!(0,Dt.HD)(t.latestValues))continue;(0,Dt.vk)(t.latestValues)&&t.updateSnapshot();const o=(0,St.ge)();ct(o,t.measurePageBox()),xt(e,t.latestValues,t.snapshot?t.snapshot.layoutBox:void 0,o)}return(0,Dt.HD)(this.latestValues)&&xt(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==O.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);const o=Boolean(this.resumingFrom)||this!==i;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:n}=this.options;if(this.layout&&(s||n)){if(this.resolvedRelativeTargetAt=O.uv.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,St.ge)(),this.relativeTargetOrigin=(0,St.ge)(),(0,mt.jA)(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),ct(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,St.ge)(),this.targetWithTransforms=(0,St.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,mt.N)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):ct(this.target,this.layout.layoutBox),(0,pt.o4)(this.target,this.targetDelta)):ct(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,St.ge)(),this.relativeTargetOrigin=(0,St.ge)(),(0,mt.jA)(this.relativeTargetOrigin,this.target,t.target),ct(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Et&&kt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!(0,Dt.vk)(this.parent.latestValues)&&!(0,Dt.vF)(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),i=Boolean(this.resumingFrom)||this!==e;let o=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(o=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(o=!1),this.resolvedRelativeTargetAt===O.uv.timestamp&&(o=!1),o)return;const{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!n)return;ct(this.layoutCorrected,this.layout.layoutBox);const r=this.treeScale.x,a=this.treeScale.y;(0,pt.OU)(this.layoutCorrected,this.treeScale,this.path,i),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,St.ge)());const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(dt(this.prevProjectionDelta.x,this.projectionDelta.x),dt(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,mt.vb)(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&At(this.projectionDelta.x,this.prevProjectionDelta.x)&&At(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Et&&kt.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,St.xU)(),this.projectionDelta=(0,St.xU)(),this.projectionDeltaWithTransform=(0,St.xU)()}setAnimationOrigin(t,e=!1){const i=this.snapshot,o=i?i.latestValues:{},s={...this.latestValues},n=(0,St.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r=(0,St.ge)(),a=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,h=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(te));let c;this.animationProgress=0,this.mixTargetDelta=e=>{const i=e/1e3;var l,d,p,m,f,v;_t(n.x,t.x,i),_t(n.y,t.y,i),this.setTargetDelta(n),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&((0,mt.jA)(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Jt((p=this.relativeTarget).x,(m=this.relativeTargetOrigin).x,(f=r).x,v=i),Jt(p.y,m.y,f.y,v),c&&Pt((l=this.relativeTarget).x,(d=c).x)&&Pt(l.y,d.y)&&(this.isProjectionDirty=!1),c||(c=(0,St.ge)()),ct(c,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,i,o,s,n){s?(t.opacity=(0,B.k)(0,void 0!==i.opacity?i.opacity:1,at(o)),t.opacityExit=(0,B.k)(void 0!==e.opacity?e.opacity:1,0,lt(o))):n&&(t.opacity=(0,B.k)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,o));for(let r=0;r<ot;r++){const s=`border${it[r]}Radius`;let n=rt(e,s),a=rt(i,s);void 0===n&&void 0===a||(n||(n=0),a||(a=0),0===n||0===a||nt(n)===nt(a)?(t[s]=Math.max((0,B.k)(st(n),st(a),o),0),(D.KN.test(a)||D.KN.test(n))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,B.k)(e.rotate||0,i.rotate||0,o))}(s,o,this.latestValues,i,h,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,O.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=O.Gt.update(()=>{j.hasAnimatedSinceResize=!0,this.currentAnimation=(0,Y.z)(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:i,layout:o,latestValues:s}=t;if(e&&i&&o){if(this!==t&&this.layout&&o&&ne(this.options.animationType,this.layout.layoutBox,o.layoutBox)){i=this.target||(0,St.ge)();const e=(0,mt.CQ)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;const o=(0,mt.CQ)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+o}ct(e,i),(0,pt.Ww)(e,s),(0,mt.vb)(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Rt),this.sharedNodes.get(t).add(e);const i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){const o=this.getStack();o&&o.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;const o={};i.z&&Ft("z",t,o,this.animationValues);for(let s=0;s<Bt.length;s++)Ft(`rotate${Bt[s]}`,t,o,this.animationValues),Ft(`skew${Bt[s]}`,t,o,this.animationValues);t.render();for(const s in o)t.setStaticValue(s,o[s]),this.animationValues&&(this.animationValues[s]=o[s]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Lt;const o={visibility:""},s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=(0,J.u)(null===t||void 0===t?void 0:t.pointerEvents)||"",o.transform=s?s(this.latestValues,""):"none",o;const n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=(0,J.u)(null===t||void 0===t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,Dt.HD)(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}const r=n.animationValues||n.latestValues;this.applyTransformsToTarget(),o.transform=function(t,e,i){let o="";const s=t.x.translate/e.x,n=t.y.translate/e.y,r=(null===i||void 0===i?void 0:i.z)||0;if((s||n||r)&&(o=`translate3d(${s}px, ${n}px, ${r}px) `),1===e.x&&1===e.y||(o+=`scale(${1/e.x}, ${1/e.y}) `),i){const{transformPerspective:t,rotate:e,rotateX:s,rotateY:n,skewX:r,skewY:a}=i;t&&(o=`perspective(${t}px) ${o}`),e&&(o+=`rotate(${e}deg) `),s&&(o+=`rotateX(${s}deg) `),n&&(o+=`rotateY(${n}deg) `),r&&(o+=`skewX(${r}deg) `),a&&(o+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(o+=`scale(${a}, ${l})`),o||"none"}(this.projectionDeltaWithTransform,this.treeScale,r),s&&(o.transform=s(r,o.transform));const{x:a,y:l}=this.projectionDelta;o.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.opacity=n.animationValues?n===this?null!==(i=null!==(e=r.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0;for(const u in F){if(void 0===r[u])continue;const{correct:t,applyTo:e}=F[u],i="none"===o.transform?r[u]:t(r[u],n);if(e){const t=e.length;for(let s=0;s<t;s++)o[e[s]]=i}else o[u]=i}return this.options.layoutId&&(o.pointerEvents=n===this?(0,J.u)(null===t||void 0===t?void 0:t.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(Yt),this.root.sharedNodes.clear()}}}function It(t){t.updateLayout()}function Nt(t){var e;const i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:o}=t.layout,{animationType:s}=t.options,n=i.source!==t.layout.source;"size"===s?(0,jt.X)(t=>{const o=n?i.measuredBox[t]:i.layoutBox[t],s=(0,mt.CQ)(o);o.min=e[t].min,o.max=o.min+s}):ne(s,i.layoutBox,e)&&(0,jt.X)(o=>{const s=n?i.measuredBox[o]:i.layoutBox[o],r=(0,mt.CQ)(e[o]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[o].max=t.relativeTarget[o].min+r)});const r=(0,St.xU)();(0,mt.vb)(r,e,i.layoutBox);const a=(0,St.xU)();n?(0,mt.vb)(a,t.applyTransform(o,!0),i.measuredBox):(0,mt.vb)(a,e,i.layoutBox);const l=!Tt(r);let u=!1;if(!t.resumeFrom){const o=t.getClosestProjectingParent();if(o&&!o.resumeFrom){const{snapshot:s,layout:n}=o;if(s&&n){const r=(0,St.ge)();(0,mt.jA)(r,i.layoutBox,s.layoutBox);const a=(0,St.ge)();(0,mt.jA)(a,e,n.layoutBox),bt(r,a)||(u=!0),o.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=o)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Wt(t){Et&&kt.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Xt(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function $t(t){t.clearSnapshot()}function Yt(t){t.clearMeasurements()}function Kt(t){t.isLayoutDirty=!1}function Ht(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function zt(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Gt(t){t.resolveTargetDelta()}function Qt(t){t.calcProjection()}function Zt(t){t.resetSkewAndRotation()}function qt(t){t.removeLeadSnapshot()}function _t(t,e,i){t.translate=(0,B.k)(e.translate,0,i),t.scale=(0,B.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function Jt(t,e,i,o){t.min=(0,B.k)(e.min,i.min,o),t.max=(0,B.k)(e.max,i.max,o)}function te(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const ee={duration:.45,ease:[.4,0,.1,1]},ie=t=>"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),oe=ie("applewebkit/")&&!ie("chrome/")?Math.round:$.l;function se(t){t.min=oe(t.min),t.max=oe(t.max)}function ne(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,mt.HQ)(Ct(e),Ct(i),.2)}function re(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}var ae=i(22946);const le=Ot({attachResizeListener:(t,e)=>(0,ae.k)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ue={current:void 0},he=Ot({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ue.current){const t=new le({});t.mount(window),t.setOptions({layoutScroll:!0}),ue.current=t}return ue.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),ce={pan:{Feature:P.f},drag:{Feature:T.w,ProjectionNode:he,MeasureLayout:N}};var de=i(42634),pe=i(47212),me=i(27253);const fe=new WeakMap,ve=new WeakMap,ge=t=>{const e=fe.get(t.target);e&&e(t)},ye=t=>{t.forEach(ge)},xe={some:0,all:1},Se={inView:{Feature:class extends x.X{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:o="some",once:s}=t;return function(t,e,i){const o=function({root:t,...e}){const i=t||document;ve.has(i)||ve.set(i,{});const o=ve.get(i),s=JSON.stringify(e);return o[s]||(o[s]=new IntersectionObserver(ye,{root:t,...e})),o[s]}(e);return fe.set(t,i),o.observe(t),()=>{fe.delete(t),o.unobserve(t)}}(this.node.current,{root:e?e.current:void 0,rootMargin:i,threshold:"number"===typeof o?o:xe[o]},t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:i,onViewportLeave:o}=this.node.getProps(),n=e?i:o;n&&n(t)})}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:me.H},focus:{Feature:pe.c},hover:{Feature:de.e}},we={layout:{ProjectionNode:he,MeasureLayout:N}};var Te=i(62284),Pe=i(39682),Ve=i(37341),be=i(51818),Ce=i(70916);const Ae={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"]},Re={};for(const Ki in Ae)Re[Ki]={isEnabled:t=>Ae[Ki].some(e=>!!t[e])};const je=Symbol.for("motionComponentSymbol");var De=i(53109);function ke(t,e,i){return(0,b.useCallback)(o=>{o&&t.onMount&&t.onMount(o),e&&(o?e.mount(o):e.unmount()),i&&("function"===typeof i?i(o):(0,De.X)(i)&&(i.current=o))},[e])}var Ee=i(71107),Be=i(73300),Le=i(36316);function Me(t,e,i,o,s){var n,r;const{visualElement:a}=(0,b.useContext)(Ve.A),l=(0,b.useContext)(Te.Y),u=(0,b.useContext)(Ee.t),h=(0,b.useContext)(Pe.Q).reducedMotion,c=(0,b.useRef)(null);o=o||l.renderer,!c.current&&o&&(c.current=o(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));const d=c.current,p=(0,b.useContext)(R.N);!d||d.projection||!s||"html"!==d.type&&"svg"!==d.type||function(t,e,i,o){const{layoutId:s,layout:n,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:Fe(t.parent)),t.projection.setOptions({layoutId:s,layout:n,alwaysMeasureLayout:Boolean(r)||a&&(0,De.X)(a),visualElement:t,animationType:"string"===typeof n?n:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:u})}(c.current,i,s,p);const m=(0,b.useRef)(!1);(0,b.useInsertionEffect)(()=>{d&&m.current&&d.update(i,u)});const f=i[Le.n],v=(0,b.useRef)(Boolean(f)&&!(null===(n=window.MotionHandoffIsComplete)||void 0===n?void 0:n.call(window,f))&&(null===(r=window.MotionHasOptimisedAnimation)||void 0===r?void 0:r.call(window,f)));return(0,Be.E)(()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),U.k.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())}),(0,b.useEffect)(()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,f)}),v.current=!1))}),d}function Fe(t){if(t)return!1!==t.options.allowProjection?t.projection:Fe(t.parent)}function Ue({layoutId:t}){const e=(0,b.useContext)(A.L).id;return e&&void 0!==t?e+"-"+t:t}const Oe=["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 Ie(t){return"string"===typeof t&&!t.includes("-")&&!!(Oe.indexOf(t)>-1||/[A-Z]/u.test(t))}var Ne=i(62569),We=i(12497),Xe=i(62829);const $e=t=>(e,i)=>{const o=(0,b.useContext)(Ve.A),s=(0,b.useContext)(Ee.t),n=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},o,s,n){const r={latestValues:Ye(o,s,n,t),renderState:e()};return i&&(r.onMount=t=>i({props:o,current:t,...r}),r.onUpdate=t=>i(t)),r}(t,e,o,s);return i?n():(0,Xe.M)(n)};function Ye(t,e,i,o){const n={},r=o(t,{});for(const s in r)n[s]=(0,J.u)(r[s]);let{initial:a,animate:l}=t;const u=(0,Ne.e)(t),h=(0,Ne.O)(t);e&&h&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let c=!!i&&!1===i.initial;c=c||!1===a;const d=c?l:a;if(d&&"boolean"!==typeof d&&!(0,s.N)(d)){const e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){const o=(0,We.a)(t,e[i]);if(o){const{transitionEnd:t,transition:e,...i}=o;for(const o in i){let t=i[o];Array.isArray(t)&&(t=t[c?t.length-1:0]),null!==t&&(n[o]=t)}for(const o in t)n[o]=t[o]}}}return n}var Ke=i(21727),He=i(1084);const ze=(t,e)=>e&&"number"===typeof t?e.transform(t):t;var Ge=i(84641);const Qe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ze=Ke.U.length;function qe(t,e,i){const{style:o,vars:s,transformOrigin:n}=t;let r=!1,a=!1;for(const l in e){const t=e[l];if(Ke.f.has(l))r=!0;else if((0,He.j)(l))s[l]=t;else{const e=ze(t,Ge.W[l]);l.startsWith("origin")?(a=!0,n[l]=e):o[l]=e}}if(e.transform||(r||i?o.transform=function(t,e,i){let o="",s=!0;for(let n=0;n<Ze;n++){const r=Ke.U[n],a=t[r];if(void 0===a)continue;let l=!0;if(l="number"===typeof a?a===(r.startsWith("scale")?1:0):0===parseFloat(a),!l||i){const t=ze(a,Ge.W[r]);l||(s=!1,o+=`${Qe[r]||r}(${t}) `),i&&(e[r]=t)}}return o=o.trim(),i?o=i(e,s?"":o):s&&(o="none"),o}(e,t.transform,i):o.transform&&(o.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:i=0}=n;o.transformOrigin=`${t} ${e} ${i}`}}const _e={offset:"stroke-dashoffset",array:"stroke-dasharray"},Je={offset:"strokeDashoffset",array:"strokeDasharray"};function ti(t,e,i){return"string"===typeof t?t:D.px.transform(e+i*t)}function ei(t,{attrX:e,attrY:i,attrScale:o,originX:s,originY:n,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...u},h,c){if(qe(t,u,c),h)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(void 0!==s||void 0!==n||p.transform)&&(p.transformOrigin=function(t,e,i){return`${ti(e,t.x,t.width)} ${ti(i,t.y,t.height)}`}(m,void 0!==s?s:.5,void 0!==n?n:.5)),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==o&&(d.scale=o),void 0!==r&&function(t,e,i=1,o=0,s=!0){t.pathLength=1;const n=s?_e:Je;t[n.offset]=D.px.transform(-o);const r=D.px.transform(e),a=D.px.transform(i);t[n.array]=`${r} ${a}`}(d,r,a,l,!1)}const ii=t=>"string"===typeof t&&"svg"===t.toLowerCase();var oi=i(3322);function si(t,{style:e,vars:i},o,s){Object.assign(t.style,e,s&&s.getProjectionStyles(o));for(const n in i)t.style.setProperty(n,i[n])}const ni=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ri(t,e,i,o){si(t,e,void 0,o);for(const s in e.attrs)t.setAttribute(ni.has(s)?s:(0,oi.I)(s),e.attrs[s])}var ai=i(65700);function li(t,{layout:e,layoutId:i}){return Ke.f.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!F[t]||"opacity"===t)}function ui(t,e,i){var o;const{style:s}=t,n={};for(const r in s)((0,ai.S)(s[r])||e.style&&(0,ai.S)(e.style[r])||li(r,t)||void 0!==(null===(o=null===i||void 0===i?void 0:i.getValue(r))||void 0===o?void 0:o.liveStyle))&&(n[r]=s[r]);return n}function hi(t,e,i){const o=ui(t,e,i);for(const s in t)((0,ai.S)(t[s])||(0,ai.S)(e[s]))&&(o[-1!==Ke.U.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=t[s]);return o}const ci=["x","y","width","height","cx","cy","r"],di={useVisualState:$e({scrapeMotionValuesFromProps:hi,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onUpdate:({props:t,prevProps:e,current:i,renderState:o,latestValues:s})=>{if(!i)return;let n=!!t.drag;if(!n)for(const a in s)if(Ke.f.has(a)){n=!0;break}if(!n)return;let r=!e;if(e)for(let a=0;a<ci.length;a++){const i=ci[a];t[i]!==e[i]&&(r=!0)}r&&O.Gt.read(()=>{!function(t,e){try{e.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(i){e.dimensions={x:0,y:0,width:0,height:0}}}(i,o),O.Gt.render(()=>{ei(o,s,ii(i.tagName),t.transformTemplate),ri(i,o)})})}})},pi={useVisualState:$e({scrapeMotionValuesFromProps:ui,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function mi(t,e,i){for(const o in e)(0,ai.S)(e[o])||li(o,i)||(t[o]=e[o])}function fi(t,e){const i={},o=function(t,e){const i={};return mi(i,t.style||{},t),Object.assign(i,function({transformTemplate:t},e){return(0,b.useMemo)(()=>{const i={style:{},transform:{},transformOrigin:{},vars:{}};return qe(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),i}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=o,i}const vi=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function gi(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||vi.has(t)}let yi=t=>!gi(t);try{(xi=require("@emotion/is-prop-valid").default)&&(yi=t=>t.startsWith("on")?!gi(t):xi(t))}catch(Yi){}var xi;function Si(t,e,i,o){const s=(0,b.useMemo)(()=>{const i={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return ei(i,e,ii(o),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){const e={};mi(e,t.style,t),s.style={...e,...s.style}}return s}function wi(t=!1){return(e,i,o,{latestValues:s},n)=>{const r=(Ie(e)?Si:fi)(i,s,n,e),a=function(t,e,i){const o={};for(const s in t)"values"===s&&"object"===typeof t.values||(yi(s)||!0===i&&gi(s)||!e&&!gi(s)||t.draggable&&s.startsWith("onDrag"))&&(o[s]=t[s]);return o}(i,"string"===typeof e,t),l=e!==b.Fragment?{...a,...r,ref:o}:{},{children:u}=i,h=(0,b.useMemo)(()=>(0,ai.S)(u)?u.get():u,[u]);return(0,b.createElement)(e,{...l,children:h})}}function Ti(t,e){return function(i,{forwardMotionProps:o}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:o,Component:s}){var n,r;function a(t,n){let r;const a={...(0,b.useContext)(Pe.Q),...t,layoutId:Ue(t)},{isStatic:l}=a,u=(0,be.z)(t),h=o(t,l);if(!l&&Ce.B){(0,b.useContext)(Te.Y);const t=function(t){const{drag:e,layout:i}=Re;if(!e&&!i)return{};const o={...e,...i};return{MeasureLayout:(null===e||void 0===e?void 0:e.isEnabled(t))||(null===i||void 0===i?void 0:i.isEnabled(t))?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}(a);r=t.MeasureLayout,u.visualElement=Me(s,h,a,e,t.ProjectionNode)}return(0,V.jsxs)(Ve.A.Provider,{value:u,children:[r&&u.visualElement?(0,V.jsx)(r,{visualElement:u.visualElement,...a}):null,i(s,t,ke(h,u.visualElement,n),h,l,u.visualElement)]})}t&&function(t){for(const e in t)Re[e]={...Re[e],...t[e]}}(t),a.displayName=`motion.${"string"===typeof s?s:`create(${null!==(r=null!==(n=s.displayName)&&void 0!==n?n:s.name)&&void 0!==r?r:""})`}`;const l=(0,b.forwardRef)(a);return l[je]=s,l}({...Ie(i)?di:pi,preloadedFeatures:t,useRender:wi(o),createVisualElement:e,Component:i})}}var Pi=i(18297),Vi=i(30400),bi=i(93316),Ci=i(28899),Ai=i(64656),Ri=i(18205),ji=i(19668),Di=i(31007),ki=i(66708),Ei=i(16653);const Bi=[...ki.T,Di.y,L.f],Li=new WeakMap;var Mi=i(84087);const Fi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ui{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:o,blockInitialAnimation:s,visualState:n},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Mi.h,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=H.k.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,O.Gt.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:u}=n;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=r,this.blockInitialAnimation=Boolean(s),this.isControllingVariants=(0,Ne.e)(e),this.isVariantNode=(0,Ne.O)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const d in c){const t=c[d];void 0!==a[d]&&(0,ai.S)(t)&&t.set(a[d],!1)}}mount(t){this.current=t,Li.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),Ai.r.current||(0,Ci.U)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ai.O.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Li.delete(this.current),this.projection&&this.projection.unmount(),(0,O.WG)(this.notifyUpdate),(0,O.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=Ke.f.has(t),o=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&O.Gt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);let n;window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{o(),s(),n&&n(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in Re){const e=Re[t];if(!e)continue;const{isEnabled:i,Feature:o}=e;if(!this.features[t]&&o&&i(this.props)&&(this.features[t]=new o(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,St.ge)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let i=0;i<Fi.length;i++){const e=Fi[i];this.propEventSubscriptions[e]&&(this.propEventSubscriptions[e](),delete this.propEventSubscriptions[e]);const o=t["on"+e];o&&(this.propEventSubscriptions[e]=this.on(e,o))}this.prevMotionValues=function(t,e,i){for(const o in e){const s=e[o],n=i[o];if((0,ai.S)(s))t.addValue(o,s);else if((0,ai.S)(n))t.addValue(o,(0,Ri.OQ)(s,{owner:t}));else if(n!==s)if(t.hasValue(o)){const e=t.getValue(o);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{const e=t.getStaticValue(o);t.addValue(o,(0,Ri.OQ)(void 0!==e?e:s,{owner:t}))}}for(const o in i)void 0===e[o]&&t.removeValue(o);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,Ri.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let o=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return void 0!==o&&null!==o&&("string"===typeof o&&((0,Vi.i)(o)||(0,bi.$)(o))?o=parseFloat(o):!Bi.find((0,Ei.w)(o))&&L.f.test(e)&&(o=(0,ji.J)(t,e)),this.setBaseTarget(t,(0,ai.S)(o)?o.get():o)),(0,ai.S)(o)?o.get():o}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:i}=this.props;let o;if("string"===typeof i||"object"===typeof i){const s=(0,We.a)(this.props,i,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);s&&(o=s[t])}if(i&&void 0!==o)return o;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,ai.S)(s)?void 0!==this.initialValues[t]&&void 0===o?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new _.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}var Oi=i(90105);class Ii extends Ui{constructor(){super(...arguments),this.KeyframeResolver=Oi.K}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;(0,ai.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}var Ni=i(73303);class Wi extends Ii{constructor(){super(...arguments),this.type="html",this.renderInstance=si}readValueFromInstance(t,e){if(Ke.f.has(e)){const t=(0,Ni.D)(e);return t&&t.default||0}{const i=window.getComputedStyle(t),o=((0,He.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"===typeof o?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,Pi.m)(t,e)}build(t,e,i){qe(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return ui(t,e,i)}}class Xi extends Ii{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=St.ge}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Ke.f.has(e)){const t=(0,Ni.D)(e);return t&&t.default||0}return e=ni.has(e)?e:(0,oi.I)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return hi(t,e,i)}build(t,e,i){ei(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,o){ri(t,e,0,o)}mount(t){this.isSVGTag=ii(t.tagName),super.mount(t)}}const $i=o(Ti({...w,...Se,...ce,...we},(t,e)=>Ie(t)?new Xi(e):new Wi(e,{allowProjection:t!==b.Fragment})))},8102:(t,e,i)=>{i.d(e,{U:()=>a});var o=i(657),s=i(18205),n=i(33533);function r(t,e,i){t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,s.OQ)(i))}function a(t,e){const i=(0,n.K)(t,e);let{transitionEnd:s={},transition:a={},...l}=i||{};l={...l,...s};for(const n in l)r(t,n,(0,o.K)(l[n]))}},9038:(t,e,i)=>{i.d(e,{ge:()=>s,xU:()=>o});const o=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),s=()=>({x:{min:0,max:0},y:{min:0,max:0}})},12497:(t,e,i)=>{function o(t){const e=[{},{}];return null===t||void 0===t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function s(t,e,i,s){if("function"===typeof e){const[n,r]=o(s);e=e(void 0!==i?i:t.custom,n,r)}if("string"===typeof e&&(e=t.variants&&t.variants[e]),"function"===typeof e){const[n,r]=o(s);e=e(void 0!==i?i:t.custom,n,r)}return e}i.d(e,{a:()=>s})},16653:(t,e,i)=>{i.d(e,{w:()=>o});const o=t=>e=>e.test(t)},18297:(t,e,i)=>{i.d(e,{L:()=>r,m:()=>n});var o=i(85436),s=i(6445);function n(t,e){return(0,o.FY)((0,o.bS)(t.getBoundingClientRect(),e))}function r(t,e,i){const o=n(t,i),{scroll:r}=e;return r&&((0,s.Ql)(o.x,r.offset.x),(0,s.Ql)(o.y,r.offset.y)),o}},19668:(t,e,i)=>{i.d(e,{J:()=>r});var o=i(5092),s=i(14088),n=i(73303);function r(t,e){let i=(0,n.D)(t);return i!==s.p&&(i=o.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},20440:(t,e,i)=>{i.d(e,{X:()=>o});class o{constructor(t){this.isMounted=!1,this.node=t}update(){}}},21727:(t,e,i)=>{i.d(e,{U:()=>o,f:()=>s});const o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(o)},24338:(t,e,i)=>{function o(t){return void 0===t||1===t}function s({scale:t,scaleX:e,scaleY:i}){return!o(t)||!o(e)||!o(i)}function n(t){return s(t)||r(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function r(t){return a(t.x)||a(t.y)}function a(t){return t&&"0%"!==t}i.d(e,{HD:()=>n,vF:()=>r,vk:()=>s})},33533:(t,e,i)=>{i.d(e,{K:()=>s});var o=i(12497);function s(t,e,i){const s=t.getProps();return(0,o.a)(s,e,void 0!==i?i:s.custom,t)}},38302:(t,e,i)=>{function o(t){return[t("x"),t("y")]}i.d(e,{X:()=>o})},40568:(t,e,i)=>{i.d(e,{$:()=>s});var o=i(21727);const s=new Set(["width","height","top","left","right","bottom",...o.U])},45288:(t,e,i)=>{i.d(e,{U:()=>o,_:()=>s});const o=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],s=["initial",...o]},50833:(t,e,i)=>{i.d(e,{M:()=>s});const o=t=>!t.isLayoutDirty&&t.willUpdate(!1);function s(){const t=new Set,e=new WeakMap,i=()=>t.forEach(o);return{add:o=>{t.add(o),e.set(o,o.addEventListener("willUpdate",i))},remove:o=>{t.delete(o);const s=e.get(o);s&&(s(),e.delete(o)),i()},dirty:i}}},51963:(t,e,i)=>{function o(t){return"string"===typeof t||Array.isArray(t)}i.d(e,{w:()=>o})},62569:(t,e,i)=>{i.d(e,{O:()=>a,e:()=>r});var o=i(35822),s=i(51963),n=i(45288);function r(t){return(0,o.N)(t.animate)||n._.some(e=>(0,s.w)(t[e]))}function a(t){return Boolean(r(t)||t.variants)}},66708:(t,e,i)=>{i.d(e,{T:()=>r,n:()=>a});var o=i(74748),s=i(42881),n=i(16653);const r=[o.ai,s.px,s.KN,s.uj,s.vw,s.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>r.find((0,n.w)(t))},73303:(t,e,i)=>{i.d(e,{D:()=>r});var o=i(31007),s=i(14088);const n={...i(84641).W,color:o.y,backgroundColor:o.y,outlineColor:o.y,fill:o.y,stroke:o.y,borderColor:o.y,borderTopColor:o.y,borderRightColor:o.y,borderBottomColor:o.y,borderLeftColor:o.y,filter:s.p,WebkitFilter:s.p},r=t=>n[t]},84087:(t,e,i)=>{i.d(e,{h:()=>c,q:()=>h});var o=i(5272),s=i(88804);const n=new Set;let r=!1,a=!1;function l(){if(a){const t=Array.from(n).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{const e=(0,o.W9)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=i.get(t);e&&e.forEach(([e,i])=>{var o;null===(o=t.getValue(e))||void 0===o||o.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,r=!1,n.forEach(t=>t.complete()),n.clear()}function u(){n.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function h(){u(),l()}class c{constructor(t,e,i,o,s,n=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=o,this.element=s,this.isAsync=n}scheduleResolve(){this.isScheduled=!0,this.isAsync?(n.add(this),r||(r=!0,s.Gt.read(u),s.Gt.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:i,motionValue:o}=this;for(let s=0;s<t.length;s++)if(null===t[s])if(0===s){const s=null===o||void 0===o?void 0:o.get(),n=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){const o=i.readValue(e,n);void 0!==o&&null!==o&&(t[0]=o)}void 0===t[0]&&(t[0]=n),o&&void 0===s&&o.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),n.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,n.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}},84641:(t,e,i)=>{i.d(e,{W:()=>r});var o=i(74748),s=i(42881);const n={...o.ai,transform:Math.round},r={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,radius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,backgroundPositionX:s.px,backgroundPositionY:s.px,rotate:s.uj,rotateX:s.uj,rotateY:s.uj,rotateZ:s.uj,scale:o.hs,scaleX:o.hs,scaleY:o.hs,scaleZ:o.hs,skew:s.uj,skewX:s.uj,skewY:s.uj,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:o.X4,originX:s.gQ,originY:s.gQ,originZ:s.px,zIndex:n,size:s.px,fillOpacity:o.X4,strokeOpacity:o.X4,numOctaves:n}},85436:(t,e,i)=>{function o({top:t,left:e,right:i,bottom:o}){return{x:{min:e,max:i},y:{min:t,max:o}}}function s({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function n(t,e){if(!e)return t;const i=e({x:t.left,y:t.top}),o=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:o.y,right:o.x}}i.d(e,{FY:()=>o,bS:()=>n,pA:()=>s})},87916:(t,e,i)=>{i.d(e,{CQ:()=>l,HQ:()=>u,N:()=>p,jA:()=>f,vb:()=>c});var o=i(39301);const s=.9999,n=1.0001,r=-.01,a=.01;function l(t){return t.max-t.min}function u(t,e,i){return Math.abs(t-e)<=i}function h(t,e,i,u=.5){t.origin=u,t.originPoint=(0,o.k)(e.min,e.max,t.origin),t.scale=l(i)/l(e),t.translate=(0,o.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=s&&t.scale<=n||isNaN(t.scale))&&(t.scale=1),(t.translate>=r&&t.translate<=a||isNaN(t.translate))&&(t.translate=0)}function c(t,e,i,o){h(t.x,e.x,i.x,o?o.originX:void 0),h(t.y,e.y,i.y,o?o.originY:void 0)}function d(t,e,i){t.min=i.min+e.min,t.max=t.min+l(e)}function p(t,e,i){d(t.x,e.x,i.x),d(t.y,e.y,i.y)}function m(t,e,i){t.min=e.min-i.min,t.max=t.min+l(e)}function f(t,e,i){m(t.x,e.x,i.x),m(t.y,e.y,i.y)}},90105:(t,e,i)=>{i.d(e,{K:()=>v});var o=i(88357),s=i(40568),n=i(5092),r=i(19668);const a=new Set(["auto","none","0"]);var l=i(84087),u=i(4788),h=i(30400),c=i(1084);const d=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function p(t,e,i=1){(0,u.V)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[o,s]=function(t){const e=d.exec(t);if(!e)return[,];const[,i,o,s]=e;return[`--${null!==i&&void 0!==i?i:o}`,s]}(t);if(!o)return;const n=window.getComputedStyle(e).getPropertyValue(o);if(n){const t=n.trim();return(0,h.i)(t)?parseFloat(t):t}return(0,c.p)(s)?p(s,e,i+1):s}var m=i(5272),f=i(66708);class v extends l.h{constructor(t,e,i,o,s){super(t,e,i,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let s=0;s<t.length;s++){let i=t[s];if("string"===typeof i&&(i=i.trim(),(0,c.p)(i))){const o=p(i,e.current);void 0!==o&&(t[s]=o),s===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!s.$.has(i)||2!==t.length)return;const[o,n]=t,r=(0,f.n)(o),a=(0,f.n)(n);if(r!==a)if((0,m.E4)(r)&&(0,m.E4)(a))for(let s=0;s<t.length;s++){const e=t[s];"string"===typeof e&&(t[s]=parseFloat(e))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,i=[];for(let s=0;s<t.length;s++)(0,o.$)(t[s])&&i.push(s);i.length&&function(t,e,i){let o,s=0;for(;s<t.length&&!o;){const e=t[s];"string"===typeof e&&!a.has(e)&&(0,n.V)(e).values.length&&(o=t[s]),s++}if(o&&i)for(const n of e)t[n]=(0,r.J)(i,o)}(t,i,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=m.Hr[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const o=e[e.length-1];void 0!==o&&t.getValue(i,o).jump(o,!1)}measureEndState(){var t;const{element:e,name:i,unresolvedKeyframes:o}=this;if(!e||!e.current)return;const s=e.getValue(i);s&&s.jump(this.measuredOrigin,!1);const n=o.length-1,r=o[n];o[n]=m.Hr[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}}}]);