!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a09684-07c7-7983-9fe7-ab49b2eefd7f")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,235856,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},o){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))});e.s(["DocumentTextIcon",0,r],235856)},614991,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},o){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))});e.s(["PhotoIcon",0,r],614991)},519202,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},o){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.114 5.636a9 9 0 0 1 0 12.728M16.463 8.288a5.25 5.25 0 0 1 0 7.424M6.75 8.25l4.72-4.72a.75.75 0 0 1 1.28.53v15.88a.75.75 0 0 1-1.28.53l-4.72-4.72H4.51c-.88 0-1.704-.507-1.938-1.354A9.009 9.009 0 0 1 2.25 12c0-.83.112-1.633.322-2.396C2.806 8.756 3.63 8.25 4.51 8.25H6.75Z"}))});e.s(["SpeakerWaveIcon",0,r],519202)},53375,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},o){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 7.5A2.25 2.25 0 0 1 7.5 5.25h9a2.25 2.25 0 0 1 2.25 2.25v9a2.25 2.25 0 0 1-2.25 2.25h-9a2.25 2.25 0 0 1-2.25-2.25v-9Z"}))});e.s(["StopIcon",0,r],53375)},531650,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...n},o){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M18.97 3.659a2.25 2.25 0 0 0-3.182 0l-10.94 10.94a3.75 3.75 0 1 0 5.304 5.303l7.693-7.693a.75.75 0 0 1 1.06 1.06l-7.693 7.693a5.25 5.25 0 1 1-7.424-7.424l10.939-10.94a3.75 3.75 0 1 1 5.303 5.304L9.097 18.835l-.008.008-.007.007-.002.002-.003.002A2.25 2.25 0 0 1 5.91 15.66l7.81-7.81a.75.75 0 0 1 1.061 1.06l-7.81 7.81a.75.75 0 0 0 1.054 1.068L18.97 6.84a2.25 2.25 0 0 0 0-3.182Z",clipRule:"evenodd"}))});e.s(["PaperClipIcon",0,r],531650)},694913,864226,e=>{"use strict";var t=e.i(126435),r=e.i(403908);let n=/[#.]/g;var o=e.i(301800),a=e.i(773601),i=e.i(237925);function s(e,t,a){let s=a?function(e){let t=new Map;for(let r of e)t.set(r.toLowerCase(),r);return t}(a):void 0;return function(a,c,...d){let u;if(null==a)u={type:"root",children:[]},d.unshift(c);else{let m=(u=function(e,t){let r,o,a=e||"",i={},s=0;for(;s{"use strict";e.s(["htmlVoidElements",0,["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"]])},892542,e=>{"use strict";let t={}.hasOwnProperty;e.s(["zwitch",0,function(e,r){let n=r||{};function o(r,...n){let a=o.invalid,i=o.handlers;if(r&&t.call(r,e)){let n=String(r[e]);a=t.call(i,n)?i[n]:o.unknown}if(a)return a.call(this,r,...n)}return o.handlers=n.handlers||{},o.invalid=n.invalid,o.unknown=n.unknown,o}])},965542,291730,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473),o=e.i(128341),a=e.i(821369),i=e.i(994740),s=e.i(270401),l=e.i(972117),c=e.i(517567),d=e.i(777096),u=e.i(922083),m=e.i(933975);e.i(810810);var p=e.i(702378),f=e.i(241636);let h="data-message-chrome",g={[h]:""},b=`[${h}]`;e.s(["MESSAGE_CHROME_SELECTOR",0,b,"messageChromeProps",0,g],291730);let x=(0,a.default)(()=>e.A(666703),{loadableGenerated:{modules:[567707]}}),y="pointer-events-none sticky top-12 z-10 h-0",v="pointer-events-auto absolute right-2 top-2 flex items-center",w="mt-6 mb-4 text-foreground",k=e=>{let o,a,i=(0,r.c)(3),{children:s}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.cn)(w,"border-b border-border pb-1 text-2xl font-bold"),i[0]=o):o=i[0],i[1]!==s?(a=(0,t.jsx)("h1",{className:o,children:s}),i[1]=s,i[2]=a):a=i[2],a},j=e=>{let o,a,i=(0,r.c)(3),{children:s}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.cn)(w,"text-2xl font-bold"),i[0]=o):o=i[0],i[1]!==s?(a=(0,t.jsx)("h2",{className:o,children:s}),i[1]=s,i[2]=a):a=i[2],a},N=e=>{let o,a,i=(0,r.c)(3),{children:s}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.cn)(w,"text-base font-medium"),i[0]=o):o=i[0],i[1]!==s?(a=(0,t.jsx)("h3",{className:o,children:s}),i[1]=s,i[2]=a):a=i[2],a},_=e=>{let o,a,i=(0,r.c)(3),{children:s}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.cn)(w,"text-base font-medium"),i[0]=o):o=i[0],i[1]!==s?(a=(0,t.jsx)("h4",{className:o,children:s}),i[1]=s,i[2]=a):a=i[2],a},E=e=>{let o,a,i=(0,r.c)(3),{children:s}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.cn)(w,"text-base font-medium"),i[0]=o):o=i[0],i[1]!==s?(a=(0,t.jsx)("h5",{className:o,children:s}),i[1]=s,i[2]=a):a=i[2],a},S=e=>{let o,a,i=(0,r.c)(3),{children:s}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.cn)(w,"text-sm font-medium"),i[0]=o):o=i[0],i[1]!==s?(a=(0,t.jsx)("h6",{className:o,children:s}),i[1]=s,i[2]=a):a=i[2],a},A=e=>{let n,o=(0,r.c)(2),{children:a}=e;return o[0]!==a?(n=(0,t.jsx)("blockquote",{className:"mb-4 border-l-2 border-border pl-4 italic",children:a}),o[0]=a,o[1]=n):n=o[1],n},C=e=>{let n,o=(0,r.c)(2),{children:a}=e;return o[0]!==a?(n=(0,t.jsx)("p",{className:"mb-4 break-words text-sm font-normal leading-7",children:a}),o[0]=a,o[1]=n):n=o[1],n},M=e=>{let n,o=(0,r.c)(2),{children:a}=e;return o[0]!==a?(n=(0,t.jsx)("div",{className:"markdown-table my-6 overflow-x-auto rounded-lg border border-border bg-card text-foreground",children:(0,t.jsx)("table",{className:"w-full border-collapse",children:a})}),o[0]=a,o[1]=n):n=o[1],n},T=e=>{let n,o=(0,r.c)(2),{children:a}=e;return o[0]!==a?(n=(0,t.jsx)("thead",{className:"whitespace-nowrap border-b border-border text-foreground",children:a}),o[0]=a,o[1]=n):n=o[1],n},R=e=>{let n,o=(0,r.c)(2),{children:a}=e;return o[0]!==a?(n=(0,t.jsx)("tbody",{children:a}),o[0]=a,o[1]=n):n=o[1],n},I=e=>{let n,o=(0,r.c)(2),{children:a}=e;return o[0]!==a?(n=(0,t.jsx)("tr",{className:"border-b border-border last:border-b-0",children:a}),o[0]=a,o[1]=n):n=o[1],n},L=e=>{let n,o=(0,r.c)(2),{children:a}=e;return o[0]!==a?(n=(0,t.jsx)("th",{className:"border-r border-border p-3 text-left font-medium last:border-r-0",children:a}),o[0]=a,o[1]=n):n=o[1],n},O=e=>{let n,o=(0,r.c)(2),{children:a}=e;return o[0]!==a?(n=(0,t.jsx)("td",{className:"border-r border-border p-3 text-left last:border-r-0",children:a}),o[0]=a,o[1]=n):n=o[1],n},F=e=>{let n,o,a=(0,r.c)(4);if(a[0]!==e){let{node:t,...r}=e;n=r,a[0]=e,a[1]=n}else n=a[1];return a[2]!==n?(o=(0,t.jsx)("ul",{...n,className:"list-disc pl-8"}),a[2]=n,a[3]=o):o=a[3],o},D=e=>{let n,o,a=(0,r.c)(4);if(a[0]!==e){let{node:t,...r}=e;n=r,a[0]=e,a[1]=n}else n=a[1];return a[2]!==n?(o=(0,t.jsx)("ol",{...n,className:"list-decimal pl-8"}),a[2]=n,a[3]=o):o=a[3],o},B=e=>{let n,o=(0,r.c)(2),{children:a}=e;return o[0]!==a?(n=(0,t.jsx)("li",{className:"mt-1.5",children:a}),o[0]=a,o[1]=n):n=o[1],n},P=()=>{let e,n=(0,r.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("hr",{className:"my-6 border-t border-border"}),n[0]=e):e=n[0],e},H=e=>{let n,o=(0,r.c)(3),{src:a,alt:s}=e;if("string"!=typeof a||!a)return null;let l=s??"";return o[0]!==a||o[1]!==l?(n=(0,t.jsx)(i.default,{src:a,alt:l,width:0,height:0,sizes:"100vw",className:"w-full h-auto max-w-full rounded-lg",unoptimized:!0}),o[0]=a,o[1]=l,o[2]=n):n=o[2],n},z="opacity-0 transition-opacity duration-100 group-hover/codeblock:opacity-100",G="inline-flex rounded-md bg-popover",K=e=>{let o,a,i=(0,r.c)(3),{text:s}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.cn)(G,z),i[0]=o):o=i[0],i[1]!==s?(a=(0,t.jsx)("span",{className:o,children:(0,t.jsx)(p.CopyToClipboardButton,{text:s,hideCopyText:!0,className:"hover:bg-card-hover",size:"icon-sm",variant:"ghost"})}),i[1]=s,i[2]=a):a=i[2],a},U=e=>{let a,i,l,c,d,p,f=(0,r.c)(30),{children:h}=e,{resolvedTheme:b}=(0,o.useTheme)();if(f[0]!==h){let e,{className:t,children:r}=s.default.Children.toArray(h)[0].props;a=r,f[3]===Symbol.for("react.memo_cache_sentinel")?(e=/language-(\w+)/,f[3]=e):e=f[3],i=e.exec(t||""),f[0]=h,f[1]=a,f[2]=i}else a=f[1],i=f[2];let x=i,w=x?x[1]:null;if(w){let e,r,o,i,s,l,c,d="dark"===b?u.OPENROUTER_SHIKI_DARK_THEME:u.OPENROUTER_SHIKI_LIGHT_THEME,p=String(a);f[4]!==p?(e=p.trimEnd(),f[4]=p,f[5]=e):e=f[5];let h=e;return f[6]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.cn)(G,"h-8 select-none items-center px-1.5 text-xs leading-none text-muted-foreground",z),f[6]=r):r=f[6],f[7]!==w?(o=(0,t.jsx)("span",{className:r,children:w}),f[7]=w,f[8]=o):o=f[8],f[9]!==h?(i=(0,t.jsx)(K,{text:h}),f[9]=h,f[10]=i):i=f[10],f[11]!==o||f[12]!==i?(s=(0,t.jsx)("div",{className:y,...g,children:(0,t.jsxs)("div",{className:v,children:[o,i]})}),f[11]=o,f[12]=i,f[13]=s):s=f[13],f[14]!==h||f[15]!==w||f[16]!==d?(l=(0,t.jsx)(m.ShikiHighlighter,{code:h,lang:w,theme:d}),f[14]=h,f[15]=w,f[16]=d,f[17]=l):l=f[17],f[18]!==s||f[19]!==l?(c=(0,t.jsxs)("div",{className:"relative group/codeblock mb-4",children:[s,l]}),f[18]=s,f[19]=l,f[20]=c):c=f[20],c}let k=String(a);f[21]!==k?(l=k.trimEnd(),f[21]=k,f[22]=l):l=f[22];let j=l;return f[23]!==j?(c=(0,t.jsx)("div",{className:y,...g,children:(0,t.jsx)("div",{className:v,children:(0,t.jsx)(K,{text:j})})}),f[23]=j,f[24]=c):c=f[24],f[25]!==j?(d=(0,t.jsx)("pre",{className:"overflow-x-auto rounded-lg border border-border bg-card p-4",children:(0,t.jsx)("code",{className:"bg-transparent font-mono text-sm text-foreground",children:j})}),f[25]=j,f[26]=d):d=f[26],f[27]!==c||f[28]!==d?(p=(0,t.jsxs)("div",{className:"relative group/codeblock mb-4",children:[c,d]}),f[27]=c,f[28]=d,f[29]=p):p=f[29],p},W=e=>{let n,o=(0,r.c)(2),{children:a}=e;return o[0]!==a?(n=(0,t.jsx)("strong",{className:"font-medium",children:a}),o[0]=a,o[1]=n):n=o[1],n},Z=e=>{let n,o,a,i=(0,r.c)(6);return i[0]!==e?({children:n,...o}=e,i[0]=e,i[1]=n,i[2]=o):(n=i[1],o=i[2]),i[3]!==n||i[4]!==o?(a=(0,t.jsx)("details",{...o,className:"group/details mb-4 overflow-hidden rounded-lg border border-border bg-card px-4 text-foreground open:pb-3",children:n}),i[3]=n,i[4]=o,i[5]=a):a=i[5],a},V=e=>{let n,o,a,i=(0,r.c)(6);return i[0]!==e?({children:n,...o}=e,i[0]=e,i[1]=n,i[2]=o):(n=i[1],o=i[2]),i[3]!==n||i[4]!==o?(a=(0,t.jsx)("summary",{...o,className:'-mx-4 flex cursor-pointer list-none select-none items-center gap-2 px-4 py-3 font-medium text-foreground transition-colors hover:bg-card-hover before:text-xs before:transition-transform before:duration-200 before:content-["▶"] group-open/details:before:rotate-90 [&::-webkit-details-marker]:hidden',children:n}),i[3]=n,i[4]=o,i[5]=a):a=i[5],a},$=[];e.s(["ChatroomMarkdownContainer",0,e=>{let o,a,i,u,m,p,h,g,b=(0,r.c)(28),{children:y,className:v,linkClassName:w,disableLink:z,shouldRenderRawHtml:G,disallowedElements:K,codeVariant:q}=e,X=void 0===y?"":y,Y=void 0===v?"":v,J=void 0===w?"":w,Q=void 0!==z&&z,ee=void 0===G||G,et=void 0===K?$:K,er=void 0===q?"classic":q;if(b[0]!==er){let e;e="subtle"===er?"rounded-md bg-card-hover border border-border px-1.5 py-0.5 font-mono text-sm leading-6 break-words text-foreground":"rounded-md bg-card-hover px-1.5 py-0.5 font-mono text-sm leading-6 break-words",o=o=>{let a,i,s,l,c,d=(0,r.c)(10);if(d[0]!==o){let{node:e,className:t,children:r,...n}=o;i=t,a=r,s=n,d[0]=o,d[1]=a,d[2]=i,d[3]=s}else a=d[1],i=d[2],s=d[3];return d[4]!==i?(l=(0,n.cn)(e,"[.markdown-table_td_&]:break-normal [.markdown-table_td_&]:whitespace-pre","[.markdown-table_th_&]:break-normal [.markdown-table_th_&]:whitespace-pre","classic"===er&&"text-foreground",i),d[4]=i,d[5]=l):l=d[5],d[6]!==a||d[7]!==s||d[8]!==l?(c=(0,t.jsx)("code",{...s,className:l,children:a}),d[6]=a,d[7]=s,d[8]=l,d[9]=c):c=d[9],c},b[0]=er,b[1]=o}else o=b[1];if(b[2]!==Q||b[3]!==J){let e;e={disableLink:Q,linkClassName:J},a=({node:r,...n})=>e.disableLink?(0,t.jsx)("span",{...n}):(0,t.jsx)(d.MarkdownLink,{className:e.linkClassName,...n,children:n.children}),b[2]=Q,b[3]=J,b[4]=a}else a=b[4];b[5]!==o||b[6]!==a?(i={h1:k,h2:j,h3:N,h4:_,h5:E,h6:S,blockquote:A,p:C,pre:U,code:o,table:M,thead:T,tbody:R,tr:I,th:L,td:O,ul:F,ol:D,li:B,hr:P,a:a,strong:W,img:H,details:Z,summary:V},b[5]=o,b[6]=a,b[7]=i):i=b[7];let en=i,eo=(0,c.hasMathSyntax)(X);b[8]!==ee?(u=(0,f.getBaseChatroomRehypePlugins)(ee),b[8]=ee,b[9]=u):u=b[9];let ea=u,ei="subtle"===er&&"[&_h1]:text-2xl [&_h2]:text-xl";b[10]!==Y||b[11]!==ei?(m=(0,n.cn)("min-w-0 w-full","[&>ol]:mb-4 [&>ul]:mb-4","[&>*:last-child]:mb-0","[&_li>p]:mb-0",ei,Y),b[10]=Y,b[11]=ei,b[12]=m):m=b[12];let es=m;b[13]!==X||b[14]!==en||b[15]!==es||b[16]!==et||b[17]!==ea?(p=(0,t.jsx)(l.default,{remarkPlugins:f.BASE_CHATROOM_REMARK_PLUGINS,rehypePlugins:ea,disallowedElements:et,components:en,className:es,children:X}),b[13]=X,b[14]=en,b[15]=es,b[16]=et,b[17]=ea,b[18]=p):p=b[18];let el=p;return eo?(b[19]!==X||b[20]!==en||b[21]!==es||b[22]!==et||b[23]!==ee?(h=(0,t.jsx)(x,{shouldRenderRawHtml:ee,disallowedElements:et,components:en,className:es,children:X}),b[19]=X,b[20]=en,b[21]=es,b[22]=et,b[23]=ee,b[24]=h):h=b[24],b[25]!==el||b[26]!==h?(g=(0,t.jsx)(s.Suspense,{fallback:el,children:h}),b[25]=el,b[26]=h,b[27]=g):g=b[27],g):el}],965542)},922083,e=>{"use strict";let t="#03080A",r="#03080AB0",n="#FCFCFE",o="#FCFCFEA0",a="openrouter-light",i="openrouter-dark";e.s(["OPENROUTER_SHIKI_DARK_THEME",0,i,"OPENROUTER_SHIKI_LIGHT_THEME",0,a,"openrouterShikiDarkTheme",0,{name:i,type:"dark",colors:{"editor.background":"#03080A","editor.foreground":n},settings:[{settings:{foreground:n}},{scope:["comment","punctuation.definition.comment"],settings:{foreground:o}},{scope:["punctuation","meta.brace","meta.delimiter"],settings:{foreground:o}},{scope:["string","punctuation.definition.string","markup.inserted"],settings:{foreground:"#34DFAA"}},{scope:["constant.numeric","constant.language","constant.character","constant.other","entity.other.attribute-name"],settings:{foreground:"#FFAB00"}},{scope:["keyword","keyword.operator.new","storage.type","storage.modifier"],settings:{foreground:"#4D8DFF"}},{scope:["entity.name.function","support.function","meta.function-call.generic"],settings:{foreground:"#DA70D6"}},{scope:["entity.name.type","entity.name.class","entity.name.namespace","support.type","support.class"],settings:{foreground:"#40E0D0"}},{scope:["variable","variable.parameter","variable.other"],settings:{foreground:n}},{scope:["variable.other.property","support.variable.property"],settings:{foreground:"#FFBB28"}},{scope:["entity.name.tag","markup.deleted","invalid"],settings:{foreground:"#FF2D55"}},{scope:["string.regexp","constant.regexp"],settings:{foreground:"#9ACD32"}},{scope:["markup.heading","markup.bold"],settings:{fontStyle:"bold",foreground:n}},{scope:["markup.italic"],settings:{fontStyle:"italic"}}]},"openrouterShikiLightTheme",0,{name:a,type:"light",colors:{"editor.background":"#FFFFFF","editor.foreground":t},settings:[{settings:{foreground:t}},{scope:["comment","punctuation.definition.comment"],settings:{foreground:r}},{scope:["punctuation","meta.brace","meta.delimiter"],settings:{foreground:r}},{scope:["string","punctuation.definition.string","markup.inserted"],settings:{foreground:"#007544"}},{scope:["constant.numeric","constant.language","constant.character","constant.other","entity.other.attribute-name"],settings:{foreground:"#8A6000"}},{scope:["keyword","keyword.operator.new","storage.type","storage.modifier"],settings:{foreground:"#0352C9"}},{scope:["entity.name.function","support.function","meta.function-call.generic"],settings:{foreground:"#800080"}},{scope:["entity.name.type","entity.name.class","entity.name.namespace","support.type","support.class"],settings:{foreground:"#4682B4"}},{scope:["variable","variable.parameter","variable.other"],settings:{foreground:t}},{scope:["variable.other.property","support.variable.property"],settings:{foreground:"#7B68EE"}},{scope:["entity.name.tag","markup.deleted","invalid"],settings:{foreground:"#BF0024"}},{scope:["string.regexp","constant.regexp"],settings:{foreground:"#2E8B57"}},{scope:["markup.heading","markup.bold"],settings:{fontStyle:"bold",foreground:t}},{scope:["markup.italic"],settings:{fontStyle:"italic"}}]}])},19379,e=>{"use strict";var t=e.i(505962),r=e.i(270401);e.s(["useKeydown",0,function(e,n){let o,a,i,s=(0,t.c)(6);s[0]!==e||s[1]!==n?(o=t=>{if(null===e||!t.key)return;let r=t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement;("function"==typeof e?!e(t):t.key!==e||r||t.ctrlKey||t.metaKey)||(t.preventDefault(),n(t))},s[0]=e,s[1]=n,s[2]=o):o=s[2];let l=(0,r.useEffectEvent)(o);s[3]!==l?(a=()=>{let e=e=>l(e);return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},s[3]=l,s[4]=a):a=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(i=[],s[5]=i):i=s[5],(0,r.useEffect)(a,i)}])},652942,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473),o=e.i(528164),a=e.i(389097),i=e.i(607296),s=e.i(379497),l=e.i(270401),c=e.i(19379);function d(e){let a,i,s,l,c,d,u=(0,r.c)(12);u[0]!==e?({side:l,onClick:i,className:a,...s}=e,u[0]=e,u[1]=a,u[2]=i,u[3]=s,u[4]=l):(a=u[1],i=u[2],s=u[3],l=u[4]);let m="left"===l?"left-0":"right-0";return u[5]!==a||u[6]!==m?(c=(0,n.cn)("absolute top-0 h-full w-1/3 z-20",m,"rounded-none bg-transparent p-0 hover:bg-transparent",a),u[5]=a,u[6]=m,u[7]=c):c=u[7],u[8]!==i||u[9]!==s||u[10]!==c?(d=(0,t.jsx)(o.Button,{variant:"ghost",size:"sm",onClick:i,className:c,...s}),u[8]=i,u[9]=s,u[10]=c,u[11]=d):d=u[11],d}e.s(["ImagePreviewDialog",0,function(e){let u,m,p,f,h,g,b,x,y,v,w,k,j,N,_,E,S,A,C,M=(0,r.c)(45),{images:T,initialIndex:R,children:I}=e,L=void 0===R?0:R,[O,F]=(0,l.useState)(!1),[D,B]=(0,l.useState)(L),P=T.length,H=T[D];if(M[0]!==L||M[1]!==O?(u=()=>{O&&B(L)},m=[O,L],M[0]=L,M[1]=O,M[2]=u,M[3]=m):(u=M[2],m=M[3]),(0,l.useEffect)(u,m),M[4]!==O?(p=e=>O&&"ArrowRight"===e.key,M[4]=O,M[5]=p):p=M[5],M[6]!==P?(f=()=>B(e=>(e+1)%P),M[6]=P,M[7]=f):f=M[7],(0,c.useKeydown)(p,f),M[8]!==O?(h=e=>O&&"ArrowLeft"===e.key,M[8]=O,M[9]=h):h=M[9],M[10]!==P?(g=()=>B(e=>(e-1+P)%P),M[10]=P,M[11]=g):g=M[11],(0,c.useKeydown)(h,g),!H)return null;let z=`Open image preview: ${H.name}`;M[12]===Symbol.for("react.memo_cache_sentinel")?(b=()=>F(!0),M[12]=b):b=M[12],M[13]!==I||M[14]!==z?(x=(0,t.jsx)(o.Button,{variant:"ghost",className:"contents h-auto w-auto p-0 hover:bg-transparent","aria-label":z,onClick:b,children:I}),M[13]=I,M[14]=z,M[15]=x):x=M[15],M[16]===Symbol.for("react.memo_cache_sentinel")?(y=(0,n.cn)("w-full max-w-4xl flex flex-col items-center"),M[16]=y):y=M[16],M[17]!==H.name?(v=(0,t.jsx)(a.DialogHeader,{children:(0,t.jsx)(a.DialogTitle,{children:H.name})}),M[17]=H.name,M[18]=v):v=M[18],M[19]!==P?(w=P>1&&(0,t.jsx)(d,{"aria-label":"Previous image",side:"left",onClick:()=>B(e=>(e-1+P)%P)}),M[19]=P,M[20]=w):w=M[20],M[21]!==P?(k=P>1&&(0,t.jsx)(d,{"aria-label":"Next image",side:"right",onClick:()=>B(e=>(e+1)%P)}),M[21]=P,M[22]=k):k=M[22],M[23]!==P?(j=P>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Button,{variant:"outline",size:"icon-sm",className:(0,n.cn)("absolute left-0 top-1/2 -translate-y-1/2 z-30 pointer-events-none","opacity-0 group-hover:opacity-100 transition-opacity duration-200"),tabIndex:-1,children:(0,t.jsx)(i.ChevronLeft,{className:"size-4"})}),(0,t.jsx)(o.Button,{variant:"outline",size:"icon-sm",className:(0,n.cn)("absolute right-0 top-1/2 -translate-y-1/2 z-30 pointer-events-none","opacity-0 group-hover:opacity-100 transition-opacity duration-200"),tabIndex:-1,children:(0,t.jsx)(s.ChevronRight,{className:"size-4"})})]}),M[23]=P,M[24]=j):j=M[24],M[25]!==H.name||M[26]!==H.url?(N=(0,t.jsx)("img",{src:H.url,alt:H.name,className:"relative z-0 object-contain max-h-[65vh] w-auto max-w-full select-none mx-auto rounded-sm",draggable:!1}),M[25]=H.name,M[26]=H.url,M[27]=N):N=M[27],M[28]!==w||M[29]!==k||M[30]!==j||M[31]!==N?(_=(0,t.jsxs)("div",{className:"relative flex items-center justify-center w-full max-h-[70vh] min-h-[320px] group ph-no-capture","data-dd-privacy":"hidden",children:[w,k,j,N]}),M[28]=w,M[29]=k,M[30]=j,M[31]=N,M[32]=_):_=M[32];let G=P>1?`${D+1} / ${P}`:"";return M[33]!==G?(E=(0,t.jsx)("div",{className:"text-xs text-muted-foreground py-2 text-center w-full",children:G}),M[33]=G,M[34]=E):E=M[34],M[35]!==v||M[36]!==_||M[37]!==E?(S=(0,t.jsxs)(a.DialogContent,{keepMounted:!1,className:y,children:[v,_,E]}),M[35]=v,M[36]=_,M[37]=E,M[38]=S):S=M[38],M[39]!==O||M[40]!==S?(A=(0,t.jsx)(a.Dialog,{open:O,onOpenChange:F,children:S}),M[39]=O,M[40]=S,M[41]=A):A=M[41],M[42]!==x||M[43]!==A?(C=(0,t.jsxs)(t.Fragment,{children:[x,A]}),M[42]=x,M[43]=A,M[44]=C):C=M[44],C}])},123215,e=>{"use strict";var t=e.i(505962),r=e.i(850658),n=e.i(306937),o=e.i(743902),a=e.i(252358),i=e.i(712518);e.i(270401);var s=e.i(954947),l=e.i(610814),c=e.i(564618),d=e.i(984816),u=e.i(945434),m=e.i(148333);e.s(["useOpenSignUpWithAttribution",0,function(){let e,p=(0,t.c)(5),{openSignUp:f}=(0,n.useClerk)(),{timezone:h}=(0,i.useSignupTimezone)(),g=(0,a.usePosthogClient)(),b=(0,m.useSignupCtaAttribution)(),{isSignedIn:x}=(0,r.useAuth)();return(0,u.useIdlePrefetchSealedSignupCfMetadata)(x),p[0]!==b||p[1]!==f||p[2]!==g||p[3]!==h?(e=async e=>{if(void 0===f)return;let[t,r]=await Promise.all([(0,s.awaitSealedSignupCfMetadata)(l.SIGNUP_METADATA_AWAIT_TIMEOUT_MS),(0,c.awaitSignupRadarSessionRelay)(l.SIGNUP_METADATA_AWAIT_TIMEOUT_MS)]);try{f({...e,unsafeMetadata:{...(0,d.buildSignupUnsafeMetadata)({sessionId:g.get_session_id()??"",anonymousDistinctId:g.get_distinct_id()??"",sealedSignupCfMetadataResult:t,radarSessionRelay:r,existingMetadata:e?.unsafeMetadata}),...h?{[o.SIGNUP_TIMEZONE_METADATA_KEY]:h}:{},...b()}})}catch(e){g.captureException(e,{error_source:"signup-modal-open"})}},p[0]=b,p[1]=f,p[2]=g,p[3]=h,p[4]=e):e=p[4],e}])}]); //# sourceMappingURL=3_kgi41x2l6em.js.map //# chunkId=01a09684-07c7-7983-9fe7-ab49b2eefd7f