@jhits/plugin-website 0.0.15 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/131._entry.js +2 -0
- package/dist/131._entry.js.LICENSE.txt +6 -0
- package/dist/303._entry.js +1 -0
- package/dist/_entry.js +2 -0
- package/dist/_entry.js.LICENSE.txt +6 -0
- package/dist/api/handler.d.ts.map +1 -1
- package/dist/api/handler.js +16 -31
- package/dist/remoteEntry.js +1 -0
- package/dist/server.js +232 -0
- package/dist/types/settings.d.ts +18 -11
- package/dist/types/settings.d.ts.map +1 -1
- package/dist/views/Settings/components/ContactInfoSection.d.ts +12 -0
- package/dist/views/Settings/components/ContactInfoSection.d.ts.map +1 -0
- package/dist/views/Settings/components/ContactInfoSection.js +14 -0
- package/dist/views/Settings/components/DomainLanguagesCard.d.ts +8 -0
- package/dist/views/Settings/components/DomainLanguagesCard.d.ts.map +1 -0
- package/dist/views/Settings/components/DomainLanguagesCard.js +12 -0
- package/dist/views/Settings/components/DomainLanguagesModal.d.ts +12 -0
- package/dist/views/Settings/components/DomainLanguagesModal.d.ts.map +1 -0
- package/dist/views/Settings/components/DomainLanguagesModal.js +38 -0
- package/dist/views/Settings/components/FlagIcon.d.ts +6 -0
- package/dist/views/Settings/components/FlagIcon.d.ts.map +1 -0
- package/dist/views/Settings/components/FlagIcon.js +11 -0
- package/dist/views/Settings/components/LaunchDateSection.d.ts +8 -0
- package/dist/views/Settings/components/LaunchDateSection.d.ts.map +1 -0
- package/dist/views/Settings/components/LaunchDateSection.js +22 -0
- package/dist/views/Settings/components/LocalesManagementCard.d.ts +8 -0
- package/dist/views/Settings/components/LocalesManagementCard.d.ts.map +1 -0
- package/dist/views/Settings/components/LocalesManagementCard.js +66 -0
- package/dist/views/Settings/components/LocalizedContentSection.d.ts +12 -0
- package/dist/views/Settings/components/LocalizedContentSection.d.ts.map +1 -0
- package/dist/views/Settings/components/LocalizedContentSection.js +17 -0
- package/dist/views/Settings/components/SeoIdentitySection.d.ts +9 -0
- package/dist/views/Settings/components/SeoIdentitySection.d.ts.map +1 -0
- package/dist/views/Settings/components/SeoIdentitySection.js +12 -0
- package/dist/views/Settings/components/SocialLinksSection.d.ts +13 -0
- package/dist/views/Settings/components/SocialLinksSection.d.ts.map +1 -0
- package/dist/views/Settings/components/SocialLinksSection.js +13 -0
- package/dist/views/Settings/components/StatusSection.d.ts +8 -0
- package/dist/views/Settings/components/StatusSection.d.ts.map +1 -0
- package/dist/views/Settings/components/StatusSection.js +27 -0
- package/dist/views/Settings/constants.d.ts +12 -0
- package/dist/views/Settings/constants.d.ts.map +1 -0
- package/dist/views/Settings/constants.js +23 -0
- package/dist/views/Settings/hooks/useWebsiteSettings.d.ts +24 -0
- package/dist/views/Settings/hooks/useWebsiteSettings.d.ts.map +1 -0
- package/dist/views/Settings/hooks/useWebsiteSettings.js +217 -0
- package/dist/views/Settings/types.d.ts +5 -0
- package/dist/views/Settings/types.d.ts.map +1 -0
- package/dist/views/Settings/types.js +1 -0
- package/dist/views/SettingsView.d.ts +3 -6
- package/dist/views/SettingsView.d.ts.map +1 -1
- package/dist/views/SettingsView.js +59 -262
- package/package.json +14 -10
- package/src/api/handler.ts +42 -34
- package/src/types/settings.ts +28 -12
- package/src/views/Settings/components/ContactInfoSection.tsx +109 -0
- package/src/views/Settings/components/DomainLanguagesCard.tsx +91 -0
- package/src/views/Settings/components/DomainLanguagesModal.tsx +216 -0
- package/src/views/Settings/components/FlagIcon.tsx +20 -0
- package/src/views/Settings/components/LaunchDateSection.tsx +111 -0
- package/src/views/Settings/components/LocalesManagementCard.tsx +198 -0
- package/src/views/Settings/components/LocalizedContentSection.tsx +155 -0
- package/src/views/Settings/components/SeoIdentitySection.tsx +98 -0
- package/src/views/Settings/components/SocialLinksSection.tsx +98 -0
- package/src/views/Settings/components/StatusSection.tsx +181 -0
- package/src/views/Settings/constants.ts +26 -0
- package/src/views/Settings/hooks/useWebsiteSettings.ts +240 -0
- package/src/views/Settings/types.ts +4 -0
- package/src/views/SettingsView.tsx +226 -674
package/dist/_entry.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see _entry.js.LICENSE.txt */
|
|
2
|
+
var pluginWebsite;(()=>{"use strict";var t={406(t,e,s){s.d(e,{A:()=>c});var n=s(594);const r=(...t)=>t.filter((t,e,s)=>Boolean(t)&&""!==t.trim()&&s.indexOf(t)===e).join(" ").trim(),i=t=>{const e=(t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,s)=>s?s.toUpperCase():e.toLowerCase()))(t);return e.charAt(0).toUpperCase()+e.slice(1)};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const a=t=>{for(const e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0;return!1},l=(0,n.forwardRef)(({color:t="currentColor",size:e=24,strokeWidth:s=2,absoluteStrokeWidth:i,className:l="",children:c,iconNode:d,...h},u)=>(0,n.createElement)("svg",{ref:u,...o,width:e,height:e,stroke:t,strokeWidth:i?24*Number(s)/Number(e):s,className:r("lucide",l),...!c&&!a(h)&&{"aria-hidden":"true"},...h},[...d.map(([t,e])=>(0,n.createElement)(t,e)),...Array.isArray(c)?c:[c]])),c=(t,e)=>{const s=(0,n.forwardRef)(({className:s,...o},a)=>{return(0,n.createElement)(l,{ref:a,iconNode:e,className:r(`lucide-${c=i(t),c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,s),...o});var c});return s.displayName=i(t),s}},265(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},841(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},855(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},885(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]])},883(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},360(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("fingerprint-pattern",[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]])},846(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},323(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},781(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},172(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},68(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]])},775(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},599(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("pen-line",[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]])},215(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},555(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},487(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]])},398(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},571(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},145(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]])},191(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},189(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]])},387(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},82(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},168(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]])},696(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]])},218(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]])},246(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},572(t,e,s){s.d(e,{A:()=>n});const n=(0,s(406).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},594(t){t.exports=React},713(t){t.exports=ReactJSXRuntime},851(t,e,s){function n(t){var e,s,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(s=n(t[e]))&&(r&&(r+=" "),r+=s)}else for(s in t)t[s]&&(r&&(r+=" "),r+=s);return r}function r(){for(var t,e,s=0,r="",i=arguments.length;s<i;s++)(t=arguments[s])&&(e=n(t))&&(r&&(r+=" "),r+=e);return r}s.d(e,{$:()=>r})},109(t,e,s){s.d(e,{N:()=>v});var n=s(713),r=s(594),i=s(74),o=s(302),a=s(428),l=s(350),c=s(231),d=s(391);function h(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class u extends r.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if((0,c.s)(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){const t=e.offsetParent,s=(0,c.s)(t)&&t.offsetWidth||0,n=(0,c.s)(t)&&t.offsetHeight||0,r=getComputedStyle(e),i=this.props.sizeRef.current;i.height=parseFloat(r.height),i.width=parseFloat(r.width),i.top=e.offsetTop,i.left=e.offsetLeft,i.right=s-i.width-i.left,i.bottom=n-i.height-i.top}return null}componentDidUpdate(){}render(){return this.props.children}}function p({children:t,isPresent:e,anchorX:s,anchorY:i,root:o,pop:a}){const l=(0,r.useId)(),c=(0,r.useRef)(null),p=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=(0,r.useContext)(d.Q),f=t.props?.ref??t?.ref,g=function(...t){return r.useCallback(function(...t){return e=>{let s=!1;const n=t.map(t=>{const n=h(t,e);return s||"function"!=typeof n||(s=!0),n});if(s)return()=>{for(let e=0;e<n.length;e++){const s=n[e];"function"==typeof s?s():h(t[e],null)}}}}(...t),t)}(c,f);return(0,r.useInsertionEffect)(()=>{const{width:t,height:n,top:r,left:d,right:h,bottom:u}=p.current;if(e||!1===a||!c.current||!t||!n)return;const f="left"===s?`left: ${d}`:`right: ${h}`,g="bottom"===i?`bottom: ${u}`:`top: ${r}`;c.current.dataset.motionPopId=l;const y=document.createElement("style");m&&(y.nonce=m);const x=o??document.head;return x.appendChild(y),y.sheet&&y.sheet.insertRule(`\n [data-motion-pop-id="${l}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${n}px !important;\n ${f}px !important;\n ${g}px !important;\n }\n `),()=>{c.current?.removeAttribute("data-motion-pop-id"),x.contains(y)&&x.removeChild(y)}},[e]),(0,n.jsx)(u,{isPresent:e,childRef:c,sizeRef:p,pop:a,children:!1===a?t:r.cloneElement(t,{ref:g})})}const m=({children:t,initial:e,isPresent:s,onExitComplete:i,custom:a,presenceAffectsLayout:c,mode:d,anchorX:h,anchorY:u,root:m})=>{const g=(0,o.M)(f),y=(0,r.useId)();let x=!0,v=(0,r.useMemo)(()=>(x=!1,{id:y,initial:e,isPresent:s,custom:a,onExitComplete:t=>{g.set(t,!0);for(const t of g.values())if(!t)return;i&&i()},register:t=>(g.set(t,!1),()=>g.delete(t))}),[s,g,i]);return c&&x&&(v={...v}),(0,r.useMemo)(()=>{g.forEach((t,e)=>g.set(e,!1))},[s]),r.useEffect(()=>{!s&&!g.size&&i&&i()},[s]),t=(0,n.jsx)(p,{pop:"popLayout"===d,isPresent:s,anchorX:h,anchorY:u,root:m,children:t}),(0,n.jsx)(l.t.Provider,{value:v,children:t})};function f(){return new Map}var g=s(745);const y=t=>t.key||"";function x(t){const e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}const v=({children:t,custom:e,initial:s=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:u="left",anchorY:p="top",root:f})=>{const[v,b]=(0,g.xQ)(h),w=(0,r.useMemo)(()=>x(t),[t]),k=h&&!v?[]:w.map(y),j=(0,r.useRef)(!0),S=(0,r.useRef)(w),T=(0,o.M)(()=>new Map),P=(0,r.useRef)(new Set),[A,N]=(0,r.useState)(w),[C,M]=(0,r.useState)(w);(0,a.E)(()=>{j.current=!1,S.current=w;for(let t=0;t<C.length;t++){const e=y(C[t]);k.includes(e)?(T.delete(e),P.current.delete(e)):!0!==T.get(e)&&T.set(e,!1)}},[C,k.length,k.join("-")]);const E=[];if(w!==A){let t=[...w];for(let e=0;e<C.length;e++){const s=C[e],n=y(s);k.includes(n)||(t.splice(e,0,s),E.push(s))}return"wait"===d&&E.length&&(t=E),M(x(t)),N(w),null}const{forceRender:V}=(0,r.useContext)(i.L);return(0,n.jsx)(n.Fragment,{children:C.map(t=>{const r=y(t),i=!(h&&!v)&&(w===C||k.includes(r));return(0,n.jsx)(m,{isPresent:i,initial:!(j.current&&!s)&&void 0,custom:e,presenceAffectsLayout:c,mode:d,root:f,onExitComplete:i?void 0:()=>{if(P.current.has(r))return;if(!T.has(r))return;P.current.add(r),T.set(r,!0);let t=!0;T.forEach(e=>{e||(t=!1)}),t&&(V?.(),M(S.current),h&&b?.(),l&&l())},anchorX:u,anchorY:p,children:t},r)})})}},745(t,e,s){s.d(e,{xQ:()=>i});var n=s(594),r=s(350);function i(t=!0){const e=(0,n.useContext)(r.t);if(null===e)return[!0,null];const{isPresent:s,onExitComplete:i,register:o}=e,a=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return o(a)},[t]);const l=(0,n.useCallback)(()=>t&&i&&i(a),[a,i,t]);return!s&&i?[!1,l]:[!0]}},74(t,e,s){s.d(e,{L:()=>n});const n=(0,s(594).createContext)({})},391(t,e,s){s.d(e,{Q:()=>n});const n=(0,s(594).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},350(t,e,s){s.d(e,{t:()=>n});const n=(0,s(594).createContext)(null)},818(t,e,s){s.d(e,{P:()=>oa});const n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=(()=>new Set(n))(),i=(t,e,s)=>s>e?e:s<t?t:s,o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},a={...o,transform:t=>i(0,1,t)},l={...o,default:1},c=t=>Math.round(1e5*t)/1e5,d=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,h=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,u=(t,e)=>s=>Boolean("string"==typeof s&&h.test(s)&&s.startsWith(t)||e&&!function(t){return null==t}(s)&&Object.prototype.hasOwnProperty.call(s,e)),p=(t,e,s)=>n=>{if("string"!=typeof n)return n;const[r,i,o,a]=n.match(d);return{[t]:parseFloat(r),[e]:parseFloat(i),[s]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},m={...o,transform:t=>Math.round((t=>i(0,255,t))(t))},f={test:u("rgb","red"),parse:p("red","green","blue"),transform:({red:t,green:e,blue:s,alpha:n=1})=>"rgba("+m.transform(t)+", "+m.transform(e)+", "+m.transform(s)+", "+c(a.transform(n))+")"},g={test:u("#"),parse:function(t){let e="",s="",n="",r="";return t.length>5?(e=t.substring(1,3),s=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),s=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,s+=s,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(s,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:f.transform},y=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),x=y("deg"),v=y("%"),b=y("px"),w=y("vh"),k=y("vw"),j=(()=>({...v,parse:t=>v.parse(t)/100,transform:t=>v.transform(100*t)}))(),S={test:u("hsl","hue"),parse:p("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:s,alpha:n=1})=>"hsla("+Math.round(t)+", "+v.transform(c(e))+", "+v.transform(c(s))+", "+c(a.transform(n))+")"},T={test:t=>f.test(t)||g.test(t)||S.test(t),parse:t=>f.test(t)?f.parse(t):S.test(t)?S.parse(t):g.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?f.transform(t):S.transform(t),getAnimatableNone:t=>{const e=T.parse(t);return e.alpha=0,T.transform(e)}},P=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,A="number",N="color",C=/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 M(t){const e=t.toString(),s=[],n={color:[],number:[],var:[]},r=[];let i=0;const o=e.replace(C,t=>(T.test(t)?(n.color.push(i),r.push(N),s.push(T.parse(t))):t.startsWith("var(")?(n.var.push(i),r.push("var"),s.push(t)):(n.number.push(i),r.push(A),s.push(parseFloat(t))),++i,"${}")).split("${}");return{values:s,split:o,indexes:n,types:r}}function E({split:t,types:e}){const s=t.length;return n=>{let r="";for(let i=0;i<s;i++)if(r+=t[i],void 0!==n[i]){const t=e[i];r+=t===A?c(n[i]):t===N?T.transform(n[i]):n[i]}return r}}const V={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(d)?.length||0)+(t.match(P)?.length||0)>0},parse:function(t){return M(t).values},createTransformer:function(t){return E(M(t))},getAnimatableNone:function(t){const e=M(t);return E(e)(e.values.map((t,s)=>((t,e)=>{return"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof(s=t)?0:T.test(s)?T.getAnimatableNone(s):s;var s})(t,e.split[s])))}},z=new Set(["brightness","contrast","saturate","opacity"]);function D(t){const[e,s]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[n]=s.match(d)||[];if(!n)return t;const r=s.replace(n,"");let i=z.has(e)?1:0;return n!==s&&(i*=100),e+"("+i+r+")"}const L=/\b([a-z-]*)\(.*?\)/gu,R={...V,getAnimatableNone:t=>{const e=t.match(L);return e?e.map(D).join(" "):t}},O={...V,getAnimatableNone:t=>{const e=V.parse(t);return V.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},I={...o,transform:Math.round},B={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,rotate:x,rotateX:x,rotateY:x,rotateZ:x,scale:l,scaleX:l,scaleY:l,scaleZ:l,skew:x,skewX:x,skewY:x,distance:b,translateX:b,translateY:b,translateZ:b,x:b,y:b,z:b,perspective:b,transformPerspective:b,opacity:a,originX:j,originY:j,originZ:b,zIndex:I,fillOpacity:a,strokeOpacity:a,numOctaves:I},F={...B,color:T,backgroundColor:T,outlineColor:T,fill:T,stroke:T,borderColor:T,borderTopColor:T,borderRightColor:T,borderBottomColor:T,borderLeftColor:T,filter:R,WebkitFilter:R,mask:O,WebkitMask:O},U=t=>F[t],$=()=>({x:{min:0,max:0},y:{min:0,max:0}}),W=t=>Boolean(t&&t.getVelocity),_=new Set(["width","height","top","left","right","bottom",...n]),H=t=>e=>e.test(t),Y=[o,b,v,x,k,w,{test:t=>"auto"===t,parse:t=>t}],G=t=>Y.find(H(t)),X=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),K=t=>e=>"string"==typeof e&&e.startsWith(t),q=K("--"),Z=K("var(--"),J=t=>!!Z(t)&&Q.test(t.split("/*")[0].trim()),Q=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tt(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}const et=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function st(t,e,s=1){const[n,r]=function(t){const e=et.exec(t);if(!e)return[,];const[,s,n,r]=e;return[`--${s??n}`,r]}(t);if(!n)return;const i=window.getComputedStyle(e).getPropertyValue(n);if(i){const t=i.trim();return X(t)?parseFloat(t):t}return J(r)?st(r,e,s+1):r}const nt=t=>180*t/Math.PI,rt=t=>{const e=nt(Math.atan2(t[1],t[0]));return ot(e)},it={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:rt,rotateZ:rt,skewX:t=>nt(Math.atan(t[1])),skewY:t=>nt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ot=t=>((t%=360)<0&&(t+=360),t),at=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),lt=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ct={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:at,scaleY:lt,scale:t=>(at(t)+lt(t))/2,rotateX:t=>ot(nt(Math.atan2(t[6],t[5]))),rotateY:t=>ot(nt(Math.atan2(-t[2],t[0]))),rotateZ:rt,rotate:rt,skewX:t=>nt(Math.atan(t[4])),skewY:t=>nt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function dt(t){return t.includes("scale")?1:0}function ht(t,e){if(!t||"none"===t)return dt(e);const s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,r;if(s)n=ct,r=s;else{const e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=it,r=e}if(!r)return dt(e);const i=n[e],o=r[1].split(",").map(ut);return"function"==typeof i?i(o):o[i]}function ut(t){return parseFloat(t.trim())}const pt=t=>t===o||t===b,mt=new Set(["x","y","z"]),ft=n.filter(t=>!mt.has(t)),gt={width:({x:t},{paddingLeft:e="0",paddingRight:s="0",boxSizing:n})=>{const r=t.max-t.min;return"border-box"===n?r:r-parseFloat(e)-parseFloat(s)},height:({y:t},{paddingTop:e="0",paddingBottom:s="0",boxSizing:n})=>{const r=t.max-t.min;return"border-box"===n?r:r-parseFloat(e)-parseFloat(s)},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})=>ht(e,"x"),y:(t,{transform:e})=>ht(e,"y")};gt.translateX=gt.x,gt.translateY=gt.y;const yt=t=>t,xt={},vt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],bt={value:null,addProjectionMetrics:null};function wt(t,e){let s=!1,n=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>s=!0,o=vt.reduce((t,s)=>(t[s]=function(t,e){let s=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function c(e){o.has(e)&&(d.schedule(e),t()),l++,e(a)}const d={schedule:(t,e=!1,i=!1)=>{const a=i&&r?s:n;return e&&o.add(t),a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,r)return void(i=!0);r=!0;const o=s;s=n,n=o,s.forEach(c),e&&bt.value&&bt.value.frameloop[e].push(l),l=0,s.clear(),r=!1,i&&(i=!1,d.process(t))}};return d}(i,e?s:void 0),t),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:d,update:h,preRender:u,render:p,postRender:m}=o,f=()=>{const i=xt.useManualTiming,o=i?r.timestamp:performance.now();s=!1,i||(r.delta=n?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,a.process(r),l.process(r),c.process(r),d.process(r),h.process(r),u.process(r),p.process(r),m.process(r),r.isProcessing=!1,s&&e&&(n=!1,t(f))};return{schedule:vt.reduce((e,i)=>{const a=o[i];return e[i]=(e,i=!1,o=!1)=>(s||(s=!0,n=!0,r.isProcessing||t(f)),a.schedule(e,i,o)),e},{}),cancel:t=>{for(let e=0;e<vt.length;e++)o[vt[e]].cancel(t)},state:r,steps:o}}const{schedule:kt,cancel:jt,state:St,steps:Tt}=wt("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:yt,!0),Pt=new Set;let At=!1,Nt=!1,Ct=!1;function Mt(){if(Nt){const t=Array.from(Pt).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),s=new Map;e.forEach(t=>{const e=function(t){const e=[];return ft.forEach(s=>{const n=t.getValue(s);void 0!==n&&(e.push([s,n.get()]),n.set(s.startsWith("scale")?1:0))}),e}(t);e.length&&(s.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=s.get(t);e&&e.forEach(([e,s])=>{t.getValue(e)?.set(s)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}Nt=!1,At=!1,Pt.forEach(t=>t.complete(Ct)),Pt.clear()}function Et(){Pt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Nt=!0)})}class Vt{constructor(t,e,s,n,r,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=s,this.motionValue=n,this.element=r,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Pt.add(this),At||(At=!0,kt.read(Et),kt.resolveKeyframes(Mt))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:s,motionValue:n}=this;if(null===t[0]){const r=n?.get(),i=t[t.length-1];if(void 0!==r)t[0]=r;else if(s&&e){const n=s.readValue(e,i);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=i),n&&void 0===r&&n.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Pt.delete(this)}cancel(){"scheduled"===this.state&&(Pt.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const zt=t=>/^0[^.\s]+$/u.test(t);function Dt(t){return"number"==typeof t?0===t:null===t||"none"===t||"0"===t||zt(t)}const Lt=new Set([R,O]);function Rt(t,e){let s=U(t);return Lt.has(s)||(s=V),s.getAnimatableNone?s.getAnimatableNone(e):void 0}const Ot=new Set(["auto","none","0"]);class It extends Vt{constructor(t,e,s,n,r){super(t,e,s,n,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:s}=this;if(!e||!e.current)return;super.readKeyframes();for(let s=0;s<t.length;s++){let n=t[s];if("string"==typeof n&&(n=n.trim(),J(n))){const r=st(n,e.current);void 0!==r&&(t[s]=r),s===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!_.has(s)||2!==t.length)return;const[n,r]=t,i=G(n),o=G(r);if(tt(n)!==tt(r)&>[s])this.needsMeasurement=!0;else if(i!==o)if(pt(i)&&pt(o))for(let e=0;e<t.length;e++){const s=t[e];"string"==typeof s&&(t[e]=parseFloat(s))}else gt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,s=[];for(let e=0;e<t.length;e++)(null===t[e]||Dt(t[e]))&&s.push(e);s.length&&function(t,e,s){let n,r=0;for(;r<t.length&&!n;){const e=t[r];"string"==typeof e&&!Ot.has(e)&&M(e).values.length&&(n=t[r]),r++}if(n&&s)for(const r of e)t[r]=Rt(s,n)}(t,s,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:s}=this;if(!t||!t.current)return;"height"===s&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=gt[s](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const n=e[e.length-1];void 0!==n&&t.getValue(s,n).jump(n,!1)}measureEndState(){const{element:t,name:e,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);const r=s.length-1,i=s[r];s[r]=gt[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,s])=>{t.getValue(e).set(s)}),this.resolveNoneKeyframes()}}const Bt=t=>1e3*t,Ft=t=>t/1e3;function Ut(t,e){-1===t.indexOf(e)&&t.push(e)}function $t(t,e){const s=t.indexOf(e);s>-1&&t.splice(s,1)}class Wt{constructor(){this.subscriptions=[]}add(t){return Ut(this.subscriptions,t),()=>$t(this.subscriptions,t)}notify(t,e,s){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,s);else for(let r=0;r<n;r++){const n=this.subscriptions[r];n&&n(t,e,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function _t(t,e,s){(t=>t.startsWith("--"))(e)?t.style.setProperty(e,s):t.style[e]=s}function Ht(t){let e;return()=>(void 0===e&&(e=t()),e)}const Yt={};function Gt(t,e){const s=Ht(t);return()=>Yt[e]??s()}const Xt=Gt(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),Kt=t=>null!==t;function qt(t,{repeat:e,repeatType:s="loop"},n,r=1){const i=t.filter(Kt),o=r<0||e&&"loop"!==s&&e%2==1?0:i.length-1;return o&&void 0!==n?n:i[o]}class Zt{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const Jt={layout:0,mainThread:0,waapi:0},Qt=t=>Array.isArray(t)&&"number"==typeof t[0],te=Gt(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ee=(t,e,s=10)=>{let n="";const r=Math.max(Math.round(e/s),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},se=([t,e,s,n])=>`cubic-bezier(${t}, ${e}, ${s}, ${n})`,ne={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:se([0,.65,.55,1]),circOut:se([.55,0,1,.45]),backIn:se([.31,.01,.66,-.59]),backOut:se([.33,1.53,.69,.99])};function re(t,e){return t?"function"==typeof t?te()?ee(t,e):"ease-out":Qt(t)?se(t):Array.isArray(t)?t.map(t=>re(t,e)||ne.easeOut):ne[t]:void 0}function ie(t,e,s,{delay:n=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const d={[e]:s};l&&(d.offset=l);const h=re(a,r);Array.isArray(h)&&(d.easing=h),bt.value&&Jt.waapi++;const u={delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:i+1,direction:"reverse"===o?"alternate":"normal"};c&&(u.pseudoElement=c);const p=t.animate(d,u);return bt.value&&p.finished.finally(()=>{Jt.waapi--}),p}function oe(t){return"function"==typeof t&&"applyToOptions"in t}class ae extends Zt{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:s,keyframes:n,pseudoElement:r,allowFlatten:i=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=Boolean(r),this.allowFlatten=i,this.options=t,t.type;const l=function({type:t,...e}){return oe(t)&&te()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=ie(e,s,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const t=qt(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),_t(e,s,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ft(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ft(t)}get time(){return Ft(Number(this.animation.currentTime)||0)}set time(t){const e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Bt(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:s,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Xt()?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),s&&(this.animation.rangeEnd=s),yt):n(this)}}const le=new Set(["opacity","clipPath","filter","transform"]),{schedule:ce,cancel:de}=wt(queueMicrotask,!1);let he;function ue(){he=void 0}const pe={now:()=>(void 0===he&&pe.set(St.isProcessing||xt.useManualTiming?St.timestamp:performance.now()),he),set:t=>{he=t,queueMicrotask(ue)}};function me(t,e){return e?t*(1e3/e):0}const fe={current:void 0};class ge{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{const e=pe.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=pe.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Wt);const s=this.events[t].add(e);return"change"===t?()=>{s(),kt.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,s){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return fe.current&&fe.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=pe.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return me(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ye(t,e){return new ge(t,e)}const xe=[...Y,T,V],ve=new WeakMap;function be(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function we(t){return"string"==typeof t||Array.isArray(t)}const ke=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],je=["initial",...ke];function Se(t){return be(t.animate)||je.some(e=>we(t[e]))}function Te(t){return Boolean(Se(t)||t.variants)}const Pe={current:null},Ae={current:!1},Ne="undefined"!=typeof window;function Ce(t){const e=[{},{}];return t?.values.forEach((t,s)=>{e[0][s]=t.get(),e[1][s]=t.getVelocity()}),e}function Me(t,e,s,n){if("function"==typeof e){const[r,i]=Ce(n);e=e(void 0!==s?s:t.custom,r,i)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[r,i]=Ce(n);e=e(void 0!==s?s:t.custom,r,i)}return e}const Ee=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ve={};function ze(t){Ve=t}class De{scrapeMotionValuesFromProps(t,e,s){return{}}constructor({parent:t,props:e,presenceContext:s,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:i,visualState:o},a={}){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=Vt,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 t=pe.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,kt.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=e,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=a,this.blockInitialAnimation=Boolean(i),this.isControllingVariants=Se(e),this.isVariantNode=Te(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in h){const e=h[t];void 0!==l[t]&&W(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(const t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,ve.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(Ae.current||function(){if(Ae.current=!0,Ne)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Pe.current=t.matches;t.addEventListener("change",e),e()}else Pe.current=!1}(),this.shouldReduceMotion=Pe.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),jt(this.notifyUpdate),jt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&le.has(t)&&this.current instanceof HTMLElement){const{factory:s,keyframes:n,times:r,ease:i,duration:o}=e.accelerate,a=new ae({element:this.current,name:t,keyframes:n,times:r,ease:i,duration:Bt(o)}),l=s(a);return void this.valueSubscriptions.set(t,()=>{l(),a.cancel()})}const s=r.has(t);s&&this.onBindTransform&&this.onBindTransform();const n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&kt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in Ve){const e=Ve[t];if(!e)continue;const{isEnabled:s,Feature:n}=e;if(!this.features[t]&&n&&s(this.props)&&(this.features[t]=new n(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<Ee.length;e++){const s=Ee[e];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const n=t["on"+s];n&&(this.propEventSubscriptions[s]=this.on(s,n))}this.prevMotionValues=function(t,e,s){for(const n in e){const r=e[n],i=s[n];if(W(r))t.addValue(n,r);else if(W(i))t.addValue(n,ye(r,{owner:t}));else if(i!==r)if(t.hasValue(n)){const e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{const e=t.getStaticValue(n);t.addValue(n,ye(void 0!==e?e:r,{owner:t}))}}for(const n in s)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const s=this.values.get(t);e!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return void 0===s&&void 0!==e&&(s=ye(null===e?void 0:e,{owner:this}),this.addValue(t,s)),s}readValue(t,e){let s=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var n;return null!=s&&("string"==typeof s&&(X(s)||zt(s))?s=parseFloat(s):(n=s,!xe.find(H(n))&&V.test(e)&&(s=Rt(t,e))),this.setBaseTarget(t,W(s)?s.get():s)),W(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){const{initial:e}=this.props;let s;if("string"==typeof e||"object"==typeof e){const n=Me(this.props,e,this.presenceContext?.custom);n&&(s=n[t])}if(e&&void 0!==s)return s;const n=this.getBaseTargetFromProps(this.props,t);return void 0===n||W(n)?void 0!==this.initialValues[t]&&void 0===s?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new Wt),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){ce.render(this.render)}}class Le extends De{constructor(){super(...arguments),this.KeyframeResolver=It}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){const s=t.style;return s?s[e]:void 0}removeValueFromRenderState(t,{vars:e,style:s}){delete e[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;W(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function Re(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Oe=(t,e)=>e&&"number"==typeof t?e.transform(t):t,Ie={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Be=n.length;function Fe(t,e,s){const{style:i,vars:o,transformOrigin:a}=t;let l=!1,c=!1;for(const t in e){const s=e[t];if(r.has(t))l=!0;else if(q(t))o[t]=s;else{const e=Oe(s,B[t]);t.startsWith("origin")?(c=!0,a[t]=e):i[t]=e}}if(e.transform||(l||s?i.transform=function(t,e,s){let r="",i=!0;for(let o=0;o<Be;o++){const a=n[o],l=t[a];if(void 0===l)continue;let c=!0;if("number"==typeof l)c=l===(a.startsWith("scale")?1:0);else{const t=parseFloat(l);c=a.startsWith("scale")?1===t:0===t}if(!c||s){const t=Oe(l,B[a]);c||(i=!1,r+=`${Ie[a]||a}(${t}) `),s&&(e[a]=t)}}return r=r.trim(),s?r=s(e,i?"":r):i&&(r="none"),r}(e,t.transform,s):i.transform&&(i.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:s=0}=a;i.transformOrigin=`${t} ${e} ${s}`}}const Ue={offset:"stroke-dashoffset",array:"stroke-dasharray"},$e={offset:"strokeDashoffset",array:"strokeDasharray"},We=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function _e(t,{attrX:e,attrY:s,attrScale:n,pathLength:r,pathSpacing:i=1,pathOffset:o=0,...a},l,c,d){if(Fe(t,a,c),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:h,style:u}=t;h.transform&&(u.transform=h.transform,delete h.transform),(u.transform||h.transformOrigin)&&(u.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),u.transform&&(u.transformBox=d?.transformBox??"fill-box",delete h.transformBox);for(const t of We)void 0!==h[t]&&(u[t]=h[t],delete h[t]);void 0!==e&&(h.x=e),void 0!==s&&(h.y=s),void 0!==n&&(h.scale=n),void 0!==r&&function(t,e,s=1,n=0,r=!0){t.pathLength=1;const i=r?Ue:$e;t[i.offset]=""+-n,t[i.array]=`${e} ${s}`}(h,r,i,o,!1)}const He=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"]),Ye=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Ge(t,{style:e,vars:s},n,r){const i=t.style;let o;for(o in e)i[o]=e[o];for(o in r?.applyProjectionStyles(i,n),s)i.setProperty(o,s[o])}function Xe(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ke={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!b.test(t))return t;t=parseFloat(t)}return`${Xe(t,e.target.x)}% ${Xe(t,e.target.y)}%`}},qe=(t,e,s)=>t+(e-t)*s,Ze={correct:(t,{treeScale:e,projectionDelta:s})=>{const n=t,r=V.parse(t);if(r.length>5)return n;const i=V.createTransformer(t),o="number"!=typeof r[0]?1:0,a=s.x.scale*e.x,l=s.y.scale*e.y;r[0+o]/=a,r[1+o]/=l;const c=qe(a,l,.5);return"number"==typeof r[2+o]&&(r[2+o]/=c),"number"==typeof r[3+o]&&(r[3+o]/=c),i(r)}},Je={borderRadius:{...Ke,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ke,borderTopRightRadius:Ke,borderBottomLeftRadius:Ke,borderBottomRightRadius:Ke,boxShadow:Ze};function Qe(t,{layout:e,layoutId:s}){return r.has(t)||t.startsWith("origin")||(e||void 0!==s)&&(!!Je[t]||"opacity"===t)}function ts(t,e,s){const n=t.style,r=e?.style,i={};if(!n)return i;for(const e in n)(W(n[e])||r&&W(r[e])||Qe(e,t)||void 0!==s?.getValue(e)?.liveStyle)&&(i[e]=n[e]);return i}function es(t,e,s){const r=ts(t,e,s);for(const s in t)(W(t[s])||W(e[s]))&&(r[-1!==n.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=t[s]);return r}class ss extends Le{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(r.has(e)){const t=U(e);return t&&t.default||0}return e=He.has(e)?e:Re(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,s){return es(t,e,s)}build(t,e,s){_e(t,e,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,e,s,n){!function(t,e,s,n){Ge(t,e,void 0,n);for(const s in e.attrs)t.setAttribute(He.has(s)?s:Re(s),e.attrs[s])}(t,e,0,n)}mount(t){this.isSVGTag=Ye(t.tagName),super.mount(t)}}function ns({top:t,left:e,right:s,bottom:n}){return{x:{min:e,max:s},y:{min:t,max:n}}}function rs(t){return void 0===t||1===t}function is({scale:t,scaleX:e,scaleY:s}){return!rs(t)||!rs(e)||!rs(s)}function os(t){return is(t)||as(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function as(t){return ls(t.x)||ls(t.y)}function ls(t){return t&&"0%"!==t}function cs(t,e,s){return s+e*(t-s)}function ds(t,e,s,n,r){return void 0!==r&&(t=cs(t,r,n)),cs(t,s,n)+e}function hs(t,e=0,s=1,n,r){t.min=ds(t.min,e,s,n,r),t.max=ds(t.max,e,s,n,r)}function us(t,{x:e,y:s}){hs(t.x,e.translate,e.scale,e.originPoint),hs(t.y,s.translate,s.scale,s.originPoint)}const ps=.999999999999,ms=1.0000000000001;function fs(t,e){t.min=t.min+e,t.max=t.max+e}function gs(t,e,s,n,r=.5){hs(t,e,s,qe(t.min,t.max,r),n)}function ys(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function xs(t,e,s){const n=s??t;gs(t.x,ys(e.x,n.x),e.scaleX,e.scale,e.originX),gs(t.y,ys(e.y,n.y),e.scaleY,e.scale,e.originY)}function vs(t,e){return ns(function(t,e){if(!e)return t;const s=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class bs extends Le{constructor(){super(...arguments),this.type="html",this.renderInstance=Ge}readValueFromInstance(t,e){if(r.has(e))return this.projection?.isProjecting?dt(e):((t,e)=>{const{transform:s="none"}=getComputedStyle(t);return ht(s,e)})(t,e);{const n=(s=t,window.getComputedStyle(s)),r=(q(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof r?r.trim():r}var s}measureInstanceViewportBox(t,{transformPagePoint:e}){return vs(t,e)}build(t,e,s){Fe(t,e,s.transformTemplate)}scrapeMotionValuesFromProps(t,e,s){return ts(t,e,s)}}var ws=s(594);const ks=["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 js(t){return"string"==typeof t&&!t.includes("-")&&!!(ks.indexOf(t)>-1||/[A-Z]/u.test(t))}const Ss=(t,e)=>e.isSVG??js(t)?new ss(e):new bs(e,{allowProjection:t!==ws.Fragment});var Ts=s(713),Ps=s(74);const As=(0,ws.createContext)({strict:!1});var Ns=s(391);const Cs=(0,ws.createContext)({});function Ms(t){return Array.isArray(t)?t.join(" "):t}function Es(t,e,s){for(const n in e)W(e[n])||Qe(n,s)||(t[n]=e[n])}function Vs(t,e){const s={},n=function(t,e){const s={};return Es(s,t.style||{},t),Object.assign(s,function({transformTemplate:t},e){return(0,ws.useMemo)(()=>{const s={style:{},transform:{},transformOrigin:{},vars:{}};return Fe(s,e,t),Object.assign({},s.vars,s.style)},[e])}(t,e)),s}(t,e);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=n,s}function zs(t,e,s,n){const r=(0,ws.useMemo)(()=>{const s={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return _e(s,e,Ye(n),t.transformTemplate,t.style),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const e={};Es(e,t.style,t),r.style={...e,...r.style}}return r}const Ds=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 Ls(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Ds.has(t)}let Rs=t=>!Ls(t);try{"function"==typeof(Os=require("@emotion/is-prop-valid").default)&&(Rs=t=>t.startsWith("on")?!Ls(t):Os(t))}catch{}var Os;function Is(t,e,s,{latestValues:n},r,i=!1,o){const a=(o??js(t)?zs:Vs)(e,n,r,t),l=function(t,e,s){const n={};for(const r in t)"values"===r&&"object"==typeof t.values||W(t[r])||(Rs(r)||!0===s&&Ls(r)||!e&&!Ls(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,i),c=t!==ws.Fragment?{...l,...a,ref:s}:{},{children:d}=e,h=(0,ws.useMemo)(()=>W(d)?d.get():d,[d]);return(0,ws.createElement)(t,{...c,children:h})}function Bs(t){return W(t)?t.get():t}var Fs=s(350),Us=s(302);function $s(t,e,s,n){const r={},i=n(t,{});for(const t in i)r[t]=Bs(i[t]);let{initial:o,animate:a}=t;const l=Se(t),c=Te(t);e&&c&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let d=!!s&&!1===s.initial;d=d||!1===o;const h=d?a:o;if(h&&"boolean"!=typeof h&&!be(h)){const e=Array.isArray(h)?h:[h];for(let s=0;s<e.length;s++){const n=Me(t,e[s]);if(n){const{transitionEnd:t,transition:e,...s}=n;for(const t in s){let e=s[t];Array.isArray(e)&&(e=e[d?e.length-1:0]),null!==e&&(r[t]=e)}for(const e in t)r[e]=t[e]}}}return r}const Ws=t=>(e,s)=>{const n=(0,ws.useContext)(Cs),r=(0,ws.useContext)(Fs.t),i=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e},s,n,r){return{latestValues:$s(s,n,r,t),renderState:e()}}(t,e,n,r);return s?i():(0,Us.M)(i)},_s=Ws({scrapeMotionValuesFromProps:ts,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})}),Hs=Ws({scrapeMotionValuesFromProps:es,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}})}),Ys={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 Gs=!1;function Xs(){return function(){if(Gs)return;const t={};for(const e in Ys)t[e]={isEnabled:t=>Ys[e].some(e=>!!t[e])};ze(t),Gs=!0}(),Ve}const Ks=Symbol.for("motionComponentSymbol");function qs(t,e,s){const n=(0,ws.useRef)(s);(0,ws.useInsertionEffect)(()=>{n.current=s});const r=(0,ws.useRef)(null);return(0,ws.useCallback)(s=>{s&&t.onMount?.(s);const i=n.current;if("function"==typeof i)if(s){const t=i(s);"function"==typeof t&&(r.current=t)}else r.current?(r.current(),r.current=null):i(s);else i&&(i.current=s);e&&(s?e.mount(s):e.unmount())},[e])}const Zs="data-"+Re("framerAppearId"),Js=(0,ws.createContext)({});function Qs(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var tn=s(428);function en(t,e,s,n,r,i){const{visualElement:o}=(0,ws.useContext)(Cs),a=(0,ws.useContext)(As),l=(0,ws.useContext)(Fs.t),c=(0,ws.useContext)(Ns.Q),d=c.reducedMotion,h=c.skipAnimations,u=(0,ws.useRef)(null),p=(0,ws.useRef)(!1);n=n||a.renderer,!u.current&&n&&(u.current=n(t,{visualState:e,parent:o,props:s,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:d,skipAnimations:h,isSVG:i}),p.current&&u.current&&(u.current.manuallyAnimateOnMount=!0));const m=u.current,f=(0,ws.useContext)(Js);!m||m.projection||!r||"html"!==m.type&&"svg"!==m.type||function(t,e,s,n){const{layoutId:r,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:d}=e;t.projection=new s(t.latestValues,e["data-framer-portal-id"]?void 0:sn(t.parent)),t.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:Boolean(o)||a&&Qs(a),visualElement:t,animationType:"string"==typeof i?i:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:c})}(u.current,s,r,f);const g=(0,ws.useRef)(!1);(0,ws.useInsertionEffect)(()=>{m&&g.current&&m.update(s,l)});const y=s[Zs],x=(0,ws.useRef)(Boolean(y)&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return(0,tn.E)(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),x.current&&m.animationState&&m.animationState.animateChanges())}),(0,ws.useEffect)(()=>{m&&(!x.current&&m.animationState&&m.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),x.current=!1),m.enteringChildren=void 0)}),m}function sn(t){if(t)return!1!==t.options.allowProjection?t.projection:sn(t.parent)}function nn(t,{forwardMotionProps:e=!1,type:s}={},n,r){n&&function(t){const e=Xs();for(const s in t)e[s]={...e[s],...t[s]};ze(e)}(n);const i=s?"svg"===s:js(t),o=i?Hs:_s;function a(s,n){let a;const l={...(0,ws.useContext)(Ns.Q),...s,layoutId:rn(s)},{isStatic:c}=l,d=function(t){const{initial:e,animate:s}=function(t,e){if(Se(t)){const{initial:e,animate:s}=t;return{initial:!1===e||we(e)?e:void 0,animate:we(s)?s:void 0}}return!1!==t.inherit?e:{}}(t,(0,ws.useContext)(Cs));return(0,ws.useMemo)(()=>({initial:e,animate:s}),[Ms(e),Ms(s)])}(s),h=o(s,c);if(!c&&"undefined"!=typeof window){(0,ws.useContext)(As).strict;const e=function(t){const e=Xs(),{drag:s,layout:n}=e;if(!s&&!n)return{};const r={...s,...n};return{MeasureLayout:s?.isEnabled(t)||n?.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);a=e.MeasureLayout,d.visualElement=en(t,h,l,r,e.ProjectionNode,i)}return(0,Ts.jsxs)(Cs.Provider,{value:d,children:[a&&d.visualElement?(0,Ts.jsx)(a,{visualElement:d.visualElement,...l}):null,Is(t,s,qs(h,d.visualElement,n),h,c,e,i)]})}a.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;const l=(0,ws.forwardRef)(a);return l[Ks]=t,l}function rn({layoutId:t}){const e=(0,ws.useContext)(Ps.L).id;return e&&void 0!==t?e+"-"+t:t}function on(t,e){if("undefined"==typeof Proxy)return nn;const s=new Map,n=(s,n)=>nn(s,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,i)=>"create"===i?n:(s.has(i)||s.set(i,nn(i,void 0,t,e)),s.get(i))})}class an{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ln(t,e,s){const n=t.getProps();return Me(n,e,void 0!==s?s:n.custom,t)}function cn(t,e){if(t?.inherit&&e){const{inherit:s,...n}=t;return{...e,...n}}return t}function dn(t,e){const s=t?.[e]??t?.default??t;return s!==t?cn(s,t):s}const hn=t=>Array.isArray(t);function un(t,e,s){t.hasValue(e)?t.getValue(e).set(s):t.addValue(e,ye(s))}function pn(t){return hn(t)?t[t.length-1]||0:t}function mn(t,e){const s=t.getValue("willChange");if(n=s,Boolean(W(n)&&n.add))return s.add(e);if(!s&&xt.WillChange){const s=new xt.WillChange("auto");t.addValue("willChange",s),s.add(e)}var n}function fn(t){return t.props[Zs]}const gn=(t,e)=>s=>e(t(s)),yn=(...t)=>t.reduce(gn);function xn(t,e,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+6*(e-t)*s:s<.5?e:s<2/3?t+(e-t)*(2/3-s)*6:t}function vn(t,e){return s=>s>0?e:t}const bn=(t,e,s)=>{const n=t*t,r=s*(e*e-n)+n;return r<0?0:Math.sqrt(r)},wn=[g,f,S];function kn(t){const e=(s=t,wn.find(t=>t.test(s)));var s;if(Boolean(e),!Boolean(e))return!1;let n=e.parse(t);return e===S&&(n=function({hue:t,saturation:e,lightness:s,alpha:n}){t/=360,s/=100;let r=0,i=0,o=0;if(e/=100){const n=s<.5?s*(1+e):s+e-s*e,a=2*s-n;r=xn(a,n,t+1/3),i=xn(a,n,t),o=xn(a,n,t-1/3)}else r=i=o=s;return{red:Math.round(255*r),green:Math.round(255*i),blue:Math.round(255*o),alpha:n}}(n)),n}const jn=(t,e)=>{const s=kn(t),n=kn(e);if(!s||!n)return vn(t,e);const r={...s};return t=>(r.red=bn(s.red,n.red,t),r.green=bn(s.green,n.green,t),r.blue=bn(s.blue,n.blue,t),r.alpha=qe(s.alpha,n.alpha,t),f.transform(r))},Sn=new Set(["none","hidden"]);function Tn(t,e){return s=>qe(t,e,s)}function Pn(t){return"number"==typeof t?Tn:"string"==typeof t?J(t)?vn:T.test(t)?jn:Cn:Array.isArray(t)?An:"object"==typeof t?T.test(t)?jn:Nn:vn}function An(t,e){const s=[...t],n=s.length,r=t.map((t,s)=>Pn(t)(t,e[s]));return t=>{for(let e=0;e<n;e++)s[e]=r[e](t);return s}}function Nn(t,e){const s={...t,...e},n={};for(const r in s)void 0!==t[r]&&void 0!==e[r]&&(n[r]=Pn(t[r])(t[r],e[r]));return t=>{for(const e in n)s[e]=n[e](t);return s}}const Cn=(t,e)=>{const s=V.createTransformer(e),n=M(t),r=M(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?Sn.has(t)&&!r.values.length||Sn.has(e)&&!n.values.length?function(t,e){return Sn.has(t)?s=>s<=0?t:e:s=>s>=1?e:t}(t,e):yn(An(function(t,e){const s=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const i=e.types[r],o=t.indexes[i][n[i]],a=t.values[o]??0;s[r]=a,n[i]++}return s}(n,r),r.values),s):vn(t,e)};function Mn(t,e,s){return"number"==typeof t&&"number"==typeof e&&"number"==typeof s?qe(t,e,s):Pn(t)(t,e)}const En=t=>{const e=({timestamp:e})=>t(e);return{start:(t=!0)=>kt.update(e,t),stop:()=>jt(e),now:()=>St.isProcessing?St.timestamp:pe.now()}},Vn=2e4;function zn(t){let e=0,s=t.next(e);for(;!s.done&&e<Vn;)e+=50,s=t.next(e);return e>=Vn?1/0:e}const Dn=.01,Ln=2,Rn=.005,On=.5;function In(t,e){return t*Math.sqrt(1-e*e)}const Bn=["duration","bounce"],Fn=["stiffness","damping","mass"];function Un(t,e){return e.some(e=>void 0!==t[e])}function $n(t=.3,e=.3){const s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:n,restDelta:r}=s;const o=s.keyframes[0],a=s.keyframes[s.keyframes.length-1],l={done:!1,value:o},{stiffness:c,damping:d,mass:h,duration:u,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Un(t,Fn)&&Un(t,Bn))if(e.velocity=0,t.visualDuration){const s=t.visualDuration,n=2*Math.PI/(1.2*s),r=n*n,o=2*i(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:1,stiffness:r,damping:o}}else{const s=function({duration:t=800,bounce:e=.3,velocity:s=0,mass:n=1}){let r,o;Bt(10);let a=1-e;a=i(.05,1,a),t=i(.01,10,Ft(t)),a<1?(r=e=>{const n=e*a,r=n*t;return.001-(n-s)/In(e,a)*Math.exp(-r)},o=e=>{const n=e*a*t,i=n*s+s,o=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-n),c=In(Math.pow(e,2),a);return(.001-r(e)>0?-1:1)*((i-o)*l)/c}):(r=e=>Math.exp(-e*t)*((e-s)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(s-e)));const l=function(t,e,s){let n=s;for(let s=1;s<12;s++)n-=t(n)/e(n);return n}(r,o,5/t);if(t=Bt(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(l,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});e={...e,...s,mass:1},e.isResolvedFromDuration=!0}return e}({...s,velocity:-Ft(s.velocity||0)}),f=p||0,g=d/(2*Math.sqrt(c*h)),y=a-o,x=Ft(Math.sqrt(c/h)),v=Math.abs(y)<5;let b,w,k,j,S,T;if(n||(n=v?Dn:Ln),r||(r=v?Rn:On),g<1)k=In(x,g),j=(f+g*x*y)/k,b=t=>{const e=Math.exp(-g*x*t);return a-e*(j*Math.sin(k*t)+y*Math.cos(k*t))},S=g*x*j+y*k,T=g*x*y-j*k,w=t=>Math.exp(-g*x*t)*(S*Math.sin(k*t)+T*Math.cos(k*t));else if(1===g){b=t=>a-Math.exp(-x*t)*(y+(f+x*y)*t);const t=f+x*y;w=e=>Math.exp(-x*e)*(x*t*e-f)}else{const t=x*Math.sqrt(g*g-1);b=e=>{const s=Math.exp(-g*x*e),n=Math.min(t*e,300);return a-s*((f+g*x*y)*Math.sinh(n)+t*y*Math.cosh(n))/t};const e=(f+g*x*y)/t,s=g*x*e-y*t,n=g*x*y-e*t;w=e=>{const r=Math.exp(-g*x*e),i=Math.min(t*e,300);return r*(s*Math.sinh(i)+n*Math.cosh(i))}}const P={calculatedDuration:m&&u||null,velocity:t=>Bt(w(t)),next:t=>{if(!m&&g<1){const e=Math.exp(-g*x*t),s=Math.sin(k*t),i=Math.cos(k*t),o=a-e*(j*s+y*i),c=Bt(e*(S*s+T*i));return l.done=Math.abs(c)<=n&&Math.abs(a-o)<=r,l.value=l.done?a:o,l}const e=b(t);if(m)l.done=t>=u;else{const s=Bt(w(t));l.done=Math.abs(s)<=n&&Math.abs(a-e)<=r}return l.value=l.done?a:e,l},toString:()=>{const t=Math.min(zn(P),Vn),e=ee(e=>P.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return P}function Wn(t,e,s){const n=Math.max(e-5,0);return me(s-t(n),e-n)}function _n({keyframes:t,velocity:e=0,power:s=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:d}){const h=t[0],u={done:!1,value:h},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let m=s*e;const f=h+m,g=void 0===o?f:o(f);g!==f&&(m=g-h);const y=t=>-m*Math.exp(-t/n),x=t=>g+y(t),v=t=>{const e=y(t),s=x(t);u.done=Math.abs(e)<=c,u.value=u.done?g:s};let b,w;const k=t=>{var e;e=u.value,(void 0!==a&&e<a||void 0!==l&&e>l)&&(b=t,w=$n({keyframes:[u.value,p(u.value)],velocity:Wn(x,t,u.value),damping:r,stiffness:i,restDelta:c,restSpeed:d}))};return k(0),{calculatedDuration:null,next:t=>{let e=!1;return w||void 0!==b||(e=!0,v(t),k(t)),void 0!==b&&t>=b?w.next(t-b):(!e&&v(t),u)}}}$n.applyToOptions=t=>{const e=function(t,e=100,s){const n=s({...t,keyframes:[0,e]}),r=Math.min(zn(n),Vn);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:Ft(r)}}(t,100,$n);return t.ease=e.ease,t.duration=Bt(e.duration),t.type="keyframes",t};const Hn=(t,e,s)=>(((1-3*s+3*e)*t+(3*s-6*e))*t+3*e)*t;function Yn(t,e,s,n){if(t===e&&s===n)return yt;return r=>0===r||1===r?r:Hn(function(t,e,s,n,r){let i,o,a=0;do{o=e+(s-e)/2,i=Hn(o,n,r)-t,i>0?s=o:e=o}while(Math.abs(i)>1e-7&&++a<12);return o}(r,0,1,t,s),e,n)}const Gn=Yn(.42,0,1,1),Xn=Yn(0,0,.58,1),Kn=Yn(.42,0,.58,1),qn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Zn=t=>e=>1-t(1-e),Jn=Yn(.33,1.53,.69,.99),Qn=Zn(Jn),tr=qn(Qn),er=t=>t>=1?1:(t*=2)<1?.5*Qn(t):.5*(2-Math.pow(2,-10*(t-1))),sr=t=>1-Math.sin(Math.acos(t)),nr=Zn(sr),rr=qn(sr),ir={linear:yt,easeIn:Gn,easeInOut:Kn,easeOut:Xn,circIn:sr,circInOut:rr,circOut:nr,backIn:Qn,backInOut:tr,backOut:Jn,anticipate:er},or=t=>{if(Qt(t)){t.length;const[e,s,n,r]=t;return Yn(e,s,n,r)}return"string"==typeof t?ir[t]:t},ar=(t,e,s)=>{const n=e-t;return 0===n?1:(s-t)/n};function lr({duration:t=300,keyframes:e,times:s,ease:n="easeInOut"}){const r=(t=>Array.isArray(t)&&"number"!=typeof t[0])(n)?n.map(or):or(n),o={done:!1,value:e[0]},a=function(t,e){return t.map(t=>t*e)}(s&&s.length===e.length?s:function(t){const e=[0];return function(t,e){const s=t[t.length-1];for(let n=1;n<=e;n++){const r=ar(0,e,n);t.push(qe(s,1,r))}}(e,t.length-1),e}(e),t),l=function(t,e,{clamp:s=!0,ease:n,mixer:r}={}){const o=t.length;if(e.length,1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];const a=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=function(t,e,s){const n=[],r=s||xt.mix||Mn,i=t.length-1;for(let s=0;s<i;s++){let i=r(t[s],t[s+1]);if(e){const t=Array.isArray(e)?e[s]||yt:e;i=yn(t,i)}n.push(i)}return n}(e,n,r),c=l.length,d=s=>{if(a&&s<t[0])return e[0];let n=0;if(c>1)for(;n<t.length-2&&!(s<t[n+1]);n++);const r=ar(t[n],t[n+1],s);return l[n](r)};return s?e=>d(i(t[0],t[o-1],e)):d}(a,e,{ease:Array.isArray(r)?r:(c=e,d=r,c.map(()=>d||Kn).splice(0,c.length-1))});var c,d;return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}const cr={decay:_n,inertia:_n,tween:lr,keyframes:lr,spring:$n};function dr(t){"string"==typeof t.type&&(t.type=cr[t.type])}const hr=t=>t/100;class ur extends Zt{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==pe.now()&&this.tick(pe.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},Jt.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){const{options:t}=this;dr(t);const{type:e=lr,repeat:s=0,repeatDelay:n=0,repeatType:r,velocity:i=0}=t;let{keyframes:o}=t;const a=e||lr;a!==lr&&"number"!=typeof o[0]&&(this.mixKeyframes=yn(hr,Mn(o[0],o[1])),o=[0,100]);const l=a({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-i})),null===l.calculatedDuration&&(l.calculatedDuration=zn(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+n,this.totalDuration=this.resolvedDuration*(s+1)-n,this.generator=l}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:s,totalDuration:n,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return s.next(0);const{delay:c=0,keyframes:d,repeat:h,repeatType:u,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const y=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=this.currentTime,b=s;if(h){const t=Math.min(this.currentTime,n)/a;let e=Math.floor(t),s=t%1;!s&&t>=1&&(s=1),1===s&&e--,e=Math.min(e,h+1),Boolean(e%2)&&("reverse"===u?(s=1-s,p&&(s-=p/a)):"mirror"===u&&(b=o)),v=i(0,1,s)*a}const w=x?{done:!1,value:d[0]}:b.next(v);r&&!x&&(w.value=r(w.value));let{done:k}=w;x||null===l||(k=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);const j=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return j&&m!==_n&&(w.value=qt(d,this.options,g,this.speed)),f&&f(w.value),j&&this.finish(),w}then(t,e){return this.finished.then(t,e)}get duration(){return Ft(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ft(t)}get time(){return Ft(this.currentTime)}set time(t){t=Bt(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;return t<=0?this.options.velocity||0:this.generator.velocity?this.generator.velocity(t):Wn(t=>this.generator.next(t).value,t,this.generator.next(t).value)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(pe.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=Ft(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=En,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();const s=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=s):null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime||(this.startTime=e??s),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(pe.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,Jt.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}const pr={anticipate:er,backInOut:tr,circInOut:rr};class mr extends ae{constructor(t){var e;"string"==typeof(e=t).ease&&e.ease in pr&&(e.ease=pr[e.ease]),dr(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:s,onComplete:n,element:r,...o}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);const a=new ur({...o,autoplay:!1}),l=Math.max(10,pe.now()-this.startTime),c=i(0,10,l-10),d=a.sample(l).value,{name:h}=this.options;r&&h&&_t(r,h,d),e.setWithVelocity(a.sample(Math.max(0,l-c)).value,d,c),a.stop()}}const fr=(t,e)=>!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!V.test(t)&&"0"!==t||t.startsWith("url(")));function gr(t){t.duration=0,t.type="keyframes"}const yr=new Set(["opacity","clipPath","filter","transform"]),xr=Ht(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class vr extends Zt{constructor({autoplay:t=!0,delay:e=0,type:s="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:i="loop",keyframes:o,name:a,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=pe.now();const h={autoplay:t,delay:e,type:s,repeat:n,repeatDelay:r,repeatType:i,name:a,motionValue:l,element:c,...d},u=c?.KeyframeResolver||Vt;this.keyframeResolver=new u(o,(t,e,s)=>this.onKeyframesResolved(t,e,h,!s),a,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,s,n){this.keyframeResolver=void 0;const{name:r,type:i,velocity:o,delay:a,isHandoff:l,onUpdate:c}=s;this.resolvedAt=pe.now();let d=!0;(function(t,e,s,n){const r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;const i=t[t.length-1],o=fr(r,e),a=fr(i,e);return!(!o||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let s=0;s<t.length;s++)if(t[s]!==e)return!0}(t)||("spring"===s||oe(s))&&n)})(t,r,i,o)||(d=!1,!xt.instantAnimations&&a||c?.(qt(t,s,e)),t[0]=t[t.length-1],gr(s),s.repeat=0);const h={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...s,keyframes:t},u=d&&!l&&function(t){const{motionValue:e,name:s,repeatDelay:n,repeatType:r,damping:i,type:o}=t,a=e?.owner?.current;if(!(a instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return xr()&&s&&yr.has(s)&&("transform"!==s||!c)&&!l&&!n&&"mirror"!==r&&0!==i&&"inertia"!==o}(h),p=h.motionValue?.owner?.current,m=u?new mr({...h,element:p}):new ur(h);m.finished.then(()=>{this.notifyFinished()}).catch(yt),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ct=!0,Et(),Mt(),Ct=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const br={type:"spring",stiffness:500,damping:25,restSpeed:10},wr={type:"keyframes",duration:.8},kr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jr=t=>null!==t,Sr=(t,e,s,n={},i,o)=>a=>{const l=dn(n,t)||{},c=l.delay||n.delay||0;let{elapsed:d=0}=n;d-=Bt(c);const h={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-d,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:i};(function({when:t,delay:e,delayChildren:s,staggerChildren:n,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length})(l)||Object.assign(h,((t,{keyframes:e})=>e.length>2?wr:r.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:br:kr)(t,h)),h.duration&&(h.duration=Bt(h.duration)),h.repeatDelay&&(h.repeatDelay=Bt(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let u=!1;if((!1===h.type||0===h.duration&&!h.repeatDelay)&&(gr(h),0===h.delay&&(u=!0)),(xt.instantAnimations||xt.skipAnimations||i?.shouldSkipAnimations)&&(u=!0,gr(h),h.delay=0),h.allowFlatten=!l.type&&!l.ease,u&&!o&&void 0!==e.get()){const t=function(t,{repeat:e,repeatType:s="loop"},n){const r=t.filter(jr),i=e&&"loop"!==s&&e%2==1?0:r.length-1;return i&&void 0!==n?n:r[i]}(h.keyframes,l);if(void 0!==t)return void kt.update(()=>{h.onUpdate(t),h.onComplete()})}return l.isSync?new ur(h):new vr(h)};function Tr({protectedKeys:t,needsAnimating:e},s){const n=t.hasOwnProperty(s)&&!0!==e[s];return e[s]=!1,n}function Pr(t,e,{delay:s=0,transitionOverride:n,type:r}={}){let{transition:i,transitionEnd:o,...a}=e;const l=t.getDefaultTransition();i=i?cn(i,l):l;const c=i?.reduceMotion;n&&(i=n);const d=[],h=r&&t.animationState&&t.animationState.getState()[r];for(const e in a){const n=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||h&&Tr(h,e))continue;const o={delay:s,...dn(i||{},e)},l=n.get();if(void 0!==l&&!n.isAnimating&&!Array.isArray(r)&&r===l&&!o.velocity)continue;let u=!1;if(window.MotionHandoffAnimation){const s=fn(t);if(s){const t=window.MotionHandoffAnimation(s,e,kt);null!==t&&(o.startTime=t,u=!0)}}mn(t,e);const p=c??t.shouldReduceMotion;n.start(Sr(e,n,r,p&&_.has(e)?{type:!1}:o,t,u));const m=n.animation;m&&d.push(m)}if(o){const e=()=>kt.update(()=>{o&&function(t,e){const s=ln(t,e);let{transitionEnd:n={},transition:r={},...i}=s||{};i={...i,...n};for(const e in i)un(t,e,pn(i[e]))}(t,o)});d.length?Promise.all(d).then(e):e()}return d}function Ar(t,e,s,n=0,r=1){const i=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof s?s(i,o):1===r?i*n:a-i*n}function Nr(t,e,s={}){const n=ln(t,e,"exit"===s.type?t.presenceContext?.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=n||{};s.transitionOverride&&(r=s.transitionOverride);const i=n?()=>Promise.all(Pr(t,n,s)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{const{delayChildren:i=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,s=0,n=0,r=0,i=1,o){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(Nr(l,e,{...o,delay:s+("function"==typeof n?0:n)+Ar(t.variantChildren,l,n,r,i)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,i,o,a,s)}:()=>Promise.resolve(),{when:a}=r;if(a){const[t,e]="beforeChildren"===a?[i,o]:[o,i];return t().then(()=>e())}return Promise.all([i(),o(s.delay)])}const Cr=je.length;function Mr(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&Mr(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let s=0;s<Cr;s++){const n=je[s],r=t.props[n];(we(r)||!1===r)&&(e[n]=r)}return e}function Er(t,e){if(!Array.isArray(e))return!1;const s=e.length;if(s!==t.length)return!1;for(let n=0;n<s;n++)if(e[n]!==t[n])return!1;return!0}const Vr=[...ke].reverse(),zr=ke.length;function Dr(t){let e=function(t){return e=>Promise.all(e.map(({animation:e,options:s})=>function(t,e,s={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e)){const r=e.map(e=>Nr(t,e,s));n=Promise.all(r)}else if("string"==typeof e)n=Nr(t,e,s);else{const r="function"==typeof e?ln(t,e,s.custom):e;n=Promise.all(Pr(t,r,s))}return n.then(()=>{t.notify("AnimationComplete",e)})}(t,e,s)))}(t),s=Or(),n=!0,r=!1;const i=e=>(s,n)=>{const r=ln(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){const{transition:t,transitionEnd:e,...n}=r;s={...s,...n,...e}}return s};function o(o){const{props:a}=t,l=Mr(t.parent)||{},c=[],d=new Set;let h={},u=1/0;for(let e=0;e<zr;e++){const p=Vr[e],m=s[p],f=void 0!==a[p]?a[p]:l[p],g=we(f),y=p===o?m.isActive:null;!1===y&&(u=e);let x=f===l[p]&&f!==a[p]&&g;if(x&&(n||r)&&t.manuallyAnimateOnMount&&(x=!1),m.protectedKeys={...h},!m.isActive&&null===y||!f&&!m.prevProp||be(f)||"boolean"==typeof f)continue;if("exit"===p&&m.isActive&&!0!==y){m.prevResolvedValues&&(h={...h,...m.prevResolvedValues});continue}const v=Lr(m.prevProp,f);let b=v||p===o&&m.isActive&&!x&&g||e>u&&g,w=!1;const k=Array.isArray(f)?f:[f];let j=k.reduce(i(p),{});!1===y&&(j={});const{prevResolvedValues:S={}}=m,T={...S,...j},P=e=>{b=!0,d.has(e)&&(w=!0,d.delete(e)),m.needsAnimating[e]=!0;const s=t.getValue(e);s&&(s.liveStyle=!1)};for(const t in T){const e=j[t],s=S[t];if(h.hasOwnProperty(t))continue;let n=!1;n=hn(e)&&hn(s)?!Er(e,s):e!==s,n?null!=e?P(t):d.add(t):void 0!==e&&d.has(t)?P(t):m.protectedKeys[t]=!0}m.prevProp=f,m.prevResolvedValues=j,m.isActive&&(h={...h,...j}),(n||r)&&t.blockInitialAnimation&&(b=!1);const A=x&&v;b&&(!A||w)&&c.push(...k.map(e=>{const s={type:p};if("string"==typeof e&&(n||r)&&!A&&t.manuallyAnimateOnMount&&t.parent){const{parent:n}=t,r=ln(n,e);if(n.enteringChildren&&r){const{delayChildren:e}=r.transition||{};s.delay=Ar(n.enteringChildren,t,e)}}return{animation:e,options:s}}))}if(d.size){const e={};if("boolean"!=typeof a.initial){const s=ln(t,Array.isArray(a.initial)?a.initial[0]:a.initial);s&&s.transition&&(e.transition=s.transition)}d.forEach(s=>{const n=t.getBaseTarget(s),r=t.getValue(s);r&&(r.liveStyle=!0),e[s]=n??null}),c.push({animation:e})}let p=Boolean(c.length);return!n||!1!==a.initial&&a.initial!==a.animate||t.manuallyAnimateOnMount||(p=!1),n=!1,r=!1,p?e(c):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){if(s[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),s[e].isActive=n;const r=o(e);for(const t in s)s[t].protectedKeys={};return r},setAnimateFunction:function(s){e=s(t)},getState:()=>s,reset:()=>{s=Or(),r=!0}}}function Lr(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!Er(e,t)}function Rr(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Or(){return{animate:Rr(!0),whileInView:Rr(),whileHover:Rr(),whileTap:Rr(),whileDrag:Rr(),whileFocus:Rr(),exit:Rr()}}let Ir=0;const Br={animation:{Feature:class extends an{constructor(t){super(t),t.animationState||(t.animationState=Dr(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();be(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends an{constructor(){super(...arguments),this.id=Ir++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;if(t&&!1===s){if(this.isExitComplete){const{initial:t,custom:e}=this.node.getProps();if("string"==typeof t){const s=ln(this.node,t,e);if(s){const{transition:t,transitionEnd:e,...n}=s;for(const t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);return void(this.isExitComplete=!1)}const n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}},Fr={x:!1,y:!1};function Ur(){return Fr.x||Fr.y}function $r(t){return[t("x"),t("y")]}function Wr(t){return t.max-t.min}function _r(t,e,s,n=.5){t.origin=n,t.originPoint=qe(e.min,e.max,t.origin),t.scale=Wr(s)/Wr(e),t.translate=qe(s.min,s.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function Hr(t,e,s,n){_r(t.x,e.x,s.x,n?n.originX:void 0),_r(t.y,e.y,s.y,n?n.originY:void 0)}function Yr(t,e,s){t.min=s.min+e.min,t.max=t.min+Wr(e)}function Gr(t,e,s){t.min=e.min-s.min,t.max=t.min+Wr(e)}function Xr(t,e,s){Gr(t.x,e.x,s.x),Gr(t.y,e.y,s.y)}const Kr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),qr=new Set(["INPUT","SELECT","TEXTAREA"]);function Zr(t,e,s,n={passive:!0}){return t.addEventListener(e,s,n),()=>t.removeEventListener(e,s)}var Jr=s(612);function Qr(t){return(0,Jr.G)(t)&&"ownerSVGElement"in t}function ti(t,e,s){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);const r=s?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}const ei=new WeakMap;let si;const ni=(t,e,s)=>(n,r)=>r&&r[0]?r[0][t+"Size"]:Qr(n)&&"getBBox"in n?n.getBBox()[e]:n[s],ri=ni("inline","width","offsetWidth"),ii=ni("block","height","offsetHeight");function oi({target:t,borderBoxSize:e}){ei.get(t)?.forEach(s=>{s(t,{get width(){return ri(t,e)},get height(){return ii(t,e)}})})}function ai(t){t.forEach(oi)}const li=new Set;let ci;function di(t,e){return"function"==typeof t?(s=t,li.add(s),ci||(ci=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};li.forEach(e=>e(t))},window.addEventListener("resize",ci)),()=>{li.delete(s),li.size||"function"!=typeof ci||(window.removeEventListener("resize",ci),ci=void 0)}):function(t,e){si||"undefined"!=typeof ResizeObserver&&(si=new ResizeObserver(ai));const s=ti(t);return s.forEach(t=>{let s=ei.get(t);s||(s=new Set,ei.set(t,s)),s.add(e),si?.observe(t)}),()=>{s.forEach(t=>{const s=ei.get(t);s?.delete(e),s?.size||si?.unobserve(t)})}}(t,e);var s}const hi=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ui(t){return{point:{x:t.pageX,y:t.pageY}}}function pi(t,e,s,n){return Zr(t,e,(t=>e=>hi(e)&&t(e,ui(e)))(s),n)}const mi=({current:t})=>t?t.ownerDocument.defaultView:null,fi=(t,e)=>Math.abs(t-e),gi=new Set(["auto","scroll"]);class yi{constructor(t,e,{transformPagePoint:s,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:i=3,element:o}={}){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=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=xi(this.lastRawMoveEventInfo,this.transformPagePoint));const t=bi(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,s=function(t,e){const s=fi(t.x,e.x),n=fi(t.y,e.y);return Math.sqrt(s**2+n**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!s)return;const{point:n}=t,{timestamp:r}=St;this.history.push({...n,timestamp:r});const{onStart:i,onMove:o}=this.handlers;e||(i&&i(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=xi(e,this.transformPagePoint),kt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:s,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(!this.dragSnapToOrigin&&this.startEvent||r&&r(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=bi("pointercancel"===t.type?this.lastMoveEventInfo:xi(e,this.transformPagePoint),this.history);this.startEvent&&s&&s(t,i),n&&n(t,i)},!hi(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=s,this.distanceThreshold=i,this.contextWindow=n||window;const a=xi(ui(t),this.transformPagePoint),{point:l}=a,{timestamp:c}=St;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=e;d&&d(t,bi(a,this.history)),this.removeListeners=yn(pi(this.contextWindow,"pointermove",this.handlePointerMove),pi(this.contextWindow,"pointerup",this.handlePointerUp),pi(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){const t=getComputedStyle(e);(gi.has(t.overflowX)||gi.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.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(t){const e=this.scrollPositions.get(t);if(!e)return;const s=t===window,n=s?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r=n.x-e.x,i=n.y-e.y;0===r&&0===i||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r,this.lastMoveEventInfo.point.y+=i):this.history.length>0&&(this.history[0].x-=r,this.history[0].y-=i),this.scrollPositions.set(t,n),kt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),jt(this.updatePoint)}}function xi(t,e){return e?{point:e(t.point)}:t}function vi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function bi({point:t},e){return{point:t,delta:vi(t,ki(e)),offset:vi(t,wi(e)),velocity:ji(e,.1)}}function wi(t){return t[0]}function ki(t){return t[t.length-1]}function ji(t,e){if(t.length<2)return{x:0,y:0};let s=t.length-1,n=null;const r=ki(t);for(;s>=0&&(n=t[s],!(r.timestamp-n.timestamp>Bt(e)));)s--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&r.timestamp-n.timestamp>2*Bt(e)&&(n=t[1]);const i=Ft(r.timestamp-n.timestamp);if(0===i)return{x:0,y:0};const o={x:(r.x-n.x)/i,y:(r.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Si(t,e,s){return{min:void 0!==e?t.min+e:void 0,max:void 0!==s?t.max+s-(t.max-t.min):void 0}}function Ti(t,e){let s=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([s,n]=[n,s]),{min:s,max:n}}const Pi=.35;function Ai(t,e,s){return{min:Ni(t,e),max:Ni(t,s)}}function Ni(t,e){return"number"==typeof t?t:t[e]||0}const Ci=new WeakMap;class Mi{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:s}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new yi(t,{onSessionStart:t=>{e&&this.snapToCursor(ui(t).point),this.stopAnimation()},onStart:(t,e)=>{const{drag:s,dragPropagation:n,onDragStart:r}=this.getProps();if(s&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=s)||"y"===i?Fr[i]?null:(Fr[i]=!0,()=>{Fr[i]=!1}):Fr.x||Fr.y?null:(Fr.x=Fr.y=!0,()=>{Fr.x=Fr.y=!1}),!this.openDragLock))return;var i;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$r(t=>{let e=this.getAxisMotionValue(t).get()||0;if(v.test(e)){const{projection:s}=this.visualElement;if(s&&s.layout){const n=s.layout.layoutBox[t];n&&(e=Wr(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&kt.update(()=>r(t,e),!1,!0),mn(this.visualElement,"transform");const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;const{dragPropagation:s,dragDirectionLock:n,onDirectionLock:r,onDrag:i}=this.getProps();if(!s&&!this.openDragLock)return;const{offset:o}=e;if(n&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let s=null;return Math.abs(t.y)>e?s="y":Math.abs(t.x)>e&&(s="x"),s}(o),void(null!==this.currentDirection&&r&&r(this.currentDirection));this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),i&&kt.update(()=>i(t,e),!1,!0)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{const{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:s,contextWindow:mi(this.visualElement),element:this.visualElement.current})}stop(t,e){const s=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&kt.postRender(()=>o(s,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,s){const{drag:n}=this.getProps();if(!s||!Vi(t,n,this.currentDirection))return;const r=this.getAxisMotionValue(t);let i=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(i=function(t,{min:e,max:s},n){return void 0!==e&&t<e?t=n?qe(e,t,n.min):Math.max(t,e):void 0!==s&&t>s&&(t=n?qe(s,t,n.max):Math.min(t,s)),t}(i,this.constraints[t],this.elastic[t])),r.set(i)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&Qs(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!s)&&function(t,{top:e,left:s,bottom:n,right:r}){return{x:Si(t.x,s,r),y:Si(t.y,e,n)}}(s.layoutBox,t),this.elastic=function(t=Pi){return!1===t?t=0:!0===t&&(t=Pi),{x:Ai(t,"left","right"),y:Ai(t,"top","bottom")}}(e),n!==this.constraints&&!Qs(t)&&s&&this.constraints&&!this.hasMutatedConstraints&&$r(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const s={};return void 0!==e.min&&(s.min=e.min-t.min),void 0!==e.max&&(s.max=e.max-t.min),s}(s.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!Qs(t))return!1;const s=t.current,{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const r=function(t,e,s){const n=vs(t,s),{scroll:r}=e;return r&&(fs(n.x,r.offset.x),fs(n.y,r.offset.y)),n}(s,n.root,this.visualElement.getTransformPagePoint());let i=function(t,e){return{x:Ti(t.x,e.x),y:Ti(t.y,e.y)}}(n.layout.layoutBox,r);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(i));this.hasMutatedConstraints=!!t,t&&(i=ns(t))}return i}startAnimation(t){const{drag:e,dragMomentum:s,dragElastic:n,dragTransition:r,dragSnapToOrigin:i,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{},l=$r(o=>{if(!Vi(o,e,this.currentDirection))return;let l=a&&a[o]||{};!0!==i&&i!==o||(l={min:0,max:0});const c=n?200:1e6,d=n?40:1e7,h={type:"inertia",velocity:s?t[o]:0,bounceStiffness:c,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,h)});return Promise.all(l).then(o)}startAxisValueAnimation(t,e){const s=this.getAxisMotionValue(t);return mn(this.visualElement,t),s.start(Sr(t,s,0,e,this.visualElement,!1))}stopAnimation(){$r(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps();return s[e]||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){$r(e=>{const{drag:s}=this.getProps();if(!Vi(e,s,this.currentDirection))return;const{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){const{min:s,max:i}=n.layout.layoutBox[e],o=r.get()||0;r.set(t[e]-qe(s,i,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:s}=this.visualElement;if(!Qs(e)||!s||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};$r(t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const s=e.get();n[t]=function(t,e){let s=.5;const n=Wr(t),r=Wr(e);return r>n?s=ar(e.min,e.max-n,t.min):n>r&&(s=ar(t.min,t.max-r,e.min)),i(0,1,s)}({min:s,max:s},this.constraints[t])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),$r(e=>{if(!Vi(e,t,null))return;const s=this.getAxisMotionValue(e),{min:r,max:i}=this.constraints[e];s.set(qe(r,i,n[e]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Ci.set(this.visualElement,this);const t=this.visualElement.current,e=pi(t,"pointerdown",e=>{const{drag:s,dragListener:n=!0}=this.getProps(),r=e.target,i=r!==t&&function(t){return qr.has(t.tagName)||!0===t.isContentEditable}(r);s&&n&&!i&&this.start(e)});let s;const n=()=>{const{dragConstraints:e}=this.getProps();Qs(e)&&e.current&&(this.constraints=this.resolveRefConstraints(),s||(s=function(t,e,s){const n=di(t,Ei(s)),r=di(e,Ei(s));return()=>{n(),r()}}(t,e.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),kt.read(n);const o=Zr(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&($r(e=>{const s=this.getAxisMotionValue(e);s&&(this.originPoint[e]+=t[e].translate,s.set(s.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),e(),i(),a&&a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:s=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:i=Pi,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:s,dragPropagation:n,dragConstraints:r,dragElastic:i,dragMomentum:o}}}function Ei(t){let e=!0;return()=>{e?e=!1:t()}}function Vi(t,e,s){return!(!0!==e&&e!==t||null!==s&&s!==t)}const zi=t=>(e,s)=>{t&&kt.update(()=>t(e,s),!1,!0)},Di={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var Li=s(745);let Ri=!1;class Oi extends ws.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:s,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),s&&s.register&&n&&s.register(r),Ri&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Di.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:s,drag:n,isPresent:r}=this.props,{projection:i}=s;return i?(i.isPresent=r,t.layoutDependency!==e&&i.setOptions({...i.options,layoutDependency:e}),Ri=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?i.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?i.promote():i.relegate()||kt.postRender(()=>{const t=i.getStack();t&&t.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ce.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:s}=this.props,{projection:n}=t;Ri=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),s&&s.deregister&&s.deregister(n))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ii(t){const[e,s]=(0,Li.xQ)(),n=(0,ws.useContext)(Ps.L);return(0,Ts.jsx)(Oi,{...t,layoutGroup:n,switchLayoutGroup:(0,ws.useContext)(Js),isPresent:e,safeToRemove:s})}const Bi=["TopLeft","TopRight","BottomLeft","BottomRight"],Fi=Bi.length,Ui=t=>"string"==typeof t?parseFloat(t):t,$i=t=>"number"==typeof t||b.test(t);function Wi(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const _i=Yi(0,.5,nr),Hi=Yi(.5,.95,yt);function Yi(t,e,s){return n=>n<t?0:n>e?1:s(ar(t,e,n))}function Gi(t,e){t.min=e.min,t.max=e.max}function Xi(t,e){Gi(t.x,e.x),Gi(t.y,e.y)}function Ki(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function qi(t,e,s,n,r){return t=cs(t-=e,1/s,n),void 0!==r&&(t=cs(t,1/r,n)),t}function Zi(t,e,[s,n,r],i,o){!function(t,e=0,s=1,n=.5,r,i=t,o=t){if(v.test(e)&&(e=parseFloat(e),e=qe(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=qe(i.min,i.max,n);t===i&&(a-=e),t.min=qi(t.min,e,s,a,r),t.max=qi(t.max,e,s,a,r)}(t,e[s],e[n],e[r],e.scale,i,o)}const Ji=["x","scaleX","originX"],Qi=["y","scaleY","originY"];function to(t,e,s,n){Zi(t.x,e,Ji,s?s.x:void 0,n?n.x:void 0),Zi(t.y,e,Qi,s?s.y:void 0,n?n.y:void 0)}function eo(t){return 0===t.translate&&1===t.scale}function so(t){return eo(t.x)&&eo(t.y)}function no(t,e){return t.min===e.min&&t.max===e.max}function ro(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function io(t,e){return ro(t.x,e.x)&&ro(t.y,e.y)}function oo(t){return Wr(t.x)/Wr(t.y)}function ao(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class lo{constructor(){this.members=[]}add(t){Ut(this.members,t);for(let e=this.members.length-1;e>=0;e--){const s=this.members[e];if(s===t||s===this.lead||s===this.prevLead)continue;const n=s.instance;n&&!1!==n.isConnected||s.snapshot||($t(this.members,s),s.unmount())}t.scheduleRender()}remove(t){if($t(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent&&!1!==t.instance?.isConnected)return this.promote(t),!0}return!1}promote(t,e){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.updateSnapshot(),t.scheduleRender();const{layoutDependency:n}=s.options,{layoutDependency:r}=t.options;void 0!==n&&n===r||(t.resumeFrom=s,e&&(s.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const co=(t,e)=>t.depth-e.depth;class ho{constructor(){this.children=[],this.isDirty=!1}add(t){Ut(this.children,t),this.isDirty=!0}remove(t){$t(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(co),this.isDirty=!1,this.children.forEach(t)}}const uo={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},po=["","X","Y","Z"];let mo=0;function fo(t,e,s,n){const{latestValues:r}=e;r[t]&&(s[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function go(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const s=fn(e);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",kt,!(e||n))}const{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&go(n)}function yo({attachResizeListener:t,defaultParent:e,measureScroll:s,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},s=e?.()){this.id=mo++,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,bt.value&&(uo.nodes=uo.calculatedTargetDeltas=uo.calculatedProjections=0),this.nodes.forEach(bo),this.nodes.forEach(Ao),this.nodes.forEach(No),this.nodes.forEach(wo),bt.addProjectionMetrics&&bt.addProjectionMetrics(uo)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new ho)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Wt),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const s=this.eventHandlers.get(t);s&&s.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;var s;this.isSVG=Qr(e)&&!(Qr(s=e)&&"svg"===s.tagName),this.instance=e;const{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),t){let s,n=0;const r=()=>this.root.updateBlockedByResize=!1;kt.read(()=>{n=window.innerWidth}),t(e,()=>{const t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,s&&s(),s=function(t,e){const s=pe.now(),n=({timestamp:r})=>{const i=r-s;i>=e&&(jt(n),t(i-e))};return kt.setup(n,!0),()=>jt(n)}(r,250),Di.hasAnimatedSinceResize&&(Di.hasAnimatedSinceResize=!1,this.nodes.forEach(Po)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:s,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||i.getDefaultTransition()||Do,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=i.getProps(),l=!this.targetLayout||!io(this.targetLayout,n),c=!e&&s;if(this.options.layoutRoot||this.resumeFrom||c||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const e={...dn(r,"layout"),onPlay:o,onComplete:a};(i.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,c)}else e||Po(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),jt(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(Co),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&go(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,"string"!=typeof e.latestValues.x&&"string"!=typeof e.latestValues.y||(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:s}=this.options;if(void 0===e&&!s)return;const n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(jo);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(So);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(To),this.nodes.forEach(xo),this.nodes.forEach(vo)):this.nodes.forEach(So),this.clearAllSnapshots();const t=pe.now();St.delta=i(0,1e3/60,t-St.timestamp),St.timestamp=t,St.isProcessing=!0,Tt.update.process(St),Tt.preRender.process(St),Tt.render.process(St),St.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ce.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ko),this.sharedNodes.forEach(Mo)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,kt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){kt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||Wr(this.snapshot.measuredBox.x)||Wr(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();const t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){const e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!so(this.projectionDelta),s=this.getTransformTemplate(),n=s?s(this.latestValues,""):void 0,i=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||os(this.latestValues)||i)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let s=this.removeElementScroll(e);var n;return t&&(s=this.removeTransform(s)),Oo((n=s).x),Oo(n.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox();if(!this.scroll?.wasRoot&&!this.path.some(Bo)){const{scroll:t}=this.root;t&&(fs(e.x,t.offset.x),fs(e.y,t.offset.y))}return e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};if(Xi(e,t),this.scroll?.wasRoot)return e;for(let s=0;s<this.path.length;s++){const n=this.path[s],{scroll:r,options:i}=n;n!==this.root&&r&&i.layoutScroll&&(r.wasRoot&&Xi(e,t),fs(e.x,r.offset.x),fs(e.y,r.offset.y))}return e}applyTransform(t,e=!1){const s={x:{min:0,max:0},y:{min:0,max:0}};Xi(s,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&xs(s,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),os(n.latestValues)&&xs(s,n.latestValues,n.layout?.layoutBox)}return os(this.latestValues)&&xs(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};Xi(e,t);for(let t=0;t<this.path.length;t++){const s=this.path[t];if(!os(s.latestValues))continue;let n;s.instance&&(is(s.latestValues)&&s.updateSnapshot(),n=$(),Xi(n,s.measurePageBox())),to(e,s.latestValues,s.snapshot?.layoutBox,n)}return os(this.latestValues)&&to(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==St.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){const e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);const s=Boolean(this.resumingFrom)||this!==e;if(!(t||s&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:n,layoutId:r}=this.options;if(!this.layout||!n&&!r)return;this.resolvedRelativeTargetAt=St.timestamp;const i=this.getClosestProjectingParent();var o,a,l;i&&this.linkedParentVersion!==i.layoutVersion&&!i.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(i&&i.layout?this.createRelativeTarget(i,this.layout.layoutBox,i.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,Yr(o.x,a.x,l.x),Yr(o.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Xi(this.target,this.layout.layoutBox),us(this.target,this.targetDelta)):Xi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,i&&Boolean(i.resumingFrom)===Boolean(this.resumingFrom)&&!i.options.layoutScroll&&i.target&&1!==this.animationProgress?this.createRelativeTarget(i,this.target,i.target):this.relativeParent=this.relativeTarget=void 0),bt.value&&uo.calculatedTargetDeltas++)}getClosestProjectingParent(){if(this.parent&&!is(this.parent.latestValues)&&!as(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,s){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Xr(this.relativeTargetOrigin,e,s),Xi(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const t=this.getLead(),e=Boolean(this.resumingFrom)||this!==t;let s=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(s=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===St.timestamp&&(s=!1),s)return;const{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!n&&!r)return;Xi(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,o=this.treeScale.y;!function(t,e,s,n=!1){const r=s.length;if(!r)return;let i,o;e.x=e.y=1;for(let a=0;a<r;a++){i=s[a],o=i.projectionDelta;const{visualElement:r}=i.options;r&&r.props.style&&"contents"===r.props.style.display||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&xs(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,us(t,o)),n&&os(i.latestValues)&&xs(t,i.latestValues,i.layout?.layoutBox))}e.x<ms&&e.x>ps&&(e.x=1),e.y<ms&&e.y>ps&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,e),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:a}=t;a?(this.projectionDelta&&this.prevProjectionDelta?(Ki(this.prevProjectionDelta.x,this.projectionDelta.x),Ki(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Hr(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===i&&this.treeScale.y===o&&ao(this.projectionDelta.x,this.prevProjectionDelta.x)&&ao(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),bt.value&&uo.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t,e=!1){const s=this.snapshot,n=s?s.latestValues:{},r={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const o={x:{min:0,max:0},y:{min:0,max:0}},a=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,d=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(zo));let h;this.animationProgress=0,this.mixTargetDelta=e=>{const s=e/1e3;var l,u,p,m,f,g;Eo(i.x,t.x,s),Eo(i.y,t.y,s),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xr(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,g=s,Vo(p.x,m.x,f.x,g),Vo(p.y,m.y,f.y,g),h&&(l=this.relativeTarget,u=h,no(l.x,u.x)&&no(l.y,u.y))&&(this.isProjectionDirty=!1),h||(h={x:{min:0,max:0},y:{min:0,max:0}}),Xi(h,this.relativeTarget)),a&&(this.animationValues=r,function(t,e,s,n,r,i){r?(t.opacity=qe(0,s.opacity??1,_i(n)),t.opacityExit=qe(e.opacity??1,0,Hi(n))):i&&(t.opacity=qe(e.opacity??1,s.opacity??1,n));for(let r=0;r<Fi;r++){const i=`border${Bi[r]}Radius`;let o=Wi(e,i),a=Wi(s,i);void 0===o&&void 0===a||(o||(o=0),a||(a=0),0===o||0===a||$i(o)===$i(a)?(t[i]=Math.max(qe(Ui(o),Ui(a),n),0),(v.test(a)||v.test(o))&&(t[i]+="%")):t[i]=a)}(e.rotate||s.rotate)&&(t.rotate=qe(e.rotate||0,s.rotate||0,n))}(r,n,this.latestValues,s,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(jt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=kt.update(()=>{Di.hasAnimatedSinceResize=!0,Jt.layout++,this.motionValue||(this.motionValue=ye(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(t,e,s){const n=W(t)?t:ye(t);return n.start(Sr("",n,[0,1e3],s)),n.animation}(this.motionValue,0,{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{Jt.layout--},onComplete:()=>{Jt.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:s,layout:n,latestValues:r}=t;if(e&&s&&n){if(this!==t&&this.layout&&n&&Io(this.options.animationType,this.layout.layoutBox,n.layoutBox)){s=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Wr(this.layout.layoutBox.x);s.x.min=t.target.x.min,s.x.max=s.x.min+e;const n=Wr(this.layout.layoutBox.y);s.y.min=t.target.y.min,s.y.max=s.y.min+n}Xi(e,s),xs(e,r),Hr(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new lo),this.sharedNodes.get(t).add(e);const s=e.options.initialPromotionConfig;e.promote({transition:s?s.transition:void 0,preserveFollowOpacity:s&&s.shouldPreserveFollowOpacity?s.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){const{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:s}={}){const n=this.getStack();n&&n.promote(this,s),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:s}=t;if((s.z||s.rotate||s.rotateX||s.rotateY||s.rotateZ||s.skewX||s.skewY)&&(e=!0),!e)return;const n={};s.z&&fo("z",t,n,this.animationValues);for(let e=0;e<po.length;e++)fo(`rotate${po[e]}`,t,n,this.animationValues),fo(`skew${po[e]}`,t,n,this.animationValues);t.render();for(const e in n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(t.visibility="hidden");const s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=Bs(e?.pointerEvents)||"",void(t.transform=s?s(this.latestValues,""):"none");const n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target)return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Bs(e?.pointerEvents)||""),void(this.hasProjected&&!os(this.latestValues)&&(t.transform=s?s({},""):"none",this.hasProjected=!1));t.visibility="";const r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let i=function(t,e,s){let n="";const r=t.x.translate/e.x,i=t.y.translate/e.y,o=s?.z||0;if((r||i||o)&&(n=`translate3d(${r}px, ${i}px, ${o}px) `),1===e.x&&1===e.y||(n+=`scale(${1/e.x}, ${1/e.y}) `),s){const{transformPerspective:t,rotate:e,rotateX:r,rotateY:i,skewX:o,skewY:a}=s;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),i&&(n+=`rotateY(${i}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);s&&(i=s(r,i)),t.transform=i;const{x:o,y:a}=this.projectionDelta;t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0;for(const e in Je){if(void 0===r[e])continue;const{correct:s,applyTo:o,isCSSVariable:a}=Je[e],l="none"===i?r[e]:s(r[e],n);if(o){const e=o.length;for(let s=0;s<e;s++)t[o[s]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?Bs(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(jo),this.root.sharedNodes.clear()}}}function xo(t){t.updateLayout()}function vo(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:n}=t.layout,{animationType:r}=t.options,i=e.source!==t.layout.source;if("size"===r)$r(t=>{const n=i?e.measuredBox[t]:e.layoutBox[t],r=Wr(n);n.min=s[t].min,n.max=n.min+r});else if("x"===r||"y"===r){const t="x"===r?"y":"x";Gi(i?e.measuredBox[t]:e.layoutBox[t],s[t])}else Io(r,e.layoutBox,s)&&$r(n=>{const r=i?e.measuredBox[n]:e.layoutBox[n],o=Wr(s[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});const o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Hr(o,s,e.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?Hr(a,t.applyTransform(n,!0),e.measuredBox):Hr(a,s,e.layoutBox);const l=!so(o);let c=!1;if(!t.resumeFrom){const n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:r,layout:i}=n;if(r&&i){const o={x:{min:0,max:0},y:{min:0,max:0}};Xr(o,e.layoutBox,r.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Xr(a,s,i.layoutBox),io(o,a)||(c=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function bo(t){bt.value&&uo.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function wo(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ko(t){t.clearSnapshot()}function jo(t){t.clearMeasurements()}function So(t){t.isLayoutDirty=!1}function To(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Po(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Ao(t){t.resolveTargetDelta()}function No(t){t.calcProjection()}function Co(t){t.resetSkewAndRotation()}function Mo(t){t.removeLeadSnapshot()}function Eo(t,e,s){t.translate=qe(e.translate,0,s),t.scale=qe(e.scale,1,s),t.origin=e.origin,t.originPoint=e.originPoint}function Vo(t,e,s,n){t.min=qe(e.min,s.min,n),t.max=qe(e.max,s.max,n)}function zo(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Do={duration:.45,ease:[.4,0,.1,1]},Lo=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ro=Lo("applewebkit/")&&!Lo("chrome/")?Math.round:yt;function Oo(t){t.min=Ro(t.min),t.max=Ro(t.max)}function Io(t,e,s){return"position"===t||"preserve-aspect"===t&&(n=oo(e),r=oo(s),!(Math.abs(n-r)<=.2));var n,r}function Bo(t){return t!==t.root&&t.scroll?.wasRoot}const Fo=yo({attachResizeListener:(t,e)=>Zr(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Uo={current:void 0},$o=yo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Uo.current){const t=new Fo({});t.mount(window),t.setOptions({layoutScroll:!0}),Uo.current=t}return Uo.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Wo={pan:{Feature:class extends an{constructor(){super(...arguments),this.removePointerDownListener=yt}onPointerDown(t){this.session=new yi(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:mi(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:s,onPanEnd:n}=this.node.getProps();return{onSessionStart:zi(t),onStart:zi(e),onMove:zi(s),onEnd:(t,e)=>{delete this.session,n&&kt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=pi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends an{constructor(t){super(t),this.removeGroupControls=yt,this.removeListeners=yt,this.controls=new Mi(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||yt}update(){const{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:$o,MeasureLayout:Ii}};function _o(t,e){const s=ti(t),n=new AbortController;return[s,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function Ho(t,e,s){const{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===s);const r=n["onHover"+s];r&&kt.postRender(()=>r(e,ui(e)))}var Yo=s(231);const Go=(t,e)=>!!e&&(t===e||Go(t,e.parentElement)),Xo=new WeakSet;function Ko(t){return e=>{"Enter"===e.key&&t(e)}}function qo(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function Zo(t){return hi(t)&&!Ur()}const Jo=new WeakSet;function Qo(t,e,s){const{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===s);const r=n["onTap"+("End"===s?"":s)];r&&kt.postRender(()=>r(e,ui(e)))}const ta=new WeakMap,ea=new WeakMap,sa=t=>{const e=ta.get(t.target);e&&e(t)},na=t=>{t.forEach(sa)};const ra={some:0,all:1},ia={inView:{Feature:class extends an{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:s,amount:n="some",once:r}=t,i={root:e?e.current:void 0,rootMargin:s,threshold:"number"==typeof n?n:ra[n]};return function(t,e,s){const n=function({root:t,...e}){const s=t||document;ea.has(s)||ea.set(s,{});const n=ea.get(s),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(na,{root:t,...e})),n[r]}(e);return ta.set(t,s),n.observe(t),()=>{ta.delete(t),n.unobserve(t)}}(this.node.current,i,t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,r&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:s,onViewportLeave:n}=this.node.getProps(),i=e?s:n;i&&i(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return s=>t[s]!==e[s]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends an{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:e,propagate:s}=this.node.props;this.unmount=function(t,e,s={}){const[n,r,i]=_o(t,s),o=t=>{const n=t.currentTarget;if(!Zo(t))return;if(Jo.has(t))return;Xo.add(n),s.stopPropagation&&Jo.add(t);const i=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),Xo.has(n)&&Xo.delete(n),Zo(t)&&"function"==typeof i&&i(t,{success:e})},a=t=>{o(t,n===window||n===document||s.useGlobalTarget||Go(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{var e;(s.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),(0,Yo.s)(t)&&(t.addEventListener("focus",t=>((t,e)=>{const s=t.currentTarget;if(!s)return;const n=Ko(()=>{if(Xo.has(s))return;qo(s,"down");const t=Ko(()=>{qo(s,"up")});s.addEventListener("keyup",t,e),s.addEventListener("blur",()=>qo(s,"cancel"),e)});s.addEventListener("keydown",n,e),s.addEventListener("blur",()=>s.removeEventListener("keydown",n),e)})(t,r)),e=t,Kr.has(e.tagName)||!0===e.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),i}(t,(t,e)=>(Qo(this.node,e,"Start"),(t,{success:e})=>Qo(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:!1===s?.tap})}unmount(){}}},focus:{Feature:class extends an{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=yn(Zr(this.node.current,"focus",()=>this.onFocus()),Zr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends an{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e,s={}){const[n,r,i]=_o(t,s);return n.forEach(t=>{let s,n=!1,i=!1;const o=e=>{s&&(s(e),s=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),i&&(i=!1,o(t))},l=t=>{"touch"!==t.pointerType&&(n?i=!0:o(t))};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||Ur())return;i=!1;const o=e(t,n);"function"==typeof o&&(s=o,t.addEventListener("pointerleave",l,r))},r),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",a,r)},r)}),i}(t,(t,e)=>(Ho(this.node,e,"Start"),t=>Ho(this.node,t,"End"))))}unmount(){}}}},oa=on({...Br,...ia,...Wo,layout:{ProjectionNode:$o,MeasureLayout:Ii}},Ss)},302(t,e,s){s.d(e,{M:()=>r});var n=s(594);function r(t){const e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},428(t,e,s){s.d(e,{E:()=>r});var n=s(594);const r="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},231(t,e,s){s.d(e,{s:()=>r});var n=s(612);function r(t){return(0,n.G)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}},612(t,e,s){function n(t){return"object"==typeof t&&null!==t}s.d(e,{G:()=>n})},587(t,e,s){s.d(e,{QEs:()=>o,ao$:()=>a,iYk:()=>l,kkU:()=>r,oCJ:()=>i});var n=s(897);function r(t){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"},child:[]}]})(t)}function i(t){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"},child:[]}]})(t)}function o(t){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},child:[]}]})(t)}function a(t){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(t)}function l(t){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"},child:[]}]})(t)}},301(t,e,s){s.d(e,{TCj:()=>r});var n=s(897);function r(t){return(0,n.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"},child:[]}]})(t)}},897(t,e,s){s.d(e,{k5:()=>u});var n=s(594),r={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=n.createContext&&n.createContext(r),o=["attr","size","title"];function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var n in s)({}).hasOwnProperty.call(s,n)&&(t[n]=s[n])}return t},a.apply(null,arguments)}function l(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,n)}return s}function c(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?l(Object(s),!0).forEach(function(e){d(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):l(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}function d(t,e,s){return(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var s=e.call(t,"string");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}function h(t){return t&&t.map((t,e)=>n.createElement(t.tag,c({key:e},t.attr),h(t.child)))}function u(t){return e=>n.createElement(p,a({attr:c({},t.attr)},e),h(t.child))}function p(t){var e=e=>{var s,{attr:r,size:i,title:l}=t,d=function(t,e){if(null==t)return{};var s,n,r=function(t,e){if(null==t)return{};var s={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;s[n]=t[n]}return s}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)s=i[n],-1===e.indexOf(s)&&{}.propertyIsEnumerable.call(t,s)&&(r[s]=t[s])}return r}(t,o),h=i||e.size||"1em";return e.className&&(s=e.className),t.className&&(s=(s?s+" ":"")+t.className),n.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,r,d,{className:s,style:c(c({color:t.color||e.color},e.style),t.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),l&&n.createElement("title",null,l),t.children)};return void 0!==i?n.createElement(i.Consumer,null,t=>e(t)):e(r)}},840(t,e,s){s.d(e,{QP:()=>vt});const n=(t=new Map,e=null,s)=>({nextPart:t,validators:e,classGroupId:s}),r="-",i=[],o=t=>{const e=c(t),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:t=>{if(t.startsWith("[")&&t.endsWith("]"))return l(t);const s=t.split(r),n=""===s[0]&&s.length>1?1:0;return a(s,n,e)},getConflictingClassGroupIds:(t,e)=>{if(e){const e=n[t],r=s[t];return e?r?((t,e)=>{const s=new Array(t.length+e.length);for(let e=0;e<t.length;e++)s[e]=t[e];for(let n=0;n<e.length;n++)s[t.length+n]=e[n];return s})(r,e):e:r||i}return s[t]||i}}},a=(t,e,s)=>{if(0===t.length-e)return s.classGroupId;const n=t[e],i=s.nextPart.get(n);if(i){const s=a(t,e+1,i);if(s)return s}const o=s.validators;if(null===o)return;const l=0===e?t.join(r):t.slice(e).join(r),c=o.length;for(let t=0;t<c;t++){const e=o[t];if(e.validator(l))return e.classGroupId}},l=t=>-1===t.slice(1,-1).indexOf(":")?void 0:(()=>{const e=t.slice(1,-1),s=e.indexOf(":"),n=e.slice(0,s);return n?"arbitrary.."+n:void 0})(),c=t=>{const{theme:e,classGroups:s}=t;return d(s,e)},d=(t,e)=>{const s=n();for(const n in t){const r=t[n];h(r,s,n,e)}return s},h=(t,e,s,n)=>{const r=t.length;for(let i=0;i<r;i++){const r=t[i];u(r,e,s,n)}},u=(t,e,s,n)=>{"string"!=typeof t?"function"!=typeof t?f(t,e,s,n):m(t,e,s,n):p(t,e,s)},p=(t,e,s)=>{(""===t?e:g(e,t)).classGroupId=s},m=(t,e,s,n)=>{y(t)?h(t(n),e,s,n):(null===e.validators&&(e.validators=[]),e.validators.push(((t,e)=>({classGroupId:t,validator:e}))(s,t)))},f=(t,e,s,n)=>{const r=Object.entries(t),i=r.length;for(let t=0;t<i;t++){const[i,o]=r[t];h(o,g(e,i),s,n)}},g=(t,e)=>{let s=t;const i=e.split(r),o=i.length;for(let t=0;t<o;t++){const e=i[t];let r=s.nextPart.get(e);r||(r=n(),s.nextPart.set(e,r)),s=r}return s},y=t=>"isThemeGetter"in t&&!0===t.isThemeGetter,x=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,s=Object.create(null),n=Object.create(null);const r=(r,i)=>{s[r]=i,e++,e>t&&(e=0,n=s,s=Object.create(null))};return{get(t){let e=s[t];return void 0!==e?e:void 0!==(e=n[t])?(r(t,e),e):void 0},set(t,e){t in s?s[t]=e:r(t,e)}}},v=[],b=(t,e,s,n,r)=>({modifiers:t,hasImportantModifier:e,baseClassName:s,maybePostfixModifierPosition:n,isExternal:r}),w=t=>{const{prefix:e,experimentalParseClassName:s}=t;let n=t=>{const e=[];let s,n=0,r=0,i=0;const o=t.length;for(let a=0;a<o;a++){const o=t[a];if(0===n&&0===r){if(":"===o){e.push(t.slice(i,a)),i=a+1;continue}if("/"===o){s=a;continue}}"["===o?n++:"]"===o?n--:"("===o?r++:")"===o&&r--}const a=0===e.length?t:t.slice(i);let l=a,c=!1;return a.endsWith("!")?(l=a.slice(0,-1),c=!0):a.startsWith("!")&&(l=a.slice(1),c=!0),b(e,c,l,s&&s>i?s-i:void 0)};if(e){const t=e+":",s=n;n=e=>e.startsWith(t)?s(e.slice(t.length)):b(v,!1,e,void 0,!0)}if(s){const t=n;n=e=>s({className:e,parseClassName:t})}return n},k=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((t,s)=>{e.set(t,1e6+s)}),t=>{const s=[];let n=[];for(let r=0;r<t.length;r++){const i=t[r],o="["===i[0],a=e.has(i);o||a?(n.length>0&&(n.sort(),s.push(...n),n=[]),s.push(i)):n.push(i)}return n.length>0&&(n.sort(),s.push(...n)),s}},j=/\s+/,S=t=>{if("string"==typeof t)return t;let e,s="";for(let n=0;n<t.length;n++)t[n]&&(e=S(t[n]))&&(s&&(s+=" "),s+=e);return s},T=[],P=t=>{const e=e=>e[t]||T;return e.isThemeGetter=!0,e},A=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,N=/^\((?:(\w[\w-]*):)?(.+)\)$/i,C=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,M=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,E=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,V=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,z=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,D=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=t=>C.test(t),R=t=>!!t&&!Number.isNaN(Number(t)),O=t=>!!t&&Number.isInteger(Number(t)),I=t=>t.endsWith("%")&&R(t.slice(0,-1)),B=t=>M.test(t),F=()=>!0,U=t=>E.test(t)&&!V.test(t),$=()=>!1,W=t=>z.test(t),_=t=>D.test(t),H=t=>!G(t)&&!et(t),Y=t=>ct(t,pt,$),G=t=>A.test(t),X=t=>ct(t,mt,U),K=t=>ct(t,ft,R),q=t=>ct(t,yt,F),Z=t=>ct(t,gt,$),J=t=>ct(t,ht,$),Q=t=>ct(t,ut,_),tt=t=>ct(t,xt,W),et=t=>N.test(t),st=t=>dt(t,mt),nt=t=>dt(t,gt),rt=t=>dt(t,ht),it=t=>dt(t,pt),ot=t=>dt(t,ut),at=t=>dt(t,xt,!0),lt=t=>dt(t,yt,!0),ct=(t,e,s)=>{const n=A.exec(t);return!!n&&(n[1]?e(n[1]):s(n[2]))},dt=(t,e,s=!1)=>{const n=N.exec(t);return!!n&&(n[1]?e(n[1]):s)},ht=t=>"position"===t||"percentage"===t,ut=t=>"image"===t||"url"===t,pt=t=>"length"===t||"size"===t||"bg-size"===t,mt=t=>"length"===t,ft=t=>"number"===t,gt=t=>"family-name"===t,yt=t=>"number"===t||"weight"===t,xt=t=>"shadow"===t,vt=((t,...e)=>{let s,n,r,i;const a=t=>{const e=n(t);if(e)return e;const i=((t,e)=>{const{parseClassName:s,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:i}=e,o=[],a=t.trim().split(j);let l="";for(let t=a.length-1;t>=0;t-=1){const e=a[t],{isExternal:c,modifiers:d,hasImportantModifier:h,baseClassName:u,maybePostfixModifierPosition:p}=s(e);if(c){l=e+(l.length>0?" "+l:l);continue}let m=!!p,f=n(m?u.substring(0,p):u);if(!f){if(!m){l=e+(l.length>0?" "+l:l);continue}if(f=n(u),!f){l=e+(l.length>0?" "+l:l);continue}m=!1}const g=0===d.length?"":1===d.length?d[0]:i(d).join(":"),y=h?g+"!":g,x=y+f;if(o.indexOf(x)>-1)continue;o.push(x);const v=r(f,m);for(let t=0;t<v.length;++t){const e=v[t];o.push(y+e)}l=e+(l.length>0?" "+l:l)}return l})(t,s);return r(t,i),i};return i=l=>{const c=e.reduce((t,e)=>e(t),t());return s=(t=>({cache:x(t.cacheSize),parseClassName:w(t),sortModifiers:k(t),...o(t)}))(c),n=s.cache.get,r=s.cache.set,i=a,a(l)},(...t)=>i(((...t)=>{let e,s,n=0,r="";for(;n<t.length;)(e=t[n++])&&(s=S(e))&&(r&&(r+=" "),r+=s);return r})(...t))})((Symbol.toStringTag,()=>{const t=P("color"),e=P("font"),s=P("text"),n=P("font-weight"),r=P("tracking"),i=P("leading"),o=P("breakpoint"),a=P("container"),l=P("spacing"),c=P("radius"),d=P("shadow"),h=P("inset-shadow"),u=P("text-shadow"),p=P("drop-shadow"),m=P("blur"),f=P("perspective"),g=P("aspect"),y=P("ease"),x=P("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",et,G],b=()=>[et,G,l],w=()=>[L,"full","auto",...b()],k=()=>[O,"none","subgrid",et,G],j=()=>["auto",{span:["full",O,et,G]},O,et,G],S=()=>[O,"auto",et,G],T=()=>["auto","min","max","fr",et,G],A=()=>["auto",...b()],N=()=>[L,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],C=()=>[L,"screen","full","dvw","lvw","svw","min","max","fit",...b()],M=()=>[L,"screen","full","lh","dvh","lvh","svh","min","max","fit",...b()],E=()=>[t,et,G],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",rt,J,{position:[et,G]}],z=()=>["auto","cover","contain",it,Y,{size:[et,G]}],D=()=>[I,st,X],U=()=>["","none","full",c,et,G],$=()=>["",R,st,X],W=()=>[R,I,rt,J],_=()=>["","none",m,et,G],ct=()=>["none",R,et,G],dt=()=>["none",R,et,G],ht=()=>[R,et,G],ut=()=>[L,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[B],breakpoint:[B],color:[F],container:[B],"drop-shadow":[B],ease:["in","out","in-out"],font:[H],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[B],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[B],shadow:[B],spacing:["px",R],text:[B],"text-shadow":[B],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",L,G,et,g]}],container:["container"],columns:[{columns:[R,G,et,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[O,"auto",et,G]}],basis:[{basis:[L,"full","auto",a,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[R,L,"auto","initial","none",G]}],grow:[{grow:["",R,et,G]}],shrink:[{shrink:["",R,et,G]}],order:[{order:[O,"first","last","none",et,G]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":T()}],"auto-rows":[{"auto-rows":T()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...C()]}],"min-inline-size":[{"min-inline":["auto",...C()]}],"max-inline-size":[{"max-inline":["none",...C()]}],"block-size":[{block:["auto",...M()]}],"min-block-size":[{"min-block":["auto",...M()]}],"max-block-size":[{"max-block":["none",...M()]}],w:[{w:[a,"screen",...N()]}],"min-w":[{"min-w":[a,"screen","none",...N()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",s,st,X]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,lt,q]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",I,G]}],"font-family":[{font:[nt,Z,e]}],"font-features":[{"font-features":[G]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,et,G]}],"line-clamp":[{"line-clamp":[R,"none",et,K]}],leading:[{leading:[i,...b()]}],"list-image":[{"list-image":["none",et,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",et,G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[R,"from-font","auto",et,X]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[R,"auto",et,G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",et,G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",et,G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:V()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},O,et,G],radial:["",et,G],conic:[O,et,G]},ot,Q]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-bs":[{"border-bs":$()}],"border-w-be":[{"border-be":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-bs":[{"border-bs":E()}],"border-color-be":[{"border-be":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[R,et,G]}],"outline-w":[{outline:["",R,st,X]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",d,at,tt]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",h,at,tt]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[R,X]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",u,at,tt]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[R,et,G]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":W()}],"mask-image-linear-to-pos":[{"mask-linear-to":W()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":W()}],"mask-image-t-to-pos":[{"mask-t-to":W()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":W()}],"mask-image-r-to-pos":[{"mask-r-to":W()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":W()}],"mask-image-b-to-pos":[{"mask-b-to":W()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":W()}],"mask-image-l-to-pos":[{"mask-l-to":W()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":W()}],"mask-image-x-to-pos":[{"mask-x-to":W()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":W()}],"mask-image-y-to-pos":[{"mask-y-to":W()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[et,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":W()}],"mask-image-radial-to-pos":[{"mask-radial-to":W()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":W()}],"mask-image-conic-to-pos":[{"mask-conic-to":W()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",et,G]}],filter:[{filter:["","none",et,G]}],blur:[{blur:_()}],brightness:[{brightness:[R,et,G]}],contrast:[{contrast:[R,et,G]}],"drop-shadow":[{"drop-shadow":["","none",p,at,tt]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",R,et,G]}],"hue-rotate":[{"hue-rotate":[R,et,G]}],invert:[{invert:["",R,et,G]}],saturate:[{saturate:[R,et,G]}],sepia:[{sepia:["",R,et,G]}],"backdrop-filter":[{"backdrop-filter":["","none",et,G]}],"backdrop-blur":[{"backdrop-blur":_()}],"backdrop-brightness":[{"backdrop-brightness":[R,et,G]}],"backdrop-contrast":[{"backdrop-contrast":[R,et,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",R,et,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,et,G]}],"backdrop-invert":[{"backdrop-invert":["",R,et,G]}],"backdrop-opacity":[{"backdrop-opacity":[R,et,G]}],"backdrop-saturate":[{"backdrop-saturate":[R,et,G]}],"backdrop-sepia":[{"backdrop-sepia":["",R,et,G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",et,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[R,"initial",et,G]}],ease:[{ease:["linear","initial",y,et,G]}],delay:[{delay:[R,et,G]}],animate:[{animate:["none",x,et,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,et,G]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:ct()}],"rotate-x":[{"rotate-x":ct()}],"rotate-y":[{"rotate-y":ct()}],"rotate-z":[{"rotate-z":ct()}],scale:[{scale:dt()}],"scale-x":[{"scale-x":dt()}],"scale-y":[{"scale-y":dt()}],"scale-z":[{"scale-z":dt()}],"scale-3d":["scale-3d"],skew:[{skew:ht()}],"skew-x":[{"skew-x":ht()}],"skew-y":[{"skew-y":ht()}],transform:[{transform:[et,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ut()}],"translate-x":[{"translate-x":ut()}],"translate-y":[{"translate-y":ut()}],"translate-z":[{"translate-z":ut()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",et,G]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",et,G]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[R,st,X,K]}],stroke:[{stroke:["none",...E()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}))}},e={};function s(n){var r=e[n];if(void 0!==r)return r.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,s),i.exports}s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};s.r(n),s.d(n,{Index:()=>Q,default:()=>Q});var r=s(713),i=s(594),o=s.n(i),a=s(555),l=s(145),c=s(846),d=s(571),h=s(68),u=s(172),p=s(855),m=s(398),f=s(587),g=s(301);const y=[{code:"en",name:"English",countryCode:"gb"},{code:"sv",name:"Swedish",countryCode:"se"},{code:"nl",name:"Dutch",countryCode:"nl"},{code:"de",name:"German",countryCode:"de"},{code:"fr",name:"French",countryCode:"fr"},{code:"es",name:"Spanish",countryCode:"es"}],x=[{name:"Instagram",icon:o().createElement(f.ao$,{size:18})},{name:"Facebook",icon:o().createElement(f.iYk,{size:18})},{name:"Twitter",icon:o().createElement(g.TCj,{size:18})},{name:"Pinterest",icon:o().createElement(f.oCJ,{size:18})},{name:"LinkedIn",icon:o().createElement(f.QEs,{size:18})},{name:"TikTok",icon:o().createElement(f.kkU,{size:18})}];function v({code:t,countryCode:e,className:s="w-4 h-3"}){let n=e;return!n&&t&&(n=y.find(e=>e.code===t)?.countryCode||t),n?(0,r.jsx)("img",{src:`https://flagcdn.com/w20/${n.toLowerCase()}.png`,alt:t||n,className:`${s} object-contain rounded-xs shadow-xs`}):null}var b=s(818),w=s(360),k=s(696);function j({settings:t,activeTab:e,onUpdateLocalized:s}){const n=t.localizedIdentity?.[e]||{};return(0,r.jsxs)("section",{className:"space-y-8",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("div",{className:"size-10 rounded-xl bg-primary/10 flex items-center justify-center text-primary border border-primary/20 shadow-inner",children:(0,r.jsx)(w.A,{size:20})}),(0,r.jsxs)("h3",{className:"text-2xl lg:text-3xl font-bold text-dashboard-text leading-none tracking-tight",children:["Identity ",(0,r.jsx)("span",{className:"text-primary",children:"& SEO"})]})]}),(0,r.jsxs)(b.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-dashboard-card/50 border border-dashboard-border/40 p-8 rounded-[2rem] space-y-6 relative overflow-hidden",children:[(0,r.jsx)("div",{className:"absolute top-0 right-0 w-64 h-64 blur-3xl opacity-5 bg-primary pointer-events-none"}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between ml-2",children:[(0,r.jsxs)("label",{className:"text-[10px] font-bold text-dashboard-text-secondary/70 uppercase tracking-[0.15em] opacity-60",children:["System Name (",e,")"]}),(0,r.jsx)(k.A,{size:10,className:"text-primary animate-pulse"})]}),(0,r.jsx)("input",{type:"text",value:n.siteName||"",onChange:t=>s("siteName",t.target.value),placeholder:"INITIALIZE_NAME",className:"w-full px-6 py-3 bg-dashboard-bg/50 border border-dashboard-border/40 rounded-xl text-sm font-bold outline-none focus:ring-2 focus:ring-primary/10 focus:border-primary/30 transition-all text-dashboard-text placeholder:text-dashboard-text-secondary/30"})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("label",{className:"text-[10px] font-bold text-dashboard-text-secondary/70 uppercase tracking-[0.15em] ml-2 opacity-60",children:["Strategic Tagline (",e,")"]}),(0,r.jsx)("input",{type:"text",value:n.siteTagline||"",onChange:t=>s("siteTagline",t.target.value),placeholder:"DEFINE_TAGLINE",className:"w-full px-6 py-3 bg-dashboard-bg/50 border border-dashboard-border/40 rounded-xl text-sm font-bold outline-none focus:ring-2 focus:ring-primary/10 focus:border-primary/30 transition-all text-dashboard-text placeholder:text-dashboard-text-secondary/30"})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("label",{className:"text-[10px] font-bold text-dashboard-text-secondary/70 uppercase tracking-[0.15em] ml-2 opacity-60",children:["Global Description Protocol (",e,")"]}),(0,r.jsx)("textarea",{value:n.siteDescription||"",onChange:t=>s("siteDescription",t.target.value),placeholder:"A comprehensive architectural description for search engine crawlers...",rows:3,className:"w-full px-6 py-4 bg-dashboard-bg/50 border border-dashboard-border/40 rounded-xl text-sm font-medium leading-relaxed outline-none focus:ring-2 focus:ring-primary/10 focus:border-primary/30 transition-all text-dashboard-text placeholder:text-dashboard-text-secondary/30 resize-none"})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("label",{className:"text-[10px] font-bold text-dashboard-text-secondary/70 uppercase tracking-[0.15em] ml-2 opacity-60",children:["Indexing Keywords (",e,")"]}),(0,r.jsxs)("div",{className:"relative group",children:[(0,r.jsx)(d.A,{className:"absolute left-5 top-1/2 -translate-y-1/2 size-4 text-dashboard-text-secondary/40 group-focus-within:text-primary transition-colors"}),(0,r.jsx)("input",{type:"text",value:n.keywords||"",onChange:t=>s("keywords",t.target.value),placeholder:"comma, separated, identifiers",className:"w-full pl-12 pr-6 py-3 bg-dashboard-bg/50 border border-dashboard-border/40 rounded-xl text-sm font-bold outline-none focus:ring-2 focus:ring-primary/10 focus:border-primary/30 transition-all text-dashboard-text placeholder:text-dashboard-text-secondary/30"})]}),(0,r.jsx)("p",{className:"text-[10px] text-dashboard-text-secondary/60 ml-4 font-medium opacity-60",children:"Separated by commas. These tokens facilitate high-signal discovery during search engine scanning."})]})]})]})}var S=s(109),T=s(191),P=s(168),A=s(775),N=s(215),C=s(246);function M({settings:t,activeTab:e,onUpdateContact:s,onAddSocial:n,onUpdateSocial:i,onRemoveSocial:o}){const a=t.localizedContactInfo?.[e]||{},l=t.localizedSocials?.[e]||[];return(0,r.jsxs)("section",{className:"space-y-8",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("div",{className:"size-10 rounded-xl bg-primary/10 flex items-center justify-center text-primary border border-primary/20 shadow-inner",children:(0,r.jsx)(T.A,{size:20})}),(0,r.jsxs)("h3",{className:"text-2xl lg:text-3xl font-bold text-dashboard-text leading-none tracking-tight",children:["Localized ",(0,r.jsx)("span",{className:"text-primary",children:"Content"})]})]}),(0,r.jsxs)(b.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-dashboard-card/50 border border-dashboard-border/40 p-8 rounded-[2rem] space-y-8 relative overflow-hidden",children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("label",{className:"text-[10px] font-bold text-dashboard-text-secondary/70 uppercase tracking-[0.15em] ml-2 opacity-60",children:["Communication Vector (",e,")"]}),(0,r.jsxs)("div",{className:"relative group",children:[(0,r.jsx)(P.A,{className:"absolute left-5 top-1/2 -translate-y-1/2 size-4 text-dashboard-text-secondary/40 group-focus-within:text-primary transition-colors"}),(0,r.jsx)("input",{type:"tel",value:a.phoneNumber||"",onChange:t=>s("phoneNumber",t.target.value),placeholder:"INITIALIZE_PHONE",className:"w-full pl-12 pr-6 py-3 bg-dashboard-bg/50 border border-dashboard-border/40 rounded-xl text-sm font-bold outline-none focus:ring-2 focus:ring-primary/10 focus:border-primary/30 transition-all text-dashboard-text placeholder:text-dashboard-text-secondary/30"})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("label",{className:"text-[10px] font-bold text-dashboard-text-secondary/70 uppercase tracking-[0.15em] ml-2 opacity-60",children:["Geospatial Coordinates (",e,")"]}),(0,r.jsxs)("div",{className:"relative group",children:[(0,r.jsx)(A.A,{className:"absolute left-5 top-1/2 -translate-y-1/2 size-4 text-dashboard-text-secondary/40 group-focus-within:text-primary transition-colors"}),(0,r.jsx)("input",{type:"text",value:a.physicalAddress||"",onChange:t=>s("physicalAddress",t.target.value),placeholder:"STREET_ADDRESS_PROTOCOL",className:"w-full pl-12 pr-6 py-3 bg-dashboard-bg/50 border border-dashboard-border/40 rounded-xl text-sm font-bold outline-none focus:ring-2 focus:ring-primary/10 focus:border-primary/30 transition-all text-dashboard-text placeholder:text-dashboard-text-secondary/30"})]})]})]}),(0,r.jsxs)("div",{className:"pt-8 border-t border-dashboard-border/40",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-4 ml-2",children:[(0,r.jsxs)("label",{className:"text-[10px] font-bold text-dashboard-text-secondary/70 uppercase tracking-[0.15em] opacity-60",children:["Social Ecosystem Nodes (",e,")"]}),(0,r.jsxs)("button",{onClick:n,className:"flex items-center gap-2 px-4 py-2 bg-primary text-white rounded-xl text-[10px] font-bold uppercase tracking-[0.15em] hover:bg-primary/90 transition-all shadow-lg shadow-primary/10 active:scale-95 group/btn overflow-hidden relative",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-linear-to-br from-white/20 to-transparent opacity-0 group-hover/btn:opacity-100 transition-opacity"}),(0,r.jsx)(N.A,{size:12,strokeWidth:3})," ",(0,r.jsx)("span",{children:"Link Node"})]})]}),(0,r.jsx)("div",{className:"space-y-3",children:(0,r.jsx)(S.N,{mode:"popLayout",children:l.length>0?l.map((t,e)=>{const s=x.find(e=>e.name===t.platform);return(0,r.jsxs)(b.P.div,{layout:!0,initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{delay:.05*e},className:"flex items-center gap-4 p-3 bg-dashboard-bg/30 border border-dashboard-border/40 rounded-xl group hover:border-primary/30 transition-all duration-500",children:[(0,r.jsx)("div",{className:"shrink-0 size-10 rounded-lg bg-dashboard-card/50 flex items-center justify-center border border-dashboard-border/40 text-dashboard-text-secondary/40 group-hover:text-primary group-hover:bg-primary/10 group-hover:border-primary/20 transition-all duration-500 shadow-inner",children:s?.icon||(0,r.jsx)(c.A,{size:18})}),(0,r.jsxs)("div",{className:"flex-1 flex flex-col md:flex-row items-center gap-4",children:[(0,r.jsx)("div",{className:"w-full md:w-32 relative",children:(0,r.jsxs)("select",{value:t.platform,onChange:e=>i(t.id,"platform",e.target.value),className:"w-full bg-transparent border-none outline-none text-[10px] font-bold uppercase tracking-wider text-dashboard-text/90 cursor-pointer focus:text-primary transition-colors appearance-none",children:[(0,r.jsx)("option",{value:"",className:"bg-neutral-900",children:"PLATFORM"}),x.map(t=>(0,r.jsx)("option",{value:t.name,className:"bg-neutral-900",children:t.name},t.name))]})}),(0,r.jsx)("div",{className:"hidden md:block h-5 w-px bg-dashboard-border/40"}),(0,r.jsx)("input",{type:"url",value:t.url,onChange:e=>i(t.id,"url",e.target.value),placeholder:"URL_ENDPOINT",className:"flex-1 bg-transparent border-none outline-none text-xs font-bold text-dashboard-text/90 placeholder:text-dashboard-text-secondary/30 w-full"})]}),(0,r.jsx)("button",{onClick:()=>o(t.id),className:"p-2 text-dashboard-text-secondary/40 hover:text-red-500 hover:bg-red-500/10 rounded-lg opacity-0 group-hover:opacity-100 transition-all active:scale-90",children:(0,r.jsx)(C.A,{size:16})})]},t.id)}):(0,r.jsx)("div",{className:"text-center py-12 bg-dashboard-card/20 border border-dashed border-dashboard-border/40 rounded-2xl",children:(0,r.jsx)("p",{className:"text-[10px] text-dashboard-text-secondary/40 font-bold uppercase tracking-[0.2em]",children:"No social platforms initialized"})})})})]})]})]})}var E=s(572),V=s(781),z=s(323);function D({supportedLocales:t,onUpdate:e}){const[s,n]=(0,i.useState)(""),[o,a]=(0,i.useState)(!1),[l,d]=(0,i.useState)(""),h=s=>{if(t.some(t=>t.code===s.code)){if(t.length<=1)return void alert("You must have at least one language enabled.");e(t.filter(t=>t.code!==s.code))}else e([...t,s])},u=async()=>{const r=s.trim().toLowerCase();if(r)if(t.some(t=>t.code===r||t.countryCode===r))d("Language already added");else{a(!0),d("");try{const s=await fetch(`https://restcountries.com/v3.1/alpha/${r}`);if(!s.ok)throw new Error("Country not found");const i=(await s.json())[0];if(i){const s={code:r,name:i.name.common,countryCode:i.cca2.toLowerCase()};e([...t,s]),n("")}}catch(t){d("Could not find country code")}finally{a(!1)}}};return(0,r.jsxs)("section",{className:"space-y-8",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("div",{className:"size-10 rounded-xl bg-primary/10 flex items-center justify-center text-primary border border-primary/20 shadow-inner",children:(0,r.jsx)(c.A,{size:20})}),(0,r.jsxs)("h3",{className:"text-2xl lg:text-3xl font-bold text-dashboard-text leading-none tracking-tight",children:["Localization ",(0,r.jsx)("span",{className:"text-primary",children:"Matrix"})]})]}),(0,r.jsxs)(b.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-dashboard-card/50 border border-dashboard-border/40 p-8 rounded-[2rem] space-y-8 relative overflow-hidden",children:[(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 ml-2",children:[(0,r.jsx)(k.A,{size:12,className:"text-primary animate-pulse"}),(0,r.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.2em] text-primary/60",children:"Active Translation Nodes"})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:(0,r.jsx)(S.N,{mode:"popLayout",children:t.length>0?t.map(t=>(0,r.jsxs)(b.P.div,{layout:!0,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"flex items-center justify-between p-4 bg-dashboard-bg/30 border border-dashboard-border/40 rounded-xl group hover:border-primary/30 transition-all duration-500 shadow-sm",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("div",{className:"size-10 rounded-lg bg-dashboard-card/50 flex items-center justify-center border border-dashboard-border/40 group-hover:bg-primary/10 group-hover:border-primary/20 transition-all duration-500 shadow-inner",children:(0,r.jsx)(v,{countryCode:t.countryCode})}),(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("span",{className:"text-sm font-bold text-dashboard-text/90 group-hover:text-primary transition-colors",children:t.name}),(0,r.jsx)("span",{className:"text-[10px] text-dashboard-text-secondary/70 font-bold tracking-widest uppercase mt-0.5",children:t.code})]})]}),(0,r.jsx)("button",{onClick:()=>h(t),className:"p-2 text-dashboard-text-secondary/40 hover:text-red-500 hover:bg-red-500/10 rounded-lg opacity-0 group-hover:opacity-100 transition-all active:scale-90",children:(0,r.jsx)(E.A,{size:16})})]},t.code)):(0,r.jsx)("div",{className:"col-span-2 py-12 text-center bg-dashboard-card/30 border-dashed border border-dashboard-border/40 rounded-2xl",children:(0,r.jsx)("p",{className:"text-xs text-dashboard-text-secondary/60 font-medium",children:"No active localization nodes detected."})})})})]}),(0,r.jsxs)("div",{className:"space-y-4 pt-8 border-t border-dashboard-border/40",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between px-2",children:[(0,r.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.2em] text-primary/60",children:"Initialize New Region"}),l&&(0,r.jsx)("p",{className:"text-[10px] font-bold text-red-500 animate-pulse",children:l})]}),(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsxs)("div",{className:"relative flex-1",children:[(0,r.jsx)("input",{type:"text",value:s,onChange:t=>n(t.target.value.toUpperCase()),onKeyDown:t=>"Enter"===t.key&&u(),placeholder:"COUNTRY CODE (e.g. BE, JP, FR)",className:"w-full pl-6 pr-12 py-3 bg-dashboard-bg/50 border border-dashboard-border/40 rounded-xl text-xs font-bold uppercase tracking-wider outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30 transition-all text-dashboard-text placeholder:text-dashboard-text-secondary/40",maxLength:3}),o&&(0,r.jsx)(V.A,{className:"absolute right-4 top-1/2 -translate-y-1/2 size-4 animate-spin text-primary"})]}),(0,r.jsx)("button",{onClick:u,disabled:o||!s,className:"px-6 bg-primary text-white rounded-xl hover:bg-primary/90 transition-all shadow-lg shadow-primary/10 disabled:opacity-50 active:scale-95 flex items-center justify-center shrink-0",children:(0,r.jsx)(N.A,{size:20,strokeWidth:2.5})})]})]}),(0,r.jsxs)("div",{className:"space-y-4 pt-8 border-t border-dashboard-border/40",children:[(0,r.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.2em] text-primary/60 ml-2",children:"Recommended Protocols"}),(0,r.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-3",children:y.filter(e=>!t.some(t=>t.code===e.code)).slice(0,6).map(t=>(0,r.jsxs)("button",{onClick:()=>h(t),className:"flex flex-col items-center gap-2 p-3 bg-dashboard-bg/30 border border-dashboard-border/40 hover:border-primary/40 hover:bg-primary/5 group transition-all duration-500 rounded-xl",children:[(0,r.jsx)("div",{className:"size-8 rounded-lg bg-dashboard-card/50 flex items-center justify-center border border-dashboard-border/40 group-hover:border-primary/20 transition-all shadow-inner",children:(0,r.jsx)(v,{countryCode:t.countryCode})}),(0,r.jsx)("span",{className:"text-[10px] font-bold text-dashboard-text-secondary/60 group-hover:text-primary transition-colors truncate w-full text-center",children:t.name})]},t.code))})]}),(0,r.jsxs)("div",{className:"bg-primary/5 border border-primary/10 p-6 rounded-2xl flex items-start gap-4 group",children:[(0,r.jsx)("div",{className:"size-8 rounded-lg bg-primary/10 flex items-center justify-center text-primary shrink-0 border border-primary/20",children:(0,r.jsx)(z.A,{size:16})}),(0,r.jsx)("p",{className:"text-xs text-dashboard-text-secondary/70 font-medium leading-relaxed",children:"JHITS operates on a modular localization engine. Provisioning a region here will automatically synchronize translation schemas and localized data structures across the entire infrastructure."})]})]})]})}var L=s(487),R=s(189),O=(s(885),s(851)),I=s(840);function B(...t){return(0,I.QP)((0,O.$)(t))}function F({settings:t,onUpdate:e}){const s=t.launch_date&&new Date(t.launch_date).getTime()<=Date.now(),n=t.launched||s,i=!s&&t.maintenanceMode;return o().useEffect(()=>{if(!t.launch_date||s)return;if(new Date(t.launch_date).getTime()<=Date.now())return;const e=setInterval(()=>{new Date(t.launch_date).getTime()<=Date.now()&&(window.location.reload(),clearInterval(e))},1e3);return()=>clearInterval(e)},[t.launch_date]),(0,r.jsxs)("section",{className:"space-y-12",children:[(0,r.jsxs)("div",{className:"flex items-center gap-6",children:[(0,r.jsx)("div",{className:"size-14 rounded-2xl bg-primary/10 flex items-center justify-center text-primary border border-primary/20 shadow-inner",children:(0,r.jsx)(l.A,{size:28})}),(0,r.jsxs)("h3",{className:"text-4xl lg:text-5xl font-bold text-dashboard-text leading-none",children:["Site ",(0,r.jsx)("span",{className:"text-primary",children:"Status"})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[(0,r.jsxs)(b.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-dashboard-card/50 border border-dashboard-border/50 p-10 rounded-[3rem] group relative overflow-hidden",children:[(0,r.jsx)("div",{className:"absolute top-0 right-0 w-32 h-32 blur-3xl opacity-0 group-hover:opacity-10 transition-opacity bg-primary pointer-events-none"}),(0,r.jsxs)("div",{className:"flex items-center justify-between mb-10",children:[(0,r.jsx)("div",{className:B("size-16 rounded-2xl flex items-center justify-center transition-all duration-500 border relative overflow-hidden shadow-inner",n?"bg-emerald-500/10 border-emerald-500/20 text-emerald-500":"bg-neutral-500/5 border-neutral-500/10 text-neutral-400"),children:(0,r.jsx)(L.A,{size:28,className:B("relative z-10 transition-transform duration-500 group-hover:scale-110",n&&"animate-pulse")})}),(0,r.jsx)("button",{onClick:()=>{const s=!t.launched;e({launched:s,maintenanceMode:!s&&t.maintenanceMode})},className:B("relative w-16 h-8 rounded-full transition-all duration-500 p-1 shadow-inner",n?"bg-emerald-500":"bg-neutral-200 dark:bg-neutral-800"),children:(0,r.jsx)("div",{className:B("w-6 h-6 bg-white rounded-full transition-transform duration-500 shadow-lg",n?"translate-x-8":"translate-x-0")})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:"text-[10px] font-bold text-primary uppercase tracking-[0.3em] mb-3 block opacity-60",children:"Deployment Vector"}),(0,r.jsx)("h4",{className:"text-2xl font-bold text-dashboard-text mb-3",children:n?"System Published":"Private Mode"}),(0,r.jsx)("p",{className:"text-sm text-neutral-500 dark:text-neutral-400 font-medium leading-relaxed",children:n?"Your website is live and visible to all users across the world.":"The website is currently restricted to internal use and development."})]})]}),(0,r.jsxs)(b.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:B("bg-dashboard-card/50 border border-dashboard-border/50 p-10 rounded-[3rem] group relative overflow-hidden transition-all duration-500",i&&"border-orange-500/30 bg-orange-500/10"),children:[(0,r.jsx)("div",{className:"absolute top-0 right-0 w-32 h-32 blur-3xl opacity-0 group-hover:opacity-10 transition-opacity bg-orange-500 pointer-events-none"}),(0,r.jsxs)("div",{className:"flex items-center justify-between mb-10",children:[(0,r.jsx)("div",{className:B("size-16 rounded-2xl flex items-center justify-center transition-all duration-500 border relative overflow-hidden shadow-inner",i?"bg-orange-500/10 border-orange-500/20 text-orange-500":"bg-neutral-500/5 border-neutral-500/10 text-neutral-400"),children:(0,r.jsx)(R.A,{size:28,className:"relative z-10 transition-transform duration-500 group-hover:scale-110"})}),(0,r.jsx)("button",{onClick:()=>e({maintenanceMode:!t.maintenanceMode}),className:B("relative w-16 h-8 rounded-full transition-all duration-500 p-1 shadow-inner",i?"bg-orange-500":"bg-neutral-200 dark:bg-neutral-800"),children:(0,r.jsx)("div",{className:B("w-6 h-6 bg-white rounded-full transition-transform duration-500 shadow-lg",i?"translate-x-8":"translate-x-0")})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:"text-[10px] font-bold text-orange-500 uppercase tracking-[0.3em] mb-3 block opacity-60",children:"Operational Mode"}),(0,r.jsx)("h4",{className:"text-2xl font-bold text-dashboard-text mb-3",children:"Maintenance"}),(0,r.jsx)("p",{className:"text-sm text-neutral-500 dark:text-neutral-400 font-medium leading-relaxed",children:i?"Visitors see a maintenance screen. You can still access the dashboard.":"System is running normally. All features are available to public users."})]})]})]}),!1]})}var U=s(841),$=s(218);function W({settings:t,onUpdate:e}){return t.launched?(0,r.jsxs)("section",{className:"space-y-12",children:[(0,r.jsxs)("div",{className:"flex items-center gap-6",children:[(0,r.jsx)("div",{className:"size-14 rounded-2xl bg-primary/10 flex items-center justify-center text-primary border border-primary/20 shadow-inner",children:(0,r.jsx)(U.A,{size:28})}),(0,r.jsxs)("h3",{className:"text-4xl lg:text-5xl font-bold text-dashboard-text leading-none",children:["Launch ",(0,r.jsx)("span",{className:"text-primary",children:"History"})]})]}),(0,r.jsxs)(b.P.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},className:"bg-dashboard-card/50 border border-dashboard-border/50 p-10 rounded-[3rem] flex items-center gap-8 relative overflow-hidden group",children:[(0,r.jsx)("div",{className:"absolute top-0 right-0 w-48 h-48 blur-3xl opacity-5 bg-emerald-500 pointer-events-none"}),(0,r.jsx)("div",{className:"size-20 rounded-2xl bg-emerald-500/10 flex items-center justify-center border border-emerald-500/20 shadow-inner shrink-0",children:(0,r.jsx)("div",{className:"size-5 rounded-full bg-emerald-500 animate-pulse shadow-[0_0_20px_rgba(16,185,129,0.4)]"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:"text-[10px] font-bold text-emerald-500 uppercase tracking-[0.3em] mb-2 block opacity-60",children:"System Temporal Status"}),(0,r.jsx)("h4",{className:"text-2xl font-bold text-dashboard-text",children:"System Fully Operational"}),t.launch_date&&(0,r.jsxs)("p",{className:"text-sm text-neutral-500 dark:text-neutral-400 font-medium mt-2",children:["Initial Deployment Sequence: ",new Date(t.launch_date).toLocaleDateString(void 0,{dateStyle:"long"})]})]})]})]}):(0,r.jsxs)("section",{className:"space-y-12",children:[(0,r.jsxs)("div",{className:"flex items-center gap-6",children:[(0,r.jsx)("div",{className:"size-14 rounded-2xl bg-primary/10 flex items-center justify-center text-primary border border-primary/20 shadow-inner",children:(0,r.jsx)($.A,{size:28})}),(0,r.jsxs)("h3",{className:"text-4xl lg:text-5xl font-bold text-dashboard-text leading-none",children:["Launch ",(0,r.jsx)("span",{className:"text-primary",children:"Sequence"})]})]}),(0,r.jsxs)(b.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-dashboard-card/50 border border-dashboard-border/50 p-10 rounded-[3rem] space-y-10 relative overflow-hidden",children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10",children:[(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("label",{className:"text-[10px] font-bold text-primary uppercase tracking-[0.3em] ml-2 opacity-60",children:"Deployment Date"}),(0,r.jsx)("input",{type:"date",value:t.launch_date?t.launch_date.split("T")[0]:"",onChange:s=>{const n=s.target.value,r=t.launch_date?.includes("T")?t.launch_date.split("T")[1]:"00:00";e({launch_date:n?`${n}T${r}`:""})},className:"w-full px-8 py-5 bg-dashboard-card/50 border border-dashboard-border/50 rounded-[2rem] text-sm font-bold outline-none focus:ring-4 focus:ring-primary/10 transition-all text-dashboard-text placeholder:text-neutral-500"})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("label",{className:"text-[10px] font-bold text-primary uppercase tracking-[0.3em] ml-2 opacity-60",children:"Synchronization Time (24h)"}),(0,r.jsx)("input",{type:"time",step:"60",value:t.launch_date?.includes("T")?t.launch_date.split("T")[1]:"00:00",onChange:s=>{const n=s.target.value,r=t.launch_date?.includes("T")?t.launch_date.split("T")[0]:(new Date).toISOString().split("T")[0];e({launch_date:n?`${r}T${n}`:""})},className:"w-full px-8 py-5 bg-dashboard-card/50 border border-dashboard-border/50 rounded-[2rem] text-sm font-bold outline-none focus:ring-4 focus:ring-primary/10 transition-all text-dashboard-text placeholder:text-neutral-500"})]})]}),(0,r.jsxs)("div",{className:"bg-dashboard-card/50 border border-dashboard-border/50 p-8 rounded-[2rem] bg-primary/5 flex items-start gap-5 group",children:[(0,r.jsx)("div",{className:"size-10 rounded-xl bg-primary/10 flex items-center justify-center text-primary shrink-0 border border-primary/20",children:(0,r.jsx)(z.A,{size:18})}),(0,r.jsx)("p",{className:"text-xs text-neutral-500 dark:text-neutral-400 font-medium leading-relaxed",children:"The temporal countdown will be active on the system frontend. Upon reaching the zero-point, the architecture will automatically transition to an active production state."})]})]})]})}var _=s(883),H=s(265),Y=s(387),G=s(599);function X({config:t,onEdit:e}){return(0,r.jsxs)("section",{className:"space-y-8",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("div",{className:"size-10 rounded-xl bg-primary/10 flex items-center justify-center text-primary border border-primary/20 shadow-inner",children:(0,r.jsx)(_.A,{size:20})}),(0,r.jsxs)("h3",{className:"text-2xl lg:text-3xl font-bold text-dashboard-text leading-none tracking-tight",children:["Domain ",(0,r.jsx)("span",{className:"text-primary",children:"Strategy"})]})]}),(0,r.jsxs)(b.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-dashboard-card/50 border border-dashboard-border/40 p-8 rounded-[2rem] relative overflow-hidden",children:[(0,r.jsx)("div",{className:"space-y-6",children:t&&t.length>0?(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:t.map((t,e)=>(0,r.jsxs)(b.P.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:.1*e},className:"flex items-center justify-between p-4 bg-dashboard-bg/30 border border-dashboard-border/40 rounded-xl group hover:border-primary/30 transition-all duration-500 shadow-sm",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("div",{className:"size-10 rounded-lg bg-dashboard-card/50 flex items-center justify-center border border-dashboard-border/40 group-hover:bg-primary/10 group-hover:border-primary/20 transition-all duration-500 shadow-inner",children:(0,r.jsx)(v,{code:t.locale})}),(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("span",{className:"text-sm font-bold text-dashboard-text/90 group-hover:text-primary transition-colors",children:t.domain}),(0,r.jsxs)("div",{className:"flex items-center gap-2 mt-0.5",children:[(0,r.jsx)(H.A,{size:10,className:"text-primary opacity-40"}),(0,r.jsx)("p",{className:"text-[10px] font-bold text-dashboard-text-secondary/70 uppercase tracking-widest",children:"Primary Region"})]})]})]}),!t.allowUserOverride&&(0,r.jsx)("div",{className:"size-8 bg-dashboard-card/50 flex items-center justify-center text-dashboard-text-secondary/50 rounded-lg border border-dashboard-border/40",title:"Locked to this language",children:(0,r.jsx)(Y.A,{size:14})})]},e))}):(0,r.jsx)("div",{className:"py-12 text-center bg-dashboard-card/30 border-dashed border border-dashboard-border/40 rounded-2xl",children:(0,r.jsx)("p",{className:"text-[10px] text-dashboard-text-secondary/40 font-bold uppercase tracking-[0.2em]",children:"No domain-specific routing configured"})})}),(0,r.jsxs)("div",{className:"mt-8 pt-8 border-t border-dashboard-border/40 flex flex-col items-center",children:[(0,r.jsxs)("button",{onClick:e,className:"w-full max-w-sm relative group/btn flex items-center justify-center gap-4 px-8 py-3 bg-primary text-white rounded-xl text-[10px] font-bold uppercase tracking-[0.2em] transition-all shadow-xl shadow-primary/10 hover:shadow-primary/20 active:scale-[0.98] overflow-hidden",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-linear-to-br from-white/20 to-transparent opacity-0 group-hover/btn:opacity-100 transition-opacity"}),(0,r.jsx)(G.A,{size:16}),(0,r.jsx)("span",{children:t?.length?"Update Configurations":"Configure Domain Routing"})]}),(0,r.jsx)("p",{className:"text-[10px] text-dashboard-text-secondary/60 text-center mt-6 font-medium max-w-md",children:"Domain-based routing allows you to orchestrate specific regional delivery protocols based on the incoming hostname."})]})]})]})}var K=s(82);function q(...t){return(0,I.QP)((0,O.$)(t))}function Z({isOpen:t,config:e,supportedLocales:s,onClose:n,onSaveAndClose:o,isSaving:a=!1}){const[l,c]=(0,i.useState)(e),[d,h]=(0,i.useState)(null);if((0,i.useEffect)(()=>{c(e),h(null)},[e,t]),!t)return null;const u=(t,e,s)=>{const n=[...l];n[t]={...n[t],[e]:s},c(n)};return(0,r.jsx)("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-4",children:(0,r.jsxs)(b.P.div,{initial:{opacity:0,scale:.9,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:20},className:"bg-dashboard-card/50 w-full max-w-xl rounded-[2rem] border border-dashboard-border/40 shadow-2xl flex flex-col max-h-[90vh] overflow-hidden relative",children:[(0,r.jsx)("div",{className:"absolute top-0 right-0 w-64 h-64 blur-3xl opacity-5 bg-primary pointer-events-none"}),(0,r.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-dashboard-border/40 relative z-10",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"size-8 rounded-lg bg-primary/10 flex items-center justify-center text-primary border border-primary/20 shadow-inner",children:(0,r.jsx)(_.A,{size:16})}),(0,r.jsxs)("h2",{className:"text-xl font-bold text-dashboard-text/90",children:["Domain ",(0,r.jsx)("span",{className:"text-primary",children:"Routing"})]})]}),(0,r.jsx)("button",{onClick:n,className:"p-2 text-dashboard-text-secondary/50 hover:text-dashboard-text transition-all hover:bg-white/5 rounded-lg",children:(0,r.jsx)(E.A,{size:18})})]}),(0,r.jsxs)("div",{className:"flex-1 overflow-y-auto p-6 space-y-4 relative z-10 custom-scrollbar",children:[(0,r.jsx)(S.N,{mode:"popLayout",children:l.length>0?(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("span",{className:"text-[10px] font-bold text-primary/60 uppercase tracking-[0.2em] ml-2",children:"Active Configurations"}),l.map((t,e)=>(0,r.jsxs)(b.P.div,{layout:!0,initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},className:"bg-dashboard-bg/30 rounded-xl border border-dashboard-border/40 overflow-hidden transition-all duration-300 hover:border-primary/20",children:[(0,r.jsxs)("div",{onClick:()=>(t=>{h(d===t?null:t)})(e),className:"w-full flex items-center justify-between p-3.5 text-left hover:bg-primary/5 transition-all cursor-pointer",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("span",{className:"text-sm font-bold text-dashboard-text/90",children:t.domain||"UNCONFIGURED_HOST"}),(0,r.jsx)(H.A,{size:12,className:"text-primary opacity-40"}),(0,r.jsxs)("div",{className:"px-2 py-0.5 bg-dashboard-card/50 border border-dashboard-border/40 rounded-full flex items-center gap-2 bg-primary/5",children:[(0,r.jsx)(v,{code:t.locale}),(0,r.jsx)("span",{className:"text-[9px] font-bold uppercase tracking-wider text-primary",children:t.locale})]}),!1===t.allowUserOverride&&(0,r.jsx)(K.A,{size:10,className:"text-dashboard-text-secondary/50"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("button",{onClick:t=>{t.stopPropagation(),(t=>{c(l.filter((e,s)=>s!==t)),d===t&&h(null)})(e)},className:"p-1.5 text-dashboard-text-secondary/40 hover:text-red-500 hover:bg-red-500/10 rounded-lg transition-all",children:(0,r.jsx)(C.A,{size:14})}),(0,r.jsx)("div",{className:q("transition-transform duration-300",d===e&&"rotate-180"),children:(0,r.jsx)(E.A,{size:12,className:"text-dashboard-text-secondary/40 rotate-45"})})]})]}),(0,r.jsx)(S.N,{children:d===e&&(0,r.jsx)(b.P.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"overflow-hidden",children:(0,r.jsxs)("div",{className:"p-4 pt-0 space-y-4 border-t border-dashboard-border/40 bg-dashboard-card/20",children:[(0,r.jsxs)("div",{className:"space-y-1.5 mt-4",children:[(0,r.jsx)("label",{className:"text-[10px] font-bold text-dashboard-text-secondary/60 uppercase tracking-[0.15em] ml-1",children:"Hostname Protocol"}),(0,r.jsx)("input",{type:"text",value:t.domain,onChange:t=>u(e,"domain",t.target.value),placeholder:"e.g. jhits.tech",className:"w-full px-4 py-2 bg-dashboard-bg/50 border border-dashboard-border/40 rounded-lg text-sm font-bold outline-none focus:ring-2 focus:ring-primary/10 focus:border-primary/30 transition-all text-dashboard-text placeholder:text-dashboard-text-secondary/30"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsxs)("div",{className:"flex-1 space-y-1.5",children:[(0,r.jsx)("label",{className:"text-[10px] font-bold text-dashboard-text-secondary/60 uppercase tracking-[0.15em] ml-1",children:"Regional Node"}),(0,r.jsx)("select",{value:t.locale,onChange:t=>u(e,"locale",t.target.value),className:"w-full px-4 py-2 bg-dashboard-bg/50 border border-dashboard-border/40 rounded-lg text-sm font-bold uppercase tracking-wider outline-none focus:ring-2 focus:ring-primary/10 focus:border-primary/30 transition-all text-dashboard-text cursor-pointer appearance-none",children:s.map(t=>(0,r.jsx)("option",{value:t.code,className:"bg-neutral-900",children:t.name},t.code))})]}),(0,r.jsxs)("div",{className:"shrink-0 flex flex-col items-center gap-1.5 pt-4",children:[(0,r.jsx)("label",{className:"text-[9px] font-bold text-dashboard-text-secondary/50 uppercase tracking-widest",children:"User Override"}),(0,r.jsx)("button",{onClick:()=>u(e,"allowUserOverride",!t.allowUserOverride),className:q("relative w-10 h-5 rounded-full transition-all duration-300 p-0.5",t.allowUserOverride?"bg-primary":"bg-neutral-700"),children:(0,r.jsx)("div",{className:q("w-4 h-4 bg-white rounded-full transition-transform duration-300 shadow-sm",t.allowUserOverride?"translate-x-5":"translate-x-0")})})]})]})]})})})]},e))]}):(0,r.jsx)("div",{className:"py-12 text-center bg-dashboard-card/20 border-dashed border border-dashboard-border/40 rounded-2xl",children:(0,r.jsx)("p",{className:"text-[10px] text-dashboard-text-secondary/40 font-bold uppercase tracking-[0.2em]",children:"No domain-specific routing configured"})})}),(0,r.jsx)("div",{className:"pt-2",children:(0,r.jsxs)("button",{onClick:()=>{c([...l,{domain:"",locale:s[0]?.code||"en",allowUserOverride:!0}]),h(l.length)},className:"w-full flex items-center justify-center gap-2 px-4 py-3 border border-dashed border-dashboard-border/40 text-dashboard-text-secondary/50 hover:border-primary/40 hover:text-primary rounded-xl transition-all duration-500 font-bold uppercase text-[10px] tracking-[0.2em]",children:[(0,r.jsx)(N.A,{size:16}),"Add System Domain"]})})]}),(0,r.jsxs)("div",{className:"flex gap-3 p-6 border-t border-dashboard-border/40 relative z-10",children:[(0,r.jsx)("button",{onClick:n,className:"flex-1 px-4 py-2.5 bg-dashboard-card/30 hover:bg-white/5 text-dashboard-text/80 rounded-xl text-[10px] font-bold uppercase tracking-wider transition-all border border-dashboard-border/40",children:"Cancel"}),(0,r.jsxs)("button",{onClick:()=>o(l),disabled:a,className:"flex-1 px-4 py-2.5 bg-primary text-white rounded-xl text-[10px] font-bold uppercase tracking-[0.15em] transition-all shadow-xl shadow-primary/10 hover:shadow-primary/20 disabled:opacity-50 flex items-center justify-center gap-2",children:[a?(0,r.jsx)("div",{className:"size-3.5 border-2 border-white/20 border-t-white rounded-full animate-spin"}):(0,r.jsx)(m.A,{size:14}),(0,r.jsx)("span",{children:a?"Syncing...":"Deploy Config"})]})]})]})})}function J({siteId:t}){const[e,s]=(0,i.useState)("general"),{settings:n,isLoading:o,isSaving:f,isDirty:g,showSuccess:y,activeTab:x,setActiveTab:b,activeLocales:w,showDomainModal:k,setShowDomainModal:S,handleUpdateSettings:T,handleUpdateLocalizedIdentity:P,handleUpdateLocalizedContact:A,handleAddLocalizedSocial:N,handleUpdateLocalizedSocial:C,handleRemoveLocalizedSocial:E,handleUpdateLocales:V,handleSave:z,handleReset:L,saveDomainConfigAndClose:R}=function(t){const[e,s]=(0,i.useState)(!0),[n,r]=(0,i.useState)(!1),[o,a]=(0,i.useState)(!1),[l,c]=(0,i.useState)(""),[d,h]=(0,i.useState)(!1),[u,p]=(0,i.useState)(""),[m,f]=(0,i.useState)({identifier:"site_config",contactEmail:"",smtpUser:"",maintenanceMode:!1,launched:!1,launch_date:"",supportedLocales:[],localizedIdentity:{},localizedContactInfo:{},localizedSocials:{},domainLocaleConfig:[]}),g=u!==JSON.stringify(m),y=m.supportedLocales;return(0,i.useEffect)(()=>{y.length>0&&(l&&y.some(t=>t.code===l)||c(y[0].code))},[y,l]),(0,i.useEffect)(()=>{(async()=>{try{s(!0);const t=await fetch("/api/plugin-website/settings",{credentials:"include",cache:"no-store"});if(!t.ok)throw new Error("Failed to fetch settings");const e=await t.json();if(e&&e.identifier){let t="";if(e.launch_date){const s=new Date(e.launch_date);if(!isNaN(s.getTime())){const e=s.getFullYear(),n=String(s.getMonth()+1).padStart(2,"0");t=`${e}-${n}-${String(s.getDate()).padStart(2,"0")}T${String(s.getHours()).padStart(2,"0")}:${String(s.getMinutes()).padStart(2,"0")}`}}const s={...e,launch_date:t,supportedLocales:e.supportedLocales||[],localizedIdentity:e.localizedIdentity||{},localizedContactInfo:e.localizedContactInfo||{},localizedSocials:e.localizedSocials||{},domainLocaleConfig:e.domainLocaleConfig||[]};f(s),p(JSON.stringify(s)),s.supportedLocales.length>0&&c(s.supportedLocales[0].code)}}catch(t){console.error("Failed to load settings:",t)}finally{s(!1)}})()},[t]),{settings:m,isLoading:e,isSaving:n,isDirty:g,showSuccess:o,activeTab:l,setActiveTab:c,activeLocales:y,showDomainModal:d,setShowDomainModal:h,handleUpdateSettings:t=>{f(e=>({...e,...t}))},handleUpdateLocalizedIdentity:(t,e)=>{l&&f(s=>({...s,localizedIdentity:{...s.localizedIdentity,[l]:{...s.localizedIdentity?.[l]||{},[t]:e}}}))},handleUpdateLocalizedContact:(t,e)=>{l&&f(s=>({...s,localizedContactInfo:{...s.localizedContactInfo,[l]:{...s.localizedContactInfo?.[l]||{},[t]:e}}}))},handleAddLocalizedSocial:()=>{if(!l)return;const t=m.localizedSocials?.[l]||[],e=Date.now();f(s=>({...s,localizedSocials:{...s.localizedSocials,[l]:[...t,{id:e,platform:"",url:""}]}}))},handleUpdateLocalizedSocial:(t,e,s)=>{if(!l)return;const n=m.localizedSocials?.[l]||[];f(r=>({...r,localizedSocials:{...r.localizedSocials,[l]:n.map(n=>n.id===t?{...n,[e]:s}:n)}}))},handleRemoveLocalizedSocial:t=>{if(!l)return;const e=m.localizedSocials?.[l]||[];f(s=>({...s,localizedSocials:{...s.localizedSocials,[l]:e.filter(e=>e.id!==t)}}))},handleUpdateLocales:t=>{f(e=>({...e,supportedLocales:t}))},handleSave:async()=>{if(0!==m.supportedLocales.length)try{if(r(!0),!(await fetch("/api/plugin-website/settings",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(m)})).ok)throw new Error("Failed to save settings");p(JSON.stringify(m)),a(!0),setTimeout(()=>a(!1),3e3)}catch(t){console.error("Failed to save settings:",t)}finally{r(!1)}else alert("At least one language must be enabled.")},handleReset:()=>{u&&f(JSON.parse(u))},saveDomainConfigAndClose:async t=>{const e={...m,domainLocaleConfig:t};f(e),h(!1);try{await fetch("/api/plugin-website/settings",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(e)}),p(JSON.stringify(e)),a(!0),setTimeout(()=>a(!1),3e3)}catch(t){console.error("Auto-save failed")}}}}(t);if(o)return(0,r.jsx)("div",{className:"h-full w-full bg-dashboard-card text-dashboard-text flex items-center justify-center",children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)(a.A,{className:"w-8 h-8 animate-spin text-primary mx-auto mb-4"}),(0,r.jsx)("p",{className:"text-sm text-dashboard-text-secondary",children:"Loading settings..."})]})});const O=n.supportedLocales&&n.supportedLocales.length>0,I=[{id:"general",label:"General",icon:l.A,description:"Status & Launch Date",localized:!1},{id:"localization",label:"Localization",icon:c.A,description:"Languages & Domains",localized:!1},{id:"seo",label:"Identity & SEO",icon:d.A,description:"Site Name & Meta",localized:!0},{id:"contact",label:"Contact & Social",icon:h.A,description:"Address & Links",localized:!0}];return(0,r.jsxs)("div",{className:"absolute inset-0 w-full flex overflow-hidden bg-dashboard-bg/50",children:[(0,r.jsxs)("aside",{className:"w-80 bg-dashboard-card/40 backdrop-blur-2xl border-r border-dashboard-border/60 flex flex-col p-6 flex-shrink-0 h-full",children:[(0,r.jsxs)("div",{className:"mb-12 px-2 shrink-0 pt-8",children:[(0,r.jsxs)("h1",{className:"text-3xl font-bold text-dashboard-text tracking-tight flex items-center gap-3",children:[(0,r.jsx)("div",{className:"size-8 bg-primary rounded-lg flex items-center justify-center shadow-lg shadow-primary/20",children:(0,r.jsx)(l.A,{size:18,className:"text-white"})}),"Settings"]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 mt-3 ml-11",children:[(0,r.jsx)("p",{className:"text-[10px] font-bold text-primary/80 uppercase tracking-widest",children:"Website Engine"}),g&&(0,r.jsx)("span",{className:"flex size-2 rounded-full bg-amber-500 animate-pulse shadow-[0_0_8px_rgba(245,158,11,0.5)]",title:"Unsaved changes"})]})]}),(0,r.jsx)("nav",{className:"space-y-2 flex-1 overflow-y-auto custom-scrollbar pr-2",children:I.map(t=>{const n=t.icon,i=e===t.id,o=t.localized&&!O;return(0,r.jsxs)("button",{onClick:()=>!o&&s(t.id),className:`w-full flex items-center gap-4 p-4 rounded-2xl transition-all text-left group relative ${i?"bg-primary text-white shadow-xl shadow-primary/25 border border-primary/20":"hover:bg-primary/8 text-dashboard-text-secondary hover:text-primary border border-transparent"} ${o?"opacity-40 cursor-not-allowed":"cursor-pointer"}`,children:[(0,r.jsx)("div",{className:"flex items-center justify-center shrink-0 transition-transform duration-300 "+(i?"scale-110":"group-hover:scale-110"),children:(0,r.jsx)(n,{size:20,className:i?"text-white":"text-primary/60 group-hover:text-primary"})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:"block text-sm font-semibold tracking-tight truncate "+(i?"text-white":"text-dashboard-text"),children:t.label}),o&&(0,r.jsx)(u.A,{size:12,className:"text-dashboard-text-secondary opacity-50"})]}),(0,r.jsx)("span",{className:"text-[10px] font-medium opacity-70 truncate block mt-0.5 "+(i?"text-white/80":"text-dashboard-text-secondary"),children:t.description})]})]},t.id)})}),(0,r.jsxs)("div",{className:"mt-auto space-y-4 pt-8 border-t border-dashboard-border/40",children:[g&&(0,r.jsx)("button",{onClick:L,className:"w-full py-3 rounded-xl text-xs font-bold text-dashboard-text-secondary hover:text-dashboard-text hover:bg-dashboard-card/60 transition-all active:scale-[0.98]",children:"Discard Changes"}),(0,r.jsxs)("button",{onClick:z,disabled:f,className:"w-full flex items-center justify-center gap-3 py-4 rounded-2xl text-sm font-bold transition-all active:scale-[0.98] "+(f?"bg-neutral-200 dark:bg-neutral-800 text-neutral-400 cursor-not-allowed":y?"bg-emerald-500 text-white shadow-lg shadow-emerald-500/20":g?"bg-primary text-white hover:bg-primary/90 shadow-xl shadow-primary/30":"bg-neutral-100 dark:bg-neutral-800/40 text-dashboard-text-secondary opacity-40 cursor-not-allowed"),children:[f?(0,r.jsx)(a.A,{className:"w-4 h-4 animate-spin"}):y?(0,r.jsx)(p.A,{className:"w-4 h-4"}):(0,r.jsx)(m.A,{className:"w-4 h-4"}),f?"Saving...":y?"Saved!":"Save Changes"]})]})]}),(0,r.jsxs)("main",{className:"flex-1 flex flex-col min-w-0 bg-transparent",children:[(0,r.jsxs)("div",{className:"h-24 px-12 flex items-center justify-between shrink-0 z-10 bg-dashboard-bg/20 backdrop-blur-sm border-b border-dashboard-border/30",children:[(0,r.jsxs)("div",{className:"flex items-center gap-6",children:[(0,r.jsx)("div",{className:"h-10 w-1.5 bg-primary rounded-full shadow-[0_0_10px_rgba(var(--color-primary),0.3)]"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-2xl font-bold text-dashboard-text tracking-tight leading-none mb-1.5",children:I.find(t=>t.id===e)?.label}),(0,r.jsx)("p",{className:"text-xs font-medium text-dashboard-text-secondary opacity-80",children:I.find(t=>t.id===e)?.description})]})]}),("seo"===e||"contact"===e)&&(0,r.jsx)("div",{className:"flex gap-1.5 p-1.5 bg-dashboard-card/50 backdrop-blur-md rounded-2xl border border-dashboard-border/40 shadow-sm",children:w.map(t=>(0,r.jsxs)("button",{onClick:()=>b(t.code),className:"px-4 py-2 rounded-xl text-xs font-bold transition-all flex items-center gap-2.5 "+(x===t.code?"bg-primary text-white shadow-md":"text-dashboard-text-secondary hover:text-dashboard-text hover:bg-dashboard-card/80"),children:[(0,r.jsx)(v,{code:t.code,countryCode:t.countryCode}),t.code.toUpperCase()]},t.code))})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto px-12 pb-12 pt-6 custom-scrollbar",children:(0,r.jsx)("div",{className:"max-w-4xl",children:(()=>{const t=I.find(t=>t.id===e);if(t?.localized&&!O)return(0,r.jsx)("div",{className:"h-full flex items-center justify-center p-12",children:(0,r.jsxs)("div",{className:"max-w-md w-full text-center space-y-8",children:[(0,r.jsx)("div",{className:"size-24 bg-primary/15 rounded-[2rem] flex items-center justify-center mx-auto shadow-2xl shadow-primary/10 border border-primary/30",children:(0,r.jsx)(c.A,{size:48,className:"text-primary animate-pulse"})}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("h3",{className:"text-3xl font-bold text-dashboard-text tracking-tight",children:"Configuration Required"}),(0,r.jsx)("p",{className:"text-sm text-dashboard-text-secondary font-medium leading-relaxed opacity-80",children:"To manage localized content like site names and contact info, you first need to define which languages your website supports."})]}),(0,r.jsx)("button",{onClick:()=>s("localization"),className:"inline-flex items-center gap-3 px-8 py-4 bg-primary text-white rounded-2xl text-xs font-bold uppercase tracking-wider hover:bg-primary/90 transition-all shadow-lg shadow-primary/25 active:scale-95",children:"Setup Languages Now"})]})});switch(e){case"general":return(0,r.jsxs)("div",{className:"space-y-10 max-w-3xl",children:[(0,r.jsx)(F,{settings:n,onUpdate:T}),(0,r.jsx)(W,{settings:n,onUpdate:T})]});case"localization":return(0,r.jsxs)("div",{className:"space-y-10 max-w-3xl",children:[(0,r.jsx)(D,{supportedLocales:n.supportedLocales,onUpdate:V}),(0,r.jsx)(X,{config:n.domainLocaleConfig||[],onEdit:()=>S(!0)})]});case"seo":return(0,r.jsx)("div",{className:"max-w-3xl",children:(0,r.jsx)(j,{settings:n,activeTab:x,onUpdateLocalized:P})});case"contact":return(0,r.jsx)("div",{className:"max-w-3xl",children:(0,r.jsx)(M,{settings:n,activeTab:x,onUpdateContact:A,onAddSocial:N,onUpdateSocial:C,onRemoveSocial:E})});default:return null}})()})})]}),(0,r.jsx)(Z,{isOpen:k,config:n.domainLocaleConfig||[],supportedLocales:w,onClose:()=>S(!1),onSaveAndClose:R,isSaving:f})]})}function Q({subPath:t,siteId:e,locale:s}){return t[0],(0,r.jsx)(J,{siteId:e,locale:s})}pluginWebsite=n})();
|