1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,50891,e=>{"use strict";var t=e.i(959628);let r=(0,t.createServerReference)("7f6953fcd172b20bd7af84c49595cde468a76cab2d",t.callServer,void 0,t.findSourceMapURL,"setActiveTeam");e.s(["setActiveTeam",0,r])},721500,e=>{"use strict";e.s(["CMDK_NAVIGATION_ACTIONS",0,[{href:"/emails",label:"Emails",shortcut:["g","e"]},{href:"/emails/suppressions",label:"Suppressions",shortcut:["g","shift","s"],keywords:["suppression list","blocked","bounced"]},{href:"/broadcasts",label:"Broadcasts",shortcut:["g","b"]},{href:"/templates",label:"Templates",shortcut:["g","t"]},{href:"/audience",label:"Contacts",shortcut:["g","c"]},{href:"/audience/properties",label:"Properties",shortcut:["g","p"]},{href:"/audience/segments",label:"Segments",shortcut:["g","s"]},{href:"/audience/topics",label:"Topics",shortcut:["g","o"]},{href:"/metrics",label:"Metrics",shortcut:["g","r"]},{href:"/domains",label:"Domains",shortcut:["g","d"]},{href:"/logs",label:"Logs",shortcut:["g","l"]},{href:"/api-keys",label:"API keys",shortcut:["g","a"]},{href:"/webhooks",label:"Webhooks",shortcut:["g","w"]},{href:"/profile",label:"Profile",shortcut:["g","v"]},{href:"/settings/usage",label:"Settings",shortcut:["g","q"]},{href:"/settings/usage",label:"Usage",shortcut:["g","u"]},{href:"/settings/billing",label:"Billing",shortcut:["g","i"]},{href:"/settings/team",label:"Team",shortcut:["g","k"]},{href:"/settings/smtp",label:"SMTP",shortcut:["g","y"]},{href:"/settings/integrations",label:"Integrations",shortcut:["g","n"]},{href:"/settings/unsubscribe-page",label:"Unsubscribe page",shortcut:["g","z"]},{href:"/settings/documents",label:"Documents",shortcut:["g","j"]},{href:"/settings/exports",label:"Exports",shortcut:["g","x"]},{href:"/automations",label:"Automations",shortcut:["g","f"]},{href:"/help",label:"Help",shortcut:["g","h"]}]])},324707,e=>{"use strict";var t=e.i(410856),r=e.i(111384),a=e.i(624175),n=e.i(965182),i=e.i(316736),s=e.i(760518),l=e.i(784862),o=e.i(5777),c=e.i(764979),u=e.i(272304),d=e.i(594306),m=e.i(871202),h=e.i(385177),f=e.i(465530);function p({onSelect:e,query:r}){let a=(0,c.useTRPC)(),[s]=(0,o.useDebounce)(r,300),{data:g,isFetching:v}=(0,l.useQuery)(a.emails.search.queryOptions({query:s})),b=g?.results??[],x=g?.took??null;return(0,t.jsxs)(n.Group,{heading:(0,t.jsx)(i.CommandKHeading,{label:"Emails",count:b.length,time:x}),children:[(r!==s||v)&&0===b.length&&(0,t.jsx)(i.CommandKLoading,{}),b.map(r=>{let a=r.last_event;return(0,t.jsxs)(i.CommandKItem,{value:`${r.id} - ${r.subject} - ${r.to?.join(", ")??""}`,onSelect:()=>e(`/emails/${r.id}`),children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[(0,t.jsx)("div",{className:"shrink-0 overflow-hidden rounded-xl dark:overflow-visible dark:rounded-none",children:(0,t.jsx)(d.StatusIcon,{appearance:(0,f.getEmailStatusAppearance)(a),size:"1",type:"email"})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsxs)("span",{className:"truncate text-sm",children:[r.to?.[0]||"(No recipient)",r.to&&r.to.length>1&&(0,t.jsxs)("span",{className:"text-slate-10",children:[" ","+",r.to.length-1]})]}),(0,t.jsx)(m.Text,{size:"1",className:"truncate text-slate-10",children:r.subject||"(No subject)"})]})]}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-col items-end gap-0.5",children:[a&&(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"size-2 rounded-full",style:{backgroundColor:u.STATUS_COLORS[a]}}),(0,t.jsx)(m.Text,{size:"1",children:u.STATUS_LABELS[a]})]}),r.sent_at&&(0,t.jsx)(m.Text,{size:"1",className:"text-slate-9",children:(0,t.jsx)(h.TimeAgo,{value:r.sent_at})})]})]},r.id)})]})}var g=e.i(597308),v=e.i(323871),b=e.i(101674),x=e.i(413974),y=e.i(955879),S=e.i(715320),j=e.i(229220),w=e.i(439210),E=e.i(194142);e.i(417119);var C=e.i(463062),T=e.i(580731),k=e.i(954654),A=e.i(477850);let N=[{pattern:/^\/domains\/add\//,param:"id",label:"domain"},{pattern:/^\/domains\/[^/]+\/configurations\/tracking\//,param:"tracking-id",label:"tracking"},{pattern:/^\/domains\//,param:"id",label:"domain"},{pattern:/^\/emails\//,param:"id",label:"email"},{pattern:/^\/broadcasts\//,param:"id",label:"broadcast"},{pattern:/^\/templates\//,param:"id",label:"template"},{pattern:/^\/api-keys\//,param:"id",label:"API key"},{pattern:/^\/webhooks\//,param:"webhookEndpointId",label:"webhook"},{pattern:/^\/logs\//,param:"id",label:"log"},{pattern:/^\/audience\/contacts\//,param:"contactId",label:"contact"},{pattern:/^\/audience\/segments\//,param:"id",label:"segment"},{pattern:/^\/audience\/topics\//,param:"id",label:"topic"},{pattern:/^\/settings\/exports\//,param:"id",label:"export"},{pattern:/^\/automations\/events\//,param:"id",label:"event"},{pattern:/^\/automations\//,param:"id",label:"automation"}],I=[{pattern:/^\/audience(\/contacts)?\/?$/,searchParam:"segmentId",label:"segment"}];var z=e.i(721500),_=e.i(645190);function R({heading:e,actions:a,onClose:s,bulkSelectionCount:l=0}){let o=(0,r.useRouter)();if(0===a.length)return null;
1let c=l>0?`${e} (${l} selected)`:e;return(0,t.jsx)(n.Group,{heading:c,children:a.map(e=>(0,t.jsxs)(i.CommandKItem,{value:e.label,onSelect:()=>(function(e){switch(e.type){case"navigation":if(!e.href)return;if(e.href.startsWith("?")){let t=new URL(window.location.href);for(let[r,a]of new URLSearchParams(e.href.slice(1)).entries())t.searchParams.set(r,a);o.push(t.pathname+t.search)}else e.href.startsWith("http")?window.open(e.href,"_blank"):o.push(e.href);s();break;case"event":case"bulk":if(!e.eventName)return;(0,_.dispatchCmdKAction)(e.eventName),s()}})(e),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(e.icon,{size:14}),(0,t.jsx)(m.Text,{as:"span",children:e.label})]}),(0,t.jsx)("div",{className:"flex items-center gap-1 text-right",children:e.shortcut?.map(e=>(0,t.jsx)(n.Kbd,{children:e.toUpperCase()},e))})]},e.id))})}function F({onClose:e,onSelect:s,onOpenEmailSearch:l,onOpenTeamsSearch:o}){let c=(0,A.useActiveTeam)(),{targetTheme:u,returnsToSystem:d,toggleTheme:h}=(0,g.useThemeToggle)(),f=function(){let e=(0,r.useParams)(),t=(0,r.usePathname)(),a=(0,r.useSearchParams)();if(!t||!e)return[];let n=[],i=new Set;for(let r of N)if(r.pattern.test(t)){let t=e[r.param];t&&"string"==typeof t&&!i.has(r.param)&&(n.push({label:r.label,id:t}),i.add(r.param))}for(let e of I)if(e.pattern.test(t)){let t=a.get(e.searchParam);t&&!i.has(e.searchParam)&&(n.push({label:e.label,id:t}),i.add(e.searchParam))}return n}(),{actions:p,entityName:O,bulkSelectionCount:L}=function(){let e=(0,r.usePathname)(),[t,n]=(0,a.useState)(0),[i,s]=(0,a.useState)(()=>new Set),l=(0,a.useRef)(e);(0,a.useEffect)(()=>{function e(e){n(e.detail.count)}return window.addEventListener(_.CMDK_BULK_SELECTION_EVENT,e),window.dispatchEvent(new CustomEvent(_.CMDK_REQUEST_SELECTION_COUNT_EVENT)),()=>{window.removeEventListener(_.CMDK_BULK_SELECTION_EVENT,e)}},[]),(0,a.useEffect)(()=>{function e(e){s(new Set(e.detail.actions))}return window.addEventListener(_.CMDK_UNAVAILABLE_ACTIONS_EVENT,e),window.dispatchEvent(new CustomEvent(_.CMDK_REQUEST_UNAVAILABLE_ACTIONS_EVENT)),()=>{window.removeEventListener(_.CMDK_UNAVAILABLE_ACTIONS_EVENT,e)}},[]),(0,a.useEffect)(()=>{l.current!==e&&(n(0),s(new Set),l.current=e)},[e]);let{actions:o,entityName:c}=(0,a.useMemo)(()=>e?(0,_.getActionsForRoute)(e):{actions:[],entityName:null},[e]);return{actions:(0,a.useMemo)(()=>o.filter(e=>!(e.eventName&&i.has(e.eventName))&&(!e.requiresSelection||t>0)),[o,t,i]),entityName:c,bulkSelectionCount:t}}();async function D(){try{await navigator.clipboard.writeText(c.team_id),(0,T.showToast)({appearance:"green",title:"Copied to clipboard"}),e()}catch(e){console.error("Failed to copy team id",e),(0,T.showToast)({appearance:"red",title:v.sharedMessages.clipboardCopyFailed})}}let M=d?`Switch back to ${u} mode (system default)`:`Switch to ${u} mode`;async function q(){try{await navigator.clipboard.writeText(window.location.href),(0,T.showToast)({appearance:"green",title:"Copied to clipboard"}),e()}catch(e){console.error("Failed to copy current url",e),(0,T.showToast)({appearance:"red",title:v.sharedMessages.clipboardCopyFailed})}}async function P(t,r){try{await navigator.clipboard.writeText(t),(0,T.showToast)({appearance:"green",title:"Copied to clipboard"}),e()}catch(e){console.error(`Failed to copy ${r} id`,e),(0,T.showToast)({appearance:"red",title:v.sharedMessages.clipboardCopyFailed})}}return(0,t.jsxs)(t.Fragment,{children:[O&&(0,t.jsx)(R,{heading:O,actions:p,onClose:e,bulkSelectionCount:L}),f.length>0&&(0,t.jsx)(n.Group,{heading:"Context",children:f.map(e=>(0,t.jsx)(n.Item,{value:`Copy ${e.label} ID`,className:"justify-between gap-3",onSelect:()=>P(e.id,e.label),children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(y.IconCopy,{size:14}),(0,t.jsxs)("span",{children:["Copy ",e.label," ID"]})]})},e.label))}),l&&(0,t.jsx)(n.Group,{heading:"Search",children:(0,t.jsx)(i.CommandKItem,{value:"Search emails",onSelect:l,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(w.IconSearch,{size:14}),(0,t.jsx)(m.Text,{as:"span",children:"Search emails..."})]})})}),(0,t.jsxs)(n.Group,{heading:"General",children:[(0,t.jsx)(i.CommandKItem,{value:"Copy current URL",onSelect:q,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(y.IconCopy,{size:14}),(0,t.jsx)(m.Text,{as:"span",children:"Copy current URL"})]})}),(0,t.jsxs)(i.CommandKItem,{value:`${M}
1 toggle theme dark light mode appearance`,onSelect:function(){h(),e()},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:["dark"===u?(0,t.jsx)(S.IconMoon,{size:14}):(0,t.jsx)(E.IconSun,{size:14}),(0,t.jsx)(m.Text,{as:"span",children:M})]}),(0,t.jsx)(n.Kbd,{children:"M"})]})]}),(0,t.jsxs)(n.Group,{heading:"Team",children:[(0,t.jsx)(i.CommandKItem,{value:"Copy team ID account",onSelect:D,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(y.IconCopy,{size:14}),(0,t.jsx)(m.Text,{as:"span",children:"Copy team ID"})]})}),(0,t.jsx)(i.CommandKItem,{value:"Switch team account",onSelect:o,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(x.IconArrows,{size:14}),(0,t.jsx)(m.Text,{as:"span",children:"Switch team"})]})}),(0,t.jsx)(i.CommandKItem,{value:"Create new team account",onSelect:()=>s("/team/create"),children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(j.IconPlus,{size:14}),(0,t.jsx)(m.Text,{as:"span",children:"Create new team"})]})})]}),(0,t.jsx)(n.Group,{heading:"Navigation",children:z.CMDK_NAVIGATION_ACTIONS.map(e=>(0,t.jsxs)(i.CommandKItem,{value:`Go to ${e.label} navigation page`,keywords:e.keywords,onSelect:()=>s(e.href),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(b.IconArrowUpRight,{size:14}),(0,t.jsxs)(m.Text,{as:"span",children:["Go to ",(0,t.jsx)("span",{className:"font-semibold",children:e.label})]})]}),(0,t.jsx)("div",{className:"flex items-center gap-1 text-right",children:e.shortcut.map(e=>(0,t.jsx)(n.Kbd,{children:"shift"===e?C.SHORTCUTS_VALUES.SHIFT:e.toUpperCase()},e))})]},e.label))}),(0,t.jsx)(n.Group,{heading:"Website",children:k.NAVIGATION_LINKS.map(e=>(0,t.jsx)(i.CommandKItem,{value:`Go to ${e.label} website navigation page`,onSelect:()=>s(e.href),children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(b.IconArrowUpRight,{size:14}),(0,t.jsxs)(m.Text,{as:"span",children:["Go to ",(0,t.jsx)("span",{className:"font-semibold",children:e.label})]})]})},e.href))})]})}e.i(796760);var O=e.i(248051),L=e.i(50891),D=e.i(500990),M=e.i(408557),q=e.i(441465),P=e.i(199410);function B({onSelect:e,memberships:a}){let s=(0,r.usePathname)(),{execute:l}=(0,O.useAction)(L.setActiveTeam,{onError:({error:e})=>{(0,T.showToast)({title:(0,D.getActionErrorMessage)(e),appearance:"red"}),P.loadingEmitter.disable()},onExecute:()=>{P.loadingEmitter.enable()}});return(0,t.jsx)(n.Group,{heading:"Teams",children:a.map(r=>(0,t.jsx)(i.CommandKItem,{value:`${r.name} ${r.team_id}`,onSelect:()=>{l({id:r.team_id,redirectTo:s??"/"}),e()},children:(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[(0,t.jsx)("div",{className:"shrink-0 overflow-hidden rounded-xl dark:overflow-visible dark:rounded-none",children:(0,t.jsxs)(q.Root,{variant:"squared",size:"1",children:[(0,t.jsx)(q.Fallback,{children:r.name}),r.avatar_url&&(0,t.jsx)(q.Image,{src:(0,M.getTeamAvatarUrl)(r.avatar_url),alt:r.name})]})}),(0,t.jsx)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:(0,t.jsx)("span",{className:"truncate text-sm",children:r.name})})]})},r.team_id))})}function U({open:e,setOpen:r,onSelect:l,onClose:o,memberships:c,initialPage:u}){let[d,m]=a.useState([]),[h,f]=a.useState(void 0),[g,v]=a.useState(""),b=d[d.length-1],x=g.trim(),y=(0,s.useClientFeatureFlag)("elasticSearchEmails"),S=a.useRef(null);a.useEffect(()=>{switch(S.current?.scrollTo(0,0),v(""),b){case"emails":f("Search emails...");break;case"teams":f("Search teams...");break;default:f(void 0)}},[b]),a.useEffect(()=>{e?m(u?[u]:[]):v("")},[u,e]);let j=a.useCallback(()=>d.length>0&&(m(e=>e.slice(0,-1)),v(""),!0),[d.length]);return(0,t.jsx)(i.CommandKRoot,{open:e,setOpen:r,onEscapeKeyDown:j,children:(0,t.jsxs)(n.Root,{"aria-label":"Dashboard command menu",loop:!0,shouldFilter:"emails"!==b,onKeyDown:e=>{"Backspace"===e.key&&""===x&&d.length>0&&(m(e=>e.slice(0,-1)),v(""),e.preventDefault())},children:[(0,t.jsx)(i.CommandKSearch,{placeholder:h,value:g,onValueChange:v,pageLevel:d.length,onBack:()=>m(e=>e.slice(0,-1))}),(0,t.jsxs)(n.List,{ref:S,className:"p-1.5 scroll-p-2.5",children:[(0,t.jsx)(n.Empty,{children:"No results found."}),!b&&(0,t.jsx)(F,{onClose:o,onSelect:l,onOpenEmailSearch:y?()=>{m(e=>[...e,"emails"])}:void 0,onOpenTeamsSearch:()=>{m(e=>[...e,"teams"])}}),"emails"===b&&(0,t.jsx)(p,{query:g,onSelect:l}
1),"teams"===b&&(0,t.jsx)(B,{onSelect:o,memberships:c})]})]})})}e.s(["CmdK",0,function({memberships:e}){let[n,i]=a.useState(!1),s=(0,r.useRouter)(),l=a.useCallback(e=>{i(!1),s.push(e)},[s]);return a.useEffect(()=>{function e(e){let t=e.target;if((e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase()){if(t?.isContentEditable)return;e.preventDefault(),i(e=>!e)}}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,t.jsx)(U,{open:n,setOpen:i,onClose:()=>i(!1),onSelect:l,memberships:e})}],324707)},760518,e=>{"use strict";var t=e.i(410856),r=e.i(624175);let a=r.default.createContext({flags:{}});e.s(["FeatureFlagProvider",0,function({children:e,flags:r}){return(0,t.jsx)(a.Provider,{value:{flags:r},children:e})},"useClientFeatureFlag",0,function(e){let{flags:t}=r.default.useContext(a);return t[e]??!1}])},477850,e=>{"use strict";var t=e.i(410856),r=e.i(784862),a=e.i(298019),n=e.i(111384),i=e.i(624175),s=e.i(764979);let l=i.createContext(void 0);e.s(["ActiveTeamProvider",0,function({team:e,children:o}){let c=(0,s.useTRPC)(),u=(0,n.useRouter)(),d=(0,a.useQueryClient)(),{data:m}=(0,r.useQuery)(c.teams.getActive.queryOptions(void 0,{initialData:e,refetchOnMount:!1,refetchOnWindowFocus:!0})),h=m??e,f=i.useRef(h.team_id);return i.useEffect(()=>{f.current!==h.team_id&&(f.current=h.team_id,u.refresh())},[h.team_id,u]),i.useEffect(()=>{d.setQueryData(c.teams.getActive.queryKey(),e)},[e,d,c]),(0,t.jsx)(l.Provider,{value:h,children:o})},"useActiveTeam",0,function(){let e=i.useContext(l);if(void 0===e)throw Error("`useActiveTeam` must be used within an `ActiveTeamProvider`");return e}])},500990,e=>{"use strict";var t=e.i(323871);e.s(["getActionErrorMessage",0,function(e){if(e.validationErrors){let t=function e(t){if(t._errors&&t._errors.length>0)return t._errors[0];for(let r of Object.keys(t)){if("_errors"===r)continue;let a=t[r];if(a){if(Array.isArray(a))for(let t of a){if("string"==typeof t)return t;let r=e(t);if(r)return r}else if("object"==typeof a){let t=e(a);if(t)return t}}}}(e.validationErrors);if(t)return t}return e.serverError?e.serverError:t.sharedMessages.genericError}])},597308,e=>{"use strict";var t=e.i(635790),r=e.i(624175);e.s(["useThemeToggle",0,function(){let{theme:e,resolvedTheme:a,systemTheme:n,setTheme:i}=(0,t.useTheme)(),[s,l]=(0,r.useState)(!1);(0,r.useEffect)(()=>
1{l(!0)},[]);let o="dark"===a?"light":"dark",c=o===n,u=(0,r.useCallback)(e=>{i(e===n?"system":e)},[n,i]),d=(0,r.useCallback)(()=>{let e;i((e="dark"===a?"light":"dark")===n?"system":e)},[a,n,i]);return{theme:function(e){switch(e){case"light":case"dark":case"system":return e;default:return"system"}}(e),resolvedTheme:a,systemTheme:n,targetTheme:o,returnsToSystem:c,selectTheme:u,setTheme:i,toggleTheme:d,mounted:s}}])},408557,e=>{"use strict";var t=e.i(944242);e.s(["getTeamAvatarUrl",0,function(e,r=t.env.NEXT_PUBLIC_DASHBOARD_CLOUDFRONT_URL){if(e)return`${r}/team-avatars/${e}`}])},272304,e=>{"use strict";var t=e.i(817422),r=e.i(712671);t.z.object({query:t.z.string().max(100)}),t.z.object({emailId:t.z.string().min(1)}),t.z.object({id:t.z.string().min(1),email:t.z.email()}),t.z.object({id:t.z.uuid(),content:t.z.record(t.z.string(),t.z.unknown()),variables:t.z.array(r.variableNameSchema).max(r.MAX_BATCH_VARIABLES).default([])}),t.z.object({id:t.z.string().min(1),type:t.z.enum(["sending","receiving"]).optional(),expiresIn:t.z.enum(["10m","3h","24h","48h"]).default("48h")}),t.z.object({data:t.z.object({email_id:t.z.string(),type:t.z.enum(["sending","receiving"]).optional()})}),t.z.object({page:t.z.number().int(),limit:t.z.number().int(),cursorDate:t.z.string(),cursorId:t.z.string(),direction:t.z.string(),query:t.z.string(),apiKey:t.z.string(),statuses:t.z.array(t.z.string()),startDate:t.z.date(),endDate:t.z.date(),timezone:t.z.string()});let a=t.z.object({id:t.z.string(),to:t.z.array(t.z.string()),cc:t.z.array(t.z.string()).nullable().optional(),bcc:t.z.array(t.z.string()).nullable().optional(),subject:t.z.string(),created_at:t.z.string(),last_event:t.z.string().nullable(),sent_at:t.z.string().nullable()}),n=a.extend({type:t.z.literal("inbound"),from:t.z.string(),above_quota:t.z.boolean()}),i=a.extend({type:t.z.literal("outbound"),scheduled_at:t.z.string().nullable().optional(),status_breakdown:t.z.array(t.z.object({status:t.z.string(),count:t.z.number()})).optional()});t.z.object({total:t.z.number(),data:t.z.array(t.z.union([n,i])),prevCursorDate:t.z.string().nullable().optional(),prevCursorId:t.z.string().nullable().optional(),nextCursorDate:t.z.string().nullable().optional(),nextCursorId:t.z.string().nullable().optional()});let s=t.z.enum(["received","delivered","bounced","complained","opened","clicked","canceled","delivery_delayed","failed","failed_rendering","scheduled","sent","unsubscribed","unique_opened","unique_clicked","queued","suppressed"]);t.z.object({inboundEmailId:t.z.string().transform(e=>e.trim()).pipe(t.z.uuid())}),t.z.object({emailId:t.z.string().transform(e=>e.trim()).pipe(t.z.uuid())}),e.s(["STATUS_COLORS",0,{received:"var(--cyan-a11)",delivered:"var(--green-a11)",complained:"var(--amber-a11)",bounced:"var(--red-a11)",opened:"var(--blue-a11)",clicked:"var(--violet-a11)",delivery_delayed:"var(--sand-a11)",failed:"var(--red-a9)",failed_rendering:"var(--amber-a12)",scheduled:"var(--mauve-a11)",sent:"var(--slate-a11)",canceled:"var(--mauve-a10)",unsubscribed:"var(--orange-a11)",unique_opened:"var(--blue-a11)",unique_clicked:"var(--violet-a11)",queued:"var(--sand-a11)",suppressed:"var(--slate-a11)"},"STATUS_LABELS",0,{received:"Received",delivered:"Delivered",bounced:"Bounced",complained:"Complained",opened:"Opened",clicked:"Clicked",canceled:"Canceled",delivery_delayed:"Delivery delayed",failed:"Failed",failed_rendering:"Failed rendering",scheduled:"Scheduled",sent:"Sent",unsubscribed:"Unsubscribed",unique_opened:"Opened",unique_clicked:"Clicked",queued:"Queued",suppressed:"Suppressed"},"StatusTypeEnum",0,s])},441465,e=>{"use strict";var t=e.i(410856),r=e.i(345255),a=e.i(294237),n=e.i(635790),i=e.i(624175),s=e.i(378571);let l=(0,a.cva)("relative shrink-0 flex ",{variants:{size:{1:"min-w-[24px] min-h-[24px] h-[24px] w-[24px] text-xs",2:"min-w-20 min-h-20 w-20 h-20 text-3xl"},variant:{rounded:["rounded-full border border-transparent","font-medium uppercase text-default"],squared:["overflow-hidden font-bold uppercase text-white dark:text-gray-a11"]}},compoundVariants:[{variant:"squared",size:"1",className:"rounded-lg"},{variant:"squared",size:"2",className:"rounded-3xl"}],defaultVariants:{size:"1",variant:"rounded"}}),o=/^.*?([a-zA-Z0-9])/,c=["#43FEA4","#9176FE","#FF64B4","#3B9EFF","#FEAC43","#FF9CF0","#64FFDA","#FF7373","#C176FF","#D4A5A5"],u=({color:e="#43FEA4",className:r})=>{let{resolvedTheme:a}=(0,n.useTheme)(),[l,o]=i.default.useState();i.default.useLayoutEffect(()=>{o(a)},[a]);let c="dark"===l;return(0,t.jsxs)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:(0,s.cn)(r,{"saturate-150":c,"contrast-100 saturate-200":!c}),children:[(0,t.jsxs)("g",{clipPath:"url(#avatar-team-fallback-cl
1ip)",children:[(0,t.jsx)("rect",{width:20,height:20,fill:c?"#000":"#000308e2",rx:5.5}),(0,t.jsx)("rect",{width:20,height:20,fill:"url(#avatar-team-fallback-gradient)",fillOpacity:.2,rx:5.5}),(0,t.jsx)("g",{filter:"url(#avatar-team-fallback-blur-1)",opacity:.3,children:(0,t.jsx)("circle",{cx:16,cy:17,r:6,fill:e,fillOpacity:.671})}),(0,t.jsx)("g",{filter:"url(#avatar-team-fallback-blur-2)",opacity:.1,children:(0,t.jsx)("circle",{cx:16,cy:16,r:6,fill:e,fillOpacity:.671})}),(0,t.jsx)("g",{filter:"url(#avatar-team-fallback-blur-3)",opacity:.4,children:(0,t.jsx)("circle",{cx:17,cy:19,r:6,fill:e,fillOpacity:.671})}),(0,t.jsx)("rect",{width:20,height:20,fill:e,fillOpacity:.15,rx:5.5}),(0,t.jsx)("g",{style:{mixBlendMode:"hard-light"},children:(0,t.jsx)("rect",{width:20,height:20,fill:"#6A62FF",fillOpacity:.1,rx:5.5})})]}),c?(0,t.jsx)("rect",{width:19,height:19,x:.5,y:.5,stroke:"#FDFDFD",strokeOpacity:.1,rx:5}):(0,t.jsx)("rect",{width:19,height:19,x:.5,y:.5,stroke:"#000",strokeOpacity:.1,rx:5}),(0,t.jsxs)("defs",{children:[(0,t.jsxs)("filter",{id:"avatar-team-fallback-blur-1",width:32,height:32,x:0,y:1,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,t.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,t.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,t.jsx)("feGaussianBlur",{result:"effect1_foregroundBlur_5_17",stdDeviation:5})]}),(0,t.jsxs)("filter",{id:"avatar-team-fallback-blur-2",width:22,height:22,x:5,y:5,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,t.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,t.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,t.jsx)("feGaussianBlur",{result:"effect1_foregroundBlur_5_17",stdDeviation:2.5})]}),(0,t.jsxs)("filter",{id:"avatar-team-fallback-blur-3",width:22,height:22,x:6,y:8,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,t.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,t.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,t.jsx)("feGaussianBlur",{result:"effect1_foregroundBlur_5_17",stdDeviation:2.5})]}),(0,t.jsxs)("linearGradient",{id:"avatar-team-fallback-gradient",x1:10,x2:10,y1:0,y2:20,gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#FDFDFD"}),(0,t.jsx)("stop",{offset:1,stopColor:"#FDFDFD",stopOpacity:0})]}),(0,t.jsx)("clipPath",{id:"avatar-team-fallback-clip",children:(0,t.jsx)("rect",{width:20,height:20,fill:"#FDFDFD",rx:5.5})})]})]})};e.s(["Fallback",0,function({children:e,delayMs:a=0,className:n,variant:l,size:d,...m}){let h="string"==typeof e?e:e?.toString(),f=i.default.useMemo(()=>h?.match(o)?.[1]?.toUpperCase()??"#",[h]);return(0,t.jsxs)(r.Avatar.Fallback,{...m,className:(0,s.cn)("m-auto",n),delay:a,children:["squared"===l&&f&&(0,t.jsx)(u,{color:function(e){if(!e?.trim())return c[0];let t=e.trim()[0].toLowerCase().charCodeAt(0);if(t>=97&&t<=122){let e=(t-97)%c.length;return c[e]}return c[0]}(f),className:"w-full! h-full! absolute inset-0"}),(0,t.jsx)("span",{className:"relative",children:f})]})},"Image",0,function({variant:e,size:a,className:n,src:i,...l}){return i?"rounded"===e?(0,t.jsx)(r.Avatar.Image,{src:i,className:(0,s.cn)("-m-px rounded-full max-w-none w-[calc(100%+2px)] ring-1 ring-focus after:ring-inset",n),...l}):(0,t.jsx)("span",{className:(0,s.cn)("w-full h-full absolute overflow-hidden after:overflow-hidden after:inset-0 after:absolute after:ring-1 after:ring-focus after:ring-inset after:z-10 after:block",{"after:rounded-lg":"1"===a,"after:rounded-3xl":"2"===a},n),children:(0,t.jsx)(r.Avatar.Image,{src:i,className:"w-full h-full object-cover",...l})}):null},"Root",0,function({children:e,className:a,size:n="1",variant:o="rounded",...c}){return(0,t.jsx)(r.Avatar.Root,{...c,className:(0,s.cn)(l({size:n,variant:o}),a),style:{background:"rounded"===o?"linear-gradient(42deg, var(--gray-1), var(--gray-2)) padding-box, linear-gradient(42deg, var(--gray-a2) 45%, var(--gray-a6)) border-box":"none"},children:i.default.Children.map(e,e=>i.default.isValidElement(e)?i.default.cloneElement(e,{variant:o,size:n}):e)})}])},413974,e=>{"use strict";var t=e.i(410856),r=e.i(347692);e.s(["IconArrows",0,e=>(0,t.jsx)(r.IconBase,{...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M16.5 8q.9 0 1 1v7.2a1 1 0 0 0 1.7.7l1-1.1a1 1 0 0 1 1.5 1.4l-4.5 4.5-.4.3h-.3l-.7-.3-4.5-4.5a1 1 0 0 1 1.4-1.4l1 1a1 1 0 0 0 1.8-.6V9q0-1 1-1m-9-6q.4 0 .7.3l4.5 4.5a1 1 0 0 1-1.4 1.4l-1-1a1 1 0 0 0-1.8.6V15a1 1 0 0 1-2 0V7.8a1 1 0 0 0-1.7-.7l-1 1.1a1 1 0 0 1-1.5-1.4l4.5-4.5.4-.3z"})})])},421845,e=>{"use strict";var t=e.i(410856),r=e.i(347692);e.s(["IconEmail",0,e=>(0,t.jsx)(r.IconBase,{...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M19 4a3 3 0 0 1 3 3v10a3 3 0 0 1-2.846 2.996L19 20H5l-.154-.004A3 3 0 0 1 2 17V7a3 3 0 0 1 3-3zm-4 7a5 5 0 0 1-6 0L4.8 7.85a.5.5 0 0 0-.8.4V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V8.25a.5.5 0 0 0-.8-.4zm-4.8-1.6a3 3 0 0 0 3.6 0l3.334-2.5a.5.5 0 0 0-.3-.9H7.166a.5.5 0 0 0-.3.9z"})})])},575957,e=>{"use strict";var t=e.i(410856),r=e.i(347692);e.s(["IconGithub",0,e=>(0,t.jsx)(r.IconBase,{...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M19 2.1q.8.2.9.8.4 1.5.1 3.2 0 .4.2.7.8 1.6.7 3.4c0 3-2 5-4.2 6q-1 .4-.9 1.4.2.8.1 1.6V21a1 1 0 0 1-2 0v-1.9q.1-1.6-.8-2.8a1 1 0 0 1 .8-1.6c2.6 0 5-1.8 5-4.5V10q0-1.5-.8-2.9l-.2-.8.2-.8c0-.7-.6-1-1-.6l-.5.3a1 1 0 0 1-.9.3Q12 5 8.1 5.6a1 1 0 0 1-1-.3l-.4-.5q-.8-.5-1 .6l.1 1q.1.5-.1.8a4 4 0 0 0-.8 3c0 2.7 2.4 4.5 5 4.5a1 1 0 0 1 .8 1.6 4 4 0 0 0-.8 2.9V2
11a1 1 0 0 1-2 0q-.1-.8-1-.8-1.6.3-2.8-.5a5 5 0 0 1-2-2.8 1 1 0 0 1 1.9-.7q.3 1.1 1.2 1.8.6.5 2.3-.1.5-.2.5-.7v-.1q.2-.6-.3-.8a6.4 6.4 0 0 1-4.8-6v-.4q0-1.5.7-3.1.2-.3.1-.7A8 8 0 0 1 4 2.9v-.2a1 1 0 0 1 1-.6q1.5 0 3 1.1.4.3.9.3 3-.4 6.3 0 .5 0 .8-.3 1.5-1 3-1z"})})])},511416,e=>{"use strict";var t=e.i(410856),r=e.i(347692);e.s(["IconLoader",0,e=>(0,t.jsx)(r.IconBase,{...e,children:(0,t.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 12a9 9 0 1 1-9-9"})})])},715320,194142,e=>{"use strict";var t=e.i(410856),r=e.i(347692);e.s(["IconMoon",0,e=>(0,t.jsx)(r.IconBase,{...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M7.2 5.8v-.3a8 8 0 0 0 5 14.3l-.5 1 .5 1h-.5a10 10 0 0 1-9.4-9.5v-.5A10 10 0 0 1 9 2.3q.7-.2.6.6l-.1.4-.4 2.5v.4a9 9 0 0 0 8.6 8.5h.4q1.5 0 2.9-.4.8 0 .6.6l-.1.4a10 10 0 0 1-9.4 6.5l-.5-1 .5-1a8 8 0 0 0 6.3-3h-.3c-6 0-11-5-11-11"})})],715320),e.s(["IconSun",0,e=>(0,t.jsx)(r.IconBase,{...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M12 18a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0v-2a1 1 0 0 1 1-1m-5.655-1.754a1 1 0 1 1 1.414 1.414l-1.414 1.414A1 1 0 1 1 4.93 17.66zm9.9 0a1 1 0 0 1 1.413 0l1.414 1.414a1 1 0 1 1-1.414 1.414l-1.414-1.414a1 1 0 0 1 0-1.414M12 8a4 4 0 1 1 0 8 4 4 0 0 1 0-8m0 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4m-6.995.995a1 1 0 1 1 0 2h-2a1 1 0 1 1 0-2zm16 0a1 1 0 1 1 0 2h-2a1 1 0 1 1 0-2zM4.93 4.933a1 1 0 0 1 1.414 0l1.414 1.414A1 1 0 1 1 6.345 7.76L4.93 6.347a1 1 0 0 1 0-1.414m12.727 0a1 1 0 1 1 1.414 1.414L17.658 7.76a1 1 0 1 1-1.414-1.414zM12 2a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0V3a1 1 0 0 1 1-1"})})],194142)},926884,e=>{"use strict";var t=e.i(410856),r=e.i(347692);e.s(["IconSync",0,e=>(0,t.jsx)(r.IconBase,{...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M3.194 13.107c.507 0 .93.377 1.054.868A8 8 0 0 0 12 20a7.97 7.97 0 0 0 5.704-2.394c.29-.295.064-.762-.35-.762h-1.4a1 1 0 0 1 0-2H21a1 1 0 0 1 .999 1L22 21a1 1 0 0 1-2 0v-1.504c0-.48-.643-.709-.986-.371A9.96 9.96 0 0 1 12 22c-4.758 0-8.74-3.323-9.751-7.775-.134-.59.34-1.117.945-1.118M12 2c4.8 0 8.81 3.382 9.777 7.894.126.586-.347 1.106-.947 1.106-.511 0-.936-.384-1.056-.88A8 8 0 0 0 12 4a7.97 7.97 0 0 0-5.704 2.394c-.29.295-.065.762.35.762h1.4a1 1 0 0 1 0 2H3a1 1 0 0 1-.999-1L2 3a1 1 0 0 1 2 0v1.501c0 .48.643.71.985.372A9.97 9.97 0 0 1 12 2"})})])},811100,11184,e=>{"use strict";var t=e.i(410856),r=e.i(347692);e.s(["IconXTwitter",0,e=>(0,t.jsx)(r.IconBase,{...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M8 3a2 2 0 0 1 1.6.7l3.9 4.7q.3.3.7 0l5-5.1a1 1 0 0 1 1.5 1.4L15.4 10q-.3.3 0 .7l5.9 7a2 2 0 0 1-1.6 3.3H16a2 2 0 0 1-1.3-.6l-.2-.1-3.9-4.7h-.7l-5 5.1a1 1 0 0 1-1.5-1.4L8.6 14q.3-.3 0-.7l-5.9-7A2 2 0 0 1 4.1 3zm7.8 15.8.4.2h2.5q.7-.2.3-.8L8.2 5.2 7.8 5H5.3q-.7.2-.3.8z"})})],811100),e.s(["IconYoutube",0,e=>(0,t.jsx)(r.IconBase,{...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M12 4c3 0 5.8.4 7.4.7q1.6.4 2 1.9a26 26 0 0 1 0 10.8v.2q-.5 1.4-2 1.7a43 43 0 0 1-14.1.1h-.7q-1.5-.4-2-1.8v-.2a26 26 0 0 1 0-10.8Q3 5 4.4 4.7h.2Q7.2 4 12 4m0 2q-4.6.2-7 .6-.4 0-.5.4a24 24 0 0 0 0 10q0 .3.5.4a41 41 0 0 0 14 0q.4 0 .5-.4a24 24 0 0 0 0-10q0-.3-.5-.4-2.4-.5-7-.6m-3.7 4.4c0-2 2-3.1 3.7-2.1l2.7 1.6c1.6 1 1.6 3.3 0 4.2L12 15.7l-.1.1c-1.6.8-3.5-.3-3.6-2zM11 10a.5.5 0 0 0-.7.4v3.2q.1.7.7.4l2.6-1.6q.6-.4 0-.8z"})})],11184)},465530,e=>{"use strict";var t=e.i(95542);e.s(["getEmailStatusAppearance",0,e=>{switch(e){case t.EmailStatus.Received:case t.EmailStatus.Delivered:return"green";case t.EmailStatus.Complained:return"yellow";case t.EmailStatus.Bounced:case t.EmailStatus.Failed_Rendering:case t.EmailStatus.Failed:return"red";case t.EmailStatus.Clicked:return"violet";case t.EmailStatus.Opened:return"blue";case t.EmailStatus.Delivery_Delayed:return"sand";case t.EmailStatus.Queued:case t.EmailStatus.Scheduled:case t.EmailStatus.Sent:case t.EmailStatus.Suppressed:return"gray";case t.EmailStatus.Canceled:return"dimgray";default:return"gray"}}])},95542,e=>{"use strict";var t,r,a,n,i=((t={}).Received="received",t.Bounced="bounced",t.Canceled="canceled",t.Clicked="clicked",t.Complained="complained",t.Delivered="delivered",t.Delivery_Delayed="delivery_delayed",t.Failed="failed",t.Failed_Re
1ndering="failed_rendering",t.Opened="opened",t.Scheduled="scheduled",t.Sent="sent",t.Queued="queued",t.Suppressed="suppressed",t.Unsubscribed="unsubscribed",t),s=((r={}).Enabled="enabled",r.Disabled="disabled",r),l=((a={}).Open="open",a.Paid="paid",a),o=((n={}).Pending="pending",n.Completed="completed",n.Failed="failed",n.Expired="expired",n);e.s(["EmailStatus",()=>i,"ExportStatus",()=>o,"InvoiceStatus",()=>l,"WebhookStatus",()=>s])},562342,e=>{"use strict";var t=e.i(624175),r=e.i(167953),a=e.i(844467),n=e.i(62446),i=e.i(898756);let s=t.forwardRef(function(e,s){let{className:l,render:o,delay:c,style:u,...d}=e,{imageLoadingStatus:m}=(0,n.useAvatarRootContext)(),[h,f]=t.useState(void 0===c),p=(0,r.useTimeout)();return t.useEffect(()=>(void 0!==c&&p.start(c,()=>f(!0)),p.clear),[p,c]),(0,a.useRenderElement)("span",e,{state:{imageLoadingStatus:m},ref:s,props:d,stateAttributesMapping:i.avatarStateAttributesMapping,enabled:"loaded"!==m&&h})});e.s(["AvatarFallback",0,s])},877458,e=>{"use strict";var t=e.i(624175),r=e.i(581440),a=e.i(899468),n=e.i(844467),i=e.i(62446),s=e.i(898756),l=e.i(152606),o=e.i(869804),c=e.i(219924),u=e.i(349177);let d={...s.avatarStateAttributesMapping,...o.transitionStatusMapping},m=t.forwardRef(function(e,s){let{className:o,render:m,onLoadingStatusChange:h,referrerPolicy:f,crossOrigin:p,style:g,...v}=e,b=(0,i.useAvatarRootContext)(),x=function(e,{referrerPolicy:r,crossOrigin:n}){let[i,s]=t.useState("idle");return(0,a.useIsoLayoutEffect)(()=>{if(!e)return s("error"),u.NOOP;let t=!0,a=new window.Image,i=e=>()=>{t&&s(e)};return s("loading"),a.onload=i("loaded"),a.onerror=i("error"),r&&(a.referrerPolicy=r),a.crossOrigin=n??null,a.src=e,a.complete&&s(a.naturalWidth>0?"loaded":"error"),()=>{t=!1}},[e,n,r]),i}(e.src,{referrerPolicy:f,crossOrigin:p}),y="loaded"===x,{mounted:S,transitionStatus:j,setMounted:w}=(0,c.useTransitionStatus)(y),E=t.useRef(null),C=(0,r.useStableCallback)(e=>{h?.(e),b.setImageLoadingStatus(e)});(0,a.useIsoLayoutEffect)(()=>{"idle"!==x&&C(x)},[x,C]),(0,l.useOpenChangeComplete)({open:y,ref:E,onComplete(){y||w(!1)}});let T=(0,n.useRenderElement)("img",e,{state:{imageLoadingStatus:x,transitionStatus:j},ref:[s,E],props:v,stateAttributesMapping:d,enabled:S});return S?T:null});e.s(["AvatarImage",0,m],877458)},345255,e=>{"use strict";e.s([],130546),e.i(130546);var t=e.i(251561),r=e.i(877458),a=e.i(562342);e.s(["Fallback",()=>a.AvatarFallback,"Image",()=>r.AvatarImage,"Root",()=>t.AvatarRoot],422427);var n=e.i(422427);e.s(["Avatar",0,n],345255)},251561,e=>{"use strict";var t=e.i(624175),r=e.i(844467),a=e.i(62446),n=e.i(898756),i=e.i(410856);let s=t.forwardRef(function(e,s){let{className:l,render:o,style:c,...u}=e,[d,m]=t.useState("idle"),h=t.useMemo(()=>({imageLoadingStatus:d,setImageLoadingStatus:m}),[d,m]),f=(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:s,props:u,stateAttributesMapping:n.avatarStateAttributesMapping});return(0,i.jsx)(a.AvatarRootContext.Provider,{value:h,children:f})});e.s(["AvatarRoot",0,s])},62446,898756,e=>{"use strict";var t=e.i(863177),r=e.i(624175);let a=r.createContext(void 0);e.s(["AvatarRootContext",0,a,"useAvatarRootContext",0,function(){let e=r.useContext(a);if(void 0===e)throw Error((0,t.default)(13));return e}],62446),e.s(["avatarStateAttributesMapping",0,{imageLoadingStatus:()=>null}],898756)},248051,e=>{"use strict";var t=e.i(139523);e.s(["useAction",()=>t.t])},796760,139523,e=>{"use strict";function t(e){return"object"==typeof e&&null!==e&&"digest"in e&&"BAILOUT_TO_CLIENT_SIDE_RENDERING"===e.digest}let r=new Set(Object.values({NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401}));function a(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,a]=e.digest.split(";");return"NEXT_HTTP_ERROR_FALLBACK"===t&&r.has(Number(a))}var n,i=((n=i||{})[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n);function s(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,a]=t,n=t.slice(2,-2).join(";"),s=Number(t.at(-2));return"NEXT_REDIRECT"===r&&("replace"===a||"push"===a)&&"string"==typeof n&&!isNaN(s)&&s in i}let l=Symbol.for("react.postpone");var o=class e{#e;static isNavigationError(e){var r,n,i;return s(e)||a(e)||t(e)||"object"==typeof(n=r=e)&&null!==n&&"digest"in n&&"string"==typeof n.digest&&"DYNAMIC_SERVER_USAGE"===n.digest||t(r)||s(i=r)||a(i)||function(e){if("object"==typeof e&&null!==e&&"string"==typeof e.message){var t;return(t=e.message).includes("needs to bail out of prerendering at this point because it used")&&t.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}return!1}(r)||"object"==typeof e&&null!==e&&e.$$typeof===l}static getNavigationKind(e){if(s(e))return"redirect";if(a(e)){let t=Number(e.digest.split(";")[1]);if(404===t)return"notFound";if(403===t)return"forbidden";if(401===t)return"unauthorized"}return"other"}handleError(t){if(e.isNavigationError(t)){this.#e=t;return}throw t}get error(){return this.#e}},c=e.i(624175);let u=({isIdle:e,isExecuting:t,result:r,hasNavigated:a,hasThrownError:n})=>e?"idle":t?"executing":n||void 0!==r.validationErrors||void 0!==r.serverError?"hasErrored":a?"hasNavigated":"hasSucceeded",d=({status:e,isTransitioning:t})=>({isIdle:"idle"===e,isExecuting:"executing"===e,isTransitioning:t,isPending:"executing"===e||t,hasSucceeded:"hasSucceeded"===e,hasErrored:"hasErrored"===e,hasNavigated:"hasNavigated"===e});function m(e){let t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>e=>t.current?.(e),[])}let h=({result:e,input:t,status:r,cb:a,throwOnNavigation:n,navigationError:i,thrownError:s})=>{let l=m(a?.onExecute),u=m(a?.onSuccess),d=m(a?.onError),h=m(a?.onSettled),f=m(a?.onNavigation);c.useEffect(()=>{(async()=>{switch(r){case"executing":await Promise.resolve(l?.({input:t})).then(()=>{});break;case"hasSucceeded":if(i||s)break;await Promise.all([Promise.resolve(u?.({data:e.data,input:t})),Promise.resolve(h?.({result:e,input:t}))]);break;case"hasErrored":await Promise.all([Promise.resolve(d?.({error:{...e,...s?{thrownError:s}:{}}
1,input:t})),Promise.resolve(h?.({result:e,input:t}))])}if(!n&&i&&("redirect"===o.getNavigationKind(i)||"hasNavigated"===r)){let r=o.getNavigationKind(i);await Promise.all([Promise.resolve(f?.({input:t,navigationKind:r})),Promise.resolve(h?.({result:e,input:t,navigationKind:r}))])}})().catch(console.error)},[t,r,e,n,i,s,l,u,h,d,f])};function f(e,t,r){let[a,n]=c.useTransition(),[i,s]=c.useState({}),[l,m]=c.useState(),[f,p]=c.useState(!1),[g,v]=c.useState(null),[b,x]=c.useState(null),[y,S]=c.useState(!0),j=c.useRef(0),w=c.useRef(r);w.current=r;let E=u({isExecuting:f,result:i,isIdle:y,hasNavigated:null!==g,hasThrownError:null!==b}),C=c.useCallback(t=>{let r=++j.current;S(!1),v(null),x(null),m(t),p(!0),n(()=>{w.current?.(t),e(t).then(e=>{r===j.current&&s(e??{})}).catch(e=>{if(r===j.current&&(s({}),o.isNavigationError(e)?v(e):x(e)),!o.isNavigationError(e))throw e}).finally(()=>{r===j.current&&p(!1)})})},[e]),T=c.useCallback(t=>new Promise((r,a)=>{let i=++j.current;S(!1),v(null),x(null),m(t),p(!0),n(()=>{w.current?.(t),e(t).then(e=>{i===j.current&&s(e??{}),r(e)}).catch(e=>{if(i===j.current&&(s({}),o.isNavigationError(e)?v(e):x(e)),a(e),!o.isNavigationError(e))throw e}).finally(()=>{i===j.current&&p(!1)})})}),[e]),k=c.useCallback(()=>{S(!0),v(null),x(null),m(void 0),s({})},[]);if(h({result:i??{},input:l,status:E,throwOnNavigation:t?.throwOnNavigation===!0,navigationError:g,thrownError:b,cb:t}),t?.throwOnNavigation===!0&&null!==g)throw g;return{isTransitioning:a,result:i,clientInput:l,status:E,execute:C,executeAsync:T,reset:k,shorthandStatus:d({status:E,isTransitioning:a})}}e.s(["n",0,(e,t)=>{let[r,a]=c.useOptimistic(t.currentState,t.updateFn),{currentState:n,updateFn:i,...s}=t,{result:l,clientInput:o,status:u,execute:d,executeAsync:m,reset:h,shorthandStatus:p}=f(e,s,a);return{execute:d,executeAsync:m,input:o,result:l,optimisticState:r,reset:h,status:u,...p}},"r",0,(e,t)=>{if("function"!=typeof c.useActionState)throw Error("useStateAction requires React 19+ (Next.js 15+). For older versions, use React's useActionState directly with your safe action.");let r=t?.initResult,a=c.useRef(null),n=c.useRef(null),[i,s]=c.useState(null),[l,m]=c.useState(null),[f,p]=c.useState(!0),[g,v]=c.useState(!1),[b,x]=c.useState(),[y,S]=c.useTransition(),j=c.useCallback(async(t,r)=>{p(!1),v(!1),x(r),s(null),m(null);let i=n.current??t;n.current=null;try{let t=await e(i,r);return a.current?.resolve(t),t}catch(e){if(o.isNavigationError(e))return s(e),a.current?.reject(e),{};throw m(e),a.current?.reject(e),e}finally{a.current=null}},[e]),[w,E,C]=c.useActionState(j,r??{}),T=c.useCallback(e=>{p(!1),v(!1),s(null),m(null),x(e),S(()=>{E(e)})},[E]),k=c.useCallback(e=>new Promise((t,r)=>{a.current={resolve:t,reject:r},T(e)}),[T]),A=c.useCallback(()=>{p(!0),v(!0),s(null),m(null),x(void 0),n.current=r??{}},[r]),N=g?r??{}:w??{},I=u({isExecuting:C,result:N,isIdle:f&&!C,hasNavigated:null!==i,hasThrownError:null!==l});if(h({result:N,input:b,status:I,cb:t,throwOnNavigation:t?.throwOnNavigation===!0,navigationError:i,thrownError:l}),t?.throwOnNavigation===!0&&null!==i)throw i;return{execute:T,executeAsync:k,formAction:E,input:b,result:N,reset:A,status:I,...d({status:I,isTransitioning:y})}},"t",0,(e,t)=>{let{result:r,clientInput:a,status:n,execute:i,executeAsync:s,reset:l,shorthandStatus:o}=f(e,t);return{execute:i,executeAsync:s,input:a,result:r,reset:l,status:n,...o}}],139523),e.s([],796760)},635790,e=>{"use strict";var t=e.i(624175),r=(e,t,r,a,n,i,s,l)=>{let o=document.documentElement,c=["light","dark"];function u(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,a=r&&i?n.map(e=>i[e]||e):n;r?(o.classList.remove(...a),o.classList.add(i&&i[t]?i[t]:t)):o.setAttribute(e,t)}),r=t,l&&c.includes(r)&&(o.style.colorScheme=r)}if(a)u(a);else try{let e=localStorage.getItem(t)||r,a=s&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;u(a)}catch(e){}},a=["light","dark"],n="(prefers-color-scheme: dark)",i="u"<typeof window,s=t.createContext(void 0),l={setTheme:e=>{},themes:[]},o=["light","dark"],c=({forcedTheme:e,disableTransitionOnChange:r=!1,enableSystem:i=!0,enableColorScheme:l=!0,storageKey:c="theme",themes:f=o,defaultTheme:p=i?"system":"light",attribute:g="data-theme",value:v,children:b,nonce:x,scriptProps:y})=>{let[S,j]=t.useState(()=>d(c,p)),[w,E]=t.useState(()=>"system"===S?h():S),C=v?Object.values(v):f,T=t.useCallback(e=>{let t=e;if(!t)return;"system"===e&&i&&(t=h());let n=v?v[t]:t,s=r?m(x):null,o=document.documentElement,c=e=>{"class"===e?(o.classList.remove(...C),n&&o.classList.add(n)):e.startsWith("data-")&&(n?o.setAttribute(e,n):o.removeAttribute(e))};if(Array.isArray(g)?g.forEach(c):c(g),l){let e=a.includes(p)?p:null,r=a.includes(t)?t:e;o.style.colorScheme=r}null==s||s()},[x]),k=t.useCallback(e=>{let t="function"==typeof e?e(S):e;j(t);try{localStorage.setItem(c,t)}catch(e){}},[S]),A=t.useCallback(t=>{E(h(t)),"system"===S&&i&&!e&&T("system")},[S,e]);t.useEffect(()=>{let e=window.matchMedia(n);return e.addListener(A),A(e),()=>e.removeListener(A)},[A]),t.useEffect(()=>{let e=e=>{e.key===c&&(e.newValue?j(e.newValue):k(p))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[k]),t.useEffect(()=>{T(null!=e?e:S)},[e,S]);let N=t.useMemo(()=>({theme:S,setTheme:k,forcedTheme:e,resolvedTheme:"system"===S?w:S,themes:i?[...f,"system"]:f,systemTheme:i?w:void 0}),[S,k,e,w,i,f]);return t.createElement(s.Provider,{value:N},t.createElement(u,{forcedTheme:e,storageKey:c,attribute:g,enableSystem:i,enableColorScheme:l,defaultTheme:p,value:v,themes:f,nonce:x,scriptProps:y}),b)},u=t.memo(({forcedTheme:e,storageKey:a,attribute:n,enableSystem:i,enableColorScheme:s,defaultTheme:l,value:o,themes:c,nonce:u,scriptProps:d})=>{let m=JSON.stringify([n,a,l,e,c,o,i,s]).slice(1,-1);return t.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"u"<typeof window?u:"",dangerouslySetInnerHTML:{__html:`(${r.toString()})(${m})`}})}),d=(e,t)=>{let r;if(!i){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},m=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},h=e=>
1(e||(e=window.matchMedia(n)),e.matches?"dark":"light");e.s(["ThemeProvider",0,e=>t.useContext(s)?t.createElement(t.Fragment,null,e.children):t.createElement(c,{...e}),"useTheme",0,()=>{var e;return null!=(e=t.useContext(s))?e:l}])},959628,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={callServer:function(){return i.callServer},createServerReference:function(){return l.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i=e.r(301961),s=e.r(22624),l=e.r(463789)},5777,e=>{"use strict";var t=e.i(624175);function r(e,r,a,n){var i=this,s=(0,t.useRef)(null),l=(0,t.useRef)(0),o=(0,t.useRef)(0),c=(0,t.useRef)(null),u=(0,t.useRef)([]),d=(0,t.useRef)(),m=(0,t.useRef)(),h=(0,t.useRef)(e),f=(0,t.useRef)(!0),p=(0,t.useRef)(),g=(0,t.useRef)();h.current=e;var v="u">typeof window,b=!r&&0!==r&&v;if("function"!=typeof e)throw TypeError("Expected a function");r=+r||0;var x=!!(a=a||{}).leading,y=!("trailing"in a)||!!a.trailing,S=!!a.flushOnExit&&y,j="maxWait"in a,w="debounceOnServer"in a&&!!a.debounceOnServer,E=j?Math.max(+a.maxWait||0,r):null,C=(0,t.useMemo)(function(){var e=function(e){var t=u.current,r=d.current;return u.current=d.current=null,l.current=e,o.current=o.current||e,m.current=h.current.apply(r,t)},t=function(e,t){b&&cancelAnimationFrame(c.current),c.current=b?requestAnimationFrame(e):setTimeout(e,t)},a=function(e){if(!f.current)return!1;var t=e-s.current;return!s.current||t>=r||t<0||j&&e-l.current>=E},C=function(t){return c.current=null,y&&u.current?e(t):(u.current=d.current=null,m.current)},T=function e(){var n=Date.now();if(x&&o.current===l.current&&k(),a(n))return C(n);if(f.current){var i=r-(n-s.current);t(e,j?Math.min(i,E-(n-l.current)):i)}},k=function(){n&&n({})},A=function(){if(v||w){var n,o=Date.now(),h=a(o);if(u.current=[].slice.call(arguments),d.current=i,s.current=o,S&&!p.current&&(p.current=function(){var e;"hidden"===(null==(e=globalThis.document)?void 0:e.visibilityState)&&g.current.flush()},null==(n=globalThis.document)||null==n.addEventListener||n.addEventListener("visibilitychange",p.current)),h){
1if(!c.current&&f.current)return l.current=s.current,t(T,r),x?e(s.current):m.current;if(j)return t(T,r),e(s.current)}return c.current||t(T,r),m.current}};return A.cancel=function(){var e=c.current;e&&(b?cancelAnimationFrame(c.current):clearTimeout(c.current)),l.current=0,u.current=s.current=d.current=c.current=null,e&&n&&n({})},A.isPending=function(){return!!c.current},A.flush=function(){return c.current?C(Date.now()):m.current},A},[x,j,r,E,y,S,b,v,w,n]);return g.current=C,(0,t.useEffect)(function(){return f.current=!0,function(){var e;S&&g.current.flush(),p.current&&(null==(e=globalThis.document)||null==e.removeEventListener||e.removeEventListener("visibilitychange",p.current),p.current=null),f.current=!1}},[S]),C}function a(e,t){return e===t}e.s(["useDebounce",0,function(e,n,i){var s=i&&i.equalityFn||a,l=(0,t.useRef)(e),o=(0,t.useState)({})[1],c=r((0,t.useCallback)(function(e){l.current=e,o({})},[o]),n,i,o),u=(0,t.useRef)(e);return s(u.current,e)||(c(e),u.current=e),[l.current,c]},"useDebouncedCallback",0,r])}]); 2 3//# sourceMappingURL=1j44y65yfpohh.js.map
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.