1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Highlights-BRLHcFJ_.js","assets/wrench-Coa5z_mf.js","assets/vendor-I0KuRock.js","assets/supabase-DwLvwLLT.js","assets/FullscreenGallery-Dx9ndQEA.js","assets/ff74ce72-516e-4ac7-ae3f-824ffaa60b58-C_P1YoEo.js","assets/Services-BxQM0IZJ.js","assets/truck-CRDoniKg.js","assets/settings-C6diUzGh.js","assets/TrustedPartners-B0rdTKc4.js","assets/royal-products-logo-CXOZcJWz.js","assets/FeaturedMachines-BBsG8-DJ.js","assets/MachineDetailModal-B5wiebah.js","assets/LazyImage-Ftlv57YG.js","assets/QuoteRequestDialog-SYllQkIy.js","assets/index-Dnk6scTI.js","assets/studer-s23-new-2thCt6gK.js","assets/About-Daa9M3lY.js","assets/Footer-B4Dj2Txr.js","assets/Contact-forF0e3c.js","assets/Products-DX6CRTRg.js","assets/Section179-CC9EY_lU.js","assets/rotate-ccw-C54TJMcC.js","assets/Services-vOS2_j6I.js","assets/package-DK0u-s0P.js","assets/calendar-Mhko915K.js","assets/shield-CLjsDeLY.js","assets/circle-check-big-Cui2G7Ai.js","assets/cog-C1X2UqNq.js","assets/gauge-BB-ZjDE4.js","assets/target-BBb5v_RP.js","assets/ServicesParts-BDg-0GWA.js","assets/ServicesMaintenance-CEBXzaD0.js","assets/AdminContactSubmissions-DHJcw_eQ.js","assets/badge-B-gbjbrt.js","assets/Milling-CMs9gKK7.js","assets/zap-BRD8Mviu.js","assets/EDM-Dips_emM.js","assets/LaserTechnologies-DQdxWwC8.js","assets/sparkles-Cs10J3F_.js","assets/AdditiveManufacturing-O-mU5ejE.js","assets/layers-DH8oi6vD.js","assets/SMECHorizontalLathes2Axis-BbVwCevY.js","assets/smec-sl-3500bl-thumb-CLQ11izg.js","assets/SMECHorizontalLathes3Axis-BBb2YuX2.js","assets/SMECHorizontalLathesMultiAxis-Do53nD8Q.js","assets/cpu-NrGzymsU.js","assets/SMECSTX2600-Dl8tHC5J.js","assets/SMECVerticalLathes2Axis-IIV5Tnfg.js","assets/smec-slv-1000-T10KDV2e.js","assets/SMECVerticalLathes3Axis-BgBZp38p.js","assets/SMECVerticalMachiningCenters3Axis-D9wS9vJw.js","assets/SMECVerticalMachiningCenters5Axis-BOHzrZI5.js","assets/UnitedGrindingExternalCylindrical-D2qbPuSH.js","assets/UnitedGrindingInternalCylindrical-CA8H5rZ-.js","assets/UnitedGrindingGrindingErosion-N1CKLyxn.js","assets/UnitedGrindingMeasuring-Bdupe99X.js","assets/UnitedGrindingLaserAblation-BCCYaSzp.js","assets/UnitedGrindingSurfaceProfile-rZ0mB36Y.js","assets/UnitedGrinding56Axis-BX2VHx3D.js","assets/NotFound-B9MUjpL1.js"])))=>i.map(i=>d[i]); 2var e,t,n,r,o,s,a,i,l,c,d,u,h,p,f,m,g,v,y,b,x,w,j,E,N,C,S,T,k,M,O,P,A,_,R,D,L,I,z,F,$,W=Object.defineProperty,q=e=>{throw TypeError(e)},U=(e,t,n)=>((e,t,n)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),B=(e,t,n)=>t.has(e)||q("Cannot "+n),V=(e,t,n)=>(B(e,t,"read from private field"),n?n.call(e):t.get(e)),H=(e,t,n)=>t.has(e)?q("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),K=(e,t,n,r)=>(B(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),G=(e,t,n)=>(B(e,t,"access private method"),n),Y=(e,t,n,r)=>({set _(r){K(e,t,r,n)},get _(){return V(e,t,r)}});import{r as Q,a as X,g as Z,R as J,b as ee,c as te,u as ne,d as re,L as oe,B as se,e as ae,f as ie,N as le}from"./vendor-I0KuRock.js";import{c as ce}from"./supabase-DwLvwLLT.js";var de={exports:{}},ue={},he=Q,pe=Symbol.for("react.element"),fe=Symbol.for("react.fragment"),me=Object.prototype.hasOwnProperty,ge=he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ve={key:!0,ref:!0,__self:!0,__source:!0};function ye(e,t,n){var r,o={},s=null,a=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(a=t.ref),t)me.call(t,r)&&!ve.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:pe,type:e,key:s,ref:a,props:o,_owner:ge.current}}ue.Fragment=fe,ue.jsx=ye,ue.jsxs=ye,de.exports=ue;var be,xe=de.exports,we=X;be=we.createRoot,we.hydrateRoot;var je="undefined"!=typeof Element,Ee="function"==typeof Map,Ne="function"==typeof Set,Ce="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Se(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,s;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!==r--;)if(!Se(e[r],t[r]))return!1;return!0}if(Ee&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!Se(r.value[1],t.get(r.value[0])))return!1;return!0}if(Ne&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Ce&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!==r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(je&&e instanceof Element)return!1;for(r=n;0!==r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!Se(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}const Te=Z(function(e,t){try{return Se(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return!1;throw n}});const ke=Z(function(e,t,n,r,o,s,a,i){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,s,a,i],d=0;(l=new Error(t.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}});const Me=Z(function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;
2if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var s=Object.keys(e),a=Object.keys(t);if(s.length!==a.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),l=0;l<s.length;l++){var c=s[l];if(!i(c))return!1;var d=e[c],u=t[c];if(!1===(o=n?n.call(r,d,u,c):void 0)||void 0===o&&d!==u)return!1}return!0});var Oe=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Oe||{}),Pe={rel:["amphtml","canonical","alternate"]},Ae={type:["application/ld+json"]},_e={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},Re=Object.values(Oe),De={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Le=Object.entries(De).reduce((e,[t,n])=>(e[n]=t,e),{}),Ie="data-rh",ze="defaultTitle",Fe="defer",$e="encodeSpecialCharacters",We="onChangeClientState",qe="titleTemplate",Ue="prioritizeSeoTags",Be=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},Ve=e=>{let t=Be(e,"title");const n=Be(e,qe);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Be(e,ze);return t||r||void 0},He=e=>Be(e,We)||(()=>{}),Ke=(e,t)=>t.filter(t=>void 0!==t[e]).map(t=>t[e]).reduce((e,t)=>({...e,...t}),{}),Ge=(e,t)=>t.filter(e=>void 0!==e.base).map(e=>e.base).reverse().reduce((t,n)=>{if(!t.length){const r=Object.keys(n);for(let o=0;o<r.length;o+=1){const s=r[o].toLowerCase();if(-1!==e.indexOf(s)&&n[s])return t.concat(n)}}return t},[]),Ye=(e,t,n)=>{const r={};return n.filter(t=>!!Array.isArray(t[e])||(void 0!==t[e]&&(t[e],console&&console.warn),!1)).map(t=>t[e]).reverse().reduce((e,n)=>{const o={};n.filter(e=>{let n;const s=Object.keys(e);for(let r=0;r<s.length;r+=1){const o=s[r],a=o.toLowerCase();-1===t.indexOf(a)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===a&&"stylesheet"===e[a].toLowerCase()||(n=a),-1===t.indexOf(o)||"innerHTML"!==o&&"cssText"!==o&&"itemprop"!==o||(n=o)}if(!n||!e[n])return!1;const a=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][a]&&(o[n][a]=!0,!0)}).reverse().forEach(t=>e.push(t));const s=Object.keys(o);for(let t=0;t<s.length;t+=1){const e=s[t],n={...r[e],...o[e]};r[e]=n}return e},[]).reverse()},Qe=(e,t)=>{if(Array.isArray(e)&&e.length)for(let n=0;n<e.length;n+=1){if(e[n][t])return!0}return!1},Xe=e=>Array.isArray(e)?e.join(""):e,Ze=(e,t)=>Array.isArray(e)?e.reduce((e,n)=>(((e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1})(n,t)?e.priority.push(n):e.default.push(n),e),{priority:[],default:[]}):{default:e,priority:[]},Je=(e,t)=>
2({...e,[t]:void 0}),et=["noscript","script","style"],tt=(e,t=!0)=>!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),nt=e=>Object.keys(e).reduce((t,n)=>{const r=void 0!==e[n]?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),rt=(e,t={})=>Object.keys(e).reduce((t,n)=>(t[De[n]||n]=e[n],t),t),ot=(e,t)=>t.map((t,n)=>{const r={key:n,[Ie]:!0};return Object.keys(t).forEach(e=>{const n=De[e]||e;if("innerHTML"===n||"cssText"===n){const e=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:e}}else r[n]=t[e]}),J.createElement(e,r)}),st=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>((e,t,n)=>{const r=rt(n,{key:t,[Ie]:!0});return[J.createElement("title",r,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,n,r)=>{const o=nt(n),s=Xe(t);return o?`<${e} ${Ie}="true" ${o}>${tt(s,r)}</${e}>`:`<${e} ${Ie}="true">${tt(s,r)}</${e}>`})(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>rt(t),toString:()=>nt(t)};default:return{toComponent:()=>ot(e,t),toString:()=>((e,t,n=!0)=>t.reduce((t,r)=>{const o=r,s=Object.keys(o).filter(e=>!("innerHTML"===e||"cssText"===e)).reduce((e,t)=>{const r=void 0===o[t]?t:`${t}="${tt(o[t],n)}"`;return e?`${e} ${r}`:r},""),a=o.innerHTML||o.cssText||"",i=-1===et.indexOf(e);return`${t}<${e} ${Ie}="true" ${s}${i?"/>":`>${a}</${e}>`}`},""))(e,t,n)}}},at=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:o,noscriptTags:s,styleTags:a,title:i="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:d,metaTags:u,scriptTags:h}=e,p={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:p,linkTags:d,metaTags:u,scriptTags:h}=(({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const o=Ze(e,_e),s=Ze(t,Pe),a=Ze(n,Ae);return{priorityMethods:{toComponent:()=>[...ot("meta",o.priority),...ot("link",s.priority),...ot("script",a.priority)],toString:()=>`${st("meta",o.priority,r)} ${st("link",s.priority,r)} ${st("script",a.priority,r)}`},metaTags:o.default,linkTags:s.default,scriptTags:a.default}})(e)),{priority:p,base:st("base",t,r),bodyAttributes:st("bodyAttributes",n,r),htmlAttributes:st("htmlAttributes",o,r),link:st("link",d,r),meta:st("meta",u,r),noscript:st("noscript",s,r),script:st("script",h,r),style:st("style",a,r),title:st("title",{title:i,titleAttributes:l},r)}},it=[],lt=!("undefined"==typeof window||!window.document||!window.document.createElement),ct=class{constructor(e,t){U(this,"instances",[]),U(this,"canUseDOM",lt),U(this,"context"),U(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?it:this.instances,add:e=>{(this.canUseDOM?it:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?it:this.instances).indexOf(e);(this.canUseDOM?it:this.instances).splice(t,1)}}}),this.context=e,this.canUseDOM=t||!1,t||(e.helmet=at({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},dt=J.createContext({}),ut=(e=class extends Q.Component{constructor(t){super(t),U(this,"helmetData"),this.helmetData=new ct(this.props.context||{},e.canUseDOM)}render(){return J.createElement(dt.Provider,{value:this.helmetData.value},this.props.children)}},U(e,"canUseDOM",lt),e),ht=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Ie}]`),o=[].slice.call(r),s=[];let a;return t&&t.length&&t.forEach(t=>{const n=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)n.innerHTML=t.innerHTML;else if("cssText"===e)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{const r=e,o=void 0===t[r]?"":t[r];n.setAttribute(e,o)}n.setAttribute(Ie,"true"),o.some((e,t)=>(a=t,n.isEqualNode(e)))?o.splice(a,1):s.push(n)}),o.forEach(e=>
2e.parentNode?.removeChild(e)),s.forEach(e=>n.appendChild(e)),{oldTags:o,newTags:s}},pt=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Ie),o=r?r.split(","):[],s=[...o],a=Object.keys(t);for(const i of a){const e=t[i]||"";n.getAttribute(i)!==e&&n.setAttribute(i,e),-1===o.indexOf(i)&&o.push(i);const r=s.indexOf(i);-1!==r&&s.splice(r,1)}for(let i=s.length-1;i>=0;i-=1)n.removeAttribute(s[i]);o.length===s.length?n.removeAttribute(Ie):n.getAttribute(Ie)!==a.join(",")&&n.setAttribute(Ie,a.join(","))},ft=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:o,linkTags:s,metaTags:a,noscriptTags:i,onChangeClientState:l,scriptTags:c,styleTags:d,title:u,titleAttributes:h}=e;pt("body",r),pt("html",o),((e,t)=>{void 0!==e&&document.title!==e&&(document.title=Xe(e)),pt("title",t)})(u,h);const p={baseTag:ht("base",n),linkTags:ht("link",s),metaTags:ht("meta",a),noscriptTags:ht("noscript",i),scriptTags:ht("script",c),styleTags:ht("style",d)},f={},m={};Object.keys(p).forEach(e=>{const{newTags:t,oldTags:n}=p[e];t.length&&(f[e]=t),n.length&&(m[e]=p[e].oldTags)}),t&&t(),l(e,f,m)},mt=null,gt=e=>{mt&&cancelAnimationFrame(mt),e.defer?mt=requestAnimationFrame(()=>{ft(e,()=>{mt=null})}):(ft(e),mt=null)},vt=class extends Q.Component{constructor(){super(...arguments),U(this,"rendered",!1)}shouldComponentUpdate(e){return!Me(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=(o=e.get().map(e=>{const t={...e.props};return delete t.context,t}),{baseTag:Ge(["href"],o),bodyAttributes:Ke("bodyAttributes",o),defer:Be(o,Fe),encode:Be(o,$e),htmlAttributes:Ke("htmlAttributes",o),linkTags:Ye("link",["rel","href"],o),metaTags:Ye("meta",["name","charset","http-equiv","property","itemprop"],o),noscriptTags:Ye("noscript",["innerHTML"],o),onChangeClientState:He(o),scriptTags:Ye("script",["src","innerHTML"],o),styleTags:Ye("style",["cssText"],o),title:Ve(o),titleAttributes:Ke("titleAttributes",o),prioritizeSeoTags:Qe(o,Ue)});var o;ut.canUseDOM?gt(r):at&&(n=at(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},yt=(t=class extends Q.Component{shouldComponentUpdate(e){return!Te(Je(this.props,"helmetData"),Je(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(t=>{n={...n,[t]:e[t]}}),n}warnOnInvalidChildren(e,t){return ke(Re.some(t=>e.type===t),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Re.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),ke(!t||"string"==typeof t||Array.isArray(t)&&!t.some(e=>"string"!=typeof e),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return J.Children.forEach(e,e=>{if(!e||!e.props)return;const{children:r,...o}=e.props,s=Object.keys(o).reduce((e,t)=>(e[Le[t]||t]=o[t],e),{});let{type:a}=e;
2switch("symbol"==typeof a?a=a.toString():this.warnOnInvalidChildren(e,r),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(r,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(e,n,s,r);break;default:t=this.mapObjectTypeChildren(e,t,s,r)}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof ct)){r=new ct(r.context,!0),delete n.helmetData}return r?J.createElement(vt,{...n,context:r.value}):J.createElement(dt.Consumer,null,e=>J.createElement(vt,{...n,context:e}))}},U(t,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),t);const bt=function(){const e="undefined"!=typeof document&&document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),xt={},wt=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const e=document.querySelector("meta[property=csp-nonce]"),n=e?.nonce||e?.getAttribute("nonce");r=Promise.allSettled(t.map(e=>{if((e=function(e){return"/"+e}(e))in xt)return;xt[e]=!0;const t=e.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${r}`))return;const o=document.createElement("link");return o.rel=t?"stylesheet":bt,t||(o.as="script"),o.crossOrigin="",o.href=e,n&&o.setAttribute("nonce",n),document.head.appendChild(o),t?new Promise((t,n)=>{o.addEventListener("load",t),o.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${e}`)))}):void 0}))}function o(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(const e of t||[])"rejected"===e.status&&o(e.reason);return e().catch(o)})};let jt=0;const Et=new Map,Nt=e=>{if(Et.has(e))return;const t=setTimeout(()=>{Et.delete(e),kt({type:"REMOVE_TOAST",toastId:e})},1e6);Et.set(e,t)},Ct=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Nt(n):e.toasts.forEach(e=>{Nt(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,open:!1}:e)}}case"REMOVE_TOAST":return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},St=[];let Tt={toasts:[]};function kt(e){Tt=Ct(Tt,e),St.forEach(e=>{e(Tt)})}function Mt({...e}){const t=(jt=(jt+1)%Number.MAX_SAFE_INTEGER,jt.toString()),n=()=>kt({type:"DISMISS_TOAST",toastId:t});return kt({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:e=>{e||n()}}}),{id:t,dismiss:n,update:e=>kt({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function Ot(){const[e,t]=Q.useState(Tt);return Q.useEffect(()=>(St.push(t),()=>{const e=St.indexOf(t);e>-1&&St.splice(e,1)}),[e]),{...e,toast:Mt,dismiss:e=>kt({type:"DISMISS_TOAST",toastId:e})}}function Pt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function At(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function _t(...e){return Q.useCallback(At(...e),e)}function Rt(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>Q.createContext(e));return function(n){const r=n?.[e]||t;return Q.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=Q.createContext(r),s=n.length;function a(t){const{scope:n,children:r,...a}=t,i=n?.[e][s]||o,l=Q.useMemo(()=>a,Object.values(a));return xe.jsx(i.Provider,{value:l,children:r})}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const i=a?.[e][s]||o,l=Q.useContext(i);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Dt(r,...t)]}function Dt(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return Q.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Lt=Q.forwardRef((e,t)=>
2{const{children:n,...r}=e,o=Q.Children.toArray(n),s=o.find(Ft);if(s){const e=s.props.children,n=o.map(t=>t===s?Q.Children.count(e)>1?Q.Children.only(null):Q.isValidElement(e)?e.props.children:null:t);return xe.jsx(It,{...r,ref:t,children:Q.isValidElement(e)?Q.cloneElement(e,void 0,n):null})}return xe.jsx(It,{...r,ref:t,children:n})});Lt.displayName="Slot";var It=Q.forwardRef((e,t)=>{const{children:n,...r}=e;if(Q.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n);return Q.cloneElement(n,{...$t(r,n.props),ref:t?At(t,e):e})}return Q.Children.count(n)>1?Q.Children.only(null):null});It.displayName="SlotClone";var zt=({children:e})=>xe.jsx(xe.Fragment,{children:e});function Ft(e){return Q.isValidElement(e)&&e.type===zt}function $t(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...e)=>{s(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...s}:"className"===r&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Wt(e){const t=e+"CollectionProvider",[n,r]=Rt(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{const{scope:t,children:n}=e,r=J.useRef(null),s=J.useRef(new Map).current;return xe.jsx(o,{scope:t,itemMap:s,collectionRef:r,children:n})};a.displayName=t;const i=e+"CollectionSlot",l=J.forwardRef((e,t)=>{const{scope:n,children:r}=e,o=_t(t,s(i,n).collectionRef);return xe.jsx(Lt,{ref:o,children:r})});l.displayName=i;const c=e+"CollectionItemSlot",d="data-radix-collection-item",u=J.forwardRef((e,t)=>{const{scope:n,children:r,...o}=e,a=J.useRef(null),i=_t(t,a),l=s(c,n);return J.useEffect(()=>(l.itemMap.set(a,{ref:a,...o}),()=>{l.itemMap.delete(a)})),xe.jsx(Lt,{[d]:"",ref:i,children:r})});return u.displayName=c,[{Provider:a,Slot:l,ItemSlot:u},function(t){const n=s(e+"CollectionConsumer",t);return J.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var qt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=Q.forwardRef((e,n)=>{const{asChild:r,...o}=e,s=r?Lt:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),xe.jsx(s,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ut(e,t){e&&X.flushSync(()=>e.dispatchEvent(t))}function Bt(e){const t=Q.useRef(e);return Q.useEffect(()=>{t.current=e}),Q.useMemo(()=>(...e)=>t.current?.(...e),[])}
vendor: 1,631 bytes, line 2
2function Vt(e,t=globalThis?.document){const n=Bt(e);Q.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}var Ht,Kt="dismissableLayer.update",Gt="dismissableLayer.pointerDownOutside",Yt="dismissableLayer.focusOutside",Qt=Q.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xt=Q.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...l}=e,c=Q.useContext(Qt),[d,u]=Q.useState(null),h=d?.ownerDocument??globalThis?.document,[,p]=Q.useState({}),f=_t(t,e=>u(e)),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(g),y=d?m.indexOf(d):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,w=function(e,t=globalThis?.document){const n=Bt(e),r=Q.useRef(!1),o=Q.useRef(()=>{});return Q.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){en(Gt,n,s,{discrete:!0})};const s={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...c.branches].some(e=>e.contains(t));x&&!n&&(o?.(e),a?.(e),e.defaultPrevented||i?.())}
vendor: 4,344 bytes, line 2
2,h),j=function(e,t=globalThis?.document){const n=Bt(e),r=Q.useRef(!1);return Q.useEffect(()=>{const e=e=>{if(e.target&&!r.current){en(Yt,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...c.branches].some(e=>e.contains(t))||(s?.(e),a?.(e),e.defaultPrevented||i?.())},h);return Vt(e=>{y===c.layers.size-1&&(r?.(e),!e.defaultPrevented&&i&&(e.preventDefault(),i()))},h),Q.useEffect(()=>{if(d)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(Ht=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Jt(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Ht)}},[d,h,n,c]),Q.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Jt())},[d,c]),Q.useEffect(()=>{const e=()=>p({});return document.addEventListener(Kt,e),()=>document.removeEventListener(Kt,e)},[]),xe.jsx(qt.div,{...l,ref:f,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:Pt(e.onFocusCapture,j.onFocusCapture),onBlurCapture:Pt(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:Pt(e.onPointerDownCapture,w.onPointerDownCapture)})});Xt.displayName="DismissableLayer";var Zt=Q.forwardRef((e,t)=>{const n=Q.useContext(Qt),r=Q.useRef(null),o=_t(t,r);return Q.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),xe.jsx(qt.div,{...e,ref:o})});function Jt(){const e=new CustomEvent(Kt);document.dispatchEvent(e)}function en(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ut(o,s):o.dispatchEvent(s)}Zt.displayName="DismissableLayerBranch";var tn=Xt,nn=Zt,rn=Boolean(globalThis?.document)?Q.useLayoutEffect:()=>{},on=Q.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=Q.useState(!1);rn(()=>s(!0),[]);const a=n||o&&globalThis?.document?.body;return a?ee.createPortal(xe.jsx(qt.div,{...r,ref:t}),a):null});on.displayName="Portal";var sn=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=Q.useState(),r=Q.useRef({}),o=Q.useRef(e),s=Q.useRef("none"),a=e?"mounted":"unmounted",[i,l]=function(e,t){return Q.useReducer((e,n)=>t[e][n]??e,e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Q.useEffect(()=>{const e=an(r.current);s.current="mounted"===i?e:"none"},[i]),rn(()=>{const t=r.current,n=o.current;if(n!==e){const r=s.current,a=an(t);if(e)l("MOUNT");else if("none"===a||"none"===t?.display)l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,l]),rn(()=>{if(t){const e=e=>{const n=an(r.current).includes(e.animationName);e.target===t&&n&&X.flushSync(()=>l("ANIMATION_END"))},n=e=>{e.target===t&&(s.current=an(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:Q.useCallback(e=>{e&&(r.current=getComputedStyle(e)),n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):Q.Children.only(n),s=_t(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?Q.cloneElement(o,{ref:s}):null};function an(e){return e?.animationName||"none"}function ln({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=function({defaultProp:e,onChange:t}){const n=Q.useState(e),[r]=n,o=Q.useRef(r),s=Bt(t);return Q.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,a=s?e:r,i=Bt(n);return[a,Q.useCallback(t=>{if(s){const n="function"==typeof t?t(e):t;n!==e&&i(n)}else o(t)},[s,e,o,i])]}sn.displayName="Presence";var cn=Q.forwardRef((e,t)=>
2xe.jsx(qt.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));cn.displayName="VisuallyHidden";var dn=cn,un="ToastProvider",[hn,pn,fn]=Wt("Toast"),[mn,gn]=Rt("Toast",[fn]),[vn,yn]=mn(un),bn=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:a}=e,[i,l]=Q.useState(null),[c,d]=Q.useState(0),u=Q.useRef(!1),h=Q.useRef(!1);return n.trim(),xe.jsx(hn.Provider,{scope:t,children:xe.jsx(vn,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:c,viewport:i,onViewportChange:l,onToastAdd:Q.useCallback(()=>d(e=>e+1),[]),onToastRemove:Q.useCallback(()=>d(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:u,isClosePausedRef:h,children:a})})};bn.displayName=un;var xn="ToastViewport",wn=["F8"],jn="toast.viewportPause",En="toast.viewportResume",Nn=Q.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=wn,label:o="Notifications ({hotkey})",...s}=e,a=yn(xn,n),i=pn(n),l=Q.useRef(null),c=Q.useRef(null),d=Q.useRef(null),u=Q.useRef(null),h=_t(t,u,a.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),f=a.toastCount>0;Q.useEffect(()=>{const e=e=>{r.every(t=>e[t]||e.code===t)&&u.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r]),Q.useEffect(()=>{const e=l.current,t=u.current;if(f&&e&&t){const n=()=>
vendor: 18,941 bytes, lines 2-21
2{if(!a.isClosePausedRef.current){const e=new CustomEvent(jn);t.dispatchEvent(e),a.isClosePausedRef.current=!0}},r=()=>{if(a.isClosePausedRef.current){const e=new CustomEvent(En);t.dispatchEvent(e),a.isClosePausedRef.current=!1}},o=t=>{!e.contains(t.relatedTarget)&&r()},s=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",o),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",s),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",s),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}},[f,a.isClosePausedRef]);const m=Q.useCallback(({tabbingDirection:e})=>{const t=i().map(t=>{const n=t.ref.current,r=[n,...qn(n)];return"forwards"===e?r:r.reverse()});return("forwards"===e?t.reverse():t).flat()},[i]);return Q.useEffect(()=>{const e=u.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){const n=document.activeElement,r=t.shiftKey;if(t.target===e&&r)return void c.current?.focus();const o=m({tabbingDirection:r?"backwards":"forwards"}),s=o.findIndex(e=>e===n);Un(o.slice(s+1))?t.preventDefault():r?c.current?.focus():d.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[i,m]),xe.jsxs(nn,{ref:l,role:"region","aria-label":o.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:f?void 0:"none"},children:[f&&xe.jsx(Sn,{ref:c,onFocusFromOutsideViewport:()=>{Un(m({tabbingDirection:"forwards"}))}}),xe.jsx(hn.Slot,{scope:n,children:xe.jsx(qt.ol,{tabIndex:-1,...s,ref:h})}),f&&xe.jsx(Sn,{ref:d,onFocusFromOutsideViewport:()=>{Un(m({tabbingDirection:"backwards"}))}})]})});Nn.displayName=xn;var Cn="ToastFocusProxy",Sn=Q.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=yn(Cn,n);return xe.jsx(cn,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:e=>{const t=e.relatedTarget;!s.viewport?.contains(t)&&r()}})});Sn.displayName=Cn;var Tn="Toast",kn=Q.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...a}=e,[i=!0,l]=ln({prop:r,defaultProp:o,onChange:s});return xe.jsx(sn,{present:n||i,children:xe.jsx(Pn,{open:i,...a,ref:t,onClose:()=>l(!1),onPause:Bt(e.onPause),onResume:Bt(e.onResume),onSwipeStart:Pt(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Pt(e.onSwipeMove,e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)}),onSwipeCancel:Pt(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Pt(e.onSwipeEnd,e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),l(!1)})})})});kn.displayName=Tn;var[Mn,On]=mn(Tn,{onClose(){}}),Pn=Q.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:a,onEscapeKeyDown:i,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:u,onSwipeCancel:h,onSwipeEnd:p,...f}=e,m=yn(Tn,n),[g,v]=Q.useState(null),y=_t(t,e=>v(e)),b=Q.useRef(null),x=Q.useRef(null),w=o||m.duration,j=Q.useRef(0),E=Q.useRef(w),N=Q.useRef(0),{onToastAdd:C,onToastRemove:S}=m,T=Bt(()=>{const e=g?.contains(document.activeElement);e&&m.viewport?.focus(),a()}),k=Q.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(N.current),j.current=(new Date).getTime(),N.current=window.setTimeout(T,e))},[T]);Q.useEffect(()=>{const e=m.viewport;if(e){const t=()=>{k(E.current),c?.()},n=()=>{const e=(new Date).getTime()-j.current;E.current=E.current-e,window.clearTimeout(N.current),l?.()};return e.addEventListener(jn,n),e.addEventListener(En,t),()=>{e.removeEventListener(jn,n),e.removeEventListener(En,t)}}},[m.viewport,w,l,c,k]),Q.useEffect(()=>{s&&!m.isClosePausedRef.current&&k(w)},[s,w,m.isClosePausedRef,k]),Q.useEffect(()=>(C(),()=>S()),[C,S]);const M=Q.useMemo(()=>g?Fn(g):null,[g]);return m.viewport?xe.jsxs(xe.Fragment,{children:[M&&xe.jsx(An,{__scopeToast:n,role:"status","aria-live":"foreground"===r?"assertive":"polite","aria-atomic":!0,children:M}),xe.jsx(Mn,{scope:n,onClose:T,children:X.createPortal(xe.jsx(hn.ItemSlot,{scope:n,children:xe.jsx(tn,{asChild:!0,onEscapeKeyDown:Pt(i,()=>{m.isFocusedToastEscapeKeyDownRef.current||T(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:xe.jsx(qt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":m.swipeDirection,...f,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Pt(e.onKeyDown,e=>{"Escape"===e.key&&(i?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,T()))}),onPointerDown:Pt(e.onPointerDown,e=>{0===e.button&&(b.current={x:e.clientX,y:e.clientY})}),onPointerMove:Pt(e.onPointerMove,e=>{if(!b.current)return;const t=e.clientX-b.current.x,n=e.clientY-b.current.y,r=Boolean(x.current),o=["left","right"].includes(m.swipeDirection),s=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,a=o?s(0,t):0,i=o?0:s(0,n),l="touch"===e.pointerType?10:2,c={x:a,y:i},h={originalEvent:e,delta:c};r?(x.current=c,$n("toast.swipeMove",u,h,{discrete:!1})):Wn(c,m.swipeDirection,l)?(x.current=c,$n("toast.swipeStart",d,h,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(b.current=null)}),onPointerUp:Pt(e.onPointerUp,e=>{const t=x.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),x.current=null,b.current=null,t){const n=e.currentTarget,r={originalEvent:e,delta:t};Wn(t,m.swipeDirection,m.swipeThreshold)?$n("toast.swipeEnd",p,r,{discrete:!0}):$n("toast.swipeCancel",h,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),An=e=>{const{__scopeToast:t,children:n,...r}=e,o=yn(Tn,t),[s,a]=Q.useState(!1),[i,l]=Q.useState(!1);return function(e=()=>{}){const t=Bt(e);rn(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>a(!0)),Q.useEffect(()=>{const e=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(e)},[]),i?null:xe.jsx(on,{asChild:!0,children:xe.jsx(cn,{...r,children:s&&xe.jsxs(xe.Fragment,{children:[o.label," ",n]})})})},_n=Q.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return xe.jsx(qt.div,{...r,ref:t})});_n.displayName="ToastTitle";var Rn=Q.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return xe.jsx(qt.div,{...r,ref:t})});Rn.displayName="ToastDescription";var Dn=Q.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?xe.jsx(zn,{altText:n,asChild:!0,children:xe.jsx(In,{...r,ref:t})}):null});Dn.displayName="ToastAction";var Ln="ToastClose",In=Q.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=On(Ln,n);return xe.jsx(zn,{asChild:!0,children:xe.jsx(qt.button,{type:"button",...r,ref:t,onClick:Pt(e.onClick,o.onClose)})})});In.displayName=Ln;var zn=Q.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return xe.jsx(qt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Fn(e){const t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...Fn(e))}}),t}function $n(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ut(o,s):o.dispatchEvent(s)}var Wn=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return"left"===t||"right"===t?s&&r>n:!s&&o>n};function qn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Un(e){const t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var Bn=bn,Vn=Nn,Hn=kn,Kn=_n,Gn=Rn,Yn=Dn,Qn=In;function Xn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Xn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Zn(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Xn(e))&&(r&&(r+=" "),r+=t);return r}const Jn=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,er=Zn,tr=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return er(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(e=>{const t=null==n?void 0:n[e],r=null==s?void 0:s[e];if(null===t)return null;const a=Jn(t)||Jn(r);return o[e][a]}),i=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...i}[t]):{...s,...i}[t]===n})?[...e,n,r]:e},[]);return er(e,a,l,null==n?void 0:n.class,null==n?void 0:n.className)},nr=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(); 3/** 4 * @license lucide-react v0.462.0 - ISC 5 * 6 * This source code is licensed under the ISC license. 7 * See the LICENSE file in the root directory of this source tree. 8 */ 9var rr={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"}; 10/** 11 * @license lucide-react v0.462.0 - ISC 12 * 13 * This source code is licensed under the ISC license. 14 * See the LICENSE file in the root directory of this source tree. 15 */const or=Q.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},l)=>Q.createElement("svg",{ref:l,...rr,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:nr("lucide",o),...i},[...a.map(([e,t])=>Q.createElement(e,t)),...Array.isArray(s)?s:[s]])),sr=(e,t)=>{const n=Q.forwardRef(({className:n,...r},o)=>{return Q.createElement(or,{ref:o,iconNode:t,className:nr(`lucide-${s=e,s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var s});return n.displayName=`${e}`,n},ar=sr("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),ir=sr("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]),lr=sr("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),cr=sr("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]),dr=sr("MapPin",[["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"}]]),ur=sr("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),hr=sr("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]),pr=sr("RefreshCw",[["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"}]]),fr=sr("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),mr=sr("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),gr=sr("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),vr=e=>{const t=wr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),yr(n,t)||xr(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},yr=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?yr(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const s=e.join("-");return t.validators.find(({validator:e})=>e(s))?.classGroupId},br=/^\[(.+)\]$/,xr=e=>{if(br.test(e)){const t=br.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},wr=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Cr(Object.entries(e.classGroups),n).forEach(([e,n])=>{jr(n,r,e,t)}),r},jr=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Er(t,e)).classGroupId=n)}if("function"==typeof e)return Nr(e)?void jr(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{jr(o,Er(t,e),n,r)})})},Er=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Nr=e=>e.isThemeGetter,Cr=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,Sr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Tr=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],s=t.length,a=e=>{const n=[];let a,i=0,l=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===i){if(c===o&&(r||e.slice(u,u+s)===t)){n.push(e.slice(l,u)),l=u+s;continue}if("/"===c){a=u;continue}}"["===c?i++:"]"===c&&i--}const c=0===n.length?e:e.substring(l),d=c.startsWith("!");return{modifiers:n,hasImportantModifier:d,baseClassName:d?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}};return n?e=>n({className:e,parseClassName:a}):a},kr=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},Mr=/\s+/; 16/** 17 * @license lucide-react v0.462.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */function Or(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Pr(e))&&(r&&(r+=" "),r+=t);return r}const Pr=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Pr(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ar(e,...t){let n,r,o,s=function(i){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Sr(e.cacheSize),parseClassName:Tr(e),...vr(e)}))(l),r=n.cache.get,o=n.cache.set,s=a,a(i)};function a(e){const t=r(e);if(t)return t;const s=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],a=e.trim().split(Mr);let i="";for(let l=a.length-1;l>=0;l-=1){const e=a[l],{modifiers:t,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:u}=n(e);let h=Boolean(u),p=r(h?d.substring(0,u):d);if(!p){if(!h){i=e+(i.length>0?" "+i:i);continue}if(p=r(d),!p){i=e+(i.length>0?" "+i:i);continue}h=!1}const f=kr(t).join(":"),m=c?f+"!":f,g=m+p;if(s.includes(g))continue;s.push(g);const v=o(p,h);for(let n=0;n<v.length;++n){const e=v[n];s.push(m+e)}i=e+(i.length>0?" "+i:i)}return i})(e,n);return o(e,s),s}return function(){return s(Or.apply(null,arguments))}}const _r=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Rr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Dr=/^\d+\/\d+$/,Lr=new Set(["px","full","screen"]),Ir=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zr=/\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$/,Fr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$r=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Wr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qr=e=>Br(e)||Lr.has(e)||Dr.test(e),Ur=e=>ro(e,"length",oo),Br=e=>Boolean(e)&&!Number.isNaN(Number(e)),Vr=e=>ro(e,"number",Br),Hr=e=>Boolean(e)&&Number.isInteger(Number(e)),Kr=e=>e.endsWith("%")&&Br(e.slice(0,-1)),Gr=e=>Rr.test(e),Yr=e=>Ir.test(e),Qr=new Set(["length","size","percentage"]),Xr=e=>ro(e,Qr,so),Zr=e=>ro(e,"position",so),Jr=new Set(["image","url"]),eo=e=>ro(e,Jr,io),to=e=>ro(e,"",ao),no=()=>!0,ro=(e,t,n)=>{const r=Rr.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},oo=e=>zr.test(e)&&!Fr.test(e),so=()=>!1,ao=e=>$r.test(e),io=e=>Wr.test(e),lo=Ar(()=>{const e=_r("colors"),t=_r("spacing"),n=_r("blur"),r=_r("brightness"),o=_r("borderColor"),s=_r("borderRadius"),a=_r("borderSpacing"),i=_r("borderWidth"),l=_r("contrast"),c=_r("grayscale"),d=_r("hueRotate"),u=_r("invert"),h=_r("gap"),p=_r("gradientColorStops"),f=_r("gradientColorStopPositions"),m=_r("inset"),g=_r("margin"),v=_r("opacity"),y=_r("padding"),b=_r("saturate"),x=_r("scale"),w=_r("sepia"),j=_r("skew"),E=_r("space"),N=_r("translate"),C=()=>["auto",Gr,t],S=()=>[Gr,t],T=()=>["",qr,Ur],k=()=>["auto",Br,Gr],M=()=>["","0",Gr],O=()=>[Br,Gr];return{cacheSize:500,separator:":",theme:{colors:[no],spacing:[qr,
vendor: 7,093 bytes, line 21
21Ur],blur:["none","",Yr,Gr],brightness:O(),borderColor:[e],borderRadius:["none","","full",Yr,Gr],borderSpacing:S(),borderWidth:T(),contrast:O(),grayscale:M(),hueRotate:O(),invert:M(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[Kr,Ur],inset:C(),margin:C(),opacity:O(),padding:S(),saturate:O(),scale:O(),sepia:M(),skew:O(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",Gr]}],container:["container"],columns:[{columns:[Yr]}],"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"],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:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Gr]}],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:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Hr,Gr]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Gr]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",Hr,Gr]}],"grid-cols":[{"grid-cols":[no]}],"col-start-end":[{col:["auto",{span:["full",Hr,Gr]},Gr]}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":[no]}],"row-start-end":[{row:["auto",{span:[Hr,Gr]},Gr]}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Gr]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Gr]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Gr,t]}],"min-w":[{"min-w":[Gr,t,"min","max","fit"]}],"max-w":[{"max-w":[Gr,t,"none","full","min","max","fit","prose",{screen:[Yr]},Yr]}],h:[{h:[Gr,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Gr,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Gr,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Gr,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Yr,Ur]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Vr]}],"font-family":[{font:[no]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Gr]}],"line-clamp":[{"line-clamp":["none",Br,Vr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",qr,Gr]}],"list-image":[{"list-image":["none",Gr]}],"list-style-type":[{list:["none","disc","decimal",Gr]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",qr,Ur]}],"underline-offset":[{"underline-offset":["auto",qr,Gr]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Gr]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Gr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Zr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},eo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}
vendor: 4,305 bytes, line 21
21],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[qr,Gr]}],"outline-w":[{outline:[qr,Ur]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[qr,Ur]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Yr,to]}],"shadow-color":[{shadow:[no]}],opacity:[{opacity:[v]}],"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-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Yr,Gr]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Gr]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",Gr]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",Gr]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[Hr,Gr]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Gr]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","
21none","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",Gr]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",Gr]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[qr,Ur,Vr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}});function co(...e){return lo(Zn(e))}const uo=Bn,ho=Q.forwardRef(({className:e,...t},n)=>xe.jsx(Vn,{ref:n,className:co("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));ho.displayName=Vn.displayName;const po=tr("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),fo=Q.forwardRef(({className:e,variant:t,...n},r)=>xe.jsx(Hn,{ref:r,className:co(po({variant:t}),e),...n}));fo.displayName=Hn.displayName;Q.forwardRef(({className:e,...t},n)=>xe.jsx(Yn,{ref:n,className:co("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t})).displayName=Yn.displayName;const mo=Q.forwardRef(({className:e,...t},n)=>xe.jsx(Qn,{ref:n,className:co("absolute right-2 top-2 rounded-md p-1 text-foreground
21/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:xe.jsx(gr,{className:"h-4 w-4"})}));mo.displayName=Qn.displayName;const go=Q.forwardRef(({className:e,...t},n)=>xe.jsx(Kn,{ref:n,className:co("text-sm font-semibold",e),...t}));go.displayName=Kn.displayName;const vo=Q.forwardRef(({className:e,...t},n)=>xe.jsx(Gn,{ref:n,className:co("text-sm opacity-90",e),...t}));function yo(){const{toasts:e}=Ot();return xe.jsxs(uo,{children:[e.map(function({id:e,title:t,description:n,action:r,...o}){return xe.jsxs(fo,{...o,children:[xe.jsxs("div",{className:"grid gap-1",children:[t&&xe.jsx(go,{children:t}),n&&xe.jsx(vo,{children:n})]}),r,xe.jsx(mo,{})]},e)}),xe.jsx(ho,{})]})}vo.displayName=Gn.displayName;var bo=["light","dark"],xo=Q.createContext(void 0),wo={setTheme:e=>{},themes:[]};Q.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:a,attrs:i,nonce:l})=>{let c="system"===s,d="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${i.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,u=o?bo.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(e,t=!1,r=!0)=>{let s=a?a[e]:e,i=t?e+"|| ''":`'${s}'`,l="";return o&&r&&!t&&bo.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||s?`c.add(${i})`:"null":s&&(l+=`d[s](n,${i})`),l},p=e?`!function(){${d}${h(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='(prefers-color-scheme: dark)',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${h(a?"x[e]":"e",!0)}}${c?"":"else{"+h(s,!1,!1)+"}"}${u}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${h(a?"x[e]":"e",!0)}}else{${h(s,!1,!1)};}${u}}catch(t){}}();`;return Q.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var jo=Array(12).fill(0),Eo=({visible:e})=>J.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},J.createElement("div",{className:"sonner-spinner"},jo.map((e,t)=>J.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),No=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Co=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),So=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),To=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ko=1,Mo=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
21{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:ko++,s=this.toasts.find(e=>e.id===o),a=void 0===e.dismissible||e.dismissible;return s?this.toasts=this.toasts.map(t=>t.id===o?(this.publish({...t,...e,id:o,title:n}),{...t,...e,id:o,dismissible:a,title:n}):t):this.addToast({title:n,...r,dismissible:a,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let r=e instanceof Promise?e:e(),o=void 0!==n;return r.then(async e=>{if(Oo(e)&&!e.ok){o=!1;let r="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,s="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description;this.create({id:n,type:"error",message:r,description:s})}else if(void 0!==t.success){o=!1;let r="function"==typeof t.success?await t.success(e):t.success,s="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"success",message:r,description:s})}}).catch(async e=>{if(void 0!==t.error){o=!1;let r="function"==typeof t.error?await t.error(e):t.error,s="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"error",message:r,description:s})}}).finally(()=>{var e;o&&(this.dismiss(n),n=void 0),null==(e=t.finally)||e.call(t)}),n},this.custom=(e,t)=>{let n=(null==t?void 0:t.id)||ko++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},Oo=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,Po=(e,t)=>{let n=(null==t?void 0:t.id)||ko++;return Mo.addToast({title:e,...t,id:n}),n};function Ao(e){return void 0!==e.label}Object.assign(Po,{success:Mo.success,info:Mo.info,warning:Mo.warning,error:Mo.error,custom:Mo.custom,message:Mo.message,promise:Mo.promise,dismiss:Mo.dismiss,loading:Mo.loading},{getHistory:()=>Mo.toasts}),function(e,{insertAt:t}={}){if("undefined"==typeof document)return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(':where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
21left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
21:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n');var _o=3,Ro=14;function Do(...e){return e.filter(Boolean).join(" ")}var Lo=e=>{var t,n,r,o,s,a,i,l,c,d;let{invert:u,toast:h,unstyled:p,interacting:f,setHeights:m,visibleToasts:g,heights:v,index:y,toasts:b,expanded:x,removeToast:w,defaultRichColors:j,closeButton:E,style:N,cancelButtonStyle:C,actionButtonStyle:S,className:T="",descriptionClassName:k="",duration:M,position:O,gap:P,loadingIcon:A,expandByDefault:_,classNames:R,icons:D,closeButtonAriaLabel:L="Close toast",pauseWhenPageIsHidden:I,cn:z}=e,[F,$]=J.useState(!1),[W,q]=J.useState(!1),[U,B]=J.useState(!1),[V,H]=J.useState(!1),[K,G]=J.useState(0),[Y,Q]=J.useState(0),X=J.useRef(null),Z=J.useRef(null),ee=0===y,te=y+1<=g,ne=h.type,re=!1!==h.dism
21issible,oe=h.className||"",se=h.descriptionClassName||"",ae=J.useMemo(()=>v.findIndex(e=>e.toastId===h.id)||0,[v,h.id]),ie=J.useMemo(()=>{var e;return null!=(e=h.closeButton)?e:E},[h.closeButton,E]),le=J.useMemo(()=>h.duration||M||4e3,[h.duration,M]),ce=J.useRef(0),de=J.useRef(0),ue=J.useRef(0),he=J.useRef(null),[pe,fe]=O.split("-"),me=J.useMemo(()=>v.reduce((e,t,n)=>n>=ae?e:e+t.height,0),[v,ae]),ge=(()=>{let[e,t]=J.useState(document.hidden);return J.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),ve=h.invert||u,ye="loading"===ne;de.current=J.useMemo(()=>ae*P+me,[ae,me]),J.useEffect(()=>{$(!0)},[]),J.useLayoutEffect(()=>{if(!F)return;let e=Z.current,t=e.style.height;e.style.height="auto";let n=e.getBoundingClientRect().height;e.style.height=t,Q(n),m(e=>e.find(e=>e.toastId===h.id)?e.map(e=>e.toastId===h.id?{...e,height:n}:e):[{toastId:h.id,height:n,position:h.position},...e])},[F,h.title,h.description,m,h.id]);let be=J.useCallback(()=>{q(!0),G(de.current),m(e=>e.filter(e=>e.toastId!==h.id)),setTimeout(()=>{w(h)},200)},[h,w,m,de]);return J.useEffect(()=>{if(h.promise&&"loading"===ne||h.duration===1/0||"loading"===h.type)return;let e,t=le;return x||f||I&&ge?(()=>{if(ue.current<ce.current){let e=(new Date).getTime()-ce.current;t-=e}ue.current=(new Date).getTime()})():t!==1/0&&(ce.current=(new Date).getTime(),e=setTimeout(()=>{var e;null==(e=h.onAutoClose)||e.call(h,h),be()},t)),()=>clearTimeout(e)},[x,f,_,h,le,be,h.promise,ne,I,ge]),J.useEffect(()=>{let e=Z.current;if(e){let t=e.getBoundingClientRect().height;return Q(t),m(e=>[{toastId:h.id,height:t,position:h.position},...e]),()=>m(e=>e.filter(e=>e.toastId!==h.id))}},[m,h.id]),J.useEffect(()=>{h.delete&&be()},[be,h.delete]),J.createElement("li",{"aria-live":h.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:Z,className:z(T,oe,null==R?void 0:R.toast,null==(t=null==h?void 0:h.classNames)?void 0:t.toast,null==R?void 0:R.default,null==R?void 0:R[ne],null==(n=null==h?void 0:h.classNames)?void 0:n[ne]),"data-sonner-toast":"","data-rich-colors":null!=(r=h.richColors)?r:j,"data-styled":!(h.jsx||h.unstyled||p),"data-mounted":F,"data-promise":!!h.promise,"data-removed":W,"data-visible":te,"data-y-position":pe,"data-x-position":fe,"data-index":y,"data-front":ee,"data-swiping":U,"data-dismissible":re,"data-type":ne,"data-invert":ve,"data-swipe-out":V,"data-expanded":!!(x||_&&F),style:{"--index":y,"--toasts-before":y,"--z-index":b.length-y,"--offset":`${W?K:de.current}px`,"--initial-height":_?"auto":`${Y}px`,...N,...h.style},onPointerDown:e=>{ye||!re||(X.current=new Date,G(de.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(B(!0),he.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n,r;if(V||!re)return;he.current=null;let o=Number((null==(e=Z.current)?void 0:e.style.getPropertyValue("--swipe-amount").replace("px",""))||0),s=(new Date).getTime()-(null==(t=X.current)?void 0:t.getTime()),a=Math.abs(o)/s;if(Math.abs(o)>=20||a>.11)return G(de.current),null==(n=h.onDismiss)||n.call(h,h),be(),void H(!0);null==(r=Z.current)||r.style.setProperty("--swipe-amount","0px"),B(!1)},onPointerMove:e=>{var t;if(!he.current||!re)return;let n=e.clientY-he.current.y,r=e.clientX-he.current.x,o=("top"===pe?Math.min:Math.max)(0,n),s="touch"===e.pointerType?10:2;Math.abs(o)>s?null==(t=Z.current)||t.style.setProperty("--swipe-amount",`${n}px`):Math.abs(r)>s&&(he.current=null)}},ie&&!h.jsx?J.createElement("button",{"aria-label":L,"data-disabled":ye,"data-close-button":!0,onClick:ye||!re?()=>{}:()=>{var e;be(),null==(e=h.onDismiss)||e.call(h,h)},className:z(null==R?void 0:R.closeButton,null==(o=null==h?void 0:h.classNames)?void 0:o.closeButton)},J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},J.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),J.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,h.jsx||J.isValidElement(h.title)?h.jsx||h.title:J.createElement(J.Fragment,null,ne||h.icon||h.promise?J.createElement("div",{"data-icon":"",className:z(null==R?void 0:R.icon,null==(s=null==h?void 0:h.classNames)?void 0:s.icon)},h.promise||"loading"===h.type&&!h.icon?h.icon||(null!=D&&D.loading?J.createElement("div",{className:"sonner-loader","data-visible":"loading"===ne},D.loading):A?J.createElement("div",{className:"sonner-loader","data-visible":"loading"===ne},A):J.createElement(Eo,{visible:"loading"===ne})):null,"loading"!==h.type?h.icon||(null==D?void 0:D[ne])||(e=>{switch(e){case"success":return No;case"info":return So;case"warning":return Co;case"error":return To;default:return null}})(ne):null):null,J.createElement("div",{"data-content":"",className:z(null==R?void 0:R.content,null==(a=null==h?void 0:h.classNames)?void 0:a.content)},J.createElement("div",{"data-title":"",className:z(null==R?void 0:R.title,null==(i=null==h?void 0:h.classNames)?void 0:i.title)},h.title),h.description?J.createElement("div",{"data-description":"",className:z(k,se,null==R?void 0:R.description,null==(l=null==h?void 0:h.classNames)?void 0:l.description)},h.description):null),J.isValidElement(h.cancel)?h.cancel:h.cancel&&Ao(h.cancel)?J.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||C,onClick:e=>{var t,n;Ao(h.cancel)&&re&&(null==(n=(t=h.cancel).onClick)||n.call(t,e),be())},className:z(null==R?void 0:R.cancelButton,null==(c=null==h?void 0:h.classNames)?void 0:c.cancelButton)},h.cancel.label):null,J.isValidElement(h.action)?h.action:h.action&&Ao(h.action)?J.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||S,onClick:e=>{var t,n;Ao(h.action)&&(e.defaultPrevented||(null==(n=(t=h.action).onClick)||n.call(t,e),be()))},className:z(null==R?void 0:R.actionButton,null==(d=null==h?void 0:h.classNames)?void 0:d.actionButton)},h.action.label):null))};function Io(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}var zo=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:s,className:a,offset:i,theme:l="light",richColors:c,duration:d,style:u,visibleToasts:h=_o,toastOptions:p,dir:f=Io(),gap:m=Ro,loadingIcon:g,icons:v,containerAriaLabel:y="Notifications",pauseWhenPageIsHidden:b,cn:x=Do}=e,[w,j]=J.useState([]),E=J.useMemo(()=>Array.from(new Set([n].concat(w.filter(e=>e.position).map(e=>e.position)))),[w,n]),[N,C]=J.useState([]),[S,T]=J.useState(!1),[k,M]=J.useState(!1),[O,P]=J.useState("system"!==l?l:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
21k":"light"),A=J.useRef(null),_=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=J.useRef(null),D=J.useRef(!1),L=J.useCallback(e=>{var t;null!=(t=w.find(t=>t.id===e.id))&&t.delete||Mo.dismiss(e.id),j(t=>t.filter(({id:t})=>t!==e.id))},[w]);return J.useEffect(()=>Mo.subscribe(e=>{e.dismiss?j(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t)):setTimeout(()=>{ee.flushSync(()=>{j(t=>{let n=t.findIndex(t=>t.id===e.id);return-1!==n?[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]:[e,...t]})})})}),[]),J.useEffect(()=>{"system"===l?("system"===l&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?P("dark"):P("light")),"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:e})=>{P(e?"dark":"light")})):P(l)},[l]),J.useEffect(()=>{w.length<=1&&T(!1)},[w]),J.useEffect(()=>{let e=e=>{var t,n;r.every(t=>e[t]||e.code===t)&&(T(!0),null==(t=A.current)||t.focus()),"Escape"===e.code&&(document.activeElement===A.current||null!=(n=A.current)&&n.contains(document.activeElement))&&T(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r]),J.useEffect(()=>{if(A.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,D.current=!1)}},[A.current]),w.length?J.createElement("section",{"aria-label":`${y} ${_}`,tabIndex:-1},E.map((e,n)=>{var r;let[l,y]=e.split("-");return J.createElement("ol",{key:e,dir:"auto"===f?Io():f,tabIndex:-1,ref:A,className:a,"data-sonner-toaster":!0,"data-theme":O,"data-y-position":l,"data-x-position":y,style:{"--front-toast-height":`${(null==(r=N[0])?void 0:r.height)||0}px`,"--offset":"number"==typeof i?`${i}px`:i||"32px","--width":"356px","--gap":`${m}px`,...u},onBlur:e=>{D.current&&!e.currentTarget.contains(e.relatedTarget)&&(D.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||D.current||(D.current=!0,R.current=e.relatedTarget)},onMouseEnter:()=>T(!0),onMouseMove:()=>T(!0),onMouseLeave:()=>{k||T(!1)},onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||M(!0)},onPointerUp:()=>M(!1)},w.filter(t=>!t.position&&0===n||t.position===e).map((n,r)=>{var a,i;return J.createElement(Lo,{key:n.id,icons:v,index:r,toast:n,defaultRichColors:c,duration:null!=(a=null==p?void 0:p.duration)?a:d,className:null==p?void 0:p.className,descriptionClassName:null==p?void 0:p.descriptionClassName,invert:t,visibleToasts:h,closeButton:null!=(i=null==p?void 0:p.closeButton)?i:s,interacting:k,position:e,style:null==p?void 0:p.style,unstyled:null==p?void 0:p.unstyled,classNames:null==p?void 0:p.classNames,cancelButtonStyle:null==p?void 0:p.cancelButtonStyle,actionButtonStyle:null==p?void 0:p.actionButtonStyle,removeToast:L,toasts:w.filter(e=>e.position==n.position),heights:N.filter(e=>e.position==n.position),setHeights:C,expandByDefault:o,gap:m,loadingIcon:g,expanded:S,pauseWhenPageIsHidden:b,cn:x})}))})):null};const Fo=({...e})=>{const{theme:t="system"}=null!=(n=Q.useContext(xo))?n:wo;var n;return xe.jsx(zo,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};function $o(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return Q.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Wo,qo="dismissableLayer.update",Uo="dismissableLayer.pointerDownOutside",Bo="dismissableLayer.focusOutside",Vo=Q.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ho=Q.forwardRef((e,t)=>
vendor: 1,178 bytes, line 21
21{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...l}=e,c=Q.useContext(Vo),[d,u]=Q.useState(null),h=d?.ownerDocument??globalThis?.document,[,p]=Q.useState({}),f=_t(t,e=>u(e)),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(g),y=d?m.indexOf(d):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,w=function(e,t=globalThis?.document){const n=Bt(e),r=Q.useRef(!1),o=Q.useRef(()=>{});return Q.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Go(Uo,n,s,{discrete:!0})};const s={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...c.branches].some(e=>e.contains(t));x&&!n&&(o?.(e),a?.(e),e.defaultPrevented||i?.())}
vendor: 5,413 bytes, line 21
21,h),j=function(e,t=globalThis?.document){const n=Bt(e),r=Q.useRef(!1);return Q.useEffect(()=>{const e=e=>{if(e.target&&!r.current){Go(Bo,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...c.branches].some(e=>e.contains(t))||(s?.(e),a?.(e),e.defaultPrevented||i?.())},h);return Vt(e=>{y===c.layers.size-1&&(r?.(e),!e.defaultPrevented&&i&&(e.preventDefault(),i()))},h),Q.useEffect(()=>{if(d)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(Wo=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Ko(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Wo)}},[d,h,n,c]),Q.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Ko())},[d,c]),Q.useEffect(()=>{const e=()=>p({});return document.addEventListener(qo,e),()=>document.removeEventListener(qo,e)},[]),xe.jsx(qt.div,{...l,ref:f,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:Pt(e.onFocusCapture,j.onFocusCapture),onBlurCapture:Pt(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:Pt(e.onPointerDownCapture,w.onPointerDownCapture)})});Ho.displayName="DismissableLayer";function Ko(){const e=new CustomEvent(qo);document.dispatchEvent(e)}function Go(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ut(o,s):o.dispatchEvent(s)}Q.forwardRef((e,t)=>{const n=Q.useContext(Vo),r=Q.useRef(null),o=_t(t,r);return Q.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),xe.jsx(qt.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var Yo=te["useId".toString()]||(()=>{}),Qo=0;function Xo(e){const[t,n]=Q.useState(Yo());return rn(()=>{n(e=>e??String(Qo++))},[e]),t?`radix-${t}`:""}const Zo=["top","right","bottom","left"],Jo=Math.min,es=Math.max,ts=Math.round,ns=Math.floor,rs=e=>({x:e,y:e}),os={left:"right",right:"left",bottom:"top",top:"bottom"},ss={start:"end",end:"start"};function as(e,t,n){return es(e,Jo(t,n))}function is(e,t){return"function"==typeof e?e(t):e}function ls(e){return e.split("-")[0]}function cs(e){return e.split("-")[1]}function ds(e){return"x"===e?"y":"x"}function us(e){return"y"===e?"height":"width"}function hs(e){return["top","bottom"].includes(ls(e))?"y":"x"}function ps(e){return ds(hs(e))}function fs(e){return e.replace(/start|end/g,e=>ss[e])}function ms(e){return e.replace(/left|right|bottom|top/g,e=>os[e])}function gs(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function vs(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ys(e,t,n){let{reference:r,floating:o}=e;const s=hs(t),a=ps(t),i=us(a),l=ls(t),c="y"===s,d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,h=r[i]/2-o[i]/2;let p;switch(l){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(cs(t)){case"start":p[a]-=h*(n&&c?-1:1);break;case"end":p[a]+=h*(n&&c?-1:1)}return p}async function bs(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:p=0}=is(t,e),f=gs(p),m=i[h?"floating"===u?"reference":"floating":u],g=vs(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(m)))||n?m:m.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:l})),v="floating"===u?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==s.getOffsetParent?void 0:s.getOffsetParent(i.floating)),b=await(null==s.isElement?void 0:s.isElement(y))&&await(null==s.getScale?void 0:s.getScale(y))||{x:1,y:1},x=vs(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-x.top+f.top)/b.y,bottom:(x.bottom-g.bottom+f.bottom)/b.y,left:(g.left-x.left+f.left)/b.x,right:(x.right-g.right+f.right)/b.x}}function xs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ws(e){return Zo.some(t=>e[t]>=0)}function js(){return"undefined"!=typeof window}function Es(e){return Ss(e)?(e.nodeName||"").toLowerCase():"#document"}function Ns(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Cs(e){var t;return null==(t=(Ss(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ss(e){return!!js()&&(e instanceof Node||e instanceof Ns(e).Node)}function Ts(e){return!!js()&&(e instanceof Element||e instanceof Ns(e).Element)}function ks(e){return!!js()&&(e instanceof HTMLElement||e instanceof Ns(e).HTMLElement)}function Ms(e){return!(!js()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ns(e).ShadowRoot)}function Os(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ls(e);
vendor: 6,876 bytes, line 21
21return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ps(e){return["table","td","th"].includes(Es(e))}function As(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(n){return!1}})}function _s(e){const t=Rs(),n=Ts(e)?Ls(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function Rs(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ds(e){return["html","body","#document"].includes(Es(e))}function Ls(e){return Ns(e).getComputedStyle(e)}function Is(e){return Ts(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zs(e){if("html"===Es(e))return e;const t=e.assignedSlot||e.parentNode||Ms(e)&&e.host||Cs(e);return Ms(t)?t.host:t}function Fs(e){const t=zs(e);return Ds(t)?e.ownerDocument?e.ownerDocument.body:e.body:ks(t)&&Os(t)?t:Fs(t)}function $s(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Fs(e),s=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Ns(o);if(s){const e=Ws(a);return t.concat(a,a.visualViewport||[],Os(o)?o:[],e&&n?$s(e):[])}return t.concat(o,$s(o,[],n))}function Ws(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qs(e){const t=Ls(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ks(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=ts(n)!==s||ts(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function Us(e){return Ts(e)?e:e.contextElement}function Bs(e){const t=Us(e);if(!ks(t))return rs(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=qs(t);let a=(s?ts(n.width):n.width)/r,i=(s?ts(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),i&&Number.isFinite(i)||(i=1),{x:a,y:i}}const Vs=rs(0);function Hs(e){const t=Ns(e);return Rs()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Vs}function Ks(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),s=Us(e);let a=rs(1);t&&(r?Ts(r)&&(a=Bs(r)):a=Bs(e));const i=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ns(e))&&t}(s,n,r)?Hs(s):rs(0);let l=(o.left+i.x)/a.x,c=(o.top+i.y)/a.y,d=o.width/a.x,u=o.height/a.y;if(s){const e=Ns(s),t=r&&Ts(r)?Ns(r):r;let n=e,o=Ws(n);for(;o&&r&&t!==n;){const e=Bs(o),t=o.getBoundingClientRect(),r=Ls(o),s=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=s,c+=a,n=Ns(o),o=Ws(n)}}return vs({width:d,height:u,x:l,y:c})}function Gs(e,t){const n=Is(e).scrollLeft;return t?t.left+n:Ks(Cs(e)).left+n}function Ys(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ns(e),r=Cs(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,l=0;if(o){s=o.width,a=o.height;const e=Rs();(!e||e&&"fixed"===t)&&(i=o.offsetLeft,l=o.offsetTop)}return{width:s,height:a,x:i,y:l}}(e,n);else if("document"===t)r=function(e){const t=Cs(e),n=Is(e),r=e.ownerDocument.body,o=es(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=es(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Gs(e);const i=-n.scrollTop;return"rtl"===Ls(r).direction&&(a+=es(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}(Cs(e));else if(Ts(t))r=function(e,t){const n=Ks(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ks(e)?Bs(e):rs(1);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:o*s.x,y:r*s.y}}(t,n);else{const n=Hs(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return vs(r)}function Qs(e,t){const n=zs(e);return!(n===t||!Ts(n)||Ds(n))&&("fixed"===Ls(n).position||Qs(n,t))}function Xs(e,t,n){const r=ks(t),o=Cs(t),s="fixed"===n,a=Ks(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const l=rs(0);if(r||!r&&!s)if(("body"!==Es(t)||Os(o))&&(i=Is(t)),r){const e=Ks(t,!0,s,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Gs(o));let c=0,d=0;if(o&&!r&&!s){const e=o.getBoundingClientRect();d=e.top+i.scrollTop,c=e.left+i.scrollLeft-Gs(o,e)}return{x:a.left+i.scrollLeft-l.x-c,y:a.top+i.scrollTop-l.y-d,width:a.width,height:a.height}}function Zs(e){return"static"===Ls(e).position}function Js(e,t){if(!ks(e)||"fixed"===Ls(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Cs(e)===n&&(n=n.ownerDocument.body),n}function ea(e,t){const n=Ns(e);if(As(e))return n;if(!ks(e)){let t=zs(e);for(;t&&!Ds(t);){if(Ts(t)&&!Zs(t))return t;t=zs(t)}return n}let r=Js(e,t);for(;r&&Ps(r)&&Zs(r);)r=Js(r,t);return r&&Ds(r)&&Zs(r)&&!_s(r)?n:r||function(e){let t=zs(e);for(;ks(t)&&!Ds(t);){if(_s(t))return t;if(As(t))return null;t=zs(t)}return null}(e)||n}const ta={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s="fixed"===o,a=Cs(r),i=!!t&&As(t.floating);if(r===a||i&&s)return n;let l={scrollLeft:0,scrollTop:0},c=rs(1);const d=rs(0),u=ks(r);if((u||!u&&!s)&&(("body"!==Es(r)||Os(a))&&(l=Is(r)),ks(r))){const e=Ks(r);c=Bs(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}},getDocumentElement:Cs,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[..."clippingAncestors"===n?As(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=$s(e,[],!1).filter(e=>Ts(e)&&"body"!==Es(e)),o=null;const s="fixed"===Ls(e).position;let a=s?zs(e):e;for(;Ts(a)&&!Ds(a);){const t=Ls(a),n=_s(a);n||"fixed"!==t.position||(o=null),(s?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Os(a)&&!n&&Qs(e,a))?r=r.filter(e=>e!==a):o=t,a=zs(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=s[0],i=s.reduce((e,n)=>{const r=Ys(t,n,o);return e.top=es(r.top,e.top),e.right=Jo(r.right,e.right),e.bottom=Jo(r.bottom,e.bottom),e.left=es(r.left,e.left),e},Ys(t,a,o));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:ea,getElementRects:async function(e){const t=this.getOffsetParent||ea,n=this.getDimensions,r=await n(e.floating);return{reference:Xs(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=qs(e);return{width:t,height:n}},getScale:Bs,isElement:Ts,isRTL:function(e){return"rtl"===Ls(e).direction}};function na(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Us(e),d=o||s?[...c?$s(c):[],...$s(t)]:[];
vendor: 4,335 bytes, line 21
21d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});const u=c&&i?function(e,t){let n,r=null;const o=Cs(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(i,l){void 0===i&&(i=!1),void 0===l&&(l=1),s();const{left:c,top:d,width:u,height:h}=e.getBoundingClientRect();if(i||t(),!u||!h)return;const p={rootMargin:-ns(d)+"px "+-ns(o.clientWidth-(c+u))+"px "+-ns(o.clientHeight-(d+h))+"px "+-ns(c)+"px",threshold:es(0,Jo(1,l))||1};let f=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!f)return a();t?a(!1,t):n=setTimeout(()=>{a(!1,1e-7)},1e3)}f=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(g){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),s}(c,n):null;let h,p=-1,f=null;a&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let m=l?Ks(e):null;return l&&function t(){const r=Ks(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==u||u(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(h)}}const ra=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,s=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=ls(n),i=cs(n),l="y"===hs(n),c=["left","top"].includes(a)?-1:1,d=s&&l?-1:1,u=is(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&"number"==typeof f&&(p="end"===i?-1*f:f),l?{x:p*d,y:h*c}:{x:h*c,y:p*d}}(t,e);return a===(null==(n=i.offset)?void 0:n.placement)&&null!=(r=i.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},oa=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=is(e,t),c={x:n,y:r},d=await bs(t,l),u=hs(ls(o)),h=ds(u);let p=c[h],f=c[u];if(s){const e="y"===h?"bottom":"right";p=as(p+d["y"===h?"top":"left"],p,p-d[e])}if(a){const e="y"===u?"bottom":"right";f=as(f+d["y"===u?"top":"left"],f,f-d[e])}const m=i.fn({...t,[h]:p,[u]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:s,[u]:a}}}}}},sa=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=is(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const v=ls(o),y=hs(i),b=ls(i)===i,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=h||(b||!m?[ms(i)]:function(e){const t=ms(e);return[fs(e),t,fs(t)]}(i)),j="none"!==f;!h&&j&&w.push(...function(e,t,n,r){const o=cs(e);let s=function(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}(ls(e),"start"===n,r);return o&&(s=s.map(e=>e+"-"+o),t&&(s=s.concat(s.map(fs)))),s}(i,m,f,x));const E=[i,...w],N=await bs(t,g),C=[];let S=(null==(r=s.flip)?void 0:r.overflows)||[];if(d&&C.push(N[v]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=cs(e),o=ps(e),s=us(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=ms(a)),[a,ms(a)]}(o,a,x);C.push(N[e[0]],N[e[1]])}if(S=[...S,{placement:o,overflows:C}],!C.every(e=>e<=0)){var T,k;const e=((null==(T=s.flip)?void 0:T.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(k=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:k.placement;if(!n)switch(p){case"bestFit":{var M;const e=null==(M=S.filter(e=>{if(j){const t=hs(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>
vendor: 17,269 bytes, line 21
21e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:M[0];e&&(n=e);break}case"initialPlacement":n=i}if(o!==n)return{reset:{placement:n}}}return{}}}},aa=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:l=()=>{},...c}=is(e,t),d=await bs(t,c),u=ls(o),h=cs(o),p="y"===hs(o),{width:f,height:m}=s.floating;let g,v;"top"===u||"bottom"===u?(g=u,v=h===(await(null==a.isRTL?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(v=u,g="end"===h?"top":"bottom");const y=m-d.top-d.bottom,b=f-d.left-d.right,x=Jo(m-d[g],y),w=Jo(f-d[v],b),j=!t.middlewareData.shift;let E=x,N=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(N=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=y),j&&!h){const e=es(d.left,0),t=es(d.right,0),n=es(d.top,0),r=es(d.bottom,0);p?N=f-2*(0!==e||0!==t?e+t:es(d.left,d.right)):E=m-2*(0!==n||0!==r?n+r:es(d.top,d.bottom))}await l({...t,availableWidth:N,availableHeight:E});const C=await a.getDimensions(i.floating);return f!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}},ia=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=is(e,t);switch(r){case"referenceHidden":{const e=xs(await bs(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ws(e)}}}case"escaped":{const e=xs(await bs(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ws(e)}}}default:return{}}}}},la=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:l}=t,{element:c,padding:d=0}=is(e,t)||{};if(null==c)return{};const u=gs(d),h={x:n,y:r},p=ps(o),f=us(p),m=await a.getDimensions(c),g="y"===p,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=s.reference[f]+s.reference[p]-h[p]-s.floating[f],w=h[p]-s.reference[p],j=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let E=j?j[b]:0;E&&await(null==a.isElement?void 0:a.isElement(j))||(E=i.floating[b]||s.floating[f]);const N=x/2-w/2,C=E/2-m[f]/2-1,S=Jo(u[v],C),T=Jo(u[y],C),k=S,M=E-m[f]-T,O=E/2-m[f]/2+N,P=as(k,O,M),A=!l.arrow&&null!=cs(o)&&O!==P&&s.reference[f]/2-(O<k?S:T)-m[f]/2<0,_=A?O<k?O-k:O-M:0;return{[p]:h[p]+_,data:{[p]:P,centerOffset:O-P-_,...A&&{alignmentOffset:_}},reset:A}}}),ca=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=is(e,t),d={x:n,y:r},u=hs(o),h=ds(u);let p=d[h],f=d[u];const m=is(i,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===h?"height":"width",t=s.reference[h]-s.floating[e]+g.mainAxis,n=s.reference[h]+s.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,y;const e="y"===h?"width":"height",t=["top","left"].includes(ls(o)),n=s.reference[u]-s.floating[e]+(t&&(null==(v=a.offset)?void 0:v[u])||0)+(t?0:g.crossAxis),r=s.reference[u]+s.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[u])||0)-(t?g.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[h]:p,[u]:f}}}},da=(e,t,n)=>{const r=new Map,o={platform:ta,...n},s={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=ys(c,r,l),h=r,p={},f=0;for(let m=0;m<i.length;m++){const{name:n,fn:s}=i[m],{x:g,y:v,data:y,reset:b}=await s({x:d,y:u,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=g?g:d,u=null!=v?v:u,p={...p,[n]:{...p[n],...y}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:d,y:u}=ys(c,h,l))),m=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:p}})(e,t,{...o,platform:s})};var ua="undefined"!=typeof document?Q.useLayoutEffect:Q.useEffect;function ha(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!ha(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ha(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function pa(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fa(e,t){const n=pa(e);return Math.round(t*n)/n}function ma(e){const t=Q.useRef(e);return ua(()=>{t.current=e}),t}const ga=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?la({element:n.current,padding:r}).fn(t):{}:n?la({element:n,padding:r}).fn(t):{};var o}}),va=(e,t)=>({...ra(e),options:[e,t]}),ya=(e,t)=>({...oa(e),options:[e,t]}),ba=(e,t)=>({...ca(e),options:[e,t]}),xa=(e,t)=>({...sa(e),options:[e,t]}),wa=(e,t)=>({...aa(e),options:[e,t]}),ja=(e,t)=>({...ia(e),options:[e,t]}),Ea=(e,t)=>({...ga(e),options:[e,t]});var Na=Q.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return xe.jsx(qt.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:xe.jsx("polygon",{points:"0,0 30,0 15,10"})})});Na.displayName="Arrow";var Ca=Na;var Sa="Popper",[Ta,ka]=Rt(Sa),[Ma,Oa]=Ta(Sa),Pa=e=>{const{__scopePopper:t,children:n}=e,[r,o]=Q.useState(null);return xe.jsx(Ma,{scope:t,anchor:r,onAnchorChange:o,children:n})};Pa.displayName=Sa;var Aa="PopperAnchor",_a=Q.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Oa(Aa,n),a=Q.useRef(null),i=_t(t,a);return Q.useEffect(()=>{s.onAnchorChange(r?.current||a.current)}),r?null:xe.jsx(qt.div,{...o,ref:i})});_a.displayName=Aa;var Ra="PopperContent",[Da,La]=Ta(Ra),Ia=Q.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:f,...m}=e,g=Oa(Ra,n),[v,y]=Q.useState(null),b=_t(t,e=>y(e)),[x,w]=Q.useState(null),j=function(e){const[t,n]=Q.useState(void 0);return rn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,s;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,s=t.blockSize}else o=e.offsetWidth,s=e.offsetHeight;n({width:o,height:s})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(x),E=j?.width??0,N=j?.height??0,C=r+("center"!==s?"-"+s:""),S="number"==typeof d?d:{top:0,right:0,bottom:0,left:0,...d},T=Array.isArray(c)?c:[c],k=T.length>0,M={padding:S,boundary:T.filter(Wa),altBoundary:k},{refs:O,floatingStyles:P,placement:A,isPositioned:_,middlewareData:R}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[d,u]=Q.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=Q.useState(r);ha(h,r)||p(r);const[f,m]=Q.useState(null),[g,v]=Q.useState(null),y=Q.useCallback(e=>{e!==j.current&&(j.current=e,m(e))},[]),b=Q.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),x=s||f,w=a||g,j=Q.useRef(null),E=Q.useRef(null),N=Q.useRef(d),C=null!=l,S=ma(l),T=ma(o),k=ma(c),M=Q.useCallback(()=>{if(!j.current||!E.current)return;const e={placement:t,strategy:n,middleware:h};T.current&&(e.platform=T.current),da(j.current,E.current,e).then(e=>{const t={...e,isPositioned:!1!==k.current};O.current&&!ha(N.current,t)&&(N.current=t,X.flushSync(()=>{u(t)}))})},[h,t,n,T,k]);ua(()=>{!1===c&&N.current.isPositioned&&(N.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[c]);const O=Q.useRef(!1);ua(()=>(O.current=!0,()=>{O.current=!1}),[]),ua(()=>{if(x&&(j.current=x),w&&(E.current=w),x&&w){if(S.current)return S.current(x,w,M);M()}},[x,w,M,S,C]);const P=Q.useMemo(()=>({reference:j,floating:E,setReference:y,setFloating:b}),[y,b]),A=Q.useMemo(()=>({reference:x,floating:w}),[x,w]),_=Q.useMemo(()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=fa(A.floating,d.x),r=fa(A.floating,d.y);return i?{...e,transform:"translate("+t+"px, "+r+"px)",...pa(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,i,A.floating,d.x,d.y]);return Q.useMemo(()=>({...d,update:M,refs:P,elements:A,floatingStyles:_}),[d,M,P,A,_])}({strategy:"fixed",placement:C,whileElementsMounted:(...e)=>na(...e,{animationFrame:"always"===p}),elements:{reference:g.anchor},middleware:[va({mainAxis:o+N,alignmentAxis:a}),l&&ya({mainAxis:!0,crossAxis:!1,limiter:"partial"===u?ba():void 0,...M}),l&&xa({...M}),wa({...M,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:s}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${s}px`)}}),x&&Ea({element:x,padding:i}),qa({arrowWidth:E,arrowHeight:N}),h&&ja({strategy:"referenceHidden",...M})]}),[D,L]=Ua(A),I=Bt(f);rn(()=>{_&&I?.()},[_,I]);const z=R.arrow?.x,F=R.arrow?.y,$=0!==R.arrow?.centerOffset,[W,q]=Q.useState();return rn(()=>{v&&q(window.getComputedStyle(v).zIndex)},[v]),xe.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...P,transform:_?P.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[R.transformOrigin?.x,R.transformOrigin?.y].join(" "),...R.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:xe.jsx(Da,{scope:n,placedSide:D,onArrowChange:w,arrowX:z,arrowY:F,shouldHideArrow:$,children:xe.jsx(qt.div,{"data-side":D,"data-align":L,...m,ref:b,style:{...m.style,animation:_?void 0:"none"}})})})});Ia.displayName=Ra;var za="PopperArrow",Fa={top:"bottom",right:"left",bottom:"top",left:"right"},$a=Q.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=La(za,n),s=Fa[o.placedSide];return xe.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:xe.jsx(Ca,{...r,ref:t,style:{...r.style,display:"block"}})})});function Wa(e){return null!==e}$a.displayName=za;var qa=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=0!==o.arrow?.centerOffset,a=s?0:e.arrowWidth,i=s?0:e.arrowHeight,[l,c]=Ua(n),d={start:"0%",center:"50%",end:"100%"}[c],u=(o.arrow?.x??0)+a/2,h=(o.arrow?.y??0)+i/2;let p="",f="";return"bottom"===l?(p=s?d:`${u}px`,f=-i+"px"):"top"===l?(p=s?d:`${u}px`,f=`${r.floating.height+i}px`):"right"===l?(p=-i+"px",f=s?d:`${h}px`):"left"===l&&(p=`${r.floating.width+i}px`,f=s?d:`${h}px`),{data:{x:p,y:f}}}});function Ua(e){const[t,n="center"]=e.split("-");return[t,n]}var Ba=Pa,Va=_a,Ha=Ia,Ka=$a,Ga=Q.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=Q.useState(!1);rn(()=>s(!0),[]);const a=n||o&&globalThis?.document?.body;return a?ee.createPortal(xe.jsx(qt.div,{...r,ref:t}),a):null});Ga.displayName="Portal";var Ya=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=Q.useState(),r=Q.useRef({}),o=Q.useRef(e),s=Q.useRef("none"),a=e?"mounted":"unmounted",[i,l]=function(e,t){return Q.useReducer((e,n)=>t[e][n]??e,e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Q.useEffect(()=>{const e=Qa(r.current);s.current="mounted"===i?e:"none"},[i]),rn(()=>{const t=r.current,n=o.current;if(n!==e){const r=s.current,a=Qa(t);if(e)l("MOUNT");else if("none"===a||"none"===t?.display)l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,l]),rn(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=s=>{const a=Qa(r.current).includes(s.animationName);if(s.target===t&&a&&(l("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},i=e=>{e.target===t&&(s.current=Qa(r.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:Q.useCallback(e=>{e&&(r.current=getComputedStyle(e)),n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):Q.Children.only(n),s=_t(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?Q.cloneElement(o,{ref:s}):null};function Qa(e){return e?.animationName||"none"}Ya.displayName="Presence";var[Xa,Za]=function(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>Q.createContext(e));return function(n){const r=n?.[e]||t;return Q.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=Q.createContext(r),s=n.length;n=[...n,r];const a=t=>{const{scope:n,children:r,...a}=t,i=n?.[e]?.[s]||o,l=Q.useMemo(()=>a,Object.values(a));return xe.jsx(i.Provider,{value:l,children:r})};return a.displayName=t+"Provider",[a,function(n,a){const i=a?.[e]?.[s]||o,l=Q.useContext(i);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},$o(r,...t)]}("Tooltip",[ka]),Ja=ka(),ei="TooltipProvider",ti=700,ni="tooltip.open",[ri,oi]=Xa(ei),si=e=>{const{__scopeTooltip:t,delayDuration:n=ti,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,[a,i]=Q.useState(!0),l=Q.useRef(!1),c=Q.useRef(0);return Q.useEffect(()=>{const e=c.current;return()=>window.clearTimeout(e)},[]),xe.jsx(ri,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:Q.useCallback(()=>{window.clearTimeout(c.current),i(!1)},[]),onClose:Q.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:Q.useCallback(e=>{l.current=e},[]),disableHoverableContent:o,children:s})};si.displayName=ei;var ai="Tooltip",[ii,li]=Xa(ai),ci="TooltipTrigger";Q.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=li(ci,n),s=oi(ci,n),a=Ja(n),i=_t(t,Q.useRef(null),o.onTriggerChange),l=Q.useRef(!1),c=Q.useRef(!1),d=Q.useCallback(()=>l.current=!1,[]);return Q.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),xe.jsx(Va,{asChild:!0,...a,children:xe.jsx(qt.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:i,onPointerMove:Pt(e.onPointerMove,e=>{"touch"!==e.pointerType&&(c.current||s.isPointerInTransitRef.current||(o.onTriggerEnter(),c.current=!0))}),onPointerLeave:Pt(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:Pt(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Pt(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:Pt(e.onBlur,o.onClose),onClick:Pt(e.onClick,o.onClose)})})}).displayName=ci;var[di,ui]=Xa("TooltipPortal",{forceMount:void 0}),hi="TooltipContent",pi=Q.forwardRef((e,t)=>{const n=ui(hi,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=li(hi,e.__scopeTooltip);return xe.jsx(Ya,{present:r||a.open,children:a.disableHoverableContent?xe.jsx(vi,{side:o,...s,ref:t}):xe.jsx(fi,{side:o,...s,ref:t})})}),fi=Q.forwardRef((e,t)=>{const n=li(hi,e.__scopeTooltip),r=oi(hi,e.__scopeTooltip),o=Q.useRef(null),s=_t(t,o),[a,i]=Q.useState(null),{trigger:l,onClose:c}=n,d=o.current,{onPointerInTransitChange:u}=r,h=Q.useCallback(()=>{i(null),u(!1)},[u]),p=Q.useCallback((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),s=function(e){const t=e.slice();return t.sort((e,t)=>
21e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const t=e[r];for(;n.length>=2;){const e=n[n.length-1],r=n[n.length-2];if(!((e.x-r.x)*(t.y-r.y)>=(e.y-r.y)*(t.x-r.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);i(s),u(!0)},[u]);return Q.useEffect(()=>()=>h(),[h]),Q.useEffect(()=>{if(l&&d){const e=e=>p(e,d),t=e=>p(e,l);return l.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}},[l,d,p,h]),Q.useEffect(()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||d?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const e=t[s].x,i=t[s].y,l=t[a].x,c=t[a].y;i>r!=c>r&&n<(l-e)*(r-i)/(c-i)+e&&(o=!o)}return o}(n,a);r?h():o&&(h(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,d,a,c,h]),xe.jsx(vi,{...e,ref:s})}),[mi,gi]=Xa(ai,{isInside:!1}),vi=Q.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,l=li(hi,n),c=Ja(n),{onClose:d}=l;return Q.useEffect(()=>(document.addEventListener(ni,d),()=>document.removeEventListener(ni,d)),[d]),Q.useEffect(()=>{if(l.trigger){const e=e=>{const t=e.target;t?.contains(l.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,d]),xe.jsx(Ho,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:xe.jsxs(Ha,{"data-state":l.stateAttribute,...c,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[xe.jsx(zt,{children:r}),xe.jsx(mi,{scope:n,isInside:!0,children:xe.jsx(dn,{id:l.contentId,role:"tooltip",children:o||r})})]})})});pi.displayName=hi;var yi="TooltipArrow";Q.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ja(n);return gi(yi,n).isInside?null:xe.jsx(Ka,{...o,...r,ref:t})}).displayName=yi;var bi=pi;const xi=si;Q.forwardRef(({className:e,sideOffset:t=4,...n},r)=>xe.jsx(bi,{ref:r,sideOffset:t,className:co("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})).displayName=bi.displayName;var wi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ji="undefined"==typeof window||"Deno"in globalThis;function Ei(){}function Ni(e,t){return"function"==typeof e?e(t):e}function Ci(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:a,stale:i}=e;if(a)if(r){if(t.queryHash!==Ti(a,t.options))return!1}else if(!Mi(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof i||t.isStale()===i)&&((!o||o===t.state.fetchStatus)&&!(s&&!s(t)))}function Si(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;
21if(n){if(ki(t.options.mutationKey)!==ki(s))return!1}else if(!Mi(t.options.mutationKey,s))return!1}return(!r||t.state.status===r)&&!(o&&!o(t))}function Ti(e,t){return(t?.queryKeyHashFn||ki)(e)}function ki(e){return JSON.stringify(e,(e,t)=>Ai(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Mi(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some(n=>!Mi(e[n],t[n])))}function Oi(e,t){if(e===t)return e;const n=Pi(e)&&Pi(t);if(n||Ai(e)&&Ai(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),a=s.length,i=n?[]:{};let l=0;for(let c=0;c<a;c++){const o=n?c:s[c];(!n&&r.includes(o)||n)&&void 0===e[o]&&void 0===t[o]?(i[o]=void 0,l++):(i[o]=Oi(e[o],t[o]),i[o]===e[o]&&void 0!==e[o]&&l++)}return o===a&&l===o?e:i}return t}function Pi(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ai(e){if(!_i(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!_i(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function _i(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ri(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Oi(e,t):t}function Di(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Li(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ii=Symbol();function zi(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Ii?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var Fi=new(s=class extends wi{constructor(){super(),H(this,n),H(this,r),H(this,o),K(this,o,e=>{if(!ji&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){V(this,r)||this.setEventListener(V(this,o))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=V(this,r))||e.call(this),K(this,r,void 0))}setEventListener(e){var t;K(this,o,e),null==(t=V(this,r))||t.call(this),K(this,r,e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){V(this,n)!==e&&(K(this,n,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof V(this,n)?V(this,n):"hidden"!==globalThis.document?.visibilityState}},n=new WeakMap,r=new WeakMap,o=new WeakMap,s),$i=new(c=class extends wi{constructor(){super(),H(this,a,!0),H(this,i),H(this,l),K(this,l,e=>{if(!ji&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){V(this,i)||this.setEventListener(V(this,l))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=V(this,i))||e.call(this),K(this,i,void 0))}setEventListener(e){var t;K(this,l,e),null==(t=V(this,i))||t.call(this),K(this,i,e(this.setOnline.bind(this)))}setOnline(e){V(this,a)!==e&&(K(this,a,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return V(this,a)}},a=new WeakMap,i=new WeakMap,l=new WeakMap,c);function Wi(e){return Math.min(1e3*2**e,3e4)}function qi(e){return"online"!==(e??"online")||$i.isOnline()}var Ui=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Bi(e){return e instanceof Ui}function Vi(e){let t,n,r,o=!1,s=0,a=!1;const i=new Promise((e,t)=>{n=e,r=t}),l=()=>Fi.isFocused()&&("always"===e.networkMode||$i.isOnline())&&e.canRun(),c=()=>qi(e.networkMode)&&e.canRun(),d=r=>{a||(a=!0,e.onSuccess?.(r),t?.(),n(r))},u=n=>{a||(a=!0,e.onError?.(n),t?.(),r(n))},h=()=>new Promise(n=>{t=e=>{(a||l())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,a||e.onContinue?.()}),p=()=>{if(a)return;let t;const n=0===s?e.initialPromise:void 0;try{t=n??e.fn()}catch(r){t=Promise.reject(r)}Promise.resolve(t).then(d).catch(t=>{if(a)return;const n=e.retry??(ji?0:3),r=e.retryDelay??Wi,i="function"==typeof r?r(s,t):r,c=!0===n||"number"==typeof n&&s<n||"function"==typeof n&&n(s,t);var d;
21!o&&c?(s++,e.onFail?.(s,t),(d=i,new Promise(e=>{setTimeout(e,d)})).then(()=>l()?void 0:h()).then(()=>{o?u(t):p()})):u(t)})};return{promise:i,cancel:t=>{a||(u(new Ui(t)),e.abort?.())},continue:()=>(t?.(),i),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1},canStart:c,start:()=>(c()?p():h().then(p),i)}}var Hi=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=e=>setTimeout(e,0);const s=r=>{t?e.push(r):o(()=>{n(r)})};return{batch:s=>{let a;t++;try{a=s()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return a},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),Ki=(u=class{constructor(){H(this,d)}destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.gcTime)&&e>=0&&e!==1/0&&K(this,d,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ji?1/0:3e5))}clearGcTimeout(){V(this,d)&&(clearTimeout(V(this,d)),K(this,d,void 0))}},d=new WeakMap,u),Gi=(x=class extends Ki{constructor(e){super(),H(this,y),H(this,h),H(this,p),H(this,f),H(this,m),H(this,g),H(this,v),K(this,v,!1),K(this,g,e.defaultOptions),this.setOptions(e.options),this.observers=[],K(this,f,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,K(this,h,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=e.state??V(this,h),this.scheduleGc()}get meta(){return this.options.meta}get promise(){return V(this,m)?.promise}setOptions(e){this.options={...V(this,g),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||V(this,f).remove(this)}setData(e,t){const n=Ri(this.state.data,e,this.options);return G(this,y,b).call(this,{data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){G(this,y,b).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){const t=V(this,m)?.promise;return V(this,m)?.cancel(e),t?t.then(Ei).catch(Ei):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(V(this,h))}isActive(){return this.observers.some(e=>{return!1!==(t=e.options.enabled,n=this,"function"==typeof t?t(n):t);var t,n})}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!function(e,t){return Math.max(e+(t||0)-Date.now(),0)}(this.state.dataUpdatedAt,e)}onFocus(){const e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),V(this,m)?.continue()}onOnline(){const e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),V(this,m)?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),V(this,f).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(V(this,m)&&(V(this,v)?V(this,m).cancel({revert:!0}):V(this,m).cancelRetry()),this.scheduleGc()),V(this,f).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||G(this,y,b).call(this,{type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(V(this,m))return V(this,m).continueRetry(),V(this,m).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(K(this,v,!0),n.signal)}
21)},o={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=zi(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return r(n),K(this,v,!1),this.options.persister?this.options.persister(e,n,this):e(n)}};r(o),this.options.behavior?.onFetch(o,this),K(this,p,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===o.fetchOptions?.meta||G(this,y,b).call(this,{type:"fetch",meta:o.fetchOptions?.meta});const s=e=>{Bi(e)&&e.silent||G(this,y,b).call(this,{type:"error",error:e}),Bi(e)||(V(this,f).config.onError?.(e,this),V(this,f).config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return K(this,m,Vi({initialPromise:t?.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0!==e){try{this.setData(e)}catch(t){return void s(t)}V(this,f).config.onSuccess?.(e,this),V(this,f).config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1}else s(new Error(`${this.queryHash} data is undefined`))},onError:s,onFail:(e,t)=>{G(this,y,b).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{G(this,y,b).call(this,{type:"pause"})},onContinue:()=>{G(this,y,b).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),V(this,m).start()}},h=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,g=new WeakMap,v=new WeakMap,y=new WeakSet,b=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...Yi(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return Bi(n)&&n.revert&&V(this,p)?{...V(this,p),fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Hi.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),V(this,f).notify({query:this,type:"updated",action:e})})},x);function Yi(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:qi(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Qi=(j=class extends wi{constructor(e={}){super(),H(this,w),this.config=e,K(this,w,new Map)}build(e,t,n){const r=t.queryKey,o=t.queryHash??Ti(r,t);let s=this.get(o);return s||(s=new Gi({cache:this,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){V(this,w).has(e.queryHash)||(V(this,w).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=V(this,w).get(e.queryHash);t&&(e.destroy(),t===e&&V(this,w).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Hi.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return V(this,w).get(e)}getAll(){return[...V(this,w).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Ci(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Ci(e,t)):t}notify(e){Hi.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Hi.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Hi.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},w=new WeakMap,j),Xi=(k=class extends Ki{constructor(e){super(),H(this,S),H(this,E),H(this,N),H(this,C),this.mutationId=e.mutationId,K(this,N,e.mutationCache),K(this,E,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){V(this,E).includes(e)||(V(this,E).push(e),this.clearGcTimeout(),V(this,N).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){K(this,E,V(this,E).filter(t=>t!==e)),this.scheduleGc(),V(this,N).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){V(this,E).length||("pending"===this.state.status?this.scheduleGc():V(this,N).remove(this))}continue(){return V(this,C)?.continue()??this.execute(this.state.variables)}async execute(e){K(this,C,Vi({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{G(this,S,T).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{G(this,S,T).call(this,{type:"pause"})},onContinue:()=>{G(this,S,T).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>V(this,N).canRun(this)}));const t="pending"===this.state.status,n=!V(this,C).canStart();try{if(!t){G(this,S,T).call(this,{type:"pending",variables:e,isPaused:n}),await(V(this,N).config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&G(this,S,T).call(this,{type:"pending",context:t,variables:e,isPaused:n})}const r=await V(this,C).start();return await(V(this,N).config.onSuccess?.(r,e,this.state.context,this)),await(this.options.onSuccess?.(r,e,this.state.context)),await(V(this,N).config.onSettled?.(r,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(r,null,e,this.state.context)),G(this,S,T).call(this,{type:"success",data:r}),r}catch(r){try{throw await(V(this,N).config.onError?.(r,e,this.state.context,this)),await(this.options.onError?.(r,e,this.state.context)),await(V(this,N).config.onSettled?.(void 0,r,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,r,e,this.state.context)),r}finally{G(this,S,T).call(this,{type:"error",error:r})}}finally{V(this,N).runNext(this)}}},E=new WeakMap,N=new WeakMap,C=new WeakMap,S=new WeakSet,T=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
21case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Hi.batch(()=>{V(this,E).forEach(t=>{t.onMutationUpdate(e)}),V(this,N).notify({mutation:this,type:"updated",action:e})})},k);var Zi=(P=class extends wi{constructor(e={}){super(),H(this,M),H(this,O),this.config=e,K(this,M,new Map),K(this,O,Date.now())}build(e,t,n){const r=new Xi({mutationCache:this,mutationId:++Y(this,O)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=Ji(e),n=V(this,M).get(t)??[];n.push(e),V(this,M).set(t,n),this.notify({type:"added",mutation:e})}remove(e){const t=Ji(e);if(V(this,M).has(t)){const n=V(this,M).get(t)?.filter(t=>t!==e);n&&(0===n.length?V(this,M).delete(t):V(this,M).set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){const t=V(this,M).get(Ji(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){const t=V(this,M).get(Ji(e))?.find(t=>
21t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){Hi.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...V(this,M).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Si(t,e))}findAll(e={}){return this.getAll().filter(t=>Si(e,t))}notify(e){Hi.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return Hi.batch(()=>Promise.all(e.map(e=>e.continue().catch(Ei))))}},M=new WeakMap,O=new WeakMap,P);function Ji(e){return e.options.scope?.id??String(e.mutationId)}function el(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let i={pages:[],pageParams:[]},l=0;const c=async()=>{let n=!1;const c=zi(t.options,t.fetchOptions),d=async(e,r,o)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const s={queryKey:t.queryKey,pageParam:r,direction:o?"backward":"forward",meta:t.options.meta};var a;a=s,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)});const i=await c(s),{maxPages:l}=t.options,d=o?Li:Di;return{pages:d(e.pages,i,l),pageParams:d(e.pageParams,r,l)}};if(o&&s.length){const e="backward"===o,t={pages:s,pageParams:a},n=(e?nl:tl)(r,t);i=await d(t,n,e)}else{const t=e??s.length;do{const e=0===l?a[0]??r.initialPageParam:tl(r,i);if(l>0&&null==e)break;i=await d(i,e),l++}while(l<t)}return i};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function tl(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function nl(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var rl=($=class{constructor(e={}){H(this,A),H(this,_),H(this,R),H(this,D),H(this,L),H(this,I),H(this,z),H(this,F),K(this,A,e.queryCache||new Qi),K(this,_,e.mutationCache||new Zi),K(this,R,e.defaultOptions||{}),K(this,D,new Map),K(this,L,new Map),K(this,I,0)}mount(){Y(this,I)._++,1===V(this,I)&&(K(this,z,Fi.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,A).onFocus())})),K(this,F,$i.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,A).onOnline())})))}unmount(){var e,t;Y(this,I)._--,0===V(this,I)&&(null==(e=V(this,z))||e.call(this),K(this,z,void 0),null==(t=V(this,F))||t.call(this),K(this,F,void 0))}isFetching(e){return V(this,A).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return V(this,_).findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return V(this,A).get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=V(this,A).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Ni(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return V(this,A).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=V(this,A).get(r.queryHash),s=o?.state.data,a=function(e,t){return"function"==typeof e?e(t):e}(t,s);if(void 0!==a)return V(this,A).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Hi.batch(()=>V(this,A).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return V(this,A).get(t.queryHash)?.state}removeQueries(e){const t=V(this,A);Hi.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=V(this,A),r={type:"active",...e};return Hi.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Hi.batch(()=>V(this,A).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Ei).catch(Ei)}invalidateQueries(e={},t={}){return Hi.batch(()=>{if(V(this,A).findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:t?.cancelRefetch??!0},r=Hi.batch(()=>V(this,A).findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Ei)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(Ei)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=V(this,A).build(this,t);return n.isStaleByTime(Ni(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ei).catch(Ei)}fetchInfiniteQuery(e){return e.behavior=el(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ei).catch(Ei)}ensureInfiniteQueryData(e){return e.behavior=el(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return $i.isOnline()?V(this,_).resumePausedMutations():Promise.resolve()}getQueryCache(){return V(this,A)}getMutationCache(){return V(this,_)}getDefaultOptions(){return V(this,R)}setDefaultOptions(e){K(this,R,e)}setQueryDefaults(e,t){V(this,D).set(ki(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...V(this,D).values()];let n={};return t.forEach(t=>{Mi(e,t.queryKey)&&(n={...n,...t.defaultOptions})}),n}setMutationDefaults(e,t){V(this,L).set(ki(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...V(this,L).values()];let n={};return t.forEach(t=>{Mi(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...V(this,R).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ti(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===Ii&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...V(this,R).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){V(this,A).clear(),V(this,_).clear()}},A=new WeakMap,_=new WeakMap,R=new WeakMap,D=new WeakMap,L=new WeakMap,I=new WeakMap,z=new WeakMap,F=new WeakMap,$),ol=Q.createContext(void 0),sl=({client:e,children:t})=>(Q.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),xe.jsx(ol.Provider,{value:e,children:t}));
21const al=tr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-semibold uppercase tracking-wider ring-offset-background transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-[hsl(var(--cta))] text-[hsl(var(--cta-foreground))] hover:bg-[hsl(var(--cta-hover))] shadow-sm hover:shadow",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm",outline:"border-2 border-[hsl(var(--primary))] bg-transparent text-[hsl(var(--primary))] hover:bg-[hsl(var(--primary))] hover:text-[hsl(var(--primary-foreground))]",secondary:"bg-steel-100 text-[hsl(var(--primary))] hover:bg-steel-200 border border-steel-200",ghost:"hover:bg-steel-100 hover:text-[hsl(var(--primary))] shadow-none rounded-md font-medium normal-case tracking-normal",link:"text-brand-600 underline-offset-4 hover:underline shadow-none font-medium normal-case tracking-normal",hero:"bg-transparent border-2 border-white text-white hover:bg-white hover:text-[hsl(var(--primary))]",heroPrimary:"bg-[hsl(var(--cta))] text-[hsl(var(--cta-foreground))] hover:bg-[hsl(var(--cta-hover))] shadow-sm hover:shadow",glass:"bg-white text-[hsl(var(--primary))] border border-steel-200 hover:bg-steel-50 hover:border-brand-600 shadow-sm",industrial:"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:bg-[hsl(var(--surface-dark-2))] shadow-sm hover:shadow",accent:"bg-[hsl(var(--cta))] text-[hsl(var(--cta-foreground))] hover:bg-[hsl(var(--cta-hover))] shadow-sm"},size:{default:"h-auto min-h-[44px] px-6 py-3",sm:"h-auto min-h-[36px] px-4 py-2 text-xs",lg:"h-auto min-h-[52px] px-8 py-4 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),il=Q.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?Lt:"button";return xe.jsx(a,{className:co(al({variant:t,size:n}),e),ref:s,...o})});il.displayName="Button";const ll=Q.forwardRef(({className:e,...t},n)=>xe.jsx("div",{ref:n,className:co("rounded-2xl bg-white border border-white/60 text-card-foreground shadow-lg hover:shadow-xl transition-all duration-300",e),...t}));ll.displayName="Card";const cl=Q.forwardRef(({className:e,...t},n)=>xe.jsx("div",{ref:n,className:co("flex flex-col space-y-1.5 p-6",e),...t}));cl.displayName="CardHeader";const dl=Q.forwardRef(({className:e,...t},n)=>xe.jsx("h3",{ref:n,className:co("text-2xl font-semibold leading-none tracking-tight text-navy-900",e),...t}));dl.displayName="CardTitle";const ul=Q.forwardRef(({className:e,...t},n)=>xe.jsx("p",{ref:n,className:co("text-sm text-muted-foreground",e),...t}));ul.displayName="CardDescription";const hl=Q.forwardRef(({className:e,...t},n)=>xe.jsx("div",{ref:n,className:co("p-6 pt-0",e),...t}));hl.displayName="CardContent";Q.forwardRef(({className:e,...t},n)=>xe.jsx("div",{ref:n,className:co("flex items-center p-6 pt-0",e),...t})).displayName="CardFooter";class pl extends Q.Component{constructor(){super(...arguments),U(this,"state",{hasError:!1}),U(this,"handleReset",()=>{this.setState({hasError:!1,error:void 0})})}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){"undefined"!=typeof window&&void 0!==window.gtag&&window.gtag("event","exception",{description:e.message,fatal:!1})}render(){return this.state.hasError?this.props.fallback?this.props.fallback:xe.jsx("div",{className:"min-h-screen flex items-center justify-center p-4 bg-background",children:xe.jsxs(ll,{className:"max-w-md w-full",children:[xe.jsxs(cl,{className:"text-center",children:[xe.jsx("div",{className:"mx-auto w-12 h-12 bg-destructive/10 rounded-full flex items-center justify-center mb-4",children:xe.jsx(mr,{className:"w-6 h-6 text-destructive"})}),xe.jsx(dl,{className:"text-xl",children:"Something went wrong"})]}),xe.jsxs(hl,{className:"text-center space-y-4",children:[xe.jsx("p",{className:"text-muted-foreground",children:"We apologize for the inconvenience. An unexpected error has occurred."}),!1,xe.jsxs("div",{className:"space-y-2",children:[xe.jsxs(il,{onClick:this.handleReset,className:"w-full",children:[xe.jsx(pr,{className:"w-4 h-4 mr-2"}),"Try Again"]}),xe.jsx(il,{variant:"outline",onClick:()=>window.location.reload(),className:"w-full",children:"Reload Page"})]})]})]})}):this.props.children}}const fl=()=>{const{pathname:e,hash:t}=ne();return Q.useEffect(()=>{t||window.scrollTo(0,0)},[e,t]),null};function ml(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return Q.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var gl="focusScope.autoFocusOnMount",vl="focusScope.autoFocusOnUnmount",yl={bubbles:!1,cancelable:!0},bl=Q.forwardRef((e,t)=>
vendor: 5,150 bytes, line 21
21{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,l]=Q.useState(null),c=Bt(o),d=Bt(s),u=Q.useRef(null),h=_t(t,e=>l(e)),p=Q.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Q.useEffect(()=>{if(r){let e=function(e){if(p.paused||!i)return;const t=e.target;i.contains(t)?u.current=t:El(u.current,{select:!0})},t=function(e){if(p.paused||!i)return;const t=e.relatedTarget;null!==t&&(i.contains(t)||El(u.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&El(i)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return i&&r.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,i,p.paused]),Q.useEffect(()=>{if(i){Nl.add(p);const t=document.activeElement;if(!i.contains(t)){const n=new CustomEvent(gl,yl);i.addEventListener(gl,c),i.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(El(r,{select:t}),document.activeElement!==n)return}((e=xl(i),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&El(i))}return()=>{i.removeEventListener(gl,c),setTimeout(()=>{const e=new CustomEvent(vl,yl);i.addEventListener(vl,d),i.dispatchEvent(e),e.defaultPrevented||El(t??document.body,{select:!0}),i.removeEventListener(vl,d),Nl.remove(p)},0)}}var e},[i,c,d,p]);const f=Q.useCallback(e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,s]=function(e){const t=xl(e),n=wl(t,e),r=wl(t.reverse(),e);return[n,r]}(t);r&&s?e.shiftKey||o!==s?e.shiftKey&&o===r&&(e.preventDefault(),n&&El(s,{select:!0})):(e.preventDefault(),n&&El(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,p.paused]);return xe.jsx(qt.div,{tabIndex:-1,...a,ref:h,onKeyDown:f})});function xl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function wl(e,t){for(const n of e)if(!jl(n,{upTo:t}))return n}function jl(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function El(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}bl.displayName="FocusScope";var Nl=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Cl(e,t),e.unshift(t)},remove(t){e=Cl(e,t),e[0]?.resume()}}}();function Cl(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Sl=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=Q.useState(),r=Q.useRef({}),o=Q.useRef(e),s=Q.useRef("none"),a=e?"mounted":"unmounted",[i,l]=function(e,t){return Q.useReducer((e,n)=>t[e][n]??e,e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Q.useEffect(()=>{const e=Tl(r.current);s.current="mounted"===i?e:"none"},[i]),rn(()=>{const t=r.current,n=o.current;if(n!==e){const r=s.current,a=Tl(t);if(e)l("MOUNT");else if("none"===a||"none"===t?.display)l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,l]),rn(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=s=>{const a=Tl(r.current).includes(s.animationName);if(s.target===t&&a&&(l("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},i=e=>{e.target===t&&(s.current=Tl(r.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:Q.useCallback(e=>{e&&(r.current=getComputedStyle(e)),n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):Q.Children.only(n),s=_t(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?Q.cloneElement(o,{ref:s}):null};function Tl(e){return e?.animationName||"none"}Sl.displayName="Presence";var kl=0;function Ml(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 9,756 bytes, line 21
21style.position="fixed",e.style.pointerEvents="none",e}var Ol=function(){return Ol=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ol.apply(this,arguments)};function Pl(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Al(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var _l="right-scroll-bar-position",Rl="width-before-scroll-bar";function Dl(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Ll="undefined"!=typeof window?Q.useLayoutEffect:Q.useEffect,Il=new WeakMap;function zl(e,t){var n,r,o,s=(n=null,r=function(t){return e.forEach(function(e){return Dl(e,t)})},(o=Q.useState(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return Ll(function(){var t=Il.get(s);if(t){var n=new Set(t),r=new Set(e),o=s.current;n.forEach(function(e){r.has(e)||Dl(e,null)}),r.forEach(function(e){n.has(e)||Dl(e,o)})}Il.set(s,e)},[e]),s}function Fl(e){return e}function $l(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Fl);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var s=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(s)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=Ol({async:!0,ssr:!1},e),t}var Wl=function(e){var t=e.sideCar,n=Pl(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return Q.createElement(r,Ol({},n))};function ql(e,t){return e.useMedium(t),Wl}Wl.isSideCarExport=!0;var Ul=$l(),Bl=function(){},Vl=Q.forwardRef(function(e,t){var n=Q.useRef(null),r=Q.useState({onScrollCapture:Bl,onWheelCapture:Bl,onTouchMoveCapture:Bl}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,u=e.shards,h=e.sideCar,p=e.noIsolation,f=e.inert,m=e.allowPinchZoom,g=e.as,v=void 0===g?"div":g,y=e.gapMode,b=Pl(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=h,w=zl([n,t]),j=Ol(Ol({},b),o);return Q.createElement(Q.Fragment,null,d&&Q.createElement(x,{sideCar:Ul,removeScrollBar:c,shards:u,noIsolation:p,inert:f,setCallbacks:s,allowPinchZoom:!!m,lockRef:n,gapMode:y}),a?Q.cloneElement(Q.Children.only(i),Ol(Ol({},j),{ref:w})):Q.createElement(v,Ol({},j,{className:l,ref:w}),i))});Vl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Vl.classNames={fullWidth:Rl,zeroRight:_l};function Hl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Kl=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=Hl())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Gl=function(){var e,t=(e=Kl(),function(t,n){Q.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},Yl={left:0,top:0,right:0,gap:0},Ql=function(e){return parseInt(e||"",10)||0},Xl=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Yl;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Ql(n),Ql(r),Ql(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Zl=Gl(),Jl="data-scroll-locked",ec=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(i,"px ").concat(r,";\n }\n body[").concat(Jl,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(s,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(i,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(_l," {\n right: ").concat(i,"px ").concat(r,";\n }\n \n .").concat(Rl," {\n margin-right: ").concat(i,"px ").concat(r,";\n }\n \n .").concat(_l," .").concat(_l," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Rl," .").concat(Rl," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Jl,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},tc=function(){var e=parseInt(document.body.getAttribute(Jl)||"0",10);return isFinite(e)?e:0},nc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;Q.useEffect(function(){return document.body.setAttribute(Jl,(tc()+1).toString()),function(){var e=tc()-1;e<=0?document.body.removeAttribute(Jl):document.body.setAttribute(Jl,e.toString())}},[]);var s=Q.useMemo(function(){return Xl(o)},[o]);return Q.createElement(Zl,{styles:ec(s,!t,o,n?"":"!important")})},rc=!1;if("undefined"!=typeof window)try{var oc=Object.defineProperty({},"passive",{get:function(){return rc=!0,!0}});window.addEventListener("test",oc,oc),window.removeEventListener("test",oc,oc)}catch(Lu){rc=!1}var sc=!!rc&&{passive:!1},ac=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},ic=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),lc(e,r)){var o=cc(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},lc=function(e,t){return"v"===e?function(e){return ac(e,"overflowY")}(t):function(e){return ac(e,"overflowX")}(t)},cc=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},dc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},uc=function(e){return[e.deltaX,e.deltaY]},hc=function(e){return e&&"current"in e?e.current:e},pc=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},fc=0,mc=[];function gc(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vc=ql(Ul,function(e){var t=Q.useRef([]),n=Q.useRef([0,0]),r=Q.useRef(),o=Q.useState(fc++)[0],s=Q.useState(Gl)[0],a=Q.useRef(e);Q.useEffect(function(){a.current=e},[e]),Q.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=Al([e.lockRef.current],(e.shards||[]).map(hc),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=Q.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,s=dc(e),i=n.current,l="deltaX"in e?e.deltaX:i[0]-s[0],c="deltaY"in e?e.deltaY:i[1]-s[1],d=e.target,u=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var h=ic(u,d);if(!h)return!0;if(h?o=u:(o="v"===u?"h":"v",h=ic(u,d)),!h)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var s=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=s*r,i=n.target,l=t.contains(i),c=!1,d=a>0,u=0,h=0;do{var p=cc(e,i),f=p[0],m=p[1]-p[2]-s*f;(f||m)&&lc(e,i)&&(u+=m,h+=f),i=i instanceof ShadowRoot?i.host:i.parentNode}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return d&&(Math.abs(u)<1||!o)?c=!0:d||!(Math.abs(h)<1)&&o||(c=!0),c}(p,t,e,"h"===p?l:c,!0)},[]),l=Q.useCallback(function(e){var n=e;if(mc.length&&mc[mc.length-1]===s){var r="deltaY"in n?uc(n):dc(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();
vendor: 9,755 bytes, line 21
21else if(!o){var l=(a.current.shards||[]).map(hc).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?i(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),c=Q.useCallback(function(e,n,r,o){var s={name:e,delta:n,target:r,should:o,shadowParent:gc(r)};t.current.push(s),setTimeout(function(){t.current=t.current.filter(function(e){return e!==s})},1)},[]),d=Q.useCallback(function(e){n.current=dc(e),r.current=void 0},[]),u=Q.useCallback(function(t){c(t.type,uc(t),t.target,i(t,e.lockRef.current))},[]),h=Q.useCallback(function(t){c(t.type,dc(t),t.target,i(t,e.lockRef.current))},[]);Q.useEffect(function(){return mc.push(s),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:h}),document.addEventListener("wheel",l,sc),document.addEventListener("touchmove",l,sc),document.addEventListener("touchstart",d,sc),function(){mc=mc.filter(function(e){return e!==s}),document.removeEventListener("wheel",l,sc),document.removeEventListener("touchmove",l,sc),document.removeEventListener("touchstart",d,sc)}},[]);var p=e.removeScrollBar,f=e.inert;return Q.createElement(Q.Fragment,null,f?Q.createElement(s,{styles:pc(o)}):null,p?Q.createElement(nc,{gapMode:e.gapMode}):null)});var yc=Q.forwardRef(function(e,t){return Q.createElement(Vl,Ol({},e,{ref:t,sideCar:vc}))});yc.classNames=Vl.classNames;var bc=new WeakMap,xc=new WeakMap,wc={},jc=0,Ec=function(e){return e&&(e.host||Ec(e.parentNode))},Nc=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ec(t);return n&&e.contains(n)?n:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);wc[n]||(wc[n]=new WeakMap);var s=wc[n],a=[],i=new Set,l=new Set(o),c=function(e){e&&!i.has(e)&&(i.add(e),c(e.parentNode))};o.forEach(c);var d=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(i.has(e))d(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(bc.get(e)||0)+1,c=(s.get(e)||0)+1;bc.set(e,l),s.set(e,c),a.push(e),1===l&&o&&xc.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(u){}})};return d(t),i.clear(),jc++,function(){a.forEach(function(e){var t=bc.get(e)-1,o=s.get(e)-1;bc.set(e,t),s.set(e,o),t||(xc.has(e)||e.removeAttribute(r),xc.delete(e)),o||e.removeAttribute(n)}),--jc||(bc=new WeakMap,bc=new WeakMap,xc=new WeakMap,wc={})}},Cc=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Nc(r,o,n,"aria-hidden")):function(){return null}},Sc="Dialog",[Tc,kc]=function(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>Q.createContext(e));return function(n){const r=n?.[e]||t;return Q.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=Q.createContext(r),s=n.length;n=[...n,r];const a=t=>{const{scope:n,children:r,...a}=t,i=n?.[e]?.[s]||o,l=Q.useMemo(()=>a,Object.values(a));return xe.jsx(i.Provider,{value:l,children:r})};return a.displayName=t+"Provider",[a,function(n,a){const i=a?.[e]?.[s]||o,l=Q.useContext(i);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},ml(r,...t)]}(Sc),[Mc,Oc]=Tc(Sc),Pc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=Q.useRef(null),l=Q.useRef(null),[c=!1,d]=ln({prop:r,defaultProp:o,onChange:s});return xe.jsx(Mc,{scope:t,triggerRef:i,contentRef:l,contentId:Xo(),titleId:Xo(),descriptionId:Xo(),open:c,onOpenChange:d,onOpenToggle:Q.useCallback(()=>d(e=>!e),[d]),modal:a,children:n})};Pc.displayName=Sc;var Ac="DialogTrigger",_c=Q.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oc(Ac,n),s=_t(t,o.triggerRef);return xe.jsx(qt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Zc(o.open),...r,ref:s,onClick:Pt(e.onClick,o.onOpenToggle)})});_c.displayName=Ac;var Rc="DialogPortal",[Dc,Lc]=Tc(Rc,{forceMount:void 0}),Ic=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Oc(Rc,t);return xe.jsx(Dc,{scope:t,forceMount:n,children:Q.Children.map(r,e=>xe.jsx(Sl,{present:n||s.open,children:xe.jsx(Ga,{asChild:!0,container:o,children:e})}))})};Ic.displayName=Rc;var zc="DialogOverlay",Fc=Q.forwardRef((e,t)=>{const n=Lc(zc,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Oc(zc,e.__scopeDialog);return s.modal?xe.jsx(Sl,{present:r||s.open,children:xe.jsx($c,{...o,ref:t})}):null});Fc.displayName=zc;var $c=Q.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oc(zc,n);return xe.jsx(yc,{as:Lt,allowPinchZoom:!0,shards:[o.contentRef],children:xe.jsx(qt.div,{"data-state":Zc(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Wc="DialogContent",qc=Q.forwardRef((e,t)=>{const n=Lc(Wc,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Oc(Wc,e.__scopeDialog);return xe.jsx(Sl,{present:r||s.open,children:s.modal?xe.jsx(Uc,{...o,ref:t}):xe.jsx(Bc,{...o,ref:t})})});qc.displayName=Wc;var Uc=Q.forwardRef((e,t)=>{const n=Oc(Wc,e.__scopeDialog),r=Q.useRef(null),o=_t(t,n.contentRef,r);return Q.useEffect(()=>{const e=r.current;if(e)return Cc(e)},[]),xe.jsx(Vc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Pt(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Pt(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Pt(e.onFocusOutside,e=>e.preventDefault())})}),Bc=Q.forwardRef((e,t)=>{const n=Oc(Wc,e.__scopeDialog),r=Q.useRef(!1),o=Q.useRef(!1);return xe.jsx(Vc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const s=t.target,a=n.triggerRef.current?.contains(s);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),Vc=Q.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=Oc(Wc,n),l=Q.useRef(null),c=_t(t,l);return Q.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ml()),document.body.insertAdjacentElement("beforeend",e[1]??Ml()),kl++,()=>{1===kl&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),kl--}},[]),xe.jsxs(xe.Fragment,{children:[xe.jsx(bl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:xe.jsx(Ho,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Zc(i.open),...a,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),xe.jsxs(xe.Fragment,{children:[xe.jsx(nd,{titleId:i.titleId}),xe.jsx(rd,{contentRef:l,descriptionId:i.descriptionId})]})]})}),Hc="DialogTitle",Kc=Q.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oc(Hc,n);return xe.jsx(qt.h2,{id:o.titleId,...r,ref:t})});Kc.displayName=Hc;var Gc="DialogDescription",Yc=Q.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oc(Gc,n);return xe.jsx(qt.p,{id:o.descriptionId,...r,ref:t})});Yc.displayName=Gc;var Qc="DialogClose",Xc=Q.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Oc(Qc,n);return xe.jsx(qt.button,{type:"button",...r,ref:t,onClick:Pt(e.onClick,()=>o.onOpenChange(!1))})});function Zc(e){return e?"open":"closed"}Xc.displayName=Qc;var Jc="DialogTitleWarning",[ed,td]=function(e,t){const n=Q.createContext(t),r=e=>{const{children:t,...r}=e,o=Q.useMemo(()=>r,Object.values(r));return xe.jsx(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){const o=Q.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(Jc,{contentName:Wc,titleName:Hc,docsSlug:"dialog"}),nd=({titleId:e})=>{const t=td(Jc),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return Q.useEffect(()=>{if(e){document.getElementById(e)}},[n,e]),null},rd=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${td("DialogDescriptionWarning").contentName}}.`;return Q.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");if(t&&n){document.getElementById(t)}},[n,e,t]),null},od=Fc,sd=qc,ad=Kc,id=Yc,ld=Xc;const cd=Pc,dd=_c,ud=Ic,hd=ld,pd=Q.forwardRef(({className:e,...t},n)=>xe.jsx(od,{ref:n,className:co("fixed inset-0 z-[200] bg-black/40 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));pd.displayName=od.displayName;const fd=Q.forwardRef(({className:e,children:t,...n},r)=>xe.jsxs(ud,{children:[xe.jsx(pd,{}),xe.jsxs(sd,{ref:r,className:co("fixed left-[50%] top-[50%] z-[210] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
21nded-lg",e),...n,children:[t,xe.jsxs(ld,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[xe.jsx(gr,{className:"h-4 w-4"}),xe.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));fd.displayName=sd.displayName;const md=({className:e,...t})=>xe.jsx("div",{className:co("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});md.displayName="DialogHeader";const gd=({className:e,...t})=>xe.jsx("div",{className:co("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});gd.displayName="DialogFooter";const vd=Q.forwardRef(({className:e,...t},n)=>xe.jsx(ad,{ref:n,className:co("text-lg font-semibold leading-none tracking-tight",e),...t}));vd.displayName=ad.displayName;const yd=Q.forwardRef(({className:e,...t},n)=>xe.jsx(id,{ref:n,className:co("text-sm text-muted-foreground",e),...t}));yd.displayName=id.displayName;const bd=Object.freeze(Object.defineProperty({__proto__:null,Dialog:cd,DialogClose:hd,DialogContent:fd,DialogDescription:yd,DialogFooter:gd,DialogHeader:md,DialogOverlay:pd,DialogPortal:ud,DialogTitle:vd,DialogTrigger:dd},Symbol.toStringTag,{value:"Module"})),xd=Q.forwardRef(({className:e,type:t,...n},r)=>xe.jsx("input",{type:t,className:co("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));xd.displayName="Input";const wd=Object.freeze(Object.defineProperty({__proto__:null,Input:xd},Symbol.toStringTag,{value:"Module"})),jd=Q.forwardRef(({className:e,...t},n)=>xe.jsx("textarea",{className:co("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
21ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));jd.displayName="Textarea";const Ed=Object.freeze(Object.defineProperty({__proto__:null,Textarea:jd},Symbol.toStringTag,{value:"Module"}));var Nd=Q.forwardRef((e,t)=>xe.jsx(qt.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Nd.displayName="Label";var Cd=Nd;const Sd=tr("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Td=Q.forwardRef(({className:e,...t},n)=>xe.jsx(Cd,{ref:n,className:co(Sd(),e),...t}));Td.displayName=Cd.displayName;const kd=Object.freeze(Object.defineProperty({__proto__:null,Label:Td},Symbol.toStringTag,{value:"Module"}));const Md=ce("https://roxsdjkvfgzfqhzuhknp.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InJveHNkamt2Zmd6ZnFoenVoa25wIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTY1NzQ4NzAsImV4cCI6MjA3MjE1MDg3MH0.ucnhdgEjlITkdzKu1ta5USep3hyOkAvu1SdGcgMIpvc",{auth:{storage:function(){if("undefined"==typeof window)return;const e=location.hostname,t="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(t=>e===t||e.endsWith("."+t))?e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+t+")(?:-dev)?(?=\\.|$)","i"))?.[1]??e.match(new RegExp("^("+t+")(?=[.-])","i"))?.[1]:void 0,r=window.parent&&window.parent!==window;if(!n||!r)return localStorage;const o=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),s=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,a=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),i=a&&s.test(a)?[a]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],l=(e,t,r)=>new Promise(o=>{const s=Math.random().toString(36).slice(2)+Date.now().toString(36);let a,l=!1;const c=e=>{l||(l=!0,clearTimeout(a),window.removeEventListener("message",d),o(e))},d=e=>{if(i.indexOf(e.origin)<0)return;const t=e.data;t&&"lovable-preview-auth:result"===t.type&&t.requestId===s&&c(t)};window.addEventListener("message",d);const u={type:e,requestId:s,projectId:n,key:t};void 0!==r&&(u.value=r);for(const e of i)window.parent.postMessage(u,e);a=setTimeout(()=>c(null),2e3)});let c=!0;return{getItem:async e=>{let t=await l("lovable-preview-auth:get",e);return!t&&c&&(await new Promise(e=>setTimeout(e,250)),t=await l("lovable-preview-auth:get",e)),c=!1,t&&t.ok&&"string"==typeof t.value?""===t.value?(localStorage.removeItem(e),null):t.value:localStorage.getItem(e)},setItem:(e,t)=>(localStorage.setItem(e,t),l("lovable-preview-auth:set",e,t).then(n=>{n&&n.ok&&"string"==typeof n.value&&localStorage.getItem(e)===t&&(""===n.value?localStorage.removeItem(e):localStorage.setItem(e,n.value))})),removeItem:e=>(localStorage.removeItem(e),l("lovable-preview-auth:remove",e).then(()=>{}))}}(),persistSession:!0,autoRefreshToken:!0}}),Od=Object.freeze(Object.defineProperty({__proto__:null,supabase:Md},Symbol.toStringTag,{value:"Module"})),Pd="/assets/mikron-mill-e-700u-CxNbnvLM.avif",Ad=({alt:e,className:t="",priority:n=!1,variant:r="navbar"})=>{const o={navbar:{src:"/assets/logo-DZ5NCc5i.webp",width:226,height:80},mobile:{src:"/assets/logo-B3mFL6fL.webp",width:113,height:40},footer:{src:"/assets/logo-DnIxWlaD.webp",width:136,height:48}},{src:s,width:a,height:i}=o[r];return xe.jsx("img",{src:s,alt:e,width:a,height:i,className:t,loading:n?"eager":"lazy",decoding:n?"sync":"async",...n?{fetchpriority:"high"}:{}})},_d=({onNavigate:e})=>{const t=[{brand:"SMEC",tagline:"Turning & Machining Centers",thumb:"/assets/smec-mvf-5000-B0TU8s0W.webp",href:"/products",groups:[{title:"Horizontal Lathes",links:[{href:"/smec/horizontal-lathes/2-axis",label:"2-Axis"}
21,{href:"/smec/horizontal-lathes/3-axis",label:"3-Axis"},{href:"/smec/horizontal-lathes/multi-axis",label:"Multi-Axis"}]},{title:"Vertical Lathes",links:[{href:"/smec/vertical-lathes/2-axis",label:"2-Axis"},{href:"/smec/vertical-lathes/3-axis",label:"3-Axis"}]},{title:"Machining Centers",links:[{href:"/smec/vertical-machining-centers/3-axis",label:"3-Axis VMC"},{href:"/smec/vertical-machining-centers/5-axis",label:"5-Axis VMC"}]}]},{brand:"United Grinding",tagline:"Precision Grinding Solutions",thumb:"/assets/studer-s23-new-DXw333mc.png",href:"/products",groups:[{title:"Cylindrical",links:[{href:"/united-grinding/cylindrical-grinding/external",label:"External"},{href:"/united-grinding/cylindrical-grinding/internal",label:"Internal"}]},{title:"Tool Grinding & Measuring",links:[{href:"/united-grinding/tool-grinding-measuring/grinding-erosion",label:"Grinding & Erosion"},{href:"/united-grinding/tool-grinding-measuring/measuring",label:"Measuring"},{href:"/united-grinding/tool-grinding-measuring/laser-ablation",label:"Laser Ablation"}]},{title:"Surface & Profile",links:[{href:"/united-grinding/surface-profile-grinding/surface-profile",label:"Surface & Profile"},{href:"/united-grinding/surface-profile-grinding/5-6-axis",label:"5/6 Axis Centers"}]}]},{brand:"United Machining",tagline:"Milling, EDM, Laser & Additive",thumb:Pd,href:"/products",groups:[{title:"Technologies",links:[{href:"/united-machining/milling",label:"Milling"},{href:"/united-machining/edm",label:"EDM"},{href:"/united-machining/laser-technologies",label:"Laser Technologies"},{href:"/united-machining/additive-manufacturing",label:"Additive Manufacturing"}]}]}];return xe.jsx("div",{className:"grid grid-cols-3 gap-0 bg-white",children:t.map(t=>xe.jsxs("div",{className:"p-6 border-r border-steel-200 last:border-r-0 flex flex-col",children:[xe.jsxs(oe,{to:t.href,onClick:e,className:"group block mb-5",children:[xe.jsxs("div",{className:"relative aspect-[16/9] w-full overflow-hidden rounded-md bg-steel-100 mb-3",children:[xe.jsx("img",{src:t.thumb,alt:t.brand,loading:"lazy",className:"absolute inset-0 w-full h-full object-cover group-hover:scale-[1.03] transition-transform duration-500"}),xe.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-navy-900/60 via-navy-900/10 to-transparent"}),xe.jsxs("div",{className:"absolute bottom-2 left-3 right-3",children:[xe.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-[0.2em] text-safety-500 mb-0.5",children:"Brand"}),xe.jsx("div",{className:"text-white font-display font-bold text-lg leading-tight uppercase",children:t.brand})]})]}),xe.jsx("div",{className:"text-xs text-steel-500 uppercase tracking-[0.14em] font-semibold",children:t.tagline})]}),xe.jsx("div",{className:"space-y-4 flex-1",children:t.groups.map(t=>xe.jsxs("div",{children:[xe.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[0.16em] text-navy-900 mb-1.5",children:t.title}),xe.jsx("ul",{className:"space-y-0.5",children:t.links.map(t=>xe.jsx("li",{children:xe.jsxs(oe,{to:t.href,onClick:e,className:"group/link inline-flex items-center gap-1.5 py-1 text-sm text-steel-600 hover:text-brand-700 transition-colors",children:[xe.jsx("span",{className:"w-0 group-hover/link:w-2 h-px bg-safety-500 transition-all duration-200"}),t.label]})},t.href))})]},t.title))}),xe.jsxs(oe,{to:t.href,onClick:e,className:"mt-5 inline-flex items-center gap-1.5 text-xs font-semibold uppercase tracking-[0.14em] text-brand-700 hover:text-safety-500 transition-colors",children:["Explore ",t.brand," ",xe.jsx(ar,{className:"w-3.5 h-3.5"})]})]},t.brand))})},Rd=()=>{const[e,t]=Q.useState(!1),[n,r]=Q.useState(!1),[o,s]=Q.useState(!1),[a,i]=Q.useState(!1),[l,c]=Q.useState(!1),[d,u]=Q.useState(!1),[h,p]=Q.useState(null),[f,m]=Q.useState(null),[g,v]=Q.useState({}),[y,b]=Q.useState({}),[x,w]=Q.useState({}),j=J.useRef(null),E=()=>{j.current&&(window.clearTimeout(j.current),j.current=null)},{toast:N}=Ot();re(),ne(),Q.useEffect(()=>{const e=()=>{r(window.scrollY>50)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]);const C=async e=>{e.preventDefault(),i(!0);const t=new FormData(e.currentTarget),n={customerName:t.get("customerName"),company:t.get("company"),email:t.get("email"),phone:t.get("phone"),machineMake:t.get("machineMake"),machineModel:t.get("machineModel"),seri
21alNumber:t.get("serialNumber"),yearManufactured:t.get("yearManufactured"),machineLocation:t.get("machineLocation"),problemDescription:t.get("problemDescription"),urgencyLevel:t.get("urgencyLevel"),preferredServiceDate:t.get("preferredServiceDate"),additionalNotes:t.get("additionalNotes")};try{const{error:t}=await Md.functions.invoke("send-service-request",{body:n});if(t)throw t;N({title:"Service Request Sent!",description:"We'll contact you within 24 hours to schedule your service appointment."}),s(!1),e.target.reset()}catch(r){N({title:"Error",description:"Failed to send service request. Please try again.",variant:"destructive"})}finally{i(!1)}},S=[{href:"/",label:"Home",type:"link"},{href:"/about",label:"About",type:"link"},{href:"/products",label:"Machines",type:"dropdown",dropdown:[{href:"/products",label:"All Products"},{label:"SMEC",type:"submenu",items:[{label:"Horizontal Lathes",type:"submenu",items:[{href:"/smec/horizontal-lathes/2-axis",label:"2-Axis Horizontal Lathes"},{href:"/smec/horizontal-lathes/3-axis",label:"3-Axis Horizontal Lathes"},{href:"/smec/horizontal-lathes/multi-axis",label:"Multi-Axis Horizontal Lathes"}]},{label:"Vertical Lathes",type:"submenu",items:[{href:"/smec/vertical-lathes/2-axis",label:"2-Axis Vertical Lathes"},{href:"/smec/vertical-lathes/3-axis",label:"3-Axis Vertical Lathes"}]},{label:"Vertical Machining Centers",type:"submenu",items:[{href:"/smec/vertical-machining-centers/3-axis",label:"3-Axis Machining Centers"},{href:"/smec/vertical-machining-centers/5-axis",label:"5-Axis Machining Centers"}]}]},{label:"United Grinding",type:"submenu",items:[{label:"Cylindrical Grinding",type:"submenu",items:[{href:"/united-grinding/cylindrical-grinding/external",label:"External Cylindrical Grinding"},{href:"/united-grinding/cylindrical-grinding/internal",label:"Internal Cylindrical Grinding"}]},{label:"Tool Grinding and Measuring",type:"submenu",items:[{href:"/united-grinding/tool-grinding-measuring/grinding-erosion",label:"Grinding and Erosion Machines"},{href:"/united-grinding/tool-grinding-measuring/measuring",label:"Measuring Machines"},{href:"/united-grinding/tool-grinding-measuring/laser-ablation",label:"Laser Ablation Machines"}]},{label:"Surface & Profile Grinding",type:"submenu",items:[{href:"/united-grinding/surface-profile-grinding/surface-profile",label:"Surface & Profile Grinding Machines"},{href:"/united-grinding/surface-profile-grinding/5-6-axis",label:"5/6 Axis Grinding Centers"}]}]},{label:"United Machining",type:"submenu",items:[{href:"/united-machining/milling",label:"Milling"},{href:"/united-machining/edm",label:"EDM"},{href:"/united-machining/laser-technologies",label:"Laser Technologies"},{href:"/united-machining/additive-manufacturing",label:"Additive Manufacturing"}]}]},{href:"/services",label:"Service",type:"dropdown",dropdown:[{href:"/services",label:"All Services"},{href:"/services/parts",label:"Parts & Components"},{href:"/services/maintenance",label:"Preventive Maintenance"}]},{href:"/contact",label:"Contact",type:"link"}];return xe.jsxs(xe.Fragment,{children:[xe.jsx("div",{className:"hidden lg:block fixed top-0 left-0 right-0 z-[51] bg-navy-900 text-white/80 border-b border-white/10",children:xe.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:xe.jsxs("div",{className:"flex items-center justify-between h-9 text-[11px] uppercase tracking-[0.16em]",children:[xe.jsxs("div",{className:"flex items-center gap-6",children:[xe.jsxs("span",{className:"inline-flex items-center gap-1.5 text-white/60",children:[xe.jsx(dr,{className:"w-3 h-3 text-safety-500"}),"Serving AZ · UT · CO · NV · NM"]}),xe.jsx("a",{href:"tel:+14804557930",className:"hover:text-safety-500 transition-colors",children:"Sales: (480) 455-7930"}),xe.jsx("a",{href:"tel:+14805263218",className:"hover:text-safety-500 transition-colors",children:"Service: (480) 526-3218"})]}),xe.jsxs("div",{className:"flex items-center gap-6",children:[xe.jsx("span",{className:"text-white/60",children:"MonâFri 7AMâ5PM"}),xe.jsx("a",{href:"mailto:[email protected]",className:"hover:text-safety-500 transition-colors",children:"[email protected]"})]})]})})}),xe.jsx("nav",{className:"fixed left-0 right-0 z-50 transition-all duration-200 top-0 lg:top-9 "+(n?"bg-white shadow-md border-b border-steel-200":"bg-white lg:bg-white/95 lg:backdrop-blur-sm border-b border-steel-200"),children:xe.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[xe.jsxs("div",{className:"flex items-center justify-between h-20 lg:h-24",children:[xe.jsxs("div",{className:"hidden lg:flex items-center space-x-6",children:[xe.jsx(oe,{to:"/",className:"flex items-center",children:xe.jsx(Ad,{alt:"Sonoran Machinery Logo",variant:"navbar",priority:!0,className:"h-16 lg:h-20 w-auto hover:opacity-80 transition-opacity"})}),xe.jsx("div",{className:"flex items-center space-x-6",children:S.map(e=>"dropdown"===e.type?xe.jsxs("div",{className:"relative",children:[xe.jsxs("div",{onMouseEnter:()=>{E(),"Service"===e.label?(c(!0),u(!1)):"Machines"===e.label&&(u(!0),c(!1)),p(null),m(null)},onMouseLeave:()=>{E(),j.current=window.setTimeout(()=>{"Service"===e.label?c(!1):"Machines"===e.label&&u(!1),p(null),m(null)},150)},className:"group/link relative flex items-center gap-1 font-medium whitespace-nowrap cursor-pointer",children:[xe.jsx(oe,{to:e.href,className:"relative text-foreground group-hover/link:text-brand-700 transition-all duration-300 after:absolute after:bottom-0 after:left-0 after:h-0.5 after:w-0 after:bg-safety-500 after:transition-all after:duration-300 group-hover/link:after:w-full group-hover/link:",children:e.label}),xe.jsx(lr,{className:"h-4 w-4 text-foreground group-hover/link:text-brand-700 transition-colors duration-300"})]}),("Service"===e.label&&l||"Machines"===e.label&&d)&&xe.jsx("div",{className:"absolute top-full mt-1 z-[100] "+("Machines"===e.label?"left-1/2 -translate-x-1/2 w-[min(1180px,95vw)]":"left-0 min-w-[200px]"),children:xe.jsx("div",{className:"relative bg-white border border-steel-200 rounded-md shadow-2xl overflow-hidden",onMouseEnter:()=>{E(),"Service"===e.label?c(!0):"Machines"===e.label&&u(!0)},onMouseLeave:()=>{E(),j.current=window.setTimeout(()=>{"Service"===e.label?c(!1):"Machines"===e.label&&u(!1),p(null),m(null)},300)},children:"Machines"===e.label?xe.jsxs(xe.Fragment,{children:[xe.jsxs("div",{className:"flex items-center justify-between px-6 py-3 bg-navy-900 text-white border-b border-navy-800",children:[xe.jsxs("div",{className:"flex items-center gap-3",children:[xe.jsx("span",{className:"inline-block w-6 h-px bg-safety-500"}),xe.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-[0.22em] text-safety-500",children:"Machine Catalog"})]}),xe.jsxs(oe,{to:"/products",onClick:()=>{u(!1)},className:"inline-flex items-center gap-1.5 text-[11px] font-semibold uppercase tracking-[0.16em] text-white/80 hover:text-safety-500 transition-colors",children:["View all machines ",xe.jsx(ar,{className:"w-3 h-3"})]})]}),xe.jsx(_d,{onNavigate:()=>u(!1)})]}):e.dropdown?.map(e=>"submenu"===e.type?xe.jsxs("div",{className:"relative",onMouseEnter:()=>{E(),p(e.label)},onMouseLeave:()=>{E(),j.current=window.setTimeout(()=>{p(null),m(null)},150)},children:[xe.jsxs("div",{className:"flex items-center justify-between px-4 py-3 text-sm font-medium hover:bg-steel-100 transition-all duration-200 cursor-pointer group/item",children:[xe.jsx("span",{className:"text-foreground group-hover/item:text-brand-700",children:e.label}
21),xe.jsx(lr,{className:"h-4 w-4 -rotate-90 text-foreground/70 group-hover/item:text-brand-700 transition-colors"})]}),h===e.label&&xe.jsx("div",{className:"absolute left-full top-0 ml-0 z-[110] min-w-[220px] pl-1",children:xe.jsx("div",{className:"relative bg-white border border-steel-200 rounded-md shadow-xl overflow-visible ml-0",children:e.items?.map(e=>"submenu"===e.type?xe.jsxs("div",{className:"relative",onMouseEnter:()=>{E(),m(e.label)},onMouseLeave:()=>{E(),j.current=window.setTimeout(()=>{m(null)},150)},children:[xe.jsxs("div",{className:"flex items-center justify-between px-4 py-3 text-sm font-medium text-foreground hover:text-brand-700 hover:bg-steel-100 transition-all duration-200 cursor-pointer",children:[xe.jsx("span",{children:e.label}),xe.jsx(lr,{className:"h-4 w-4 -rotate-90 text-foreground"})]}),f===e.label&&xe.jsx("div",{className:"absolute left-full top-0 ml-0 z-[120] min-w-[220px] pl-1",children:xe.jsx("div",{className:"relative bg-white border border-steel-200 rounded-md shadow-xl overflow-visible ml-0",children:e.items?.map(e=>xe.jsx(oe,{to:e.href,className:"block px-4 py-3 text-sm font-medium text-foreground hover:text-brand-700 hover:bg-steel-100 transition-all duration-200 whitespace-nowrap",onClick:()=>{c(!1),u(!1),p(null),m(null)},children:e.label},e.href))})})]},e.label):xe.jsx(oe,{to:e.href,className:"block px-4 py-3 text-sm font-medium text-foreground hover:text-brand-700 hover:bg-steel-100 transition-all duration-200 whitespace-nowrap",onClick:()=>{c(!1),u(!1),p(null)},children:e.label},e.href))})})]},e.label):xe.jsx(oe,{to:e.href,className:"block px-4 py-3 text-sm font-medium text-foreground hover:text-brand-700 hover:bg-steel-100 transition-all duration-200 whitespace-nowrap",onClick:()=>{c(!1),u(!1),p(null)},children:e.label},e.href))})})]},e.href):xe.jsx(oe,{to:e.href,className:"group/link relative font-medium whitespace-nowrap text-foreground hover:text-brand-700 transition-all duration-300 after:absolute after:bottom-0 after:left-0 after:h-0.5 after:w-0 after:bg-safety-500 after:transition-all after:duration-300 hover:after:w-full hover:",children:e.label},e.href))})]}),xe.jsxs("div",{className:"hidden lg:flex items-center space-x-3",style:{minHeight:"48px",contain:"layout"},children:[xe.jsxs(cd,{open:o,onOpenChange:s,children:[xe.jsx("div",{children:xe.jsx(dd,{asChild:!0,children:xe.jsx("button",{className:"inline-flex items-center justify-center gap-2 h-auto min-h-[44px] px-6 py-3 text-sm font-semibold uppercase tracking-wider bg-[hsl(var(--cta))] text-white hover:bg-[hsl(var(--cta-hover))] rounded-md whitespace-nowrap transition-colors",children:"BOOK SERVICE"})})}),xe.jsxs(fd,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[xe.jsx(md,{children:xe.jsx(vd,{children:"Request CNC Service"})}),xe.jsxs("form",{onSubmit:C,className:"space-y-4",children:[xe.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"customerName",children:"Customer Name"}),xe.jsx(xd,{id:"customerName",name:"customerName",placeholder:"Your name"})]}),xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"company",children:"Company"}),xe.jsx(xd,{id:"company",name:"company",placeholder:"Company name"})]})]}),xe.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"email",children:"Email"}),xe.jsx(xd,{id:"email",name:"email",type:"email",placeholder:"[email protected]"})]}),xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"phone",children:"Phone"}),xe.jsx(xd,{id:"phone",name:"phone",type:"tel",placeholder:"(480) 555-0123"})]})]}),xe.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"machineMake",children:"Machine Make"}),xe.jsx(xd,{id:"machineMake",name:"machineMake",placeholder:"e.g., SMEC, Haas, Mazak"})]}),xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"machineModel",children:"Machine Model"}),xe.jsx(xd,{id:"machineModel",name:"machineModel",placeholder:"e.g., MCV-5500, VF-2"})]})]}),xe.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"serialNumber",children:"Serial Number"}),xe.jsx(xd,{id:"serialNumber",name:"serialNumber",placeholder:"Machine seri
21al number"})]}),xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"yearManufactured",children:"Year Manufactured"}),xe.jsx(xd,{id:"yearManufactured",name:"yearManufactured",type:"number",placeholder:"2020"})]})]}),xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"machineLocation",children:"Machine Location"}),xe.jsx(xd,{id:"machineLocation",name:"machineLocation",placeholder:"City, State or full address"})]}),xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"problemDescription",children:"Problem Description"}),xe.jsx(jd,{id:"problemDescription",name:"problemDescription",placeholder:"Please describe the issue you're experiencing with your machine...",className:"min-h-[80px]"})]}),xe.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"urgencyLevel",children:"Urgency Level"}),xe.jsxs("select",{id:"urgencyLevel",name:"urgencyLevel",className:"w-full p-2 border border-border rounded-md",children:[xe.jsx("option",{value:"",children:"Select urgency"}),xe.jsx("option",{value:"emergency",children:"Emergency - Machine Down"}),xe.jsx("option",{value:"urgent",children:"Urgent - Within 48 hours"}),xe.jsx("option",{value:"standard",children:"Standard - Within 1 week"}),xe.jsx("option",{value:"routine",children:"Routine Maintenance"})]})]}),xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"preferredServiceDate",children:"Preferred Service Date"}),xe.jsx(xd,{id:"preferredServiceDate",name:"preferredServiceDate",type:"date"})]})]}),xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"additionalNotes",children:"Additional Notes"}),xe.jsx(jd,{id:"additionalNotes",name:"additionalNotes",placeholder:"Any additional information that might help our technicians...",className:"min-h-[60
21px]"})]}),xe.jsx(il,{type:"submit",className:"w-full",disabled:a,children:a?"Sending Request...":xe.jsxs(xe.Fragment,{children:[xe.jsx(fr,{className:"w-4 h-4 mr-2"}),"Send Service Request"]})})]})]})]}),xe.jsx("div",{children:xe.jsxs("a",{href:"tel:+14804557930",className:"relative inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-base font-semibold h-auto min-h-[44px] px-6 py-3 bg-white border border-steel-200 text-brand-700",children:[xe.jsx(hr,{className:"h-4 w-4 mr-1 text-brand-700"}),xe.jsx("span",{className:"text-navy-900 font-bold",children:"(480) 455-7930"})]})})]}),xe.jsxs("div",{className:"lg:hidden flex items-center justify-between w-full",children:[xe.jsx("div",{className:"flex items-center py-2",children:xe.jsx(oe,{to:"/",className:"flex items-center",children:xe.jsx(Ad,{alt:"Sonoran Machinery Logo",variant:"mobile",priority:!0,className:"h-10 max-h-10 w-auto object-contain hover:opacity-80 transition-opacity block"})})}),xe.jsxs("div",{className:"flex items-center space-x-2",children:[xe.jsxs(cd,{open:o,onOpenChange:s,children:[xe.jsx("div",{children:xe.jsx(dd,{asChild:!0,children:xe.jsx("button",{className:"relative inline-flex items-center justify-center gap-2 h-auto min-h-[36px] px-4 py-2 text-xs font-semibold bg-white border border-steel-200 rounded-md",children:"BOOK SERVICE"})})}),xe.jsxs(fd,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[xe.jsx(md,{children:xe.jsx(vd,{children:"Request CNC Service"})}),xe.jsxs("form",{onSubmit:e=>{C(e)},className:"space-y-4",children:[xe.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"customerName-mobile",children:"Customer Name"}),xe.jsx(xd,{id:"customerName-mobile",name:"customerName",placeholder:"Your name"})]}),xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"company-mobile",children:"Company"}),xe.jsx(xd,{id:"company-mobile",name:"company",placeholder:"Company name"})]})]}),xe.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"email-mobile",children:"Email"}),xe.jsx(xd,{id:"email-mobile",name:"email",type:"email",placeholder:"[email protected]"})]}),xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"phone-mobile",children:"Phone"}),xe.jsx(xd,{id:"phone-mobile",name:"phone",type:"tel",placeholder:"(480) 555-0123"})]})]}),xe.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"machineMake-mobile",children:"Machine Make"}),xe.jsx(xd,{id:"machineMake-mobile",name:"machineMake",placeholder:"e.g., SMEC, Haas, Mazak"})]}),xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"machineModel-mobile",children:"Machine Model"}),xe.jsx(xd,{id:"machineModel-mobile",name:"machineModel",placeholder:"e.g., MCV-5500, VF-2"})]})]}),xe.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"serialNumber-mobile",children:"Serial Number"}),xe.jsx(xd,{id:"serialNumber-mobile",name:"serialNumber",placeholder:"Machine serial number"})]}),xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"yearManufactured-mobile",children:"Year Manufactured"}),xe.jsx(xd,{id:"yearManufactured-mobile",name:"yearManufactured",type:"number",placeholder:"2020"})]})]}),xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"machineLocation-mobile",children:"Machine Location"}),xe.jsx(xd,{id:"machineLocation-mobile",name:"machineLocation",placeholder:"City, State or full address"})]}),xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"problemDescription-mobile",children:"Problem Description"}),xe.jsx(jd,{id:"problemDescription-mobile",name:"problemDescription",placeholder:"Please describe the issue you're experiencing with your machine...",className:"min-h-[80px]"})]}),xe.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"urgencyLevel-mobile",children:"Urgency Level"}),xe.jsxs("select",{id:"urgencyLevel-mobile",name:"urgencyLevel",className:"w-full p-2 border border-border rounded-md",children:[xe.jsx("option",{value:"",children:"Select urgency"}),xe.jsx("option",{value:"emergency",children:"Emergency - Machine Down"}),xe.jsx("option",{value:"urgent",children:"Urgent - Within 48 hours"}),xe.jsx("option",{value:"standard",children:"Standard - Within 1 week"}),xe.jsx("option",{value:"routine",children:"Routine Maintenance"})]})]}),xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"preferredServiceDate-mobile",children:"Preferred Service Date"}),xe.jsx(xd,{id:"preferredServiceDate-mobile",name:"preferredServiceDate",type:"date"})]})]}),xe.jsxs("div",{children:[xe.jsx(Td,{htmlFor:"additionalNotes-mobile",children:"Additional Notes"}),xe.jsx(jd,{id:"additionalNotes-mobile",name:"additionalNotes",placeholder:"Any additional information that might help our technicians...",className:"min-h-[60
21px]"})]}),xe.jsx(il,{type:"submit",className:"w-full",disabled:a,children:a?"Sending Request...":xe.jsxs(xe.Fragment,{children:[xe.jsx(fr,{className:"w-4 h-4 mr-2"}),"Send Service Request"]})})]})]})]}),xe.jsx(il,{variant:"ghost",size:"sm",onClick:()=>{t(!e),e&&(v({}),b({}),w({}))},className:"text-foreground hover:text-primary","aria-label":e?"Close navigation menu":"Open navigation menu","aria-expanded":e,"aria-controls":"mobile-navigation",children:e?xe.jsx(gr,{className:"h-6 w-6"}):xe.jsx(ur,{className:"h-6 w-6"})})]})]})]}),e&&xe.jsx("div",{id:"mobile-navigation",className:"lg:hidden border-t border-border bg-white/95 backdrop-blur-md",children:xe.jsxs("div",{className:"px-4 pt-4 pb-6 space-y-4",children:[S.map(e=>"dropdown"===e.type?xe.jsxs("div",{className:"space-y-2",children:[xe.jsxs("div",{className:"flex items-center justify-between",children:[xe.jsx(oe,{to:e.href,className:"block text-foreground hover:text-primary transition-colors duration-200 font-medium py-2 flex-1",onClick:()=>t(!1),children:e.label}),xe.jsx("button",{onClick:()=>{return t=e.label,void v(e=>({...e,[t]:!e[t]}));var t},className:"p-2 text-foreground hover:text-primary transition-colors duration-200","aria-label":`Toggle ${e.label} menu`,"aria-expanded":!!g[e.label],children:xe.jsx(lr,{className:"h-4 w-4 transition-transform duration-200 "+(g[e.label]?"rotate-180":"")})})]}),g[e.label]&&xe.jsx("div",{className:"pl-4 space-y-2 bg-steel-50/50 dark:bg-navy-900/50 rounded-lg p-2",children:e.dropdown?.map(e=>"submenu"===e.type?xe.jsxs("div",{className:"space-y-2",children:[xe.jsxs("div",{className:"flex items-center justify-between",children:[xe.jsx("span",{className:"block text-sm text-foreground font-medium py-1 flex-1",children:e.label}),xe.jsx("button",{onClick:()=>{return t=e.label,void b(e=>({...e,[t]:!e[t]}));var t},className:"p-1 text-foreground hover:text-primary transition-colors duration-200","aria-label":`Toggle ${e.label} menu`,"aria-expanded":!!y[e.label],children:xe.jsx(lr,{className:"h-3 w-3 transition-transform duration-200 "+(y[e.label]?"rotate-180":"")})})]}),y[e.label]&&xe.jsx("div",{className:"pl-4 space-y-1 bg-steel-50 rounded-md p-2",children:e.items?.map(e=>"submenu"===e.type?xe.jsxs("div",{className:"space-y-1",children:[xe.jsxs("div",{className:"flex items-center justify-between",children:[xe.jsx("span",{className:"block text-xs text-foreground font-medium py-1 flex-1",children:e.label}),xe.jsx("button",{onClick:()=>{return t=e.label,void w(e=>({...e,[t]:!e[t]}));var t},className:"p-1 text-foreground hover:text-primary transition-colors duration-200","aria-label":`Toggle ${e.label} menu`,"aria-expanded":!!x[e.label],children:xe.jsx(lr,{className:"h-3 w-3 transition-transform duration-200 "+(x[e.label]?"rotate-180":"")})})]}),x[e.label]&&xe.jsx("div",{className:"pl-4 space-y-1",children:e.items?.map(e=>xe.jsx(oe,{to:e.href,className:"block text-xs text-muted-foreground hover:text-primary transition-colors duration-200 py-1",onClick:()=>t(!1),children:e.label},e.href))})]},e.label):xe.jsx(oe,{to:e.href,className:"block text-xs text-muted-foreground hover:text-primary transition-colors duration-200 py-1",onClick:()=>t(!1),children:e.label},e.href))})]},e.label):xe.jsx(oe,{to:e.href,className:"block text-sm text-muted-foreground hover:text-primary transition-colors duration-200 py-1",onClick:()=>t(!1),children:e.label},e.href))})]},e.href):xe.jsx(oe,{to:e.href,className:"block text-foreground hover:text-primary transition-colors duration-200 font-medium py-2",onClick:()=>t(!1),children:e.label},e.href)),xe.jsx(il,{variant:"hero",className:"w-full mt-4 rounded-md",asChild:!0,children:xe.jsxs("a",{href:"tel:+14804557930",children:[xe.jsx(hr,{className:"h-4 w-4 mr-2"}),"Call (480) 455-7930"]})})]})})]})})]})},Dd=e=>1-Math.pow(1-e,3),Ld=(e,t,n={})=>{const{duration:r=2e3,easing:o=Dd}=n,[s,a]=Q.useState(0),i=Q.useRef(!1),l=Q.useRef(null),c=Q.useRef(null),d=Q.useCallback(t=>{null===c.current&&(c.current=t);const n=t-c.current,s=Math.min(n/r,1),i=o(s),u=Math.floor(i*e);a(u),s<1?l.current=requestAnimationFrame(d):a(e)},[e,r,o]);return Q.useEffect(()=>
21(t&&!i.current&&(i.current=!0,c.current=null,l.current=requestAnimationFrame(d)),()=>{l.current&&cancelAnimationFrame(l.current)}),[t,d]),s},Id=(e={})=>{const{threshold:t=.1,triggerOnce:n=!0,rootMargin:r="0px"}=e,[o,s]=Q.useState(!1),a=Q.useRef(null);return Q.useEffect(()=>{const e=a.current;if(!e)return;const o=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?(s(!0),n&&o.disconnect()):n||s(!1)})},{threshold:t,rootMargin:r});return o.observe(e),()=>{o.disconnect()}},[t,n,r]),{ref:a,inView:o}},zd=Q.lazy(()=>wt(()=>Promise.resolve().then(()=>bd),void 0).then(e=>({default:e.Dialog}))),Fd=Q.lazy(()=>wt(()=>Promise.resolve().then(()=>bd),void 0).then(e=>({default:e.DialogContent}))),$d=Q.lazy(()=>wt(()=>Promise.resolve().then(()=>bd),void 0).then(e=>({default:e.DialogHeader}))),Wd=Q.lazy(()=>wt(()=>Promise.resolve().then(()=>bd),void 0).then(e=>({default:e.DialogTitle}))),qd=Q.lazy(()=>wt(()=>Promise.resolve().then(()=>bd),void 0).then(e=>({default:e.DialogTrigger}))),Ud=Q.lazy(()=>wt(()=>Promise.resolve().then(()=>wd),void 0).then(e=>({default:e.Input}))),Bd=Q.lazy(()=>wt(()=>Promise.resolve().then(()=>Ed),void 0).then(e=>({default:e.Textarea}))),Vd=Q.lazy(()=>wt(()=>Promise.resolve().then(()=>kd),void 0).then(e=>({default:e.Label}))),Hd=({onSubmit:e,isSubmitting:t})=>{const[n,r]=Q.useState(!1);return xe.jsx(Q.Suspense,{fallback:xe.jsxs("button",{className:"inline-flex items-center justify-center gap-2 h-auto min-h-[52px] px-8 py-4 text-sm sm:text-base font-semibold uppercase tracking-wider bg-[hsl(var(--cta))] hover:bg-[hsl(var(--cta-hover))] text-[hsl(var(--cta-foreground))] rounded-md shadow-sm hover:shadow transition-colors duration-200 w-full sm:w-auto",children:[xe.jsx(cr,{className:"w-5 h-5"}),"Get Quote"]}),children:xe.jsxs(zd,{open:n,onOpenChange:r,children:[xe.jsx(qd,{asChild:!0,children:xe.jsxs("button",{className:"inline-flex items-center justify-center gap-2 h-auto min-h-[52px] px-8 py-4 text-sm sm:text-base font-semibold uppercase tracking-wider bg-[hsl(var(--cta))] hover:bg-[hsl(var(--cta-hover))] text-[hsl(var(--cta-foreground))] rounded-md shadow-sm hover:shadow transition-colors duration-200 w-full sm:w-auto",children:[xe.jsx(cr,{className:"w-5 h-5"}),"Get Quote"]})}),xe.jsxs(Fd,{className:"max-w-md",children:[xe.jsx($d,{children:xe.jsx(Wd,{children:"Request a Quote"})}),xe.jsx(Q.Suspense,{fallback:null,children:xe.jsxs("form",{onSubmit:e,className:"space-y-4",children:[xe.jsxs("div",{children:[xe.jsx(Vd,{htmlFor:"name",children:"Name *"}),xe.jsx(Ud,{id:"name",name:"name",required:!0})]}),xe.jsxs("div",{children:[xe.jsx(Vd,{htmlFor:"email",children:"Email *"}),xe.jsx(Ud,{id:"email",name:"email",type:"email",required:!0})]}),xe.jsxs("div",{children:[xe.jsx(Vd,{htmlFor:"phone",children:"Phone"}),xe.jsx(Ud,{id:"phone",name:"phone",type:"tel"})]}),xe.jsxs("div",{children:[xe.jsx(Vd,{htmlFor:"company",children:"Company"}),xe.jsx(Ud,{id:"company",name:"company"})]}),xe.jsxs("div",{children:[xe.jsx(Vd,{htmlFor:"equipment",children:"Equipment/Service Needed *"}),xe.jsx(Ud,{id:"equipment",name:"equipment",required:!0,placeholder:"e.g., CNC Machine, Installation Service"})]}),xe.jsxs("div",{children:[xe.jsx(Vd,{htmlFor:"description",children:"Project Description"}),xe.jsx(Bd,{id:"description",name:"description",placeholder:"Tell us about your project requirements..."})]}),xe.jsxs("div",{children:[xe.jsx(Vd,{htmlFor:"timeline",children:"Timeline"}),xe.jsx(Ud,{id:"timeline",name:"timeline",placeholder:"e.g., Within 30 days, ASAP"})]}),xe.jsx("button",{type:"submit",className:"inline-flex items-center justify-center gap-2 h-auto min-h-[44px] px-6 py-3 text-sm font-semibold uppercase tracking-wider bg-[hsl(var(--cta))] hover:bg-[hsl(var(--cta-hover))] text-[hsl(var(--cta-foreground))] rounded-md shadow-sm hover:shadow transition-colors duration-200 w-full disabled:opacity-50 disabled:cursor-not-allowed",disabled:t,children:t?"Sending...":"Send Quote Request"})]})})]})]})})},Kd="/assets/hero-stx2600-jV-OUgm1.webp",Gd=Kd,Yd=`/assets/hero-stx2600-DQdl43Pl.webp 800w, /assets/hero-stx2600-Dig2YVK2.webp 1200w, ${Kd} 1600w, /assets/hero-stx2600-CC0UXXC4.webp 1920w`,Qd="(max-width: 1023px) 100vw, 58vw",Xd=()=>{const{ref:e,inView:t}=Id({threshold:.4}),n=[{value:`${Ld(75,t)}+`,label:"Years Experience"},{value:`${Ld(5,t)}`,label:"States Served"},{value:`${Ld(200,t)}+`,label:"Clients Served"}];return xe.jsx("div",{ref:e,className:"grid grid-cols-3 gap-4 pt-8 border-t border-slate-700",children:n.map(e=>xe.jsxs("div",{children:[xe.jsx("div",{className:"font-display text-3xl md:text-4xl font-extrabold text-white leading-none",children:e.value}),xe.jsx("div",{className:"text-[10px] uppercase tracking-tight text-slate-400 font-semibold mt-2",children:e.label})]},e.label))})},Zd=()=>{const[e,t]=Q.useState(!1),{toast:n}=Ot();return xe.jsxs("section",{id:"home",className:"relative bg-slate-100",children:[xe.jsxs(yt,{children:[xe.jsx("link",{rel:"preload",as:"image",href:Gd,imageSrcSet:Yd,imageSizes:Qd,fetchpriority:"high"}),xe.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Organization","@id":"https://sonoranmachinery.com/#organization",name:"Sonoran Machinery",url:"https://sonoranmachinery.com",logo:"https://sonoranmachinery.com/lovable-uploads/baf4b5ae-ba60-420c-88b0-f3d0d42026d8.png",description:"Leading CNC machine distributor serving the Southwest United States with sales, service, and parts for precision manufacturing equipment.",foundingDate:"2020",telephone:"+1-480-455-7930",email:"[email protected]",address:{"@type":"PostalAddress",addressLocality:"Phoenix",addressRegion:"AZ",addressCountry:"US"},sameAs:["https://www.linkedin.com/company/sonoran-machinery/","https://www.instagram.com/sonoranmachinery"],areaServed:["Arizona","Utah","Colorado","Nevada","New Mexico"]})})]}),xe.jsxs("div",{className:"w-full pt-16 sm:pt-20 lg:pt-[132px] pb-8 lg:pb-12",children:[xe.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 min-h-[640px] lg:min-h-[780px] bg-white shadow-2xl ring-1 ring-black/5 overflow-hidden",children:[xe.jsxs("div",{className:"lg:col-span-5 bg-navy-900 p-8 md:p-12 lg:p-10 xl:p-14 lg:py-16 flex flex-col justify-start lg:justify-center relative",children:[xe.jsx("div",{className:"absolute inset-0 opacity-[0.06] pointer-events-none",style:{backgroundImage:"radial-gradient(#2563eb 1px, transparent 1px)",backgroundSize:"20px 20px"},"aria-hidden":"true"}),xe.jsxs("div",{className:"relative z-10",children:[xe.jsxs("span",{className:"inline-flex items-center gap-2 mb-6",children:[xe.jsx("span",{className:"h-px w-8 bg-safety-500"}),xe.jsx("span",{className:"text-[11px] font-bold tracking-[0.2em] uppercase text-safety-500",children:"Southwest CNC Distributor"})]}),xe.jsxs("h1",{className:"font-display text-white leading-[0.92] mb-6 uppercase italic font-extrabold",style:{fontSize:"clamp(2.5rem, 4.5vw, 4.5rem)"},children:[xe.jsx("span",{className:"block md:whitespace-nowrap",children:"Premium CNC Machines"}),xe.jsx("span",{className:"block md:whitespace-nowrap text-safety-500",children:"& Expert Service"})]}),xe.jsx("p",{className:"text-slate-300 text-base md:text-lg mb-8 max-w-xl leading-relaxed",children:"The region's leading authority for SMEC, United Grinding, and United Machining. Serving AZ, UT, CO, NV, and NM."}),xe.jsxs("div",{className:"flex flex-wrap gap-3 mb-10",children:[xe.jsx(Hd,{onSubmit:async e=>{e.preventDefault(),t(!0);const r=new FormData(e.currentTarget),o={name:r.get("name"),email:r.get("email"),phone:r.get("phone"),company:r.get("company"),subject:"Quote Request",message:`Quote Request Details:\n\nEquipment/Service Needed: ${r.get("equipment")}\nProject Description: ${r.get("description")}\nTimeline: ${r.get("timeline")}`};try{const{supabase:t}=await wt(async()=>{const{supabase:e}=await Promise.resolve().then(()=>Od);return{supabase:e}},void 0),{error:r}=await t.functions.invoke("send-contact-email",{body:o});if(r)throw r;n({title:"Quote Request Sent!",description:"We'll get back to you within 24 hours with a detailed quote."}),e.target.reset()}catch(s){n({title:"Error",description:"Failed to send quote request. Please try again.",variant:"destructive"})}finally{t(!1)}},isSubmitting:e}),xe.jsx("a",{href:"tel:+14804557930",className:"text-slate-300 hover:text-white font-display font-bold uppercase tracking-wider text-sm md:text-base transition-colors inline-flex items-center px-2 py-4","aria-label":"Call (480) 455-7930",children:"or call (480) 455-7930"})]}),xe.jsx(Xd,{}),xe.jsx(il,{asChild:!0,variant:"link",className:"mt-5 px-0 py-2 h-auto min-h-[44px] text-primary-foreground whitespace-normal text-left justify-start hover:text-primary-foreground
21/80",children:xe.jsxs(oe,{to:"/section-179",children:[xe.jsx(ir,{"aria-hidden":"true"}),xe.jsx("span",{children:"2026 Section 179 â Estimate your tax savings"}),xe.jsx(ar,{"aria-hidden":"true"})]})})]})]}),xe.jsxs("div",{className:"lg:col-span-7 relative bg-slate-100 min-h-[420px] lg:min-h-0 flex items-center justify-center p-4 md:p-6 lg:p-8 overflow-hidden",children:[xe.jsxs(oe,{to:"/smec/stx-2600","aria-hidden":"true",className:"absolute top-4 right-4 md:top-6 md:right-6 z-30 inline-flex items-center gap-2 bg-safety-500 text-white px-3 py-1.5 rounded-md shadow-lg pointer-events-none",children:[xe.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",children:"Click for details"}),xe.jsx(ar,{className:"h-3.5 w-3.5"})]}),xe.jsx("div",{"aria-hidden":"true",className:"absolute top-[30%] left-1/2 z-[1] pointer-events-none -translate-x-1/2 -translate-y-1/2",children:xe.jsx("span",{className:"font-display text-[10rem] md:text-[16rem] lg:text-[20rem] xl:text-[24rem] font-extrabold uppercase tracking-tighter text-navy-900/[0.15] select-none",children:"STX"})}),xe.jsx("div",{className:"relative z-10 w-full h-full flex items-center justify-center",children:xe.jsx(oe,{to:"/smec/stx-2600","aria-label":"View SMEC STX 2600 machine details",className:"w-full h-full flex items-center justify-center",children:xe.jsx("img",{src:Gd,srcSet:Yd,sizes:Qd,alt:"SMEC STX 2600 CNC lathe",width:1600,height:900,className:"w-full h-full max-h-[560px] lg:max-h-[720px] object-contain rounded-lg drop-shadow-2xl transform lg:rotate-0 hover:-rotate-2 transition-transform duration-700 cursor-pointer",loading:"eager",decoding:"async",fetchpriority:"high"})})}),xe.jsxs("div",{className:"absolute bottom-6 right-6 md:bottom-8 md:right-8 lg:bottom-10 lg:right-16 xl:right-24 bg-white/95 backdrop-blur-md border-r-4 border-safety-500 p-4 md:p-6 shadow-2xl z-20 max-w-[240px]",children:[xe.jsx("p",{className:"text-[10px] uppercase tracking-[0.2em] font-bold text-slate-500 mb-1",children:"Current Featured Tech"}),xe.jsx("p",{className:"font-display text-xl md:text-2xl font-extrabold text-navy-900 uppercase leading-tight",children:"SMEC STX 2600"}),xe.jsxs("div",{className:"flex gap-2 mt-3",children:[xe.jsx("span",{className:"h-1 w-8 bg-safety-500"}),xe.jsx("span",{className:"h-1 w-4 bg-slate-300"}),xe.jsx("span",{className:"h-1 w-4 bg-slate-300"})]})]}),xe.jsx("div",{"aria-hidden":"true",className:"absolute -left-12 top-0 h-full w-24 bg-navy-900 skew-x-[-10deg] hidden lg:block z-0"})]})]}),xe.jsxs("div",{className:"absolute bottom-6 left-1/2 -translate-x-1/2 z-30 hidden lg:flex flex-col items-center gap-1",children:[xe.jsx("span",{className:"text-[10px] uppercase tracking-[0.2em] font-bold text-navy-500",children:"Scroll"}),xe.jsx("a",{href:"#partners",className:"w-10 h-10 rounded-full bg-navy-900 text-white flex items-center justify-center hover:bg-safety-600 transition-colors duration-200","aria-label":"Scroll to manufacturer partners section",children:xe.jsx(lr,{className:"h-5 w-5 animate-bounce"})})]})]})]})},Jd=Q.lazy(()=>wt(()=>import("./Highlights-BRLHcFJ_.js"),__vite__mapDeps([0,1,2,3]))),eu=Q.lazy(()=>wt(()=>import("./FullscreenGallery-Dx9ndQEA.js"),__vite__mapDeps([4,5,2,3]))),tu=Q.lazy(()=>wt(()=>import("./Services-BxQM0IZJ.js"),__vite__mapDeps([6,5,2,1,7,8,3]))),nu=Q.lazy(()=>wt(()=>import("./TrustedPartners-B0rdTKc4.js"),__vite__mapDeps([9,10,2,3]))),ru=Q.lazy(()=>wt(()=>import("./FeaturedMachines-BBsG8-DJ.js"),__vite__mapDeps([11,2,12,13,14,15,16,3]))),ou=Q.lazy(()=>wt(()=>import("./Footer-B4Dj2Txr.js").then(e=>e.a),[])),su=()=>(Q.useEffect(()=>{const e=()=>{const e=new IntersectionObserver(t=>{requestAnimationFrame(()=>{t.forEach(t=>{t.isIntersecting&&(t.target.classList.add("animate-fade-in"),e.unobserve(t.target))})})},{threshold:.1}),t=document.querySelectorAll(".animate-on-scroll");return t.forEach(t=>e.observe(t)),()=>{t.forEach(t=>e.unobserve(t))}};"requestIdleCallback"in window?window.requestIdleCallback(e,{timeout:2e3}):setTimeout(e,1e3)},[]),Q.useEffect(()=>{const e=()=>{document.querySelectorAll('a[href^="#"]').forEach(e=>{e.addEventListener("click",function(e){e.preventDefault();const t=this.getAttribute("href")?.substring(1);if(!t)return;const n=document.getElementById(t);n&&requestAnimationFrame(()=>{const e=window.innerWidth<768?100:80,t=n.offsetTop;window.scrollTo({top:t-e,behavior:"smooth"})})})})};"requestIdleCallback"in window?window.requestIdleCallback(e,{timeout:3e3}):setTimeout(e,1500)},[]),xe.jsxs("div",{className:"min-h-screen",children:[xe.jsxs(yt,{children:[xe.jsx("title",{children:"Sonoran Machinery | Premium CNC Equipment Sales & Service"}),xe.jsx("meta",{name:"description",content:"CNC machine tool distributor serving AZ, UT, CO, NV & NM. Grinding, milling & turning equipment with expert sales and service."}),xe.jsx("meta",{name:"keywords",content:"CNC machines Arizona, CNC machine tools Southwest, grinding machines, milling machines, turning centers, machine tool distributor, CNC sales service"}),xe.jsx("link",{rel:"canonical",href:"https://sonoranmachinery.com/"}),xe.jsx("meta",{property:"og:title",content:"Sonoran Machinery | Premium CNC Equipment Sales & Service"}),xe.jsx("meta",{property:"og:description",content:"Leading CNC machine tool distributor serving the Southwest. Premium grinding, milling, turning equipment."}),xe.jsx("meta",{property:"og:url",content:"https://sonoranmachinery.com/"}),xe.jsx("meta",{property:"og:type",content:"website"}),xe.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),xe.jsx("meta",{name:"twitter:title",content:"Sonoran Machinery | Premium CNC Equipment"}),xe.jsx("meta",{name:"twitter:description",content:"Leading CNC machine tool distributor in the Southwest."}),xe.jsx("meta",{name:"robots",content:"index, follow"})]}),xe.jsx(Rd,{}),xe.jsxs("main",{className:"relative space-y-0",children:[xe.jsx(Zd,{}),xe.jsx(Q.Suspense,{fallback:null,children:xe.jsx(nu,{})}),xe.jsx(Q.Suspense,{fallback:null,children:xe.jsx(ru,{})}),xe.jsx(Q.Suspense,{fallback:null,children:xe.jsx(eu,{})}),xe.jsx(Q.Suspense,{fallback:null,children:xe.jsx(Jd,{})}),xe.jsx(Q.Suspense,{fallback:null,children:xe.jsx(tu,{})})]}),xe.jsx(Q.Suspense,{fallback:null,children:xe.jsx(ou,{})})]})),au=Q.lazy(()=>wt(()=>import("./About-Daa9M3lY.js"),__vite__mapDeps([17,18,2,3]))),iu=Q.lazy(()=>wt(()=>import("./Contact-forF0e3c.js"),__vite__mapDeps([19,2,18,3]))),lu=Q.lazy(()=>wt(()=>import("./Products-DX6CRTRg.js"),__vite__mapDeps([20,18,10,2,3]))),cu=Q.lazy(()=>wt(()=>import("./Section179-CC9EY_lU.js"),__vite__mapDeps([21,2,18,22,15,3]))),du=Q.lazy(()=>wt(()=>import("./Services-vOS2_j6I.js"),__vite__mapDeps([23,2,18,24,25,26,7,8,27,28,29,30,3]))),uu=Q.lazy(()=>wt(()=>import("./ServicesParts-BDg-0GWA.js"),__vite__mapDeps([31,2,18,28,1,24,27,7,3]))),hu=Q.lazy(()=>wt(()=>import("./ServicesMaintenance-CEBXzaD0.js"),__vite__mapDeps([32,2,18,25,27,26,30,1,3]))),pu=Q.lazy(()=>wt(()=>import("./AdminContactSubmissions-DHJcw_eQ.js"),__vite__mapDeps([33,2,34,25,3]))),fu=Q.lazy(()=>wt(()=>import("./Milling-CMs9gKK7.js"),__vite__mapDeps([35,18,13,2,14,15,8,36,30,3]))),mu=Q.lazy(()=>wt(()=>import("./EDM-Dips_emM.js"),__vite__mapDeps([37,18,13,2,14,15,30,36,3]))),gu=Q.lazy(()=>wt(()=>import("./LaserTechnologies-DQdxWwC8.js"),__vite__mapDeps([38,18,13,2,14,15,39,30,36,3]))),vu=Q.lazy(()=>wt(()=>import("./AdditiveManufacturing-O-mU5ejE.js"),__vite__mapDeps([40,18,13,2,14,15,41,28,3]))),yu=Q.lazy(()=>wt(()=>import("./SMECHorizontalLathes2Axis-BbVwCevY.js"),__vite__mapDeps([42,2,18,12,13,14,15,43,8,36,26,3]))),bu=Q.lazy(()=>wt(()=>import("./SMECHorizontalLathes3Axis-BBb2YuX2.js"),__vite__mapDeps([44,2,18,12,13,14,15,43,8,28,1,3]))),xu=Q.lazy(()=>wt(()=>import("./SMECHorizontalLathesMultiAxis-Do53nD8Q.js"),__vite__mapDeps([45,2,18,12,13,14,15,46,36,30,3]))),wu=Q.lazy(()=>wt(()=>import("./SMECSTX2600-Dl8tHC5J.js"),__vite__mapDeps([47,2,18,14,15,41,29,1,3]))),ju=Q.lazy(()=>wt(()=>import("./SMECVerticalLathes2Axis-IIV5Tnfg.js"),__vite__mapDeps([48,2,18,12,13,14,15,49,22,29,41,3]))),Eu=Q.lazy(()=>wt(()=>import("./SMECVerticalLathes3Axis-BgBZp38p.js"),__vite__mapDeps([50,2,18,12,13,14,15,49,22,28,1,3]))),Nu=Q.lazy(()=>wt(()=>import("./SMECVerticalMachiningCenters3Axis-D9wS9vJw.js"),__vite__mapDeps([51,2,18,12,13,14,15,36,30,3]))),Cu=Q.lazy(()=>wt(()=>import("./SMECVerticalMachiningCenters5Axis-BOHzrZI5.js"),__vite__mapDeps([52,2,18,12,13,14,15,41,46,3]))),Su=Q.lazy(()=>wt(()=>import("./UnitedGrindingExternalCylindrical-D2qbPuSH.js"),__vite__mapDeps([53,18,34,14,2,15,13,16,36,39,3]))),Tu=Q.lazy(()=>wt(()=>import("./UnitedGrindingInternalCylindrical-CA8H5rZ-.js"),__vite__mapDeps([54,18,34,14,2,15,13,36,3]))),ku=Q.lazy(()=>wt(()=>import("./UnitedGrindingGrindingErosion-N1CKLyxn.js"),__vite__mapDeps([55,18,34,14,2,15,13,36,3]))),Mu=Q.lazy(()=>wt(()=>import("./UnitedGrindingMeasuring-Bdupe99X.js"),__vite__mapDeps([56,18,34,14,2,15,13,36,3]))),Ou=Q.lazy(()=>wt(()=>import("./UnitedGrindingLaserAblation-BCCYaSzp.js"),__vite__mapDeps([57,18,34,14,2,15,13,36,3]))),Pu=Q.lazy(()=>wt(()=>import("./UnitedGrindingSurfaceProfile-rZ0mB36Y.js"),__vite__mapDeps([58,18,34,14,2,15,13,36,3]))),Au=Q.lazy(()=>wt(()=>import("./UnitedGrinding56Axis-BX2VHx3D.js"),__vite__mapDeps([59,18,34,14,2,15,13,36,3]))),_u=Q.lazy(()=>wt(()=>import("./NotFound-B9MUjpL1.js"),__vite__mapDeps([60,2,3]))),Ru=new rl({defaultOptions:{queries:{staleTime:3e5,gcTime:6e5,retry:1,refetchOnWindowFocus:!1}}}),Du=()=>xe.jsx(pl,{children:xe.jsx(sl,{client:Ru,children:xe.jsxs(xi,{children:[xe.jsx(yo,{}),xe.jsx(Fo,{}),xe.jsxs(se,{children:[xe.jsx(fl,{}),xe.jsx(Q.Suspense,{fallback:null,children:xe.jsxs(ae,{children:[xe.jsx(ie,{path:"/",element:xe.jsx(su,{})}),xe.jsx(ie,{path:"/about",element:xe.jsx(au,{})}),xe.jsx(ie,{path:"/about-us",element:xe.jsx(le,{to:"/about",replace:!0})}),xe.jsx(ie,{path:"/contact",element:xe.jsx(iu,{})}
21),xe.jsx(ie,{path:"/smec-horizontal-lathes-multi-axis",element:xe.jsx(le,{to:"/smec/horizontal-lathes/multi-axis",replace:!0})}),xe.jsx(ie,{path:"/smec-vertical-lathes-3-axis",element:xe.jsx(le,{to:"/smec/vertical-lathes/3-axis",replace:!0})}),xe.jsx(ie,{path:"/smec-horizontal-lathes-3-axis",element:xe.jsx(le,{to:"/smec/horizontal-lathes/3-axis",replace:!0})}),xe.jsx(ie,{path:"/smec-vertical-lathes-2-axis",element:xe.jsx(le,{to:"/smec/vertical-lathes/2-axis",replace:!0})}),xe.jsx(ie,{path:"/smec-horizontal-lathes-2-axis",element:xe.jsx(le,{to:"/smec/horizontal-lathes/2-axis",replace:!0})}),xe.jsx(ie,{path:"/smec-vertical-machining-centers-3-axis",element:xe.jsx(le,{to:"/smec/vertical-machining-centers/3-axis",replace:!0})}),xe.jsx(ie,{path:"/smec-vertical-machining-centers-5-axis",element:xe.jsx(le,{to:"/smec/vertical-machining-centers/5-axis",replace:!0})}),xe.jsx(ie,{path:"/united-grinding-external-cylindrical",element:xe.jsx(le,{to:"/united-grinding/cylindrical-grinding/external",replace:!0})}),xe.jsx(ie,{path:"/united-grinding-internal-cylindrical",element:xe.jsx(le,{to:"/united-grinding/cylindrical-grinding/internal",replace:!0})}),xe.jsx(ie,{path:"/united-grinding-laser-ablation",element:xe.jsx(le,{to:"/united-grinding/tool-grinding-measuring/laser-ablation",replace:!0})}),xe.jsx(ie,{path:"/united-grinding-grinding-erosion",element:xe.jsx(le,{to:"/united-grinding/tool-grinding-measuring/grinding-erosion",replace:!0})}),xe.jsx(ie,{path:"/united-grinding-5-6-axis",element:xe.jsx(le,{to:"/united-grinding/surface-profile-grinding/5-6-axis",replace:!0})}),xe.jsx(ie,{path:"/united-grinding-surface-profile",element:xe.jsx(le,{to:"/united-grinding/surface-profile-grinding/surface-profile",replace:!0})}),xe.jsx(ie,{path:"/united-grinding-measuring",element:xe.jsx(le,{to:"/united-grinding/tool-grinding-measuring/measuring",replace:!0})}),xe.jsx(ie,{path:"/milling",element:xe.jsx(le,{to:"/united-machining/milling",replace:!0})}),xe.jsx(ie,{path:"/edm",element:xe.jsx(le,{to:"/united-machining/edm",replace:!0})}),xe.jsx(ie,{path:"/laser-technologies",element:xe.jsx(le,{to:"/united-machining/laser-technologies",replace:!0})}),xe.jsx(ie,{path:"/additive-manufacturing",element:xe.jsx(le,{to:"/united-machining/additive-manufacturing",replace:!0})}),xe.jsx(ie,{path:"/products",element:xe.jsx(lu,{})}),xe.jsx(ie,{path:"/section-179",element:xe.jsx(cu,{})}),xe.jsx(ie,{path:"/services",element:xe.jsx(du,{})}),xe.jsx(ie,{path:"/service",element:xe.jsx(le,{to:"/services",replace:!0})}),xe.jsx(ie,{path:"/services/parts",element:xe.jsx(uu,{})}),xe.jsx(ie,{path:"/services/maintenance",element:xe.jsx(hu,{})}),xe.jsx(ie,{path:"/united-machining/milling",element:xe.jsx(fu,{})}),xe.jsx(ie,{path:"/united-machining/edm",element:xe.jsx(mu,{})}),xe.jsx(ie,{path:"/united-machining/laser-technologies",element:xe.jsx(gu,{})}),xe.jsx(ie,{path:"/united-machining/additive-manufacturing",element:xe.jsx(vu,{})}),xe.jsx(ie,{path:"/smec/horizontal-lathes/2-axis",element:xe.jsx(yu,{})}),xe.jsx(ie,{path:"/smec/horizontal-lathes/3-axis",element:xe.jsx(bu,{})}),xe.jsx(ie,{path:"/smec/horizontal-lathes/multi-axis",element:xe.jsx(xu,{})}),xe.jsx(ie,{path:"/smec/stx-2600",element:xe.jsx(wu,{})}),xe.jsx(ie,{path:"/smec/vertical-lathes/2-axis",element:xe.jsx(ju,{})}),xe.jsx(ie,{path:"/smec/vertical-lathes/3-axis",element:xe.jsx(Eu,{})}),xe.jsx(ie,{path:"/smec/vertical-machining-centers/3-axis",element:xe.jsx(Nu,{})}),xe.jsx(ie,{path:"/smec/vertical-machining-centers/5-axis",element:xe.jsx(Cu,{})}),xe.jsx(ie,{path:"/united-grinding/cylindrical-grinding/external",element:xe.jsx(Su,{})}),xe.jsx(ie,{path:"/united-grinding/cylindrical-grinding/internal",element:xe.jsx(Tu,{})}),xe.jsx(ie,{path:"/united-grinding/tool-grinding-measuring/grinding-erosion",element:xe.jsx(ku,{})}),xe.jsx(ie,{path:"/united-grinding/tool-grinding-measuring/measuring",element:xe.jsx(Mu,{})}),xe.jsx(ie,{path:"/united-grinding/tool-grinding-measuring/laser-ablation",element:xe.jsx(Ou,{})}),xe.jsx(ie,{path:"/united-grinding/surface-profile-grinding/surface-profile",element:xe.jsx(Pu,{})}),xe.jsx(ie,{path:"/united-grinding/surface-profile-grinding/5-6-axis",element:xe.jsx(Au,{})}),xe.jsx(ie,{path:"/admin/contact-submissions",element:xe.jsx(pl,{children:xe.jsx(pu,{})})}),xe.jsx(ie,{path:"*",element:xe.jsx(_u,{})})]})})]})]})})});be(document.getElementById("root")).render(xe.jsx(J.StrictMode,{children:xe.jsx(ut,{children:xe.jsx(Du,{})})}));export{_l as $,ar as A,il as B,ll as C,cd as D,mr as E,ul as F,Pd as G,yt as H,xd as I,tr as J,Id as K,Td as L,cr as M,Rd as N,Vt as O,hr as P,Bt as Q,Ad as R,fr as S,jd as T,Ut as U,$l as V,zl as W,gr as X,Ol as Y,Rl as Z,Pl as _,cl as a,Gl as a0,Al as a1,nc as a2,ql as a3,ka as a4,Va as a5,Cc as a6,Lt as a7,bl as a8,Ha as a9,Ka as aa,cn as ab,Ba as ac,yd as ad,dl as b,hl as c,dr as d,ir as e,sr as f,Rt as g,ln as h,Xo as i,xe as j,qt as k,Pt as l,sn as m,_t as n,rn as o,Wt as p,co as q,lr as r,Md as s,Gd as t,Ot as u,Yd as v,dd as w,fd as x,md as y,vd as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.