(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,869057,966980,e=>{"use strict";let t=new Map;e.s(["f",0,function(e,r,n){return null==e?"":(function(e,r){let n=JSON.stringify({locale:function e(t){return Array.isArray(t)?t.map(t=>e(t)).join(","):null==t?"":String(t)}(e),options:r}),i=t.get(n);if(i)return i;let a=new Intl.NumberFormat(e,r);return t.set(n,a),a})(r,n).format(e)}],869057),e.s(["f",0,function(e,t,r){return(e-t)*100/(r-t)}],966980)},782059,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 8.25H7.5a2.25 2.25 0 0 0-2.25 2.25v9a2.25 2.25 0 0 0 2.25 2.25h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25H15M9 12l3 3m0 0 3-3m-3 3V2.25"}))});e.s(["f",0,r],782059)},572677,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))});e.s(["f",0,r],572677)},246601,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"}))});e.s(["f",0,r],246601)},531397,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))});e.s(["f",0,r],531397)},215891,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"}))});e.s(["f",0,r],215891)},47354,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"}))});e.s(["f",0,r],47354)},739308,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))});e.s(["f",0,r],739308)},988199,361220,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 0 1-.825-.242m9.345-8.334a2.126 2.126 0 0 0-.476-.095 48.64 48.64 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155"}))});e.s(["f",0,r],988199);var n=e.i(659350),i=e.i(663456),a=e.i(136562),o=e.i(139697),l=e.i(536397),s=e.i(799963),c=e.i(624112),d=e.i(983739);e.i(707060);var u=e.i(387086),f=e.i(196991),m=e.i(288265),p=e.i(919035),h=e.i(354896);let g=[{value:d.f.Price,label:(0,u.b)("Price")},{value:d.f.Throughput,label:(0,u.b)("Throughput")}];e.s(["f",0,e=>{var r,d;let u,v,x,b,y,w,j,k,N,S,_,C,E,R,T,A,M,L,O,z,I,B,F,D,P=(0,i.c)(56);P[0]!==e?({className:v,contentClassName:x,selected:k,onDone:y,disabled:b,ref:j,...w}=e,P[0]=e,P[1]=v,P[2]=x,P[3]=b,P[4]=y,P[5]=w,P[6]=j,P[7]=k):(v=P[1],x=P[2],b=P[3],y=P[4],w=P[5],j=P[6],k=P[7]);let $=(0,m.f)(),H=(0,p.f)(),[V,W]=(0,t.useState)(!1),U=(0,t.useId)(),q=V&&!b;P[8]!==b?(N=e=>!b&&W(e),P[8]=b,P[9]=N):N=P[9],P[10]!==v?(S=(0,a.f)("relative px-2 pr-7",v),P[10]=v,P[11]=S):S=P[11],P[12]!==$||P[13]!==H||P[14]!==k?(_=(r=k,d=H,((u=g.find(e=>e.value===r))?d(u.label):void 0)??$("Sort By")),P[12]=$,P[13]=H,P[14]=k,P[15]=_):_=P[15],P[16]!==_?(C=(0,n.jsx)("span",{className:"line-clamp-1 w-full truncate text-start",children:_}),P[16]=_,P[17]=C):C=P[17],P[18]===Symbol.for("react.memo_cache_sentinel")?(E=(0,n.jsx)(h.f,{className:"absolute right-1 size-4 opacity-50"}),P[18]=E):E=P[18],P[19]!==b||P[20]!==U||P[21]!==V||P[22]!==w||P[23]!==j||P[24]!==S||P[25]!==C?(R=(0,n.jsx)(c.J,{render:(0,n.jsxs)(o.Button,{ref:j,variant:"outline",role:"combobox","aria-expanded":V,"aria-controls":U,align:"start",className:S,disabled:b,...w,children:[C,E]})}),P[19]=b,P[20]=U,P[21]=V,P[22]=w,P[23]=j,P[24]=S,P[25]=C,P[26]=R):R=P[26],P[27]!==x?(T=(0,a.f)("rounded-lg p-0",x),P[27]=x,P[28]=T):T=P[28],P[29]!==$?(A=$("Sort By"),P[29]=$,P[30]=A):A=P[30];let G=!k;return P[31]!==y?(M=()=>{y(void 0),W(!1)},P[31]=y,P[32]=M):M=P[32],P[33]===Symbol.for("react.memo_cache_sentinel")?(L=(0,n.jsx)(f.T,{children:"Default"}),P[33]=L):L=P[33],P[34]!==G||P[35]!==M?(O=(0,n.jsx)(s.X,{isSelected:G,onSelect:M,children:L}),P[34]=G,P[35]=M,P[36]=O):O=P[36],P[37]!==H||P[38]!==y||P[39]!==k?(z=g.map(e=>(0,n.jsx)(s.X,{isSelected:k===e.value,onSelect:()=>{y(e.value),W(!1)},children:H(e.label)},e.value)),P[37]=H,P[38]=y,P[39]=k,P[40]=z):z=P[40],P[41]!==O||P[42]!==z||P[43]!==A?(I=(0,n.jsxs)(l.W,{heading:A,children:[O,z]}),P[41]=O,P[42]=z,P[43]=A,P[44]=I):I=P[44],P[45]!==U||P[46]!==I?(B=(0,n.jsx)(l.s,{children:(0,n.jsx)(l.X,{id:U,children:I})}),P[45]=U,P[46]=I,P[47]=B):B=P[47],P[48]!==B||P[49]!==T?(F=(0,n.jsx)(c.T,{positionerClassName:"z-popover",collisionPadding:8,className:T,children:B}),P[48]=B,P[49]=T,P[50]=F):F=P[50],P[51]!==q||P[52]!==F||P[53]!==N||P[54]!==R?(D=(0,n.jsxs)(c.V,{open:q,onOpenChange:N,children:[R,F]}),P[51]=q,P[52]=F,P[53]=N,P[54]=R,P[55]=D):D=P[55],D}],361220)},915663,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))});e.s(["f",0,r],915663)},609303,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))});e.s(["f",0,r],609303)},710968,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"}))});e.s(["f",0,r],710968)},2078,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"}))});e.s(["f",0,r],2078)},616108,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 0 0 2.25-2.25V6.75a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 6.75v10.5a2.25 2.25 0 0 0 2.25 2.25Zm.75-12h9v9h-9v-9Z"}))});e.s(["f",0,r],616108)},962852,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"}))});e.s(["f",0,r],962852)},485741,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}))});e.s(["f",0,r],485741)},971892,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 12.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 18.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5Z"}))});e.s(["f",0,r],971892)},934227,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});e.s(["f",0,r],934227)},269510,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 3v1.5M3 21v-6m0 0 2.77-.693a9 9 0 0 1 6.208.682l.108.054a9 9 0 0 0 6.086.71l3.114-.732a48.524 48.524 0 0 1-.005-10.499l-3.11.732a9 9 0 0 1-6.085-.711l-.108-.054a9 9 0 0 0-6.208-.682L3 4.5M3 15V4.5"}))});e.s(["f",0,r],269510)},338749,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18v-5.25m0 0a6.01 6.01 0 0 0 1.5-.189m-1.5.189a6.01 6.01 0 0 1-1.5-.189m3.75 7.478a12.06 12.06 0 0 1-4.5 0m3.75 2.383a14.406 14.406 0 0 1-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 1 0-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"}))});e.s(["f",0,r],338749)},644033,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))});e.s(["f",0,r],644033)},657288,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))});e.s(["f",0,r],657288)},778553,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"}))});e.s(["f",0,r],778553)},935084,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))});e.s(["f",0,r],935084)},795647,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["f",0,r],795647)},194215,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))});e.s(["f",0,r],194215)},708638,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"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(["f",0,r],708638)},694913,864226,e=>{"use strict";var t=e.i(126435),r=e.i(403908);let n=/[#.]/g;var i=e.i(301800),a=e.i(773601),o=e.i(237925);function l(e,t,a){let l=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 f=(u=function(e,t){let r,i,a=e||"",o={},l=0;for(;l{"use strict";var t=e.i(651681);let r={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],45924),e.s(["f",0,n],61885)},773151,e=>{"use strict";var t=e.i(651681);let r={name:"arrow-up-down",size:24,node:[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],773151)},917023,e=>{"use strict";var t=e.i(651681);let r={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],917023)},49505,e=>{"use strict";var t=e.i(651681);let r={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],49505)},1971,e=>{"use strict";var t=e.i(651681);let r={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n])},88084,e=>{"use strict";var t=e.i(1971);e.s(["f",()=>t.f])},193854,e=>{"use strict";var t=e.i(651681);let r={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],193854)},10460,e=>{"use strict";var t=e.i(651681);let r={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],10460)},68570,e=>{"use strict";var t=e.i(651681);let r={name:"file",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],68570)},816216,e=>{"use strict";var t=e.i(651681);let r={name:"image-off",size:24,node:[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],816216)},257723,734824,e=>{"use strict";var t=e.i(651681);let r={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],734824),e.s(["f",0,n],257723)},975436,e=>{"use strict";var t=e.i(307683);e.s(["f",()=>t.f])},527993,e=>{"use strict";var t=e.i(651681);let r={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],527993)},472089,e=>{"use strict";var t=e.i(651681);let r={name:"mic",size:24,node:[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],472089)},384566,e=>{"use strict";var t=e.i(651681);let r={name:"settings",size:24,node:[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],384566)},750636,e=>{"use strict";var t=e.i(651681);let r={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],750636)},357321,e=>{"use strict";var t=e.i(651681);let r={name:"triangle-alert",size:24,node:[["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"}]],aliases:["alert-triangle"]};r.node;let n=(0,t.f)(r);e.s(["f",0,n])},654678,e=>{"use strict";var t=e.i(357321);e.s(["f",()=>t.f])},99938,e=>{"use strict";var t=e.i(651681);let r={name:"type",size:24,node:[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],99938)},288087,e=>{"use strict";var t=e.i(651681);let r={name:"video",size:24,node:[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],288087)},336819,e=>{"use strict";var t=e.i(651681);let r={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],336819)},168639,e=>{"use strict";var t,r,n,i,a,o,l,s=e.i(790294),c=e.i(16043),d=(t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),u="__POSTHOG_REACT_SHARED_STATE__",f="u">typeof globalThis?globalThis:"u">typeof window?window:{};try{o=f[u]=f[u]||new WeakMap}catch(e){o=new WeakMap}o.has(c.createContext)||o.set(c.createContext,{});var m=o.get(c.createContext);m.context||(m.context=(0,c.createContext)({get client(){return l||m.defaultPostHogInstance},bootstrap:void 0}));var p=m.context,h=function(e){return"function"==typeof e},g=function(e){var t=Object.prototype.toString.call(e);return e instanceof Error||"[object Error]"===t||"[object Exception]"===t||"[object DOMException]"===t||"[object DOMError]"===t},v=function(e,t){try{Object.defineProperty(e,"name",{value:t,writable:!0,enumerable:!0,configurable:!0})}catch(e){}},x=function(e,t){for(var r=new WeakSet,n=e;!r.has(n);){if(r.add(n),!g(n.cause)){void 0!==n.cause&&(t.cause=n.cause),n.cause=t;return}n=n.cause}},b=function(e,t){if(!t)return e;var r=Error(g(e)?e.message:"Primitive value captured as exception: ".concat(String(e)));return(v(r,"React ErrorBoundary ".concat(g(e)?e.name:"Error")),r.stack=t,g(e))?(x(e,r),e):r},y={componentStack:null,exceptionEvent:null,error:null};r=a=function(e){function t(t){var r=e.call(this,t)||this;return r._resetError=function(){r.setState(y)},r.state=y,r}return d(t,e),t.prototype.componentDidCatch=function(e,t){var r,n=this.props.additionalProperties;h(n)?r=n(e,t):"object"==typeof n&&(r=n);var i=this.context.client,a=t.componentStack,o=i.captureException(b(e,a),r);this.setState({error:e,componentStack:null!=a?a:null,exceptionEvent:o})},t.prototype.render=function(){var e=this.props,t=e.children,r=e.fallback,n=this.state;if(null==n.componentStack)return h(t)?t():t;var i=h(r)?c.default.createElement(r,{error:n.error,componentStack:n.componentStack,exceptionEvent:n.exceptionEvent,resetError:this._resetError}):r;return c.default.isValidElement(i)?i:(console.warn("[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."),c.default.createElement(c.default.Fragment,null))},t}(c.default.Component),"symbol"==typeof(n="PostHogErrorBoundary")&&(n=n.description?"[".concat(n.description,"]"):""),Object.defineProperty(r,"name",{configurable:!0,value:n}),a.contextType=p,i=s.f,m.defaultPostHogInstance&&m.defaultPostHogInstance!==l||(m.defaultPostHogInstance=i),l=i,e.s(["f",0,function(){return(0,c.useContext)(p).client}])},973811,e=>{"use strict";var t="u"=s&&(d=o,o=r(),u=0)}function p(){let n=o,{length:i}=arguments;for(let e=0;e{o=r(),d=null,u=0,p.resetResultsCount()},p.resultsCount=()=>f,p.resetResultsCount=()=>{f=0},p}var i=Symbol("NOT_FOUND"),a=e=>Array.isArray(e)?e:[e];function o(e,...t){let r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,i=(...e)=>{let t,i,o=0,l=0,s={},c=e.pop();"object"==typeof c&&(s=c,c=e.pop()),function(e,t=`expected a function, instead received ${typeof e}`){if("function"!=typeof e)throw TypeError(t)}(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);let{memoize:d,memoizeOptions:u=[],argsMemoize:f=n,argsMemoizeOptions:m=[]}={...r,...s},p=a(u),h=a(m),g=(!function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){let r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw TypeError(`${t}[${r}]`)}}(t=Array.isArray(e[0])?e[0]:e,"createSelector expects all input-selectors to be functions, but received the following types: "),t),v=d(function(){return o++,c.apply(null,arguments)},...p);return Object.assign(f(function(){l++;let{length:e}=g,t=Array(e);for(let r=0;rl,resetDependencyRecomputations:()=>{l=0},lastResult:()=>i,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:f})};return Object.assign(i,{withTypes:()=>i}),i}var l=o(n),s=Object.assign((e,t=l)=>{!function(e,t=`expected an object, instead received ${typeof e}`){if("object"!=typeof e)throw TypeError(t)}(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}))},{withTypes:()=>s}),c=(e,t)=>e===t;e.s(["l",0,l,"O",0,o,"P",0,function(e,t){let r,n,{equalityCheck:a=c,maxSize:o=1,resultEqualityCheck:l}="object"==typeof t?t:{equalityCheck:t},s=function(e,t){if(null===e||null===t||e.length!==t.length)return!1;let{length:r}=e;for(let n=0;nr&&s(r.key,e)?r.value:i,put(e,t){r={key:e,value:t}},findMatchingEntry(e,t){let n=r;return void 0!==n&&t(n.value,e)?n:void 0},clear(){r=void 0}}:(n=[],{get:function(e){let t=n.findIndex(t=>s(t.key,e));if(t>-1){let e=n[t];return t>0&&(n.splice(t,1),n.unshift(e)),e.value}return i},put:function(e,t){n.unshift({key:e,value:t}),n.length>o&&n.pop()},findMatchingEntry:function(e,t){let r=n,{length:i}=r;for(let n=0;n{u.clear(),f.resetResultsCount()},f.resultsCount=()=>d,f.resetResultsCount=()=>{d=0},f},"u",0,n])},895783,e=>{"use strict";var t=e.i(16043);let r=(e,t)=>{let r=e instanceof Map?e:new Map(e.entries()),n=t instanceof Map?t:new Map(t.entries());if(r.size!==n.size)return!1;for(let[e,t]of r)if(!n.has(e)||!Object.is(t,n.get(e)))return!1;return!0};e.s(["f",0,function(e){let n=t.default.useRef(void 0);return t=>{let i=e(t);return!function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;if(Symbol.iterator in e&&Symbol.iterator in t){if("entries"in e&&"entries"in t)return r(e,t);let n=e[Symbol.iterator](),i=t[Symbol.iterator](),a=n.next(),o=i.next();for(;!a.done&&!o.done;){if(!Object.is(a.value,o.value))return!1;a=n.next(),o=i.next()}return!!a.done&&!!o.done}return r({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}(n.current,i)?n.current=i:n.current}}],895783)},333131,e=>{"use strict";e.i(988590);var t=e.i(393182);function r(e,{autoViaJev:n=!1}={}){return e===t.f.JevRouter||e===t.f.AutoBeta||e===t.f.AutoCode||void 0!==function(e){if(e!==t.f.Auto)return e?.match(/^([a-z0-9]+(?:-[a-z0-9]+)*)\/auto$/)?.[1]}(e)||n&&e===t.f.Auto}t.f.Phaser,t.f.AutoBeta,e.s(["j",0,{AnthropicClaudeFable:"~anthropic/claude-fable-latest",AnthropicClaudeOpus:"~anthropic/claude-opus-latest",AnthropicClaudeSonnet:"~anthropic/claude-sonnet-latest",AnthropicClaudeHaiku:"~anthropic/claude-haiku-latest",GoogleGeminiPro:"~google/gemini-pro-latest",GoogleGeminiFlash:"~google/gemini-flash-latest",OpenAIGpt:"~openai/gpt-latest",OpenAIGptSol:"~openai/gpt-sol-latest",OpenAIGptAstra:"~openai/gpt-astra-latest",XAIGrok:"~x-ai/grok-latest",OpenAIGptMini:"~openai/gpt-mini-latest",MoonshotKimi:"~moonshotai/kimi-latest"},"n",0,function(e){return r(e,{autoViaJev:!0})},"Q",0,r])},4763,282104,e=>{"use strict";var t=e.i(497214),r=e.i(988590),n=e.i(615199);let i={[n.$.Age18Plus]:{label:"18+ age confirmation",statement:"I confirm that I am 18 years of age or older.",organizationStatement:"Confirm that all users in this organization meet the 18+ age requirement.",grant:n.b.SelfAttested},[n.$.PrivilegedModelAccess]:{label:"Privileged model access approval",statement:"This account is approved by OpenRouter to use privileged models.",organizationStatement:"This organization is approved by OpenRouter to use privileged models.",grant:n.b.Reviewed}},a=Object.values(n.$).filter(e=>o(e));function o(e){return i[e].grant===n.b.SelfAttested}e.s(["e",0,a,"w",0,o,"W",0,function(e){let{true:i,false:a}=(0,t.E)([...e],e=>(0,r.q)(e,n.$));return{known:i,unknown:a}}],282104);let l="/settings/preferences",s=`https://openrouter.ai${l}`;n.b.SelfAttested,n.b.Reviewed,e.s(["W",0,l,"k",0,s,"r",0,function(e,t){if(0===e.length)return[];let r=new Set(t);return e.filter(e=>!r.has(e))}],4763)},615199,e=>{"use strict";e.s(["b",0,{SelfAttested:"self_attested",Reviewed:"reviewed"},"x",0,{User:"user",Org:"org"},"$",0,{Age18Plus:"age_18plus",PrivilegedModelAccess:"privileged_model_access"}])},707028,412217,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(207298),i=e.i(961160),a=e.i(429332),o=e.i(96659),l=e.i(16043),s=e.i(85194),c=e.i(136562),d=e.i(913743),u=e.i(18914),f=e.i(19532),m=e.i(551280),p=e.i(758427),h=e.i(468149);let g="data-message-chrome",v={[g]:""},x=`[${g}]`;e.s(["Y",0,x,"q",0,v],412217);let b=/^ {0,3}(`{3,}|~{3,})/,y=/^ {0,3}<[a-zA-Z/!?]/,w=/^ {0,3}\[[^\]]+\]:/,j=/^#{1,6}(\s|$)/,k=/^(`{3,}|~{3,})/,N=/^(\s|[-*+]\s|\d{1,9}[.)]\s|>|\||<|\[|---|\*\*\*|___)/;function S(e,t){let r=b.exec(e);if(!r)return t;let n=r[1];return null===t?{marker:n[0],length:n.length}:n[0]===t.marker&&n.length>=t.length&&e.trim()===n?null:t}let _=(0,a.default)(()=>e.A(747765).then(e=>e.ChatroomMathMarkdown),{loadableGenerated:{modules:[817481]}}),C="pointer-events-none sticky top-12 z-10 h-0",E="pointer-events-auto absolute right-2 top-2 flex items-center",R="mt-6 mb-4 text-foreground",T=e=>{let n,i,a=(0,r.c)(3),{children:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,c.f)(R,"border-b border-border pb-1 text-2xl font-bold"),a[0]=n):n=a[0],a[1]!==o?(i=(0,t.jsx)("h1",{className:n,children:o}),a[1]=o,a[2]=i):i=a[2],i},A=e=>{let n,i,a=(0,r.c)(3),{children:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,c.f)(R,"text-2xl font-bold"),a[0]=n):n=a[0],a[1]!==o?(i=(0,t.jsx)("h2",{className:n,children:o}),a[1]=o,a[2]=i):i=a[2],i},M=e=>{let n,i,a=(0,r.c)(3),{children:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,c.f)(R,"text-base font-medium"),a[0]=n):n=a[0],a[1]!==o?(i=(0,t.jsx)("h3",{className:n,children:o}),a[1]=o,a[2]=i):i=a[2],i},L=e=>{let n,i,a=(0,r.c)(3),{children:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,c.f)(R,"text-base font-medium"),a[0]=n):n=a[0],a[1]!==o?(i=(0,t.jsx)("h4",{className:n,children:o}),a[1]=o,a[2]=i):i=a[2],i},O=e=>{let n,i,a=(0,r.c)(3),{children:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,c.f)(R,"text-base font-medium"),a[0]=n):n=a[0],a[1]!==o?(i=(0,t.jsx)("h5",{className:n,children:o}),a[1]=o,a[2]=i):i=a[2],i},z=e=>{let n,i,a=(0,r.c)(3),{children:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,c.f)(R,"text-sm font-medium"),a[0]=n):n=a[0],a[1]!==o?(i=(0,t.jsx)("h6",{className:n,children:o}),a[1]=o,a[2]=i):i=a[2],i},I=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("blockquote",{className:"mb-4 border-l-2 border-border pl-4 italic",children:a}),i[0]=a,i[1]=n):n=i[1],n},B=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("p",{className:"mb-4 break-words text-sm font-normal leading-7",children:a}),i[0]=a,i[1]=n):n=i[1],n},F=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[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})}),i[0]=a,i[1]=n):n=i[1],n},D=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("thead",{className:"whitespace-nowrap border-b border-border text-foreground",children:a}),i[0]=a,i[1]=n):n=i[1],n},P=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("tbody",{children:a}),i[0]=a,i[1]=n):n=i[1],n},$=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("tr",{className:"border-b border-border last:border-b-0",children:a}),i[0]=a,i[1]=n):n=i[1],n},H=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("th",{className:"border-r border-border p-3 text-left font-medium last:border-r-0",children:a}),i[0]=a,i[1]=n):n=i[1],n},V=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("td",{className:"border-r border-border p-3 text-left last:border-r-0",children:a}),i[0]=a,i[1]=n):n=i[1],n},W=e=>{let n,i,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?(i=(0,t.jsx)("ul",{...n,className:"list-disc pl-8"}),a[2]=n,a[3]=i):i=a[3],i},U=e=>{let n,i,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?(i=(0,t.jsx)("ol",{...n,className:"list-decimal pl-8"}),a[2]=n,a[3]=i):i=a[3],i},q=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("li",{className:"mt-1.5",children:a}),i[0]=a,i[1]=n):n=i[1],n},G=()=>{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},Z=e=>{let n,i=(0,r.c)(3),{src:a,alt:l}=e;if("string"!=typeof a||!a)return null;let s=l??"";return i[0]!==a||i[1]!==s?(n=(0,t.jsx)(o.default,{src:a,alt:s,width:0,height:0,sizes:"100vw",className:"w-full h-auto max-w-full rounded-lg",unoptimized:!0}),i[0]=a,i[1]=s,i[2]=n):n=i[2],n},J="opacity-0 transition-opacity duration-100 group-hover/codeblock:opacity-100",X="inline-flex rounded-md bg-popover",Y=e=>{let n,i,a=(0,r.c)(3),{text:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,c.f)(X,J),a[0]=n):n=a[0],a[1]!==o?(i=(0,t.jsx)("span",{className:n,children:(0,t.jsx)(p.f,{text:o,hideCopyText:!0,className:"hover:bg-card-hover",size:"sm",variant:"ghost"})}),a[1]=o,a[2]=i):i=a[2],i},K=e=>{let n,a,o,s,f,m,p=(0,r.c)(30),{children:h}=e,{resolvedTheme:g}=(0,i.i)();if(p[0]!==h){let e,{className:t,children:r}=l.default.Children.toArray(h)[0].props;n=r,p[3]===Symbol.for("react.memo_cache_sentinel")?(e=/language-(\w+)/,p[3]=e):e=p[3],a=e.exec(t||""),p[0]=h,p[1]=n,p[2]=a}else n=p[1],a=p[2];let x=a,b=x?x[1]:null;if(b){let e,r,i,a,o,l,s,f="dark"===g?u.N:u.L,m=String(n);p[4]!==m?(e=m.trimEnd(),p[4]=m,p[5]=e):e=p[5];let h=e;return p[6]===Symbol.for("react.memo_cache_sentinel")?(r=(0,c.f)(X,"h-8 select-none items-center px-1.5 text-xs leading-none text-muted-foreground",J),p[6]=r):r=p[6],p[7]!==b?(i=(0,t.jsx)("span",{className:r,children:b}),p[7]=b,p[8]=i):i=p[8],p[9]!==h?(a=(0,t.jsx)(Y,{text:h}),p[9]=h,p[10]=a):a=p[10],p[11]!==i||p[12]!==a?(o=(0,t.jsx)("div",{className:C,...v,children:(0,t.jsxs)("div",{className:E,children:[i,a]})}),p[11]=i,p[12]=a,p[13]=o):o=p[13],p[14]!==h||p[15]!==b||p[16]!==f?(l=(0,t.jsx)(d.f,{code:h,lang:b,theme:f}),p[14]=h,p[15]=b,p[16]=f,p[17]=l):l=p[17],p[18]!==o||p[19]!==l?(s=(0,t.jsxs)("div",{className:"relative group/codeblock mb-4",children:[o,l]}),p[18]=o,p[19]=l,p[20]=s):s=p[20],s}let y=String(n);p[21]!==y?(o=y.trimEnd(),p[21]=y,p[22]=o):o=p[22];let w=o;return p[23]!==w?(s=(0,t.jsx)("div",{className:C,...v,children:(0,t.jsx)("div",{className:E,children:(0,t.jsx)(Y,{text:w})})}),p[23]=w,p[24]=s):s=p[24],p[25]!==w?(f=(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:w})}),p[25]=w,p[26]=f):f=p[26],p[27]!==s||p[28]!==f?(m=(0,t.jsxs)("div",{className:"relative group/codeblock mb-4",children:[s,f]}),p[27]=s,p[28]=f,p[29]=m):m=p[29],m},Q=(0,n.f)((0,c.f)("rounded-md bg-card-hover px-1.5 py-0.5 font-mono text-sm leading-6 break-words","[.markdown-table_td_&]:break-normal [.markdown-table_td_&]:whitespace-pre","[.markdown-table_th_&]:break-normal [.markdown-table_th_&]:whitespace-pre"),{variants:{variant:{classic:"text-foreground",subtle:"border border-border text-foreground"}},defaultVariants:{variant:"classic"}}),ee=(0,n.f)((0,c.f)("min-w-0 w-full","[&>ol]:mb-4 [&>ul]:mb-4","[&>*:last-child]:mb-0","[&_li>p]:mb-0"),{variants:{variant:{classic:"",subtle:"[&_h1]:text-2xl [&_h2]:text-xl"}},defaultVariants:{variant:"classic"}}),et=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("strong",{className:"font-medium",children:a}),i[0]=a,i[1]=n):n=i[1],n},er=e=>{let n,i,a,o=(0,r.c)(6);return o[0]!==e?({children:n,...i}=e,o[0]=e,o[1]=n,o[2]=i):(n=o[1],i=o[2]),o[3]!==n||o[4]!==i?(a=(0,t.jsx)("details",{...i,className:"group/details mb-4 overflow-hidden rounded-lg border border-border bg-card px-4 text-foreground open:pb-3",children:n}),o[3]=n,o[4]=i,o[5]=a):a=o[5],a},en=e=>{let n,i,a,o,l=(0,r.c)(7);return l[0]!==e?({children:n,...i}=e,l[0]=e,l[1]=n,l[2]=i):(n=l[1],i=l[2]),l[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("span",{"aria-hidden":!0,className:"text-xs transition-transform duration-200 group-open/details:rotate-90",children:"▶"}),l[3]=a):a=l[3],l[4]!==n||l[5]!==i?(o=(0,t.jsxs)("summary",{...i,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 [&::-webkit-details-marker]:hidden",children:[a,n]}),l[4]=n,l[5]=i,l[6]=o):o=l[6],o},ei=[],ea=(0,l.memo)(e=>{let n,i=(0,r.c)(5),{markdown:a,components:o,rehypePlugins:l,disallowedElements:c}=e;return i[0]!==o||i[1]!==c||i[2]!==a||i[3]!==l?(n=(0,t.jsx)(s.f,{remarkPlugins:h.z,rehypePlugins:l,disallowedElements:c,components:o,children:a}),i[0]=o,i[1]=c,i[2]=a,i[3]=l,i[4]=n):n=i[4],n});e.s(["f",0,e=>{let n,i,a,o,s,d,u,p,g,v,x=(0,r.c)(37),{children:b,className:C,linkClassName:E,disableLink:R,shouldRenderRawHtml:J,disallowedElements:X,codeVariant:Y,isStreaming:eo}=e,el=void 0===b?"":b,es=void 0===C?"":C,ec=void 0===E?"":E,ed=void 0!==R&&R,eu=void 0===J||J,ef=void 0===X?ei:X,em=void 0===Y?"classic":Y,ep=void 0!==eo&&eo;if(x[0]!==em)n=e=>{let n,i,a,o,l,s=(0,r.c)(10);if(s[0]!==e){let{node:t,className:r,children:o,...l}=e;i=r,n=o,a=l,s[0]=e,s[1]=n,s[2]=i,s[3]=a}else n=s[1],i=s[2],a=s[3];return s[4]!==i?(o=(0,c.f)(Q({variant:em}),i),s[4]=i,s[5]=o):o=s[5],s[6]!==n||s[7]!==a||s[8]!==o?(l=(0,t.jsx)("code",{...a,className:o,children:n}),s[6]=n,s[7]=a,s[8]=o,s[9]=l):l=s[9],l},x[0]=em,x[1]=n;else n=x[1];if(x[2]!==ed||x[3]!==ec){let e;e={disableLink:ed,linkClassName:ec},i=({node:r,...n})=>e.disableLink?(0,t.jsx)("span",{...n}):(0,t.jsx)(m.b,{className:e.linkClassName,...n,children:n.children}),x[2]=ed,x[3]=ec,x[4]=i}else i=x[4];x[5]!==i||x[6]!==n?(a={h1:T,h2:A,h3:M,h4:L,h5:O,h6:z,blockquote:I,p:B,pre:K,code:n,table:F,thead:D,tbody:P,tr:$,th:H,td:V,ul:W,ol:U,li:q,hr:G,a:i,strong:et,img:Z,details:er,summary:en},x[5]=i,x[6]=n,x[7]=a):a=x[7];let eh=a,eg=(0,f.f)(el);x[8]!==eu?(o=(0,h.C)(eu),x[8]=eu,x[9]=o):o=x[9];let ev=o;x[10]!==es||x[11]!==em?(s=(0,c.f)(ee({variant:em}),es),x[10]=es,x[11]=em,x[12]=s):s=x[12];let ex=s;if(x[13]!==el||x[14]!==eh||x[15]!==ex||x[16]!==ef||x[17]!==ep||x[18]!==ev){let e,r=ep?function(e){let t=e.split("\n");if(function(e){let t=null;for(let r of e){if(null===t&&(y.test(r)||w.test(r)))return!0;t=S(r,t)}return!1}(t))return[e];let r=[],n=0,i=null;for(let[e,a]of t.entries()){let o=null!==i;if(i=S(a,i),o||null!==i||""!==a.trim())continue;let l=t[e+1];if(void 0===l||!(""!==l.trim()&&(j.test(l)||k.test(l)||!N.test(l))))continue;let s=t.slice(n,e).join("\n");""!==s.trim()&&(r.push(s),n=e+1)}return r.push(t.slice(n).join("\n")),r}(el):[el];d=ex,x[21]!==eh||x[22]!==ef||x[23]!==ev?(e=(e,r)=>(0,t.jsxs)(l.default.Fragment,{children:[r>0?"\n":null,(0,t.jsx)(ea,{markdown:e,components:eh,rehypePlugins:ev,disallowedElements:ef})]},r),x[21]=eh,x[22]=ef,x[23]=ev,x[24]=e):e=x[24],u=r.map(e),x[13]=el,x[14]=eh,x[15]=ex,x[16]=ef,x[17]=ep,x[18]=ev,x[19]=d,x[20]=u}else d=x[19],u=x[20];x[25]!==d||x[26]!==u?(p=(0,t.jsx)("div",{className:d,children:u}),x[25]=d,x[26]=u,x[27]=p):p=x[27];let eb=p;return eg?(x[28]!==el||x[29]!==eh||x[30]!==ex||x[31]!==ef||x[32]!==eu?(g=(0,t.jsx)(_,{shouldRenderRawHtml:eu,disallowedElements:ef,components:eh,className:ex,children:el}),x[28]=el,x[29]=eh,x[30]=ex,x[31]=ef,x[32]=eu,x[33]=g):g=x[33],x[34]!==eb||x[35]!==g?(v=(0,t.jsx)(l.Suspense,{fallback:eb,children:g}),x[34]=eb,x[35]=g,x[36]=v):v=x[36],v):eb}],707028)},913743,9634,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(647204),i=e.i(16043),a=e.i(136562),o=e.i(535072);let l=()=>{if("u"0?e:void 0};var s=e.i(866969),c=e.i(67089);let d=null,u=new Map,f=null,m=0,p=(e,t)=>{let r=u.get(e);r&&(u.delete(e),clearTimeout(r.timeoutId),r.resolve(t))},h=()=>{let e,t=(0,r.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={highlight:g},t[0]=e):e=t[0],e};function g(t,r,i){return(({code:t,lang:r,theme:i})=>new Promise(a=>{let o=(()=>{if(f)return null;if(d)return d;let t=(0,n.$)(()=>e.r(405266)(Worker));return(0,n.V)(t)?((0,c.L)("Failed to initialize highlight worker",{message:"Failed to initialize highlight worker",error:t.error,metadata:{location:"highlight.singleton.ts"}}),f=t.error instanceof Error?t.error:Error(String(t.error)),d=null,null):((d=t.data).onmessage=e=>{let{id:t,lines:r,preStyle:n,error:i}=e.data;if(i){(0,c.L)("highlight worker processing error",{message:"highlight worker processing error",error:i,metadata:{location:"highlight.singleton.ts"}}),p(t,null);return}m=0,p(t,{lines:r??[],preStyle:n??""})},d.onerror=e=>{for(let t of((0,c.L)("highlight worker script error",{message:"highlight worker script error",error:e,metadata:{location:"highlight.singleton.ts"}}),(m+=1)>2&&(f=Error(e.message||"highlight worker script error")),d?.terminate(),d=null,u.keys()))p(t,null)},d)})();if(!o)return void a(null);let l=crypto.randomUUID(),s=setTimeout(()=>p(l,null),1e4);u.set(l,{resolve:a,timeoutId:s});let h=(0,n.$)(()=>o.postMessage({id:l,code:t,lang:r,theme:i}));(0,n.V)(h)&&p(l,null)}))({code:t,lang:r,theme:i})}e.s(["f",0,h],9634);let v=(0,i.memo)(e=>{let n,i=(0,r.c)(2),{html:a}=e;return i[0]!==a?(n=(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:a}}),i[0]=a,i[1]=n):n=i[1],n}),x=(0,i.memo)(e=>{let n,i=(0,r.c)(2),{text:a}=e,o=a||" ";return i[0]!==o?(n=(0,t.jsx)("div",{children:o}),i[0]=o,i[1]=n):n=i[1],n});e.s(["f",0,({code:e,lang:c,theme:d,roundedCorners:u=!0,border:f=!0,codeBackgroundClassName:m="bg-doc-surface",lineNumbers:p=!1,wrap:g=!1})=>{let[b,y]=(0,i.useState)([]),[w,j]=(0,i.useState)({}),[k,N]=(0,i.useState)(""),S=(0,i.useRef)(!1),_=(0,i.useRef)(null),C=(0,i.useRef)(0),{highlight:E}=h(),R=((e=500)=>{let t=(0,i.useMemo)(l,[]),r=(0,o.o)("(min-width: 768px)");return(0,i.useMemo)(()=>void 0!==t?t<2?4e3:t<4?2e3:e:r?e:2e3,[t,r,e])})(500),T=(0,i.useCallback)(e=>{var t;let r,n=(t=e.preStyle,r={},t&&t.split(";").forEach(e=>{let[t,n]=e.split(/:(.*)/s);t&&n&&(r[t.trim().replaceAll(/-(\w)/g,(e,t)=>t.toUpperCase())]=n.trim())}),r);n.backgroundColor="transparent",n.whiteSpace="pre",j(n)},[]);(0,i.useEffect)(()=>{let e=!1;return(0,n.$)(()=>E("",c,d)).then(t=>{e||!(0,n.V)(t)&&t.data&&T(t.data)}),()=>{e=!0}},[c,d,E,T]),(0,i.useEffect)(()=>{_.current={code:e,lang:c,theme:d},C.current=0},[e,c,d]);let A=(0,i.useCallback)(async()=>{if(S.current||!_.current)return;S.current=!0;let e=_.current;_.current=null;let t=await (0,n.$)(()=>E(e.code,e.lang,e.theme));(0,n.V)(t)||!t.data?(C.current+=1,C.current<=5&&(_.current??=e)):(C.current=0,T(t.data),y(t.data.lines),N(e.code)),S.current=!1},[E,T]);!function(e){let t,n,a=(0,r.c)(5),{run:o,intervalMs:l,jobKey:c}=e;a[0]!==o?(t=()=>{o()},a[0]=o,a[1]=t):t=a[1],a[2]!==c||a[3]!==o?(n=[c,o],a[2]=c,a[3]=o,a[4]=n):n=a[4],(0,i.useEffect)(t,n),(0,s.f)(o,l)}({run:(0,i.useCallback)(()=>{A()},[A]),intervalMs:R,jobKey:`${c}|${d}|${e}`});let M=(0,i.useMemo)(()=>k&&e.startsWith(k)?e.substring(k.length):e,[e,k]);(0,i.useEffect)(()=>{k&&!e.startsWith(k)&&y([])},[e,k]);let L=(0,i.useMemo)(()=>M.split("\n"),[M]);return(0,t.jsx)("pre",{className:(0,a.f)("highlights overflow-x-auto min-w-0",f&&"border border-border",u&&"rounded-lg"),style:w,children:(0,t.jsxs)("code",{className:(0,a.f)("p-4",g?"block whitespace-pre-wrap break-words":"inline-block min-w-full whitespace-pre",!p&&!g&&"md:whitespace-pre-wrap",p&&"[counter-reset:line] [&>div]:before:[counter-increment:line] [&>div]:before:content-[counter(line)] [&>div]:before:mr-3 [&>div]:before:inline-block [&>div]:before:w-7 [&>div]:before:text-right [&>div]:before:tabular-nums [&>div]:before:select-none [&>div]:before:text-faint",p&&g&&"[&>div]:pl-10 [&>div]:-indent-10",m),children:[b.map((e,r)=>(0,t.jsx)(v,{html:e},`h-${r}`)),L.slice(+!!k).map((e,r)=>(0,t.jsx)(x,{text:e},`r-${r}`))]})})}],913743)},18914,e=>{"use strict";let t="#03080A",r="#FCFCFE";function n(e){return{comment:e.muted,punctuation:e.muted,string:e.string,"diff.plus":e.string,link_uri:e.string,number:e.constant,boolean:e.constant,constant:e.constant,attribute:e.constant,variant:e.constant,"selector.class":e.constant,"selector.id":e.constant,"selector.pseudo":e.constant,keyword:e.keyword,operator:e.keyword,preproc:e.keyword,link_text:e.keyword,function:e.function,constructor:e.function,type:e.type,namespace:e.type,enum:e.type,variable:e.foreground,property:e.property,tag:e.tag,selector:e.tag,"diff.minus":e.tag,"string.regex":e.regex,title:{color:e.foreground,font_weight:700},"emphasis.strong":{color:e.foreground,font_weight:700},emphasis:{font_style:"italic"}}}let i="openrouter-light",a="openrouter-dark",o={name:i,appearance:"light",style:{"editor.background":"#FFFFFF","editor.foreground":t,syntax:n({foreground:t,muted:"#03080AB0",string:"#007544",constant:"#8A6000",keyword:"#0352C9",function:"#800080",type:"#4682B4",property:"#7B68EE",tag:"#BF0024",regex:"#2E8B57"})}},l={name:a,appearance:"dark",style:{"editor.background":"#03080A","editor.foreground":r,syntax:n({foreground:r,muted:"#FCFCFEA0",string:"#34DFAA",constant:"#FFAB00",keyword:"#4D8DFF",function:"#DA70D6",type:"#40E0D0",property:"#FFBB28",tag:"#FF2D55",regex:"#9ACD32"})}};e.s(["N",0,a,"L",0,i,"Y",0,l,"l",0,o])},551280,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(531397),i=e.i(196991),a=e.i(16043),o=e.i(136562);e.s(["o",0,e=>{let i,a,l=(0,r.c)(4),{className:s}=e;return l[0]!==s?(i=(0,o.f)("ml-1 inline-block w-4",s),l[0]=s,l[1]=i):i=l[1],l[2]!==i?(a=(0,t.jsx)(n.f,{className:i}),l[2]=i,l[3]=a):a=l[3],a},"b",0,e=>{let n,l,s,c,d,u,f,m,p,h,g,v=(0,r.c)(26);v[0]!==e?({className:l,href:c,children:n,target:f,rel:u,"aria-describedby":s,...d}=e,v[0]=e,v[1]=n,v[2]=l,v[3]=s,v[4]=c,v[5]=d,v[6]=u,v[7]=f):(n=v[1],l=v[2],s=v[3],c=v[4],d=v[5],u=v[6],f=v[7]);let x=c?.startsWith("http"),b=f??(x?"_blank":void 0),y="_blank"===b,w=(0,a.useId)();v[8]!==s||v[9]!==w||v[10]!==y?(m=y?[s,w].filter(Boolean).join(" "):s,v[8]=s,v[9]=w,v[10]=y,v[11]=m):m=v[11];let j=m;v[12]!==l?(p=(0,o.f)(l,"underline underline-offset-2 decoration-current/40 hover:text-accent-foreground hover:decoration-current transition-colors"),v[12]=l,v[13]=p):p=v[13];let k=u??(y?"noopener noreferrer":void 0);return v[14]!==w||v[15]!==y?(h=y&&(0,t.jsx)("span",{id:w,hidden:!0,children:(0,t.jsx)(i.T,{children:"Opens in new tab"})}),v[14]=w,v[15]=y,v[16]=h):h=v[16],v[17]!==n||v[18]!==c||v[19]!==d||v[20]!==j||v[21]!==b||v[22]!==p||v[23]!==k||v[24]!==h?(g=(0,t.jsxs)("a",{...d,href:c,className:p,target:b,rel:k,"aria-describedby":j,children:[n,h]}),v[17]=n,v[18]=c,v[19]=d,v[20]=j,v[21]=b,v[22]=p,v[23]=k,v[24]=h,v[25]=g):g=v[25],g}],551280)},19532,e=>{"use strict";var t=e.i(539758);let r=/^[ \t>]*(?:(?:[-*+]|\d{1,9}[.)])[ \t]+[ \t>]*)*(?:`{3,}|~{3,})[ \t]*math\b/m,n=/&(?:dollar|#0*36|#[xX]0*24);/g;e.s(["f",0,e=>{let i=e.replace(n,()=>"$");return i.includes("$$")||(0,t.v)(i)||r.test(e)}])},953401,e=>{"use strict";let t=(0,e.i(16043).createContext)(!1);e.s(["f",0,t])},6146,e=>{"use strict";var t=e.i(663456),r=e.i(16043),n=e.i(535072),i=e.i(402600),a=e.i(953401);let o=/^\/workspaces\/[^/]+\/(?:chat|fusion)(?:\/|$)/;e.s(["M",0,"data-dashboard-sidebar-animated","K",0,"data-dashboard-sidebar-wide","B",0,function(){let e,l=(0,t.c)(4),s=(0,i.f)(),c=(0,r.useContext)(a.f),d=(0,n.s)();return l[0]!==c||l[1]!==d||l[2]!==s?(e=c&&d&&o.test(s??""),l[0]=c,l[1]=d,l[2]=s,l[3]=e):e=l[3],e}])},77825,e=>{"use strict";var t=e.i(663456);e.i(707060);var r=e.i(288265),n=e.i(128564),i=e.i(73668),a=e.i(402600),o=e.i(273536);e.s(["f",0,function(){let e,l=(0,t.c)(2),s=(0,r.f)(),{isSignedIn:c}=(0,i.useEntity)();l[0]!==c?(e={isEnabled:c},l[0]=c,l[1]=e):e=l[1];let{workspaces:d,activeWorkspaceId:u}=(0,n.Z)(e);return function({isSignedIn:e,workspaces:t,activeWorkspaceId:r,urlWorkspaceSlug:n,label:i}){if(!e)return;if(void 0!==n)return{href:`/workspaces/${n}`,label:i};let a=t?.find(e=>e.id===r);return{href:a?`/workspaces/${a.slug}`:"/workspaces",label:i}}({isSignedIn:c,workspaces:d,activeWorkspaceId:u,urlWorkspaceSlug:(0,o.s)((0,a.f)()),label:s("Workspace")})}],77825)},481437,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(512157),i=e.i(988590),a=e.i(771271),o=e.i(983335),l=e.i(618115),s=e.i(196991),c=e.i(288265),d=e.i(354896),u=e.i(16043),f=e.i(136562),m=e.i(702596),p=e.i(592176),h=e.i(447556),g=e.i(448457),v=e.i(761821),x=e.i(272719),b=e.i(307287),y=e.i(399907),w=e.i(139697),j=e.i(536397),k=e.i(799963),N=e.i(894868),S=e.i(640947),_=e.i(328262),C=e.i(624112),E=e.i(670168),R=e.i(954217),T=e.i(741155);let A="Auto";function M(e){let i,a,o,d,C,E,M,F,D,P,$,H,V,W,U,q,G,Z,J=(0,r.c)(87),{permaslug:X,variant:Y,selected:K,selectedNames:Q,defaultLabel:ee,isAutoDefault:et,closeOnSelect:er,showGuardrailsWarning:en,hideUnavailableByDefault:ei,disableSelectForUnavailable:ea,workspaceId:eo,includeGuardrails:el,guardrailLayer:es,editedPolicyId:ec,includeGrantedProviders:ed,includeProvidersWithoutInfo:eu,onToggle:ef,onFilter:em,onSort:ep,onDone:eh}=e,eg=void 0===ee?A:ee,ev=void 0===er||er,ex=void 0!==en&&en,eb=void 0!==ea&&ea,ey=void 0!==eu&&eu,{getProviderInfo:ew}=(0,v.S)(),ej=(0,x.f)(z);J[0]!==ec||J[1]!==es||J[2]!==el?(i={includeGuardrails:el,guardrailLayer:es,editedPolicyId:ec},J[0]=ec,J[1]=es,J[2]=el,J[3]=i):i=J[3];let ek=(0,p.R)(ej,eo,i),eN=ek.getProviderEligibilityStatus,eS=ek.getProviderIneligibilityReasons,e_=(0,c.f)(),[eC,eE]=(0,u.useState)(void 0!==ei&&ei);J[4]!==X||J[5]!==Y?(a=(0,g.L)({permaslug:X,variant:Y}),J[4]=X,J[5]=Y,J[6]=a):a=J[6];let{data:eR,isPending:eT,error:eA}=(0,l.f)(a),eM=(0,x.f)(O),eL=void 0!==ed&&ed&&!X?eM:null;J[7]!==eL?(o=(0,h.D)(eL),J[7]=eL,J[8]=o):o=J[8];let{data:eO}=(0,l.f)(o);J[9]!==eR||J[10]!==eO?(d=function(e,t){if(!e||!t?.length)return e;let r=new Set(e);return[...e,...t.map(e=>e.name).filter(e=>!r.has(e))]}(eR,eO),J[9]=eR,J[10]=eO,J[11]=d):d=J[11];let ez=d;J[12]!==eA?(C=(0,m.i)(eA),J[12]=eA,J[13]=C):C=J[13],(0,b.useGlobalErrorMonitor)(C);let eI=(0,u.useRef)(null);J[14]!==e_||J[15]!==eT?(E=()=>{eI.current&&(eI.current.textContent=eT?e_("Loading..."):"")},M=[e_,eT],J[14]=e_,J[15]=eT,J[16]=E,J[17]=M):(E=J[16],M=J[17]),(0,u.useEffect)(E,M);e:{if(!ez){let e;J[18]===Symbol.for("react.memo_cache_sentinel")?(e=[],J[18]=e):e=J[18],F=e;break e}let e=ez;if(em){let t;J[19]!==e||J[20]!==em?(t=e.filter(em),J[19]=e,J[20]=em,J[21]=t):t=J[21],e=t}if(eC&&ex){let t;if(J[22]!==e||J[23]!==eN||J[24]!==ew){let r;J[26]!==eN||J[27]!==ew?(r=e=>{let t=I(e,ew(e));return!t||eN(t)!==p.P.Ineligible},J[26]=eN,J[27]=ew,J[28]=r):r=J[28],t=e.filter(r),J[22]=e,J[23]=eN,J[24]=ew,J[25]=t}else t=J[25];e=t}if(ep){let t;J[29]!==e||J[30]!==ep?(t=[...e].sort(ep),J[29]=e,J[30]=ep,J[31]=t):t=J[31],e=t}F=e}let eB=F,eF=et??eg===A;J[32]!==eh?(D=()=>eh?.(),J[32]=eh,J[33]=D):D=J[33];let eD=D;J[34]===Symbol.for("react.memo_cache_sentinel")?(P=Array.from({length:6}).map(L),J[34]=P):P=J[34];let eP=P;if(J[35]!==eD||J[36]!==ev||J[37]!==eb||J[38]!==eN||J[39]!==eS||J[40]!==ew||J[41]!==e_||J[42]!==ey||J[43]!==ef||J[44]!==eB||J[45]!==K||J[46]!==Q||J[47]!==ex){let e,r;J[49]!==ew||J[50]!==ey?(e=e=>{let t=ew(e);return t?[{providerName:e,providerInfo:t,display:t}]:ey?[{providerName:e,providerInfo:t,display:B(e)}]:[]},J[49]=ew,J[50]=ey,J[51]=e):e=J[51],J[52]!==eD||J[53]!==ev||J[54]!==eb||J[55]!==eN||J[56]!==eS||J[57]!==e_||J[58]!==ef||J[59]!==K||J[60]!==Q||J[61]!==ex?(r=e=>{let{providerName:r,providerInfo:i,display:a}=e,o=K===r||(Q?.has(r)??!1),l=I(r,i),s=ex&&l&&eN(l)===p.P.Ineligible,c=s&&l?eS(l):[],d=!!(eb&&s);return(0,t.jsx)(k.X,{isSelected:o,disabled:d,className:(0,f.f)(s&&"opacity-50"),icon:(0,t.jsx)(S.f,{frame:!0,providerName:a.name,providerIcon:a.icon,className:"size-5"}),trailing:s?(0,t.jsx)(_.InfoTooltip,{icon:(0,t.jsx)(n.f,{className:"size-4"}),side:"right",align:"center",sideOffset:24,children:c.length>0?(0,t.jsx)(y.f,{reasons:c}):e_("This provider is unavailable due to your privacy or guardrail settings")}):void 0,onSelect:()=>{!d&&(ef(r),ev&&eD())},children:a.displayName},a.name)},J[52]=eD,J[53]=ev,J[54]=eb,J[55]=eN,J[56]=eS,J[57]=e_,J[58]=ef,J[59]=K,J[60]=Q,J[61]=ex,J[62]=r):r=J[62],$=eB.flatMap(e).map(r),J[35]=eD,J[36]=ev,J[37]=eb,J[38]=eN,J[39]=eS,J[40]=ew,J[41]=e_,J[42]=ey,J[43]=ef,J[44]=eB,J[45]=K,J[46]=Q,J[47]=ex,J[48]=$}else $=J[48];let e$=$;J[63]!==e_?(H=e_("Search providers"),J[63]=e_,J[64]=H):H=J[64],J[65]!==eC||J[66]!==ex?(V=ex?(0,t.jsx)("div",{className:"flex items-center gap-2 border-b px-2 py-1.5",children:(0,t.jsx)(T.f,{content:(0,t.jsx)(s.T,{children:(0,t.jsxs)("span",{children:["Hide providers unavailable due to your"," ",(0,t.jsx)(R.TextLink,{href:"/settings/privacy",children:"privacy settings"})]})}),children:(0,t.jsx)(w.Button,{variant:eC?"default":"outline",size:"sm",density:"compact",onClick:()=>eE(!eC),children:(0,t.jsx)(s.T,{children:"Hide Unavailable"})})})}):void 0,J[65]=eC,J[66]=ex,J[67]=V):V=J[67],J[68]===Symbol.for("react.memo_cache_sentinel")?(W=(0,t.jsx)("div",{ref:eI,role:"status",className:"sr-only"}),J[68]=W):W=J[68],J[69]!==e_?(U=e_("Providers"),J[69]=e_,J[70]=U):U=J[70],J[71]!==eD||J[72]!==ev||J[73]!==eg||J[74]!==e_||J[75]!==eF||J[76]!==ef||J[77]!==K?(q=eF&&(0,t.jsx)(k.X,{isSelected:!K,icon:(0,t.jsx)(N.f,{author:"openrouter",className:"size-5"}),onSelect:()=>{ef(void 0),ev&&eD()},children:eg===A?e_("Auto"):eg}),J[71]=eD,J[72]=ev,J[73]=eg,J[74]=e_,J[75]=eF,J[76]=ef,J[77]=K,J[78]=q):q=J[78];let eH=eT?eP:e$;return J[79]!==U||J[80]!==q||J[81]!==eH?(G=(0,t.jsxs)(j.W,{heading:U,children:[q,eH]}),J[79]=U,J[80]=q,J[81]=eH,J[82]=G):G=J[82],J[83]!==H||J[84]!==V||J[85]!==G?(Z=(0,t.jsxs)(k.i,{searchPlaceholder:H,header:V,children:[W,G]}),J[83]=H,J[84]=V,J[85]=G,J[86]=Z):Z=J[86],Z}function L(e,r){return(0,t.jsxs)("div",{"aria-hidden":"true",className:"relative flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm font-medium",children:[(0,t.jsx)(E.l,{className:"mr-2 size-5 rounded-full"}),(0,t.jsx)(E.l,{className:"h-4 w-32"})]},r)}function O(e){return e.contextEntityId}function z(e){return e.entity?.clerk_user_id??null}function I(e,t){return(0,i.q)(e,a.R)?o.G[e]:t?.slug??null}function B(e){return{name:e,displayName:e,icon:{url:""}}}e.s(["v",0,e=>{let n,i,a,o,s,m,p,h,x,b,y,j,k,_,E,R,T,L,O,z,I,F,D,P,$,H,V,W,U,q,G,Z,J,X,Y,K,Q=(0,r.c)(83);Q[0]!==e?({className:n,contentClassName:a,permaslug:_,variant:F,selected:T,onDone:y,onFilter:j,onSort:k,defaultLabel:z,hideChevron:I,size:O,closeOnSelect:i,showGuardrailsWarning:L,hideUnavailableByDefault:p,disableSelectForUnavailable:o,workspaceId:D,includeGuardrails:x,guardrailLayer:m,editedPolicyId:s,includeGrantedProviders:h,includeProvidersWithoutInfo:b,ref:R,...E}=e,Q[0]=e,Q[1]=n,Q[2]=i,Q[3]=a,Q[4]=o,Q[5]=s,Q[6]=m,Q[7]=p,Q[8]=h,Q[9]=x,Q[10]=b,Q[11]=y,Q[12]=j,Q[13]=k,Q[14]=_,Q[15]=E,Q[16]=R,Q[17]=T,Q[18]=L,Q[19]=O,Q[20]=z,Q[21]=I,Q[22]=F,Q[23]=D):(n=Q[1],i=Q[2],a=Q[3],o=Q[4],s=Q[5],m=Q[6],p=Q[7],h=Q[8],x=Q[9],b=Q[10],y=Q[11],j=Q[12],k=Q[13],_=Q[14],E=Q[15],R=Q[16],T=Q[17],L=Q[18],O=Q[19],z=Q[20],I=Q[21],F=Q[22],D=Q[23]);let ee=void 0===z?A:z,et=void 0!==I&&I;Q[24]!==i||Q[25]!==ee||Q[26]!==o||Q[27]!==s||Q[28]!==m||Q[29]!==p||Q[30]!==h||Q[31]!==x||Q[32]!==b||Q[33]!==j||Q[34]!==k||Q[35]!==_||Q[36]!==T||Q[37]!==L||Q[38]!==F||Q[39]!==D?(P={permaslug:_,variant:F,selected:T,defaultLabel:ee,closeOnSelect:i,showGuardrailsWarning:L,hideUnavailableByDefault:p,disableSelectForUnavailable:o,workspaceId:D,includeGuardrails:x,guardrailLayer:m,editedPolicyId:s,includeGrantedProviders:h,includeProvidersWithoutInfo:b,onFilter:j,onSort:k},Q[24]=i,Q[25]=ee,Q[26]=o,Q[27]=s,Q[28]=m,Q[29]=p,Q[30]=h,Q[31]=x,Q[32]=b,Q[33]=j,Q[34]=k,Q[35]=_,Q[36]=T,Q[37]=L,Q[38]=F,Q[39]=D,Q[40]=P):P=Q[40];let er=P,{getProviderInfo:en}=(0,v.S)(),ei=(0,c.f)(),[ea,eo]=(0,u.useState)(!1);Q[41]!==_||Q[42]!==F?($=(0,g.L)({permaslug:_,variant:F}),Q[41]=_,Q[42]=F,Q[43]=$):$=Q[43];let{refetch:el}=(0,l.f)($);e:{let e;if(!T){H=null;break e}Q[44]!==en||Q[45]!==b||Q[46]!==T?(e=en(T)??(b?B(T):null),Q[44]=en,Q[45]=b,Q[46]=T,Q[47]=e):e=Q[47],H=e}let es=H,ec=ee===A,ed=!et&&"pr-7";return Q[48]!==n||Q[49]!==ed?(V=(0,f.f)("relative flex w-full px-2",ed,n),Q[48]=n,Q[49]=ed,Q[50]=V):V=Q[50],Q[51]!==el?(W=()=>void el(),Q[51]=el,Q[52]=W):W=Q[52],Q[53]!==ee||Q[54]!==ei||Q[55]!==ec||Q[56]!==es?(U=(0,t.jsx)("span",{className:"line-clamp-1 w-full truncate text-start",children:es?(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(S.f,{providerName:es.name,providerIcon:es.icon,className:"size-6 rounded-full"}),es.displayName]}):(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[ec&&(0,t.jsx)(N.f,{author:"openrouter",className:"size-6"}),ec?ei("Auto"):ee]})}),Q[53]=ee,Q[54]=ei,Q[55]=ec,Q[56]=es,Q[57]=U):U=Q[57],Q[58]!==et?(q=!et&&(0,t.jsx)(d.f,{className:"absolute right-1 size-4 opacity-50"}),Q[58]=et,Q[59]=q):q=Q[59],Q[60]!==ea||Q[61]!==E||Q[62]!==R||Q[63]!==O||Q[64]!==q||Q[65]!==V||Q[66]!==W||Q[67]!==U?(G=(0,t.jsx)(C.J,{render:(0,t.jsxs)(w.Button,{ref:R,type:"button",variant:"outline",size:O,role:"combobox","aria-expanded":ea,align:"start",className:V,onClick:W,...E,children:[U,q]})}),Q[60]=ea,Q[61]=E,Q[62]=R,Q[63]=O,Q[64]=q,Q[65]=V,Q[66]=W,Q[67]=U,Q[68]=G):G=Q[68],Q[69]!==a?(Z=(0,f.f)("rounded-lg p-0",a),Q[69]=a,Q[70]=Z):Z=Q[70],Q[71]===Symbol.for("react.memo_cache_sentinel")?(J=()=>eo(!1),Q[71]=J):J=Q[71],Q[72]!==ec||Q[73]!==y||Q[74]!==er?(X=(0,t.jsx)(M,{...er,isAutoDefault:ec,onToggle:y,onDone:J}),Q[72]=ec,Q[73]=y,Q[74]=er,Q[75]=X):X=Q[75],Q[76]!==Z||Q[77]!==X?(Y=(0,t.jsx)(C.T,{positionerClassName:"z-popover",collisionPadding:8,className:Z,children:X}),Q[76]=Z,Q[77]=X,Q[78]=Y):Y=Q[78],Q[79]!==ea||Q[80]!==G||Q[81]!==Y?(K=(0,t.jsxs)(C.V,{open:ea,onOpenChange:eo,children:[G,Y]}),Q[79]=ea,Q[80]=G,Q[81]=Y,Q[82]=K):K=Q[82],K},"B",0,M])},82045,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(874511),i=e.i(6045),a=e.i(653706),o=e.i(509849),l=e.i(161892),s=e.i(899575),c=e.i(823471);let d=e.i(533739).f;e.s(["Backdrop",()=>i.f,"Close",()=>a.f,"Description",()=>o.f,"Popup",()=>l.f,"Portal",()=>s.f,"Root",0,function(e){return(0,n.f)("alert-dialog",e)},"Title",()=>c.f,"Trigger",0,d],359661);var u=e.i(359661),u=u,f=u,m=u,p=u,h=u,g=u,v=u,x=e.i(136562),b=e.i(801127),y=e.i(857162),w=e.i(80676),j=e.i(374696),k=e.i(261499);let N=u.Root,S=f.Portal;function _(e){let n,i,a,o,l,s=(0,r.c)(10);return s[0]!==e?({className:n,ref:a,...i}=e,s[0]=e,s[1]=n,s[2]=i,s[3]=a):(n=s[1],i=s[2],a=s[3]),s[4]!==n?(o=(0,x.f)("fixed inset-0 z-alert bg-black/50",k.u,n),s[4]=n,s[5]=o):o=s[5],s[6]!==i||s[7]!==a||s[8]!==o?(l=(0,t.jsx)(m.Backdrop,{className:o,"data-slot":"alert-dialog-overlay",...i,forceRender:!0,ref:a}),s[6]=i,s[7]=a,s[8]=o,s[9]=l):l=s[9],l}e.s(["m",0,N,"s",0,function(e){let n,i,a,o,l,s,c=(0,r.c)(12);c[0]!==e?({className:n,ref:a,variant:o,...i}=e,c[0]=e,c[1]=n,c[2]=i,c[3]=a,c[4]=o):(n=c[1],i=c[2],a=c[3],o=c[4]);let d=void 0===o?"default":o;return c[5]!==n||c[6]!==d?(l=(0,x.f)((0,b.i)({size:"sm",variant:d}),n),c[5]=n,c[6]=d,c[7]=l):l=c[7],c[8]!==i||c[9]!==a||c[10]!==l?(s=(0,t.jsx)(v.Close,{ref:a,className:l,...i}),c[8]=i,c[9]=a,c[10]=l,c[11]=s):s=c[11],s},"D",0,function(e){let n,i,a,o,l,s=(0,r.c)(10);return s[0]!==e?({className:n,ref:a,...i}=e,s[0]=e,s[1]=n,s[2]=i,s[3]=a):(n=s[1],i=s[2],a=s[3]),s[4]!==n?(o=(0,x.f)((0,b.i)({variant:"outline",size:"sm"}),"mt-2 sm:mt-0",n),s[4]=n,s[5]=o):o=s[5],s[6]!==i||s[7]!==a||s[8]!==o?(l=(0,t.jsx)(v.Close,{ref:a,className:o,...i}),s[6]=i,s[7]=a,s[8]=o,s[9]=l):l=s[9],l},"B",0,function(e){let n,i,a,o,l,s,c,d,u,f,m=(0,r.c)(20);return m[0]!==e?({className:i,overlayClassName:a,children:n,ref:l,...o}=e,m[0]=e,m[1]=n,m[2]=i,m[3]=a,m[4]=o,m[5]=l):(n=m[1],i=m[2],a=m[3],o=m[4],l=m[5]),m[6]!==a?(s=(0,t.jsx)(_,{className:a}),m[6]=a,m[7]=s):s=m[7],m[8]!==i?(c=(0,x.f)("fixed left-[50%] top-[50%] z-alert grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6",w.b,k.Q,i),m[8]=i,m[9]=c):c=m[9],m[10]!==n?(d=(0,t.jsx)(j.l,{layer:"alert",children:n}),m[10]=n,m[11]=d):d=m[11],m[12]!==o||m[13]!==l||m[14]!==c||m[15]!==d?(u=(0,t.jsx)(p.Popup,{ref:l,className:c,...o,children:d}),m[12]=o,m[13]=l,m[14]=c,m[15]=d,m[16]=u):u=m[16],m[17]!==s||m[18]!==u?(f=(0,t.jsx)(S,{keepMounted:!0,children:(0,t.jsxs)(y.ContainedContextProvider,{value:!1,children:[s,u]})}),m[17]=s,m[18]=u,m[19]=f):f=m[19],f},"I",0,function(e){let n,i,a,o,l,s=(0,r.c)(10);return s[0]!==e?({className:n,ref:a,...i}=e,s[0]=e,s[1]=n,s[2]=i,s[3]=a):(n=s[1],i=s[2],a=s[3]),s[4]!==n?(o=(0,x.f)("text-body text-muted-foreground",n),s[4]=n,s[5]=o):o=s[5],s[6]!==i||s[7]!==a||s[8]!==o?(l=(0,t.jsx)(g.Description,{ref:a,className:o,...i}),s[6]=i,s[7]=a,s[8]=o,s[9]=l):l=s[9],l},"_",0,function(e){let n,i,a,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...i}=e,l[0]=e,l[1]=n,l[2]=i):(n=l[1],i=l[2]),l[3]!==n?(a=(0,x.f)("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",n),l[3]=n,l[4]=a):a=l[4],l[5]!==i||l[6]!==a?(o=(0,t.jsx)("div",{className:a,...i}),l[5]=i,l[6]=a,l[7]=o):o=l[7],o},"O",0,function(e){let n,i,a,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...i}=e,l[0]=e,l[1]=n,l[2]=i):(n=l[1],i=l[2]),l[3]!==n?(a=(0,x.f)("flex flex-col gap-y-2 text-center sm:text-left",n),l[3]=n,l[4]=a):a=l[4],l[5]!==i||l[6]!==a?(o=(0,t.jsx)("div",{className:a,...i}),l[5]=i,l[6]=a,l[7]=o):o=l[7],o},"g",0,function(e){let n,i,a,o,l,s=(0,r.c)(10);return s[0]!==e?({className:n,ref:a,...i}=e,s[0]=e,s[1]=n,s[2]=i,s[3]=a):(n=s[1],i=s[2],a=s[3]),s[4]!==n?(o=(0,x.f)("text-base font-semibold",n),s[4]=n,s[5]=o):o=s[5],s[6]!==i||s[7]!==a||s[8]!==o?(l=(0,t.jsx)(h.Title,{ref:a,className:o,...i}),s[6]=i,s[7]=a,s[8]=o,s[9]=l):l=s[9],l}],82045)},147188,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(207298),i=e.i(16043),a=e.i(136562);let o=(0,i.createContext)({imageLoadingStatus:"idle",onImageLoadingStatusChange:()=>{}}),l=(0,n.f)("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{default:"h-10 w-10",sm:"size-5 text-overline",md:"size-6 text-overline",lg:"size-8 text-body",xl:"size-10 text-body","2xl":"size-16 text-body"},variant:{default:"",framed:"ring-2 ring-border/50"}},defaultVariants:{size:"default",variant:"default"}});e.s(["E",0,function(e){let n,s,c,d,u,f,m,p,h,g,v,x=(0,r.c)(22);x[0]!==e?({className:s,children:n,size:u,variant:f,ref:d,...c}=e,x[0]=e,x[1]=n,x[2]=s,x[3]=c,x[4]=d,x[5]=u,x[6]=f):(n=x[1],s=x[2],c=x[3],d=x[4],u=x[5],f=x[6]);let[b,y]=(0,i.useState)("idle");x[7]===Symbol.for("react.memo_cache_sentinel")?(m=e=>y(e),x[7]=m):m=x[7];let w=m;x[8]!==b?(p={imageLoadingStatus:b,onImageLoadingStatusChange:w},x[8]=b,x[9]=p):p=x[9];let j=p;return x[10]!==s||x[11]!==u||x[12]!==f?(h=(0,a.f)(l({size:u,variant:f}),s),x[10]=s,x[11]=u,x[12]=f,x[13]=h):h=x[13],x[14]!==n||x[15]!==c||x[16]!==d||x[17]!==h?(g=(0,t.jsx)("span",{ref:d,className:h,...c,children:n}),x[14]=n,x[15]=c,x[16]=d,x[17]=h,x[18]=g):g=x[18],x[19]!==j||x[20]!==g?(v=(0,t.jsx)(o,{value:j,children:g}),x[19]=j,x[20]=g,x[21]=v):v=x[21],v},"b",0,function(e){let n,l,s,c,d,u=(0,r.c)(10);u[0]!==e?({className:n,ref:s,...l}=e,u[0]=e,u[1]=n,u[2]=l,u[3]=s):(n=u[1],l=u[2],s=u[3]);let{imageLoadingStatus:f}=(0,i.use)(o);return"loaded"===f?null:(u[4]!==n?(c=(0,a.f)("flex h-full w-full items-center justify-center rounded-full bg-muted",n),u[4]=n,u[5]=c):c=u[5],u[6]!==l||u[7]!==s||u[8]!==c?(d=(0,t.jsx)("span",{ref:s,className:c,...l}),u[6]=l,u[7]=s,u[8]=c,u[9]=d):d=u[9],d)},"Z",0,function(e){let n,l,s,c,d,u,f,m,p,h,g,v=(0,r.c)(25);v[0]!==e?({className:l,ref:u,src:f,alt:n,onLoad:c,onError:s,...d}=e,v[0]=e,v[1]=n,v[2]=l,v[3]=s,v[4]=c,v[5]=d,v[6]=u,v[7]=f):(n=v[1],l=v[2],s=v[3],c=v[4],d=v[5],u=v[6],f=v[7]);let{imageLoadingStatus:x,onImageLoadingStatusChange:b}=(0,i.use)(o),y="loaded"!==x&&"hidden";return v[8]!==l||v[9]!==y?(m=(0,a.f)("aspect-square h-full w-full",y,l),v[8]=l,v[9]=y,v[10]=m):m=v[10],v[11]!==b||v[12]!==c?(p=e=>{b("loaded"),c?.(e)},v[11]=b,v[12]=c,v[13]=p):p=v[13],v[14]!==s||v[15]!==b?(h=e=>{b("error"),s?.(e)},v[14]=s,v[15]=b,v[16]=h):h=v[16],v[17]!==n||v[18]!==d||v[19]!==u||v[20]!==f||v[21]!==m||v[22]!==p||v[23]!==h?(g=(0,t.jsx)("img",{ref:u,className:m,src:f,alt:n,onLoad:p,onError:h,...d}),v[17]=n,v[18]=d,v[19]=u,v[20]=f,v[21]=m,v[22]=p,v[23]=h,v[24]=g):g=v[24],g}])},246705,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(207298),i=e.i(288265),a=e.i(872635),o=e.i(354896),l=e.i(10460),s=e.i(961160),c=e.i(16043),d=e.i(136562),u=e.i(192668),f=e.i(199630),m=e.i(913743),p=e.i(139697),h=e.i(924360),g=e.i(988590);let v={javascript:"javascript",typescript:"typescript",tsx:"tsx",python:"python",shell:"shell",rust:"rust",go:"go",json:"json",html:"html",ruby:"ruby"},x={javascript:"javascript",typescript:"typescript",tsx:"tsx",python:"python",shell:"bash",rust:"rust",go:"go",json:"json",html:"html",ruby:"ruby"},b="code",y=new Map([["javascript","JavaScript"],["typescript","TypeScript"],["tsx","TSX"],["python","Python"],["shell","Shell"],["rust","Rust"],["go","Go"],["json","JSON"],["html","HTML"],["ruby","Ruby"]]);function w(e){let t=e.toLowerCase();return(0,g.q)(t,v)?t:void 0}var j=e.i(609623);let k={Block:"block",Line:"line"};function N(e){return"string"==typeof e.value}let S=(0,n.f)("overflow-auto bg-doc-surface font-mono text-body leading-relaxed text-foreground",{variants:{maxHeight:{sm:"max-h-80",md:"max-h-96",lg:"max-h-128",xl:"max-h-none"}},defaultVariants:{maxHeight:"md"}});e.s(["CodeBlock",0,e=>{var n,g;let v,_,C,E,R,T,A,M,L,O,z,I,B,F,D,P,$,H,V,W=(0,r.c)(69),U=(0,i.f)();W[0]!==U?(v=e=>{let t;return e===b?U("Code"):(void 0===(t=w(e))?void 0:y.get(t))??e},W[0]=U,W[1]=v):v=W[1];let q=v,{resolvedTheme:G}=(0,s.i)(),Z=!(0,f.f)(),{isCopied:J,copyToClipboard:X}=(0,u.f)(1200),[Y,K]=(0,c.useState)(0),Q=!0===e.collapsible,[ee,et]=(0,c.useState)(Q&&!0===e.defaultCollapsed),er=(0,c.useId)(),en=(H=(0,r.c)(2),V=(0,c.useRef)(null),H[0]===Symbol.for("react.memo_cache_sentinel")?(P=()=>{let e=V.current;if(!e)return;let t=function(){var t;let r,n;if(!e)return;let i=(r=(t=e).scrollLeft>2,n=t.scrollLeft+t.clientWidth{e.removeEventListener("scroll",t),r.disconnect()}},$=[],H[0]=P,H[1]=$):(P=H[0],$=H[1]),(0,c.useEffect)(P,$),V),{value:ei}=e,ea=N(e)?e.title:void 0,eo=N(e)?e.language:void 0,el=N(e)?e.rawLanguage:void 0;W[2]!==eo||W[3]!==el||W[4]!==ea||W[5]!==ei?(n={title:ea,language:eo,rawLanguage:el},_="string"==typeof ei?[{code:ei,title:n.title??n.language??n.rawLanguage??b,language:n.language,rawLanguage:n.rawLanguage}]:Array.isArray(ei)?ei:Object.entries(ei).map(([e,t])=>({rawLanguage:e,title:e,code:t??"",language:w(e)})),W[2]=eo,W[3]=el,W[4]=ea,W[5]=ei,W[6]=_):_=W[6];let es=_,ec="light"===G?e.lightTheme??"github-light":e.darkTheme??"github-dark",ed=void 0!==es[Y]?Y:0,eu=es[ed]??es[0];W[7]!==eu.code||W[8]!==e.dedent?(g=eu.code,C=e.dedent?(0,h.f)(g):g,W[7]=eu.code,W[8]=e.dedent,W[9]=C):C=W[9];let ef=C;W[10]!==eu?(E=function(e){if(e.language)return x[e.language];if(!e.rawLanguage)return"text";let t=w(e.rawLanguage);return t?x[t]:e.rawLanguage}(eu),W[10]=eu,W[11]=E):E=W[11];let em=E;W[12]!==ef||W[13]!==X||W[14]!==e?(R=()=>{X(ef,{shouldWaitForReset:!1}).then(t=>{t&&e.onCopy?.()})},W[12]=ef,W[13]=X,W[14]=e,W[15]=R):R=W[15];let ep=R;W[16]!==ep||W[17]!==J||W[18]!==U||W[19]!==e.hideCopy?(T=e.hideCopy?null:(0,t.jsx)(p.Button,{type:"button",variant:"ghost",size:"icon-sm",touchTarget:"below-sm","aria-label":J?U("Copied code"):U("Copy code"),onClick:ep,className:"shrink-0",children:(0,t.jsx)(j.f,{active:J,from:(0,t.jsx)(l.f,{className:"size-4"}),to:(0,t.jsx)(a.f,{className:"size-4"})})}),W[16]=ep,W[17]=J,W[18]=U,W[19]=e.hideCopy,W[20]=T):T=W[20];let eh=T;if(e.variant===k.Line){let r,n,i;return W[21]!==e.className?(r=(0,d.f)("flex items-center gap-2 rounded-lg border border-border bg-doc-surface pr-1 pl-4",e.className),W[21]=e.className,W[22]=r):r=W[22],W[23]!==ef||W[24]!==en?(n=(0,t.jsx)("code",{ref:en,"data-testid":"code-block",className:"min-w-0 flex-1 overflow-x-auto overscroll-x-contain bg-transparent py-3 font-mono text-body whitespace-pre text-foreground scrollbar-hide",children:ef}),W[23]=ef,W[24]=en,W[25]=n):n=W[25],W[26]!==eh||W[27]!==r||W[28]!==n?(i=(0,t.jsxs)("div",{className:r,children:[n,eh]}),W[26]=eh,W[27]=r,W[28]=n,W[29]=i):i=W[29],i}let eg=es.length>1;W[30]!==e.bodyClassName||W[31]!==e.maxHeight?(A=(0,d.f)(S({maxHeight:e.maxHeight}),e.bodyClassName),W[30]=e.bodyClassName,W[31]=e.maxHeight,W[32]=A):A=W[32];let ev=A;W[33]!==ef||W[34]!==em||W[35]!==ev||W[36]!==er||W[37]!==ec||W[38]!==Z?(M=Z?(0,t.jsx)("pre",{"data-testid":"code-block",id:er,className:ev,children:(0,t.jsx)("code",{className:"inline-block min-w-full whitespace-pre bg-transparent p-4 md:whitespace-pre-wrap",children:ef})}):(0,t.jsx)("div",{"data-testid":"code-block",id:er,className:ev,children:(0,t.jsx)(m.f,{code:ef,lang:em,theme:ec,roundedCorners:!1,border:!1,codeBackgroundClassName:"bg-transparent"})}),W[33]=ef,W[34]=em,W[35]=ev,W[36]=er,W[37]=ec,W[38]=Z,W[39]=M):M=W[39];let ex=M;W[40]!==e.className?(L=(0,d.f)("overflow-hidden rounded-lg border border-border bg-card",e.className),W[40]=e.className,W[41]=L):L=W[41];let eb=!ee&&"border-b border-border";W[42]!==e.tabClassName||W[43]!==eb?(O=(0,d.f)("flex h-9 items-center justify-between gap-2 px-3",eb,e.tabClassName),W[42]=e.tabClassName,W[43]=eb,W[44]=O):O=W[44],W[45]!==eu.title||W[46]!==er||W[47]!==U||W[48]!==ee||W[49]!==Q?(z=Q?(0,t.jsx)(p.Button,{type:"button",variant:"ghost",size:"icon-sm","aria-controls":er,"aria-expanded":!ee,"aria-label":ee?U("Show {title}",{title:eu.title}):U("Hide {title}",{title:eu.title}),onClick:()=>et(!ee),className:"shrink-0",children:(0,t.jsx)(o.f,{className:(0,d.f)("size-4 transition-transform",ee&&"-rotate-90")})}):null,W[45]=eu.title,W[46]=er,W[47]=U,W[48]=ee,W[49]=Q,W[50]=z):z=W[50],W[51]!==eu.title||W[52]!==eg||W[53]!==e||W[54]!==ed||W[55]!==es||W[56]!==q?(I=eg?(0,t.jsx)("span",{className:"flex min-w-0 items-center gap-1 overflow-x-auto",children:es.map((r,n)=>(0,t.jsx)(p.Button,{type:"button",variant:"ghost",size:"xs","aria-pressed":ed===n,onClick:()=>{K(n),e.onTabChange?.(n)},tone:ed===n?void 0:"subdued",className:ed===n?"bg-accent text-accent-foreground":void 0,children:q(r.title)},r.title))}):(0,t.jsx)("span",{className:"truncate text-caption text-muted-foreground",children:q(eu.title)}),W[51]=eu.title,W[52]=eg,W[53]=e,W[54]=ed,W[55]=es,W[56]=q,W[57]=I):I=W[57],W[58]!==z||W[59]!==I?(B=(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 items-center gap-1",children:[z,I]}),W[58]=z,W[59]=I,W[60]=B):B=W[60],W[61]!==eh||W[62]!==O||W[63]!==B?(F=(0,t.jsxs)("div",{className:O,children:[B,eh]}),W[61]=eh,W[62]=O,W[63]=B,W[64]=F):F=W[64];let ey=ee?null:ex;return W[65]!==F||W[66]!==ey||W[67]!==L?(D=(0,t.jsxs)("div",{className:L,children:[F,ey]}),W[65]=F,W[66]=ey,W[67]=L,W[68]=D):D=W[68],D},"CodeBlockVariant",0,k],246705)},548204,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16043),i=e.i(815922),a=e.i(93836),o=e.i(741780),l=e.i(3758),s=e.i(420304),c=e.i(240070);let d={...s.l,...c.f},u=n.forwardRef(function(e,r){let{render:s,className:c,defaultOpen:u=!1,disabled:f=!1,onOpenChange:m,open:p,style:h,...g}=e,v=(0,i.f)(m),x=(0,o.f)({open:p,defaultOpen:u,onOpenChange:v,disabled:f}),b=n.useMemo(()=>({open:x.open,disabled:x.disabled,transitionStatus:x.transitionStatus}),[x.open,x.disabled,x.transitionStatus]),y=n.useMemo(()=>({...x,onOpenChange:v,state:b}),[x,v,b]),w=(0,a.a)("div",e,{state:b,ref:r,props:g,stateAttributesMapping:d});return(0,t.jsx)(l.p.Provider,{value:y,children:w})});var f=e.i(225421);let m={...s.J,...c.f},p=n.forwardRef(function(e,t){let{panelId:r,open:n,handleTrigger:i,state:o,disabled:s}=(0,l.$)(),{className:c,disabled:d=s,render:u,nativeButton:p=!0,style:h,...g}=e,{getButtonProps:v,buttonRef:x}=(0,f.f)({disabled:d,native:p});return(0,a.a)("button",e,{state:o,ref:[t,x],props:[{"aria-controls":n?r:void 0,"aria-expanded":n,onClick:i},g,v],stateAttributesMapping:m})});var h=e.i(533124),g=e.i(612308),v=e.i(22525);let x=n.forwardRef(function(e,t){let{className:r,hiddenUntilFound:n,keepMounted:i,render:o,id:s,style:c,...u}=e,{defaultPanelId:f,mounted:m,onOpenChange:p,open:x,setMounted:b,setPanelIdState:y,setOpen:w,state:j,transitionStatus:k}=(0,l.$)(),N=s||void 0,S=N??f;(0,h.f)(()=>(y(e=>N??(null===e?void 0:e)),()=>{y(e=>e===N?null:e)}),[N,y]);let{height:_,props:C,ref:E,shouldPreventOpenAnimation:R,shouldRender:T,transitionStatus:A,width:M}=(0,v.f)({externalRef:t,hiddenUntilFound:n??!1,id:S,keepMounted:i??!1,mounted:m,onOpenChange:p,open:x,setMounted:b,setOpen:w,transitionStatus:k}),L={...j,transitionStatus:A},O=(0,g.f)(c,L),z=(0,a.a)("div",{...e,style:void 0},{state:L,ref:E,props:[C,{style:{"--collapsible-panel-height":void 0===_?"auto":`${_}px`,"--collapsible-panel-width":void 0===M?"auto":`${M}px`}},u,O?{style:O}:void 0,R?{style:{animationName:"none"}}:void 0],stateAttributesMapping:d});return T?z:null});e.s(["Panel",0,x,"Root",0,u,"Trigger",0,p],772956);var b=e.i(772956),b=b,y=b,w=b,j=e.i(136562),k=e.i(159125);e.s(["Collapsible",0,function(e){let n,i,a=(0,r.c)(4);return a[0]!==e?({...n}=e,a[0]=e,a[1]=n):n=a[1],a[2]!==n?(i=(0,t.jsx)(b.Root,{"data-slot":"collapsible",...n}),a[2]=n,a[3]=i):i=a[3],i},"CollapsibleContent",0,function(e){let n,i,a,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...i}=e,l[0]=e,l[1]=n,l[2]=i):(n=l[1],i=l[2]),l[3]!==n?(a=e=>(0,j.f)("h-(--collapsible-panel-height)",k.f,"function"==typeof n?n(e):n),l[3]=n,l[4]=a):a=l[4],l[5]!==i||l[6]!==a?(o=(0,t.jsx)(w.Panel,{"data-slot":"collapsible-content",className:a,...i}),l[5]=i,l[6]=a,l[7]=o):o=l[7],o},"CollapsibleTrigger",0,function(e){let n,i,a=(0,r.c)(4);return a[0]!==e?({...n}=e,a[0]=e,a[1]=n):n=a[1],a[2]!==n?(i=(0,t.jsx)(y.Trigger,{"data-slot":"collapsible-trigger",...n}),a[2]=n,a[3]=i):i=a[3],i}],548204)},647402,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562);let i=(0,e.i(207298).f)("inline-block size-[0.215em] shrink-0 rounded-full bg-current align-middle",{variants:{tone:{inherit:"",faint:"text-faint"}},defaultVariants:{tone:"inherit"}});e.s(["f",0,function(e){let a,o,l=(0,r.c)(6),{className:s,tone:c,"data-testid":d}=e;return l[0]!==s||l[1]!==c?(a=(0,n.f)(i({tone:c}),s),l[0]=s,l[1]=c,l[2]=a):a=l[2],l[3]!==d||l[4]!==a?(o=(0,t.jsx)("span",{"aria-hidden":"true",className:a,"data-testid":d}),l[3]=d,l[4]=a,l[5]=o):o=l[5],o}],647402)},912147,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(788843),i=e.i(136562),a=e.i(490112);e.s(["f",0,function(e){let o,l,s,c,d,u,f,m,p,h,g,v,x,b=(0,r.c)(28);b[0]!==e?({children:o,className:l,size:d,weight:m,icon:s,iconPosition:u,showExternalIcon:f,...c}=e,b[0]=e,b[1]=o,b[2]=l,b[3]=s,b[4]=c,b[5]=d,b[6]=u,b[7]=f,b[8]=m):(o=b[1],l=b[2],s=b[3],c=b[4],d=b[5],u=b[6],f=b[7],m=b[8]);let y=void 0===u?"end":u,w=void 0!==f&&f;b[9]!==s||b[10]!==w?(p=s??(w?(0,t.jsx)(n.f,{className:"inline size-3 align-[-1px]"}):null),b[9]=s,b[10]=w,b[11]=p):p=b[11];let j=p;return b[12]!==l||b[13]!==d||b[14]!==m?(h=(0,i.f)((0,a.X)({size:d,weight:m}),l),b[12]=l,b[13]=d,b[14]=m,b[15]=h):h=b[15],b[16]!==y||b[17]!==j?(g="start"===y&&j&&(0,t.jsx)("span",{className:"mr-0.5 inline-flex",children:j}),b[16]=y,b[17]=j,b[18]=g):g=b[18],b[19]!==y||b[20]!==j?(v="end"===y&&j&&(0,t.jsx)("span",{className:"ml-0.5 inline-flex",children:j}),b[19]=y,b[20]=j,b[21]=v):v=b[21],b[22]!==o||b[23]!==c||b[24]!==h||b[25]!==g||b[26]!==v?(x=(0,t.jsxs)("a",{className:h,...c,children:[g,o,v]}),b[22]=o,b[23]=c,b[24]=h,b[25]=g,b[26]=v,b[27]=x):x=b[27],x}])},1423,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16043),i=e.i(367898),a=e.i(869057),o=e.i(788968),l=e.i(966980),s=e.i(93836),c=e.i(107397);let d=n.createContext(void 0);function u(){let e=n.useContext(d);if(void 0===e)throw Error((0,c.f)(51));return e}let f={status:e=>"progressing"===e?{"data-progressing":""}:"complete"===e?{"data-complete":""}:"indeterminate"===e?{"data-indeterminate":""}:null},m=n.forwardRef(function(e,r){let{format:c,getAriaValueText:u,locale:m,max:p=100,min:h=0,value:g,render:v,className:x,children:b,style:y,...w}=e,[j,k]=n.useState(),N="indeterminate",S=null,_=null,C="",E="indeterminate progress";if(null!=g&&Number.isFinite(g)){let e=(0,l.f)(g,h,p);S=(0,o.f)(Number.isNaN(e)?0:e,0,100),N=(_=(0,o.f)(g,h,p))===p?"complete":"progressing",E=C=c?(0,a.f)(_,m,c):(0,a.f)(S/100,m,{style:"percent"})}let R=n.useMemo(()=>({status:N}),[N]),T={"aria-labelledby":j,"aria-valuemax":p,"aria-valuemin":h,"aria-valuenow":_??void 0,"aria-valuetext":u?u(C,g):E,role:"progressbar",children:(0,t.jsxs)(n.Fragment,{children:[b,(0,t.jsx)("span",{role:"presentation",style:i.p,children:"x"})]})},A=n.useMemo(()=>({formattedValue:C,percentageValue:S,setLabelId:k,state:R,value:g}),[C,S,k,R,g]),M=(0,s.a)("div",e,{state:R,ref:r,props:[T,w],stateAttributesMapping:f});return(0,t.jsx)(d.Provider,{value:A,children:M})}),p=n.forwardRef(function(e,t){let{render:r,className:n,style:i,...a}=e,{state:o}=u();return(0,s.a)("div",e,{state:o,ref:t,props:a,stateAttributesMapping:f})}),h=n.forwardRef(function(e,t){let{render:r,className:n,style:i,...a}=e,{percentageValue:o,state:l}=u(),c=null==o?{}:{insetInlineStart:0,height:"inherit",width:`${o}%`};return(0,s.a)("div",e,{state:l,ref:t,props:[{style:c},a],stateAttributesMapping:f})});e.s(["Indicator",0,h,"Root",0,m,"Track",0,p],372909);var g=e.i(372909),g=g,v=g,x=g,b=e.i(136562),y=e.i(207298);let w=(0,y.f)("relative h-4 w-full overflow-hidden rounded-full [&>[role=presentation]]:!absolute",{variants:{track:{default:"bg-secondary",muted:"bg-muted",border:"bg-border",foreground:"bg-foreground/20 dark:bg-foreground/10"}},defaultVariants:{track:"default"}}),j=(0,y.f)((0,b.f)("h-full rounded-full","transition-[width,background-color] duration-fast ease-smooth-out motion-reduce:transition-colors"),{variants:{variant:{accent:"bg-primary",neutral:"bg-foreground",positive:"bg-positive",warning:"bg-warning",promo:"bg-promo",negative:"bg-negative"}},defaultVariants:{variant:"accent"}});e.s(["f",0,function(e){let n,i,a,o,l,s,c,d,u,f,m,p,h,y,k=(0,r.c)(28);k[0]!==e?({className:n,indicatorClassName:i,indicatorColor:a,max:s,track:c,value:d,variant:u,ref:l,...o}=e,k[0]=e,k[1]=n,k[2]=i,k[3]=a,k[4]=o,k[5]=l,k[6]=s,k[7]=c,k[8]=d,k[9]=u):(n=k[1],i=k[2],a=k[3],o=k[4],l=k[5],s=k[6],c=k[7],d=k[8],u=k[9]);let N=void 0===s?100:s,S=Math.min(100,Math.max(0,("number"==typeof d?d:0)/("number"==typeof N&&N>0?N:100)*100));return k[10]!==n||k[11]!==c?(f=(0,b.f)(w({track:c}),n),k[10]=n,k[11]=c,k[12]=f):f=k[12],k[13]!==i||k[14]!==a||k[15]!==u?(m=(0,b.f)(j({variant:u}),void 0!==a&&"bg-(--indicator-color)",i),k[13]=i,k[14]=a,k[15]=u,k[16]=m):m=k[16],k[17]!==a?(p=void 0===a?void 0:{"--indicator-color":a},k[17]=a,k[18]=p):p=k[18],k[19]!==m||k[20]!==p?(h=(0,t.jsx)(g.Track,{className:"h-full w-full",children:(0,t.jsx)(v.Indicator,{className:m,"data-allow-inline-style":!0,style:p})}),k[19]=m,k[20]=p,k[21]=h):h=k[21],k[22]!==S||k[23]!==o||k[24]!==l||k[25]!==f||k[26]!==h?(y=(0,t.jsx)(x.Root,{ref:l,value:S,className:f,...o,children:h}),k[22]=S,k[23]=o,k[24]=l,k[25]=f,k[26]=h,k[27]=y):y=k[27],y}],1423)},743500,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(339814),i=e.i(288265),a=e.i(354896),o=e.i(16043),l=e.i(136562),s=e.i(753996),c=e.i(138257),d=e.i(301206),u=e.i(139697),f=e.i(536397),m=e.i(799963),p=e.i(624112),h=e.i(133735);function g(e){let[t,r]=e;return[r,t]}e.s(["f",0,e=>{let v,x,b,y,w,j,k,N,S,_,C,E,R,T,A,M,L,O,z,I=(0,r.c)(86),{label:B,value:F,options:D,onChange:P,showInnerValue:$,prefixLabel:H,className:V,popoverClassName:W,placeholder:U,shouldSort:q,showSearch:G,variant:Z,size:J,align:X,isGroupHeader:Y,emptyTrigger:K}=e,Q=void 0!==$&&$,ee=void 0===q||q,et=void 0===G||G,er=void 0===Z?"default":Z,en=void 0===J?"md":J,ei=void 0===X?"start":X,ea=(0,i.f)(),eo=(0,c.useLocale)(),[el,es]=(0,o.useState)(!1),ec=(0,o.useRef)(null),{isScrolledToBottom:ed,listCallbackRef:eu}=(0,s.f)();I[0]!==et?(v=e=>{!et||(e.preventDefault(),(0,d.f)()||ec.current?.focus({preventScroll:!0}))},I[0]=et,I[1]=v):v=I[1];let ef=v;I[2]!==D?(x=new Map(Object.entries(D).map(g)),I[2]=D,I[3]=x):x=I[3];let em=x;if(I[4]!==eo||I[5]!==D||I[6]!==ee){let e;I[8]!==eo||I[9]!==ee?(e=(e,t)=>{let[r]=e,[i]=t;return ee?(0,n.o)(r,i,{locale:eo}):0},I[8]=eo,I[9]=ee,I[10]=e):e=I[10],b=Object.entries(D).sort(e),I[4]=eo,I[5]=D,I[6]=ee,I[7]=b}else b=I[7];let ep=b;I[11]!==F||I[12]!==em?(y=em.get(F),I[11]=F,I[12]=em,I[13]=y):y=I[13];let eh=y,eg=void 0!==K&&void 0===eh;if(I[14]!==Y||I[15]!==ep){e:{let e=new Set;if(!Y){w=e;break e}let t=!1;for(let[,r]of ep)Y(r)?t=!0:t?e.add(r):t=!1;w=e}I[14]=Y,I[15]=ep,I[16]=w}else w=I[16];let ev=w,ex="ambient"===er?"ghost":"outline",eb="ambient"===er?"pill":void 0,ey="ambient"===er&&"border border-input text-muted-foreground shadow-none hover:shadow-sm",ew=eg&&"pr-2 text-muted-foreground hover:bg-accent hover:text-foreground";I[17]!==V||I[18]!==ey||I[19]!==ew?(j=(0,l.f)("relative flex w-auto px-2 pr-7","gap-1 overflow-hidden",ey,ew,V),I[17]=V,I[18]=ey,I[19]=ew,I[20]=j):j=I[20],I[21]!==K||I[22]!==ea||I[23]!==B||I[24]!==H||I[25]!==eh||I[26]!==eg||I[27]!==Q||I[28]!==F?(k=eg?K:(0,t.jsxs)(t.Fragment,{children:[void 0!==H&&(0,t.jsx)("span",{className:"shrink-0 text-muted-foreground",children:H}),(0,t.jsx)("span",{className:"truncate",children:eh??ea("Select {label}",{label:B})}),Q&&(0,t.jsxs)("span",{className:"text-muted-foreground min-w-0 truncate text-sm",children:["(",String(F),")"]}),(0,t.jsx)(a.f,{className:"absolute right-1 size-4 opacity-50"})]}),I[21]=K,I[22]=ea,I[23]=B,I[24]=H,I[25]=eh,I[26]=eg,I[27]=Q,I[28]=F,I[29]=k):k=I[29],I[30]!==el||I[31]!==en||I[32]!==ex||I[33]!==eb||I[34]!==j||I[35]!==k?(N=(0,t.jsx)(p.J,{render:(0,t.jsx)(u.Button,{type:"button",variant:ex,size:en,role:"combobox","aria-expanded":el,align:"start",shape:eb,className:j,children:k})}),I[30]=el,I[31]=en,I[32]=ex,I[33]=eb,I[34]=j,I[35]=k,I[36]=N):N=I[36];let ej="sm"===en?"w-48":"w-64",ek="ambient"===er&&"rounded-xl";I[37]!==W||I[38]!==ej||I[39]!==ek?(S=(0,l.f)("p-0",ej,ek,W),I[37]=W,I[38]=ej,I[39]=ek,I[40]=S):S=I[40];let eN="ambient"===er&&"rounded-xl";if(I[41]!==eN?(_=(0,l.f)(eN),I[41]=eN,I[42]=_):_=I[42],I[43]!==ea||I[44]!==U||I[45]!==et||I[46]!==en?(C=et&&(0,t.jsx)(f.H,{ref:ec,placeholder:U??ea("Search"),size:"sm",className:(0,l.f)("sm"===en&&"h-7"),wrapperClassName:(0,l.f)("sm"===en&&"flex-row-reverse"),iconClassName:(0,l.f)("sm"===en&&"h-3 w-3 mr-0 ml-2")}),I[43]=ea,I[44]=U,I[45]=et,I[46]=en,I[47]=C):C=I[47],I[48]!==ev||I[49]!==Y||I[50]!==P||I[51]!==en||I[52]!==ep||I[53]!==F||I[54]!==er){let e;I[56]!==ev||I[57]!==Y||I[58]!==P||I[59]!==en||I[60]!==F||I[61]!==er?(e=e=>{let[r,n]=e;return Y?.(n)?(0,t.jsx)(f.J,{disabled:!0,className:(0,l.f)("pointer-events-none font-semibold text-muted-foreground opacity-100","sm"===en&&"text-xs"),children:r},r):(0,t.jsx)(m.X,{size:"sm"===en?"sm":"md",isSelected:F===n,className:(0,l.f)("ambient"===er&&"rounded-lg text-muted-foreground",ev.has(n)&&"pl-6"),onSelect:()=>{P(n),es(!1)},children:r},r)},I[56]=ev,I[57]=Y,I[58]=P,I[59]=en,I[60]=F,I[61]=er,I[62]=e):e=I[62],E=ep.map(e),I[48]=ev,I[49]=Y,I[50]=P,I[51]=en,I[52]=ep,I[53]=F,I[54]=er,I[55]=E}else E=I[55];return I[63]!==E?(R=(0,t.jsx)(f.W,{children:E}),I[63]=E,I[64]=R):R=I[64],I[65]!==eu||I[66]!==R?(T=(0,t.jsx)(f.X,{ref:eu,children:R}),I[65]=eu,I[66]=R,I[67]=T):T=I[67],I[68]!==ed?(A=(0,t.jsx)(h.f,{isAtEdge:ed}),I[68]=ed,I[69]=A):A=I[69],I[70]!==T||I[71]!==A?(M=(0,t.jsxs)("div",{className:"relative",children:[T,A]}),I[70]=T,I[71]=A,I[72]=M):M=I[72],I[73]!==_||I[74]!==C||I[75]!==M?(L=(0,t.jsxs)(f.s,{className:_,children:[C,M]}),I[73]=_,I[74]=C,I[75]=M,I[76]=L):L=I[76],I[77]!==ei||I[78]!==ef||I[79]!==S||I[80]!==L?(O=(0,t.jsx)(p.T,{className:S,align:ei,onOpenAutoFocus:ef,children:L}),I[77]=ei,I[78]=ef,I[79]=S,I[80]=L,I[81]=O):O=I[81],I[82]!==el||I[83]!==N||I[84]!==O?(z=(0,t.jsxs)(p.V,{open:el,onOpenChange:es,children:[N,O]}),I[82]=el,I[83]=N,I[84]=O,I[85]=z):z=I[85],z}])},656521,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(207298),i=e.i(61885),a=e.i(773151),o=e.i(136562),l=e.i(609623),s=e.i(261499);(0,n.f)("",{variants:{variant:{default:"px-4 py-2.5",action:"w-10 px-3 py-2.5"},align:{left:"text-left",right:"text-right"}},defaultVariants:{variant:"default"}}),(0,n.f)((0,o.f)("group/sort inline-flex max-w-full select-none items-center gap-1","text-inherit transition-colors hover:text-slate-12"),{variants:{align:{left:"",right:"flex-row-reverse"}},defaultVariants:{align:"left"}});let c=28/24;e.s(["z",0,function(e){let n,d,u,f,m,p=(0,r.c)(10),{direction:h,firstDirection:g}=e,v=!1!==h;p[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(a.f,{"aria-hidden":"true",className:(0,o.f)("or-table__sort-icon or-table__sort-icon--muted","opacity-0 transition-opacity duration-fast ease-smooth-out motion-reduce:transition-none","group-hover/sort:opacity-100 group-focus-visible/sort:opacity-100")}),p[0]=n):n=p[0];let x=!1===h&&"delay-(--duration-fast) motion-reduce:transition-transform motion-reduce:duration-0",b="asc"===(!1===h?void 0===g?"asc":g:h)&&"-scale-y-100";return p[1]!==x||p[2]!==b?(d=(0,o.f)("flex",s.a,x,b),p[1]=x,p[2]=b,p[3]=d):d=p[3],p[4]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(i.f,{"aria-hidden":"true",className:"or-table__sort-icon",strokeWidth:c}),p[4]=u):u=p[4],p[5]!==d?(f=(0,t.jsx)("span",{className:d,children:u}),p[5]=d,p[6]=f):f=p[6],p[7]!==v||p[8]!==f?(m=(0,t.jsx)(l.f,{active:v,from:n,to:f}),p[7]=v,p[8]=f,p[9]=m):m=p[9],m},"w",0,function(e,t="asc"){return!1===e?t:e===t&&("asc"===t?"desc":"asc")}])},554395,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(207298),i=e.i(136562),a=e.i(102187);let o=(0,n.f)((0,i.f)("flex w-full","text-body pointer-coarse:text-base","placeholder:text-muted-foreground/50","focus-visible:outline-hidden focus-visible:ring-0","disabled:cursor-not-allowed disabled:opacity-50"),{variants:{variant:{default:(0,i.f)("min-h-20 px-3 py-2","rounded-md border border-input bg-input-bg","focus-visible:border-focus-border focus-visible:shadow-focus"),embedded:"overflow-y-auto px-3 py-2.5"}},defaultVariants:{variant:"default"}}),l=o();e.s(["g",0,l,"o",0,function(e){let n,l,s,c,d,u,f,m,p=(0,r.c)(16);return p[0]!==e?({className:n,inputClassName:s,variant:u,font:l,ref:d,...c}=e,p[0]=e,p[1]=n,p[2]=l,p[3]=s,p[4]=c,p[5]=d,p[6]=u):(n=p[1],l=p[2],s=p[3],c=p[4],d=p[5],u=p[6]),p[7]!==n||p[8]!==l||p[9]!==s||p[10]!==u?(f=(0,i.f)(o({variant:u}),(0,a.f)({font:l}),s,n),p[7]=n,p[8]=l,p[9]=s,p[10]=u,p[11]=f):f=p[11],p[12]!==c||p[13]!==d||p[14]!==f?(m=(0,t.jsx)("textarea",{className:f,ref:d,...c}),p[12]=c,p[13]=d,p[14]=f,p[15]=m):m=p[15],m}])},741155,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562),i=e.i(535072),a=e.i(624112),o=e.i(751155);e.s(["f",0,function(e){let l,s,c,d,u,f=(0,r.c)(35);if((0,i.x)()){let r,i,a,l,s=e.side??"bottom",c=e.align,d=e.sideOffset,u=e.open,m=e.onOpenChange,p=e.inline?"inline-block":"flex items-center justify-center";return f[0]!==p?(r=(0,n.f)("p-0",p),f[0]=p,f[1]=r):r=f[1],f[2]!==e.className?(i=(0,n.f)("w-52 p-2 text-xs",e.className),f[2]=e.className,f[3]=i):i=f[3],f[4]!==e.content||f[5]!==i?(a=(0,t.jsx)("div",{className:i,children:e.content}),f[4]=e.content,f[5]=i,f[6]=a):a=f[6],f[7]!==e.align||f[8]!==e.children||f[9]!==e.onOpenChange||f[10]!==e.open||f[11]!==e.sideOffset||f[12]!==s||f[13]!==r||f[14]!==a?(l=(0,t.jsx)(o.Tooltip,{side:s,align:c,sideOffset:d,open:u,onOpenChange:m,className:r,content:a,children:e.children}),f[7]=e.align,f[8]=e.children,f[9]=e.onOpenChange,f[10]=e.open,f[11]=e.sideOffset,f[12]=s,f[13]=r,f[14]=a,f[15]=l):l=f[15],l}let m=e.open,p=e.onOpenChange,h=e.inline&&"inline-block";f[16]!==h?(l=(0,n.f)(h),f[16]=h,f[17]=l):l=f[17];let g="button"===e.children.type;f[18]!==e.children||f[19]!==l||f[20]!==g?(s=(0,t.jsx)(a.J,{className:l,nativeButton:g,render:e.children}),f[18]=e.children,f[19]=l,f[20]=g,f[21]=s):s=f[21];let v=e.side,x=e.align,b=e.sideOffset;return f[22]!==e.className?(c=(0,n.f)("w-52 p-2",e.className),f[22]=e.className,f[23]=c):c=f[23],f[24]!==e.align||f[25]!==e.content||f[26]!==e.side||f[27]!==e.sideOffset||f[28]!==c?(d=(0,t.jsx)(a.T,{side:v,align:x,sideOffset:b,text:"body",className:c,children:e.content}),f[24]=e.align,f[25]=e.content,f[26]=e.side,f[27]=e.sideOffset,f[28]=c,f[29]=d):d=f[29],f[30]!==e.onOpenChange||f[31]!==e.open||f[32]!==d||f[33]!==s?(u=(0,t.jsxs)(a.V,{open:m,onOpenChange:p,children:[s,d]}),f[30]=e.onOpenChange,f[31]=e.open,f[32]=d,f[33]=s,f[34]=u):u=f[34],u}])},212892,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(88084),i=e.i(136562),a=e.i(548204);function o(e){let n,a,o,l,s=(0,r.c)(8);return s[0]!==e?({className:n,...a}=e,s[0]=e,s[1]=n,s[2]=a):(n=s[1],a=s[2]),s[3]!==n?(o=(0,i.f)("flex size-4 shrink-0 items-center justify-center","[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4","[[data-slot=trace-title]~&]:-ml-1",n),s[3]=n,s[4]=o):o=s[4],s[5]!==a||s[6]!==o?(l=(0,t.jsx)("span",{"data-slot":"trace-icon","aria-hidden":"true",className:o,...a}),s[5]=a,s[6]=o,s[7]=l):l=s[7],l}e.s(["r",0,function(e){let n,a,o,l,s=(0,r.c)(8);return s[0]!==e?({className:n,...a}=e,s[0]=e,s[1]=n,s[2]=a):(n=s[1],a=s[2]),s[3]!==n?(o=(0,i.f)("flex w-full min-w-0 flex-col gap-2","*:has-[>[data-slot=trace-line]]:flex *:has-[>[data-slot=trace-line]]:w-fit","*:has-[>[data-slot=trace-line]]:max-w-full *:has-[>[data-slot=trace-line]]:min-w-0","*:has-[>[data-slot=trace-line]]:rounded-md *:has-[>[data-slot=trace-line]]:text-left","*:has-[>[data-slot=trace-line]]:outline-none","*:has-[>[data-slot=trace-line]]:focus-visible:ring-3 *:has-[>[data-slot=trace-line]]:focus-visible:ring-ring/30",n),s[3]=n,s[4]=o):o=s[4],s[5]!==a||s[6]!==o?(l=(0,t.jsx)("div",{"data-slot":"trace",className:o,...a}),s[5]=a,s[6]=o,s[7]=l):l=s[7],l},"a",0,function(e){let n,o,l,s,c=(0,r.c)(8);return c[0]!==e?({className:n,...o}=e,c[0]=e,c[1]=n,c[2]=o):(n=c[1],o=c[2]),c[3]!==n?(l=(0,i.f)("flex w-full min-w-0 flex-col",n),c[3]=n,c[4]=l):l=c[4],c[5]!==o||c[6]!==l?(s=(0,t.jsx)(a.Collapsible,{"data-slot":"trace-collapsible",className:l,...o}),c[5]=o,c[6]=l,c[7]=s):s=c[7],s},"p",0,function(e){let n,o,l,s,c,d,u=(0,r.c)(12);return u[0]!==e?({className:o,children:n,...l}=e,u[0]=e,u[1]=n,u[2]=o,u[3]=l):(n=u[1],o=u[2],l=u[3]),u[4]!==o?(s=(0,i.f)("mt-2 mb-1 ml-[calc(--spacing(2)-1px)] min-w-0 border-l border-border pr-1 pl-4","leading-body wrap-break-word text-muted-foreground",o),u[4]=o,u[5]=s):s=u[5],u[6]!==n||u[7]!==s?(c=(0,t.jsx)("div",{"data-slot":"trace-collapsible-content-inner",className:s,children:n}),u[6]=n,u[7]=s,u[8]=c):c=u[8],u[9]!==l||u[10]!==c?(d=(0,t.jsx)(a.CollapsibleContent,{"data-slot":"trace-collapsible-content",className:"min-w-0",...l,children:c}),u[9]=l,u[10]=c,u[11]=d):d=u[11],d},"G",0,function(e){let l,s,c,d,u,f,m=(0,r.c)(11);return m[0]!==e?({className:s,children:l,...c}=e,m[0]=e,m[1]=l,m[2]=s,m[3]=c):(l=m[1],s=m[2],c=m[3]),m[4]!==s?(d=(0,i.f)("group/trace-collapsible-trigger flex w-fit max-w-full min-w-0 cursor-pointer items-center gap-1","rounded-md text-left text-muted-foreground outline-none","transition-colors duration-quick hover:text-foreground","focus-visible:ring-3 focus-visible:ring-ring/30","has-[[data-status=error]]:text-negative-text",s),m[4]=s,m[5]=d):d=m[5],m[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(o,{className:"transition-transform duration-fast ease-smooth-out motion-reduce:transition-none group-data-[panel-open]/trace-collapsible-trigger:rotate-90",children:(0,t.jsx)(n.f,{})}),m[6]=u):u=m[6],m[7]!==l||m[8]!==c||m[9]!==d?(f=(0,t.jsxs)(a.CollapsibleTrigger,{"data-slot":"trace-collapsible-trigger",className:d,...c,children:[l,u]}),m[7]=l,m[8]=c,m[9]=d,m[10]=f):f=m[10],f},"E",0,function(e){let n,a,o,l,s=(0,r.c)(8);return s[0]!==e?({className:n,...a}=e,s[0]=e,s[1]=n,s[2]=a):(n=s[1],a=s[2]),s[3]!==n?(o=(0,i.f)("shrink-0 text-muted-foreground/70 tabular-nums",n),s[3]=n,s[4]=o):o=s[4],s[5]!==a||s[6]!==o?(l=(0,t.jsx)("span",{"data-slot":"trace-description",className:o,...a}),s[5]=a,s[6]=o,s[7]=l):l=s[7],l},"L",0,o,"V",0,function(e){let n,a,o,l,s,c=(0,r.c)(10);return c[0]!==e?({className:n,status:o,...a}=e,c[0]=e,c[1]=n,c[2]=a,c[3]=o):(n=c[1],a=c[2],o=c[3]),c[4]!==n?(l=(0,i.f)("flex w-fit max-w-full min-w-0 items-center gap-2 text-body text-muted-foreground","transition-colors duration-quick","in-[a,button]:cursor-pointer in-[a:hover,button:hover]:text-foreground","data-[status=error]:text-negative-text data-[status=error]:in-[a:hover,button:hover]:text-negative-text","data-[status=pending]:opacity-60","data-[status=running]:*:data-[slot=trace-title]:shimmer-text",n),c[4]=n,c[5]=l):l=c[5],c[6]!==a||c[7]!==o||c[8]!==l?(s=(0,t.jsx)("span",{"data-slot":"trace-line","data-status":o,className:l,...a}),c[6]=a,c[7]=o,c[8]=l,c[9]=s):s=c[9],s},"O",0,{Running:"running",Error:"error",Pending:"pending"},"W",0,function(e){let n,a,o,l,s=(0,r.c)(8);return s[0]!==e?({className:n,...a}=e,s[0]=e,s[1]=n,s[2]=a):(n=s[1],a=s[2]),s[3]!==n?(o=(0,i.f)("min-w-0 truncate",n),s[3]=n,s[4]=o):o=s[4],s[5]!==a||s[6]!==o?(l=(0,t.jsx)("span",{"data-slot":"trace-title",className:o,...a}),s[5]=a,s[6]=o,s[7]=l):l=s[7],l}])},336810,e=>{"use strict";var t=e.i(497214),r=e.i(315368);let n={Blue:"var(--chart-1)",Mint:"var(--chart-2)",YellowOrange:"var(--chart-3)",Orange:"var(--chart-4)",Tomato:"var(--chart-5)",SteelBlue:"var(--chart-6)",YellowGreen:"var(--chart-7)",Orchid:"var(--chart-8)",Turquoise:"var(--chart-9)",HotPink:"var(--chart-10)",Goldenrod:"var(--chart-11)",MediumSlateBlue:"var(--chart-12)",LightCoral:"var(--chart-13)",OliveDrab:"var(--chart-14)",PaleVioletRed:"var(--chart-15)",MediumSeaGreen:"var(--chart-16)",DarkKhaki:"var(--chart-17)",Purple:"var(--chart-18)",OrangeRed:"var(--chart-19)",SeaGreen:"var(--chart-20)",Slate400:"#94a3b8"},i=[n.Blue,n.Mint,n.YellowOrange,n.Orange,n.Tomato,n.SteelBlue,n.YellowGreen,n.Orchid,n.Turquoise,n.HotPink,n.Goldenrod,n.MediumSlateBlue,n.LightCoral,n.OliveDrab,n.PaleVioletRed,n.MediumSeaGreen,n.DarkKhaki,n.Purple,n.OrangeRed,n.SeaGreen],a=e=>!(e.length<3)&&new Set(e.map(e=>new Date(e)).map(e=>e.toISOString().slice(0,10))).sizeMath.round(e+i*r)))}let a=Math.ceil(e/i)*i,o=Math.floor(r/i)*i,l=Math.floor((o-a)/i)+1;if(l<2)return[];let s=Math.max(1,Math.round((l-1)/(n-1))),c=Math.floor((l-1)/s)+1;return Array.from({length:c},(e,t)=>o-(c-1-t)*s*i)},"D",0,(e,n)=>{let i=(0,t.H)(e.map(e=>(0,r.I)(String(e[o])).getUTCFullYear())),l=(0,t.H)(e.map(e=>(0,r.I)(String(e[o])).toISOString().slice(0,10)));return{containsMultipleYears:i.length>1,containsMultipleDays:l.length>1,isHighRes:a(n)}},"I",0,function(e){return void 0===e||e?"opacity-100":"opacity-50"}])},511667,e=>{"use strict";var t=e.i(336810);let r="Other",n=t.F.Slate400;function i(e){return e===r||"Others"===e}function a(e){let t=0x811c9dc5;for(let r=0;r>>0;return t}e.s(["w",0,n,"d",0,r,"C",0,"__other__","z",0,function(e,r){let o=new Map,l=new Set;for(let s of[...new Set(e)].toSorted()){if(i(s)){o.set(s,n);continue}if(0===r.length){o.set(s,t.a);continue}let e=a(s)%r.length,c=function({preferredSlot:e,paletteLength:t,claimedSlots:r}){for(let n=0;n{"use strict";var t=e.i(579841),r=e.i(988590),n=e.i(733476);e.s(["f",0,function(e){var i;return!!(0,t.a)(e.output_modalities)&&(!e.endpoint||(i=e.endpoint.adapter_name,!!(0,r.q)(i,n.n)||!((0,r.q)(i,n.G)||(0,r.q)(i,n.W))&&!(0,r.q)(i,n.O)))}],632665)},512688,e=>{"use strict";var t=e.i(663456),r=e.i(16043),n=e.i(143253);e.s(["f",0,function(e){let i,a,o=(0,t.c)(3),l=(0,r.useRef)(e);return o[0]!==e?(i=()=>{l.current=e},a=[e],o[0]=e,o[1]=i,o[2]=a):(i=o[1],a=o[2]),(0,n.f)(i,a),l}])},648292,e=>{"use strict";var t=e.i(663456),r=e.i(16043);let n=()=>void 0;function i(){}e.s(["f",0,function(e){let a,o,l=(0,t.c)(4);l[0]!==e?(a=t=>{let r=e.current;if(!r||"u"n.disconnect()},l[0]=e,l[1]=a):a=l[1];let s=a;l[2]!==e?(o=()=>e.current?.offsetWidth,l[2]=e,l[3]=o):o=l[3];let c=o;return(0,r.useSyncExternalStore)(s,c,n)}])},866969,e=>{"use strict";var t=e.i(663456),r=e.i(16043),n=e.i(143253);e.s(["f",0,function(e,i){let a,o,l,s,c=(0,t.c)(6),d=(0,r.useRef)(e);c[0]!==e?(a=()=>{d.current=e},o=[e],c[0]=e,c[1]=a,c[2]=o):(a=c[1],o=c[2]),(0,n.f)(a,o),c[3]!==i?(l=()=>{if(null===i)return;let e=setInterval(()=>{d.current()},i);return()=>{clearInterval(e)}},s=[i],c[3]=i,c[4]=l,c[5]=s):(l=c[4],s=c[5]),(0,r.useEffect)(l,s)}])},753996,133735,e=>{"use strict";var t=e.i(663456),r=e.i(16043);function n(){return 3}function i(){}e.s(["f",0,function(){let e,a,o,l=(0,t.c)(7),[s,c]=(0,r.useState)(null);l[0]!==s?(e=e=>{if(!s)return i;s.addEventListener("scroll",e,{passive:!0});let t=new MutationObserver(e);return t.observe(s,{childList:!0,subtree:!0,attributes:!0}),()=>{s.removeEventListener("scroll",e),t.disconnect()}},l[0]=s,l[1]=e):e=l[1];let d=e;l[2]!==s?(a=()=>{var e;return(e=s)?e.scrollTop<8|2*(e.scrollHeight-e.scrollTop-e.clientHeight<8):3},l[2]=s,l[3]=a):a=l[3];let u=a,f=(0,r.useSyncExternalStore)(d,u,n),m=(2&f)!=0,p=(1&f)!=0;return l[4]!==m||l[5]!==p?(o={isScrolledToBottom:m,isScrolledToTop:p,listCallbackRef:c},l[4]=m,l[5]=p,l[6]=o):o=l[6],o}],753996);var a=e.i(659350),o=e.i(354896),l=e.i(206581),s=e.i(136562);e.s(["f",0,function(e){let r,n,i,c=(0,t.c)(8),{isAtEdge:d,side:u}=e,f="top"===(void 0===u?"bottom":u),m=f?"top-0 bg-gradient-to-b pb-3 pt-1":"bottom-0 bg-gradient-to-t pb-1 pt-3",p=d?"opacity-0":"opacity-100";return c[0]!==m||c[1]!==p?(r=(0,s.f)("pointer-events-none absolute inset-x-0 flex justify-center transition-opacity duration-150",m,"from-popover via-popover/80 to-transparent",p),c[0]=m,c[1]=p,c[2]=r):r=c[2],c[3]!==f?(n=f?(0,a.jsx)(l.f,{className:"size-4 text-muted-foreground"}):(0,a.jsx)(o.f,{className:"size-4 text-muted-foreground"}),c[3]=f,c[4]=n):n=c[4],c[5]!==r||c[6]!==n?(i=(0,a.jsx)("div",{className:r,"aria-hidden":"true",children:n}),c[5]=r,c[6]=n,c[7]=i):i=c[7],i}],133735)},315368,e=>{"use strict";var t=e.i(30368),r=e.i(272114),n=e.i(647204);let i=e=>{let t=(0,r.z)(e);return new Date((0,n.V)(t)?0/0:t.data)};e.s(["$",0,function(e,r,n=!1){return(0,t.f)(e).date(i(r),{timeZone:"UTC",preset:n?"medium":"day-month"})??"—"},"M",0,function(e,{value:r,shouldIncludeDay:n=!1,timeZone:a}){let o=(0,t.f)(e),l=i(r);return(n?o.dateTime(l,{timeZone:a,preset:"chart-numeric-hour"}):o.time(l,{timeZone:a,preset:"numeric"}))??"—"},"I",0,i,"n",0,function(e,t){return"utc"===e||"UTC"===t?void 0:t}])},989794,e=>{"use strict";var t=e.i(756247),r=e.i(387086);let n={[t.f.Temperature]:(0,r.b)("Temperature"),[t.f.TopP]:(0,r.b)("Top P"),[t.f.TopK]:(0,r.b)("Top K"),[t.f.MinP]:(0,r.b)("Min P"),[t.f.TopA]:(0,r.b)("Top A"),[t.f.FrequencyPenalty]:(0,r.b)("Frequency penalty"),[t.f.PresencePenalty]:(0,r.b)("Presence penalty"),[t.f.RepetitionPenalty]:(0,r.b)("Repetition penalty"),[t.f.MaxTokens]:(0,r.b)("Max tokens"),[t.f.MaxCompletionTokens]:(0,r.b)("Max completion tokens"),[t.f.LogitBias]:(0,r.b)("Logit bias"),[t.f.Logprobs]:(0,r.b)("Logprobs"),[t.f.TopLogprobs]:(0,r.b)("Top logprobs"),[t.f.Prediction]:(0,r.b)("Prediction"),[t.f.Seed]:(0,r.b)("Seed"),[t.f.ResponseFormat]:(0,r.b)("Response format"),[t.f.StructuredOutputs]:(0,r.b)("Structured outputs"),[t.f.Stop]:(0,r.b)("Stop"),[t.f.Tools]:(0,r.b)("Tools"),[t.f.ToolChoice]:(0,r.b)("Tool choice"),[t.f.ParallelToolCalls]:(0,r.b)("Parallel tool calls"),[t.f.IncludeReasoning]:(0,r.b)("Include reasoning"),[t.f.Reasoning]:(0,r.b)("Reasoning"),[t.f.ReasoningEffort]:(0,r.b)("Reasoning effort"),[t.f.WebSearchOptions]:(0,r.b)("Web search options"),[t.f.Verbosity]:(0,r.b)("Verbosity")};e.s(["f",0,function(e,t){return e(n[t])}])},234281,e=>{"use strict";var t=e.i(663456);e.i(16043);var r=e.i(801103),n=e.i(797521),i=e.i(304903);function a(e,a){let o,l=(0,t.c)(5),s=(0,n.f)(),c=(0,i.P)(e),d=(0,r.m)();return l[0]!==s||l[1]!==d||l[2]!==a||l[3]!==c?(o=e=>void 0===d?s.dateTime(e,{timeZone:c,preset:"full"}):s.relativeTime(e,{timeZone:c,nowMs:d,preset:a}),l[0]=s,l[1]=d,l[2]=a,l[3]=c,l[4]=o):o=l[4],o}e.s(["n",0,a,"D",0,function(e,r){let n,i=(0,t.c)(3),o=a(void 0,r);return i[0]!==o||i[1]!==e?(n=o(e),i[0]=o,i[1]=e,i[2]=n):n=i[2],n}])},853508,e=>{"use strict";var t=e.i(805276),r=e.i(127160);let n="",i="",a="",o="//";function l(e,...t){return e.reduce((e,r,n)=>{let i=t[n];return i?`${e}${r}${i}`:`${e}${r}`.trimEnd()},"")}let s=({siteUrl:e=i,siteName:t=a,commentPrefix:r=o}={})=>[`"HTTP-Referer": "${e}", ${r} Optional. Site URL for rankings on openrouter.ai.`,`"X-OpenRouter-Title": "${t}", ${r} Optional. Site title for rankings on openrouter.ai.`];e.s(["G",0,a,"$",0,i,"s",0,({apiKey:e="$OPENROUTER_API_KEY",data:t="",endpoint:r="chat/completions"})=>` curl https://openrouter.ai/api/v1/${r} \\ -H "Content-Type: application/json" \\ -H "Authorization: Bearer ${e}" \\ -d '${t}' `,"N",0,({apiKey:e=r.O,siteUrl:c=i,siteName:d=a,model:u=n,system:f="",prompt:m="Hello",messages:p="",prefill:h="",top_p:g,temperature:v,frequency_penalty:x,presence_penalty:b,repetition_penalty:y,provider:w,top_k:j,response_format:k})=>{let N=p;N&&0!==N.length||(N=[f&&`{"role": "system", "content": "${f}"}`,`{"role": "user", "content": "${m}"}`,h&&`{"role": "assistant", "content": "${h}"}`].filter(Boolean).join(",\n "),N=`[ ${N} ]`);let S=`"${n}", ${o} Required. ex: "openai/gpt-4o"`,_=[`"model": ${!u||u===n?S:`"${u}"`}`,`"messages": ${N}`,g&&`"top_p": ${g}`,v&&`"temperature": ${v}`,x&&`"frequency_penalty": ${x}`,b&&`"presence_penalty": ${b}`,y&&`"repetition_penalty": ${y}`,j&&`"top_k": ${j}`,w&&`"provider": ${(0,t.c)(w)}`,k&&`"response_format": ${(0,t.c)(k)}`].filter(Boolean).join(`, ${(0,t.G)(6)}`);return l` fetch("https://openrouter.ai/api/v1/chat/completions", { method: "POST", headers: { "Authorization": "Bearer ${e}", ${s({siteUrl:c,siteName:d}).join("\n ")} "Content-Type": "application/json" }, body: JSON.stringify({ ${_} }) }); `},"V",0,s])},656921,e=>{"use strict";var t=e.i(663456),r=e.i(16043);e.s(["f",0,function(e,n){let i,a,o,l=(0,t.c)(6);l[0]!==e||l[1]!==n?(i=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))},l[0]=e,l[1]=n,l[2]=i):i=l[2];let s=(0,r.useEffectEvent)(i);l[3]!==s?(a=()=>{let e=e=>s(e);return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},l[3]=s,l[4]=a):a=l[4],l[5]===Symbol.for("react.memo_cache_sentinel")?(o=[],l[5]=o):o=l[5],(0,r.useEffect)(a,o)}])},149784,e=>{"use strict";e.s(["f",0,function(){return!("u"{e.q("/_next/static/immutable/media/highlight.worker.3-ioem5915ckg.ts")},405266,e=>{e.v(e.r(510914).f("static/immutable/chunks/turbopack-worker-38eq_8frvyaul.js",["static/immutable/chunks/0t_n-r81acfo9.js","static/immutable/chunks/418fptazfd3br.js","static/immutable/chunks/turbopack-0bzpzepyyv54r.js","static/immutable/chunks/turbopack-35u-62ruoxs7i.js"]))},790870,e=>{"use strict";let t={Quality:"quality",Budget:"budget",Fast:"fast"},r=[{id:t.Quality,label:"Quality",emoji:"🏆",permaslugs:["~anthropic/claude-opus-latest","~openai/gpt-sol-latest","~google/gemini-pro-latest"]},{id:t.Budget,label:"Budget",emoji:"💰",permaslugs:["~google/gemini-flash-latest","deepseek/deepseek-v4-flash","~moonshotai/kimi-latest"]},{id:t.Fast,label:"Fast",emoji:"⚡",permaslugs:["~google/gemini-flash-latest","deepseek/deepseek-v4-flash","~moonshotai/kimi-latest"]}],n=t.Quality;e.s(["b",0,"~anthropic/claude-opus-latest","j",0,n,"p",0,r,"t",0,t])},430022,e=>{"use strict";e.s(["v",0,function(e){if(!/^\d{4}-\d{2}-\d{2}$/u.test(e))return!1;let t=new Date(`${e}T00:00:00.000Z`);return!Number.isNaN(t.getTime())&&t.toISOString().slice(0,10)===e},"o",0,function(e){return!Number.isNaN(e.getTime())},"N",0,864e5,"V",0,3600,"X",0,6e4,"O",0,2592e6,"R",0,1e3,"b",0,6048e5,"y",0,function(e){if(!e)return new Date(0/0);let t=e.replace(" ","T");return new Date(/[zZ]$|[+-]\d{2}:\d{2}$/.test(t)?t:`${t}Z`)},"P",0,function(e,t){if(!e)return t;if(e instanceof Date)return Number.isNaN(e.getTime())?t:e;if("string"==typeof e||"number"==typeof e){let t=new Date(e);if(!Number.isNaN(t.getTime()))return t}return t},"S",0,function(e,t=0){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+t,1))},"Q",0,e=>e.toISOString().split("T")[0]])},473028,e=>{"use strict";var t=e.i(647204);let r=/^[A-Za-z0-9+/\-_=\s]*$/,n=/^$/,i="data:",a=";base64,";function o(e){let t=r.test(e);return n.test(""),t}e.s(["k",0,function(e){let r=e.indexOf(";");if(e.startsWith(i)&&r>i.length&&e.startsWith(a,r)){let n=e.slice(i.length,r),l=e.slice(r+a.length);if(n&&l&&!n.includes(":")&&o(l))return(0,t.N)({mimeType:n,base64:l})}return function(e){let[r,n]=e.split(";");if(!r||!n)return(0,t.Y)({location:"decodeBase64DataURL",message:"Invalid base64 data URL: missing data prefix or base64 payload"});let i=r.split(":")[1],a=n.split(",")[1];return i&&a?o(a)?(0,t.N)({mimeType:i,base64:a}):(0,t.Y)({location:"decodeBase64DataURL",message:"Invalid base64 data URL: payload is not base64-encoded data"}):(0,t.Y)({location:"decodeBase64DataURL",message:"Invalid base64 data URL: missing mime type or base64 content"})}(e)},"d",0,function({mimeType:e,base64:t}){return`data:${e};base64,${t}`},"i",0,function(e){return e.startsWith("data:")&&e.includes(";base64,",5)&&!e.includes("\n")&&!e.includes("\r")&&!e.includes("\u2028")&&!e.includes("\u2029")}])},820223,e=>{"use strict";let t;var r=e.i(647204),n=e.i(167182);let i="function"==typeof n.Buffer,a="function"==typeof TextDecoder?new TextDecoder:void 0,o="function"==typeof TextEncoder?new TextEncoder:void 0,l=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),s=(t={},l.forEach((e,r)=>t[e]=r),t),c=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,d=String.fromCharCode.bind(String),u="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),f=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),m="function"==typeof btoa?e=>btoa(e):i?e=>n.Buffer.from(e,"binary").toString("base64"):e=>{let t,r,n,i,a="",o=e.length%3;for(let o=0;o255||(n=e.charCodeAt(o++))>255||(i=e.charCodeAt(o++))>255)throw TypeError("invalid character found");a+=l[(t=r<<16|n<<8|i)>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}return o?a.slice(0,o-3)+"===".substring(o):a},p=i?e=>n.Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;rt?f(p(e)):p(e),g=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?d(192|t>>>6)+d(128|63&t):d(224|t>>>12&15)+d(128|t>>>6&63)+d(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return d(240|t>>>18&7)+d(128|t>>>12&63)+d(128|t>>>6&63)+d(128|63&t)},v=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,x=i?e=>n.Buffer.from(e,"utf8").toString("base64"):o?e=>p(o.encode(e)):e=>m(e.replace(v,g)),b=(e,t=!1)=>t?f(x(e)):x(e),y=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,w=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return d((t>>>10)+55296)+d((1023&t)+56320);case 3:return d((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return d((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},j="function"==typeof atob?e=>atob(e.replace(/[^A-Za-z0-9\+\/]/g,"")):i?e=>n.Buffer.from(e,"base64").toString("binary"):e=>{let t,r,n;if(e=e.replace(/\s+/g,""),!c.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let i=[];for(let a=0;a>16&255)):64===n?i.push(d(t>>16&255,t>>8&255)):i.push(d(t>>16&255,t>>8&255,255&t));return i.join("")},k=i?e=>u(n.Buffer.from(e,"base64")):e=>u(j(e).split("").map(e=>e.charCodeAt(0))),N=e=>k(_(e)),S=i?e=>n.Buffer.from(e,"base64").toString("utf8"):a?e=>a.decode(k(e)):e=>j(e).replace(y,w),_=e=>e.replace(/[-_]/g,e=>"-"==e?"+":"/").replace(/[^A-Za-z0-9\+\/]/g,"");function C(e){let t=0,r=0,n=!1,i=!1;for(let a=0;a=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){if(r>0)return!1;t+=1}else if(43===o||47===o){if(r>0)return!1;n=!0,t+=1}else if(45===o||95===o){if(r>0)return!1;i=!0,t+=1}else if(61===o){if((r+=1)>2)return!1}else if(!(32===o||o>=9&&o<=13||160===o||5760===o||o>=8192&&o<=8202||8232===o||8233===o||8239===o||8287===o||12288===o||65279===o))return!1}let a=0===r||(t+r)%4==0;return t>0&&!(n&&i)&&t%4!=1&&a}let E=/^data:[^,]{0,255};base64,/i;e.s(["T",0,function(e){try{if(!C(e))return;let t=e.replaceAll(/\s/g,""),n=(0,r.$)(()=>new Uint8Array(N(t)));return(0,r.C)(n)?n.data:void 0}finally{/(?:)/.test("")}},"L",0,function(e){return h(e)},"Y",0,function(e){return b(e)},"D",0,function(e){return"data:"===e.slice(0,5).toLowerCase()},"o",0,function(e){try{return C(e.replace(E,""))}finally{/(?:)/.test("")}}],820223)},924360,e=>{"use strict";let t=void 0!==Reflect.get(globalThis,"Bun"),r=new Map([[110,"\n"],[116," "],[114,"\r"],[118,"\v"],[98,"\b"],[102,"\f"],[48,"\0"]]),n=/\\u\{([\da-fA-F]{1,6})\}/g,i=/\\u([\da-fA-F]{4})/g,a=/\\u(?:\{([\da-fA-F]{1,6})\}|([\da-fA-F]{4}))/g,o=/\\\n[ \t]*/g,l=/\\`/g,s=/\\\$/g,c=/\\\{/g;function d(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function u(e,t){return String.fromCodePoint(Number.parseInt(t,16))}function f(e,t){return String.fromCharCode(Number.parseInt(t,16))}function m(e){return String.fromCodePoint(Number.parseInt(123===e.charCodeAt(2)?e.slice(3,-1):e.slice(2),16))}e.s(["f",0,function(e,...p){var h,g;let v="string"!=typeof e,x=(function(e){let t=function(e){let t,r=0;for(;;){var n;let i=r;for(;i=11&&n<=13:160===n||5760===n||n>=8192&&n<=8202||8232===n||8233===n||8239===n||8287===n||12288===n||65279===n);)i++;let a=i-r;a>0&&i{"use strict";function t(e,r={baseIndent:0}){let n=e.split("\n"),i=n.map(e=>e.length-e.trimStart().length).filter(e=>e>0),a=Math.min(...i)-r.baseIndent,o=Math.max(r.baseIndent-Math.min(...i),0);return n.map((e,t)=>{let r=e.length-e.trimStart().length;return o>0&&t>0?" ".repeat(o)+e:r>=a?e.substring(a):e}).join("\n")}function r(e,t=2){try{return JSON.stringify(e,null,t)}catch{return String(e)}}function n(e,t=2){return r(e,t)}function i(e,n=8){return t(r(e),{baseIndent:n})}e.s(["G",0,function(e=8){return" ".repeat(e)},"c",0,i,"h",0,function(e,t=8){return n(e)},"F",0,function(e,t=8){return i(e,t).replaceAll(/: true(?=\s|,|}|$)/gm,": True").replaceAll(/: false(?=\s|,|}|$)/gm,": False").replaceAll(/: null(?=\s|,|}|$)/gm,": None")},"H",0,t,"K",0,r,"T",0,n])},769122,e=>{"use strict";var t,r=((t={}).CodeDebugging="code:debugging",t.CodeSecurityReview="code:review_security",t.CodeGeneralImpl="code:general_impl",t.CodeSqlDatabase="code:sql_database",t.CodeFrontendUi="code:frontend_ui",t.CodeDevopsConfig="code:devops_config",t.CodeShellExecution="code:shell_execution",t.CodeFileReadWrite="code:file_read_write",t.CodeRepoScan="code:repo_scan",t.AgentMultiStepPlanning="agent:multi_step_planning",t.AgentWebSearch="agent:web_search",t.AgentWorkflowExecution="agent:workflow_execution",t.AgentToolDispatch="agent:tool_dispatch",t.AgentMemoryExtraction="agent:memory_extraction",t.ClassificationTagging="classification_tagging",t.DataExtraction="data:extraction",t.DataTransformation="data:transformation",t.Devops="devops",t.Summarization="summarization",t.Translation="translation",t.ContentWriting="content_writing",t.ResearchReport="research_report",t.QaKnowledge="qa_knowledge",t.ConversationalReply="conversational_reply",t.CustomerSupport="customer_support",t.FinanceTrading="finance_trading",t.SecurityAudit="security_audit",t.Math="math",t.RoleplayFiction="roleplay_fiction",t.Other="other",t);let n=Object.values(r);e.s(["H",0,n,"G",0,[{tag:"code:general_impl",displayName:"Code Generation",description:"Write new code to solve a non-trivial problem (function, class, feature)."},{tag:"code:debugging",displayName:"Debugging",description:"Diagnose why something doesn't work — stack traces, bug location, fix proposal."},{tag:"code:review_security",displayName:"Code Review",description:"Audit code for vulnerabilities, correctness, or quality issues."},{tag:"code:sql_database",displayName:"SQL & Database",description:"Write or analyze SQL queries, schema design, query optimization."},{tag:"code:frontend_ui",displayName:"Frontend & UI",description:"Write or modify UI components — HTML/CSS/React/Vue/etc."},{tag:"code:devops_config",displayName:"DevOps & Config",description:"Infrastructure config files — Dockerfile, Kubernetes, Terraform, GitHub Actions."},{tag:"code:shell_execution",displayName:"Shell Execution",description:"Run or generate a shell command."},{tag:"code:file_read_write",displayName:"File I/O",description:"Read or write file contents — open, cat, edit, save."},{tag:"code:repo_scan",displayName:"Repo Scanning",description:"Search or list files in a repo — find, grep, list."},{tag:"agent:multi_step_planning",displayName:"Multi-step Planning",description:"Decompose a goal into a multi-step execution plan."},{tag:"agent:web_search",displayName:"Web Search",description:"Search the web or look up online information."},{tag:"agent:workflow_execution",displayName:"Workflow Execution",description:"Execute or orchestrate a multi-step workflow/pipeline. Default for autonomous agent system prompts."},{tag:"agent:tool_dispatch",displayName:"Tool Dispatch",description:"Call a specific tool or function within an agent context."},{tag:"agent:memory_extraction",displayName:"Memory Extraction",description:"Extract or store memory facts from a conversation."},{tag:"classification_tagging",displayName:"Classification",description:"Assign a label or category to supplied text — sentiment, intent, urgency."},{tag:"data:extraction",displayName:"Data Extraction",description:"Pull values out of supplied text — names, dates, entities, fields."},{tag:"data:transformation",displayName:"Data Transformation",description:"Reshape or restructure supplied data — JSON↔CSV, sort, group, reformat."},{tag:"devops",displayName:"DevOps",description:"Deployment operations, cluster management, infrastructure at the system level."},{tag:"summarization",displayName:"Summarization",description:"Produce a shorter version of supplied text."},{tag:"translation",displayName:"Translation",description:"Translate text from one language to another."},{tag:"content_writing",displayName:"Content Writing",description:"Draft net-new prose — emails, blog posts, social copy, marketing."},{tag:"research_report",displayName:"Research & Reports",description:"Produce a written report from multiple sources — market analysis, comparison."},{tag:"qa_knowledge",displayName:"Q&A & Knowledge",description:"Factual Q&A from world knowledge — explain X, what is Y, how does Z work."},{tag:"conversational_reply",displayName:"Conversation",description:"Genuine chat-turn reply in a conversational register."},{tag:"customer_support",displayName:"Customer Support",description:"Customer support ticket handling — schedule, book, route, FAQ, billing."},{tag:"finance_trading",displayName:"Finance & Trading",description:"Trading signals, market analysis, financial modeling."},{tag:"security_audit",displayName:"Security Audit",description:"Penetration test, threat modeling, vulnerability scan, compliance review."},{tag:"math",displayName:"Math",description:"Solve equations, proofs, integrals, derivatives."},{tag:"roleplay_fiction",displayName:"Roleplay & Fiction",description:"Character roleplay, interactive fiction, narrative continuation."},{tag:"other",displayName:"Other",description:"True last resort: corrupted text, empty messages, pure gibberish."}],"Z",()=>r])},127160,e=>{"use strict";e.s(["O",0,"","f",0,"https://discord.gg/fVyRaUDgxW","Z",0,"https://github.com/OpenRouterTeam","F",0,"https://www.linkedin.com/company/104068329","T",0,"https://status.openrouter.ai","q",0,"https://twitter.com/openrouter","B",0,"https://www.youtube.com/@OpenRouterAI"])},314522,e=>{"use strict";e.i(882844);var t=e.i(635157);let r=t.z.union([t.z.string(),t.z.record(t.z.string(),t.z.unknown()),t.z.array(t.z.unknown())]).openapi({description:"A plain string, or a JSON object or array of structured guidance."});e.s(["f",0,r])},219027,324202,e=>{"use strict";e.s(["f",0,function(e){return"messages"in e&&Array.isArray(e.messages)&&e.messages.length>0}],219027);var t=e.i(368174);e.s(["f",0,function(e){return(0,t.f)(e)&&Array.isArray(e.content)}],324202)},431525,e=>{"use strict";var t=e.i(663456),r=e.i(273536),n=e.i(402600);function i(e){let t=(0,r.s)(e);return void 0===t?"/logs":`/workspaces/${t}/logs`}e.s(["b",0,i,"D",0,function(){let e,r=(0,t.c)(2),a=(0,n.f)();return r[0]!==a?(e=i(a),r[0]=a,r[1]=e):e=r[1],e}])},404142,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562),i=e.i(139697),a=e.i(875910),o=e.i(751155),l=e.i(656921);e.i(707060);var s=e.i(196991),c=e.i(288265),d=e.i(859986),u=e.i(651681);let f={name:"panel-left",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],aliases:["sidebar"]};f.node;let m=(0,u.f)(f);e.i(406201);var p=e.i(967605);function h(e){let n,i=(0,r.c)(8),{title:a,isExpanded:o,onToggle:l,newAction:s,newActionPlacement:c}=e;if(o||void 0===l){let e;return i[0]!==s||i[1]!==c||i[2]!==l||i[3]!==a?(e=(0,t.jsx)(v,{title:a,onToggle:l,newAction:s,newActionPlacement:c}),i[0]=s,i[1]=c,i[2]=l,i[3]=a,i[4]=e):e=i[4],e}return i[5]!==s||i[6]!==l?(n=(0,t.jsx)(x,{onToggle:l,newAction:s}),i[5]=s,i[6]=l,i[7]=n):n=i[7],n}function g(e){let i,a,o,l=(0,r.c)(5),{backAction:s}=e,c=s.href;return l[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.f)("flex h-10 w-full items-center gap-2 rounded-md px-2","text-sm hover:bg-card-hover"),a=(0,t.jsx)(d.f,{className:"size-3.5 shrink-0"}),l[0]=i,l[1]=a):(i=l[0],a=l[1]),l[2]!==s.href||l[3]!==s.label?(o=(0,t.jsx)("div",{className:"-mx-2 -mt-px shrink-0 border-b border-border px-2 pb-2",children:(0,t.jsxs)(p.Link,{href:c,variant:"subtle",className:i,children:[a,s.label]})}),l[2]=s.href,l[3]=s.label,l[4]=o):o=l[4],o}function v(e){let a,l,s,d,u,f,p,h=(0,r.c)(29),{title:g,onToggle:v,newAction:x,newActionPlacement:b}=e,y=(0,c.f)(),w=x.icon,j="header"===b;return h[0]!==g?(a=(0,t.jsx)("h3",{className:"text-base font-medium text-foreground",children:g}),h[0]=g,h[1]=a):a=h[1],h[2]!==w||h[3]!==j||h[4]!==x.ariaLabel||h[5]!==x.isDisabled||h[6]!==x.label||h[7]!==x.onClick?(l=j?(0,t.jsx)(o.Tooltip,{side:"bottom",delay:0,content:x.label,children:(0,t.jsx)(i.Button,{size:"icon",variant:"ghost","aria-label":x.ariaLabel,onClick:x.onClick,disabled:x.isDisabled,className:"shrink-0",children:(0,t.jsx)(w,{className:"size-5 text-muted-foreground"})})}):null,h[2]=w,h[3]=j,h[4]=x.ariaLabel,h[5]=x.isDisabled,h[6]=x.label,h[7]=x.onClick,h[8]=l):l=h[8],h[9]!==y||h[10]!==v?(s=v?(0,t.jsx)(i.Button,{size:"icon",variant:"ghost","aria-label":y("Toggle sidebar"),onClick:e=>{e.stopPropagation(),v()},className:"shrink-0",children:(0,t.jsx)(m,{className:"size-5 text-muted-foreground"})}):null,h[9]=y,h[10]=v,h[11]=s):s=h[11],h[12]!==l||h[13]!==s?(d=(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[l,s]}),h[12]=l,h[13]=s,h[14]=d):d=h[14],h[15]!==a||h[16]!==d?(u=(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 px-1",children:[a,d]}),h[15]=a,h[16]=d,h[17]=u):u=h[17],h[18]!==w||h[19]!==j||h[20]!==x.ariaLabel||h[21]!==x.isDisabled||h[22]!==x.label||h[23]!==x.onClick||h[24]!==x.shortcutHint?(f=j?null:(0,t.jsxs)(i.Button,{align:"start",variant:"outline",size:"sm",tone:"strong",onClick:x.onClick,disabled:x.isDisabled,"aria-label":x.ariaLabel,className:(0,n.f)("w-full gap-3","hover:bg-card-hover"),children:[(0,t.jsx)(w,{className:"size-4 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{children:x.label}),x.shortcutHint&&(0,t.jsx)("span",{className:"ml-auto hidden text-xs text-muted-foreground md:inline",children:x.shortcutHint})]}),h[18]=w,h[19]=j,h[20]=x.ariaLabel,h[21]=x.isDisabled,h[22]=x.label,h[23]=x.onClick,h[24]=x.shortcutHint,h[25]=f):f=h[25],h[26]!==u||h[27]!==f?(p=(0,t.jsxs)(t.Fragment,{children:[u,f]}),h[26]=u,h[27]=f,h[28]=p):p=h[28],p}function x(e){let n,l,d,u,f,p,h,g,v,x,b,y=(0,r.c)(27),{onToggle:w,newAction:j}=e,k=(0,c.f)(),N=j.icon;return y[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(s.T,{children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:["Toggle sidebar",(0,t.jsx)(a.f,{children:"["})]})}),y[0]=n):n=y[0],y[1]!==k?(l=k("Toggle sidebar"),y[1]=k,y[2]=l):l=y[2],y[3]!==w?(d=e=>{e.stopPropagation(),w()},y[3]=w,y[4]=d):d=y[4],y[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(m,{className:"size-5 text-muted-foreground"}),y[5]=u):u=y[5],y[6]!==l||y[7]!==d?(f=(0,t.jsx)(o.Tooltip,{side:"right",delay:0,content:n,children:(0,t.jsx)(i.Button,{size:"icon",variant:"ghost","aria-label":l,onClick:d,className:"shrink-0",children:u})}),y[6]=l,y[7]=d,y[8]=f):f=y[8],y[9]!==j.shortcutHint?(p=j.shortcutHint&&(0,t.jsx)(a.f,{children:j.shortcutHint}),y[9]=j.shortcutHint,y[10]=p):p=y[10],y[11]!==j.label||y[12]!==p?(h=(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[j.label,p]}),y[11]=j.label,y[12]=p,y[13]=h):h=y[13],y[14]!==N?(g=(0,t.jsx)(N,{className:"size-5"}),y[14]=N,y[15]=g):g=y[15],y[16]!==j.ariaLabel||y[17]!==j.isDisabled||y[18]!==j.onClick||y[19]!==g?(v=(0,t.jsx)(i.Button,{size:"icon",variant:"ghost",onClick:j.onClick,disabled:j.isDisabled,"aria-label":j.ariaLabel,className:"shrink-0",children:g}),y[16]=j.ariaLabel,y[17]=j.isDisabled,y[18]=j.onClick,y[19]=g,y[20]=v):v=y[20],y[21]!==h||y[22]!==v?(x=(0,t.jsx)(o.Tooltip,{side:"right",delay:0,content:h,children:v}),y[21]=h,y[22]=v,y[23]=x):x=y[23],y[24]!==x||y[25]!==f?(b=(0,t.jsxs)("div",{className:"flex w-full flex-col items-center gap-1",children:[f,x]}),y[24]=x,y[25]=f,y[26]=b):b=y[26],b}e.s(["f",0,e=>{let i,a,o,s,c,d,u,f,m,p,v,x,b,y,w,j,k,N,S,_,C=(0,r.c)(44);C[0]!==e?({children:a,title:x,isCollapsed:o,onToggle:c,newAction:s,newActionPlacement:f,backAction:i,isEmbedded:m,containerClassName:p,className:v,ref:u,...d}=e,C[0]=e,C[1]=i,C[2]=a,C[3]=o,C[4]=s,C[5]=c,C[6]=d,C[7]=u,C[8]=f,C[9]=m,C[10]=p,C[11]=v,C[12]=x):(i=C[1],a=C[2],o=C[3],s=C[4],c=C[5],d=C[6],u=C[7],f=C[8],m=C[9],p=C[10],v=C[11],x=C[12]);let E=void 0===f?"row":f,R=void 0!==m&&m,T=void 0===p?"":p,A=void 0===v?"":v,M=R||!o,L=R?void 0:c,O=void 0===L?null:"[";(0,l.f)(O,c),C[13]!==i||C[14]!==T||C[15]!==R||C[16]!==M?(b=(0,n.f)(function({isEmbedded:e,isExpanded:t,hasBackAction:r}){return e?"flex h-full w-full shrink-0 flex-col p-px":(0,n.f)("flex h-full shrink-0 flex-col p-px","transition-[width] duration-quick ease-smooth-out","bg-background border-r border-border",t?"w-65":"w-13.5",r&&"animate-in fade-in-0 slide-in-from-right-2 duration-medium ease-smooth-out")}({isEmbedded:R,isExpanded:M,hasBackAction:void 0!==i}),T),C[13]=i,C[14]=T,C[15]=R,C[16]=M,C[17]=b):b=C[17],C[18]!==A?(y=(0,n.f)("flex h-full w-full flex-col gap-2 p-2",A),C[18]=A,C[19]=y):y=C[19],C[20]!==i||C[21]!==M?(w=M&&i?(0,t.jsx)(g,{backAction:i}):null,C[20]=i,C[21]=M,C[22]=w):w=C[22],C[23]!==M||C[24]!==s||C[25]!==E||C[26]!==x||C[27]!==L?(j=(0,t.jsx)(h,{title:x,isExpanded:M,onToggle:L,newAction:s,newActionPlacement:E}),C[23]=M,C[24]=s,C[25]=E,C[26]=x,C[27]=L,C[28]=j):j=C[28];let z=M?"opacity-100 visible pointer-events-auto h-auto":"opacity-0 invisible pointer-events-none h-0";return C[29]!==z?(k=(0,n.f)("flex-1 min-h-0 overflow-hidden",z,"transition-[opacity,visibility,height] duration-fast ease-smooth-out","py-px"),C[29]=z,C[30]=k):k=C[30],C[31]!==a||C[32]!==k?(N=(0,t.jsx)("div",{className:k,children:a}),C[31]=a,C[32]=k,C[33]=N):N=C[33],C[34]!==N||C[35]!==y||C[36]!==w||C[37]!==j?(S=(0,t.jsxs)("div",{className:y,children:[w,j,N]}),C[34]=N,C[35]=y,C[36]=w,C[37]=j,C[38]=S):S=C[38],C[39]!==d||C[40]!==u||C[41]!==S||C[42]!==b?(_=(0,t.jsx)("aside",{ref:u,...d,className:b,children:S}),C[39]=d,C[40]=u,C[41]=S,C[42]=b,C[43]=_):_=C[43],_}],404142)},524268,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(73867),i=e.i(739308),a=e.i(136562),o=e.i(139697),l=e.i(217411);e.i(707060);var s=e.i(288265),c=e.i(882968);e.s(["f",0,function(e){let d,u,f,m,p,h,g,v,x,b,y,w,j,k,N,S,_,C=(0,r.c)(41),{title:E,triggerAriaLabel:R,isOpen:T,onOpenChange:A,newAction:M,children:L}=e,O=(0,s.f)(),z=M.icon;C[0]!==M||C[1]!==A?(d=async()=>{await M.onClick(),A(!1)},C[0]=M,C[1]=A,C[2]=d):d=C[2];let I=d;return C[3]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(i.f,{className:"!size-5"}),C[3]=u):u=C[3],C[4]!==R?(f=(0,t.jsx)(l.V,{render:(0,t.jsx)(o.Button,{type:"button",variant:"ghost",size:"icon",className:"shrink-0","aria-label":R,children:u})}),C[4]=R,C[5]=f):f=C[5],C[6]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.f)(c.c,c.a,c.T,"flex h-auto flex-col gap-0 border-r-0 p-0 dark:border-r","data-[closed]:duration-fast data-[open]:duration-fast motion-reduce:animate-none"),C[6]=m):m=C[6],C[7]!==O||C[8]!==E?(p=O("Back to {title}",{title:E.toLowerCase()}),C[7]=O,C[8]=E,C[9]=p):p=C[9],C[10]===Symbol.for("react.memo_cache_sentinel")?(h=(0,t.jsx)(n.f,{className:"!size-5"}),C[10]=h):h=C[10],C[11]!==p?(g=(0,t.jsx)(l.O,{render:(0,t.jsx)(o.Button,{type:"button",variant:"ghost",size:"icon",className:"shrink-0","aria-label":p,children:h})}),C[11]=p,C[12]=g):g=C[12],C[13]!==E?(v=(0,t.jsx)(l.L,{className:"text-sm font-medium",children:E}),C[13]=E,C[14]=v):v=C[14],C[15]!==g||C[16]!==v?(x=(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-2 py-2",children:[g,v]}),C[15]=g,C[16]=v,C[17]=x):x=C[17],C[18]!==I?(b=()=>void I(),C[18]=I,C[19]=b):b=C[19],C[20]!==z?(y=(0,t.jsx)(z,{className:"absolute left-3 size-4"}),C[20]=z,C[21]=y):y=C[21],C[22]!==M.label?(w=(0,t.jsx)("span",{className:"w-full text-center",children:M.label}),C[22]=M.label,C[23]=w):w=C[23],C[24]!==b||C[25]!==y||C[26]!==w?(j=(0,t.jsxs)(o.Button,{type:"button",size:"md",variant:"outline",className:"relative w-full shrink-0",onClick:b,children:[y,w]}),C[24]=b,C[25]=y,C[26]=w,C[27]=j):j=C[27],C[28]!==L?(k=(0,t.jsx)("div",{className:"min-h-0 flex-1",children:L}),C[28]=L,C[29]=k):k=C[29],C[30]!==j||C[31]!==k?(N=(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-2 p-2",children:[j,k]}),C[30]=j,C[31]=k,C[32]=N):N=C[32],C[33]!==N||C[34]!==x?(S=(0,t.jsxs)(l.U,{side:"left",keepMounted:!1,showCloseButton:!1,overlayClassName:c.B,"aria-describedby":void 0,className:m,children:[x,N]}),C[33]=N,C[34]=x,C[35]=S):S=C[35],C[36]!==T||C[37]!==A||C[38]!==S||C[39]!==f?(_=(0,t.jsxs)(l.j,{open:T,onOpenChange:A,modal:"trap-focus",children:[f,S]}),C[36]=T,C[37]=A,C[38]=S,C[39]=f,C[40]=_):_=C[40],_}])},649896,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(657288),i=e.i(279496),a=e.i(136562),o=e.i(139697),l=e.i(181870);e.i(707060);var s=e.i(288265);e.s(["f",0,function(e){let c,d,u,f,m,p,h,g=(0,r.c)(16),{placeholder:v,value:x,onValueChange:b}=e,y=(0,s.f)();return g[0]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.f)("flex h-8 shrink-0 items-center gap-3 rounded-md pl-3 pr-1","border border-border bg-background","focus-within:border-focus-border focus-within:shadow-focus"),d=(0,t.jsx)(n.f,{"aria-hidden":"true",className:"size-4 shrink-0 text-muted-foreground"}),g[0]=c,g[1]=d):(c=g[0],d=g[1]),g[2]!==b?(u=e=>b(e.target.value),g[2]=b,g[3]=u):u=g[3],g[4]===Symbol.for("react.memo_cache_sentinel")?(f=(0,a.f)("h-full flex-1 min-w-0 border-0 bg-transparent px-0 shadow-none","focus-visible:border-transparent focus-visible:shadow-none focus:bg-transparent focus:ring-0","dark:bg-transparent dark:focus:bg-transparent"),g[4]=f):f=g[4],g[5]!==v||g[6]!==u||g[7]!==x?(m=(0,t.jsx)(l.f,{placeholder:v,value:x,onChange:u,className:f}),g[5]=v,g[6]=u,g[7]=x,g[8]=m):m=g[8],g[9]!==y||g[10]!==b||g[11]!==x?(p=x&&(0,t.jsx)(o.Button,{variant:"ghost",size:"icon-3xs",tone:"subdued",glyph:"sm","aria-label":y("Clear search"),onClick:()=>b(""),className:"shrink-0",children:(0,t.jsx)(i.f,{className:"size-3.5"})}),g[9]=y,g[10]=b,g[11]=x,g[12]=p):p=g[12],g[13]!==m||g[14]!==p?(h=(0,t.jsxs)("div",{className:c,children:[d,m,p]}),g[13]=m,g[14]=p,g[15]=h):h=g[15],h}])},318875,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562),i=e.i(139697),a=e.i(80676),o=e.i(761821);e.i(707060);var l=e.i(196991),s=e.i(16043);function c(e){let i,a,o,s,c,d=(0,r.c)(7),{className:u}=e;return d[0]!==u?(i=(0,n.f)("flex items-center gap-3 text-muted-foreground",u),d[0]=u,d[1]=i):i=d[1],d[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("span",{className:"h-px flex-1 bg-border"}),o=(0,t.jsx)("span",{children:(0,t.jsx)(l.T,{children:"or"})}),s=(0,t.jsx)("span",{className:"h-px flex-1 bg-border"}),d[2]=a,d[3]=o,d[4]=s):(a=d[2],o=d[3],s=d[4]),d[5]!==i?(c=(0,t.jsxs)("div",{className:i,children:[a,o,s]}),d[5]=i,d[6]=c):c=d[6],c}e.i(406201);var d=e.i(967605),u=e.i(134611),f=e.i(632665);let m=(0,s.memo)(e=>{let s,m,p,h,g,v,x,b,y,w,j,k=(0,r.c)(22),{open:N,onOpenChange:S,onContinueWithFreeModels:_}=e,{availableTextModels:C}=(0,o.S)();if(k[0]!==C){let e;s=(e=C.filter(e=>(e.endpoint?.is_free===!0||e.slug.endsWith(":free"))&&(0,f.f)(e)).toSorted((e,t)=>Date.parse(t.created_at)-Date.parse(e.created_at)).slice(0,3).map(u.i)).length>0?`/chat?models=${e.join(",")}`:"/models?max_price=0",k[0]=C,k[1]=s}else s=k[1];let E=s;k[2]!==S?(m=()=>{S(!1)},k[2]=S,k[3]=m):m=k[3];let R=m;return k[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,n.f)("max-w-sm"),k[4]=p):p=k[4],k[5]===Symbol.for("react.memo_cache_sentinel")?(h=(0,t.jsx)(a.F,{children:(0,t.jsx)(l.T,{children:"Insufficient credits"})}),k[5]=h):h=k[5],k[6]===Symbol.for("react.memo_cache_sentinel")?(g=(0,t.jsxs)(a.s,{className:"text-center",children:[h,(0,t.jsx)(a.C,{children:(0,t.jsx)(l.T,{children:"Add credits to continue using paid models."})})]}),k[6]=g):g=k[6],k[7]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(i.Button,{variant:"default",className:"w-full",children:(0,t.jsx)(l.T,{children:"Buy credits"})}),k[7]=v):v=k[7],k[8]!==R?(x=(0,t.jsx)(d.Link,{href:"https://openrouter.ai/settings/credits",className:"w-full",onClick:R,children:v}),k[8]=R,k[9]=x):x=k[9],k[10]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)(c,{className:"text-sm"}),k[10]=b):b=k[10],k[11]!==R||k[12]!==E||k[13]!==_?(y=(0,t.jsx)("div",{className:"flex items-center justify-center",children:_?(0,t.jsx)("button",{type:"button",className:"text-sm underline hover:opacity-80 text-muted-foreground",onClick:()=>{R(),_()},children:(0,t.jsx)(l.T,{children:"Continue with free models"})}):(0,t.jsx)(d.Link,{href:E,variant:"underline",className:"text-sm hover:opacity-80",onClick:R,children:(0,t.jsx)(l.T,{children:"Continue with free models"})})}),k[11]=R,k[12]=E,k[13]=_,k[14]=y):y=k[14],k[15]!==x||k[16]!==y?(w=(0,t.jsxs)(a.d,{className:p,children:[g,(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[x,b,y]})]}),k[15]=x,k[16]=y,k[17]=w):w=k[17],k[18]!==S||k[19]!==N||k[20]!==w?(j=(0,t.jsx)(a.N,{open:N,onOpenChange:S,children:w}),k[18]=S,k[19]=N,k[20]=w,k[21]=j):j=k[21],j});e.s(["f",0,m],318875)},123215,e=>{"use strict";var t=e.i(663456),r=e.i(376885),n=e.i(398254),i=e.i(76429),a=e.i(292312),o=e.i(274417),l=e.i(372844),s=e.i(514681),c=e.i(46369),d=e.i(960773),u=e.i(912),f=e.i(544341);e.i(16043),e.s(["f",0,function(){let e,m=(0,t.c)(5),{openSignUp:p}=(0,n.f)(),{timezone:h}=(0,u.f)(),g=(0,d.Q)(),v=(0,c.f)(),{isSignedIn:x}=(0,r.f)();return(0,s.f)(x),m[0]!==v||m[1]!==p||m[2]!==g||m[3]!==h?(e=async e=>{if(void 0===p)return;let[t,r]=await Promise.all([(0,i.w)(a.f),(0,o.$)(a.f)]);try{p({...e,unsafeMetadata:{...(0,l.f)({sessionId:g.get_session_id()??"",anonymousDistinctId:g.get_distinct_id()??"",sealedSignupCfMetadataResult:t,radarSessionRelay:r,existingMetadata:e?.unsafeMetadata}),...h?{[f.$]:h}:{},...v()}})}catch(e){g.captureException(e,{error_source:"signup-modal-open"})}},m[0]=v,m[1]=p,m[2]=g,m[3]=h,m[4]=e):e=m[4],e}])},709441,e=>{"use strict";e.s(["f",0,{Submitted:"submitted",Failed:"failed",FreeTextUnavailable:"free_text_unavailable"}])},169133,805274,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(269510),i=e.i(510433),a=e.i(139697),o=e.i(751155),l=e.i(236614),s=e.i(231171),c=e.i(73668),d=e.i(443143);e.i(707060);var u=e.i(196991),f=e.i(288265),m=e.i(429332),p=e.i(16043);e.i(818009);var h=e.i(982432),g=e.i(592001),v=e.i(342837),x=e.i(647204),b=e.i(506050),y=e.i(67089),w=e.i(549692);e.i(882844);var j=e.i(635157);let k=j.z.object({id:j.z.string().openapi({description:"Generation feedback ID",example:"abc123-def456-ghi789"}),generation_id:j.z.string().openapi({description:"Generation ID",example:"gen_abc123xyz"})});j.z.object({data:k});var N=e.i(905361);function S(e){return(0,g.f)("/api/frontend/v1/private/generations-feedback",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({generation_id:e.generationId,category:e.category,comment:e.comment})})}var _=e.i(709441),C=e.i(440843);function E(e,t){let n,i,a,o,l,s=(0,r.c)(11);s[0]!==t?(n=void 0===t?{}:t,s[0]=t,s[1]=n):n=s[1];let c=n,d=(0,f.f)(),{mutate:u}=((l=(0,r.c)(1))[0]===Symbol.for("react.memo_cache_sentinel")?(o={mutationFn:S,invalidates:N.C.NONE},l[0]=o):o=l[0],(0,N.h)(o)),{submitGuardrailFalsePositive:m,submitGenerationFeedback:j,toast:k}=c,E=void 0===m?C.o:m,T=void 0===j?u:j,A=void 0===k?h.c:k,[M,L]=(0,p.useState)(!1);s[2]!==d||s[3]!==e||s[4]!==T||s[5]!==E||s[6]!==A?(i=async t=>{var r,n;if(!t.category)return _.f.Failed;let i=t.category;if(L(!0),"guardrail_false_positive"===t.category&&t.guardrailEventType&&t.guardrailId){let n=t.guardrailEventType,i=t.guardrailId,a=t.entityTypes?.length?t.entityTypes:[null],o=await (0,x.$)(()=>Promise.all(a.map(e=>E({generation_id:t.generationId,event_type:n,guardrail_id:i,...null===e?{}:{entity_type:e}}))));L(!1);let l=(0,x.V)(o)?void 0:o.data.find(R);if((0,x.V)(o)||l){let t=l&&(0,x.V)(l)?(r=l.error,(0,w.w)(r)?r.error.message:r.message??d("Please try again later.")):d("Please try again later.");return A({title:d("Failed to submit false positive report"),description:t,variant:"destructive"}),e?.onError?.(),_.f.Failed}return A({title:d("False positive reported"),description:d("Thank you for your feedback!")}),e?.onSuccess?.(),_.f.Submitted}if("guardrail_false_positive"===t.category)return L(!1),_.f.Failed;let a=await (0,x.$)(()=>T({generationId:t.generationId,category:i,comment:t.comment}));if(L(!1),(0,x.V)(a))return(0,y.L)("generation-feedback-submission-threw",(0,b.s)(a.error)),A({title:d("Failed to submit feedback"),description:d("Please try again later."),variant:"destructive"}),e?.onError?.(),_.f.Failed;let o=a.data;return(0,x.V)(o)&&(0,g.d)(o.error)===v.g.S409_Conflict?(A({title:d("Feedback already submitted"),description:d("We already have your feedback for this generation.")}),e?.onSuccess?.(),_.f.Submitted):(0,x.V)(o)&&(n=o.error).status===v.g.S400_Bad_Request&&n.metadata?.code==="generation_free_text_unavailable"?_.f.FreeTextUnavailable:(0,x.V)(o)?(A({title:d("Failed to submit feedback"),description:o.error.message,variant:"destructive"}),e?.onError?.(),_.f.Failed):(A({title:d("Feedback submitted"),description:d("Thank you for your feedback!")}),e?.onSuccess?.(),_.f.Submitted)},s[2]=d,s[3]=e,s[4]=T,s[5]=E,s[6]=A,s[7]=i):i=s[7];let O=i;return s[8]!==M||s[9]!==O?(a={submit:O,isSubmitting:M},s[8]=M,s[9]=O,s[10]=a):a=s[10],a}function R(e){return(0,x.V)(e)}e.s(["f",0,E],805274);let T=(0,m.default)(()=>e.A(635445).then(e=>e.ReportFeedbackDialog),{loadableGenerated:{modules:[213776]}});function A(e){let n,i=(0,r.c)(2);return(0,d.f)(e.open)?(i[0]!==e?(n=(0,t.jsx)(T,{...e}),i[0]=e,i[1]=n):n=i[1],n):null}e.s(["f",0,function(e){let d,m,h,g,v,x,b,y,w,j=(0,r.c)(60),{variant:k,generationId:N,showLabel:S}=e,_=void 0===N?"":N,C=(0,f.f)(),[R,T]=(0,p.useState)(!1),{contextEntityId:M}=(0,c.useEntity)(),L=(0,l.f)(i.J.FreeTextFeedback),O=L===s.L.Blocked,z=L===s.L.Loading,I="header"===k;j[0]===Symbol.for("react.memo_cache_sentinel")?(d={onSuccess:()=>{T(!1)}},j[0]=d):d=j[0];let{submit:B,isSubmitting:F}=E(d);if("header"===k){let e,r,i,o,l,s,c;return j[1]!==C?(e=C("Report feedback for a generation"),j[1]=C,j[2]=e):e=j[2],j[3]===Symbol.for("react.memo_cache_sentinel")?(r=()=>T(!0),i=(0,t.jsx)(n.f,{className:"size-4"}),o=(0,t.jsx)(u.T,{children:"Feedback"}),j[3]=r,j[4]=i,j[5]=o):(r=j[3],i=j[4],o=j[5]),j[6]!==e?(l=(0,t.jsxs)(a.Button,{variant:"outline",size:"sm",shape:"pill",tone:"subdued",title:e,onClick:r,children:[i,o]}),j[6]=e,j[7]=l):l=j[7],j[8]!==M||j[9]!==_||j[10]!==R||j[11]!==O||j[12]!==z||j[13]!==F||j[14]!==I||j[15]!==B?(s=(0,t.jsx)(A,{isFreeTextBlocked:O,isFreeTextResolving:z,open:R,onOpenChange:T,generationId:_,contextEntityId:M,onSubmit:B,isSubmitting:F,showGenerationIdInput:I}),j[8]=M,j[9]=_,j[10]=R,j[11]=O,j[12]=z,j[13]=F,j[14]=I,j[15]=B,j[16]=s):s=j[16],j[17]!==l||j[18]!==s?(c=(0,t.jsxs)(t.Fragment,{children:[l,s]}),j[17]=l,j[18]=s,j[19]=c):c=j[19],c}if(void 0!==S&&S){let e,r,i,o,l,s,c;return j[20]===Symbol.for("react.memo_cache_sentinel")?(e=()=>T(!0),j[20]=e):e=j[20],j[21]!==C?(r=C("Report Feedback"),j[21]=C,j[22]=r):r=j[22],j[23]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(n.f,{className:"h-4 w-4"}),j[23]=i):i=j[23],j[24]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("span",{className:"text-sm",children:(0,t.jsx)(u.T,{children:"Report feedback"})}),j[24]=o):o=j[24],j[25]!==r?(l=(0,t.jsxs)(a.Button,{align:"start",variant:"ghost",size:"xs",className:"h-auto w-full gap-2 py-1.5",onClick:e,"aria-label":r,children:[i,o]}),j[25]=r,j[26]=l):l=j[26],j[27]!==M||j[28]!==_||j[29]!==R||j[30]!==O||j[31]!==z||j[32]!==F||j[33]!==B?(s=(0,t.jsx)(A,{isFreeTextBlocked:O,isFreeTextResolving:z,open:R,onOpenChange:T,generationId:_,contextEntityId:M,onSubmit:B,isSubmitting:F}),j[27]=M,j[28]=_,j[29]=R,j[30]=O,j[31]=z,j[32]=F,j[33]=B,j[34]=s):s=j[34],j[35]!==l||j[36]!==s?(c=(0,t.jsxs)(t.Fragment,{children:[l,s]}),j[35]=l,j[36]=s,j[37]=c):c=j[37],c}return j[38]!==C?(m=C("Report Feedback"),j[38]=C,j[39]=m):m=j[39],j[40]===Symbol.for("react.memo_cache_sentinel")?(h=()=>T(!0),j[40]=h):h=j[40],j[41]!==C?(g=C("Report Feedback"),j[41]=C,j[42]=g):g=j[42],j[43]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(n.f,{className:"h-4 w-4"}),j[43]=v):v=j[43],j[44]!==g?(x=(0,t.jsx)(a.Button,{variant:"ghost",size:"icon-sm",onClick:h,"aria-label":g,children:v}),j[44]=g,j[45]=x):x=j[45],j[46]!==m||j[47]!==x?(b=(0,t.jsx)(o.Tooltip,{content:m,children:x}),j[46]=m,j[47]=x,j[48]=b):b=j[48],j[49]!==M||j[50]!==_||j[51]!==R||j[52]!==O||j[53]!==z||j[54]!==F||j[55]!==B?(y=(0,t.jsx)(A,{isFreeTextBlocked:O,isFreeTextResolving:z,open:R,onOpenChange:T,generationId:_,contextEntityId:M,onSubmit:B,isSubmitting:F}),j[49]=M,j[50]=_,j[51]=R,j[52]=O,j[53]=z,j[54]=F,j[55]=B,j[56]=y):y=j[56],j[57]!==y||j[58]!==b?(w=(0,t.jsxs)(t.Fragment,{children:[b,y]}),j[57]=y,j[58]=b,j[59]=w):w=j[59],w}],169133)},543696,e=>{"use strict";var t=e.i(733442);e.s(["f",0,function(e){let{isSignedIn:r,clerkOrgId:n,workspacePartitionId:i}=e;if(!r)return`${t.E}:guest:${t.t}`;let a=null===i?"":`:ws:${i}`;return n?`${t.E}:${n}${a}:${t.t}`:`${t.E}${a}:${t.t}`}])},733064,e=>{"use strict";var t=e.i(663456),r=e.i(199630),n=e.i(16043);let i="openrouter:default-preset",a="openrouter:default-preset-change";function o(){try{return localStorage.getItem(i)??void 0}catch{return}}e.s(["f",0,function(){let e,l,s,c,d=(0,t.c)(5),[u,f]=(0,n.useState)(o),m=(0,r.f)();d[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{let e=e=>{e.key===i&&f(e.newValue??void 0)},t=e=>{var t;(t=e)instanceof CustomEvent&&t.type===a&&("string"==typeof t.detail||null===t.detail)&&f(e.detail??void 0)};return window.addEventListener("storage",e),window.addEventListener(a,t),()=>{window.removeEventListener("storage",e),window.removeEventListener(a,t)}},l=[],d[0]=e,d[1]=l):(e=d[0],l=d[1]),(0,n.useEffect)(e,l),d[2]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{null===e?(localStorage.removeItem(i),f(void 0)):(localStorage.setItem(i,e),f(e)),window.dispatchEvent(new CustomEvent(a,{detail:e}))},d[2]=s):s=d[2];let p=s,h=m?u:void 0;return d[3]!==h?(c=[h,p],d[3]=h,d[4]=c):c=d[4],c}])},227327,e=>{"use strict";var t=e.i(195759),r=e.i(471316);e.s(["f",0,e=>Object.fromEntries(e.variantSlugs.map(t=>[t,e.getModelInfoByVariantSlug(t)]).filter(([e,t])=>null!==t).map(([e,n])=>{let i,a=void 0===(i=(0,t._)(e))?void 0:t.P[i],o=(0,r.f)({model:e,modelInfo:n,...a&&{providerSort:a},reasoning:{enabled:n?.endpoint?.supports_reasoning??!1}});return[o.id,o]}))])},797913,649301,655673,371784,703880,e=>{"use strict";var t=e.i(663456);let r=(0,e.i(313939).f)()(e=>({isSelectionMode:!1,selectedRoomIds:new Set,enterSelectionMode:()=>e({isSelectionMode:!0}),exitSelectionMode:()=>e({isSelectionMode:!1,selectedRoomIds:new Set}),toggleRoom:t=>e(e=>{let r=new Set(e.selectedRoomIds);return r.has(t)?r.delete(t):r.add(t),{selectedRoomIds:r}}),selectAll:t=>e({selectedRoomIds:new Set(t)}),selectMany:t=>e(e=>{let r=new Set(e.selectedRoomIds);for(let e of t)r.add(e);return{selectedRoomIds:r}}),clear:()=>e({selectedRoomIds:new Set}),clearMany:t=>e(e=>{let r=new Set(e.selectedRoomIds);for(let e of t)r.delete(e);return{selectedRoomIds:r}})}));function n(e){let n,i=(0,t.c)(2);return i[0]!==e?(n=t=>t.selectedRoomIds.has(e),i[0]=e,i[1]=n):n=i[1],r(n)}function i(){return r(a)}function a(e){return e.isSelectionMode}function o(){return r(l)}function l(e){return e.selectedRoomIds.size}e.s(["h",0,n,"u",0,i,"N",0,r,"s",0,o],797913);var s=e.i(659350),c=e.i(39835),d=e.i(194215),u=e.i(136562),f=e.i(139697),m=e.i(797521),p=e.i(205194);e.i(707060);var h=e.i(196991),g=e.i(288265),v=e.i(153746),x=e.i(16043),b=e.i(22422),y=e.i(82045);function w(e){let r,n,i,a,o,l,c,d=(0,t.c)(19),{open:u,onOpenChange:m,title:p,description:g,confirmLabel:v,variant:x,onConfirm:b}=e;d[0]!==p?(r=(0,s.jsx)(y.g,{children:p}),d[0]=p,d[1]=r):r=d[1],d[2]!==g?(n=(0,s.jsx)(y.I,{children:g}),d[2]=g,d[3]=n):n=d[3],d[4]!==r||d[5]!==n?(i=(0,s.jsxs)(y.O,{children:[r,n]}),d[4]=r,d[5]=n,d[6]=i):i=d[6],d[7]===Symbol.for("react.memo_cache_sentinel")?(a=(0,s.jsx)(y.D,{children:(0,s.jsx)(h.T,{children:"Cancel"})}),d[7]=a):a=d[7];let w="destructive"===(void 0===x?"destructive":x)?"destructive":"default";return d[8]!==v||d[9]!==b||d[10]!==w?(o=(0,s.jsxs)(y._,{children:[a,(0,s.jsx)(y.s,{render:(0,s.jsx)(f.Button,{variant:w,onClick:b,children:v})})]}),d[8]=v,d[9]=b,d[10]=w,d[11]=o):o=d[11],d[12]!==i||d[13]!==o?(l=(0,s.jsxs)(y.B,{children:[i,o]}),d[12]=i,d[13]=o,d[14]=l):l=d[14],d[15]!==m||d[16]!==u||d[17]!==l?(c=(0,s.jsx)(y.m,{open:u,onOpenChange:m,children:l}),d[15]=m,d[16]=u,d[17]=l,d[18]=c):c=d[18],c}var j=e.i(674896);let k=(0,x.createContext)({roomHref:e=>`/chat?room=${e}`,deletedRoomHref:"/chat",canDuplicate:!0}),N=k.Provider;function S(){return(0,x.useContext)(k)}function _(e){return e.exitSelectionMode}e.s(["T",0,function(e){let r,n,i,a=(0,t.c)(8),{children:o}=e,l=(0,j.W)(j.L.Chat);a[0]!==l?(r=e=>`${l}?room=${e}`,a[0]=l,a[1]=r):r=a[1],a[2]!==l||a[3]!==r?(n={roomHref:r,deletedRoomHref:l,canDuplicate:!0},a[2]=l,a[3]=r,a[4]=n):n=a[4];let c=n;return a[5]!==o||a[6]!==c?(i=(0,s.jsx)(N,{value:c,children:o}),a[5]=o,a[6]=c,a[7]=i):i=a[7],i},"q",0,N,"J",0,S],649301),e.s(["f",0,function(){let e,n,i,a,l,y,j,k,N,C,E,R,T,A,M,L,O,z,I,B,F,D,P,$,H,V,W,U=(0,t.c)(67),q=(0,m.f)(),G=(0,g.f)(),Z=(0,p.f)(),J=S(),X=o(),Y=r(_),[K,Q]=(0,x.useState)(!1),[ee,et]=(0,x.useState)(!1);U[0]!==Y?(e=()=>{let e=[...r.getState().selectedRoomIds];et(!1),b.z.exportManyData({payload:{roomIds:e}}),Y()},U[0]=Y,U[1]=e):e=U[1];let er=e;U[2]!==Y||U[3]!==J||U[4]!==Z?(n=async()=>{let e=[...r.getState().selectedRoomIds];for(let t of(Q(!1),e))await b.z.deleteChatroom({payload:{roomId:t},dependencies:{deletedRoomHref:J.deletedRoomHref,router:Z}});Y()},U[2]=Y,U[3]=J,U[4]=Z,U[5]=n):n=U[5];let en=n;return 0===X?null:(U[6]!==G?(i=G("Bulk chat actions"),U[6]=G,U[7]=i):i=U[7],U[8]===Symbol.for("react.memo_cache_sentinel")?(a=(0,u.f)("shrink-0 flex flex-col gap-1.5","rounded-xl border border-border bg-background px-2.5 py-2"),U[8]=a):a=U[8],U[9]!==X||U[10]!==q?(l=q.number(X,{preset:"integer"}),U[9]=X,U[10]=q,U[11]=l):l=U[11],U[12]!==l?(y=(0,s.jsx)(h.T,{children:(0,s.jsxs)("span",{className:"px-0.5 text-sm font-medium text-foreground",children:[(0,s.jsx)(v.d,{children:l})," selected"]})}),U[12]=l,U[13]=y):y=U[13],U[14]!==G?(j=G("Export selected chats"),U[14]=G,U[15]=j):j=U[15],U[16]===Symbol.for("react.memo_cache_sentinel")?(k=()=>et(!0),N=(0,s.jsx)(c.f,{className:"size-4"}),C=(0,s.jsx)(h.T,{children:"Export"}),U[16]=k,U[17]=N,U[18]=C):(k=U[16],N=U[17],C=U[18]),U[19]!==j?(E=(0,s.jsxs)(f.Button,{type:"button",variant:"outline",size:"sm","aria-label":j,className:"flex-1",onClick:k,children:[N,C]}),U[19]=j,U[20]=E):E=U[20],U[21]!==G?(R=G("Delete selected chats"),U[21]=G,U[22]=R):R=U[22],U[23]===Symbol.for("react.memo_cache_sentinel")?(T=()=>Q(!0),A=(0,s.jsx)(d.f,{className:"size-4"}),M=(0,s.jsx)(h.T,{children:"Delete"}),U[23]=T,U[24]=A,U[25]=M):(T=U[23],A=U[24],M=U[25]),U[26]!==R?(L=(0,s.jsxs)(f.Button,{type:"button",variant:"outline",size:"sm","aria-label":R,className:"flex-1 border-negative/30 text-negative hover:bg-negative-bg hover:text-negative",onClick:T,children:[A,M]}),U[26]=R,U[27]=L):L=U[27],U[28]!==E||U[29]!==L?(O=(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[E,L]}),U[28]=E,U[29]=L,U[30]=O):O=U[30],U[31]!==O||U[32]!==i||U[33]!==y?(z=(0,s.jsxs)("div",{role:"toolbar","aria-label":i,className:a,children:[y,O]}),U[31]=O,U[32]=i,U[33]=y,U[34]=z):z=U[34],U[35]!==G?(I=G("Export selected chats"),U[35]=G,U[36]=I):I=U[36],U[37]!==X||U[38]!==G?(B=G("This will download {count, plural, one {# chat} other {# chats}} as a single JSON file.",{count:X}),U[37]=X,U[38]=G,U[39]=B):B=U[39],U[40]!==X||U[41]!==G?(F=G("Export ({count})",{count:X}),U[40]=X,U[41]=G,U[42]=F):F=U[42],U[43]!==er||U[44]!==ee||U[45]!==I||U[46]!==B||U[47]!==F?(D=(0,s.jsx)(w,{open:ee,onOpenChange:et,title:I,description:B,confirmLabel:F,variant:"default",onConfirm:er}),U[43]=er,U[44]=ee,U[45]=I,U[46]=B,U[47]=F,U[48]=D):D=U[48],U[49]!==G?(P=G("Delete selected chats"),U[49]=G,U[50]=P):P=U[50],U[51]!==X||U[52]!==G?($=G("This will permanently delete {count, plural, one {# chat} other {# chats}}. This action cannot be undone.",{count:X}),U[51]=X,U[52]=G,U[53]=$):$=U[53],U[54]!==X||U[55]!==G?(H=G("Delete ({count})",{count:X}),U[54]=X,U[55]=G,U[56]=H):H=U[56],U[57]!==en||U[58]!==K||U[59]!==P||U[60]!==$||U[61]!==H?(V=(0,s.jsx)(w,{open:K,onOpenChange:Q,title:P,description:$,confirmLabel:H,variant:"destructive",onConfirm:en}),U[57]=en,U[58]=K,U[59]=P,U[60]=$,U[61]=H,U[62]=V):V=U[62],U[63]!==z||U[64]!==D||U[65]!==V?(W=(0,s.jsxs)(s.Fragment,{children:[z,D,V]}),U[63]=z,U[64]=D,U[65]=V,U[66]=W):W=U[66],W)}],655673);var C=e.i(303125);let E=x.forwardRef(function({title:e,titleId:t,...r},n){return x.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:n,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14"}))});function R(e){let n,a,o,l,c,d,f,m,p,h=(0,t.c)(37),{visibleRoomIds:v,className:x,label:b,labelClassName:y}=e,w=(0,g.f)(),j=i(),k=r(M),N=r(A),S=r(T);if(0===v.length)return null;if(h[0]!==S||h[1]!==w||h[2]!==j||h[3]!==N||h[4]!==k||h[5]!==v){let e,t;h[11]!==k?(e=e=>k.has(e),h[11]=k,h[12]=e):e=h[12];let r=v.filter(e).length;n=r===v.length,l=!(o=0===r)&&!n,h[13]!==S||h[14]!==o||h[15]!==j||h[16]!==N||h[17]!==v?(t=()=>{if(j){if(o)return void N(v);S(v)}},h[13]=S,h[14]=o,h[15]=j,h[16]=N,h[17]=v,h[18]=t):t=h[18],a=t,c=o?w("Select all ({count})",{count:v.length}):w("Deselect {count}",{count:r}),h[0]=S,h[1]=w,h[2]=j,h[3]=N,h[4]=k,h[5]=v,h[6]=n,h[7]=a,h[8]=o,h[9]=l,h[10]=c}else n=h[6],a=h[7],o=h[8],l=h[9],c=h[10];let _=c,R=l?"mixed":n,L=j?"transition-colors hover:bg-card-hover hover:text-accent-foreground":"cursor-default";return h[19]!==x||h[20]!==L?(d=(0,u.f)("flex w-fit shrink-0 items-center gap-2 rounded-md p-1.5 text-muted-foreground",L,x),h[19]=x,h[20]=L,h[21]=d):d=h[21],h[22]!==n||h[23]!==o||h[24]!==l||h[25]!==j?(f=j?(0,s.jsxs)("span",{"aria-hidden":"true",className:(0,u.f)("flex h-4 w-4 shrink-0 items-center justify-center rounded-sm border","transition-[background-color,border-color]",n&&"border-primary bg-primary text-primary-foreground",l&&"border-primary bg-primary text-primary-foreground",o&&"border-foreground/30 bg-muted"),children:[n?(0,s.jsx)(C.f,{className:"h-3 w-3 stroke-3"}):null,l?(0,s.jsx)(E,{className:"h-3 w-3 stroke-3"}):null]}):null,h[22]=n,h[23]=o,h[24]=l,h[25]=j,h[26]=f):f=h[26],h[27]!==b||h[28]!==y?(m=b?(0,s.jsx)("span",{className:(0,u.f)("text-xs leading-none",y),children:b}):null,h[27]=b,h[28]=y,h[29]=m):m=h[29],h[30]!==_||h[31]!==R||h[32]!==a||h[33]!==d||h[34]!==f||h[35]!==m?(p=(0,s.jsxs)("button",{type:"button",role:"checkbox","aria-checked":R,"aria-label":_,onClick:a,className:d,children:[f,m]}),h[30]=_,h[31]=R,h[32]=a,h[33]=d,h[34]=f,h[35]=m,h[36]=p):p=h[36],p}function T(e){return e.clearMany}function A(e){return e.selectMany}function M(e){return e.selectedRoomIds}e.s(["f",0,R],371784);let L=x.forwardRef(function({title:e,titleId:t,...r},n){return x.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:n,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z"}))});var O=e.i(962852),z=e.i(971892),I=e.i(778553),B=e.i(181870),F=e.i(624112),D=e.i(954217),P=e.i(332610),$=e.i(300326),H=e.i(295654),V=e.i(693946),W=e.i(700050),U=e.i(624621),q=e.i(918331);function G(e){let a,o,l,c=(0,t.c)(11),{roomId:d}=e,u=(0,g.f)(),f=i(),m=n(d),p=r(J);return f?(c[0]!==u||c[1]!==m||c[2]!==d?(a=u(m?"Deselect chat {roomId}":"Select chat {roomId}",{roomId:d}),c[0]=u,c[1]=m,c[2]=d,c[3]=a):a=c[3],c[4]!==d||c[5]!==p?(o=()=>p(d),c[4]=d,c[5]=p,c[6]=o):o=c[6],c[7]!==m||c[8]!==a||c[9]!==o?(l=(0,s.jsx)(q.f,{checked:m,"aria-label":a,onClick:Z,onCheckedChange:o}),c[7]=m,c[8]=a,c[9]=o,c[10]=l):l=c[10],l):null}function Z(e){e.stopPropagation()}function J(e){return e.toggleRoom}function X(e){let n,a,o,l,c,m,v,y,j,k,N,_,C,E,R,T,A,M,q,Z,J,X,K,Q,ee,et,er,en,ei,ea,eo,el,es,ec,ed,eu,ef,em,ep,eh,eg,ev,ex,eb,ey,ew,ej,ek,eN,eS,e_,eC,eE,eR,eT=(0,t.c)(149),{roomId:eA}=e,eM=(0,g.f)(),eL=(0,p.f)(),eO=S(),ez=eA===(0,U.f)(V.M);eT[0]!==eA?(n=e=>(0,V.m)(e,eA),eT[0]=eA,eT[1]=n):n=eT[1];let eI=(0,U.f)(n);eT[2]!==eA?(a=e=>(0,V.J)(e,eA),eT[2]=eA,eT[3]=a):a=eT[3];let eB=(0,U.f)(a),eF=i(),eD=r(Y),eP=(0,P.f)();eT[4]!==eP?(o=eP.isOpen("rename"),eT[4]=eP,eT[5]=o):o=eT[5];let e$=o;eT[6]!==eP?(l=eP.isOpen("delete_confirm"),eT[6]=eP,eT[7]=l):l=eT[7];let eH=l,{close:eV}=eP,eW=(0,x.useRef)(null);eT[8]!==eV||eT[9]!==eH?(c=()=>{if(!eH)return;let e=e=>{"Escape"===e.key&&(e.stopPropagation(),eV("delete_confirm"))};return document.addEventListener("keydown",e,{capture:!0}),()=>document.removeEventListener("keydown",e,{capture:!0})},m=[eH,eV],eT[8]=eV,eT[9]=eH,eT[10]=c,eT[11]=m):(c=eT[10],m=eT[11]),(0,x.useEffect)(c,m),eT[12]!==eP||eT[13]!==eO.deletedRoomHref||eT[14]!==eA||eT[15]!==eL?(v=()=>{eP.close("delete_confirm"),b.z.deleteChatroom({payload:{roomId:eA},dependencies:{deletedRoomHref:eO.deletedRoomHref,router:eL}})},eT[12]=eP,eT[13]=eO.deletedRoomHref,eT[14]=eA,eT[15]=eL,eT[16]=v):v=eT[16];let eU=v;eT[17]!==e$?(y=()=>{e$&&(eW.current?.focus(),eW.current?.select())},j=[e$],eT[17]=e$,eT[18]=y,eT[19]=j):(y=eT[18],j=eT[19]),(0,x.useEffect)(y,j),eT[20]!==e$||eT[21]!==eI?(k=()=>{eW.current&&!e$&&(eW.current.value=eI)},N=[eI,e$],eT[20]=e$,eT[21]=eI,eT[22]=k,eT[23]=N):(k=eT[22],N=eT[23]),(0,x.useEffect)(k,N),eT[24]!==eP||eT[25]!==eA||eT[26]!==eI?(_=()=>{let e=eW.current?.value.trim()??"";eP.close("rename"),e&&e!==eI&&(b.z.updateRoom({payload:{roomId:eA,partialRoom:{title:e}}}),(0,W.n)({oldTitleLength:eI.length,newTitleLength:e.length}))},eT[24]=eP,eT[25]=eA,eT[26]=eI,eT[27]=_):_=eT[27];let eq=_;eT[28]!==eP||eT[29]!==eI?(C=()=>{eP.close("rename"),eW.current&&(eW.current.value=eI)},eT[28]=eP,eT[29]=eI,eT[30]=C):C=eT[30];let eG=C;eT[31]!==eB||eT[32]!==eA?(E=()=>{b.z.updateRoom({payload:{roomId:eA,partialRoom:{isPinned:!eB}}})},eT[31]=eB,eT[32]=eA,eT[33]=E):E=eT[33];let eZ=E,eJ=ez?"bg-accent text-accent-foreground":"hover:bg-card-hover",eX=(!eB||eF)&&"pl-3";eT[34]!==eJ||eT[35]!==eX?(R=(0,u.f)("group relative flex h-9 items-center rounded-lg",eJ,"transition-colors",eX),eT[34]=eJ,eT[35]=eX,eT[36]=R):R=eT[36],eT[37]!==eF||eT[38]!==eA?(T=eF&&(0,s.jsx)("div",{className:"pr-2",children:(0,s.jsx)(G,{roomId:eA})}),eT[37]=eF,eT[38]=eA,eT[39]=T):T=eT[39],eT[40]!==eM||eT[41]!==eZ||eT[42]!==eB||eT[43]!==eF?(A=eB&&!eF&&(0,s.jsx)(f.Button,{variant:"ghost",size:"icon",shape:"sm","aria-label":eM("Unpin room"),title:eM("Unpin room"),className:"shrink-0 hover:bg-transparent",onClick:eZ,children:(0,s.jsx)(L,{className:"h-4 w-4 text-muted-foreground"})}),eT[40]=eM,eT[41]=eZ,eT[42]=eB,eT[43]=eF,eT[44]=A):A=eT[44],eT[45]!==eO||eT[46]!==eA?(M=eO.roomHref(eA),eT[45]=eO,eT[46]=eA,eT[47]=M):M=eT[47],eT[48]!==eF||eT[49]!==eA||eT[50]!==eD?(q=e=>{eF&&(e.preventDefault(),eD(eA))},eT[48]=eF,eT[49]=eA,eT[50]=eD,eT[51]=q):q=eT[51];let eY=ez&&"text-accent-foreground";eT[52]!==eY?(Z=(0,u.f)("flex flex-1 items-center","min-w-0","no-underline text-muted-foreground hover:no-underline",eY),eT[52]=eY,eT[53]=Z):Z=eT[53];let eK=e$&&"cursor-text",eQ=eI===H.l&&!e$&&"italic text-faint";eT[54]!==eK||eT[55]!==eQ?(J=(0,u.f)("ph-no-capture h-auto w-full cursor-pointer truncate border-0 bg-transparent p-0 font-medium leading-5 shadow-none pointer-coarse:leading-5 focus-visible:border-transparent focus-visible:shadow-none",eK,eQ),eT[54]=eK,eT[55]=eQ,eT[56]=J):J=eT[56],eT[57]!==eG||eT[58]!==eq?(X=e=>{"Enter"===e.key?eq():"Escape"===e.key&&eG()},eT[57]=eG,eT[58]=eq,eT[59]=X):X=eT[59];let e0=!e$;eT[60]!==eP?(K=e=>{e.preventDefault(),eP.open("rename")},eT[60]=eP,eT[61]=K):K=eT[61],eT[62]!==eq||eT[63]!==eI||eT[64]!==J||eT[65]!==X||eT[66]!==e0||eT[67]!==K?(Q=(0,s.jsx)("div",{className:"flex min-w-0 flex-1 items-center",children:(0,s.jsx)(B.f,{ref:eW,className:J,"data-dd-privacy":"hidden",placeholder:H.l,defaultValue:eI,onBlur:eq,onKeyDown:X,readOnly:e0,onDoubleClick:K})}),eT[62]=eq,eT[63]=eI,eT[64]=J,eT[65]=X,eT[66]=e0,eT[67]=K,eT[68]=Q):Q=eT[68],eT[69]!==M||eT[70]!==q||eT[71]!==Z||eT[72]!==Q?(ee=(0,s.jsx)("div",{className:"flex h-full min-w-0 flex-1",children:(0,s.jsx)(D.TextLink,{href:M,scroll:!1,onClick:q,className:Z,children:Q})}),eT[69]=M,eT[70]=q,eT[71]=Z,eT[72]=Q,eT[73]=ee):ee=eT[73];let e1=eF&&"hidden";eT[74]!==e1?(et=(0,u.f)("flex shrink-0 items-center",e1),eT[74]=e1,eT[75]=et):et=eT[75],eT[76]!==eP?(er=eP.isOpen("menu"),eT[76]=eP,eT[77]=er):er=eT[77],eT[78]!==eP?(en=e=>eP.setOpen("menu",e),eT[78]=eP,eT[79]=en):en=eT[79];let e2=ez&&"opacity-100";eT[80]!==e2?(ei=(0,u.f)("group-hover:opacity-100 md:opacity-0","data-[state=open]:opacity-100",e2,"hover:bg-transparent"),eT[80]=e2,eT[81]=ei):ei=eT[81],eT[82]!==eM?(ea=eM("Room actions"),eT[82]=eM,eT[83]=ea):ea=eT[83],eT[84]===Symbol.for("react.memo_cache_sentinel")?(eo=(0,s.jsx)(z.f,{className:"size-5"}),eT[84]=eo):eo=eT[84],eT[85]!==ei||eT[86]!==ea?(el=(0,s.jsx)(F.J,{render:(0,s.jsx)(f.Button,{size:"icon",variant:"ghost",className:ei,"aria-label":ea,children:eo})}),eT[85]=ei,eT[86]=ea,eT[87]=el):el=eT[87],eT[88]!==eZ||eT[89]!==eP?(es=()=>{eP.close("menu"),eZ()},eT[88]=eZ,eT[89]=eP,eT[90]=es):es=eT[90],eT[91]===Symbol.for("react.memo_cache_sentinel")?(ec=(0,s.jsx)(L,{className:"h-4 w-4"}),eT[91]=ec):ec=eT[91];let e5=eB?"pinned":"unpinned";return eT[92]!==e5?(ed=(0,s.jsx)(h.T,{children:(0,s.jsxs)("span",{className:"inline-flex items-center gap-2",children:[ec,(0,s.jsx)($.f,{branch:e5,pinned:"Unpin",unpinned:"Pin"})]})}),eT[92]=e5,eT[93]=ed):ed=eT[93],eT[94]!==es||eT[95]!==ed?(eu=(0,s.jsx)(f.Button,{align:"start",size:"sm",variant:"ghost",className:"w-full",onClick:es,children:ed}),eT[94]=es,eT[95]=ed,eT[96]=eu):eu=eT[96],eT[97]!==eP?(ef=()=>{eP.close("menu"),requestAnimationFrame(()=>eP.open("rename"))},eT[97]=eP,eT[98]=ef):ef=eT[98],eT[99]===Symbol.for("react.memo_cache_sentinel")?(em=(0,s.jsx)(I.f,{className:"size-4"}),eT[99]=em):em=eT[99],eT[100]===Symbol.for("react.memo_cache_sentinel")?(ep=(0,s.jsx)(h.T,{children:"Rename"}),eT[100]=ep):ep=eT[100],eT[101]!==ef?(eh=(0,s.jsxs)(f.Button,{align:"start",size:"sm",variant:"ghost",className:"w-full",onClick:ef,children:[em," ",ep]}),eT[101]=ef,eT[102]=eh):eh=eT[102],eT[103]!==eP||eT[104]!==eO.canDuplicate||eT[105]!==eA||eT[106]!==eL?(eg=eO.canDuplicate?(0,s.jsxs)(f.Button,{align:"start",size:"sm",variant:"ghost",className:"w-full",onClick:()=>{eP.close("menu"),b.z.duplicateRoom({payload:{sourceRoomId:eA},dependencies:{router:eL}})},children:[(0,s.jsx)(O.f,{className:"size-4"})," ",(0,s.jsx)(h.T,{children:"Duplicate"})]}):null,eT[103]=eP,eT[104]=eO.canDuplicate,eT[105]=eA,eT[106]=eL,eT[107]=eg):eg=eT[107],eT[108]!==eP?(ev=()=>{eP.open("delete_confirm")},eT[108]=eP,eT[109]=ev):ev=eT[109],eT[110]===Symbol.for("react.memo_cache_sentinel")?(ex=(0,s.jsx)(d.f,{className:"size-4"}),eT[110]=ex):ex=eT[110],eT[111]===Symbol.for("react.memo_cache_sentinel")?(eb=(0,s.jsx)(h.T,{children:"Delete"}),eT[111]=eb):eb=eT[111],eT[112]!==ev?(ey=(0,s.jsxs)(f.Button,{align:"start",size:"sm",variant:"ghost",className:"w-full text-negative hover:text-negative",onClick:ev,children:[ex," ",eb]}),eT[112]=ev,eT[113]=ey):ey=eT[113],eT[114]!==eu||eT[115]!==eh||eT[116]!==eg||eT[117]!==ey?(ew=(0,s.jsx)(F.T,{side:"right",text:"body",className:"w-48 p-1.5",children:(0,s.jsxs)("div",{className:"flex flex-col gap-1.5",children:[eu,eh,eg,ey]})}),eT[114]=eu,eT[115]=eh,eT[116]=eg,eT[117]=ey,eT[118]=ew):ew=eT[118],eT[119]!==er||eT[120]!==en||eT[121]!==el||eT[122]!==ew?(ej=(0,s.jsxs)(F.V,{open:er,onOpenChange:en,children:[el,ew]}),eT[119]=er,eT[120]=en,eT[121]=el,eT[122]=ew,eT[123]=ej):ej=eT[123],eT[124]!==et||eT[125]!==ej?(ek=(0,s.jsx)("div",{className:et,children:ej}),eT[124]=et,eT[125]=ej,eT[126]=ek):ek=eT[126],eT[127]!==eP?(eN=e=>eP.setOpen("delete_confirm",e),eT[127]=eP,eT[128]=eN):eN=eT[128],eT[129]!==eM?(eS=eM("Delete chat"),eT[129]=eM,eT[130]=eS):eS=eT[130],eT[131]!==eM?(e_=eM("This will permanently delete this chat. This action cannot be undone."),eT[131]=eM,eT[132]=e_):e_=eT[132],eT[133]!==eM?(eC=eM("Delete"),eT[133]=eM,eT[134]=eC):eC=eT[134],eT[135]!==eU||eT[136]!==eH||eT[137]!==eN||eT[138]!==eS||eT[139]!==e_||eT[140]!==eC?(eE=(0,s.jsx)(w,{open:eH,onOpenChange:eN,title:eS,description:e_,confirmLabel:eC,variant:"destructive",onConfirm:eU}),eT[135]=eU,eT[136]=eH,eT[137]=eN,eT[138]=eS,eT[139]=e_,eT[140]=eC,eT[141]=eE):eE=eT[141],eT[142]!==R||eT[143]!==T||eT[144]!==A||eT[145]!==ee||eT[146]!==ek||eT[147]!==eE?(eR=(0,s.jsxs)("div",{className:R,children:[T,A,ee,ek,eE]}),eT[142]=R,eT[143]=T,eT[144]=A,eT[145]=ee,eT[146]=ek,eT[147]=eE,eT[148]=eR):eR=eT[148],eR}function Y(e){return e.toggleRoom}let K=(0,x.memo)(e=>(0,s.jsx)(x.Suspense,{fallback:null,children:(0,s.jsx)(X,{...e})}),(e,t)=>e.roomId===t.roomId);function Q(e){return(0,s.jsx)(K,{roomId:e},e)}function ee(e){return(0,s.jsx)(K,{roomId:e},e)}e.s(["f",0,function(e){let r,n,i,a=(0,t.c)(12),{rooms:o}=e,l=(0,g.f)(),c=o.pinned.length>0,d=o.recent.length>0;if(!c&&!d){let e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)(h.T,{children:(0,s.jsx)("div",{className:"flex h-full items-center justify-center px-4 text-xs text-muted-foreground",children:"No matching rooms"})}),a[0]=e):e=a[0],e}return a[1]!==l||a[2]!==c||a[3]!==o.pinned?(r=c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:(0,u.f)("flex items-center px-3","pt-2 pb-1"),children:(0,s.jsx)(R,{visibleRoomIds:o.pinned,label:l("Pinned"),labelClassName:"text-overline font-medium uppercase tracking-wider text-muted-foreground",className:"-ml-1.5"})}),(0,s.jsx)("div",{className:"flex flex-col gap-0.5",children:o.pinned.map(ee)})]}),a[1]=l,a[2]=c,a[3]=o.pinned,a[4]=r):r=a[4],a[5]!==c||a[6]!==d||a[7]!==o.recent?(n=d&&(0,s.jsx)("div",{className:"flex flex-col",children:o.recent.map((e,t)=>(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:(0,u.f)("flex items-center gap-2 px-3",c||0!==t?"pt-4 pb-1":"pt-2 pb-1"),children:[(0,s.jsx)(R,{visibleRoomIds:e.roomIds,label:e.groupName,labelClassName:"text-overline font-medium uppercase tracking-wider text-muted-foreground",className:"-ml-1.5"}),(0,s.jsx)("div",{"aria-hidden":"true",className:"h-px flex-1 bg-border"})]}),(0,s.jsx)("div",{className:"flex flex-col gap-0.5",children:e.roomIds.map(Q)})]},e.groupName))}),a[5]=c,a[6]=d,a[7]=o.recent,a[8]=n):n=a[8],a[9]!==r||a[10]!==n?(i=(0,s.jsxs)("div",{className:"flex flex-col",children:[r,n]}),a[9]=r,a[10]=n,a[11]=i):i=a[11],i}],703880)},780397,e=>{"use strict";var t=e.i(624621);e.s(["f",0,()=>t.f.getState().currentRoomId])},797677,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562),i=e.i(207298),a=e.i(16043);let o=(0,i.f)("size-full rounded-[inherit]",{variants:{orientation:{horizontal:"overflow-x-auto overflow-y-hidden",vertical:"overflow-y-auto overflow-x-hidden"}},defaultVariants:{orientation:"horizontal"}}),l=(0,i.f)("",{variants:{orientation:{horizontal:"w-max",vertical:"h-max"}},defaultVariants:{orientation:"horizontal"}});function s(e){window.clearTimeout(e)}e.s(["f",0,e=>{let i,c,d,u,f,m,p,h,g=(0,r.c)(19),{children:v,className:x,itemCount:b,orientation:y}=e,w=void 0===y?"horizontal":y,j=(0,a.useRef)(null),k=(0,a.useRef)(b);return g[0]!==b||g[1]!==w?(i=()=>{let e=k.current;if(k.current=b,b<=e)return;let t=()=>{if(j.current){if("horizontal"===w){j.current.scrollLeft=j.current.scrollWidth;return}j.current.scrollTop=j.current.scrollHeight}};t();let r=[window.setTimeout(t,50),window.setTimeout(t,200),window.setTimeout(t,500)];return()=>{r.forEach(s)}},c=[b,w],g[0]=b,g[1]=w,g[2]=i,g[3]=c):(i=g[2],c=g[3]),(0,a.useEffect)(i,c),g[4]!==x?(d=(0,n.f)("w-full overflow-hidden",x),g[4]=x,g[5]=d):d=g[5],g[6]!==w?(u=o({orientation:w}),g[6]=w,g[7]=u):u=g[7],g[8]!==w?(f=l({orientation:w}),g[8]=w,g[9]=f):f=g[9],g[10]!==v||g[11]!==f?(m=(0,t.jsx)("div",{className:f,children:v}),g[10]=v,g[11]=f,g[12]=m):m=g[12],g[13]!==u||g[14]!==m?(p=(0,t.jsx)("div",{ref:j,className:u,children:m}),g[13]=u,g[14]=m,g[15]=p):p=g[15],g[16]!==d||g[17]!==p?(h=(0,t.jsx)("div",{className:d,children:p}),g[16]=d,g[17]=p,g[18]=h):h=g[18],h}])},903121,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16043);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.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:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm14.25 6a.75.75 0 0 1-.22.53l-2.25 2.25a.75.75 0 1 1-1.06-1.06L15.44 12l-1.72-1.72a.75.75 0 1 1 1.06-1.06l2.25 2.25c.141.14.22.331.22.53Zm-10.28-.53a.75.75 0 0 0 0 1.06l2.25 2.25a.75.75 0 1 0 1.06-1.06L8.56 12l1.72-1.72a.75.75 0 1 0-1.06-1.06l-2.25 2.25Z",clipRule:"evenodd"}))}),a=n.forwardRef(function({title:e,titleId:t,...r},i){return n.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:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0 0 16.5 9h-1.875a1.875 1.875 0 0 1-1.875-1.875V5.25A3.75 3.75 0 0 0 9 1.5H5.625ZM7.5 15a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5h-7.5A.75.75 0 0 1 7.5 15Zm.75 2.25a.75.75 0 0 0 0 1.5H12a.75.75 0 0 0 0-1.5H8.25Z",clipRule:"evenodd"}),n.createElement("path",{d:"M12.971 1.816A5.23 5.23 0 0 1 14.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 0 1 3.434 1.279 9.768 9.768 0 0 0-6.963-6.963Z"}))}),o=n.forwardRef(function({title:e,titleId:t,...r},i){return n.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:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M1.5 6a2.25 2.25 0 0 1 2.25-2.25h16.5A2.25 2.25 0 0 1 22.5 6v12a2.25 2.25 0 0 1-2.25 2.25H3.75A2.25 2.25 0 0 1 1.5 18V6ZM3 16.06V18c0 .414.336.75.75.75h16.5A.75.75 0 0 0 21 18v-1.94l-2.69-2.689a1.5 1.5 0 0 0-2.12 0l-.88.879.97.97a.75.75 0 1 1-1.06 1.06l-5.16-5.159a1.5 1.5 0 0 0-2.12 0L3 16.061Zm10.125-7.81a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Z",clipRule:"evenodd"}))});var l=e.i(136562);e.i(707060);var s=e.i(196991);e.s(["f",0,e=>{let n,c,d,u,f=(0,r.c)(11),{className:m,isValid:p,onDrop:h}=e;f[0]!==h?(n=h?{onDrop:h}:{},f[0]=h,f[1]=n):n=f[1];let g=p?"border-accent-border bg-selected-bg":"border-destructive bg-destructive/10";return f[2]!==m||f[3]!==g?(c=(0,l.f)("flex h-32 w-full items-center justify-center rounded-lg border-2 border-dashed backdrop-blur-sm",g,"transition-colors duration-200 ease-in-out",m),f[2]=m,f[3]=g,f[4]=c):c=f[4],f[5]!==p?(d=(0,t.jsx)("div",{className:"text-center",children:p?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 font-semibold text-foreground",children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(o,{className:"size-6 -rotate-6 text-muted-foreground"}),(0,t.jsx)(i,{className:"size-6 text-muted-foreground"}),(0,t.jsx)(a,{className:"size-6 rotate-6 text-muted-foreground"})]}),(0,t.jsx)(s.T,{children:"Drop files here to add to your message"})]}):(0,t.jsx)(s.T,{children:(0,t.jsx)("p",{className:"font-semibold text-destructive",children:"Invalid file type (images, audio, video, text, PDF)"})})}),f[5]=p,f[6]=d):d=f[6],f[7]!==n||f[8]!==c||f[9]!==d?(u=(0,t.jsx)("div",{role:"button",tabIndex:0,...n,className:c,children:d}),f[7]=n,f[8]=c,f[9]=d,f[10]=u):u=f[10],u}],903121)},601608,563456,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(6146),i=e.i(77825),a=e.i(535072),o=e.i(205194);e.i(707060);var l=e.i(288265),s=e.i(40181),c=e.i(16043),d=e.i(404142),u=e.i(22422),f=e.i(624621),m=e.i(329415),p=e.i(902988),h=e.i(362942),g=e.i(649301),v=e.i(907781);function x(){let e=(0,f.f)(y),t=(0,f.f)(b),r=(0,v.f)();return null!==r&&e===r&&"pending"!==t&&"failed"!==t}function b(e){return e.initializationStatus}function y(e){return e.storageInstanceId}e.s(["f",0,x],563456);let w=(0,c.memo)(e=>{let n,a,c,v,b,y,w,j,k,S=(0,r.c)(28),{isEmbedded:_}=e,C=void 0!==_&&_,E=(0,l.f)(),R=(0,o.f)(),T=(0,f.f)(N),A=(0,i.f)(),M=x(),L=(0,m.f)(),O=C&&!(M&&L),z=(0,p.f)(),I=C&&!1===z,B=O&&!I;S[0]!==R?(n=async()=>{var e;let t=await u.z.createChatroom({payload:{characters:f.f.getState().rooms[f.f.getState().currentRoomId??""]?.characters}});R.push((e=t.id,`?room=${e}`))},S[0]=R,S[1]=n):n=S[1];let F=n;return S[2]!==B?(a=B?{inert:!0}:{},S[2]=B,S[3]=a):a=S[3],S[4]!==E?(c=E("Chat"),S[4]=E,S[5]=c):c=S[5],S[6]!==E?(v=E("New chat"),S[6]=E,S[7]=v):v=S[7],S[8]!==E?(b=E("New Chat (⌘ /)"),S[8]=E,S[9]=b):b=S[9],S[10]!==F||S[11]!==I||S[12]!==v||S[13]!==b?(y={label:v,ariaLabel:b,icon:s.f,onClick:F,shortcutHint:"⌘/",isDisabled:I},S[10]=F,S[11]=I,S[12]=v,S[13]=b,S[14]=y):y=S[14],S[15]!==O?(w=O?null:(0,t.jsx)(g.T,{children:(0,t.jsx)(h.f,{})}),S[15]=O,S[16]=w):w=S[16],S[17]!==A||S[18]!==T||S[19]!==C||S[20]!==c||S[21]!==y||S[22]!==w?(j=(0,t.jsx)(d.f,{title:c,isCollapsed:T,onToggle:u.z.toggleRoomManagerCollapsed,backAction:A,isEmbedded:C,newAction:y,containerClassName:"h-full min-h-0",children:w}),S[17]=A,S[18]=T,S[19]=C,S[20]=c,S[21]=y,S[22]=w,S[23]=j):j=S[23],S[24]!==B||S[25]!==a||S[26]!==j?(k=(0,t.jsx)("div",{className:"h-full min-h-0","aria-busy":B,...a,children:j}),S[24]=B,S[25]=a,S[26]=j,S[27]=k):k=S[27],k},()=>!0);function j(){let e=(0,r.c)(1),i=(0,a.x)();if((0,n.B)())return null;if(i){let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(w,{}),e[0]=r):r=e[0],r}return null}let k=(0,c.memo)(()=>{let e,n=(0,r.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(c.Suspense,{fallback:null,children:(0,t.jsx)(j,{})}),n[0]=e):e=n[0],e},()=>!0);function N(e){return e.isRoomManagerCollapsed}e.s(["EmbeddedRoomManager",0,function(){let e,n=(0,r.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(w,{isEmbedded:!0}),n[0]=e):e=n[0],e},"ResponsiveRoomManager",0,k],601608)},362942,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(139697),i=e.i(797521);e.i(707060);var a=e.i(359980),o=e.i(196991),l=e.i(288265),s=e.i(153746),c=e.i(16043),d=e.i(649896),u=e.i(797913),f=e.i(655673),m=e.i(371784),p=e.i(703880),h=e.i(138257),g=e.i(801103),v=e.i(304903),x=e.i(895783),b=e.i(693946),y=e.i(624621);function w(e){let n,l,c,d,u=(0,r.c)(17),{count:f,internId:m}=e,p=(0,i.f)();u[0]!==f||u[1]!==p?(n=p.number(f,{preset:"integer"}),u[0]=f,u[1]=p,u[2]=n):n=u[2];let h=n;if(void 0===m){let e,r,n;return u[3]!==h?(e=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.d,{children:h})," room"]}),r=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.d,{children:h})," rooms"]}),u[3]=h,u[4]=e,u[5]=r):(e=u[4],r=u[5]),u[6]!==f||u[7]!==e||u[8]!==r?(n=(0,t.jsx)(o.T,{children:(0,t.jsx)(a.f,{n:f,one:e,other:r})}),u[6]=f,u[7]=e,u[8]=r,u[9]=n):n=u[9],n}return u[10]!==h?(l=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.d,{children:h})," conversation"]}),c=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.d,{children:h})," conversations"]}),u[10]=h,u[11]=l,u[12]=c):(l=u[11],c=u[12]),u[13]!==f||u[14]!==l||u[15]!==c?(d=(0,t.jsx)(o.T,{children:(0,t.jsx)(a.f,{n:f,one:l,other:c})}),u[13]=f,u[14]=l,u[15]=c,u[16]=d):d=u[16],d}let j=(0,c.memo)(e=>{let i,a,s,j,_,C,E,R,T,A,M,L,O,z,I,B,F,D,P=(0,r.c)(33),{internId:$}=e,H=(0,l.f)(),[V,W]=(0,c.useState)(""),[U,q]=(0,c.useState)(V),G=(0,u.u)(),Z=(0,u.N)(k),J=(0,u.N)(N);P[0]!==V?(i=()=>{let e=setTimeout(()=>{q(V)},250);return()=>clearTimeout(e)},a=[V],P[0]=V,P[1]=i,P[2]=a):(i=P[1],a=P[2]),(0,c.useEffect)(i,a);let X=(I=(0,r.c)(6),B=(0,h.useLocale)(),F=(0,v.P)(),D=(0,g.m)(),I[0]!==U||I[1]!==$||I[2]!==B||I[3]!==D||I[4]!==F?(z=e=>void 0===$?(0,b.F)(e,U,B,{timeZone:F,nowMs:D}):(0,b.v)(e,$,U,B,{timeZone:F,nowMs:D}),I[0]=U,I[1]=$,I[2]=B,I[3]=D,I[4]=F,I[5]=z):z=I[5],(0,y.f)((0,x.f)(z)));P[3]!==X.pinned||P[4]!==X.recent?(s=[...X.pinned,...X.recent.flatMap(S)],P[3]=X.pinned,P[4]=X.recent,P[5]=s):s=P[5];let Y=s;P[6]!==H||P[7]!==$?(j=H(void 0===$?"Search rooms...":"Search conversations..."),P[6]=H,P[7]=$,P[8]=j):j=P[8],P[9]!==V||P[10]!==j?(_=(0,t.jsx)(d.f,{placeholder:j,value:V,onValueChange:W}),P[9]=V,P[10]=j,P[11]=_):_=P[11],P[12]===Symbol.for("react.memo_cache_sentinel")?(C=(0,t.jsx)("div",{"aria-hidden":"true",className:"shrink-0 -mx-2 py-4",children:(0,t.jsx)("div",{className:"h-px bg-border"})}),P[12]=C):C=P[12],P[13]!==H||P[14]!==$||P[15]!==G||P[16]!==Y?(E=G?(0,t.jsx)(m.f,{visibleRoomIds:Y,label:H("Select all"),className:"ml-1.5"}):(0,t.jsx)("span",{className:"inline-flex h-7 items-center pl-3 text-xs font-medium text-muted-foreground",children:(0,t.jsx)(w,{count:Y.length,internId:$})}),P[13]=H,P[14]=$,P[15]=G,P[16]=Y,P[17]=E):E=P[17];let K=G?J:Z;return P[18]!==G?(R=G?(0,t.jsx)(o.T,{children:"Done"}):(0,t.jsx)(o.T,{children:"Select"}),P[18]=G,P[19]=R):R=P[19],P[20]!==K||P[21]!==R?(T=(0,t.jsx)(n.Button,{type:"button",variant:"ghost",size:"sm",tone:"subdued",className:"px-1.5",onClick:K,children:R}),P[20]=K,P[21]=R,P[22]=T):T=P[22],P[23]!==T||P[24]!==E?(A=(0,t.jsxs)("div",{className:"flex h-7 shrink-0 items-center justify-between gap-1.5 pr-1",children:[E,T]}),P[23]=T,P[24]=E,P[25]=A):A=P[25],P[26]!==X?(M=(0,t.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto scrollbar-hide",children:(0,t.jsx)(p.f,{rooms:X})}),P[26]=X,P[27]=M):M=P[27],P[28]===Symbol.for("react.memo_cache_sentinel")?(L=(0,t.jsx)(f.f,{}),P[28]=L):L=P[28],P[29]!==A||P[30]!==M||P[31]!==_?(O=(0,t.jsxs)("div",{className:"flex h-full min-h-0 w-full flex-col gap-2",children:[_,C,A,M,L]}),P[29]=A,P[30]=M,P[31]=_,P[32]=O):O=P[32],O},(e,t)=>e.internId===t.internId);function k(e){return e.enterSelectionMode}function N(e){return e.exitSelectionMode}function S(e){return e.roomIds}e.s(["f",0,j],362942)},907781,e=>{"use strict";var t=e.i(663456),r=e.i(73668);e.i(16043);var n=e.i(215370),i=e.i(543696);e.s(["f",0,function(){let e,a=(0,t.c)(4),{isLoading:o,isOrgLoading:l,clerkOrg:s,isSignedIn:c}=(0,r.useEntity)(),d=(0,n.f)();s?.id;e:{let t;if(!(!o&&!l)||!d.isReady){e=null;break e}let r=!0===c,n=s?.id;a[0]!==r||a[1]!==n||a[2]!==d.partitionId?(t=(0,i.f)({isSignedIn:r,clerkOrgId:n,workspacePartitionId:d.partitionId}),a[0]=r,a[1]=n,a[2]=d.partitionId,a[3]=t):t=a[3],e=t}return e}])},660298,e=>{"use strict";e.s(["f",0,function(e,{date:t=new Date().toDateString(),name:r="OpenRouter Chat",ext:n=".md"}={}){let i=`${r} ${t}${n}`.trim(),a=i.length>100?`${i.slice(0,100-n.length)}${n}`:i,o=new Blob([e],{type:"text/markdown;charset=utf-8;"}),l=document.createElement("a"),s=URL.createObjectURL(o);l.setAttribute("href",s),l.setAttribute("download",a),l.style.visibility="hidden",document.body.appendChild(l),l.click(),document.body.removeChild(l),setTimeout(()=>URL.revokeObjectURL(s),4e4)}])},829104,e=>{"use strict";let t={Loading:"loading",Blocked:"blocked",Allowed:"allowed"};e.s(["u",0,t,"I",0,function({isAuthLoaded:e,isSignedIn:r,workspaces:n,didFetchFail:i}){return e?!0!==r?t.Allowed:void 0!==n?0===n.length?t.Blocked:t.Allowed:i?t.Allowed:t.Loading:t.Loading}])},205059,e=>{"use strict";var t=e.i(663456),r=e.i(376885),n=e.i(128564),i=e.i(829104);e.s(["f",0,function(){let e,a,o=(0,t.c)(7),{isLoaded:l,isSignedIn:s}=(0,r.f)(),c=!0===s;o[0]!==c?(e={isEnabled:c},o[0]=c,o[1]=e):e=o[1];let{workspaces:d,didFetchFail:u}=(0,n.Z)(e);return o[2]!==u||o[3]!==l||o[4]!==s||o[5]!==d?(a=(0,i.I)({isAuthLoaded:l,isSignedIn:s,workspaces:d,didFetchFail:u}),o[2]=u,o[3]=l,o[4]=s,o[5]=d,o[6]=a):a=o[6],a}])},215370,784814,e=>{"use strict";var t=e.i(376885),r=e.i(128564),n=e.i(427150);function i(e){let{activeWorkspaceId:t,defaultWorkspaceId:r}=e;return t&&r?t===r?null:t:null}e.s(["X",0,i,"Q",0,function(e,t){return(e.workspaceId??null)===t}],784814);let a={isReady:!1,partitionId:null},o={isReady:!0,partitionId:null},l=null;e.s(["f",0,function(){let{isLoaded:e,isSignedIn:s,userId:c,orgId:d}=(0,t.f)(),{workspaces:u,activeWorkspaceId:f,defaultWorkspaceId:m,didFetchFail:p}=(0,r.Z)({isEnabled:!0===s});if(!e)return a;if(!s||!(0,n.f)(c))return o;let h=d??null;if(void 0===u)return p&&l?.userId===c&&l.orgId===h?{isReady:!0,partitionId:l.partitionId}:a;let g=i({activeWorkspaceId:f,defaultWorkspaceId:m});return l={userId:c,orgId:h,partitionId:g},{isReady:!0,partitionId:g}}],215370)},329415,902988,e=>{"use strict";var t=e.i(663456),r=e.i(128564),n=e.i(424909),i=e.i(402600);e.s(["f",0,function(){let e,a,o,l=(0,t.c)(6),s=(0,i.f)();l[0]===Symbol.for("react.memo_cache_sentinel")?(e={isEnabled:!0},l[0]=e):e=l[0];let{workspaces:c,activeWorkspaceId:d}=(0,r.Z)(e);if(l[1]!==d||l[2]!==s||l[3]!==c){o=Symbol.for("react.early_return_sentinel");e:{let e=/^\/workspaces\/([^/]+)/.exec(s??"")?.[1];if(void 0===e||void 0===c||!d){o=!1;break e}a=(0,n.f)(c,e)?.id}l[1]=d,l[2]=s,l[3]=c,l[4]=a,l[5]=o}else a=l[4],o=l[5];return o!==Symbol.for("react.early_return_sentinel")?o:a===d}],329415),e.s(["f",0,function(){let e,a,o,l=(0,t.c)(5),s=(0,i.f)();l[0]===Symbol.for("react.memo_cache_sentinel")?(e={isEnabled:!0},l[0]=e):e=l[0];let{workspaces:c}=(0,r.Z)(e);if(l[1]!==s||l[2]!==c){o=Symbol.for("react.early_return_sentinel");e:{let e=/^\/workspaces\/([^/]+)/.exec(s??"")?.[1];if(void 0===e||void 0===c){o=void 0;break e}a=(0,n.f)(c,e)}l[1]=s,l[2]=c,l[3]=a,l[4]=o}else a=l[3],o=l[4];return o!==Symbol.for("react.early_return_sentinel")?o:void 0!==a}],902988)},510914,e=>{"use strict";e.s(["f",0,function(t,r){return(n,i)=>(function(t,r,n,i){let a="SharedWorker"===t.name,o=e.b,l=[n.map(t=>e.h("string"==typeof t?t:t.path,o)).reverse(),e.X,o],s=["NEXT_DEPLOYMENT_ID","NEXT_CLIENT_ASSET_SUFFIX"];for(let e=0;e