1import{a as T,p as V}from"./chunk-UVKPFVEO-7rOuMori.js";import{B as nr}from"./button-CzRP3kiw.js";const ir={title:"Finic | AI agents for fraud investigations",description:"Finic proactively discovers fraud networks, gathers evidence, and delivers findings teams can act on with confidence."},sr={logo:"Finic",nav:[{label:"Platform",href:"/#platform"},{label:"Docs",href:"/docs"},{label:"Security",href:"https://security.finic.ai/"},{label:"Field Notes",href:"/blog"}],cta:{label:"Contact",href:"/#contact"}},or={modelSrc:"/hi-fi-spider.glb",step1:{badge:{alt:"Backed by Y Combinator",src:"/logos/y-combinator.svg",href:"https://www.ycombinator.com/"},title:"AI agents for fraud investigations.",highlight:"",paragraph:"Finic autonomously **explores tables**, **runs queries**, **creates dashboards**, and **analyzes data** to identify threats designed to slip past your defenses.",cta:{label:"Learn more",href:"/#contact"},video:"/videos/footer.mp4",videoAlt:"SOC 2 and ISO certified"},step3:{subtitle:"The Finic layer",title:"Cyber criminals are **increasingly sophisticated** - they know how to exploit product and operational gaps to hit you where it hurts.",highlight:"",nodes:["Identity Fraud","ATOs","Loan Fraud","Insider Threats","Mule Accounts"],bottomText:"Finic Agents **proactively hunt** for patterns invisible to analysts working the queue one alert at a time."}},rr={subtitle:"Finic Platform",title:"Secure, autonomous, and self-improving.",paragraph:`Finic connects to all your systems, and learns from **past investigations** in order to identify **future threats**. 2 3Start by running Finic Agents from any Windows or macOS workstation. 4 5Scale by deploying to your private cloud.`,logosLabel:"Integrate with anything",video:"/videos/stones.mp4",logos:[{name:"Snowflake",src:"/logos/snowflake.svg"},{name:"Databricks",src:"/logos/databricks.svg"},{name:"Google",src:"/logos/google.svg"},{name:"AWS",src:"/logos/aws.svg"},{name:"Azure",src:"/logos/azure.svg"},{name:"Oracle",src:"/logos/oracle.svg"},{name:"Jack Henry",src:"/logos/jack-henry.svg"},{name:"Fiserv",src:"/logos/fiserv.svg"},{name:"FIS",src:"/logos/fis.svg"},{name:"Galileo",src:"/logos/galileo.svg"},{name:"LexisNexis",src:"/logos/lexisnexis.svg"},{name:"Socure",src:"/logos/socure.svg"},{name:"Persona",src:"/logos/persona.svg"},{name:"Veriff",src:"/logos/veriff.svg"},{name:"SentiLink",src:"/logos/senti-link.svg"},{name:"Prove",src:"/logos/prove.svg"},{name:"TransUnion",src:"/logos/transunion.svg"},{name:"Sardine",src:"/logos/sardine.svg"},{name:"Doppel",src:"/logos/doppel.svg"},{name:"Flashpoint",src:"/logos/flashpoint.png"},{name:"Verafin"},{name:"Actimize",src:"/logos/actimize.svg"},{name:"DataVisor",src:"/logos/datavisor.svg"},{name:"Unit21",src:"/logos/unit21.svg"},{name:"Alloy",src:"/logos/alloy.svg"},{name:"Hummingbird",src:"/logos/hummingbird.svg"},{name:"Feedzai",src:"/logos/feedzai.svg"},{name:"Sift",src:"/logos/sift.svg"},{name:"Oscilar"},{name:"Google Sheets",src:"/logos/google-sheets.svg"},{name:"Excel",src:"/logos/excel.svg"},{name:"PDF",src:"/logos/pdf.svg"},{name:"Slack",src:"/logos/slack.svg"},{name:"Gmail",src:"/logos/gmail.svg"},{name:"Zendesk",src:"/logos/zendesk.svg"},{name:"Salesforce",src:"/logos/salesforce.svg"},{name:"Notion",src:"/logos/notion.svg"}]},ar={title:"Get in touch."},lr={subtitle:"Core capabilities",title:"How Finic helps you stay ahead.",cards:[{video:"/videos/novel-threat-detection.mp4",poster:"/images/novel-threat-detection.avif",alt:"Autonomous investigations",title:"Autonomous Investigations",paragraph:"Finic runs thorough, in-depth investigations grounded in your own data, pulling transactions, accounts, and signals into one complete, evidence-based case."},{video:"/videos/agentic-analytics.mp4",poster:"/images/agentic-analytics.avif",alt:"Executive-ready reports",title:"Executive-Ready Reports",paragraph:"Get credit for losses prevented, not just alerts worked. Every investigation ends with a comprehensive report, with recommendations, evidence, and timelines laid out clearly so anyone can follow it."},{visual:"usaNetwork",alt:"Real-time intelligence network across the United States",title:"Real-Time Intelligence",paragraph:"Get notified when Finic detects threats at other companies, so you can stop attacks before they even reach you. The Finic network grows stronger the more companies participate."},{video:"/videos/account-linking.mp4",poster:"/images/account-linking.avif",alt:"Threat attribution",title:"Threat Attribution",paragraph:"Link accounts, devices, identities, and behavioral fingerprints back to the operation behind them, so isolated alerts become attributable campaigns."}]},cr={title:"Privacy Policy",lastUpdated:"Last updated January 26, 2025",model:"/lock.glb",sections:[{heading:"",content:['This Privacy Notice for Finic Technologies Inc. (doing business as Finic) ("we," "us," or "our"), describes how and why we might access, collect, store, use, and/or share ("process") your personal information when you use our services ("Services"), including when you:',"⢠Visit our website at https://finic.ai, or any website of ours that links to this Privacy Notice","⢠Engage with us in other related ways, including any sales, marketing, or events","Questions or concerns? Reading this Privacy Notice will help you understand your privacy rights and choices. We are responsible for making decisions about how your personal information is processed. If you do not agree with our policies and practices, please do not use our Services. If you still have any questions or concerns, please contact us at [email protected]."]},{heading:"Summary of key points",content:["This summary provides key points from our Privacy Notice, but you can find out more details about any of these topics by reading the full notice below.","What personal information do we process? When you visit, use, or navigate our Services, we may process personal information depending on how you interact with us and the Services, the choices you make, and the products and features you use.",'Do we process any sensitive personal information? Some of the information may be considered "special" or "sensitive" in certain
5jurisdictions, for example your racial or ethnic origins, sexual orientation, and religious beliefs. We do not process sensitive personal information.',"Do we collect any information from third parties? We do not collect any information from third parties.","How do we process your information? We process your information to provide, improve, and administer our Services, communicate with you, for security and fraud prevention, and to comply with law. We may also process your information for other purposes with your consent. We process your information only when we have a valid legal reason to do so.","In what situations and with which types of parties do we share personal information? We may share information in specific situations and with specific categories of third parties.","How do we keep your information safe? We have adequate organizational and technical processes and procedures in place to protect your personal information. However, no electronic transmission over the internet or information storage technology can be guaranteed to be 100% secure, so we cannot promise or guarantee that hackers, cybercriminals, or other unauthorized third parties will not be able to defeat our security and improperly collect, access, steal, or modify your information.","What are your rights? Depending on where you are located geographically, the applicable privacy law may mean you have certain rights regarding your personal information.","How do you exercise your rights? The easiest way to exercise your rights is by submitting a data subject access request, or by contacting us. We will consider and act upon any request in accordance with applicable data protection laws."]},{heading:"What information do we collect?",content:[]},{heading:"1.1. Personal information you disclose to us",content:["In Short: We collect personal information that you provide to us.","We collect personal information that you voluntarily provide to us when you express an interest in obtaining information about us or our products and Services, when you participate in activities on the Services, or otherwise when you contact us.","Personal Information Provided by You. The personal information that we collect depends on the context of your interactions with us and the Services, the choices you make, and the products and features you use. The personal information we collect may include names, email addresses, and job titles.","Sensitive Information. We do not process sensitive information.","All personal information that you provide to us must be true, complete, and accurate, and you must notify us of any changes to such personal information."]},{heading:"1.2. Information automatically collected",content:["In Short: Some information, such as your Internet Protocol (IP) address and/or browser and device characteristics, is collected automatically when you visit our Services.","We automatically collect certain information when you visit, use, or navigate the Services. This information does not reveal your specific identity (like your name or contact information) but may include device and usage information, such as your IP address, browser and device characteristics, operating system, language preferences, referring URLs, device name, country, location, information about how and when you use our Services, and other technical information. This information is primarily needed to maintain the security and operation of our Services, and for our internal analytics and reporting purposes.","Like many businesses, we also collect information through cookies and similar technologies. You can find out more about this in our Cookie Notice: https://finic.ai/legal/cookies.","The information we collect includes:","⢠Log and Usage Data. Log and usage data is service-related, diagnostic, usage, and performance information our servers automatically collect when you access or use our Services and which we record in log files. Depending on how you interact with us, this log data may include your IP address, device information, browser type, and settings and information about your activity in the Services.","⢠Device Data. We collect device data such as information about your computer, phone, tablet, or other device you use to access the Services. Depending on the device used, this device data may include information such as your IP address (or proxy server), device and application identification numbers, location, browser type, hardware model, Internet service provider and/or mobile carrier, operating system, and system configuration information.","⢠Location Data. We collect location data such as information about your device's location, which can be either precise or imprecise. How much information we collect depends on the type and settings of the device you use to access the Services. For example, we may use GPS and other technologies to collect geolocation data that tells us your current location (based on your IP address). You can opt out of allowing us to collect this information either by refusing access to the information or by disabling your Location setting on your device."]}]},ur={title:"Terms of Service",lastUpdated:"Last updated January 26, 2025",model:"/headphones.glb",sections:[{heading:"Agreement to our terms",content:['We are Finic Technologies Inc., doing business as Finic ("Company," "we," "us," "our"), a company registered in California, United States at 388 Beale St., #907, San Francisco, CA 94105.','We operate the website https://finic.ai (the "Site"), as well as any other related products and services that refer or link to these legal terms (the "Legal Terms") (collectively, the "Services").',"Finic is a software platform that automates financial crime and risk operations.","You can contact us by phone at 4152056930, email at [email protected], or by mail to 156 2nd St., San Francisco, CA 94108, United States.",'These Legal Terms constitute a legally binding agreement made between you, whether personally or on behalf of an entity ("you"), and Finic Technologies Inc., concerning your access to and use of the Services. You agree that by accessing the Services, you have read, understood, and agreed to be bound by all of these Legal Terms. IF YOU DO NOT AGREE WITH ALL OF THESE LEGAL TERMS, THEN YOU ARE EXPRESSLY PROHIBITED FROM USING THE SERVICES AND YOU MUST DISCONTINUE USE IMMEDIATELY.',"We will provide you with prior notice of any scheduled changes to the Services you are using. The modified Legal Terms will become effective upon posting or notifying you by [email protected], as stated in the email message. By continuing to use the Services after the effective date of any changes, you agree to be bound by the modified terms.","The Services are intended for users who are at least 18 years old. Persons under the age of 18 are not permitted to use or register for the Services.","We recommend that you print a copy of these Legal Terms for your records."]},{heading:"1. Our Services",content:["The information provided when using the Services is not intended for distribution to or use by any person or entity in any jurisdiction or country where such distribution or use would be contrary to law or regulation or which would subject us to any registration requirement within such jurisdiction or country. Accordingly, those persons who choose to access the Services from other locations do so on their own initiative and are solely responsible for compliance with local laws, if and to the extent local laws are applicable.","The Services are not tailored to comply with industry-specific regulations (Health Insurance Portability and Accountability Act (HIPAA), Federal Information Security Management Act (FISMA), etc.), so if your interactions would be subjected to such laws, you may
5not use the Services. You may not use the Services in a way that would violate the Gramm-Leach-Bliley Act (GLBA)."]},{heading:"2. Intellectual Property Rights",content:[]},{heading:"2.1. Our intellectual property",content:["The information provided when using the Services is not intended for distribution to or use by any person or entity in any jurisdiction or country where such distribution or use would be contrary to law or regulation or which would subject us to any registration requirement within such jurisdiction or country. Accordingly, those persons who choose to access the Services from other locations do so on their own initiative and are solely responsible for compliance with local laws, if and to the extent local laws are applicable.","The Services are not tailored to comply with industry-specific regulations (Health Insurance Portability and Accountability Act (HIPAA), Federal Information Security Management Act (FISMA), etc.), so if your interactions would be subjected to such laws, you may not use the Services. You may not use the Services in a way that would violate the Gramm-Leach-Bliley Act (GLBA)."]},{heading:"2.2. Your use of our Services",content:["The information provided when using the Services is not intended for distribution to or use by any person or entity in any jurisdiction or country where such distribution or use would be contrary to law or regulation or which would subject us to any registration requirement within such jurisdiction or country. Accordingly, those persons who choose to access the Services from other locations do so on their own initiative and are solely responsible for compliance with local laws, if and to the extent local laws are applicable.","The Services are not tailored to comply with industry-specific regulations (Health Insurance Portability and Accountability Act (HIPAA), Federal Information Security Management Act (FISMA), etc.), so if your interactions would be subjected to such laws, you may not use the Services. You may not use the Services in a way that would violate the Gramm-Leach-Bliley Act (GLBA)."]},{heading:"2.3. Your use of our Services",content:['Subject to your compliance with these Legal Terms, including the "PROHIBITED ACTIVITIES" section below, we grant you a non-exclusive, non-transferable, revocable license to:',"access the Services; and","download or print a copy of any portion of the Content to which you have properly gained access,","solely for your internal business purpose.","Except as set out in this section or elsewhere in our Legal Terms, no part of the Services and no Content or Marks may be copied, reproduced, aggregated, republished, uploaded, posted, publicly displayed, encoded, translated, transmitted, distributed, sold, licensed, or otherwise exploited for any commercial purpose whatsoever, without our express prior written permission.","If you wish to make any use of the Services, Content, or Marks other than as set out in this section or elsewhere in our Legal Terms, please address your request to: [email protected]. If we ever grant you the permission to post, reproduce, or publicly display any part of our Services or Content, you must identify us as the owners or licensors of the Services, Content, or Marks and ensure that any copyright or proprietary notice appears or is visible on posting, reproducing, or displaying our Content.","We reserve all rights not expressly granted to you in and to the Services, Content, and Marks.","Any breach of these Intellectual Property Rights will constitute a material breach of our Legal Terms and your right to use our Services will terminate immediately."]},{heading:"2.4. Your submissions",content:['Please review this section and the "PROHIBITED ACTIVITIES" section carefully prior to using our Services to understand the (a) rights you give us and (b) obligations you have when you post or upload any content through the Services.','Submissions: By directly sending us any question, comment, suggestion, idea, feedback, or other information about the Services ("Submissions"), you agree to assign to us all intellectual property rights in such Submission. You agree that we shall own this Submission and be entitled to its unrestricted use and dissemination for any lawful purpose, commercial or otherwise, without acknowledgment or compensation to you.',"You are responsible for what you post or upload: By sending us Submissions through any part of the Services you:",'confirm that you have read and agree with our "PROHIBITED ACTIVITIES" and will not post, send, publish, upload, or transmit through the Services any Submission that is illegal, harassing, hateful, harmful, defamatory, obscene, bullying, abusive, discriminatory, threatening to any person or group, sexually explicit, false, inaccurate, deceitful, or misleading;',"to the extent permissible by applicable law, waive any and all moral rights to any such Submission;","warrant that any such Submission are original to you or that you have the necessary rights and licenses to
5submit such Submissions and that you have full authority to grant us the above-mentioned rights in relation to your Submissions; and","warrant and represent that your Submissions do not constitute confidential information.","You are solely responsible for your Submissions and you expressly agree to reimburse us for any and all losses that we may suffer because of your breach of (a) this section, (b) any third partyâs intellectual property rights, or (c) applicable law."]}]},hr={meta:{title:"Fraud Intel Sharing: What Actually Works | Finic",description:"A fireside discussion with Finic and fraud-loss practitioners on how fraud teams can trade intelligence on emerging rings without trading PII."},hero:{subtitle:"Fireside discussion",title:"Fraud Intel Sharing: What Actually Works",standfirst:"How fraud teams can trade intelligence on emerging rings without trading PII. A fireside discussion with Finic and fraud-loss practitioners.",date:"Wednesday, August 12, 2026",time:"10:00 AM PT",duration:"25 minutes + live Q&A",cta:{label:"Save your seat",href:"#register"}},whyNow:{subtitle:"Why now",points:["Regulators are suddenly pushing for broader information sharing: see FinCEN's updated [314(b) fact sheet](https://www.fincen.gov/system/files/shared/314bfactsheet.pdf) and [ACAMS' analysis](https://www.acams.org/en/resource/information-sharing-combat-fraud-analysis-statutory-permissions-and-constraint) of the statutory permissions.","Finic facilitates information-sharing programs for Fortune 500 fintechs and banks."]},abstract:{subtitle:"The session",short:"Every institution sees a fragment of the same ring. The mule network draining your deposit accounts this quarter was cultivating accounts at three of your peers last quarter. But the machinery for sharing that (314(b) calls, consortium databases, informal Signal threads between fraud leads) is slow, legally fraught, or requires handing your customer data to a third party. This session is a practitioner conversation about what fraud teams can actually share today, what the emerging ring typologies look like right now, and how to build a sharing posture that gets you ahead of the next ring without pooling a single record.",long:"Fraud rings don't respect institutional boundaries, but fraud intelligence mostly does. By the time a coordinated check or ACH scheme surfaces as a loss at your bank, the same actors have usually been staging accounts across your peers for months. The industry's answers so far have been consortiums that demand your data, 314(b) calls that take weeks to arrange, and back-channel relationships that don't scale. Jason Fan (Finic CEO) and fellow fraud-loss practitioners break down the ring typologies emerging right now in deposit fraud, what a modern information-sharing posture looks like when behavioral signatures, not customer records, are the unit of exchange, and the concrete steps a fraud or risk leader can take this quarter to stop being the last institution to find out."},takeaways:{subtitle:"What you'll leave with",items:[{title:"A current read on emerging ring typologies",paragraph:"Recruitment patterns, sleeper cultivation, and bust-out staging in check and ACH deposit fraud, described concretely enough to go check your own queues."},{title:"A working model for what can and can't be shared",paragraph:"314(b) in practice, what consortiums actually give you (and what they cost you), and why the typology is the shareable artifact, not the PII."},{title:"A checklist for pressure-testing any vendor",paragraph:"Data residency, whether your data leaves your tenant, reciprocity terms, and latency from signal to detection."}]},agenda:{subtitle:"Agenda",items:[{subject:"Welcome & framing",time:"3 min",detail:"The asymmetry: rings coordinate across institutions, defenders don't. Housekeeping and the promise of Q&A."},{subject:"What's actually out there right now",time:"5 min",detail:"The emerging ring typologies. Recruitment channels, sleeper cultivation timelines, RDC check patterns, and how a bust-out is staged."}
5,{subject:"Why we can't see it",time:"4 min",detail:"Each institution holds a fragment. Rules engines see transactions; nobody sees the actor. Detection lands after the loss, because it lands after the ring has moved."},{subject:"Why sharing hasn't worked",time:"4 min",detail:"An honest tour: 314(b) is real but slow and underused. Consortiums demand pooling and still miss first-party. Back-channels don't scale."},{subject:"When the unit is the typology",time:"4 min",detail:"Exchange behavioral signatures and ring attribution; keep records in-tenant. Turn a peer's discovery into a rule in your own stack in hours, and no PII leaves the firewall."},{subject:"Q&A and close",time:"5 min",detail:"Live questions, then a consultative scoping call for teams who want to go deeper."}]},speakers:{subtitle:"Speakers",items:[{name:"Jason Fan",role:"Co-founder & CEO, Finic",note:"Fraud-intelligence lead. Previously built Robinhood's fraud platform."},{name:"Guest practitioner",role:"To be announced",note:"A senior fraud leader with hands-on experience fighting organized rings at scale."}]},seedQuestions:{subtitle:"Questions we'll put to the panel",items:["What ring typology surprised you most in the last 12 months, and how long had it been running before you saw it?","Be honest: when was the last time a 314(b) request actually changed an outcome for you?","What would you want to share with a peer institution if legal and infra weren't in the way?","If you learned a peer bank had been hit by the same ring six months earlier, what would you have done differently?",`What's the single change a fraud leader could make this quarter to shorten the gap between "a peer saw it" and "we caught it"?`]},register:{leadSubject:"Fraud Intel Sharing: What Actually Works",title:"Save your seat.",paragraph:"Register with your work email. We'll email you the joining link closer to the date.",fields:{name:{label:"Full name",placeholder:"Full name*"},email:{label:"Work email",placeholder:"Work email*"}},submitLabel:"Register",joiningLink:"",joinLabel:"Join the webinar",successTitle:"You're registered.",successBody:"We'll email you the joining link closer to the date.",successBodyEmailed:"We've emailed you the joining link. You can also join straight from here."}},dr={meta:{title:"What Risk Executives Need to Know About FinCEN's Updated 314(b) Guidance | Finic",description:"FinCEN's June 12, 2026 fact sheet puts fraud explicitly in scope for 314(b), blesses real-time sharing, and drops the nexus requirement. A 25-minute briefing on what fraud teams may now actually share."},hero:{subtitle:"Regulatory briefing",title:`What Risk Executives Need to Know 6About FinCEN's Updated 314(b) Guidance`,standfirst:"On June 12, 2026 FinCEN replaced its 314(b) fact sheet. Fraud is explicitly in scope, real-time sharing is blessed, and the nexus requirement is gone. What that permits, and what it doesn't.",date:"Wednesday, July 29, 2026",time:"10:00 AM PT",duration:"25 minutes + live Q&A",cta:{label:"Save your seat",href:"#register"}},abstract:{subtitle:"The session",short:"Most 314(b) programs were built AML-only and case-reactive, because that is what the 2020 guidance seemed to allow. FinCEN's new fact sheet says that reading was over-conservative: fraud is a specified unlawful activity, suspicion alone is enough, the receiving institution needs no relationship to the subject, and the sharing can happen in real time. This is a working session on what changed, what you can put on the wire tomorrow, and where the line still is.",long:"Fraud teams have spent years treating information sharing as a compliance obstacle. FinCEN's June 12, 2026 fact sheet, issued alongside Treasury's work with the White House Task Force to Eliminate Fraud and reinforced by an FDIC letter encouraging participation, removes most of the ambiguity that made counsel cautious. Fraud offenses are specified unlawful activities under 18 U.S.C. § 1956; an institution does not need to identify laundered proceeds to rely on the safe harbor. Sharing need not be tied to a customer or transaction of the receiving institution. It may happen verbally, in writing, or over an electronic platform, in real time as activity occurs. And the shareable data list is broad and explicit: transaction data, device identifiers, IP and geolocation, monitoring alerts, account decisions and the research behind them."},takeaways:{subtitle:"What you'll leave with",items:[{title:"A review of 314(b) and what it means",paragraph:"The safe harbor for voluntary information sharing between institutions: how it works, who can participate, and why most programs were built AML-only and case-reactive."},{title:"The changes, and what they mean for you",paragraph:"Fraud explicitly in scope, the nexus requirement gone, and real-time sharing blessed â and what that unlocks for financial institutions and other regulated entities."},{title:"What you can actually put on the wire",paragraph:"Device IDs, IP and geolocation, monitoring alerts, account decisions. Where the SAR line still sits, and why your GC, not FinCEN, gates what flows."}]},agenda:{subtitle:"Agenda",items:[{subject:"What FinCEN actually issued",time:"3 min",detail
vendor: 5,184 bytes, line 6
6:"The June 12, 2026 fact sheet, and the December 2020 version it rescinds. Guidance, not a rule change."},{subject:"Fraud as a specified unlawful activity",time:"4 min",detail:"Why suspicion is enough, and what stops being an obstacle the moment you stop needing to trace proceeds."},{subject:"The nexus requirement is gone",time:"4 min",detail:"Sharing with an institution that has no existing relationship to the subject, and why that unlocks network-level work."},{subject:"Real-time sharing, explicitly blessed",time:"4 min",detail:"Verbally, in writing, or over an electronic platform, as the activity is happening."},{subject:"What you can share, concretely",time:"4 min",detail:"Device IDs, IP and geolocation, monitoring alerts, account decisions, and where the SAR line still sits."},{subject:"Q&A and close",time:"6 min",detail:"Including the caveat: FinCEN saying you may is not the same as your GC saying you will."}]},speakers:{subtitle:"Speakers",items:[{name:"Jason Fan",role:"Co-founder & CEO, Finic",note:"Built Robinhood's fraud investigation platform, then started Finic, a company that facilitates fraud intelligence sharing between financial institutions and fintechs."}]},seedQuestions:{subtitle:"Questions we'll put to the panel",items:["Does your GC already know this fact sheet exists, and if so, what have they said?","What would you share tomorrow if you were confident the safe harbor held?","Has the 'no existing relationship' point changed how you think about peers you have never worked with?","What has actually blocked 314(b) in practice at your institution: the law, or the plumbing?","What would it take to move from case-reactive sharing to something continuous?"]},register:{leadSubject:"What Risk Executives Need to Know About FinCEN's Updated 314(b) Guidance",title:"Save your seat.",paragraph:"Register with your work email. We'll email you the joining link closer to the date.",fields:{name:{label:"Full name",placeholder:"Full name*"},email:{label:"Work email",placeholder:"Work email*"}},submitLabel:"Register",joiningLink:"",joinLabel:"Join the webinar",successTitle:"You're registered.",successBody:"We'll email you the joining link closer to the date.",successBodyEmailed:"We've emailed you the joining link. You can also join straight from here."}},fr={links:[{label:"Docs",href:"/docs"},{label:"Security center",href:"https://security.finic.ai/"},{label:"Privacy Policy",href:"/privacy-policy"},{label:"Terms of Service",href:"/terms-of-service"},{label:"LinkedIn",href:"https://www.linkedin.com/company/finic-ai"}],company:"Finic Technologies, Inc. All rights reserved"},Dh={meta:ir,header:sr,hero:or,featuresVideo:rr,contact:ar,cardGrid:lr,privacyPolicy:cr,termsAndConditions:ur,webinar:hr,webinarFincen:dr,footer:fr},rs=T.createContext({});function as(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const mr=typeof window<"u",ls=mr?T.useLayoutEffect:T.useEffect,rn=T.createContext(null);function an(t,e){t.indexOf(e)===-1&&t.push(e)}function ne(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const _=(t,e,n)=>n>e?e:n<t?t:n;let Ft=()=>{};const at={},cs=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function us(t){return typeof t=="object"&&t!==null}const hs=t=>/^0[^.\s]+$/u.test(t);function ds(t){let e;return()=>(e===void 0&&(e=t()),e)}const U=t=>t,pr=(t,e)=>n=>e(t(n)),Wt=(...t)=>t.reduce(pr),St=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i};class ln{constructor(){this.subscriptions=[]}add(e){return an(this.subscriptions,e),()=>ne(this.subscriptions,e)}notify(e,n,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,i);else for(let r=0;r<s;r++){const o=this.subscriptions[r];o&&o(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const G=t=>t*1e3,K=t=>t/1e3;function cn(t,e){return e?t*(1e3/e):0}const fs=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,gr=1e-7,yr=12;function vr(t,e,n,i,s){let r,o,a=0;do o=e+(n-e)/2,r=fs(o,i,s)-t,r>0?n=o:e=o;while(Math.abs(r)>gr&&++a<yr);return o}function Nt(t,e,n,i){if(t===e&&n===i)return U;const s=r=>vr(r,0,1,t,n);return r=>r===0||r===1?r:fs(s(r),e,i)}const ms=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ps=t=>e=>1-t(1-e),gs=Nt(.33,1.53,.69,.99),un=ps(gs),ys=ms(un),vs=t=>t>=1?1:(t*=2)<1?.5*un(t):.5*(2-Math.pow(2,-10*(t-1))),hn=t=>1-Math.sin(Math.acos(t)),ws=ps(hn),bs=ms(hn),wr=Nt(.42,0,1,1),br=Nt(0,0,.58,1),xs=Nt(.42,0,.58,1),xr=t=>Array.isArray(t)&&typeof t[0]!="number",Ts=t=>Array.isArray(t)&&typeof t[0]=="number",Tr={linear:U,easeIn:wr,easeInOut:xs,easeOut:br,circIn:hn,circInOut:bs,circOut:ws,backIn:un,backInOut:ys,backOut:gs,anticipate:vs},Sr=t=>typeof t=="string",Bn=t=>{if(Ts(t)){Ft(t.length===4);const[e,n,i,s]=t;return Nt(e,n,i,s)}else if(Sr(t))return Tr[t];return t},Gt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ar(t,e){let n=new Set,i=new Set,s=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),t()),c(a)}const u={schedule:(c,h=!1,d=!1)=>{const m=d&&s?n:i;return h&&o.add(c),m.add(c),c},cancel:c=>{i.delete(c),o.delete(c)},process:c=>{if(a=c,s){r=!0;return}s=!0;const h=n;
vendor: 19,303 bytes, line 6
6n=i,i=h,n.forEach(l),n.clear(),s=!1,r&&(r=!1,u.process(c))}};return u}const Pr=40;function Ss(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Gt.reduce((v,x)=>(v[x]=Ar(r),v),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:d,render:f,postRender:m}=o,g=()=>{const v=at.useManualTiming,x=v?s.timestamp:performance.now();n=!1,v||(s.delta=i?1e3/60:Math.max(Math.min(x-s.timestamp,Pr),1)),s.timestamp=x,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),h.process(s),d.process(s),f.process(s),m.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(g))},p=()=>{n=!0,i=!0,s.isProcessing||t(g)};return{schedule:Gt.reduce((v,x)=>{const S=o[x];return v[x]=(R,O=!1,P=!1)=>(n||p(),S.schedule(R,O,P)),v},{}),cancel:v=>{for(let x=0;x<Gt.length;x++)o[Gt[x]].cancel(v)},state:s,steps:o}}const{schedule:C,cancel:q,state:I,steps:ge}=Ss(typeof requestAnimationFrame<"u"?requestAnimationFrame:U,!0);let _t;function Cr(){_t=void 0}const W={now:()=>(_t===void 0&&W.set(I.isProcessing||at.useManualTiming?I.timestamp:performance.now()),_t),set:t=>{_t=t,queueMicrotask(Cr)}},As=t=>e=>typeof e=="string"&&e.startsWith(t),Ps=As("--"),Vr=As("var(--"),dn=t=>Vr(t)?Mr.test(t.split("/*")[0].trim()):!1,Mr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function jn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Pt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Bt={...Pt,transform:t=>_(0,1,t)},zt={...Pt,default:1},Dt=t=>Math.round(t*1e5)/1e5,fn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Er(t){return t==null}const kr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mn=(t,e)=>n=>!!(typeof n=="string"&&kr.test(n)&&n.startsWith(t)||e&&!Er(n)&&Object.prototype.hasOwnProperty.call(n,e)),Cs=(t,e,n)=>i=>{if(typeof i!="string")return i;const[s,r,o,a]=i.match(fn);return{[t]:parseFloat(s),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Dr=t=>_(0,255,t),ye={...Pt,transform:t=>Math.round(Dr(t))},ft={test:mn("rgb","red"),parse:Cs("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+ye.transform(t)+", "+ye.transform(e)+", "+ye.transform(n)+", "+Dt(Bt.transform(i))+")"};function Rr(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const Le={test:mn("#"),parse:Rr,transform:ft.transform},Ht=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),st=Ht("deg"),nt=Ht("%"),b=Ht("px"),Lr=Ht("vh"),Ir=Ht("vw"),On={...nt,parse:t=>nt.parse(t)/100,transform:t=>nt.transform(t*100)},bt={test:mn("hsl","hue"),parse:Cs("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+nt.transform(Dt(e))+", "+nt.transform(Dt(n))+", "+Dt(Bt.transform(i))+")"},D={test:t=>ft.test(t)||Le.test(t)||bt.test(t),parse:t=>ft.test(t)?ft.parse(t):bt.test(t)?bt.parse(t):Le.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ft.transform(t):bt.transform(t),getAnimatableNone:t=>{const e=D.parse(t);return e.alpha=0,D.transform(e)}},Fr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Br(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(fn))==null?void 0:e.length)||0)+(((n=t.match(Fr))==null?void 0:n.length)||0)>0}const Vs="number",Ms="color",jr="var",Or="var(",Wn="${}",Wr=/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 At(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let r=0;const a=e.replace(Wr,l=>(D.test(l)?(i.color.push(r),s.push(Ms),n.push(D.parse(l))):l.startsWith(Or)?(i.var.push(r),s.push(jr),n.push(l)):(i.number.push(r),s.push(Vs),n.push(parseFloat(l))),++r,Wn)).split(Wn);return{values:n,split:a,indexes:i,types:s}}function Nr(t){return At(t).values}function Es({split:t,types:e}){const n=t.length;return i=>{let s="";for(let r=0;r<n;r++)if(s+=t[r],i[r]!==void 0){const o=e[r];o===Vs?s+=Dt(i[r]):o===Ms?s+=D.transform(i[r]):s+=i[r]}return s}}function Hr(t){return Es(At(t))}const Ur=t=>typeof t=="number"?0:D.test(t)?D.getAnimatableNone(t):t,Gr=(t,e)=>typeof t=="number"?e!=null&&e.trim().endsWith("/")?t:0:Ur(t);function zr(t){const e=At(t);return Es(e)(e.values.map((i,s)=>Gr(i,e.split[s])))}const X={test:Br,parse:Nr,createTransformer:Hr,getAnimatableNone:zr};function ve(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Kr({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let s=0,r=0,o=0;if(!e)s=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;s=ve(l,a,t+1/3),r=ve(l,a,t),o=ve(l,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:i}}function ie(t,e){return n=>n>0?e:t}const M=(t,e,n)=>t+(e-t)*n,we=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},Yr=[Le,ft,bt],$r=t=>Yr.find(e=>e.test(t));function Nn(t){const e=$r(t);if(!e)return!1;let n=e.parse(t);return e===bt&&(n=Kr(n)),n}const Hn=(t,e)=>{const n=Nn(t),i=Nn(e);if(!n||!i)return ie(t,e);const s={...n};return r=>(s.red=we(n.red,i.red,r),s.green=we(n.green,i.green,r),s.blue=we(n.blue,i.blue,r),s.alpha=M(n.alpha,i.alpha,r),ft.transform(s))},Ie=new Set(["none","hidden"]);function Xr(t,e){return Ie.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function _r(t,e){return n=>M(t,e,n)}function pn(t){return typeof t=="number"?_r:typeof t=="string"?dn(t)?ie:D.test(t)?Hn:Jr:Array.isArray(t)?ks:typeof t=="object"?D.test(t)?Hn:qr:ie}function ks(t,e){const n=[...t],i=n.length,s=t.map((r,o)=>pn(r)(r,e[o]));return r=>{for(let o=0;o<i;o++)n[o]=s[o](r);return n}}function qr(t,e){const n={...t,...e},i={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(i[s]=pn(t[s])(t[s],e[s]));return s=>{for(const r in i)n[r]=i[r](s);return n}}function Zr(t,e){const n=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const r=e.types[s],o=t.indexes[r][i[r]],a=t.values[o]??0;n[s]=a,i[r]++}return n}const Jr=(t,e)=>{const n=X.createTransformer(e),i=At(t),s=At(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?Ie.has(t)&&!s.values.length||Ie.has(e)&&!i.values.length?Xr(t,e):Wt(ks(Zr(i,s),s.values),n):ie(t,e)};function Ds(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?M(t,e,n):pn(t)(t,e)}const Qr=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>C.update(e,n),stop:()=>q(e),now:()=>I.isProcessing?I.timestamp:W.now()}},Rs=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let r=0;r<s;r++)i+=Math.round(t(r/(s-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},se=2e4;function gn(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<se;)e+=n,i=t.next(e);return e>=se?1/0:e}function ta(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(gn(i),se);return{type:"keyframes",ease:r=>i.next(s*r).value/e,duration:K(s)}}const E={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Fe(t,e){return t*Math.sqrt(1-e*e)}const ea=12;function na(t,e,n){let i=n;for(let s=1;s<ea;s++)i=i-t(i)/e(i);return i}const be=.001;function ia({duration:t=E.duration,bounce:e=E.bounce,velocity:n=E.velocity,mass:i=E.mass}){let s,r,o=1-e;o=_(E.minDamping,E.maxDamping,o),t=_(E.minDuration,E.maxDuration,K(t)),o<1?(s=u=>{const c=u*o,h=c*t,d=c-n,f=Fe(u,o),m=Math.exp(-h);return be-d/f*m},r=u=>{const h=u*o*t,d=h*n+n,f=Math.pow(o,2)*Math.pow(u,2)*t,m=Math.exp(-h),g=Fe(Math.pow(u,2),o);return(-s(u)+be>0?-1:1)*((d-f)*m)/g}):(s=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-be+c*h},r=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=na(s,r,a);if(t=G(t),isNaN(l))return{stiffness:E.stiffness,damping:E.damping,duration:t};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:o*2*Math.sqrt(i*u),duration:t}}}const sa=["duration","bounce"],oa=["stiffness","damping","mass"];function Un(t,e){return e.some(n=>t[n]!==void 0)}function ra(t){let e={velocity:E.velocity,stiffness:E.stiffness,damping:E.damping,mass:E.mass,isResolvedFromDuration:!1,...t};if(!Un(t,oa)&&Un(t,sa))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,r=2*_(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:E.mass,stiffness:s,damping:r}}else{const n=ia({...t,velocity:0});e={...e,...n,mass:E.mass},e.isResolvedFromDuration=!0}return e}function oe(t=E.visualDuration,e=E.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:h,velocity:d,isResolvedFromDuration:f}=ra({...n,velocity:-K(n.velocity||0)}),m=d||0,g=u/(2*Math.sqrt(l*c)),p=o-r,y=K(Math.sqrt(l/c)),w=Math.abs(p)<5;i||(i=w?E.restSpeed.granular:E.restSpeed.default),s||(s=w?E.restDelta.granular:E.restDelta.default);let v,x,S,R,O,P;if(g<1)S=Fe(y,g),R=(m+g*y*p)/S,v=A=>{const k=Math.exp(-g*y*A);return o-k*(R*Math.sin(S*A)+p*Math.cos(S*A))},O=g*y*R+p*S,P=g*y*p-R*S,x=A=>Math.exp(-g*y*A)*(O*Math.sin(S*A)+P*Math.cos(S*A));else if(g===1){v=k=>o-Math.exp(-y*k)*(p+(m+y*p)*k);const A=m+y*p;x=k=>Math.exp(-y*k)*(y*A*k-m)}else{const A=y*Math.sqrt(g*g-1);v=Z=>{const it=Math.exp(-g*y*Z),J=Math.min(A*Z,300);return o-it*((m+g*y*p)*Math.sinh(J)+A*p*Math.cosh(J))/A};const k=(m+g*y*p)/A,H=g*y*k-p*A,ct=g*y*p-k*A;x=Z=>{const it=Math.exp(-g*y*Z),J=Math.min(A*Z,300);return it*(H*Math.sinh(J)+ct*Math.cosh(J))}}const F={calculatedDuration:f&&h||null,velocity:A=>G(x(A)),next:A=>{if(!f&&g<1){const H=Math.exp(-g*y*A),ct=Math.sin(S*A),Z=Math.cos(S*A),it=o-H*(R*ct+p*Z),J=G(H*(O*ct+P*Z));return a.done=Math.abs(J)<=i&&Math.abs(o-it)<=s,a.value=a.done?o:it,a}const k=v(A);if(f)a.done=A>=h;else{const H=G(x(A));a.done=Math.abs(H)<=i&&Math.abs(o-k)<=s}return a.value=a.done?o:k,a},toString:()=>{const A=Math.min(gn(F),se),k=Rs(H=>F.next(A*H).value,A,30);return A+"ms "+k},toTransition:()=>{}};return F}oe.applyToOptions=t=>{const e=ta(t,100,oe);return t.ease=e.ease,t.duration=G(e.duration),t.type="keyframes",t};const aa=5;function Ls(t,e,n){const i=Math.max(e-aa,0);return cn(n-t(i),e-i)}function Be({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],d={done:!1,value:h},f=P=>a!==void 0&&P<a||l!==void 0&&P>l,m=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let g=n*e;const p=h+g,y=o===void 0?p:o(p);y!==p&&(g=y-h);const w=P=>-g*Math.exp(-P/i),v=P=>y+w(P),x=P=>{const F=w(P),A=v(P);d.done=Math.abs(F)<=u,d.value=d.done?y:A};let S,R;const O=P=>{f(d.value)&&(S=P,R=oe({keyframes:[d.value,m(d.value)],velocity:Ls(v,P,d.value),damping:s,stiffness:r,restDelta:u,restSpeed:c}))};return O(0),{calculatedDuration:null,next:P=>{let F=!1;return!R&&S===void 0&&(F=!0,x(P),O(P)),S!==void 0&&P>=S?R.next(P-S):(!F&&x(P),d)}}}function la(t,e,n){const i=[],s=n||at.mix||Ds,r=t.length-1;for(let o=0;o<r;o++){let a=s(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||U:e;a=Wt(l,a)}i.push(a)}return i}function Is(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const r=t.length;if(Ft(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=la(e,i,s),l=a.length,u=c=>{if(o&&c<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const d=St(t[h],t[h+1],c);return a[h](d)};return n?c=>u(_(t[0],t[r-1],c)):u}function ca(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=St(0,e,i);t.push(M(n,1,s))}}function Fs(t){const e=[0];return ca(e,t.length-1),e}function ua(t,e){return t.map(n=>n*e)}function ha(t,e){return t.map(()=>e||xs).splice(0,t.length-1)}function Rt({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=xr(i)?i.map(Bn):Bn(i),r={done:!1,value:e[0]},o=ua(n&&n.length===e.length?n:Fs(e),t),a=Is(o,e,{ease:Array.isArray(s)?s:ha(e,s)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const da=t=>t!==null;function de(t,{repeat:e,repeatType:n="loop"},i,s=1){const r=t.filter(da),a=s<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||i===void 0?r[a]:i}const fa={decay:Be,inertia:Be,tween:Rt,keyframes:Rt,spring:oe};function Bs(t){typeof t.type=="string"&&(t.type=fa[t.type])}class yn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const ma=t=>t/100;class re extends yn{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=()=>{var i,s;const{motionValue:n}=this.options;n&&n.updatedAt!==W.now()&&this.tick(W.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(i=this.options).onStop)==null||s.call(i))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Bs(e);const{type:n=Rt,repeat:i=0,repeatDelay:s=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const l=n||Rt;l!==Rt&&typeof a[0]!="number"&&(this.mixKeyframes=Wt(ma,Ds(a[0],a[1])),a=[0,100]);const u=l({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=gn(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:i,totalDuration:s,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return i.next(0);const{delay:u=0,keyframes:c,repeat:h,repeatType:d,repeatDelay:f,type:m,onUpdate:g,finalKeyframe:p}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?y<0:y>s;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let v=this.currentTime,x=i;if(h){const P=Math.min(this.currentTime,s)/a;let F=Math.floor(P),A=P%1;!A&&P>=1&&(A=1),A===1&&F--,F=Math.min(F,h+1),!!(F%2)&&(d==="reverse"?(A=1-A,f&&(A-=f/a)):d==="mirror"&&(x=o)),v=_(0,1,A)*a}let S;w?(this.delayState.value=c[0],S=this.delayState):S=x.next(v),r&&!w&&(S.value=r(S.value));let{done:R}=S;!w&&l!==null&&(R=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return O&&m!==Be&&(S.value=de(c,this.options,p,this.speed)),g&&g(S.value),O&&this.finish(),S}then(e,n){return this.finished.then(e,n)}get duration(){return K(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+K(e)}get time(){return K(this.currentTime)}set time(e){e=G(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return Ls(i=>this.generator.next(i).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(W.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=K(this.currentTime))}play(){var s,r;if(this.isStopped)return;const{driver:e=Qr,startTime:n}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),(r=(s=this.options).onPlay)==null||r.call(s);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(W.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function pa(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const mt=t=>t*180/Math.PI,je=t=>{const e=mt(Math.atan2(t[1],t[0]));return Oe(e)},ga={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:je,rotateZ:je,skewX:t=>mt(Math.atan(t[1])),skewY:t=>mt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Oe=t=>(t=t%360,t<0&&(t+=360),t),Gn=je,zn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Kn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ya={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zn,scaleY:Kn,scale:t=>(zn(t)+Kn(t))/2,rotateX:t=>Oe(mt(Math.atan2(t[6],t[5]))),rotateY:t=>Oe(mt(Math.atan2(-t[2],t[0]))),rotateZ:Gn,rotate:Gn,skewX:t=>mt(Math.atan(t[4])),skewY:t=>mt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function We(t){return t.includes("scale")?1:0}function Ne(t,e){if(!t||t==="none")return We(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(n)i=ya,s=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=ga,s=a}if(!s)return We(e);const r=i[e],o=s[1].split(",").map(wa);return typeof r=="function"?r(o):o[r]}const va=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ne(n,e)};function wa(t){return parseFloat(t.trim())}const Ct=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vt=new Set(Ct),Yn=t=>t===Pt||t===b,ba=new Set(["x","y","z"]),xa=Ct.filter(t=>!ba.has(t));function Ta(t){const e=[];
6return xa.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const rt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:i})=>{const s=t.max-t.min;return i==="border-box"?s:s-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:i})=>{const s=t.max-t.min;return i==="border-box"?s:s-parseFloat(e)-parseFloat(n)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Ne(e,"x"),y:(t,{transform:e})=>Ne(e,"y")};rt.translateX=rt.x;rt.translateY=rt.y;const pt=new Set;let He=!1,Ue=!1,Ge=!1;function js(){if(Ue){const t=Array.from(pt).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const s=Ta(i);s.length&&(n.set(i,s),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const s=n.get(i);s&&s.forEach(([r,o])=>{var a;(a=i.getValue(r))==null||a.set(o)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Ue=!1,He=!1,pt.forEach(t=>t.complete(Ge)),pt.clear()}function Os(){pt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ue=!0)})}function Sa(){Ge=!0,Os(),js(),Ge=!1}class vn{constructor(e,n,i,s,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=s,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(pt.add(this),He||(He=!0,C.read(Os),C.resolveKeyframes(js))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:s}=this;if(e[0]===null){const r=s==null?void 0:s.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(i&&n){const a=i.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),s&&r===void 0&&s.set(e[0])}pa(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),pt.delete(this)}cancel(){this.state==="scheduled"&&(pt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Aa=t=>t.startsWith("--");function Ws(t,e,n){Aa(e)?t.style.setProperty(e,n):t.style[e]=n}const Pa={};function wn(t,e){const n=ds(t);return()=>Pa[e]??n()}const bn=wn(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Ns=wn(()=>window.ViewTimeline!==void 0,"viewTimeline"),Hs=wn(()=>{try{document.createElement("div").animate({opacity:0}
6,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Et=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,$n={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Et([0,.65,.55,1]),circOut:Et([.55,0,1,.45]),backIn:Et([.31,.01,.66,-.59]),backOut:Et([.33,1.53,.69,.99])};function Us(t,e){if(t)return typeof t=="function"?Hs()?Rs(t,e):"ease-out":Ts(t)?Et(t):Array.isArray(t)?t.map(n=>Us(n,e)||$n.easeOut):$n[t]}function Ca(t,e,n,{delay:i=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[e]:n};l&&(c.offset=l);const h=Us(a,s);Array.isArray(h)&&(c.easing=h);const d={delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return u&&(d.pseudoElement=u),t.animate(c,d)}function Gs(t){return typeof t=="function"&&"applyToOptions"in t}function Va({type:t,...e}){return Gs(t)&&Hs()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class zs extends yn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:i,keyframes:s,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,Ft(typeof e.type!="string");const u=Va(e);this.animation=Ca(n,i,s,u,r),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const c=de(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),Ws(n,i,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,i,s;const e=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((s=(i=this.animation).commitStyles)==null||s.call(i))}get duration(){var n,i;const e=((i=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:i.call(n).duration)||0;return K(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+K(e)}get time(){return K(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=G(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:i,observe:s}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&bn()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),i&&(this.animation.rangeEnd=i),U):s(this)}}const Ks={anticipate:vs,backInOut:ys,circInOut:bs};function Ma(t){return t in Ks}function Ea(t){typeof t.ease=="string"&&Ma(t.ease)&&(t.ease=Ks[t.ease])}const xe=10;class ka extends zs{constructor(e){Ea(e),Bs(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:i,onComplete:s,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new re({...o,autoplay:!1}),l=Math.max(xe,W.now()-this.startTime),u=_(0,xe,l-xe),c=a.sample(l).value,{name:h}=this.options;r&&h&&Ws(r,h,c),n.setWithVelocity(a.sample(Math.max(0,l-u)).value,c,u),a.stop()}}const Xn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(X.test(t)||t==="0")&&!t.startsWith("url("));function Da(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Ra(t,e,n,i){const s=t[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=Xn(s,e),a=Xn(r,e);return!o||!a?!1:Da(t)||(n==="spring"||Gs(n))&&i}function ze(t){t.duration=0,t.type="keyframes"}const Ys=new Set(["opacity","clipPath","filter","transform"]),La=/^(?:
6oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ia(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&La.test(t[e]))return!0;return!1}const Fa=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Ba=ds(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ja(t){var h;const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:r,type:o,keyframes:a}=t;if(!(((h=e==null?void 0:e.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=e.owner.getProps();return Ba()&&n&&(Ys.has(n)||Fa.has(n)&&Ia(a))&&(n!=="transform"||!c)&&!u&&!i&&s!=="mirror"&&r!==0&&o!=="inertia"}const Oa=40;class Wa extends yn{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...h}){var m;super(),this.stop=()=>{var g,p;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(p=this.keyframeResolver)==null||p.cancel()},this.createdAt=W.now();const d={autoplay:e,delay:n,type:i,repeat:s,repeatDelay:r,repeatType:o,name:l,motionValue:u,element:c,...h},f=(c==null?void 0:c.KeyframeResolver)||vn;this.keyframeResolver=new f(a,(g,p,y)=>this.onKeyframesResolved(g,p,d,!y),l,u,c),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(e,n,i,s){var y,w;this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=i;this.resolvedAt=W.now();let h=!0;Ra(e,r,o,a)||(h=!1,(at.instantAnimations||!l)&&(c==null||c(de(e,i,n))),e[0]=e[e.length-1],ze(i),i.repeat=0);const f={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>Oa?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:e},m=h&&!u&&ja(f),g=(w=(y=f.motionValue)==null?void 0:y.owner)==null?void 0:w.current;let p;if(m)try{p=new ka({...f,element:g})}catch{p=new re(f)}else p=new re(f);p.finished.then(()=>{this.notifyFinished()}).catch(U),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),Sa()),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(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function $s(t,e,n,i=0,s=1){const r=Array.from(t).sort((u,c)=>u.sortNodePosition(c)).indexOf(e),o=t.size,a=(o-1)*i;return typeof n=="function"?n(r,o):s===1?r*i:a-r*i}const Na=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ha(t){const e=Na.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}function Xs(t,e,n=1){const[i,s]=Ha(t);if(!i)return;const r=window.getComputedStyle(e).getPropertyValue(i);if(r){const o=r.trim();return cs(o)?parseFloat(o):o}return dn(s)?Xs(s,e,n+1):s}const Ua={type:"spring",stiffness:500,damping:25,restSpeed:10},Ga=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),za={type:"keyframes",duration:.8},Ka={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ya=(t,{keyframes:e})=>e.length>2?za:Vt.has(t)?t.startsWith("scale")?Ga(e[1]):Ua:Ka;function _s(t,e){if(t!=null&&t.inherit&&e){const{inherit:n,...i}=t;return{...e,...i}}return t}function xn(t,e){const n=(t==null?void 0:t[e])??(t==null?void 0:t.default)??t;return n!==t?_s(n,t):n}const $a=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Xa(t){for(const e in t)if(!$a.has(e))return!0;return!1}const Tn=(t,e,n,i={},s,r)=>o=>{const a=xn(i,t)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u=u-G(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};Xa(a)||Object.assign(c,Ya(t,c)),c.duration&&(c.duration=G(c.duration)),c.repeatDelay&&(c.repeatDelay=G(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(ze(c),c.delay===0&&(h=!0)),(at.instantAnimations||at.skipAnimations||s!=null&&s.shouldSkipAnimations)&&(h=!0,ze(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const d=de(c.keyframes,a);if(d!==void 0){C.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new re(c):new Wa(c)};function _n(t){const e=[{},{}];
6return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function Sn(t,e,n,i){if(typeof e=="function"){const[s,r]=_n(i);e=e(n!==void 0?n:t.custom,s,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[s,r]=_n(i);e=e(n!==void 0?n:t.custom,s,r)}return e}function gt(t,e,n){const i=t.getProps();return Sn(i,e,n!==void 0?n:i.custom,t)}const qs=new Set(["width","height","top","left","right","bottom",...Ct]),qn=30,_a=t=>!isNaN(parseFloat(t)),Zn={current:void 0};class qa{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var r;const s=W.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&((r=this.events.change)==null||r.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=W.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=_a(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new ln);const i=this.events[e].add(n);return e==="change"?()=>{i(),C.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Zn.current&&Zn.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=W.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>qn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,qn);return cn(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function et(t,e){return new qa(t,e)}const Ke=t=>Array.isArray(t);function Za(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,et(n))}function Ja(t){return Ke(t)?t[t.length-1]||0:t}function Qa(t,e){const n=gt(t,e);let{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(const o in r){const a=Ja(r[o]);Za(t,o,a)}}const j=t=>!!(t&&t.getVelocity);function tl(t){return!!(j(t)&&t.add)}function Ye(t,e){const n=t.getValue("willChange");if(tl(n))return n.add(e);if(!n&&at.WillChange){const i=new at.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function An(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const el="framerAppearId",Zs="data-"+An(el);function Js(t){return t.props[Zs]}function nl({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function Qs(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:r,transitionEnd:o,...a}=e;const l=t.getDefaultTransition();r=r?_s(r,l):l;const u=r==null?void 0:r.reduceMotion;i&&(r=i);const c=[],h=s&&t.animationState&&t.animationState.getState()[s];for(const d in a){const f=t.getValue(d,t.latestValues[d]??null),m=a[d];if(m===void 0||h&&nl(h,d))continue;const g={delay:n,...xn(r||{},d)},p=f.get();if(p!==void 0&&!f.isAnimating()&&!Array.isArray(m)&&m===p&&!g.velocity){C.update(()=>f.set(m));continue}let y=!1;if(window.MotionHandoffAnimation){const x=Js(t);if(x){const S=window.MotionHandoffAnimation(x,d,C);S!==null&&(g.startTime=S,y=!0)}}Ye(t,d);const w=u??t.shouldReduceMotion;f.start(Tn(d,f,m,w&&qs.has(d)?{type:!1}:g,t,y));const v=f.animation;v&&c.push(v)}if(o){const d=()=>C.update(()=>{o&&Qa(t,o)});c.length?Promise.all(c).then(d):d()}return c}function $e(t,e,n={}){var l;const i=gt(t,e,n.type==="exit"?(l=t.presenceContext)==null?void 0:l.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};
vendor: 31,738 bytes, line 6
6n.transitionOverride&&(s=n.transitionOverride);const r=i?()=>Promise.all(Qs(t,i,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:d}=s;return il(t,e,u,c,h,d,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[u,c]=a==="beforeChildren"?[r,o]:[o,r];return u().then(()=>c())}else return Promise.all([r(),o(n.delay)])}function il(t,e,n=0,i=0,s=0,r=1,o){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push($e(l,e,{...o,delay:n+(typeof i=="function"?0:i)+$s(t.variantChildren,l,i,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function sl(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const s=e.map(r=>$e(t,r,n));i=Promise.all(s)}else if(typeof e=="string")i=$e(t,e,n);else{const s=typeof e=="function"?gt(t,e,n.custom):e;i=Promise.all(Qs(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const ol={test:t=>t==="auto",parse:t=>t},to=t=>e=>e.test(t),eo=[Pt,b,nt,st,Ir,Lr,ol],Jn=t=>eo.find(to(t));function rl(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||hs(t):!0}const al=new Set(["brightness","contrast","saturate","opacity"]);function ll(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(fn)||[];if(!i)return t;const s=n.replace(i,"");let r=al.has(e)?1:0;return i!==n&&(r*=100),e+"("+r+s+")"}const cl=/\b([a-z-]*)\(.*?\)/gu,Xe={...X,getAnimatableNone:t=>{const e=t.match(cl);return e?e.map(ll).join(" "):t}},_e={...X,getAnimatableNone:t=>{const e=X.parse(t);return X.createTransformer(t)(e.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}},Qn={...Pt,transform:Math.round},ul={rotate:st,rotateX:st,rotateY:st,rotateZ:st,scale:zt,scaleX:zt,scaleY:zt,scaleZ:zt,skew:st,skewX:st,skewY:st,distance:b,translateX:b,translateY:b,translateZ:b,x:b,y:b,z:b,perspective:b,transformPerspective:b,opacity:Bt,originX:On,originY:On,originZ:b},Pn={borderWidth:b,borderTopWidth:b,borderRightWidth:b,borderBottomWidth:b,borderLeftWidth:b,borderRadius:b,borderTopLeftRadius:b,borderTopRightRadius:b,borderBottomRightRadius:b,borderBottomLeftRadius:b,width:b,maxWidth:b,height:b,maxHeight:b,top:b,right:b,bottom:b,left:b,inset:b,insetBlock:b,insetBlockStart:b,insetBlockEnd:b,insetInline:b,insetInlineStart:b,insetInlineEnd:b,padding:b,paddingTop:b,paddingRight:b,paddingBottom:b,paddingLeft:b,paddingBlock:b,paddingBlockStart:b,paddingBlockEnd:b,paddingInline:b,paddingInlineStart:b,paddingInlineEnd:b,margin:b,marginTop:b,marginRight:b,marginBottom:b,marginLeft:b,marginBlock:b,marginBlockStart:b,marginBlockEnd:b,marginInline:b,marginInlineStart:b,marginInlineEnd:b,fontSize:b,backgroundPositionX:b,backgroundPositionY:b,...ul,zIndex:Qn,fillOpacity:Bt,strokeOpacity:Bt,numOctaves:Qn},hl={...Pn,color:D,backgroundColor:D,outlineColor:D,fill:D,stroke:D,borderColor:D,borderTopColor:D,borderRightColor:D,borderBottomColor:D,borderLeftColor:D,filter:Xe,WebkitFilter:Xe,mask:_e,WebkitMask:_e},no=t=>hl[t],dl=new Set([Xe,_e]);function io(t,e){let n=no(t);return dl.has(n)||(n=X),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const fl=new Set(["auto","none","0"]);function ml(t,e,n){let i=0,s;for(;i<t.length&&!s;){const r=t[i];typeof r=="string"&&!fl.has(r)&&At(r).values.length&&(s=t[i]),i++}if(s&&n)for(const r of e)t[r]=io(n,s)}class pl extends vn{constructor(e,n,i,s,r){super(e,n,i,s,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let h=e[c];if(typeof h=="string"&&(h=h.trim(),dn(h))){const d=Xs(h,n.current);d!==void 0&&(e[c]=d),c===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!qs.has(i)||e.length!==2)return;const[s,r]=e,o=Jn(s),a=Jn(r),l=jn(s),u=jn(r);if(l!==u&&rt[i]){this.needsMeasurement=!0;return}if(o!==a)if(Yn(o)&&Yn(a))for(let c=0;c<e.length;c++){const h=e[c];typeof h=="string"&&(e[c]=parseFloat(h))}else rt[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let s=0;s<e.length;s++)(e[s]===null||rl(e[s]))&&i.push(s);i.length&&ml(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=rt[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&e.getValue(i,s).jump(s,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const r=i.length-1,o=i[r];i[r]=rt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{e.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function so(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){const s=document.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(i=>i!=null)}const oo=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function ro(t){return us(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:Cn}=Ss(queueMicrotask,!1),$={x:!1,y:!1};function ao(){return $.x||$.y}function gl(t){return t==="x"||t==="y"?$[t]?null:($[t]=!0,()=>{$[t]=!1}):$.x||$.y?null:($.x=$.y=!0,()=>{$.x=$.y=!1})}function lo(t,e){const n=so(t),i=new AbortController,s={passive:!0,...e,signal:i.signal};return[n,s,()=>i.abort()]}function yl(t){return!(t.pointerType==="touch"||ao())}function vl(t,e,n={}){const[i,s,r]=lo(t,n);return i.forEach(o=>{let a=!1,l=!1,u;const c=()=>{o.removeEventListener("pointerleave",m)},h=p=>{u&&(u(p),u=void 0),c()},d=p=>{a=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),l&&(l=!1,h(p))},f=()=>{a=!0,window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",d,s)},m=p=>{if(p.pointerType!=="touch"){if(a){l=!0;return}h(p)}},g=p=>{if(!yl(p))return;l=!1;const y=e(o,p);typeof y=="function"&&(u=y,o.addEventListener("pointerleave",m,s))};o.addEventListener("pointerenter",g,s),o.addEventListener("pointerdown",f,s)}),r}const co=(t,e)=>e?t===e?!0:co(t,e.parentElement):!1,Vn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,wl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function bl(t){return wl.has(t.tagName)||t.isContentEditable===!0}const xl=new Set(["INPUT","SELECT","TEXTAREA"]);function Tl(t){return xl.has(t.tagName)||t.isContentEditable===!0}const qt=new WeakSet;function ti(t){return e=>{e.key==="Enter"&&t(e)}}function Te(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Sl=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=ti(()=>{if(qt.has(n))return;Te(n,"down");const s=ti(()=>{Te(n,"up")}),r=()=>Te(n,"cancel");n.addEventListener("keyup",s,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function ei(t){return Vn(t)&&!ao()}const ni=new WeakSet;function Al(t,e,n={}){const[i,s,r]=lo(t,n),o=a=>{const l=a.currentTarget;if(!ei(a)||ni.has(a))return;qt.add(l),n.stopPropagation&&ni.add(a);const u=e(l,a),c=(f,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",d),qt.has(l)&&qt.delete(l),ei(f)&&typeof u=="function"&&u(f,{success:m})},h=f=>{c(f,l===window||l===document||n.useGlobalTarget||co(l,f.target))},d=f=>{c(f,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",d,s)};return i.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),ro(a)&&(a.addEventListener("focus",u=>Sl(u,s)),!bl(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function Mn(t){return us(t)&&"ownerSVGElement"in t}const Zt=new WeakMap;let ot;const uo=(t,e,n)=>(i,s)=>s&&s[0]?s[0][t+"Size"]:Mn(i)&&"getBBox"in i?i.getBBox()[e]:i[n],Pl=uo("inline","width","offsetWidth"),Cl=uo("block","height","offsetHeight");function Vl({target:t,borderBoxSize:e}){var n;(n=Zt.get(t))==null||n.forEach(i=>{i(t,{get width(){return Pl(t,e)},get height(){return Cl(t,e)}})})}function Ml(t){t.forEach(Vl)}function El(){typeof ResizeObserver>"u"||(ot=new ResizeObserver(Ml))}function kl(t,e){ot||El();const n=so(t);return n.forEach(i=>{let s=Zt.get(i);s||(s=new Set,Zt.set(i,s)),s.add(e),ot==null||ot.observe(i)}),()=>{n.forEach(i=>{const s=Zt.get(i);s==null||s.delete(e),s!=null&&s.size||ot==null||ot.unobserve(i)})}}const Jt=new Set;let xt;function Dl(){xt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Jt.forEach(e=>e(t))},window.addEventListener("resize",xt)}function Rl(t){return Jt.add(t),xt||Dl(),()=>{Jt.delete(t),!Jt.size&&typeof xt=="function"&&(window.removeEventListener("resize",xt),xt=void 0)}}function qe(t,e){return typeof t=="function"?Rl(t):kl(t,e)}function ho(t,e){let n;const i=()=>{const{currentTime:s}=e,o=(s===null?0:s.value)/100;n!==o&&t(o),n=o};return C.preUpdate(i,!0),()=>q(i)}function Ll(t){return Mn(t)&&t.tagName==="svg"}const Il=[...eo,D,X],Fl=t=>Il.find(to(t)),ii=()=>({translate:0,scale:1,origin:0,originPoint:0}),Tt=()=>({x:ii(),y:ii()}),si=()=>({min:0,max:0}),L=()=>({x:si(),y:si()}),Bl=new WeakMap;function fe(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function jt(t){return typeof t=="string"||Array.isArray(t)}const En=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],kn=["initial",...En];function me(t){return fe(t.animate)||kn.some(e=>jt(t[e]))}function fo(t){return!!(me(t)||t.variants)}function jl(t,e,n){for(const i in e){const s=e[i],r=n[i];if(j(s))t.addValue(i,s);else if(j(r))t.addValue(i,et(s,{owner:t}));else if(r!==s)if(t.hasValue(i)){const o=t.getValue(i);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=t.getStaticValue(i);t.addValue(i,et(o!==void 0?o:s,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Ze={current:null},mo={current:!1},Ol=typeof window<"u";function Wl(){if(mo.current=!0,!!Ol)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ze.current=t.matches;t.addEventListener("change",e),e()}else Ze.current=!1}const oi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ae={};function po(t){ae=t}function Nl(){return ae}class Hl{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:s,skipAnimations:r,blockInitialAnimation:o,visualState:a},l={}){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=vn,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=()=>{const f=W.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,C.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=me(n),this.isVariantNode=fo(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const m=d[f];u[f]!==void 0&&j(m)&&m.set(u[f])}}mount(e){var n,i;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=e,Bl.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((s,r)=>this.bindToMotionValue(r,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(mo.current||Wl(),this.shouldReduceMotion=Ze.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),q(this.notifyUpdate),q(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const i=this.features[n];i&&(i.unmount(),i.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,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&Ys.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:u,duration:c}=n.accelerate,h=new zs({element:this.current,name:e,keyframes:a,times:l,ease:u,duration:G(c)}),d=o(h);this.valueSubscriptions.set(e,()=>{d(),h.cancel()});return}const i=Vt.has(e);i&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&C.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{s(),r&&r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ae){const n=ae[e];if(!n)continue;const{isEnabled:i,Feature:s}=n;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):L()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<oi.length;i++){const s=oi[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const r="on"+s,o=e[r];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=jl(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=et(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(cs(i)||hs(i))?i=parseFloat(i):!Fl(i)&&X.test(n)&&(i=io(e,n)),this.setBaseTarget(e,j(i)?i.get():i)),j(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var r;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=Sn(this.props,n,(r=this.presenceContext)==null?void 0:r.custom);o&&(i=o[e])}if(n&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!j(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ln),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Cn.render(this.render)}}class go extends Hl{constructor(){super(...arguments),this.KeyframeResolver=pl}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const i=e.style;return i?i[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;j(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class lt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function yo({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Ul({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Gl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Se(t){return t===void 0||t===1}function Je({scale:t,scaleX:e,scaleY:n}){return!Se(t)||!Se(e)||!Se(n)}function dt(t){return Je(t)||vo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function vo(t){return ri(t.x)||ri(t.y)}function ri(t){return t&&t!=="0%"}function le(t,e,n){const i=t-n,s=e*i;return n+s}function ai(t,e,n,i,s){return s!==void 0&&(t=le(t,s,i)),le(t,n,i)+e}function Qe(t,e=0,n=1,i,s){t.min=ai(t.min,e,n,i,s),t.max=ai(t.max,e,n,i,s)}function wo(t,{x:e,y:n}){Qe(t.x,e.translate,e.scale,e.originPoint),Qe(t.y,n.translate,n.scale,n.originPoint)}const li=.999999999999,ci=1.0000000000001;function zl(t,e,n,i=!1){var a;const s=n.length;if(!s)return;e.x=e.y=1;let r,o;for(let l=0;l<s;l++){r=n[l],o=r.projectionDelta;const{visualElement:u}=r.options;u&&u.props.style&&u.props.style.display==="contents"||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(tt(t.x,-r.scroll.offset.x),tt(t.y,-r.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,wo(t,o)),i&&dt(r.latestValues)&&Qt(t,r.latestValues,(a=r.layout)==null?void 0:a.layoutBox))}e.x<ci&&e.x>li&&(e.x=1),e.y<ci&&e.y>li&&(e.y=1)}function tt(t,e){t.min+=e,t.max+=e}function ui(t,e,n,i,s=.5){const r=M(t.min,t.max,s);Qe(t,e,n,r,i)}function hi(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Qt(t,e,n){const i=n??t;ui(t.x,hi(e.x,i.x),e.scaleX,e.scale,e.originX),ui(t.y,hi(e.y,i.y),e.scaleY,e.scale,e.originY)}function bo(t,e){return yo(Gl(t.getBoundingClientRect(),e))}function Kl(t,e,n){const i=bo(t,n),{scroll:s}=e;return s&&(tt(i.x,s.offset.x),tt(i.y,s.offset.y)),i}const Yl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$l=Ct.length;function Xl(t,e,n){let i="",s=!0;for(let r=0;r<$l;r++){const o=Ct[r],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(o.startsWith("scale")?1:0);else{const u=parseFloat(a);l=o.startsWith("scale")?u===1:u===0}if(!l||n){const u=oo(a,Pn[o]);if(!l){s=!1;const c=Yl[o]||o;i+=`${c}(${u}) `}n&&(e[o]=u)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}function Dn(t,e,n){const{style:i,vars:s,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const u=e[l];if(Vt.has(l)){o=!0;continue}else if(Ps(l)){s[l]=u;continue}else{const c=oo(u,Pn[l]);l.startsWith("origin")?(a=!0,r[l]=c):i[l]=c}}if(e.transform||(o||n?i.transform=Xl(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=r;i.transformOrigin=`${l} ${u} ${c}`}}function xo(t,{style:e,vars:n},i,s){const r=t.style;let o;for(o in e)r[o]=e[o];s==null||s.applyProjectionStyles(r,i);for(o in n)r.setProperty(o,n[o])}function di(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Mt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(b.test(t))t=parseFloat(t);else return t;const n=di(t,e.target.x),i=di(t,e.target.y);return`${n}% ${i}%`}},_l={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=X.parse(t);if(s.length>5)return i;const r=X.createTransformer(t),o=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+o]/=a,s[1+o]/=l;const u=M(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=u),typeof s[3+o]=="number"&&(s[3+o]/=u),r(s)}},tn={borderRadius:{...Mt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Mt,borderTopRightRadius:Mt,borderBottomLeftRadius:Mt,borderBottomRightRadius:Mt,boxShadow:_l};function To(t,{layout:e,layoutId:n}){return Vt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!tn[t]||t==="opacity")}function Rn(t,e,n){var o;const i=t.style,s=e==null?void 0:e.style,r={};if(!i)return r;for(const a in i)(j(i[a])||s&&j(s[a])||To(a,t)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(r[a]=i[a]);return r}function ql(t){return window.getComputedStyle(t)}class Zl extends go{constructor(){super(...arguments),this.type="html",this.renderInstance=xo}readValueFromInstance(e,n){var i;if(Vt.has(n))return(i=this.projection)!=null&&i.isProjecting?We(n):va(e,n);{const s=ql(e),r=(Ps(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return bo(e,n)}build(e,n,i){Dn(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return Rn(e,n,i)}}const Jl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ql={offset:"strokeDashoffset",array:"strokeDasharray"};function tc(t,e,n=1,i=0,s=!0){t.pathLength=1;const r=s?Jl:Ql;t[r.offset]=`${-i}`,t[r.array]=`${e} ${n}`}const ec=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function So(t,{attrX:e,attrY:n,attrScale:i,pathLength:s,pathSpacing:r=1,pathOffset:o=0,...a},l,u,c){if(Dn(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:d}=t;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete h.transformBox);for(const f of ec)h[f]!==void 0&&(d[f]=h[f],delete h[f]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),i!==void 0&&(h.scale=i),s!==void 0&&tc(h,s,r,o,!1)}const Ao=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"]),Po=t=>typeof t=="string"&&t.toLowerCase()==="svg";function nc(t,e,n,i){xo(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(Ao.has(s)?s:An(s),e.attrs[s])}function Co(t,e,n){const i=Rn(t,e,n);for(const s in t)if(j(t[s])||j(e[s])){const r=Ct.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[r]=t[s]}return i}class ic extends go{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=L}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Vt.has(n)){const i=no(n);return i&&i.default||0}return n=Ao.has(n)?n:An(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return Co(e,n,i)}build(e,n,i){So(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,s){nc(e,n,i,s)}mount(e){this.isSVGTag=Po(e.tagName),super.mount(e)}}const sc=kn.length;function Vo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Vo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<sc;n++){const i=kn[n],s=t.props[i];(jt(s)||s===!1)&&(e[i]=s)}return e}function Mo(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const oc=[...En].reverse(),rc=En.length;function ac(t){return e=>Promise.all(e.map(({animation:n,options:i})=>sl(t,n,i)))}function lc(t){let e=ac(t),n=fi(),i=!0,s=!1;const r=u=>(c,h)=>{var f;const d=gt(t,h,u==="exit"?(f=t.presenceContext)==null?void 0:f.custom:void 0);if(d){const{transition:m,transitionEnd:g,...p}=d;c={...c,...p,...g}}return c};function o(u){e=u(t)}function a(u){const{props:c}=t,h=Vo(t.parent)||{},d=[],f=new Set;let m={},g=1/0;for(let y=0;y<rc;y++){const w=oc[y],v=n[w],x=c[w]!==void 0?c[w]:h[w],S=jt(x),R=w===u?v.isActive:null;R===!1&&(g=y);let O=x===h[w]&&x!==c[w]&&S;if(O&&(i||s)&&t.manuallyAnimateOnMount&&(O=!1),v.protectedKeys={...m},!v.isActive&&R===null||!x&&!v.prevProp||fe(x)||typeof x=="boolean")continue;if(w==="exit"&&v.isActive&&R!==!0){v.prevResolvedValues&&(m={...m,...v.prevResolvedValues});continue}const P=cc(v.prevProp,x);let F=P||w===u&&v.isActive&&!O&&S||y>g&&S,A=!1;const k=Array.isArray(x)?x:[x];let H=k.reduce(r(w),{});R===!1&&(H={});const{prevResolvedValues:ct={}}=v,Z={...ct,...H},it=B=>{F=!0,f.has(B)&&(A=!0,f.delete(B)),v.needsAnimating[B]=!0;const z=t.getValue(B);z&&(z.liveStyle=!1)};for(const B in Z){const z=H[B],ut=ct[B];if(m.hasOwnProperty(B))continue;let yt=!1;Ke(z)&&Ke(ut)?yt=!Mo(z,ut):yt=z!==ut,yt?z!=null?it(B):f.add(B):z!==void 0&&f.has(B)?it(B):v.protectedKeys[B]=!0}v.prevProp=x,v.prevResolvedValues=H,v.isActive&&(m={...m,...H}),(i||s)&&t.blockInitialAnimation&&(F=!1);const J=O&&P;F&&(!J||A)&&d.push(...k.map(B=>{const z={type:w};if(typeof B=="string"&&(i||s)&&!J&&t.manuallyAnimateOnMount&&t.parent){const{parent:ut}=t,yt=gt(ut,B);if(ut.enteringChildren&&yt){const{delayChildren:er}=yt.transition||{};z.delay=$s(ut.enteringChildren,t,er)}}return{animation:B,options:z}}))}if(f.size){const y={};if(typeof c.initial!="boolean"){const w=gt(t,Array.isArray(c.initial)?c.initial[0]:c.initial);w&&w.transition&&(y.transition=w.transition)}f.forEach(w=>{const v=t.getBaseTarget(w),x=t.getValue(w);x&&(x.liveStyle=!0),y[w]=v??null}),d.push({animation:y})}let p=!!d.length;return i&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(p=!1),i=!1,s=!1,p?e(d):Promise.resolve()}function l(u,c){var d;if(n[u].isActive===c)return Promise.resolve();(d=t.variantChildren)==null||d.forEach(f=>{var m;return(m=f.animationState)==null?void 0:m.setActive(u,c)}),n[u].isActive=c;const h=a(u);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=fi(),s=!0}}}function cc(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Mo(e,t):!1}function ht(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fi(){return{animate:ht(!0),whileInView:ht(),whileHover:ht(),whileTap:ht(),whileDrag:ht(),whileFocus:ht(),exit:ht()}}function en(t,e){t.min=e.min,t.max=e.max}function Y(t,e){en(t.x,e.x),en(t.y,e.y)}function mi(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Eo=1e-4,uc=1-Eo,hc=1+Eo,ko=.01,dc=0-ko,fc=0+ko;function N(t){return t.max-t.min}function mc(t,e,n){return Math.abs(t-e)<=n}function pi(t,e,n,i=.5){t.origin=i,t.originPoint=M(e.min,e.max,t.origin),t.scale=N(n)/N(e),t.translate=M(n.min,n.max,t.origin)-t.originPoint,(t.scale>=uc&&t.scale<=hc||isNaN(t.scale))&&(t.scale=1),(t.translate>=dc&&t.translate<=fc||isNaN(t.translate))&&(t.translate=0)}function Lt(t,e,n,i){pi(t.x,e.x,n.x,i?i.originX:void 0),pi(t.y,e.y,n.y,i?i.originY:void 0)}function gi(t,e,n,i=0){const s=i?M(n.min,n.max,i):n.min;t.min=s+e.min,t.max=t.min+N(e)}function pc(t,e,n,i){gi(t.x,e.x,n.x,i==null?void 0:i.x),gi(t.y,e.y,n.y,i==null?void 0:i.y)}function yi(t,e,n,i=0){const s=i?M(n.min,n.max,i):n.min;t.min=e.min-s,t.max=t.min+N(e)}function ce(t,e,n,i){yi(t.x,e.x,n.x,i==null?void 0:i.x),yi(t.y,e.y,n.y,i==null?void 0:i.y)}function vi(t,e,n,i,s){return t-=e,t=le(t,1/n,i),s!==void 0&&(t=le(t,1/s,i)),t}function gc(t,e=0,n=1,i=.5,s,r=t,o=t){if(nt.test(e)&&(e=parseFloat(e),e=M(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=M(r.min,r.max,i);t===r&&(a-=e),t.min=vi(t.min,e,n,a,s),t.max=vi(t.max,e,n,a,s)}function wi(t,e,[n,i,s],r,o){gc(t,e[n],e[i],e[s],e.scale,r,o)}const yc=["x","scaleX","originX"],vc=["y","scaleY","originY"];function bi(t,e,n,i){wi(t.x,e,yc,n?n.x:void 0,i?i.x:void 0),wi(t.y,e,vc,n?n.y:void 0,i?i.y:void 0)}function xi(t){return t.translate===0&&t.scale===1}function Do(t){return xi(t.x)&&xi(t.y)}function Ti(t,e){return t.min===e.min&&t.max===e.max}function wc(t,e){return Ti(t.x,e.x)&&Ti(t.y,e.y)}function Si(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ro(t,e){return Si(t.x,e.x)&&Si(t.y,e.y)}function Ai(t){return N(t.x)/N(t.y)}function Pi(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Q(t){return[t("x"),t("y")]}function bc(t,e,n){let i="";const s=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((s||r||o)&&(i=`translate3d(${s}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:d,skewX:f,skewY:m}=n;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),h&&(i+=`rotateX(${h}deg) `),d&&(i+=`rotateY(${d}deg) `),f&&(i+=`skewX(${f}deg) `),m&&(i+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const Lo=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],xc=Lo.length,Ci=t=>typeof t=="string"?parseFloat(t):t,Vi=t=>typeof t=="number"||b.test(t);function Tc(t,e,n,i,s,r){s?(t.opacity=M(0,n.opacity??1,Sc(i)),t.opacityExit=M(e.opacity??1,0,Ac(i))):r&&(t.opacity=M(e.opacity??1,n.opacity??1,i));for(let o=0;o<xc;o++){const a=Lo[o];let l=Mi(e,a),u=Mi(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Vi(l)===Vi(u)?(t[a]=Math.max(M(Ci(l),Ci(u),i),0),(nt.test(u)||nt.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=M(e.rotate||0,n.rotate||0,i))}function Mi(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Sc=Io(0,.5,ws),Ac=Io(.5,.95,U);function Io(t,e,n){return i=>i<t?0:i>e?1:n(St(t,e,i))}function Pc(t,e,n){const i=j(t)?t:et(t);return i.start(Tn("",i,e,n)),i.animation}function Ot(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const Cc=(t,e)=>t.depth-e.depth;class Vc{constructor(){this.children=[],this.isDirty=!1}add(e){an(this.children,e),this.isDirty=!0}remove(e){ne(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Cc),this.isDirty=!1,this.children.forEac
6h(e)}}function Mc(t,e){const n=W.now(),i=({timestamp:s})=>{const r=s-n;r>=e&&(q(i),t(r-e))};return C.setup(i,!0),()=>q(i)}function te(t){return j(t)?t.get():t}class Ec{constructor(){this.members=[]}add(e){an(this.members,e);for(let n=this.members.length-1;n>=0;n--){const i=this.members[n];if(i===e||i===this.lead||i===this.prevLead)continue;const s=i.instance;(!s||s.isConnected===!1)&&!i.snapshot&&(ne(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if(ne(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){var n;for(let i=this.members.indexOf(e)-1;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1&&((n=s.instance)==null?void 0:n.isConnected)!==!1)return this.promote(s),!0}return!1}promote(e,n){var s;const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();const{layoutDependency:r}=i.options,{layoutDependency:o}=e.options;(r===void 0||r!==o)&&(e.resumeFrom=i,n&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),(s=e.root)!=null&&s.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var n,i,s,r,o;(i=(n=e.options).onExitComplete)==null||i.call(n),(o=(s=e.resumingFrom)==null?void 0:(r=s.options).onExitComplete)==null||o.call(r)})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){var e;(e=this.lead)!=null&&e.snapshot&&(this.lead.snapshot=void 0)}}const ee={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ae=["","X","Y","Z"],kc=1e3;let Dc=0;function Pe(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Fo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Js(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",C,!(s||r))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Fo(i)}function Bo({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(o={},a=e==null?void 0:e()){this.id=Dc++,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(Ic),this.nodes.forEach(Nc),this.nodes.forEach(Hc),this.nodes.forEach(Fc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vc)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ln),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Mn(o)&&!Ll(o),this.instance=o;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let c,h=0;const d=()=>this.root.updateBlockedByResize=!1;C.read(()=>{h=window.innerWidth}),t(o,()=>{const f=window.innerWidth;
vendor: 4,661 bytes, line 6
6f!==h&&(h=f,this.root.updateBlockedByResize=!0,c&&c(),c=Mc(d,250),ee.hasAnimatedSinceResize&&(ee.hasAnimatedSinceResize=!1,this.nodes.forEach(Di)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:d,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||Yc,{onLayoutAnimationStart:g,onLayoutAnimationComplete:p}=u.getProps(),y=!this.targetLayout||!Ro(this.targetLayout,f),w=!h&&d;if(this.options.layoutRoot||this.resumeFrom||w||h&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...xn(m,"layout"),onPlay:g,onComplete:p};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,w)}else h||Di(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),q(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(Uc),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Fo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(jc),this.nodes.forEach(Ei);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ki);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Oc),this.nodes.forEach(Wc),this.nodes.forEach(Rc),this.nodes.forEach(Lc)):this.nodes.forEach(ki),this.clearAllSnapshots();const a=W.now();I.delta=_(0,1e3/60,a-I.timestamp),I.timestamp=a,I.isProcessing=!0,ge.update.process(I),ge.preRender.process(I),ge.render.process(I),I.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Cn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Bc),this.sharedNodes.forEach(Gc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,C.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){C.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!N(this.snapshot.measuredBox.x)&&!N(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=L()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=i(this.instance);
6this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Do(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||dt(this.latestValues)||c)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),$c(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return L();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(Xc))){const{scroll:c}=this.root;c&&(tt(a.x,c.offset.x),tt(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=L();if(Y(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:h,options:d}=c;c!==this.root&&h&&d.layoutScroll&&(h.wasRoot&&Y(a,o),tt(a.x,h.offset.x),tt(a.y,h.offset.y))}return a}applyTransform(o,a=!1,l){var c,h;const u=l||L();Y(u,o);for(let d=0;d<this.path.length;d++){const f=this.path[d];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(tt(u.x,-f.scroll.offset.x),tt(u.y,-f.scroll.offset.y)),dt(f.latestValues)&&Qt(u,f.latestValues,(c=f.layout)==null?void 0:c.layoutBox)}return dt(this.latestValues)&&Qt(u,this.latestValues,(h=this.layout)==null?void 0:h.layoutBox),u}removeTransform(o){var l;const a=L();Y(a,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!dt(c.latestValues))continue;let h;c.instance&&(Je(c.latestValues)&&c.updateSnapshot(),h=L(),Y(h,c.measurePageBox())),bi(a,c.latestValues,(l=c.snapshot)==null?void 0:l.layoutBox,h)}return dt(this.latestValues)&&bi(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==I.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var f;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:h}=this.options;if(!this.layout||!(c||h))return;this.resolvedRelativeTargetAt=I.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=L(),this.targetWithTransforms=L()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),pc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Y(this.target,this.layout.layoutBox),wo(this.target,this.targetDelta)):Y(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Je(this.parent.latestValues)||vo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=L(),this.relativeTargetOrigin=L(),ce(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),Y(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var m;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&
vendor: 5,321 bytes, line 6
6(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===I.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Y(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,d=this.treeScale.y;zl(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=L());const{target:f}=o;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(mi(this.prevProjectionDelta.x,this.projectionDelta.x),mi(this.prevProjectionDelta.y,this.projectionDelta.y)),Lt(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==d||!Pi(this.projectionDelta.x,this.prevProjectionDelta.x)||!Pi(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Tt(),this.projectionDelta=Tt(),this.projectionDeltaWithTransform=Tt()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=Tt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=L(),f=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=f!==m,p=this.getStack(),y=!p||p.members.length<=1,w=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(Kc));this.animationProgress=0;let v;this.mixTargetDelta=x=>{const S=x/1e3;Ri(h.x,o.x,S),Ri(h.y,o.y,S),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ce(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),zc(this.relativeTarget,this.relativeTargetOrigin,d,S),v&&wc(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=L()),Y(v,this.relativeTarget)),g&&(this.animationValues=c,Tc(c,u,this.latestValues,S,w,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(q(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=C.update(()=>{ee.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=et(0)),this.motionValue.jump(0,!1),this.currentAnimation=Pc(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(kc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&jo(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||L();const h=N(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const d=N(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}Y(a,l),Qt(a,c),Lt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Ec),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}
vendor: 11,350 bytes, line 6
6resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Pe("z",o,u,this.animationValues);for(let c=0;c<Ae.length;c++)Pe(`rotate${Ae[c]}`,o,u,this.animationValues),Pe(`skew${Ae[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=te(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=te(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!dt(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=bc(this.projectionDeltaWithTransform,this.treeScale,c);l&&(h=l(c,h)),o.transform=h;const{x:d,y:f}=this.projectionDelta;o.transformOrigin=`${d.origin*100}% ${f.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const m in tn){if(c[m]===void 0)continue;const{correct:g,applyTo:p,isCSSVariable:y}=tn[m],w=h==="none"?c[m]:g(c[m],u);if(p){const v=p.length;for(let x=0;x<v;x++)o[p[x]]=w}else y?this.options.visualElement.renderState.vars[m]=w:o[m]=w}this.options.layoutId&&(o.pointerEvents=u===this?te(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Ei),this.root.sharedNodes.clear()}}}function Rc(t){t.updateLayout()}function Lc(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:r}=t.options,o=e.source!==t.layout.source;if(r==="size")Q(h=>{const d=o?e.measuredBox[h]:e.layoutBox[h],f=N(d);d.min=i[h].min,d.max=d.min+f});else if(r==="x"||r==="y"){const h=r==="x"?"y":"x";en(o?e.measuredBox[h]:e.layoutBox[h],i[h])}else jo(r,e.layoutBox,i)&&Q(h=>{const d=o?e.measuredBox[h]:e.layoutBox[h],f=N(i[h]);d.max=d.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+f)});const a=Tt();Lt(a,i,e.layoutBox);const l=Tt();o?Lt(l,t.applyTransform(s,!0),e.measuredBox):Lt(l,i,e.layoutBox);const u=!Do(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:f}=h;if(d&&f){const m=t.options.layoutAnchor||void 0,g=L();ce(g,e.layoutBox,d.layoutBox,m);const p=L();ce(p,i,f.layoutBox,m),Ro(g,p)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=g,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Ic(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Fc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Bc(t){t.clearSnapshot()}function Ei(t){t.clearMeasurements()}function jc(t){t.isLayoutDirty=!0,t.updateLayout()}function ki(t){t.isLayoutDirty=!1}function Oc(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function Wc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Di(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Nc(t){t.resolveTargetDelta()}function Hc(t){t.calcProjection()}function Uc(t){t.resetSkewAndRotation()}function Gc(t){t.removeLeadSnapshot()}function Ri(t,e,n){t.translate=M(e.translate,0,n),t.scale=M(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Li(t,e,n,i){t.min=M(e.min,n.min,i),t.max=M(e.max,n.max,i)}function zc(t,e,n,i){Li(t.x,e.x,n.x,i),Li(t.y,e.y,n.y,i)}function Kc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Yc={duration:.45,ease:[.4,0,.1,1]},Ii=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Fi=Ii("applewebkit/")&&!Ii("chrome/")?Math.round:U;function Bi(t){t.min=Fi(t.min),t.max=Fi(t.max)}function $c(t){Bi(t.x),Bi(t.y)}function jo(t,e,n){return t==="position"||t==="preserve-aspect"&&!mc(Ai(e),Ai(n),.2)}function Xc(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const _c=Bo({attachResizeListener:(t,e)=>Ot(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Ce={current:void 0},Oo=Bo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ce.current){const t=new _c({});t.mount(window),t.setOptions({layoutScroll:!0}),Ce.current=t}return Ce.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Wo=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function qc(t=!0){const e=T.useContext(rn);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=e,r=T.useId();T.useEffect(()=>{if(t)return s(r)},[t]);const o=T.useCallback(()=>t&&i&&i(r),[r,i,t]);return!n&&i?[!1,o]:[!0]}const No=T.createContext({strict:!1}),ji={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"]};let Oi=!1;function Zc(){if(Oi)return;const t={};for(const e in ji)t[e]={isEnabled:n=>ji[e].some(i=>!!n[i])};po(t),Oi=!0}function Ho(){return Zc(),Nl()}function Jc(t){const e=Ho();for(const n in t)e[n]={...e[n],...t[n]};po(e)}const Qc=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 ue(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Qc.has(t)}let Uo=t=>!ue(t);function tu(t){typeof t=="function"&&(Uo=e=>e.startsWith("on")?!ue(e):t(e))}try{tu(require("@emotion/is-prop-valid").default)}catch{}function eu(t,e,n){const i={};for(const s in t)s==="values"&&typeof t.values=="object"||j(t[s])||(Uo(s)||n===!0&&ue(s)||!e&&!ue(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}const pe=T.createContext({});function nu(t,e){if(me(t)){const{initial:n,animate:i}=t;return{initial:n===!1||jt(n)?n:void 0,animate:jt(i)?i:void 0}}return t.inherit!==!1?e:{}}function iu(t){const{initial:e,animate:n}=nu(t,T.useContext(pe));return T.useMemo(()=>({initial:e,animate:n}),[Wi(e),Wi(n)])}function Wi(t){return Array.isArray(t)?t.join(" "):t}const Ln=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Go(t,e,n){for(const i in e)!j(e[i])&&!To(i,n)&&(t[i]=e[i])}function su({transformTemplate:t},e){return T.useMemo(()=>{const n=Ln();return Dn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function ou(t,e){const n=t.style||{},i={};return Go(i,n,t),Object.assign(i,su(t,e)),i}function ru(t,e){const n={},i=ou(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const zo=()=>({...Ln(),attrs:{}});function au(t,e,n,i){const s=T.useMemo(()=>{const r=zo();return So(r,e,Po(i),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};Go(r,t.style,t),s.style={...r,...s.style}}return s}const lu=["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 In(t){return typeof t!="string"||t.includes("-")?!1:!!(lu.indexOf(t)>-1||/[A-Z]/u.test(t))}function cu(t,e,n,{latestValues:i},s,r=!1,o){const l=(o??In(t)?au:ru)(e,i,s,t),u=eu(e,typeof t=="string",r),c=t!==T.Fragment?{...u,...l,ref:n}:{},{children:h}=e,d=T.useMemo(()=>j(h)?h.get():h,[h]);return T.createElement(t,{...c,children:d})}function uu({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,s){return{latestValues:hu(n,i,s,t),renderState:e()}}function hu(t,e,n,i){const s={},r=i(t,{});for(const d in r)s[d]=te(r[d]);let{initial:o,animate:a}=t;const l=me(t),u=fo(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const h=c?a:o;if(h&&typeof h!="boolean"&&!fe(h)){const d=Array.isArray(h)?h:[h];for(let f=0;f<d.length;f++){const m=Sn(t,d[f]);if(m){const{transitionEnd:g,transition:p,...y}=m;for(const w in y){let v=y[w];if(Array.isArray(v)){const x=c?v.length-1:0;v=v[x]}v!==null&&(s[w]=v)}for(const w in g)s[w]=g[w]}}}return s}const Ko=t=>(e,n)=>{const i=T.useContext(pe),s=T.useContext(rn),r=()=>uu(t,e,i,s);return n?r():as(r)},du=Ko({scrapeMotionValuesFromProps:Rn,createRenderState:Ln}),fu=Ko({scrapeMotionValuesFromProps:Co,createRenderState:zo}),mu=Symbol.for("motionComponentSymbol");function pu(t,e,n){const i=T.useRef(n);T.useInsertionEffect(()=>{i.current=n});const s=T.useRef(null);return T.useCallback(r=>{var a;r&&((a=t.onMount)==null||a.call(t,r));const o=i.current;if(typeof o=="function")if(r){const l=o(r);typeof l=="function"&&(s.current=l)}else s.current?(s.current(),s.current=null):o(r);else o&&(o.current=r);e&&(r?e.mount(r):e.unmount())},[e])}const Yo=T.createContext({});function wt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function gu(t,e,n,i,s,r){var v,x;const{visualElement:o}=T.useContext(pe),a=T.useContext(No),l=T.useContext(rn),u=T.useContext(Wo),c=u.reducedMotion,h=u.ski
6pAnimations,d=T.useRef(null),f=T.useRef(!1);i=i||a.renderer,!d.current&&i&&(d.current=i(t,{visualState:e,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:h,isSVG:r}),f.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));const m=d.current,g=T.useContext(Yo);m&&!m.projection&&s&&(m.type==="html"||m.type==="svg")&&yu(d.current,n,s,g);const p=T.useRef(!1);T.useInsertionEffect(()=>{m&&p.current&&m.update(n,l)});const y=n[Zs],w=T.useRef(!!y&&typeof window<"u"&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,y))&&((x=window.MotionHasOptimisedAnimation)==null?void 0:x.call(window,y)));return ls(()=>{f.current=!0,m&&(p.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),w.current&&m.animationState&&m.animationState.animateChanges())}),T.useEffect(()=>{m&&(!w.current&&m.animationState&&m.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)==null||S.call(window,y)}),w.current=!1),m.enteringChildren=void 0)}),m}function yu(t,e,n,i){const{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:$o(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||a&&wt(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:i,crossfade:h,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function $o(t){if(t)return t.options.allowProjection!==!1?t.projection:$o(t.parent)}function Ve(t,{forwardMotionProps:e=!1,type:n}={},i,s){i&&Jc(i);const r=n?n==="svg":In(t),o=r?fu:du;function a(u,c){let h;const d={...T.useContext(Wo),...u,layoutId:vu(u)},{isStatic:f}=d,m=iu(u),g=o(u,f);if(!f&&typeof window<"u"){wu();const p=bu(d);h=p.MeasureLayout,m.visualElement=gu(t,g,d,s,p.ProjectionNode,r)}return V.jsxs(pe.Provider,{value:m,children:[h&&m.visualElement?V.jsx(h,{visualElement:m.visualElement,...d}
vendor: 15,301 bytes, line 6
6):null,cu(t,u,pu(g,m.visualElement,c),g,f,e,r)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=T.forwardRef(a);return l[mu]=t,l}function vu({layoutId:t}){const e=T.useContext(rs).id;return e&&t!==void 0?e+"-"+t:t}function wu(t,e){T.useContext(No).strict}function bu(t){const e=Ho(),{drag:n,layout:i}=e;if(!n&&!i)return{};const s={...n,...i};return{MeasureLayout:n!=null&&n.isEnabled(t)||i!=null&&i.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function xu(t,e){if(typeof Proxy>"u")return Ve;const n=new Map,i=(r,o)=>Ve(r,o,t,e),s=(r,o)=>i(r,o);return new Proxy(s,{get:(r,o)=>o==="create"?i:(n.has(o)||n.set(o,Ve(o,void 0,t,e)),n.get(o))})}const Tu=(t,e)=>e.isSVG??In(t)?new ic(e):new Zl(e,{allowProjection:t!==T.Fragment});class Su extends lt{constructor(e){super(e),e.animationState||(e.animationState=lc(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();fe(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let Au=0;class Pu extends lt{constructor(){super(...arguments),this.id=Au++,this.isExitComplete=!1}update(){var r;if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;if(e&&i===!1){if(this.isExitComplete){const{initial:o,custom:a}=this.node.getProps();if(typeof o=="string"){const l=gt(this.node,o,a);if(l){const{transition:u,transitionEnd:c,...h}=l;for(const d in h)(r=this.node.getValue(d))==null||r.jump(h[d])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!e);n&&!e&&s.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Cu={animation:{Feature:Su},exit:{Feature:Pu}};function Ut(t){return{point:{x:t.pageX,y:t.pageY}}}const Vu=t=>e=>Vn(e)&&t(e,Ut(e));function It(t,e,n,i){return Ot(t,e,Vu(n),i)}const Xo=({current:t})=>t?t.ownerDocument.defaultView:null,Ni=(t,e)=>Math.abs(t-e);function Mu(t,e){const n=Ni(t.x,e.x),i=Ni(t.y,e.y);return Math.sqrt(n**2+i**2)}const Hi=new Set(["auto","scroll"]);class _o{constructor(e,n,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:r=!1,distanceThreshold:o=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=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Kt(this.lastRawMoveEventInfo,this.transformPagePoint));const f=Me(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=Mu(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:p}=f,{timestamp:y}=I;this.history.push({...p,timestamp:y});const{onStart:w,onMove:v}=this.handlers;m||(w&&w(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=Kt(m,this.transformPagePoint),C.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:g,onSessionEnd:p,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Me(f.type==="pointercancel"?this.lastMoveEventInfo:Kt(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,w),p&&p(f,w)},!Vn(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=s||window;const l=Ut(e),u=Kt(l,this.transformPagePoint),{point:c}=u,{timestamp:h}=I;this.history=[{...c,timestamp:h}];const{onSessionStart:d}=n;d&&d(e,Me(u,this.history)),this.removeListeners=Wt(It(this.contextWindow,"pointermove",this.handlePointerMove),It(this.contextWindow,"pointerup",this.handlePointerUp),It(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const i=getComputedStyle(n);(Hi.has(i.overflowX)||Hi.has(i.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.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){const n=this.scrollPositions.get(e);if(!n)return;const i=e===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:s.x-n.x,y:s.y-n.y};r.x===0&&r.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,s),C.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),q(this.updatePoint)}}function Kt(t,e){return e?{point:e(t.point)}:t}function Ui(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Me({point:t},e){return{point:t,delta:Ui(t,qo(e)),offset:Ui(t,Eu(e)),velocity:ku(e,.1)}}function Eu(t){return t[0]}function qo(t){return t[t.length-1]}function ku(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=qo(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>G(e)));)n--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&s.timestamp-i.timestamp>G(e)*2&&(i=t[1]);const r=K(s.timestamp-i.timestamp);if(r===0)return{x:0,y:0};const o={x:(s.x-i.x)/r,y:(s.y-i.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Du(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?M(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?M(n,t,i.max):Math.min(t,n)),t}function Gi(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Ru(t,{top:e,left:n,bottom:i,right:s}){return{x:Gi(t.x,n,s),y:Gi(t.y,e,i)}}function zi(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function Lu(t,e){return{x:zi(t.x,e.x),y:zi(t.y,e.y)}}function Iu(t,e){let n=.5;const i=N(t),s=N(e);return s>i?n=St(e.min,e.max-i,t.min):i>s&&(n=St(t.min,t.max-s,e.min)),_(0,1,n)}function Fu(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const nn=.35;function Bu(t=nn){return t===!1?t=0:t===!0&&(t=nn),{x:Ki(t,"left","right"),y:Ki(t,"top","bottom")}}function Ki(t,e,n){return{min:Yi(t,e),max:Yi(t,n)}}function Yi(t,e){return typeof t=="number"?t:t[e]||0}const ju=new WeakMap;class Ou{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=L(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const r=h=>{n&&this.snapToCursor(Ut(h).point),this.stopAnimation()},o=(h,d)=>{const{drag:f,dragPropagation:m,onDragStart:g}=this.getProps();if(f&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=gl(f),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Q(y=>{let w=this.getAxisMotionValue(y).get()||0;if(nt.test(w)){const{projection:v}=this.visualElement;if(v&&v.layout){const x=v.layout.layoutBox[y];x&&(w=N(x)*(parseFloat(w)/100))}}this.originPoint[y]=w}),g&&C.update(()=>g(h,d),!1,!0),Ye(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},a=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d;const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:g,onDrag:p}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=d;if(m&&this.currentDirection===null){this.currentDirection=Nu(y),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,y),this.updateAxis("y",d.point,y),this.visualElement.render(),p&&C.update(()=>p(h,d),!1,!0)},l=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d,this.stop(h,d),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new _o(e,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:i,contextWindow:Xo(this.visualElement),element:this.visualElement.current})}stop(e,n){const i=e||this.latestPointerEvent,s=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!s||!i)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&C.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,i){const{drag:s}=this.getProps();if(!i||!Yt(e,s,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(o=Du(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var r;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(r=this.visualElement.projection)==null?void 0:r.layout,s=this.constraints;e&&wt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=Ru(i.layoutBox,e):this.constraints=!1,this.elastic=Bu(n),s!==this.constraints&&!wt(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&Q(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Fu(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!wt(e))return!1;const i=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const r=Kl(i,s.root,this.visualElement.getTransformPagePoint());let o=Lu(s.layout.layoutBox,r);if(n){const a=n(Ul(o));this.hasMutatedConstraints=!!a,a&&(o=yo(a))}return o}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Q(c=>{if(!Yt(c,n,this.currentDirection))return;let h=l&&l[c]||{};(o===!0||o===c)&&(h={min:0,max:0});const d=s?200:1e6,f=s?40:1e7,m={type:"inertia",velocity:i?e[c]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return Ye(this.visualElement,e),i.start(Tn(e,i,0,n,this.visualElement,!1))}stopAnimation(){Q(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),s=i[n];return s||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){Q(n=>{const{drag:i}=this.getProps();if(!Yt(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,r=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n],l=r.get()||0;r.set(e[n]-M(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!wt(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Q(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=Iu({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),Q(o=>{if(!Yt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(M(l,u,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;ju.set(this.visualElement,this);const e=this.visualElement.current,n=It(e,"pointerdown",u=>{const{drag:c,dragListener:h=!0}=this.getProps(),d=u.target,f=d!==e&&Tl(d);c&&h&&!f&&this.start(u)});let i;const s=()=>{const{dragConstraints:u}=this.getProps();wt(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),i||(i=Wu(e,u.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),C.read(s);const a=Ot(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Q(h=>{const d=this.getAxisMotionValue(h);d&&(this.originPoint[h]+=u[h].translate,d.set(d.get()+u[h].translate))}),this.visualElement.render())}));return()=>{a(),n(),o(),l&&l(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:o=nn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function $i(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function Wu(t,e,n){const i=qe(t,$i(n)),s=qe(e,$i(n));return()=>{i(),s()}}function Yt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Nu(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Hu extends lt{constructor(e){super(e),this.removeGroupControls=U,this.removeListeners=U,this.controls=new Ou(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||U}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ee=t=>
6(e,n)=>{t&&C.update(()=>t(e,n),!1,!0)};class Uu extends lt{constructor(){super(...arguments),this.removePointerDownListener=U}onPointerDown(e){this.session=new _o(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xo(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ee(e),onStart:Ee(n),onMove:Ee(i),onEnd:(r,o)=>{delete this.session,s&&C.postRender(()=>s(r,o))}}}mount(){this.removePointerDownListener=It(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ke=!1;class Gu extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=e;r&&(n.group&&n.group.add(r),i&&i.register&&s&&i.register(r),ke&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ee.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:s,isPresent:r}=this.props,{projection:o}=i;return o&&(o.isPresent=r,e.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),ke=!0,s||e.layoutDependency!==n||n===void 0||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||C.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:i}=e;i&&(i.options.layoutAnchor=n,i.root.didUpdate(),Cn.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:s}=e;ke=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Zo(t){const[e,n]=qc(),i=T.useContext(rs);return V.jsx(Gu,{...t,layoutGroup:i,switchLayoutGroup:T.useContext(Yo),isPresent:e,safeToRemove:n})}const zu={pan:{Feature:Uu},drag:{Feature:Hu,ProjectionNode:Oo,MeasureLayout:Zo}};function Xi(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,r=i[s];r&&C.postRender(()=>r(e,Ut(e)))}class Ku extends lt{mount(){const{current:e}=this.node;e&&(this.unmount=vl(e,(n,i)=>(Xi(this.node,i,"Start"),s=>Xi(this.node,s,"End"))))}unmount(){}}class Yu extends lt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Wt(Ot(this.node.current,"focus",()=>this.onFocus()),Ot(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function _i(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),r=i[s];r&&C.postRender(()=>r(e,Ut(e)))}class $u extends lt{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:i}=this.node.props;this.unmount=Al(e,(s,r)=>(_i(this.node,r,"Start"),(o,{success:a})=>_i(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(i==null?void 0:i.tap)===!1})}unmount(){}}const sn=new WeakMap,De=new WeakMap,Xu=t=>{const e=sn.get(t.target);e&&e(t)},_u=t=>{t.forEach(Xu)};function qu({root:t,...e}){const n=t||document;De.has(n)||De.set(n,{});const i=De.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(_u,{root:t,...e})),i[s]}function Zu(t,e,n){const i=qu(e);return sn.set(t,n),i.observe(t),()=>{sn.delete(t),i.unobserve(t)}}const Ju={some:0,all:1};class Qu extends lt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:s="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:Ju[s]},a=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,r&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:h,onViewportLeave:d}=this.node.getProps(),f=c?h:d;f&&f(u)};this.stopObserver=Zu(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(th(e,n))&&this.startObserver()}unmount(){var e;(e=this.stopObserver)==null||e.call(this),this.hasEnteredView=!1,this.isInView=!1}}function th({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const eh={inView:{Feature:Qu},tap:{Feature:$u},focus:{Feature:Yu},hover:{Feature:Ku}},nh={layout:{ProjectionNode:Oo,MeasureLayout:Zo}},ih={...Cu,...eh,...zu,...nh},sh=xu(ih,Tu);function oh(t,e,n){T.useInsertionEffect(()=>t.on(e,n),[t,e,n])}function he(t){return typeof window>"u"?!1:t?Ns():bn()}const rh=50,qi=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),ah=()=>({time:0,x:qi(),y:qi()}),lh={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Zi(t,e,n,i){const s=n[e],{length:r,position:o}=lh[e],a=s.current,l=n.time;s.current=Math.abs(t[`scroll${o}`]),s.scrollLength=t[`scroll${r}`]-t[`client${r}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=St(0,s.scrollLength,s.current);const u=i-l;s.velocity=u>rh?0:cn(s.current-a,u)}function ch(t,e,n){Zi(t,"x",e,n),Zi(t,"y",e,n),e.time=n}function uh(t,e){const n={x:0,y:0};let i=t;for(;i&&i!==e;)if(ro(i))n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if(i.tagName==="svg"){const s=i.getBoundingClientRect();i=i.parentElement;const r=i.getBoundingClientRect();n.x+=s.left-r.left,n.y+=s.top-r.top}else if(i instanceof SVGGraphicsElement){const{x:s,y:r}=i.getBBox();n.x+=s,n.y+=r;let o=null,a=i.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=i.parentNode;i=o}else break;return n}const on={start:0,center:.5,end:1};function Ji(t,e,n=0){let i=0;if(t in on&&(t=on[t]),typeof t=="string"){const s=parseFloat(t);t.endsWith("px")?i=s:t.endsWith("%")?t=s/100:t.endsWith("vw")?i=s/100*document.documentElement.clientWidth:t.endsWith("vh")?i=s/100*document.documentElement.clientHeight:t=s}return typeof t=="number"&&(i=e*t),n+i}const hh=[0,0];function dh(t,e,n,i){let s=Array.isArray(t)?t:hh,r=0,o=0;return typeof t=="number"?s=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?s=t.split(" "):s=[t,on[t]?t:"0"]),r=Ji(s[0],n,i),o=Ji(s[1],e),r-o}const kt={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},fh={x:0,y:0};function mh(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function ph(t,e,n){const{offset:i=kt.All}=n,{target:s=t,axis:r="y"}=n,o=r==="y"?"height":"width",a=s!==t?uh(s,t):fh,l=s===t?{width:t.scrollWidth,height:t.scrollHeight}:mh(s),u={width:t.clientWidth,height:t.clientHeight};e[r].offset.length=0;let c=!e[r].interpolate;const h=i.length;for(let d=0;d<h;d++){const f=dh(i[d],u[o],l[o],a[r]);
6!c&&f!==e[r].interpolatorOffsets[d]&&(c=!0),e[r].offset[d]=f}c&&(e[r].interpolate=Is(e[r].offset,Fs(i),{clamp:!1}),e[r].interpolatorOffsets=[...e[r].offset]),e[r].progress=_(0,1,e[r].interpolate(e[r].current))}function gh(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let i=e;for(;i&&i!==t;)n.x.targetOffset+=i.offsetLeft,n.y.targetOffset+=i.offsetTop,i=i.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}function yh(t,e,n,i={}){return{measure:s=>{gh(t,i.target,n),ch(t,n,s),(i.offset||i.target)&&ph(t,n,i)},notify:()=>e(n)}}const vt=new WeakMap,Qi=new WeakMap,Re=new WeakMap,ts=new WeakMap,$t=new WeakMap,es=t=>t===document.scrollingElement?window:t;function Jo(t,{container:e=document.scrollingElement,trackContentSize:n=!1,...i}={}){if(!e)return U;let s=Re.get(e);s||(s=new Set,Re.set(e,s));const r=ah(),o=yh(e,t,r,i);if(s.add(o),!vt.has(e)){const l=()=>{for(const d of s)d.measure(I.timestamp);C.preUpdate(u)},u=()=>{for(const d of s)d.notify()},c=()=>C.read(l);vt.set(e,c);const h=es(e);window.addEventListener("resize",c),e!==document.documentElement&&Qi.set(e,qe(e,c)),h.addEventListener("scroll",c),c()}if(n&&!$t.has(e)){const l=vt.get(e),u={width:e.scrollWidth,height:e.scrollHeight};ts.set(e,u);const c=()=>{const d=e.scrollWidth,f=e.scrollHeight;(u.width!==d||u.height!==f)&&(l(),u.width=d,u.height=f)},h=C.read(c,!0);$t.set(e,h)}const a=vt.get(e);return C.read(a,!1,!0),()=>{var h;q(a);const l=Re.get(e);if(!l||(l.delete(o),l.size))return;const u=vt.get(e);vt.delete(e),u&&(es(e).removeEventListener("scroll",u),(h=Qi.get(e))==null||h(),window.removeEventListener("resize",u));const c=$t.get(e);c&&(q(c),$t.delete(e)),ts.delete(e)}}const vh=[[kt.Enter,"entry"],[kt.Exit,"exit"],[kt.Any,"cover"],[kt.All,"contain"]],ns={start:0,end:1};function wh(t){const e=t.trim().split(/\s+/);if(e.length!==2)return;const n=ns[e[0]],i=ns[e[1]];if(!(n===void 0||i===void 0))return[n,i]}function bh(t){if(t.length!==2)return;const e=[];for(const n of t)if(Array.isArray(n))e.push(n);else if(typeof n=="string"){const i=wh(n);if(!i)return;e.push(i)}else return;return e}function xh(t,e){const n=bh(t);if(!n)return!1;for(let i=0;i<2;i++){const s=n[i],r=e[i];if(s[0]!==r[0]||s[1]!==r[1])return!1}return!0}function Fn(t){if(!t)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[e,n]of vh)if(xh(t,e))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const is=new Map;function ss(t){const e={value:0},n=Jo(i=>{e.value=i[t.axis].progress*100},t);return{currentTime:e,cancel:n}}function Qo({source:t,container:e,...n}){const{axis:i}=n;t&&(e=t);let s=is.get(e);s||(s=new Map,is.set(e,s));const r=n.target??"self";let o=s.get(r);o||(o={},s.set(r,o));const a=i+(n.offset??[]).join(",");return o[a]||(n.target&&he(n.target)?Fn(n.offset)?o[a]=new ViewTimeline({subject:n.target,axis:i}):o[a]=ss({container:e,...n}):he()?o[a]=new ScrollTimeline({source:e,axis:i}):o[a]=ss({container:e,...n})),o[a]}function Th(t,e){const n=Qo(e),i=e.target?Fn(e.offset):void 0,s=e.target?he(e.target)&&!!i:he();return t.attachTimeline({timeline:s?n:void 0,...i&&s&&{rangeStart:i.rangeStart,rangeEnd:i.rangeEnd},observe:r=>(r.pause(),ho(o=>{r.time=r.iterationDuration*o},n))})}function Sh(t){return t.length===2}function Ah(t,e){return Sh(t)?Jo(n=>{t(n[e.axis].progress,n)},e):ho(t,Qo(e))}function tr(t,{axis:e="y",container:n=document.scrollingElement,...i}={}){if(!n)return U;const s={axis:e,container:n,...i};return typeof t=="function"?Ah(t,s):Th(t,s)}const Ph=()=>({scrollX:et(0),scrollY:et(0),scrollXProgress:et(0),scrollYProgress:et(0)}),Xt=t=>t?!t.current:!1;function os(t,e,n,i){return{factory:s=>tr(s,{...e,axis:t,container:(n==null?void 0:n.current)||void 0,target:(i==null?void 0:i.current)||void 0}),times:[0,1],keyframes:[0,1],ease:s=>s,duration:1}}function Ch(t,e){return typeof window>"u"?!1:t?Ns()&&!!Fn(e):bn()}function Vh({container:t,target:e,...n}={}){const i=as(Ph);Ch(e,n.offset)&&(i.scrollXProgress.accelerate=os("x",n,t,e),i.scrollYProgress.accelerate=os("y",n,t,e));const s=T.useRef(null),r=T.useRef(!1),o=T.useCallback(()=>(s.current=tr((a,{x:l,y:u})=>{i.scrollX.set(l.current),i.scrollXProgress.set(l.progress),i.scrollY.set(u.current),i.scrollYProgress.set(u.progress)}
6,{...n,container:(t==null?void 0:t.current)||void 0,target:(e==null?void 0:e.current)||void 0}),()=>{var a;(a=s.current)==null||a.call(s)}),[t,e,JSON.stringify(n.offset)]);return ls(()=>{if(r.current=!1,Xt(t)||Xt(e)){r.current=!0;return}else return o()},[o]),T.useEffect(()=>{if(r.current)return Ft(!Xt(t)),Ft(!Xt(e)),o()},[o]),i}function Lh({data:t,solid:e}){const[n,i]=T.useState(!0),[s,r]=T.useState(!1),{scrollY:o}=Vh();return oh(o,"change",a=>{const l=o.getPrevious();if(l===void 0)return;const u=typeof window<"u"?window.innerHeight:800;a<=u?i(!0):a>l?i(!1):i(!0)}),V.jsx(sh.header,{className:"fixed top-0 left-0 w-full z-50",initial:{y:"0%"},animate:{y:n?"0%":"-100%"},transition:{duration:.3,ease:"easeInOut"},children:V.jsxs("div",{className:`mx-auto px-5 ${s||e?"bg-brand-bg":""}`,children:[V.jsxs("div",{className:"flex justify-between items-center h-20",children:[V.jsx("div",{className:"shrink-0 flex items-center",children:V.jsx("a",{href:"/",className:"group inline-block transition-all","aria-label":"Go to homepage",children:V.jsxs("svg",{width:"88",height:"28",viewBox:"0 0 88 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[V.jsx("path",{d:"M14.1758 9.49121C14.7012 9.9583 14.7012 10.7799 14.1758 11.2471L9.04883 15.8057C8.2421 16.5231 8.74943 17.8574 9.8291 17.8574H22.1475C23.2271 17.8574 23.7344 16.5231 22.9277 15.8057L17.8018 11.249C17.2762 10.7819 17.2762 9.96028 17.8018 9.49316L28.4043 0.0683594L31.8682 6.16211L19.4609 28H12.4014L0 6.16211L3.49707 0L14.1758 9.49121Z",fill:"#FF6700"}),V.jsx("path",{className:"transition-opacity duration-300 group-hover:opacity-60",d:"M83.1352 23.238C79.2795 23.238 76.6736 20.4194 76.6736 16.67C76.6736 12.841 79.3859 9.99573 83.2415 9.99573C84.4913 9.99573 85.7411 10.2882 86.6984 10.7935V13.2664H86.5388C85.874 12.3357 84.704 11.6975 83.4543 11.6975C80.8749 11.6975 79.2263 13.6121 79.2263 16.351C79.2263 19.3557 81.0877 21.1639 83.7468 21.1639C84.9965 21.1639 86.0868 20.7916 87.1238 20.1269L87.4429 21.4032C86.2463 22.5732 84.7838 23.238 83.1352 23.238Z",fill:"black"}),V.jsx("path",{className:"transition-opacity duration-300 group-hover:opacity-60",d:"M73.2488 8.00148C72.2383 8.00148 71.4938 7.23034 71.4938 6.24648C71.4938 5.31579 72.2383 4.51807 73.2488 4.51807C74.1529 4.51807 74.924 5.31579 74.924 6.24648C74.924 7.23034 74.1795 8.00148 73.2488 8.00148ZM74.472 10.2351V19.8078C74.472 21.3235 74.5517 22.0681 75.057 22.8126V22.919H71.4672V22.8126C71.9724 22.0681 72.0256 21.3235 72.0256 19.8078V13.5058C72.0256 12.1231 71.8661 11.4051 71.3608 10.7137V10.5542L74.3922 10.2351H74.472Z",fill:"black"}),V.jsx("path",{className:"transition-opacity duration-300 group-hover:opacity-60",d:"M58.3911 19.8078V13.6387C58.3911 12.123 58.2315 11.405 57.7263 10.7137V10.5541L60.7843 10.235H60.864V12.1762H60.9704C61.9011 10.7669 63.1775 9.99573 64.6931 9.99573C67.0597 9.99573 68.8679 11.6178 68.8679 14.8087V19.8078C68.8679 21.3235 68.9477 22.0414 69.4529 22.8125V22.9189H65.8631V22.8125C66.3418 22.0414 66.4215 21.3235 66.4215 19.8078V14.8619C66.4215 12.9207 65.4377 11.9369 64.0284 11.9369C62.4329 11.9369 60.864 13.3196 60.864 15.5798V19.8078C60.864 21.3235 60.9704 22.068 61.4225 22.8125V22.9189H57.8327V22.8125C58.3379 22.068 58.3911 21.3235 58.3911 19.8078Z",fill:"black"}),V.jsx("path",{className:"transition-opacity duration-300 group-hover:opacity-60",d:"M53.823 8.00148C52.8126 8.00148 52.068 7.23
6034 52.068 6.24648C52.068 5.31579 52.8126 4.51807 53.823 4.51807C54.7271 4.51807 55.4982 5.31579 55.4982 6.24648C55.4982 7.23034 54.7537 8.00148 53.823 8.00148ZM55.0462 10.2351V19.8078C55.0462 21.3235 55.126 22.0681 55.6312 22.8126V22.919H52.0414V22.8126C52.5466 22.0681 52.5998 21.3235 52.5998 19.8078V13.5058C52.5998 12.1231 52.4403 11.4051 51.9351 10.7137V10.5542L54.9664 10.2351H55.0462Z",fill:"black"}),V.jsx("path",{className:"transition-opacity duration-300 group-hover:opacity-60",d:"M38.5161 22.9189V22.8126C39.2075 21.9085 39.367 20.898 39.367 18.9569V8.37369C39.367 6.45914 39.2075 5.44869 38.5161 4.5446V4.43823H50.482V7.54937H50.3491C49.7907 6.61869 48.5941 6.27301 46.2807 6.27301H41.9729V12.9207H45.5361C47.6368 12.9207 48.727 12.6282 49.2057 11.9369H49.3386V15.6862H49.2057C48.727 15.0214 47.6368 14.7289 45.5361 14.7289H41.9729V18.9569C41.9729 20.898 42.1325 21.9085 42.9302 22.8126V22.9189H38.5161Z",fill:"black"})]})})}),V.jsx("nav",{className:"hidden md:flex items-center gap-8",children:t.nav.map(a=>V.jsx("a",{href:a.href,className:"relative text-link muted-foreground transition-colors hover:text-foreground after:absolute after:bottom-0 after:left-0 after:h-px after:w-full after:origin-bottom-left after:scale-x-0 after:bg-current after:transition-transform after:duration-300 after:ease-out hover:after:scale-x-100",children:a.label},a.label))}),V.jsxs("div",{className:"flex items-center gap-3",children:[V.jsx("a",{href:t.cta.href,children:V.jsx(nr,{variant:"outline",children:t.cta.label})}),V.jsx("button",{type:"button",className:"md:hidden flex items-center justify-center w-10 h-10 -mr-1","aria-label":s?"Close menu":"Open menu","aria-expanded":s,onClick:()=>r(a=>!a),children:V.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:s?V.jsx("path",{d:"M4 4 L16 16 M16 4 L4 16",stroke:"black",strokeWidth:"1.5"}):V.jsx("path",{d:"M2 5 H18 M2 10 H18 M2 15 H18",stroke:"black",strokeWidth:"1.5"})})})]})]}),s&&V.jsx("nav",{className:"md:hidden bg-brand-bg border-t border-b border-black/10 -mx-5 px-5 py-6 flex flex-col gap-5",children:t.nav.map(a=>V.jsx("a",{href:a.href,onClick:()=>r(!1),className:"text-link muted-foreground transition-colors hover:text-foreground text-[1.05rem]",children:a.label},a.label))})]})})}export{Lh as H,Wo as M,ls as a,j as b,q as c,Zn as d,Vh as e,C as f,oh as g,sh as h,Is as i,Dh as j,mo as k,Wl as l,et as m,Ze as p,so as r,as as u};
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.