;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="36a2ac0e-58ba-d558-951c-3d67d36433ae")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,792674,e=>{"use strict";var n=e.i(733783),t=e.i(908464),a=e.i(472361),l=e.i(879695),i=e.i(739432);e.s(["default",0,function(e){var r;let o,s,c,d,u,m,g,p,f,v,h=(0,t.c)(24),{children:C,className:y,hasMore:k,isLoading:x,manualHold:b,onLoadMore:S,root:_,rootRef:F,rootMargin:E}=e,L=void 0!==b&&b,j=(0,a.useRef)(!1),K=(0,a.useRef)(void 0);h[0]!==L||h[1]!==S?(o=()=>{!0!==L&&(0,a.startTransition)(()=>{S(K)})},h[0]=L,h[1]=S,h[2]=o):o=h[2];let R=o;h[3]!==k||h[4]!==x||h[5]!==R?(s=()=>{k&&!x&&j.current&&R()},h[3]=k,h[4]=x,h[5]=R,h[6]=s):s=h[6],r=s,(v=(0,t.c)(3))[0]!==r?(p=()=>{let e,n=requestAnimationFrame(()=>{n=requestAnimationFrame(()=>{e=r()})});return()=>{cancelAnimationFrame(n),e?.()}},f=[r],v[0]=r,v[1]=p,v[2]=f):(p=v[1],f=v[2]),(0,a.useEffect)(p,f),h[7]!==k||h[8]!==x||h[9]!==R?(c=()=>{let e=j.current;j.current=!0,e||!k||x||R()},h[7]=k,h[8]=x,h[9]=R,h[10]=c):c=h[10];let N=c;h[11]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{j.current=!1},h[11]=d):d=h[11];let w=d;h[12]!==N?(u=e=>{e?N():w()},h[12]=N,h[13]=u):u=h[13],h[14]!==_||h[15]!==E||h[16]!==F?(m={root:_,rootRef:F,rootMargin:E},h[14]=_,h[15]=E,h[16]=F,h[17]=m):m=h[17];let D=(0,i.useOnInView)(u,m),P=(0,l.useMergeRefs)(D,K);return h[18]!==C||h[19]!==y||h[20]!==k||h[21]!==x||h[22]!==P?(g=k||x?(0,n.jsx)("div",{className:y,ref:P,style:{overflowAnchor:"none"},children:C}):null,h[18]=C,h[19]=y,h[20]=k,h[21]=x,h[22]=P,h[23]=g):g=h[23],g}],792674)},472256,e=>{"use strict";var n=e.i(733783),t=e.i(908464);function a(e){let a,l,i,r,o,s,c=(0,t.c)(11);c[0]!==e?({size:l,...a}=e,c[0]=e,c[1]=a,c[2]=l):(a=c[1],l=c[2]);let d=void 0===l?32:l;return c[3]!==a.title?(i=null!=a.title&&(0,n.jsx)("title",{children:a.title}),c[3]=a.title,c[4]=i):i=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)("path",{d:"M9.63 11.9c-.08.005-.157.007-.23.013-.445.037-.688.103-.865.193-.4.204-.725.53-.929.93-.09.176-.156.418-.193.864-.037.457-.038 1.045-.038 1.9v6.4c0 .855 0 1.443.038 1.9.037.445.103.688.193.865.204.4.53.725.93.929.176.09.419.157.864.193.457.037 1.045.038 1.9.038h3.4c.855 0 1.443 0 1.9-.038.445-.037.688-.103.865-.193.4-.204.725-.53.929-.93.09-.176.157-.418.193-.864.006-.073.01-.15.014-.23h1.752c-.006.13-.012.254-.022.371-.045.554-.141 1.053-.378 1.518a3.879 3.879 0 0 1-1.694 1.694c-.465.237-.964.333-1.518.378-.544.044-1.216.044-2.04.044H11.3c-.825 0-1.497 0-2.041-.044-.554-.045-1.053-.141-1.518-.378a3.879 3.879 0 0 1-1.694-1.694c-.237-.465-.333-.964-.378-1.518-.044-.544-.044-1.215-.044-2.04V15.8c0-.825 0-1.497.044-2.041.045-.554.141-1.053.378-1.518a3.879 3.879 0 0 1 1.694-1.694c.465-.237.964-.333 1.518-.378.117-.01.241-.016.37-.021V11.9zm9.365-3.275c.483 0 .875.392.875.875v2.625h2.63a.875.875 0 0 1 0 1.75h-2.63V16.5a.875.875 0 1 1-1.75 0v-2.625H15.5a.875.875 0 0 1 0-1.75h2.62V9.5c0-.483.392-.875.875-.875z",fill:"currentColor"}),o=(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7 4.125c.826 0 1.497 0 2.041.044.554.045 1.053.141 1.518.378.729.371 1.323.965 1.694 1.694.237.465.333.964.378 1.518.044.544.044 1.215.044 2.04V16.2c0 .826 0 1.497-.044 2.041-.045.554-.141 1.053-.378 1.518a3.879 3.879 0 0 1-1.694 1.694c-.465.237-.964.333-1.518.378-.544.044-1.215.044-2.04.044H17.3c-.826 0-1.497 0-2.041-.044-.554-.045-1.053-.141-1.518-.378a3.879 3.879 0 0 1-1.694-1.694c-.237-.465-.333-.964-.378-1.518-.045-.544-.044-1.215-.044-2.04V9.8c0-.826 0-1.497.044-2.041.045-.554.141-1.053.378-1.518a3.879 3.879 0 0 1 1.694-1.694c.465-.237.964-.333 1.518-.378.544-.044 1.215-.044 2.04-.044H20.7zm-3.4 1.75c-.855 0-1.443 0-1.9.038-.446.037-.688.103-.865.193-.4.204-.725.53-.929.93-.09.176-.156.419-.193.864-.037.457-.038 1.045-.038 1.9v6.4c0 .855 0 1.443.038 1.9.037.445.103.688.193.865.204.4.53.725.93.929.176.09.418.157.864.193.457.037 1.045.038 1.9.038h3.4c.855 0 1.443 0 1.9-.038.445-.037.688-.103.865-.193.4-.204.725-.53.929-.93.09-.176.157-.418.193-.864.037-.457.038-1.045.038-1.9V9.8c0-.855 0-1.443-.038-1.9-.037-.445-.103-.688-.193-.865a2.126 2.126 0 0 0-.93-.929c-.176-.09-.418-.156-.864-.193-.457-.037-1.045-.038-1.9-.038h-3.4z",fill:"currentColor"}),c[5]=r,c[6]=o):(r=c[5],o=c[6]),c[7]!==a||c[8]!==d||c[9]!==i?(s=(0,n.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:d,height:d,...a,children:[i,r,o]}),c[7]=a,c[8]=d,c[9]=i,c[10]=s):s=c[10],s}a._isSVG=!0,e.s(["default",0,a])},438217,e=>{"use strict";var n=e.i(733783),t=e.i(908464);function a(e){let a,l,i,r,o,s=(0,t.c)(10);s[0]!==e?({size:l,...a}=e,s[0]=e,s[1]=a,s[2]=l):(a=s[1],l=s[2]);let c=void 0===l?32:l;return s[3]!==a.title?(i=null!=a.title&&(0,n.jsx)("title",{children:a.title}),s[3]=a.title,s[4]=i):i=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6 17.125c.405 0 .762 0 1.056.023.304.025.618.08.922.236.447.227.81.591 1.038 1.038.155.304.21.617.236.922.024.294.023.65.023 1.056v2.7c0 .405 0 .762-.023 1.056-.025.305-.08.618-.236.922-.227.447-.591.81-1.038 1.038-.304.155-.617.21-.922.236-.294.024-.65.023-1.056.023H8.9c-.405 0-.762 0-1.056-.023-.304-.025-.618-.08-.922-.236a2.376 2.376 0 0 1-1.038-1.038c-.155-.304-.21-.617-.236-.922-.024-.294-.023-.65-.023-1.056v-2.7c0-.405 0-.762.023-1.056.025-.305.08-.618.236-.922.227-.447.591-.81 1.038-1.038.304-.155.618-.21.922-.236.294-.024.65-.023 1.056-.023h2.7zm-2.7 1.75c-.434 0-.707 0-.914.018-.196.016-.254.042-.27.05a.625.625 0 0 0-.273.273c-.008.016-.034.074-.05.27-.017.206-.018.48-.018.914v2.7c0 .434 0 .707.018.914.016.196.042.254.05.27.06.117.156.213.273.273.016.008.074.034.27.05.207.017.48.018.914.018h2.7c.434 0 .707 0 .914-.018.196-.016.254-.042.27-.05a.625.625 0 0 0 .273-.273c.008-.016.034-.074.05-.27.017-.206.018-.48.018-.914v-2.7c0-.434 0-.707-.018-.914-.016-.196-.042-.254-.05-.27a.625.625 0 0 0-.273-.273c-.016-.008-.074-.034-.27-.05-.207-.017-.48-.018-.914-.018H8.9zm14.2-1.75c.405 0 .762 0 1.056.023.305.025.618.08.922.236.447.227.81.591 1.038 1.038.155.304.21.617.236.922.024.294.023.65.023 1.056v2.7c0 .405 0 .762-.023 1.056-.025.305-.08.618-.236.922-.227.447-.591.81-1.038 1.038-.304.155-.617.21-.922.236-.294.024-.65.023-1.056.023h-2.7c-.405 0-.762 0-1.056-.023-.305-.025-.618-.08-.922-.236a2.376 2.376 0 0 1-1.038-1.038c-.155-.304-.21-.617-.236-.922-.024-.294-.023-.65-.023-1.056v-2.7c0-.405 0-.762.023-1.056.025-.305.08-.618.236-.922.227-.447.591-.81 1.038-1.038.304-.155.617-.21.922-.236.294-.024.65-.023 1.056-.023h2.7zm-2.7 1.75c-.434 0-.707 0-.914.018-.196.016-.254.042-.27.05a.625.625 0 0 0-.273.273c-.008.016-.034.074-.05.27-.017.206-.018.48-.018.914v2.7c0 .434 0 .707.018.914.016.196.042.254.05.27.06.117.156.213.273.273.016.008.074.034.27.05.206.017.48.018.914.018h2.7c.434 0 .707 0 .914-.018.196-.016.254-.042.27-.05a.625.625 0 0 0 .273-.273c.008-.016.034-.074.05-.27.017-.206.018-.48.018-.914v-2.7c0-.434 0-.707-.018-.914-.016-.196-.042-.254-.05-.27a.625.625 0 0 0-.273-.273c-.016-.008-.074-.034-.27-.05-.206-.017-.48-.018-.914-.018h-2.7zm-8.8-13.25c.405 0 .762 0 1.056.023.304.025.618.08.922.236.447.227.81.591 1.038 1.038.155.304.21.618.236.922.024.294.023.65.023 1.056v2.7c0 .405 0 .762-.023 1.056-.025.304-.08.618-.236.922-.227.447-.591.81-1.038 1.038-.304.155-.617.21-.922.236-.294.024-.65.023-1.056.023H8.9c-.405 0-.762 0-1.056-.023-.304-.025-.618-.08-.922-.236a2.376 2.376 0 0 1-1.038-1.038c-.155-.304-.21-.617-.236-.922-.024-.294-.023-.65-.023-1.056V8.9c0-.405 0-.762.023-1.056.025-.304.08-.618.236-.922.227-.447.591-.81 1.038-1.038.304-.155.618-.21.922-.236.294-.024.65-.023 1.056-.023h2.7zm-2.7 1.75c-.434 0-.707 0-.914.018-.196.016-.254.042-.27.05a.625.625 0 0 0-.273.273c-.008.016-.034.074-.05.27-.017.207-.018.48-.018.914v2.7c0 .434 0 .707.018.914.016.196.042.254.05.27.06.117.156.213.273.273.016.008.074.034.27.05.207.017.48.018.914.018h2.7c.434 0 .707 0 .914-.018.196-.016.254-.042.27-.05a.625.625 0 0 0 .273-.273c.008-.016.034-.074.05-.27.017-.207.018-.48.018-.914V8.9c0-.434 0-.707-.018-.914-.016-.196-.042-.254-.05-.27a.625.625 0 0 0-.273-.273c-.016-.008-.074-.034-.27-.05a12.68 12.68 0 0 0-.914-.018H8.9zm14.2-1.75c.405 0 .762 0 1.056.023.305.025.618.08.922.236.447.227.81.591 1.038 1.038.155.304.21.618.236.922.024.294.023.65.023 1.056v2.7c0 .405 0 .762-.023 1.056-.025.304-.08.618-.236.922-.227.447-.591.81-1.038 1.038-.304.155-.617.21-.922.236-.294.024-.65.023-1.056.023h-2.7c-.405 0-.762 0-1.056-.023-.305-.025-.618-.08-.922-.236a2.376 2.376 0 0 1-1.038-1.038c-.155-.304-.21-.617-.236-.922-.024-.294-.023-.65-.023-1.056V8.9c0-.405 0-.762.023-1.056.025-.304.08-.618.236-.922.227-.447.591-.81 1.038-1.038.304-.155.617-.21.922-.236.294-.024.65-.023 1.056-.023h2.7zm-2.7 1.75c-.434 0-.707 0-.914.018-.196.016-.254.042-.27.05a.625.625 0 0 0-.273.273c-.008.016-.034.074-.05.27-.017.207-.018.48-.018.914v2.7c0 .434 0 .707.018.914.016.196.042.254.05.27.06.117.156.213.273.273.016.008.074.034.27.05.206.017.48.018.914.018h2.7c.434 0 .707 0 .914-.018.196-.016.254-.042.27-.05a.625.625 0 0 0 .273-.273c.008-.016.034-.074.05-.27.017-.207.018-.48.018-.914V8.9c0-.434 0-.707-.018-.914-.016-.196-.042-.254-.05-.27a.625.625 0 0 0-.273-.273c-.016-.008-.074-.034-.27-.05a12.68 12.68 0 0 0-.914-.018h-2.7z",fill:"currentColor"}),s[5]=r):r=s[5],s[6]!==a||s[7]!==c||s[8]!==i?(o=(0,n.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:c,height:c,...a,children:[i,r]}),s[6]=a,s[7]=c,s[8]=i,s[9]=o):o=s[9],o}a._isSVG=!0,e.s(["default",0,a])},474983,e=>{"use strict";var n=e.i(733783),t=e.i(908464);function a(e){let a,l,i,r,o,s=(0,t.c)(10);s[0]!==e?({size:l,...a}=e,s[0]=e,s[1]=a,s[2]=l):(a=s[1],l=s[2]);let c=void 0===l?32:l;return s[3]!==a.title?(i=null!=a.title&&(0,n.jsx)("title",{children:a.title}),s[3]=a.title,s[4]=i):i=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 17.125c4.609 0 8.673 2.587 9.974 6.396.128.377.315.848.173 1.426a1.91 1.91 0 0 1-.302.639c-.122.17-.293.357-.506.493-.27.173-.543.24-.804.27-.234.027-.506.026-.772.026H8.236c-.266 0-.538.001-.772-.025a1.826 1.826 0 0 1-.803-.27 1.907 1.907 0 0 1-.506-.494 1.905 1.905 0 0 1-.304-.638c-.142-.578.046-1.05.174-1.427 1.3-3.81 5.366-6.396 9.975-6.396zm0 1.75c-4.012 0-7.306 2.244-8.318 5.212-.038.111-.067.195-.09.267-.021.07-.032.113-.037.142l-.005.024a.375.375 0 0 0 .057.082l.055.01c.113.012.27.013.574.013h15.527c.305 0 .462 0 .575-.014a.39.39 0 0 0 .053-.01.275.275 0 0 0 .03-.034.346.346 0 0 0 .027-.046c0-.004 0-.013-.003-.025a1.462 1.462 0 0 0-.039-.143 6.91 6.91 0 0 0-.089-.266c-1.013-2.968-4.306-5.212-8.317-5.212zm-8.45 5.651c0-.004 0-.005.002.004l-.002-.008v.004zm8.436-18.901c1.258 0 2.337.435 3.143 1.344.816.92 1.173 2.133 1.173 3.531 0 1.382-.357 2.583-1.167 3.5l-.154.168c-.785.813-1.81 1.207-2.995 1.207-1.242 0-2.307-.454-3.118-1.367-.815-.918-1.174-2.122-1.174-3.508 0-1.399.357-2.613 1.174-3.532l.007-.008c.813-.895 1.876-1.335 3.111-1.335zm0 1.75c-.777 0-1.355.258-1.812.759-.452.51-.73 1.263-.73 2.366 0 1.085.277 1.833.733 2.346.46.517 1.037.779 1.81.779.811 0 1.39-.268 1.825-.771l.007-.008c.456-.513.733-1.26.733-2.346 0-1.105-.279-1.859-.733-2.37-.434-.49-1.014-.755-1.833-.755z",fill:"currentColor"}),s[5]=r):r=s[5],s[6]!==a||s[7]!==c||s[8]!==i?(o=(0,n.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:c,height:c,...a,children:[i,r]}),s[6]=a,s[7]=c,s[8]=i,s[9]=o):o=s[9],o}a._isSVG=!0,e.s(["default",0,a])},180156,e=>{"use strict";var n=e.i(733783),t=e.i(908464);function a(e){let a,l,i,r,o,s=(0,t.c)(10);s[0]!==e?({size:l,...a}=e,s[0]=e,s[1]=a,s[2]=l):(a=s[1],l=s[2]);let c=void 0===l?32:l;return s[3]!==a.title?(i=null!=a.title&&(0,n.jsx)("title",{children:a.title}),s[3]=a.title,s[4]=i):i=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{d:"M16 9.75C18.2 9.75 19.5 11.5409 19.5 13.75C19.5 15.9591 18.2 17.75 16 17.75C13.8 17.75 12.5 15.9591 12.5 13.75C12.5 11.5409 13.8 9.75 16 9.75Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M16 5C22.0751 5 27 9.92487 27 16C27 22.0751 22.0751 27 16 27C9.92487 27 5 22.0751 5 16C5 9.92487 9.92487 5 16 5ZM16 7C11.0294 7 7 11.0294 7 16C7 17.968 7.63299 19.7873 8.70495 21.2683C8.84956 21.4681 8.92186 21.5679 9.02642 21.6225C9.11751 21.67 9.22413 21.6886 9.32591 21.6746C9.44275 21.6585 9.5613 21.5774 9.7984 21.4151C11.5639 20.2071 13.6991 19.5 16 19.5C18.3008 19.5 20.4354 20.2078 22.2007 21.4161C22.4378 21.5783 22.5563 21.6595 22.6731 21.6756C22.7749 21.6896 22.8815 21.6711 22.9726 21.6236C23.0772 21.569 23.1495 21.4691 23.2941 21.2694C24.3666 19.7882 25 17.9685 25 16C25 11.0294 20.9706 7 16 7Z",fill:"currentColor"})]}),s[5]=r):r=s[5],s[6]!==a||s[7]!==c||s[8]!==i?(o=(0,n.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:c,height:c,...a,children:[i,r]}),s[6]=a,s[7]=c,s[8]=i,s[9]=o):o=s[9],o}a._isSVG=!0,e.s(["default",0,a])},264747,e=>{"use strict";var n=e.i(733783),t=e.i(908464),a=e.i(472361),l=e.i(943473),i=e.i(443644),r=e.i(833946),o=e.i(788115),s=e.i(882657),c=e.i(322358),d=e.i(168048),u=e.i(718801),m=e.i(713792),g=e.i(708085),p=e.i(421482),f=e.i(688164),v=e.i(559451),h=e.i(73772),C=e.i(813579),y="Popover",[k,x]=(0,r.createContextScope)(y,[u.createPopperScope]),b=(0,u.createPopperScope)(),[S,_]=k(y),F=e=>{let{__scopePopover:t,children:l,open:i,defaultOpen:r,onOpenChange:o,modal:s=!1}=e,c=b(t),m=a.useRef(null),[g,p]=a.useState(!1),[f,h]=(0,v.useControllableState)({prop:i,defaultProp:r??!1,onChange:o,caller:y});return(0,n.jsx)(u.Root,{...c,children:(0,n.jsx)(S,{scope:t,contentId:(0,d.useId)(),triggerRef:m,open:f,onOpenChange:h,onOpenToggle:a.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:g,onCustomAnchorAdd:a.useCallback(()=>p(!0),[]),onCustomAnchorRemove:a.useCallback(()=>p(!1),[]),modal:s,children:l})})};F.displayName=y;var E="PopoverAnchor";a.forwardRef((e,t)=>{let{__scopePopover:l,...i}=e,r=_(E,l),o=b(l),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=r;return a.useEffect(()=>(s(),()=>c()),[s,c]),(0,n.jsx)(u.Anchor,{...o,...i,ref:t})}).displayName=E;var L="PopoverTrigger",j=a.forwardRef((e,t)=>{let{__scopePopover:a,...r}=e,o=_(L,a),s=b(a),c=(0,i.useComposedRefs)(t,o.triggerRef),d=(0,n.jsx)(p.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":O(o.open),...r,ref:c,onClick:(0,l.composeEventHandlers)(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?d:(0,n.jsx)(u.Anchor,{asChild:!0,...s,children:d})});j.displayName=L;var K="PopoverPortal",[R,N]=k(K,{forceMount:void 0}),w=e=>{let{__scopePopover:t,forceMount:a,children:l,container:i}=e,r=_(K,t);return(0,n.jsx)(R,{scope:t,forceMount:a,children:(0,n.jsx)(g.Presence,{present:a||r.open,children:(0,n.jsx)(m.Portal,{asChild:!0,container:i,children:l})})})};w.displayName=K;var D="PopoverContent",P=a.forwardRef((e,t)=>{let a=N(D,e.__scopePopover),{forceMount:l=a.forceMount,...i}=e,r=_(D,e.__scopePopover);return(0,n.jsx)(g.Presence,{present:l||r.open,children:r.modal?(0,n.jsx)(T,{...i,ref:t}):(0,n.jsx)(A,{...i,ref:t})})});P.displayName=D;var I=(0,f.createSlot)("PopoverContent.RemoveScroll"),T=a.forwardRef((e,t)=>{let r=_(D,e.__scopePopover),o=a.useRef(null),s=(0,i.useComposedRefs)(t,o),c=a.useRef(!1);return a.useEffect(()=>{let e=o.current;if(e)return(0,h.hideOthers)(e)},[]),(0,n.jsx)(C.RemoveScroll,{as:I,allowPinchZoom:!0,children:(0,n.jsx)(z,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,l.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),c.current||r.triggerRef.current?.focus()}),onPointerDownOutside:(0,l.composeEventHandlers)(e.onPointerDownOutside,e=>{let n=e.detail.originalEvent,t=0===n.button&&!0===n.ctrlKey;c.current=2===n.button||t},{checkForDefaultPrevented:!1}),onFocusOutside:(0,l.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),A=a.forwardRef((e,t)=>{let l=_(D,e.__scopePopover),i=a.useRef(!1),r=a.useRef(!1);return(0,n.jsx)(z,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{e.onCloseAutoFocus?.(n),n.defaultPrevented||(i.current||l.triggerRef.current?.focus(),n.preventDefault()),i.current=!1,r.current=!1},onInteractOutside:n=>{e.onInteractOutside?.(n),n.defaultPrevented||(i.current=!0,"pointerdown"===n.detail.originalEvent.type&&(r.current=!0));let t=n.target;l.triggerRef.current?.contains(t)&&n.preventDefault(),"focusin"===n.detail.originalEvent.type&&r.current&&n.preventDefault()}})}),z=a.forwardRef((e,t)=>{let{__scopePopover:a,trapFocus:l,onOpenAutoFocus:i,onCloseAutoFocus:r,disableOutsidePointerEvents:d,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:p,onInteractOutside:f,...v}=e,h=_(D,a),C=b(a);return(0,s.useFocusGuards)(),(0,n.jsx)(c.FocusScope,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:i,onUnmountAutoFocus:r,children:(0,n.jsx)(o.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:f,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:p,onDismiss:()=>h.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,n.jsx)(u.Content,{"data-state":O(h.open),role:"dialog",id:h.contentId,...C,...v,ref:t,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),V="PopoverClose",M=a.forwardRef((e,t)=>{let{__scopePopover:a,...i}=e,r=_(V,a);return(0,n.jsx)(p.Primitive.button,{type:"button",...i,ref:t,onClick:(0,l.composeEventHandlers)(e.onClick,()=>r.onOpenChange(!1))})});function O(e){return e?"open":"closed"}M.displayName=V,a.forwardRef((e,t)=>{let{__scopePopover:a,...l}=e,i=b(a);return(0,n.jsx)(u.Arrow,{...i,...l,ref:t})}).displayName="PopoverArrow";var H=e.i(267989),B=e.i(571613),q=e.i(899272),U=e.i(39491);e.s(["Popover",0,function(e){let a,l,i=(0,t.c)(4);return i[0]!==e?({...a}=e,i[0]=e,i[1]=a):a=i[1],i[2]!==a?(l=(0,n.jsx)(F,{"data-slot":"popover",...a}),i[2]=a,i[3]=l):l=i[3],l},"PopoverClose",0,function(e){let a,l,i=(0,t.c)(3),{onClose:r}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(a=H.fbs._("Close",null,{hk:"BLK3t"}),i[0]=a):a=i[0],i[1]!==r?(l=(0,n.jsx)(M,{"data-slot":"popover-close",asChild:!0,children:(0,n.jsx)(U.IconButton,{icon:B.default,label:a,variant:"elevated",size:"28",onClick:r})}),i[1]=r,i[2]=l):l=i[2],l},"PopoverContent",0,function(e){let a,l,i,r,o,s,c,d=(0,t.c)(14);d[0]!==e?({className:a,align:i,sideOffset:r,alignOffset:o,...l}=e,d[0]=e,d[1]=a,d[2]=l,d[3]=i,d[4]=r,d[5]=o):(a=d[1],l=d[2],i=d[3],r=d[4],o=d[5]);let u=void 0===i?"center":i,m=void 0===r?4:r,g=void 0===o?0:o;return d[6]!==a?(s=(0,q.cn)("bg-fill-blur-thick backdrop-blur-elevation-03 shadow-blur-elevation-03","rounded-32 z-50 w-[400px] p-0 outline-none","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2",a),d[6]=a,d[7]=s):s=d[7],d[8]!==u||d[9]!==g||d[10]!==l||d[11]!==m||d[12]!==s?(c=(0,n.jsx)(w,{children:(0,n.jsx)(P,{"data-slot":"popover-content",align:u,sideOffset:m,alignOffset:g,className:s,...l})}),d[8]=u,d[9]=g,d[10]=l,d[11]=m,d[12]=s,d[13]=c):c=d[13],c},"PopoverFooter",0,function(e){let a,l,i,r=(0,t.c)(6);return r[0]!==e?({className:a,...l}=e,r[0]=e,r[1]=a,r[2]=l):(a=r[1],l=r[2]),r[3]!==a||r[4]!==l?(i=(0,n.jsx)("div",{"data-slot":"popover-footer",className:a,...l}),r[3]=a,r[4]=l,r[5]=i):i=r[5],i},"PopoverHeader",0,function(e){let a,l,i,r,o=(0,t.c)(8);return o[0]!==e?({className:a,...l}=e,o[0]=e,o[1]=a,o[2]=l):(a=o[1],l=o[2]),o[3]!==a?(i=(0,q.cn)("flex items-start justify-between gap-2 ps-6 pe-4 pt-4 pb-2",a),o[3]=a,o[4]=i):i=o[4],o[5]!==l||o[6]!==i?(r=(0,n.jsx)("div",{"data-slot":"popover-header",className:i,...l}),o[5]=l,o[6]=i,o[7]=r):r=o[7],r},"PopoverTitle",0,function(e){let a,l,i,r,o=(0,t.c)(8);return o[0]!==e?({className:a,...l}=e,o[0]=e,o[1]=a,o[2]=l):(a=o[1],l=o[2]),o[3]!==a?(i=(0,q.cn)("text-title-3-emphasized",a),o[3]=a,o[4]=i):i=o[4],o[5]!==l||o[6]!==i?(r=(0,n.jsx)("h2",{"data-slot":"popover-title",className:i,...l}),o[5]=l,o[6]=i,o[7]=r):r=o[7],r},"PopoverTrigger",0,function(e){let a,l,i=(0,t.c)(4);return i[0]!==e?({...a}=e,i[0]=e,i[1]=a):a=i[1],i[2]!==a?(l=(0,n.jsx)(j,{"data-slot":"popover-trigger",...a}),i[2]=a,i[3]=l):l=i[3],l}],264747)},336326,e=>{"use strict";var n=e.i(733783),t=e.i(908464);function a(e){let a,l,i,r,o,s=(0,t.c)(10);s[0]!==e?({size:l,...a}=e,s[0]=e,s[1]=a,s[2]=l):(a=s[1],l=s[2]);let c=void 0===l?32:l;return s[3]!==a.title?(i=null!=a.title&&(0,n.jsx)("title",{children:a.title}),s[3]=a.title,s[4]=i):i=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 3.625a.57.57 0 0 1 .54.389l.556 1.669c1.098.115 2.144.404 3.113.835l1.317-1.167a.568.568 0 0 1 .662-.068l.074.051a.57.57 0 0 1 .199.556l-.355 1.724a10.43 10.43 0 0 1 2.279 2.278l1.726-.353a.57.57 0 0 1 .54.935l-1.17 1.316c.431.969.72 2.015.835 3.113l1.67.557a.57.57 0 0 1 0 1.08l-1.67.556a10.3 10.3 0 0 1-.835 3.113l1.168 1.317a.568.568 0 0 1-.539.935l-1.725-.355a10.427 10.427 0 0 1-2.279 2.279l.355 1.726a.569.569 0 0 1-.2.555l-.073.05a.568.568 0 0 1-.662-.067l-1.317-1.168a10.3 10.3 0 0 1-3.113.835l-.556 1.67a.57.57 0 0 1-1.08 0l-.557-1.67a10.302 10.302 0 0 1-3.113-.835l-1.315 1.168a.57.57 0 0 1-.936-.538l.353-1.726a10.43 10.43 0 0 1-2.278-2.279l-1.724.355a.569.569 0 0 1-.555-.2l-.05-.073a.57.57 0 0 1 .066-.663l1.167-1.316a10.288 10.288 0 0 1-.835-3.113l-1.67-.556a.57.57 0 0 1-.381-.45L3.625 16a.57.57 0 0 1 .389-.54l1.669-.557c.115-1.097.403-2.143.834-3.112L5.35 10.475a.57.57 0 0 1 .539-.936l1.725.353a10.433 10.433 0 0 1 2.278-2.278L9.539 5.89a.57.57 0 0 1 .936-.54l1.315 1.168c.969-.431 2.015-.72 3.113-.835l.557-1.67a.57.57 0 0 1 .54-.388zm3.259 13.25a3.375 3.375 0 0 1-4.131 2.385l-2.663 4.606a8.625 8.625 0 0 0 12.115-6.99l-5.321-.001zM10.95 9.009A8.612 8.612 0 0 0 7.375 16a8.61 8.61 0 0 0 3.576 6.99l2.66-4.605A3.365 3.365 0 0 1 12.625 16c0-.932.377-1.776.987-2.387l-2.66-4.604zM16 14.375a1.625 1.625 0 1 0 0 3.25 1.625 1.625 0 0 0 0-3.25zm0-7c-1.26 0-2.455.272-3.534.757l2.663 4.606a3.381 3.381 0 0 1 4.13 2.387l5.321.001A8.625 8.625 0 0 0 16 7.375z",fill:"currentColor"}),s[5]=r):r=s[5],s[6]!==a||s[7]!==c||s[8]!==i?(o=(0,n.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:c,height:c,...a,children:[i,r]}),s[6]=a,s[7]=c,s[8]=i,s[9]=o):o=s[9],o}a._isSVG=!0,e.s(["default",0,a])},495357,e=>{"use strict";var n=e.i(733783),t=e.i(908464);function a(e){let a,l,i,r,o,s,c=(0,t.c)(11);c[0]!==e?({size:l,...a}=e,c[0]=e,c[1]=a,c[2]=l):(a=c[1],l=c[2]);let d=void 0===l?32:l;return c[3]!==a.title?(i=null!=a.title&&(0,n.jsx)("title",{children:a.title}),c[3]=a.title,c[4]=i):i=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)("path",{d:"M10 20.125a.875.875 0 1 1 0 1.75.875.875 0 0 1 0-1.75zm4 0a.875.875 0 1 1 0 1.75.875.875 0 0 1 0-1.75zm4 0a.875.875 0 1 1 0 1.75.875.875 0 0 1 0-1.75zm-8-4a.875.875 0 1 1 0 1.75.875.875 0 0 1 0-1.75zm4 0a.875.875 0 1 1 0 1.75.875.875 0 0 1 0-1.75zm4 0a.875.875 0 1 1 0 1.75.875.875 0 0 1 0-1.75zm4 0a.875.875 0 1 1 0 1.75.875.875 0 0 1 0-1.75zm-8-4a.875.875 0 1 1 0 1.75.875.875 0 0 1 0-1.75zm4 0a.875.875 0 1 1 0 1.75.875.875 0 0 1 0-1.75zm4 0a.875.875 0 1 1 0 1.75.875.875 0 0 1 0-1.75z",fill:"currentColor"}),o=(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.6 5.125c1.105 0 1.988 0 2.699.058.72.059 1.343.182 1.914.473a4.877 4.877 0 0 1 2.13 2.131c.292.572.416 1.193.474 1.914.059.711.058 1.594.058 2.7V19.6c0 1.105 0 1.988-.058 2.699-.058.72-.182 1.342-.473 1.914a4.877 4.877 0 0 1-2.131 2.13c-.572.292-1.193.416-1.914.474-.711.058-1.594.058-2.7.058H11.4c-.829 0-1.532 0-2.132-.024a13.939 13.939 0 0 1-.832-.059c-.523-.058-.993-.159-1.432-.347a3.649 3.649 0 0 1-.387-.192 4.877 4.877 0 0 1-2.062-2.257c-.188-.439-.29-.909-.347-1.431a13.918 13.918 0 0 1-.059-.832 55.82 55.82 0 0 1-.024-2.133v-7.2c0-1.105 0-1.988.058-2.699.059-.72.182-1.342.473-1.914a4.877 4.877 0 0 1 2.131-2.13c.572-.292 1.193-.415 1.914-.474.711-.058 1.594-.058 2.7-.058H20.6zm-9.2 3.75c-1.134 0-1.933 0-2.556.052-.613.05-.979.144-1.263.289-.588.3-1.065.777-1.365 1.365-.145.284-.239.65-.29 1.263-.05.623-.05 1.422-.05 2.556v5.2c0 1.134 0 1.933.05 2.556.051.613.145.98.29 1.263.3.588.777 1.066 1.365 1.365.284.145.65.24 1.263.29.623.05 1.422.051 2.556.051h9.2c1.134 0 1.933 0 2.556-.052.613-.05.98-.144 1.263-.289a3.125 3.125 0 0 0 1.365-1.365c.145-.284.24-.65.29-1.263.05-.623.051-1.422.051-2.556v-5.2c0-1.134 0-1.933-.052-2.556-.05-.613-.144-.98-.289-1.263a3.125 3.125 0 0 0-1.365-1.365c-.284-.145-.65-.24-1.263-.29-.623-.05-1.422-.051-2.556-.051h-9.2z",fill:"currentColor"}),c[5]=r,c[6]=o):(r=c[5],o=c[6]),c[7]!==a||c[8]!==d||c[9]!==i?(s=(0,n.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:d,height:d,...a,children:[i,r,o]}),c[7]=a,c[8]=d,c[9]=i,c[10]=s):s=c[10],s}a._isSVG=!0,e.s(["default",0,a])},44949,e=>{"use strict";var n=e.i(733783),t=e.i(472361),a=e.i(840387),l=e.i(314516),i=e.i(898097),r=e.i(932281),o=e.i(318800),s=e.i(211376),c=e.i(442869),d=e.i(267989),u=e.i(954405),m=e.i(377423);let g=(0,a.createClientLogger)("EctoErrorBoundary");class p extends t.default.Component{constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,n){this.setState({error:e,errorInfo:n}),this.props.onError&&this.props.onError(e,n),u.initialLoadSingleton.isInitialLoadCompleted()||(u.initialLoadSingleton.setAnnotation("error_message",e.message),u.initialLoadSingleton.failInitialLoad()),u.navigationSingleton.hasActiveNavigation()&&(u.navigationSingleton.setAnnotation("error_message",e.message),u.navigationSingleton.failNavigation()),(0,m.flushLogEvents)(),g.error({error:e,componentStack:n.componentStack},"ErrorBoundary caught an error")}handleReset=()=>{this.setState({hasError:!1,error:null,errorInfo:null})};render(){return this.state.hasError?void 0!==this.props.fallback?this.props.fallback:(0,n.jsx)(o.Card,{className:"m-4 p-6",children:(0,n.jsxs)(l.Flexbox,{direction:"column",gap:4,alignItems:"center",children:[(0,n.jsx)(s.default,{className:"text-text-error h-12 w-12"}),(0,n.jsxs)(l.Flexbox,{direction:"column",gap:2,alignItems:"center",children:[(0,n.jsx)(i.Text,{variant:"title-3",children:d.fbs._("Something went wrong",null,{hk:"3uAnvg"})}),(0,n.jsx)(i.Text,{variant:"body",color:"secondary",className:"text-center",children:d.fbs._("An unexpected error occurred. Please try again.",null,{hk:"4snhli"})})]}),this.props.showDetails&&this.state.error&&(0,n.jsx)(o.Card,{className:"bg-bg-secondary w-full p-4",children:(0,n.jsxs)(l.Flexbox,{direction:"column",gap:2,children:[(0,n.jsx)(i.Text,{variant:"footnote-emphasized",children:d.fbs._("Error Details:",null,{hk:"4sY5xP"})}),(0,n.jsx)(i.Text,{variant:"footnote",className:"text-text-error font-mono",children:this.state.error.toString()}),this.state.errorInfo&&(0,n.jsxs)("details",{className:"mt-2",children:[(0,n.jsx)("summary",{className:"text-text-secondary text-subheadline cursor-pointer",children:d.fbs._("Stack Trace",null,{hk:"1RK6YO"})}),(0,n.jsx)("pre",{className:"text-text-tertiary text-caption-1 mt-2 max-h-48 overflow-auto",children:this.state.errorInfo.componentStack})]})]})}),(0,n.jsx)(r.Button,{label:d.fbs._("Try Again",null,{hk:"3CUeL6"}),variant:"primary",size:"36",leadingIcon:c.default,onClick:this.handleReset})]})}):this.props.children}}e.s(["EctoErrorBoundary",0,p])},124538,e=>{"use strict";var n=e.i(733783),t=e.i(908464),a=e.i(213434),l=e.i(932281),i=e.i(314516),r=e.i(898097),o=e.i(267989),s=e.i(369846);function c(e){let s,c,u,m,g,p,f,v,h,C,y=(0,t.c)(34),{isOpen:k,onClose:x,onConfirm:b,isLoading:S,title:_,description:F,confirmButtonLabel:E,modal:L,stackButtons:j,contentRef:K}=e,R=void 0===L||L,N=void 0!==j&&j;y[0]!==b?(s=()=>{b()},y[0]=b,y[1]=s):s=y[1];let w=s,D=N?"w-full":"flex-1";y[2]===Symbol.for("react.memo_cache_sentinel")?(c=o.fbs._("Cancel",null,{hk:"3XBZdP"}),y[2]=c):c=y[2],y[3]!==D||y[4]!==S||y[5]!==x?(u=(0,n.jsx)(l.Button,{label:c,variant:"flat",size:"36",onClick:x,disabled:S,className:D}),y[3]=D,y[4]=S,y[5]=x,y[6]=u):u=y[6];let P=u,I=S?d:void 0;y[7]!==D||y[8]!==E||y[9]!==w||y[10]!==S||y[11]!==I?(m=(0,n.jsx)(l.Button,{label:E,variant:"destructive",size:"36",onClick:w,disabled:S,leadingIcon:I,className:D}),y[7]=D,y[8]=E,y[9]=w,y[10]=S,y[11]=I,y[12]=m):m=y[12];let T=m;y[13]!==_?(g=(0,n.jsx)(a.DialogHeader,{children:(0,n.jsx)(a.DialogTitle,{children:_})}),y[13]=_,y[14]=g):g=y[14],y[15]!==F?(p=(0,n.jsx)(r.Text,{variant:"subheadline",color:"secondary",children:F}),y[15]=F,y[16]=p):p=y[16];let A=N?"column":"row";return y[17]!==P||y[18]!==T||y[19]!==N?(f=N?(0,n.jsxs)(n.Fragment,{children:[T,P]}):(0,n.jsxs)(n.Fragment,{children:[P,T]}),y[17]=P,y[18]=T,y[19]=N,y[20]=f):f=y[20],y[21]!==A||y[22]!==f?(v=(0,n.jsx)(i.Flexbox,{direction:A,gap:2,className:"mt-6 w-full",children:f}),y[21]=A,y[22]=f,y[23]=v):v=y[23],y[24]!==K||y[25]!==v||y[26]!==g||y[27]!==p?(h=(0,n.jsxs)(a.DialogContent,{ref:K,header:g,children:[p,v]}),y[24]=K,y[25]=v,y[26]=g,y[27]=p,y[28]=h):h=y[28],y[29]!==k||y[30]!==R||y[31]!==x||y[32]!==h?(C=(0,n.jsx)(a.Dialog,{open:k,onOpenChange:x,modal:R,children:h}),y[29]=k,y[30]=R,y[31]=x,y[32]=h,y[33]=C):C=y[33],C}function d(e){return(0,n.jsx)(s.default,{...e,className:"animate-spin"})}e.s(["EctoDeleteConfirmationDialog",0,c,"default",0,c])},673715,e=>{"use strict";var n=e.i(733783),t=e.i(908464);function a(e){let a,l,i,r,o,s=(0,t.c)(10);s[0]!==e?({size:l,...a}=e,s[0]=e,s[1]=a,s[2]=l):(a=s[1],l=s[2]);let c=void 0===l?32:l;return s[3]!==a.title?(i=null!=a.title&&(0,n.jsx)("title",{children:a.title}),s[3]=a.title,s[4]=i):i=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 29.803a.808.808 0 0 0 .808-.803l.004-.45.057-7.675h6.669c.738 0 1.337-.599 1.337-1.337a6.49 6.49 0 0 0-.038-.686 6.416 6.416 0 0 0-.154-.872l-.017-.067a6.165 6.165 0 0 0-.17-.548l-.03-.078a6.392 6.392 0 0 0-.07-.183l-.04-.096-.06-.132c-.02-.043-.038-.085-.059-.127a6.471 6.471 0 0 0-.259-.479l-.056-.094a6.978 6.978 0 0 0-.294-.435l-.087-.114-.055-.072a6.43 6.43 0 0 0-2.523-1.923l-.248-3.236c-.011-.14.035-.318.2-.555.17-.242.422-.485.717-.725A3.37 3.37 0 0 0 22.875 6.5V6c0-1.036-.84-1.875-1.875-1.875H11c-1.036 0-1.875.84-1.875 1.875v.5a3.37 3.37 0 0 0 1.243 2.616c.294.24.546.482.715.724.166.237.212.415.201.556l-.25 3.238a6.431 6.431 0 0 0-2.607 2.033l-.032.042c-.08.108-.159.218-.233.332l-.117.187-.015.026a6.767 6.767 0 0 0-.14.249l-.055.102c-.077.15-.149.302-.214.458l-.05.125a6.35 6.35 0 0 0-.243.747c-.01.039-.02.078-.028.117a6.344 6.344 0 0 0-.046.207l-.007.03a6.393 6.393 0 0 0-.11.879l-.003.04-.001.022-.002.04-.006.268c0 .738.599 1.337 1.337 1.337h6.669l.056 7.675.004.45a.81.81 0 0 0 .809.803zm3.173-16.637a6.492 6.492 0 0 0-.711-.041h-4.924a6.71 6.71 0 0 0-.713.04l.203-2.634c.052-.676-.202-1.252-.51-1.693-.306-.437-.703-.8-1.045-1.077a1.621 1.621 0 0 1-.598-1.261V6l.01-.049A.125.125 0 0 1 11 5.875h10c.052 0 .096.031.115.076l.01.049v.5c0 .508-.232.961-.599 1.26-.34.279-.738.64-1.044 1.077-.308.441-.563 1.017-.511 1.694l.202 2.635zm-10.28 5.959a4.666 4.666 0 0 1 2.888-3.906l.337-.122a4.66 4.66 0 0 1 1.42-.222h4.924a4.672 4.672 0 0 1 4.637 4.194c.001.019.005.037.006.056H8.893z",fill:"currentColor"}),s[5]=r):r=s[5],s[6]!==a||s[7]!==c||s[8]!==i?(o=(0,n.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:c,height:c,...a,children:[i,r]}),s[6]=a,s[7]=c,s[8]=i,s[9]=o):o=s[9],o}a._isSVG=!0,e.s(["default",0,a])},488909,e=>{"use strict";var n,t;let a={fragment:{argumentDefinitions:n=[{defaultValue:null,kind:"LocalArgument",name:"input"}],kind:"Fragment",metadata:null,name:"useEctoRenameConversationMutation",selections:t=[{alias:null,args:[{kind:"Variable",name:"input",variableName:"input"}],concreteType:null,kind:"LinkedField",name:"renameConversation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Conversation",kind:"LinkedField",name:"conversation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"updatedAt",storageKey:null}],storageKey:null}],type:"ConversationRenamed",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],type:"GqlError",abstractKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"useEctoRenameConversationMutation",selections:t},params:{id:"2775bdbd0886fb2056fae9c68d323368",metadata:{},name:"useEctoRenameConversationMutation",operationKind:"mutation",text:null}};a.hash="aacc22aee4af00698aeac26dc323c939",e.s(["default",0,a])},831825,e=>{"use strict";var n=e.i(908464),t=e.i(235338);e.i(315433);var a=e.i(516266);e.s(["useEctoRenameConversation",0,function(){let l,i,r,o=(0,n.c)(6);o[0]===Symbol.for("react.memo_cache_sentinel")?(l=e.r(488909),o[0]=l):l=o[0];let[s,c]=(0,t.useMutation)(l);o[1]!==s?(i=e=>{let{conversationId:n,newTitle:t,onCompleted:l,onError:i}=e;s({variables:{input:{id:n,title:t}},optimisticResponse:{renameConversation:{__typename:"ConversationRenamed",conversation:{id:n,title:t,displayTitle:t,updatedAt:new Date().toISOString()}}},onCompleted:e=>{let n=e.renameConversation;if(!n){(0,a.toast)("Failed to rename conversation"),i?.(Error("No response from server"));return}"ConversationRenamed"===n.__typename?l?.():"GqlError"===n.__typename&&((0,a.toast)(n.message??"Failed to rename conversation"),i?.(Error(n.message??"Failed to rename conversation")))},onError:e=>{(0,a.toast)("Failed to rename conversation"),i?.(e)}})},o[1]=s,o[2]=i):i=o[2];let d=i;return o[3]!==c||o[4]!==d?(r={renameConversation:d,isRenaming:c},o[3]=c,o[4]=d,o[5]=r):r=o[5],r}])},198093,e=>{"use strict";var n=e.i(733783),t=e.i(908464);function a(e){let a,l,i,r,o,s,c=(0,t.c)(11);c[0]!==e?({size:l,...a}=e,c[0]=e,c[1]=a,c[2]=l):(a=c[1],l=c[2]);let d=void 0===l?32:l;return c[3]!==a.title?(i=null!=a.title&&(0,n.jsx)("title",{children:a.title}),c[3]=a.title,c[4]=i):i=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)("path",{d:"M13.063 13.077a1.25 1.25 0 0 1 1.874-1.082L20 14.917a1.25 1.25 0 0 1 0 2.166l-5.063 2.922a1.25 1.25 0 0 1-1.874-1.082v-5.846z",fill:"currentColor"}),o=(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 5.125c6.006 0 10.875 4.869 10.875 10.875S22.006 26.875 16 26.875 5.125 22.006 5.125 16 9.994 5.125 16 5.125zm0 1.75a9.125 9.125 0 1 0 0 18.25 9.125 9.125 0 0 0 0-18.25z",fill:"currentColor"}),c[5]=r,c[6]=o):(r=c[5],o=c[6]),c[7]!==a||c[8]!==d||c[9]!==i?(s=(0,n.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:d,height:d,...a,children:[i,r,o]}),c[7]=a,c[8]=d,c[9]=i,c[10]=s):s=c[10],s}a._isSVG=!0,e.s(["default",0,a])},153485,e=>{"use strict";var n=e.i(733783),t=e.i(908464);function a(e){let a,l,i,r,o,s,c=(0,t.c)(11);c[0]!==e?({size:l,...a}=e,c[0]=e,c[1]=a,c[2]=l):(a=c[1],l=c[2]);let d=void 0===l?32:l;return c[3]!==a.title?(i=null!=a.title&&(0,n.jsx)("title",{children:a.title}),c[3]=a.title,c[4]=i):i=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)("rect",{x:"24.5",y:"5",width:"22",height:"17",rx:"4",transform:"rotate(90 24.5 5)",stroke:"currentColor",strokeWidth:"1.75"}),o=(0,n.jsx)("path",{d:"M18.9869 15.1327C19.657 15.5169 19.657 16.4835 18.9869 16.8677L14.4974 19.4417C13.8307 19.8239 13 19.3426 13 18.5742V13.4262C13 12.6578 13.8307 12.1765 14.4974 12.5587L18.9869 15.1327Z",fill:"currentColor"}),c[5]=r,c[6]=o):(r=c[5],o=c[6]),c[7]!==a||c[8]!==d||c[9]!==i?(s=(0,n.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:d,height:d,...a,children:[i,r,o]}),c[7]=a,c[8]=d,c[9]=i,c[10]=s):s=c[10],s}a._isSVG=!0,e.s(["default",0,a])},282321,689092,e=>{"use strict";var n=e.i(908464),t=e.i(472361),a=e.i(827942);let l=()=>()=>{};function i(){return!1}e.s(["useIsMacOS",0,function(){let e,r=(0,n.c)(2),o=(0,a.useUserAgent)();r[0]!==o?.os.name?(e=()=>{var e,n,t;return e=navigator.platform,n=navigator.maxTouchPoints,t=o?.os.name,(e||t||"").toLowerCase().startsWith("mac")&&!("MacIntel"===e&&n>1)},r[0]=o?.os.name,r[1]=e):e=r[1],o?.os.name;let s=e;return(0,t.useSyncExternalStore)(l,s,i)}],282321),e.s(["MACOS_DOWNLOAD_CLICK_EVENT",0,"download_meta_ai_mac","MACOS_DOWNLOAD_UPSELL_DISMISS_EVENT",0,"download_meta_ai_mac_upsell_dismiss","MACOS_DOWNLOAD_UPSELL_IMPRESSION_EVENT",0,"download_meta_ai_mac_upsell"],689092)},530275,e=>{"use strict";var n=e.i(733783),t=e.i(908464);function a(e){let a,l,i,r,o,s=(0,t.c)(10);s[0]!==e?({size:l,...a}=e,s[0]=e,s[1]=a,s[2]=l):(a=s[1],l=s[2]);let c=void 0===l?32:l;return s[3]!==a.title?(i=null!=a.title&&(0,n.jsx)("title",{children:a.title}),s[3]=a.title,s[4]=i):i=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{d:"M10.25 17C12.8734 17 15 19.1266 15 21.75C15 24.3734 12.8734 26.5 10.25 26.5C7.62665 26.5 5.5 24.3734 5.5 21.75C5.5 19.1266 7.62665 17 10.25 17ZM10.25 19C8.73122 19 7.5 20.2312 7.5 21.75C7.5 23.2688 8.73122 24.5 10.25 24.5C11.7688 24.5 13 23.2688 13 21.75C13 20.2312 11.7688 19 10.25 19Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M21.75 17C24.3734 17 26.5 19.1266 26.5 21.75C26.5 24.3734 24.3734 26.5 21.75 26.5C19.1266 26.5 17 24.3734 17 21.75C17 19.1266 19.1266 17 21.75 17ZM21.75 19C20.2312 19 19 20.2312 19 21.75C19 23.2688 20.2312 24.5 21.75 24.5C23.2688 24.5 24.5 23.2688 24.5 21.75C24.5 20.2312 23.2688 19 21.75 19Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M10.25 5.5C12.8734 5.5 15 7.62665 15 10.25C15 12.8734 12.8734 15 10.25 15C7.62665 15 5.5 12.8734 5.5 10.25C5.5 7.62665 7.62665 5.5 10.25 5.5ZM10.25 7.5C8.73122 7.5 7.5 8.73122 7.5 10.25C7.5 11.7688 8.73122 13 10.25 13C11.7688 13 13 11.7688 13 10.25C13 8.73122 11.7688 7.5 10.25 7.5Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M21.75 5.5C24.3734 5.5 26.5 7.62665 26.5 10.25C26.5 12.8734 24.3734 15 21.75 15C19.1266 15 17 12.8734 17 10.25C17 7.62665 19.1266 5.5 21.75 5.5ZM21.75 7.5C20.2312 7.5 19 8.73122 19 10.25C19 11.7688 20.2312 13 21.75 13C23.2688 13 24.5 11.7688 24.5 10.25C24.5 8.73122 23.2688 7.5 21.75 7.5Z",fill:"currentColor"})]}),s[5]=r):r=s[5],s[6]!==a||s[7]!==c||s[8]!==i?(o=(0,n.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:c,height:c,...a,children:[i,r]}),s[6]=a,s[7]=c,s[8]=i,s[9]=o):o=s[9],o}a._isSVG=!0,e.s(["default",0,a])},152347,e=>{"use strict";var n=e.i(908464),t=e.i(267989),a=e.i(93398),l=e.i(549186);function i(e,n){let a=function(e){if(/^\d{4}-\d{2}-\d{2}$/.test(e)){let n=e.split("-");return new Date(Number(n[0]),Number(n[1])-1,Number(n[2]))}return new Date(e)}(n);if(isNaN(a.getTime()))return;let l=new Date,i=new Date(l.getFullYear(),l.getMonth(),l.getDate()),r=new Date(i);r.setDate(r.getDate()-1);let o=new Date(a.getFullYear(),a.getMonth(),a.getDate());return o.getTime()===i.getTime()?t.fbs._("Today",null,{hk:"4oYaZm"}):o.getTime()===r.getTime()?t.fbs._("Yesterday",null,{hk:"uTslX"}):a.getFullYear()===l.getFullYear()?a.toLocaleDateString(e,{weekday:"short",month:"short",day:"numeric"}):a.toLocaleDateString(e,{month:"short",day:"numeric",year:"numeric"})}e.s(["formatDateTooltip",0,i,"useDateTooltip",0,function(e){let t,r=(0,n.c)(3),{locale:o}=(0,a.useEctoLocale)();if((0,l.useIsClient)()&&e)return r[0]!==e||r[1]!==o?(t=i(o,e),r[0]=e,r[1]=o,r[2]=t):t=r[2],t}])},25244,e=>{"use strict";var n=e.i(733783),t=e.i(908464);function a(e){let a,l,i,r,o,s=(0,t.c)(10);s[0]!==e?({size:l,...a}=e,s[0]=e,s[1]=a,s[2]=l):(a=s[1],l=s[2]);let c=void 0===l?32:l;return s[3]!==a.title?(i=null!=a.title&&(0,n.jsx)("title",{children:a.title}),s[3]=a.title,s[4]=i):i=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{d:"M22.4956 12.6025C22.4443 13.1066 22.0181 13.4999 21.5005 13.5C20.9828 13.5 20.5567 13.1067 20.5054 12.6025L20.5005 12.5V11.2998C20.5005 10.4434 20.5001 9.86117 20.4634 9.41113C20.4365 9.08257 20.3929 8.87418 20.3394 8.72461L20.2827 8.5918C20.115 8.26262 19.8596 7.98706 19.5464 7.79492L19.4087 7.71778C19.2523 7.6381 19.0276 7.57294 18.5894 7.53711C18.1394 7.50035 17.557 7.5 16.7007 7.5H13.3003C12.444 7.5 11.8616 7.50037 11.4116 7.53711C10.9734 7.57292 10.7487 7.63813 10.5923 7.71778L10.4546 7.79492C10.1414 7.98705 9.88604 8.26261 9.71826 8.5918L9.66162 8.72461C9.60811 8.87418 9.56445 9.08255 9.5376 9.41113C9.50084 9.86117 9.50049 10.4434 9.50049 11.2998L9.50049 20.7002C9.50049 21.5566 9.50084 22.1388 9.5376 22.5889C9.57342 23.0273 9.63857 23.2518 9.71826 23.4082L9.79541 23.5459C9.98755 23.8591 10.2631 24.1145 10.5923 24.2822L10.7251 24.3389C10.8747 24.3923 11.0832 24.4361 11.4116 24.4629C11.8616 24.4996 12.444 24.5 13.3003 24.5H16.7007C17.557 24.5 18.1394 24.4996 18.5894 24.4629C18.9178 24.436 19.1263 24.3924 19.2759 24.3389L19.4087 24.2822C19.7378 24.1145 20.0135 23.8591 20.2056 23.5459L20.2827 23.4082C20.3624 23.2518 20.4276 23.0272 20.4634 22.5889C20.5001 22.1388 20.5005 21.5566 20.5005 20.7002V19.5C20.5005 18.9477 20.9482 18.5 21.5005 18.5C22.0527 18.5001 22.5005 18.9478 22.5005 19.5V20.7002C22.5005 21.5237 22.5015 22.2016 22.4565 22.752C22.4106 23.314 22.3122 23.8311 22.0649 24.3164L21.9106 24.5918C21.5264 25.2182 20.9753 25.7289 20.3169 26.0645L20.1333 26.1504C19.7016 26.3356 19.2442 26.4159 18.7524 26.4561C18.2021 26.501 17.5241 26.5 16.7007 26.5H13.3003C12.4769 26.5 11.7989 26.501 11.2485 26.4561C10.7568 26.4159 10.2994 26.3355 9.86768 26.1504L9.68408 26.0645C9.02564 25.7289 8.47462 25.2183 8.09033 24.5918L7.93604 24.3164C7.68876 23.8311 7.59036 23.314 7.54444 22.752C7.49947 22.2016 7.50049 21.5237 7.50049 20.7002L7.50049 11.2998C7.50049 10.4763 7.49947 9.79842 7.54444 9.24805C7.58463 8.75621 7.66491 8.29891 7.8501 7.86719L7.93604 7.6836C8.27159 7.02517 8.78222 6.47412 9.40869 6.08985L9.68408 5.93555C10.1693 5.68834 10.6866 5.58987 11.2485 5.54395C11.7989 5.499 12.4769 5.5 13.3003 5.5L16.7007 5.5C17.5241 5.5 18.2021 5.49898 18.7524 5.54395C19.3144 5.58988 19.8317 5.68831 20.3169 5.93555L20.5923 6.08985C21.2187 6.47413 21.7294 7.02518 22.0649 7.6836L22.1509 7.86719C22.3361 8.2989 22.4164 8.75623 22.4565 9.24805C22.5015 9.79842 22.5005 10.4763 22.5005 11.2998V12.5L22.4956 12.6025Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M29.73 15.374C30.0445 15.7649 30.0221 16.3372 29.6626 16.7022L26.2124 20.2022L26.1372 20.2715C25.7468 20.5944 25.167 20.5751 24.7983 20.2119C24.4298 19.8484 24.4026 19.269 24.7202 18.874L24.7886 18.7979L26.561 17L15.0005 17C14.4483 16.9999 14.0005 16.5522 14.0005 16C14.0005 15.4478 14.4483 15.0001 15.0005 15L26.561 15L24.7886 13.2022C24.401 12.8089 24.4053 12.1758 24.7983 11.7881C25.1916 11.4007 25.8247 11.4049 26.2124 11.7979L29.6626 15.2979L29.73 15.374Z",fill:"currentColor"})]}),s[5]=r):r=s[5],s[6]!==a||s[7]!==c||s[8]!==i?(o=(0,n.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:c,height:c,...a,children:[i,r]}),s[6]=a,s[7]=c,s[8]=i,s[9]=o):o=s[9],o}a._isSVG=!0,e.s(["default",0,a])},408669,e=>{"use strict";var n,t;let a={fragment:{argumentDefinitions:n=[{defaultValue:null,kind:"LocalArgument",name:"input"}],kind:"Fragment",metadata:null,name:"useEctoDeleteConversationMutation",selections:t=[{alias:null,args:[{kind:"Variable",name:"input",variableName:"input"}],concreteType:null,kind:"LinkedField",name:"deleteConversation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],type:"ConversationDeleted",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],type:"GqlError",abstractKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"useEctoDeleteConversationMutation",selections:t},params:{id:"ad35bda8475e29ba4264ef0d6cc0958a",metadata:{},name:"useEctoDeleteConversationMutation",operationKind:"mutation",text:null}};a.hash="5b61db5c35d9c2e241ae0db1a9652455",e.s(["default",0,a])},761588,e=>{"use strict";var n=e.i(908464),t=e.i(235338),a=e.i(472361),l=e.i(527357),i=e.i(20474);e.i(315433);var r=e.i(516266),o=e.i(267989),s=e.i(425280),c=e.i(925261),d=e.i(851200),u=e.i(590004);let m=(e,n)=>{let a=e.get(n),l=a?.getDataID()??n,i=e.getRoot(),r=t.ConnectionHandler.getConnectionID(i.getDataID(),"EctoPinnedConversationsRouter_pinnedConversations",{pinned:!0}),o=t.ConnectionHandler.getConnectionID(i.getDataID(),"EctoUnpinnedConversationsRouter_unpinnedConversations",{pinned:!1}),s=r?e.get(r):null,c=o?e.get(o):null;s&&t.ConnectionHandler.deleteNode(s,l),c&&t.ConnectionHandler.deleteNode(c,l),((e,n)=>{let a=e.getRoot();for(let l of[{searchQuery:null,filter:null,shape:"v2"},{searchQuery:null,filter:"favorites",shape:"v2"}]){let i=t.ConnectionHandler.getConnectionID(a.getDataID(),"mediaLibraryFeedFragment_mediaLibraryFeed",l),r=i?e.get(i):null;if(!r)continue;let o=r.getLinkedRecords("edges");if(o)for(let a of o){if(!a)continue;let l=a.getLinkedRecord("node");if(!l)continue;let i=[...l.getLinkedRecords("images")??[],...l.getLinkedRecords("videos")??[]];if(i.some(e=>{if(!e)return!1;let t=e.getLinkedRecord("conversation");return t?.getDataID()===n})){for(let n of i)n&&(e.delete(`${n.getDataID()}:$r:resolvedConversationId`),e.delete(n.getDataID()));t.ConnectionHandler.deleteNode(r,l.getDataID()),e.delete(l.getDataID())}}}})(e,n),e.delete(n)};e.s(["useEctoDeleteConversation",0,function(){let g,p,f,v=(0,n.c)(12),{navigate:h}=(0,l.useNavigate)(),C=(0,i.useParams)(),y=C?.id,{startInteraction:k,completeInteraction:x,failInteraction:b,noteFailureCause:S}=(0,a.useContext)(s.default);v[0]===Symbol.for("react.memo_cache_sentinel")?(g=e.r(408669),v[0]=g):g=v[0];let[_,F]=(0,t.useMutation)(g);v[1]!==_||v[2]!==x||v[3]!==y||v[4]!==b||v[5]!==h||v[6]!==S||v[7]!==k?(p=e=>{let{conversationId:n,onCompleted:t,onError:a}=e,l=k(c.EctoInteractionTracePolicy.CONVERSATION_DELETE);d.pendingStore.remove(n),y===n&&h("/"),_({variables:{input:{id:n}},optimisticUpdater:e=>{m(e,n)},updater:e=>{m(e,n)},onCompleted:e=>{let n=e.deleteConversation;if(!n){r.toast.error(o.fbs._("Failed to delete chat",null,{hk:"44bXLf"})),S(l,"server_error"),b(l,void 0,0),a?.(Error("No response from server"));return}if("ConversationDeleted"===n.__typename)r.toast.success(o.fbs._("Chat deleted",null,{hk:"i0QAb"})),x(l,0),t?.();else if("GqlError"===n.__typename){let e;r.toast.error(o.fbs._("Failed to delete chat",null,{hk:"44bXLf"}),{description:n.message??void 0}),S(l,(e=(n.message??"").toLowerCase()).includes("not found")||e.includes("permission")?"not_found":e.includes("logged in")?"auth_expired":"unknown"),b(l,void 0,0),a?.(Error(n.message??"Failed to delete conversation"))}},onError:e=>{r.toast.error(o.fbs._("Failed to delete chat",null,{hk:"44bXLf"})),S(l,(0,u.classifyFailureCause)(e)),b(l,void 0,0),a?.(e)}})},v[1]=_,v[2]=x,v[3]=y,v[4]=b,v[5]=h,v[6]=S,v[7]=k,v[8]=p):p=v[8];let E=p;return v[9]!==E||v[10]!==F?(f={deleteConversation:E,isDeleting:F},v[9]=E,v[10]=F,v[11]=f):f=v[11],f}],761588)},651359,e=>{"use strict";var n=e.i(733783),t=e.i(908464);function a(e){let a,l,i,r,o=(0,t.c)(9);return o[0]!==e.title?(a=null!=e.title&&(0,n.jsx)("title",{children:e.title}),o[0]=e.title,o[1]=a):a=o[1],o[2]!==e.children?(l=null!=e.children&&(0,n.jsx)("defs",{children:e.children}),o[2]=e.children,o[3]=l):l=o[3],o[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m9.232 15.682 2.829 2.828a1 1 0 0 0 1.414-1.414l-.707-.707 4.243-4.243 3-1.285c1.057-.454 1.505-1.7.88-2.666-.612-.947-1.46-2.113-2.466-3.12-1.007-1.006-2.172-1.853-3.12-2.466-.966-.625-2.212-.177-2.665.88l-1.286 3-4.243 4.243-.707-.707A1 1 0 0 0 4.99 11.44l2.828 2.829-4.242 4.242a1 1 0 1 0 1.414 1.415l4.242-4.243zm6.364-4.95c.18-.18.393-.324.627-.424l2.86-1.225c-.555-.837-1.267-1.788-2.072-2.593-.806-.806-1.757-1.518-2.594-2.072l-1.225 2.86a2 2 0 0 1-.424.626l-4.243 4.242 2.829 2.829 4.242-4.243z"}),o[4]=i):i=o[4],o[5]!==e||o[6]!==a||o[7]!==l?(r=(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em",...e,children:[a,l,i]}),o[5]=e,o[6]=a,o[7]=l,o[8]=r):r=o[8],r}a._isSVG=!0,e.s(["default",0,a])},96006,e=>{"use strict";var n=e.i(733783),t=e.i(908464);function a(e){let a,l,i,r,o,s=(0,t.c)(10);return s[0]!==e.title?(a=null!=e.title&&(0,n.jsx)("title",{children:e.title}),s[0]=e.title,s[1]=a):a=s[1],s[2]!==e.children?(l=null!=e.children&&(0,n.jsx)("defs",{children:e.children}),s[2]=e.children,s[3]=l):l=s[3],s[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.707 2.293a1 1 0 0 0-1.414 1.414l18 18a1 1 0 0 0 1.414-1.414l-6.422-6.422 1.726-1.726 3-1.285c1.058-.454 1.505-1.7.88-2.666-.612-.947-1.46-2.113-2.466-3.12-1.007-1.006-2.172-1.853-3.12-2.466-.966-.625-2.212-.177-2.665.88l-1.286 3-1.726 1.726-5.92-5.921zm7.336 7.335 2.828 2.829 1.725-1.726a2 2 0 0 1 .627-.424l2.86-1.225c-.555-.837-1.266-1.788-2.072-2.593-.806-.806-1.757-1.518-2.593-2.072l-1.226 2.86c-.1.233-.244.446-.424.626l-1.726 1.725z"}),r=(0,n.jsx)("path",{d:"M4.99 10.024a.998.998 0 0 1 .836-.284l7.934 7.934a1 1 0 0 1-1.699.836L9.232 15.68 4.99 19.924a1 1 0 0 1-1.414-1.415l4.242-4.242-2.828-2.829a1 1 0 0 1 0-1.414z"}),s[4]=i,s[5]=r):(i=s[4],r=s[5]),s[6]!==e||s[7]!==a||s[8]!==l?(o=(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em",...e,children:[a,l,i,r]}),s[6]=e,s[7]=a,s[8]=l,s[9]=o):o=s[9],o}a._isSVG=!0,e.s(["default",0,a])},956528,e=>{"use strict";var n,t;let a={fragment:{argumentDefinitions:n=[{defaultValue:null,kind:"LocalArgument",name:"input"}],kind:"Fragment",metadata:null,name:"useEctoPinConversationMutation",selections:t=[{alias:null,args:[{kind:"Variable",name:"input",variableName:"input"}],concreteType:null,kind:"LinkedField",name:"pinConversation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Conversation",kind:"LinkedField",name:"conversation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pinned",storageKey:null}],storageKey:null}],type:"ConversationPinned",abstractKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"useEctoPinConversationMutation",selections:t},params:{id:"ee1968033ea19d57f428774cf65b0b5d",metadata:{},name:"useEctoPinConversationMutation",operationKind:"mutation",text:null}};a.hash="610d57169bf1ed3dd0cf7e43bf894a03",e.s(["default",0,a])},211141,e=>{"use strict";var n=e.i(908464),t=e.i(235338);e.i(315433);var a=e.i(516266),l=e.i(651359),i=e.i(96006),r=e.i(267989),o=e.i(472361);let s=(0,e.i(840387).createClientLogger)("useEctoPinConversation"),c=(e,{conversationId:n,pinned:a})=>{let l=e.get(n);if(!l)return;l.setValue(a,"pinned");let i=l.getDataID(),r=e.getRoot(),o=t.ConnectionHandler.getConnectionID(r.getDataID(),"EctoPinnedConversationsRouter_pinnedConversations",{pinned:!0}),s=t.ConnectionHandler.getConnectionID(r.getDataID(),"EctoUnpinnedConversationsRouter_unpinnedConversations",{pinned:!1}),c=o?e.get(o):null,d=s?e.get(s):null,u=a?d:c,m=a?c:d;if(u&&t.ConnectionHandler.deleteNode(u,i),m){let n=m.getLinkedRecords("edges")??[];if(!n.some(e=>e?.getLinkedRecord("node")?.getDataID()===i)){let a=l.getValue("updatedAt"),i="string"==typeof a?new Date(a).getTime():NaN,r=t.ConnectionHandler.createEdge(e,m,l,"ConversationEdge"),o=n.findIndex(e=>{let n=e?.getLinkedRecord("node")?.getValue("updatedAt");return"string"==typeof n&&new Date(n).getTime(){let{conversationId:n,pinned:t,onCompleted:d,onError:u}=e;p({variables:{input:{id:n,pinned:t}},optimisticUpdater:e=>{c(e,{conversationId:n,pinned:t})},updater:e=>{c(e,{conversationId:n,pinned:t})},onCompleted:e=>{let n=e.pinConversation;n?.__typename==="ConversationPinned"?((0,a.toast)(t?r.fbs._("Conversation pinned",null,{hk:"1KFodX"}):r.fbs._("Conversation unpinned",null,{hk:"40cV7a"}),{icon:t?(0,o.createElement)(l.default,{className:"h-4 w-4"}):(0,o.createElement)(i.default,{className:"h-4 w-4"})}),d?.()):((0,a.toast)(r.fbs._("Failed to update conversation pin status",null,{hk:"3ywuJl"})),u?.(Error("Failed to update conversation pin status")))},onError:e=>{s.error({error:e},"Mutation error"),(0,a.toast)(r.fbs._("Failed to update conversation pin status",null,{hk:"3ywuJl"})),u?.(e)}})},g[1]=p,g[2]=u):u=g[2];let v=u;return g[3]!==f||g[4]!==v?(m={pinConversation:v,isPinning:f},g[3]=f,g[4]=v,g[5]=m):m=g[5],m}])},737778,e=>{"use strict";var n=e.i(733783),t=e.i(908464);function a(e){let a,l,i,r,o,s,c=(0,t.c)(11);c[0]!==e?({size:l,...a}=e,c[0]=e,c[1]=a,c[2]=l):(a=c[1],l=c[2]);let d=void 0===l?32:l;return c[3]!==a.title?(i=null!=a.title&&(0,n.jsx)("title",{children:a.title}),c[3]=a.title,c[4]=i):i=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)("path",{d:"M16.498 7.375H12.9c-1.134 0-1.933 0-2.556.052-.613.05-.98.144-1.263.289-.588.3-1.066.777-1.365 1.365-.145.284-.24.65-.29 1.263-.05.623-.051 1.422-.051 2.556v6.2c0 1.134 0 1.933.052 2.556.05.613.144.979.289 1.263.3.587.777 1.065 1.365 1.365.284.145.65.239 1.263.289.623.05 1.422.052 2.556.052h6.2c1.134 0 1.933-.001 2.556-.052.613-.05.98-.144 1.263-.29a3.125 3.125 0 0 0 1.365-1.364c.145-.284.24-.65.29-1.263.05-.623.051-1.422.051-2.557v-3.588l1.75-1.75v5.338c0 1.106 0 1.989-.058 2.7-.058.72-.182 1.342-.473 1.914a4.878 4.878 0 0 1-2.131 2.13c-.572.292-1.193.415-1.914.474-.711.058-1.594.058-2.7.058H12.9c-1.105 0-1.988 0-2.699-.058-.72-.059-1.342-.182-1.914-.474a4.877 4.877 0 0 1-2.13-2.13c-.292-.572-.415-1.194-.474-1.914-.058-.711-.058-1.594-.058-2.7V12.9c0-1.106 0-1.988.058-2.7.059-.72.182-1.342.473-1.913a4.877 4.877 0 0 1 2.131-2.131c.572-.291 1.193-.415 1.914-.474.711-.058 1.594-.057 2.7-.057h5.347l-1.75 1.75z",fill:"currentColor"}),o=(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.064 5.874a2.876 2.876 0 0 1 4.067 4.065l-8.523 8.522a4.877 4.877 0 0 1-1.905 1.177l-3.347 1.116a.875.875 0 0 1-1.106-1.107l1.117-3.346c.24-.718.641-1.37 1.176-1.905l8.521-8.522zm-7.283 9.76c-.342.342-.6.76-.754 1.22l-.563 1.686 1.685-.562c.46-.153.88-.412 1.222-.755l6.825-6.825a9.165 9.165 0 0 0-1.59-1.593l-6.825 6.829zM24.894 7.11a1.126 1.126 0 0 0-1.592 0l-.45.45a10.93 10.93 0 0 1 1.59 1.59l.452-.45a1.126 1.126 0 0 0 0-1.59z",fill:"currentColor"}),c[5]=r,c[6]=o):(r=c[5],o=c[6]),c[7]!==a||c[8]!==d||c[9]!==i?(s=(0,n.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:d,height:d,...a,children:[i,r,o]}),c[7]=a,c[8]=d,c[9]=i,c[10]=s):s=c[10],s}a._isSVG=!0,e.s(["default",0,a])},636111,e=>{"use strict";let n={argumentDefinitions:[],kind:"Fragment",metadata:{plural:!0,throwOnFieldError:!0},name:"EctoConversationListRouter_conversations",selections:[{args:null,kind:"FragmentSpread",name:"EctoGroupedConversationList_conversations"},{alias:null,args:null,concreteType:"Conversation",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"updatedAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pinned",storageKey:null},{args:null,kind:"FragmentSpread",name:"EctoConversationItem_conversation"},{args:null,kind:"FragmentSpread",name:"EctoCommandPaletteConversationItem_conversation"}],storageKey:null}],type:"ConversationEdge",abstractKey:null};n.hash="3fef2132a4c42a8b574e5084dd5263f9",e.s(["default",0,n])},844831,e=>{"use strict";var n,t,a;let l={fragment:{argumentDefinitions:n=[{defaultValue:null,kind:"LocalArgument",name:"pinnedAfter"},{defaultValue:20,kind:"LocalArgument",name:"pinnedFirst"}],kind:"Fragment",metadata:null,name:"EctoPinnedConversationsRouterRefetchQuery",selections:[{args:[{kind:"Variable",name:"pinnedAfter",variableName:"pinnedAfter"},{kind:"Variable",name:"pinnedFirst",variableName:"pinnedFirst"}],kind:"FragmentSpread",name:"EctoPinnedConversationsRouter_query"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"EctoPinnedConversationsRouterRefetchQuery",selections:[{alias:"pinnedConversations",args:t=[{kind:"Variable",name:"after",variableName:"pinnedAfter"},{kind:"Variable",name:"first",variableName:"pinnedFirst"},{kind:"Literal",name:"pinned",value:!0}],concreteType:"ConversationConnection",kind:"LinkedField",name:"conversations",plural:!1,selections:[{alias:null,args:null,concreteType:"ConversationEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Conversation",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"updatedAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"conversationId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pinned",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isUnread",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"wearableSurface",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"matchingSnippet",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"matchingSnippets",storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"clientCreated",storageKey:null}]},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:"pinnedConversations",args:t,filters:["pinned"],handle:"connection",key:"EctoPinnedConversationsRouter_pinnedConversations",kind:"LinkedHandle",name:"conversations"}]},params:{id:"b9995f55357122497083bac29560dbfa",metadata:{},name:"EctoPinnedConversationsRouterRefetchQuery",operationKind:"query",text:null}};l.hash="5b2f993baf622224e489f51401e7e225";let i={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"pinnedAfter"},{defaultValue:20,kind:"LocalArgument",name:"pinnedFirst"}],kind:"Fragment",metadata:{connection:[{count:"pinnedFirst",cursor:"pinnedAfter",direction:"forward",path:a=["pinnedConversations"]}],refetch:{connection:{forward:{count:"pinnedFirst",cursor:"pinnedAfter"},backward:null,path:a},fragmentPathInResult:[],operation:l},throwOnFieldError:!0},name:"EctoPinnedConversationsRouter_query",selections:[{alias:"pinnedConversations",args:[{kind:"Literal",name:"pinned",value:!0}],concreteType:"ConversationConnection",kind:"LinkedField",name:"__EctoPinnedConversationsRouter_pinnedConversations_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"ConversationEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"EctoConversationListRouter_conversations"},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"Conversation",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:"__EctoPinnedConversationsRouter_pinnedConversations_connection(pinned:true)"}],type:"Query",abstractKey:null};i.hash="5b2f993baf622224e489f51401e7e225",e.s(["default",0,i],844831)},384923,e=>{"use strict";var n,t,a;let l={fragment:{argumentDefinitions:n=[{defaultValue:null,kind:"LocalArgument",name:"unpinnedAfter"},{defaultValue:40,kind:"LocalArgument",name:"unpinnedFirst"}],kind:"Fragment",metadata:null,name:"EctoUnpinnedConversationsRouterRefetchQuery",selections:[{args:[{kind:"Variable",name:"unpinnedAfter",variableName:"unpinnedAfter"},{kind:"Variable",name:"unpinnedFirst",variableName:"unpinnedFirst"}],kind:"FragmentSpread",name:"EctoUnpinnedConversationsRouter_query"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"EctoUnpinnedConversationsRouterRefetchQuery",selections:[{alias:"unpinnedConversations",args:t=[{kind:"Variable",name:"after",variableName:"unpinnedAfter"},{kind:"Variable",name:"first",variableName:"unpinnedFirst"},{kind:"Literal",name:"pinned",value:!1}],concreteType:"ConversationConnection",kind:"LinkedField",name:"conversations",plural:!1,selections:[{alias:null,args:null,concreteType:"ConversationEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Conversation",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"updatedAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"conversationId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pinned",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isUnread",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"wearableSurface",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"matchingSnippet",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"matchingSnippets",storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"clientCreated",storageKey:null}]},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"__id",storageKey:null}]}],storageKey:null},{alias:"unpinnedConversations",args:t,filters:["pinned"],handle:"connection",key:"EctoUnpinnedConversationsRouter_unpinnedConversations",kind:"LinkedHandle",name:"conversations"}]},params:{id:"f6720c434bc3919b70dcc65a4dd0661f",metadata:{},name:"EctoUnpinnedConversationsRouterRefetchQuery",operationKind:"query",text:null}};l.hash="a50f436f95eccdc870d2bb0e51b83b6b";let i={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"unpinnedAfter"},{defaultValue:40,kind:"LocalArgument",name:"unpinnedFirst"}],kind:"Fragment",metadata:{connection:[{count:"unpinnedFirst",cursor:"unpinnedAfter",direction:"forward",path:a=["unpinnedConversations"]}],refetch:{connection:{forward:{count:"unpinnedFirst",cursor:"unpinnedAfter"},backward:null,path:a},fragmentPathInResult:[],operation:l},throwOnFieldError:!0},name:"EctoUnpinnedConversationsRouter_query",selections:[{alias:"unpinnedConversations",args:[{kind:"Literal",name:"pinned",value:!1}],concreteType:"ConversationConnection",kind:"LinkedField",name:"__EctoUnpinnedConversationsRouter_unpinnedConversations_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"ConversationEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"EctoConversationListRouter_conversations"},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"Conversation",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"__id",storageKey:null}]}],storageKey:"__EctoUnpinnedConversationsRouter_unpinnedConversations_connection(pinned:false)"}],type:"Query",abstractKey:null};i.hash="a50f436f95eccdc870d2bb0e51b83b6b",e.s(["default",0,i],384923)},44422,e=>{"use strict";var n,t,a,l,i;let r={fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"EctoConversationListWithPaginationRouterQuery",selections:[{args:null,kind:"FragmentSpread",name:"EctoPinnedConversationsRouter_query"},{args:null,kind:"FragmentSpread",name:"EctoUnpinnedConversationsRouter_query"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"EctoConversationListWithPaginationRouterQuery",selections:[{alias:"pinnedConversations",args:n=[{kind:"Literal",name:"first",value:20},{kind:"Literal",name:"pinned",value:!0}],concreteType:"ConversationConnection",kind:"LinkedField",name:"conversations",plural:!1,selections:[t={alias:null,args:null,concreteType:"ConversationEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Conversation",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"updatedAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"conversationId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pinned",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isUnread",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"wearableSurface",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"matchingSnippet",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"matchingSnippets",storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"clientCreated",storageKey:null}]},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},a={alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:"conversations(first:20,pinned:true)"},{alias:"pinnedConversations",args:n,filters:l=["pinned"],handle:"connection",key:"EctoPinnedConversationsRouter_pinnedConversations",kind:"LinkedHandle",name:"conversations"},{alias:"unpinnedConversations",args:i=[{kind:"Literal",name:"first",value:40},{kind:"Literal",name:"pinned",value:!1}],concreteType:"ConversationConnection",kind:"LinkedField",name:"conversations",plural:!1,selections:[t,a,{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"__id",storageKey:null}]}],storageKey:"conversations(first:40,pinned:false)"},{alias:"unpinnedConversations",args:i,filters:l,handle:"connection",key:"EctoUnpinnedConversationsRouter_unpinnedConversations",kind:"LinkedHandle",name:"conversations"}]},params:{id:"59632c75ec3c1c220ed3d875993dd9c0",metadata:{},name:"EctoConversationListWithPaginationRouterQuery",operationKind:"query",text:null}};r.hash="b7aedcfdde2b3dfde8bbabac6e6046ee",e.s(["default",0,r])},877347,e=>{"use strict";let n={fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"EctoUserSectionQuery",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"viewer",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"EctoUserButton_viewer"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"EctoUserSectionQuery",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isIViewerContext"},{alias:null,args:null,kind:"ScalarField",name:"tosRegion",storageKey:null},{alias:null,args:null,concreteType:"SocialProfile",kind:"LinkedField",name:"socialProfile",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"profile_picture",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"03794ecdd64835a6b790306b99354ae3",metadata:{},name:"EctoUserSectionQuery",operationKind:"query",text:null}};n.hash="677407631bb976b1c05363ee6308107f",e.s(["default",0,n])},945291,e=>{"use strict";var n;let t={fragment:{argumentDefinitions:[],kind:"Fragment",metadata:{throwOnFieldError:!0},name:"EctoNotificationBadgeCountQuery",selections:n=[{alias:null,args:null,kind:"ScalarField",name:"notifications_count",storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"EctoNotificationBadgeCountQuery",selections:n},params:{id:"37d089d48bfbab28fff6eca658c418f6",metadata:{},name:"EctoNotificationBadgeCountQuery",operationKind:"query",text:null}};t.hash="214ed95de38b90e17d36e76e6ae64aba",e.s(["default",0,t])},935595,e=>{"use strict";var n=e.i(44422),t=e.i(877347),a=e.i(945291);let l={conversationList:{query:n.default,getVariables:()=>({})},userSection:{query:t.default,getVariables:()=>({})},notificationBadgeCount:{query:a.default,getVariables:()=>({})}};Object.values(l),e.s(["queryLoader",0,l])},773075,e=>{"use strict";var n=e.i(733783),t=e.i(908464);function a(e){let a,l,i,r,o,s=(0,t.c)(10);s[0]!==e?({size:l,...a}=e,s[0]=e,s[1]=a,s[2]=l):(a=s[1],l=s[2]);let c=void 0===l?32:l;return s[3]!==a.title?(i=null!=a.title&&(0,n.jsx)("title",{children:a.title}),s[3]=a.title,s[4]=i):i=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 17.125c4.609 0 8.673 2.587 9.974 6.396.128.377.315.848.173 1.426a1.91 1.91 0 0 1-.302.639c-.122.17-.293.357-.506.493-.27.173-.543.24-.804.27-.234.027-.506.026-.772.026H8.236c-.266 0-.538.001-.772-.025a1.826 1.826 0 0 1-.803-.27 1.907 1.907 0 0 1-.506-.494 1.906 1.906 0 0 1-.304-.638c-.142-.578.046-1.05.174-1.427 1.3-3.81 5.366-6.396 9.975-6.396zm-.014-11.5c1.258 0 2.337.435 3.143 1.344.816.92 1.173 2.133 1.173 3.531 0 1.382-.357 2.583-1.167 3.5l-.154.168c-.785.813-1.81 1.207-2.995 1.207-1.242 0-2.307-.454-3.118-1.367-.815-.918-1.174-2.122-1.174-3.508 0-1.399.357-2.613 1.174-3.532l.007-.008c.813-.895 1.876-1.335 3.111-1.335z",fill:"currentColor"}),s[5]=r):r=s[5],s[6]!==a||s[7]!==c||s[8]!==i?(o=(0,n.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:c,height:c,...a,children:[i,r]}),s[6]=a,s[7]=c,s[8]=i,s[9]=o):o=s[9],o}a._isSVG=!0,e.s(["default",0,a])},181430,e=>{"use strict";var n=e.i(733783),t=e.i(267989),a=e.i(908464);e.s(["EctoNotificationsEmptyState",0,function(){let e,l=(0,a.c)(1);return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)("div",{className:"text-subheadline-emphasized text-text-secondary flex flex-col items-center gap-1 self-stretch px-6 pt-6 pb-[42px]",children:t.fbt._("No notifications",null,{hk:"3n7Ppb"})}),l[0]=e):e=l[0],e}])},903482,e=>{"use strict";var n=e.i(472361);let t=(0,n.createContext)(null);e.s(["NotificationSeenContext",0,t,"useNotificationSeenContext",0,function(){return(0,n.useContext)(t)}])},854004,e=>{"use strict";var n,t,a=((n={}).Like="LIKE",n.Remix="REMIX",n.Comment="COMMENT",n.Follow="FOLLOW",n.Video="VIDEO",n.Alert="ALERT",n),l=((t={}).Seen="SEEN",t.Unseen="UNSEEN",t);e.s(["NotificationCategory",()=>a,"NotificationSeenState",()=>l])},536814,e=>{"use strict";var n=e.i(733783),t=e.i(908464);function a(e){let a,l,i,r,o,s,c=(0,t.c)(11);c[0]!==e?({size:l,...a}=e,c[0]=e,c[1]=a,c[2]=l):(a=c[1],l=c[2]);let d=void 0===l?32:l;return c[3]!==a.title?(i=null!=a.title&&(0,n.jsx)("title",{children:a.title}),c[3]=a.title,c[4]=i):i=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)("path",{d:"M13.124 13.642a1 1 0 0 1 1.497-.868l4.113 2.359a1 1 0 0 1 0 1.734l-4.113 2.359a1 1 0 0 1-1.497-.868v-4.716z",fill:"currentColor"}),o=(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.1 4.125c1.105 0 1.988 0 2.699.058.72.059 1.342.182 1.914.473a4.877 4.877 0 0 1 2.13 2.131c.292.572.416 1.193.474 1.914.058.711.058 1.594.058 2.7V20.6c0 1.105 0 1.988-.058 2.699-.058.72-.182 1.342-.473 1.914a4.877 4.877 0 0 1-2.131 2.13c-.572.292-1.193.416-1.914.474-.711.058-1.594.058-2.7.058H13.9c-1.105 0-1.988 0-2.699-.058-.72-.058-1.342-.182-1.914-.473a4.877 4.877 0 0 1-2.13-2.131c-.292-.572-.415-1.193-.474-1.914-.058-.711-.058-1.594-.058-2.7V11.4c0-1.105 0-1.988.058-2.699.059-.72.182-1.342.473-1.914a4.877 4.877 0 0 1 2.131-2.13c.572-.292 1.193-.415 1.914-.474.711-.058 1.594-.058 2.7-.058H18.1zm-4.2 1.75c-1.134 0-1.933 0-2.556.052-.613.05-.98.144-1.263.289-.588.3-1.066.777-1.365 1.365-.145.284-.24.65-.29 1.263-.05.623-.051 1.422-.051 2.556v9.2c0 1.134 0 1.933.052 2.556.05.613.144.98.289 1.263.3.588.777 1.066 1.365 1.365.284.145.65.24 1.263.29.623.05 1.422.051 2.556.051h4.2c1.134 0 1.933 0 2.556-.052.613-.05.98-.144 1.263-.289a3.125 3.125 0 0 0 1.365-1.365c.145-.284.24-.65.29-1.263.05-.623.051-1.422.051-2.556v-9.2c0-1.134 0-1.933-.052-2.556-.05-.613-.144-.98-.289-1.263a3.125 3.125 0 0 0-1.365-1.365c-.284-.145-.65-.24-1.263-.29-.623-.05-1.422-.051-2.556-.051h-4.2z",fill:"currentColor"}),c[5]=r,c[6]=o):(r=c[5],o=c[6]),c[7]!==a||c[8]!==d||c[9]!==i?(s=(0,n.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",width:d,height:d,...a,children:[i,r,o]}),c[7]=a,c[8]=d,c[9]=i,c[10]=s):s=c[10],s}a._isSVG=!0,e.s(["default",0,a])},137271,696089,483184,348705,954830,e=>{"use strict";var n=e.i(733783),t=e.i(908464),a=e.i(839003),l=e.i(474983),i=e.i(536814),r=e.i(211376),o=e.i(854004),s=e.i(5776),c=e.i(945347),d=e.i(233799),u=e.i(472256),m=e.i(773075);e.s(["EctoNotificationsAvatar",0,function(e){let g,p=(0,t.c)(5),{category:f,imageUri:v}=e,h=function(e){let n;switch(e){case o.NotificationCategory.Video:n=i.default;break;case o.NotificationCategory.Alert:n=r.default;break;default:n=l.default}return n}(f),C=function(e){let n;switch(e){case o.NotificationCategory.Like:n=c.default;break;case o.NotificationCategory.Remix:n=u.default;break;case o.NotificationCategory.Comment:n=d.default;break;case o.NotificationCategory.Follow:n=m.default;break;default:n=void 0}return n}(f),y=function(e){let n;switch(e){case o.NotificationCategory.Like:n=s.AvatarBadgeColor.Red;break;case o.NotificationCategory.Comment:n=s.AvatarBadgeColor.Blue;break;case o.NotificationCategory.Follow:n=s.AvatarBadgeColor.Green;break;case o.NotificationCategory.Remix:n=s.AvatarBadgeColor.Purple;break;default:n=void 0}return n}(f);return p[0]!==y||p[1]!==C||p[2]!==h||p[3]!==v?(g=(0,n.jsx)(a.default,{size:"36",icon:h,imageUrl:v,badgeIcon:C,badgeColor:y,variant:"assistant"}),p[0]=y,p[1]=C,p[2]=h,p[3]=v,p[4]=g):g=p[4],g}],137271);var g=e.i(272600),p=e.i(369835),f=e.i(527357);e.s(["useNotificationClick",0,function(e,n){let a,l,i=(0,t.c)(9),{id:r,category:o,type:s,targetUrl:c}=e,{navigate:d}=(0,f.useNavigate)();i[0]!==o||i[1]!==r||i[2]!==s?(a={eventName:p.EctoClickEvent.NOTIFICATION_ITEM_CLICK,actionTarget:"NotificationListItem",actionType:"click",targetArea:"notification_item",metadata:{notificationId:r,notificationCategory:o,notificationType:s}},i[0]=o,i[1]=r,i[2]=s,i[3]=a):a=i[3];let{onClick:u}=(0,g.useTrackedClickRef)(a);return i[4]!==u||i[5]!==d||i[6]!==n||i[7]!==c?(l=()=>{c&&(u(),n?.(),c.startsWith("/")?d(c):window.location.href=c)},i[4]=u,i[5]=d,i[6]=n,i[7]=c,i[8]=l):l=i[8],l}],696089);var v=e.i(898251),h=e.i(422770);function C(e,t){let a=e.match(/^\{\{(.+)\}\}$/);return a?(0,n.jsx)("span",{className:"text-text-primary",children:a[1]},t):e}e.s(["useNotificationImpression",0,function(e){let n,a,l=(0,t.c)(5),{id:i,category:r,type:o}=e;l[0]!==r||l[1]!==i||l[2]!==o?(n={eventName:h.EctoImpressionEvent.NOTIFICATION_ITEM_VPV_IMPRESSION,actionTarget:"NotificationListItem",targetArea:"notification_item",metadata:{notificationId:i,notificationCategory:r,notificationType:o}},l[0]=r,l[1]=i,l[2]=o,l[3]=n):n=l[3],l[4]===Symbol.for("react.memo_cache_sentinel")?(a={threshold:"50%"},l[4]=a):a=l[4];let{ref:s}=(0,v.useTrackedImpressionRef)(n,a);return s}],483184),e.s(["useNotificationSubtitle",0,function(e,n){let t;e:{if(!e){t=null;break e}t=n?`${e}:`:e}return t}],348705),e.s(["useNotificationTitle",0,function(e){let n,a=(0,t.c)(2);e:{let t;if(!e){n=null;break e}a[0]!==e?(t=e.split(/(\{\{[^}]+\}\})/g).map(C),a[0]=e,a[1]=t):t=a[1],n=t}return n}],954830)},262387,e=>{"use strict";var n=e.i(733783),t=e.i(908464),a=e.i(137271),l=e.i(696089),i=e.i(483184),r=e.i(348705),o=e.i(954830),s=e.i(472361),c=e.i(903482),d=e.i(854004),u=e.i(267989);function m(){return Date.now()/1e3}var g=e.i(879695),p=e.i(437778);function f(e){let f,v,h,C,y,k,x,b,S,_,F,E,L,j,K,R,N,w,D,P=(0,t.c)(36),{id:I,category:T,type:A,title:z,subtitle:V,body:M,timestamp:O,imageUri:H,targetUrl:B,seenState:q,onNavigate:U}=e,Q=(0,o.useNotificationTitle)(z),G=(0,r.useNotificationSubtitle)(V,M),Z=function(e){let n,a,l=(0,t.c)(1);l[0]===Symbol.for("react.memo_cache_sentinel")?(n=u.fbs._("Now",null,{hk:"nAi1h"}),l[0]=n):n=l[0];let i=n,[r]=(0,s.useState)(m);e:{if(null==e){a="";break e}let n=r-e,t=Math.floor(n/60),l=Math.floor(n/3600),o=Math.floor(n/86400),s=Math.floor(o/7);if(s>0){a=`${s}w`;break e}if(o>0){a=`${o}d`;break e}if(l>0){a=`${l}h`;break e}if(t>0){a=`${t}m`;break e}a=i}return a}(O);P[0]!==T||P[1]!==I||P[2]!==A?(f={id:I,category:T,type:A},P[0]=T,P[1]=I,P[2]=A,P[3]=f):f=P[3];let W=(0,i.useNotificationImpression)(f),$=(K=(0,t.c)(6),R=(0,c.useNotificationSeenContext)(),N=(0,s.useRef)(null),w=(0,s.useRef)(null),D=q===d.NotificationSeenState.Seen,K[0]===Symbol.for("react.memo_cache_sentinel")?(E=()=>()=>{N.current?.(),N.current=null},L=[],K[0]=E,K[1]=L):(E=K[0],L=K[1]),(0,s.useEffect)(E,L),K[2]!==D||K[3]!==I||K[4]!==R?(j=e=>{N.current?.(),N.current=null,w.current=e,e&&R&&!D&&(N.current=R(e,I))},K[2]=D,K[3]=I,K[4]=R,K[5]=j):j=K[5],j),Y=(0,g.useMergeRefs)(W,$);P[4]!==T||P[5]!==I||P[6]!==B||P[7]!==A?(v={id:I,category:T,type:A,targetUrl:B},P[4]=T,P[5]=I,P[6]=B,P[7]=A,P[8]=v):v=P[8];let X=(0,l.useNotificationClick)(v,U),J=(0,p.usePressable)(X);return P[9]!==T||P[10]!==H?(h=(0,n.jsx)(a.EctoNotificationsAvatar,{category:T,imageUri:H}),P[9]=T,P[10]=H,P[11]=h):h=P[11],P[12]!==Q?(C=(0,n.jsx)("span",{className:"text-subheadline-medium text-text-primary truncate",children:Q}),P[12]=Q,P[13]=C):C=P[13],P[14]!==Z?(y=(0,n.jsx)("span",{className:"text-subheadline text-text-secondary shrink-0",children:Z}),P[14]=Z,P[15]=y):y=P[15],P[16]!==C||P[17]!==y?(k=(0,n.jsxs)("div",{className:"flex items-center gap-1 self-stretch",children:[C,y]}),P[16]=C,P[17]=y,P[18]=k):k=P[18],P[19]!==G?(x=G&&(0,n.jsx)("p",{className:"text-subheadline text-text-secondary line-clamp-2",children:G}),P[19]=G,P[20]=x):x=P[20],P[21]!==M||P[22]!==T?(b=M&&(0,n.jsx)("p",{className:`text-subheadline line-clamp-2 ${T===d.NotificationCategory.Video?"text-text-secondary":"text-text-primary"}`,children:M}),P[21]=M,P[22]=T,P[23]=b):b=P[23],P[24]!==k||P[25]!==x||P[26]!==b?(S=(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 shrink-0 flex-col justify-center",children:[k,x,b]}),P[24]=k,P[25]=x,P[26]=b,P[27]=S):S=P[27],P[28]!==q?(_=q!==d.NotificationSeenState.Seen&&(0,n.jsx)("div",{className:"bg-fill-blue size-2 shrink-0 rounded-full"}),P[28]=q,P[29]=_):_=P[29],P[30]!==Y||P[31]!==J||P[32]!==_||P[33]!==h||P[34]!==S?(F=(0,n.jsxs)("div",{ref:Y,className:"group hover:bg-fill-secondary-elevated rounded-20 flex cursor-pointer items-center gap-3 px-3 py-2.5 transition-colors",...J,children:[h,S,_]}),P[30]=Y,P[31]=J,P[32]=_,P[33]=h,P[34]=S,P[35]=F):F=P[35],F}e.s(["EctoNotificationsListSection",0,function(e){let a,l,i,r,o=(0,t.c)(13),{title:s,notifications:c,isLastChild:d,onNavigate:u}=e,m=void 0!==d&&d?"":"py-2";if(o[0]!==s?(a=(0,n.jsx)("div",{className:"text-text-secondary text-caption-1-emphasized px-3 py-1.5",children:s}),o[0]=s,o[1]=a):a=o[1],o[2]!==c||o[3]!==u){let e;o[5]!==u?(e=e=>(0,n.jsx)(f,{...e,onNavigate:u},e.id),o[5]=u,o[6]=e):e=o[6],l=c.map(e),o[2]=c,o[3]=u,o[4]=l}else l=o[4];return o[7]!==l?(i=(0,n.jsx)("div",{className:"flex flex-col",children:l}),o[7]=l,o[8]=i):i=o[8],o[9]!==m||o[10]!==a||o[11]!==i?(r=(0,n.jsxs)("div",{className:m,children:[a,i]}),o[9]=m,o[10]=a,o[11]=i,o[12]=r):r=o[12],r}],262387)},675778,e=>{e.v(n=>Promise.all(["static/chunks/38njr0olc8x1o.js"].map(n=>e.l(n))).then(()=>n(239612)))},389958,e=>{e.v(n=>Promise.all(["static/chunks/3qc5zocishqlj.js"].map(n=>e.l(n))).then(()=>n(977199)))},361071,e=>{e.v(n=>Promise.all(["static/chunks/04d6vitcl1bzj.js"].map(n=>e.l(n))).then(()=>n(151425)))},209510,e=>{e.v(n=>Promise.all(["static/chunks/2bfo30l25rsdq.js","static/chunks/1hvq5_r0aqza-.js","static/chunks/1mbd-kc703he6.css"].map(n=>e.l(n))).then(()=>n(607328)))},751301,e=>{e.v(n=>Promise.all(["static/chunks/0hj9-qxezlyce.css","static/chunks/2iwau5qibz9zx.js"].map(n=>e.l(n))).then(()=>n(424649)))}]); //# debugId=36a2ac0e-58ba-d558-951c-3d67d36433ae