@gperezmz/bb-plugin-thread-glance 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app.js CHANGED
@@ -1,13 +1,13 @@
1
- var Xk=Object.defineProperty;var L=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(r){throw n=[r],r}};var Lt=(e,t)=>{for(var n in t)Xk(e,n,{get:t[n],enumerable:!0})};var lu,Sm=L(()=>{lu=[["path",{d:"M2 19V7.54902C2 6.10516 2 5.38322 2.24332 4.81647C2.5467 4.10985 3.10985 3.5467 3.81647 3.24332C4.38322 3 5.09805 3 6.54902 3H7.04311C7.64819 3 8.22075 3.27394 8.60041 3.74509L10.4175 6M10.4175 6H16C17.4001 6 18.1002 6 18.635 6.27248C19.1054 6.51217 19.4878 6.89462 19.7275 7.36502C20 7.8998 20 8.59987 20 10V11M10.4175 6H7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.15802 15.5144L3.45643 14.7717C4.19029 12.9449 4.55723 12.0316 5.3224 11.5158C6.08757 11 7.07557 11 9.05157 11H17.1119C19.8004 11 21.1446 11 21.7422 11.8787C22.3397 12.7575 21.8405 14.0002 20.842 16.4856L20.5436 17.2283C19.8097 19.0551 19.4428 19.9684 18.6776 20.4842C17.9124 21 16.9244 21 14.9484 21H6.88812C4.19961 21 2.85535 21 2.25782 20.1213C1.66029 19.2425 2.15953 17.9998 3.15802 15.5144Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});function Ig(e){if(Lm!==e){Lm=e;for(let t of Pm)t()}}function du(){return Lm}function _g(e){return Pm.add(e),()=>{Pm.delete(e)}}function Vi(e){return J_.get(e)}function Mm(e){return vg.add(e),()=>{vg.delete(e)}}function Hi(e){return Y_.get(e)}function Rm(e){return wg.add(e),()=>{wg.delete(e)}}var xg,Lm,Pm,J_,vg,Y_,wg,Tm=L(()=>{"use strict";xg=["AiBrain01","AiBrowser","AiContentGenerator01","AlignLeft","AppWindow","ArchiveRestore","ArrowDown","ArrowLeft","ArrowRight","ArrowReloadHorizontal","ArrowUp","ArrowUpDown","ArrowTurnBackward","ArrowTurnForward","ArrowUpRight","Beaker","BellDot","Browser","Brain","Calendar","CalendarCheckOut02","ChartColumn","ChevronUp","ChevronsDown","ChevronsUp","CircleArrowShrink","Clean","Clock","ClockArrowUp","ClockArrowDown","Cloud","CloudOff","Coffee","Columns2","CornerDownLeft","CornerDownRight","Discord","DiscordLogo","DateTime","Github","GithubLogo","DragDropHorizontal","DragDropVertical","EditFile","ElectricPlugs","Eye","EyeOff","Explore","ExternalLink","FileDiff","File","FileAttachment","FileQuestion","FileText","FolderOpen","FolderEdit","FolderMinus","Fork","GitBranch","GitMerge","GitPullRequest","GitPullRequestArrow","GitPullRequestClosed","GitPullRequestDraft","Globe","GridView","Laptop","Layers","Limitation","ListEnd","ListView","Lock","Mail","MailOpen","Maximize2","Mic","Minus","Minimize2","MoveTo","NewTab","News01","PackageReceive","Palette","PanelBottom","PanelRight","Paperclip","Pause","Pin","PinOff","Play","Plug02","Plus","Puzzle","Repeat","RotateCcw","Rows2","SecurityCheck","Sent","SideChat","Smartphone","Sort","SortingAZ02","SortingZA01","SortingOneNine","SortingNineOne","Square","SquareUnlock02","Star","TextWrap","TimeSchedule","UserRound","ZoomIn","ZoomOut"],Lm=null,Pm=new Set;J_=new Map,vg=new Set;Y_=new Map,wg=new Set});var Sg,Lg=L(()=>{Sg=[["path",{d:"M7 4.5C5.34315 4.5 4 5.84315 4 7.5C4 8.06866 4.15822 8.60037 4.43304 9.0535C3.04727 9.31855 2 10.537 2 12C2 13.463 3.04727 14.6814 4.43304 14.9465M7 4.5C7 3.11929 8.11929 2 9.5 2C10.8807 2 12 3.11929 12 4.5V19.5C12 20.8807 10.8807 22 9.5 22C8.11929 22 7 20.8807 7 19.5C5.34315 19.5 4 18.1569 4 16.5C4 15.9313 4.15822 15.3996 4.43304 14.9465M7 4.5C7 5.31791 7.39278 6.04408 8 6.50018M4.43304 14.9465C4.78948 14.3588 5.34207 13.9032 6 13.6707",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 19.4999C18.6569 19.4999 20 18.1567 20 16.4999C20 15.9312 19.8418 15.3995 19.567 14.9464C20.9527 14.6813 22 13.4629 22 11.9999C22 10.5369 20.9527 9.31843 19.567 9.05338M17 19.4999C17 20.8806 15.8807 21.9999 14.5 21.9999C13.1193 21.9999 12 20.8806 12 19.4999L12 4.49988C12 3.11917 13.1193 1.99988 14.5 1.99988C15.8807 1.99988 17 3.11917 17 4.49988C18.6569 4.49988 20 5.84302 20 7.49988C20 8.06854 19.8418 8.60024 19.567 9.05338M17 19.4999C17 18.682 16.6072 17.9558 16 17.4997M19.567 9.05338C19.2105 9.64109 18.6579 10.0966 18 10.3292",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Pg,Mg=L(()=>{Pg=[["path",{d:"M18.4737 15.5215C18.4795 15.4928 18.5205 15.4928 18.5263 15.5215C18.8302 17.0081 19.9919 18.1698 21.4785 18.4737C21.5072 18.4795 21.5072 18.5205 21.4785 18.5263C19.9919 18.8302 18.8302 19.9919 18.5263 21.4785C18.5205 21.5072 18.4795 21.5072 18.4737 21.4785C18.1698 19.9919 17.0081 18.8302 15.5215 18.5263C15.4928 18.5205 15.4928 18.4795 15.5215 18.4737C17.0081 18.1698 18.1698 17.0081 18.4737 15.5215Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 7.5H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.5 20.5H10.5C6.72876 20.5 4.84315 20.5 3.67157 19.3284C2.5 18.1569 2.5 16.2712 2.5 12.5V10.5C2.5 6.72876 2.5 4.84315 3.67157 3.67157C4.84315 2.5 6.72876 2.5 10.5 2.5H12.5C16.2712 2.5 18.1569 2.5 19.3284 3.67157C20.5 4.84315 20.5 6.72876 20.5 10.5V12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Rg,Tg=L(()=>{Rg=[["path",{d:"M11 21H10C6.22876 21 4.34315 21 3.17157 19.8284C2 18.6569 2 16.7712 2 13V10C2 6.22876 2 4.34315 3.17157 3.17157C4.34315 2 6.22876 2 10 2H12C15.7712 2 17.6569 2 18.8284 3.17157C20 4.34315 20 6.22876 20 10V10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.4069 14.4036C17.6192 13.8655 18.3808 13.8655 18.5931 14.4036L18.6298 14.4969C19.1482 15.8113 20.1887 16.8518 21.5031 17.3702L21.5964 17.4069C22.1345 17.6192 22.1345 18.3808 21.5964 18.5931L21.5031 18.6298C20.1887 19.1482 19.1482 20.1887 18.6298 21.5031L18.5931 21.5964C18.3808 22.1345 17.6192 22.1345 17.4069 21.5964L17.3702 21.5031C16.8518 20.1887 15.8113 19.1482 14.4969 18.6298L14.4036 18.5931C13.8655 18.3808 13.8655 17.6192 14.4036 17.4069L14.4969 17.3702C15.8113 16.8518 16.8518 15.8113 17.3702 14.4969L17.4069 14.4036Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M7 7H15M7 11.5H15M7 16H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var $g,Ag=L(()=>{$g=[["path",{d:"M12 18.502V5.00195",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 13.002C18 13.002 13.5811 19.0019 12 19.002C10.4188 19.002 6 13.002 6 13.002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Dg,Eg=L(()=>{Dg=[["path",{d:"M17.9997 12.5C17.9997 12.5 13.5807 18.5 11.9996 18.5C10.4185 18.5 5.99966 12.5 5.99966 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.9997 5.50005C17.9997 5.50005 13.5807 11.5 11.9996 11.5C10.4185 11.5 5.99966 5.5 5.99966 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Ng,Og=L(()=>{Ng=[["path",{d:"M5.5 12.002H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10.9999 18.002C10.9999 18.002 4.99998 13.583 4.99997 12.0019C4.99996 10.4208 11 6.00195 11 6.00195",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var zg,Zg=L(()=>{zg=[["path",{d:"M20 3V5.07692C20 7.07786 20 8.07833 19.8547 8.91545C19.0547 13.5235 15.0934 17.1376 10.0426 17.8674C9.12509 18 7.19318 18 5 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 21C6.39316 20.4102 4 18.8403 4 18C4 17.1597 6.39316 15.5898 7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var jg,Wg=L(()=>{jg=[["path",{d:"M4 3V5.07692C4 7.07786 4 8.07833 4.14533 8.91545C4.94529 13.5235 8.90656 17.1376 13.9574 17.8674C14.8749 18 16.8068 18 19 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 21C17.6068 20.4102 20 18.8403 20 18C20 17.1597 17.6068 15.5898 17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Fg,Vg=L(()=>{Fg=[["path",{d:"M20.5 5.5H9.5C5.78672 5.5 3 8.18503 3 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.5 18.5H14.5C18.2133 18.5 21 15.815 21 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18.5 3C18.5 3 21 4.84122 21 5.50002C21 6.15882 18.5 8 18.5 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M5.49998 16C5.49998 16 3.00001 17.8412 3 18.5C2.99999 19.1588 5.5 21 5.5 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var Hg,Bg=L(()=>{Hg=[["path",{d:"M18.5 12L4.99997 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 18C13 18 19 13.5811 19 12C19 10.4188 13 6 13 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Ug,Gg=L(()=>{Ug=[["path",{d:"M11 6H15.5C17.9853 6 20 8.01472 20 10.5C20 12.9853 17.9853 15 15.5 15H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.99998 12C6.99998 12 4.00001 14.2095 4 15C3.99999 15.7906 7 18 7 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Kg,qg=L(()=>{Kg=[["path",{d:"M13 6H8.5C6.01472 6 4 8.01472 4 10.5C4 12.9853 6.01472 15 8.5 15H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 12C17 12 20 14.2095 20 15C20 15.7906 17 18 17 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Jg,Yg=L(()=>{Jg=[["path",{d:"M17.9998 15C17.9998 15 13.5809 9.00001 11.9998 9C10.4187 8.99999 5.99985 15 5.99985 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var Xg,Qg=L(()=>{Xg=[["path",{d:"M12 5.5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 11C18 11 13.5811 5.00001 12 5C10.4188 4.99999 6 11 6 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var e7,t7=L(()=>{e7=[["path",{d:"M18 11.5C18 11.5 13.5811 5.50001 12 5.5C10.4188 5.49999 6 11.5 6 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 18.5C18 18.5 13.5811 12.5 12 12.5C10.4188 12.5 6 18.5 6 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var n7,r7=L(()=>{n7=[["path",{d:"M7 4V20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 19L17 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 6.99998C10 6.99998 7.79053 4.00001 6.99998 4C6.20942 3.99999 4 7 4 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M20 17C20 17 17.7905 20 17 20C16.2094 20 14 17 14 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var o7,i7=L(()=>{o7=[["path",{d:"M9 6.65032C9 6.65032 15.9383 6.10759 16.9154 7.08463C17.8924 8.06167 17.3496 15 17.3496 15M16.5 7.5L6.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var s7,a7=L(()=>{s7=[["path",{d:"M19.5 12.0001V13.5001C19.5 17.6422 16.1421 21.0001 12 21.0001C7.85786 21.0001 4.5 17.6422 4.5 13.5001V8C4.5 5.23858 6.73858 3 9.5 3C12.2614 3 14.5 5.23858 14.5 8V13.5C14.5 14.8807 13.3807 16 12 16C10.6193 16 9.5 14.8807 9.5 13.5V9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var c7,u7=L(()=>{c7=[["path",{d:"M19 11V12.7558C19 13.5514 19.3161 14.3145 19.8787 14.8771L20.4819 15.4803C20.8136 15.8121 21 16.262 21 16.7311C21 17.708 20.208 18.5 19.2311 18.5H4.76887C3.79195 18.5 3 17.708 3 16.7311C3 16.262 3.18636 15.8121 3.51809 15.4803L4.12132 14.8771C4.68393 14.3145 5 13.5514 5 12.7558V10C5 6.13401 8.13401 3 12 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5 18.5C15.5 20.433 13.933 22 12 22C10.067 22 8.5 20.433 8.5 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 5C21 3.34315 19.6568 2 18 2C16.3431 2 15 3.34315 15 5C15 6.65684 16.3431 8 18 8C19.6568 8 21 6.65684 21 5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var l7,d7=L(()=>{l7=[["path",{d:"M15.5 7H8.5M12.499 11H8.49902",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20 22H6C4.89543 22 4 21.1046 4 20M4 20C4 18.8954 4.89543 18 6 18H20V6C20 4.11438 20 3.17157 19.4142 2.58579C18.8284 2 17.8856 2 16 2H10C7.17157 2 5.75736 2 4.87868 2.87868C4 3.75736 4 5.17157 4 8V20Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M19.5 18C19.5 18 18.5 18.7628 18.5 20C18.5 21.2372 19.5 22 19.5 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var p7,f7=L(()=>{p7=[["path",{d:"M16.998 7.12652C17.3182 7.04393 17.654 7 18 7C20.2091 7 22 8.79086 22 11C22 13.2091 20.2091 15 18 15C17.6451 15 17.3009 14.9538 16.9733 14.867M16.998 7.12652C16.9993 7.08451 17 7.04233 17 7C17 4.79086 15.2091 3 13 3C11.0824 3 9.47994 4.34939 9.09041 6.15043M16.998 7.12652C16.9769 7.80763 16.7854 8.44584 16.4649 9M16.9733 14.867C16.9909 14.7472 17 14.6247 17 14.5C17 13.2905 16.1411 12.2816 15 12.05M16.9733 14.867C16.7957 16.0737 15.756 17 14.5 17H14C11.7909 17 10 18.7909 10 21M9.09041 6.15043C8.74377 6.05243 8.37801 6 8 6C5.79086 6 4 7.79086 4 10C4 10.3886 4.05542 10.7643 4.15878 11.1195M9.09041 6.15043C10.1015 6.43625 10.9498 7.10965 11.4649 8M4.15878 11.1195C2.9114 11.4832 2 12.6352 2 14C2 15.6569 3.34315 17 5 17C6.30622 17 7.41746 16.1652 7.82929 15M4.15878 11.1195C4.24921 11.4303 4.37632 11.7255 4.53513 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.8361 11.7435C11.3257 12.2353 10.453 12.3202 9.70713 11.9008C8.9612 11.4814 8.58031 10.6917 8.73535 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var $m,m7=L(()=>{$m=[["path",{d:"M3 12C3 7.75736 3 5.63604 4.31802 4.31802C5.63604 3 7.75736 3 12 3C16.2426 3 18.364 3 19.682 4.31802C21 5.63604 21 7.75736 21 12C21 16.2426 21 18.364 19.682 19.682C18.364 21 16.2426 21 12 21C7.75736 21 5.63604 21 4.31802 19.682C3 18.364 3 16.2426 3 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 9H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var h7,g7=L(()=>{h7=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12.1258 14H12.0008M12.1258 18H12.0008M7.625 14H7.5M7.625 18H7.5M16.625 14H16.5M12.2508 14C12.2508 14.1381 12.1389 14.25 12.0008 14.25C11.8628 14.25 11.7508 14.1381 11.7508 14C11.7508 13.8619 11.8628 13.75 12.0008 13.75C12.1389 13.75 12.2508 13.8619 12.2508 14ZM12.2508 18C12.2508 18.1381 12.1389 18.25 12.0008 18.25C11.8628 18.25 11.7508 18.1381 11.7508 18C11.7508 17.8619 11.8628 17.75 12.0008 17.75C12.1389 17.75 12.2508 17.8619 12.2508 18ZM7.75 14C7.75 14.1381 7.63807 14.25 7.5 14.25C7.36193 14.25 7.25 14.1381 7.25 14C7.25 13.8619 7.36193 13.75 7.5 13.75C7.63807 13.75 7.75 13.8619 7.75 14ZM7.75 18C7.75 18.1381 7.63807 18.25 7.5 18.25C7.36193 18.25 7.25 18.1381 7.25 18C7.25 17.8619 7.36193 17.75 7.5 17.75C7.63807 17.75 7.75 17.8619 7.75 18ZM16.75 14C16.75 14.1381 16.6381 14.25 16.5 14.25C16.3619 14.25 16.25 14.1381 16.25 14C16.25 13.8619 16.3619 13.75 16.5 13.75C16.6381 13.75 16.75 13.8619 16.75 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var C7,k7=L(()=>{C7=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M13.5 18.5C14.0057 18.0085 16 16.7002 16 16C16 15.2998 14.0057 13.9915 13.5 13.5M15.5 16L9 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var y7,b7=L(()=>{y7=[["path",{d:"M8 9V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 5V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 13V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var v7,w7=L(()=>{v7=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.115 11.1151C11.6324 10.5977 11.5463 8.4 11.5463 8.4M11.115 11.1151C10.5977 11.6324 8.4 11.5462 8.4 11.5462M11.115 11.1151L7.5 7.5M12.8882 12.8882C13.4055 12.3708 15.6032 12.4569 15.6032 12.4569M12.8882 12.8882C12.3709 13.4055 12.457 15.6032 12.457 15.6032M12.8882 12.8882L16.5 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var x7,I7=L(()=>{x7=[["path",{d:"M21 3L13 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.44573 11.0854C6.96539 12.0368 4.98269 11.8736 3 11.0885C3.50059 17.531 6.50414 20.0089 10.5089 21C10.5089 21 13.5261 18.8664 13.961 13.8074C14.0081 13.2595 14.0317 12.9856 13.9178 12.6769C13.8038 12.3682 13.5802 12.1468 13.1329 11.704C12.3973 10.9757 12.0295 10.6116 11.5929 10.5204C11.1564 10.4293 10.5862 10.648 9.44573 11.0854Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4.5 16.4464C4.5 16.4464 7 16.9286 9.5 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.5 7.25C8.5 7.94036 7.94036 8.5 7.25 8.5C6.55964 8.5 6 7.94036 6 7.25C6 6.55964 6.55964 6 7.25 6C7.94036 6 8.5 6.55964 8.5 7.25Z",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["path",{d:"M11.125 4H11M11.25 4C11.25 4.13807 11.1381 4.25 11 4.25C10.8619 4.25 10.75 4.13807 10.75 4C10.75 3.86193 10.8619 3.75 11 3.75C11.1381 3.75 11.25 3.86193 11.25 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var _7,S7=L(()=>{_7=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var L7,P7=L(()=>{L7=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 19C22 19 19.7905 22 19 22C18.2094 22 16 19 16 19M19 21V15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var M7,R7=L(()=>{M7=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 18C22 18 19.7905 15 19 15C18.2094 15 16 18 16 18M19 16V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var T7,$7=L(()=>{T7=[["path",{d:"M17.4776 10.0001C17.485 10 17.4925 10 17.5 10C19.9853 10 22 12.0147 22 14.5C22 16.9853 19.9853 19 17.5 19H7C4.23858 19 2 16.7614 2 14C2 11.4003 3.98398 9.26407 6.52042 9.0227M17.4776 10.0001C17.4924 9.83536 17.5 9.66856 17.5 9.5C17.5 6.46243 15.0376 4 12 4C9.12324 4 6.76233 6.20862 6.52042 9.0227M17.4776 10.0001C17.3753 11.1345 16.9286 12.1696 16.2428 13M6.52042 9.0227C6.67826 9.00768 6.83823 9 7 9C8.12582 9 9.16474 9.37209 10.0005 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var A7,D7=L(()=>{A7=[["path",{d:"M17.4776 10.5001C17.485 10.5 17.4925 10.5 17.5 10.5C19.9853 10.5 22 12.5147 22 15C22 15.8582 21.7597 16.6604 21.3428 17.3428M17.4776 10.5001C17.4924 10.3354 17.5 10.1686 17.5 10C17.5 6.96243 15.0376 4.5 12 4.5C10.9945 4.5 10.052 4.76982 9.24101 5.24101M17.4776 10.5001C17.4039 11.3178 17.1512 12.0839 16.759 12.759M6.52042 9.5227C3.98398 9.76407 2 11.9003 2 14.5C2 17.2614 4.23858 19.5 7 19.5H17.5C18.0928 19.5 18.6588 19.3854 19.1771 19.1771M6.52042 9.5227C6.67826 9.50768 6.83823 9.5 7 9.5C8.12582 9.5 9.16474 9.87209 10.0005 10.5M6.52042 9.5227C6.59145 8.69641 6.84518 7.92232 7.24101 7.24101",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 2L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var E7,N7=L(()=>{E7=[["path",{d:"M18.2505 10.5H19.6403C21.4918 10.5 22.0421 10.7655 21.9975 12.0838C21.9237 14.2674 20.939 16.8047 17 17.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5.94627 20.6145C2.57185 18.02 2.07468 14.3401 2.00143 10.5001C1.96979 8.8413 2.45126 8.5 4.65919 8.5H15.3408C17.5487 8.5 18.0302 8.8413 17.9986 10.5001C17.9253 14.3401 17.4281 18.02 14.0537 20.6145C13.0934 21.3528 12.2831 21.5 10.9194 21.5H9.08064C7.71686 21.5 6.90658 21.3528 5.94627 20.6145Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11.3089 2.5C10.7622 2.83861 10.0012 4 10.0012 5.5M7.53971 4C7.53971 4 7 4.5 7 5.5M14.0012 4C13.7279 4.1693 13.5 5 13.5 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var O7,z7=L(()=>{O7=[["path",{d:"M13 4L13 7.00002C13 8.88563 13.0001 9.82843 13.5858 10.4142C14.1716 11 15.1144 11 17 11L20 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.0001 20L11 17C11 15.1144 11 14.1715 10.4142 13.5858C9.82843 13 8.88563 13 7.00002 13L4.00006 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Z7,j7=L(()=>{Z7=[["path",{d:"M6.3 2.75143C5.26076 2.94471 4.49591 3.28657 3.89124 3.89124C3.28657 4.49591 2.94471 5.26076 2.75143 6.3M17.7 2.75143C18.7392 2.94471 19.5041 3.28657 20.1088 3.89124C20.7134 4.49591 21.0553 5.26076 21.2486 6.3M13.9 2.50495C13.3156 2.5 12.6839 2.5 12 2.5C11.3161 2.5 10.6844 2.5 10.1 2.50495M21.495 10.1C21.5 10.6844 21.5 11.3161 21.5 12C21.5 12.6839 21.5 13.3156 21.495 13.9001M2.50495 10.1C2.5 10.6844 2.5 11.3161 2.5 12C2.5 12.6839 2.5 13.3156 2.50496 13.9001M2.75143 17.7C2.94471 18.7392 3.28657 19.5041 3.89124 20.1088C4.49591 20.7134 5.26076 21.0553 6.3 21.2486M21.2486 17.7C21.0553 18.7392 20.7134 19.5041 20.1088 20.1088C19.5041 20.7134 18.7392 21.0553 17.7 21.2486M13.9 21.495C13.3156 21.5 12.6839 21.5 12 21.5C11.3162 21.5 10.6845 21.5 10.1002 21.495",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var W7,F7=L(()=>{W7=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18.2671 18.7011L17 18V16.2668M21 18C21 20.2091 19.2091 22 17 22C14.7909 22 13 20.2091 13 18C13 15.7909 14.7909 14 17 14C19.2091 14 21 15.7909 21 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var V7,H7=L(()=>{V7=[["path",{d:"M15.5 17.5C16.5 19 17.3333 19.6667 18 20C19.3333 19.6667 22 18.2 22 15C22 11.8 20.6667 7.33333 20 5.5C18 4.3 15.8333 4 15 4L14.198 5.60393C13.4135 5.28708 12.4058 5.25438 12 5.27763C11.5942 5.25438 10.5865 5.28708 9.80197 5.60393L9 4C8.16667 4 6 4.3 4 5.5C3.33333 7.33333 2 11.8 2 15C2 18.2 4.66667 19.6667 6 20C6.66667 19.6667 7.5 19 8.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.3652 11.5C17.3652 12.6046 16.5817 13.5 15.6152 13.5C14.6487 13.5 13.8652 12.6046 13.8652 11.5C13.8652 10.3954 14.6487 9.5 15.6152 9.5C16.5817 9.5 17.3652 10.3954 17.3652 11.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 11.5C10 12.6046 9.2165 13.5 8.25 13.5C7.2835 13.5 6.5 12.6046 6.5 11.5C6.5 10.3954 7.2835 9.5 8.25 9.5C9.2165 9.5 10 10.3954 10 11.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M17.5 16.5C16.4022 17.3967 14.3502 18 12 18C9.64981 18 7.59785 17.3967 6.5 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var B7,U7=L(()=>{B7=[["path",{d:"M6 8C6.55228 8 7 8.44772 7 9C7 9.55228 6.55228 10 6 10C5.44772 10 5 9.55228 5 9C5 8.44772 5.44772 8 6 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 14C6.55228 14 7 14.4477 7 15C7 15.5523 6.55228 16 6 16C5.44772 16 5 15.5523 5 15C5 14.4477 5.44772 14 6 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 8C18.5523 8 19 8.44772 19 9C19 9.55228 18.5523 10 18 10C17.4477 10 17 9.55228 17 9C17 8.44772 17.4477 8 18 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 8C12.5523 8 13 8.44772 13 9C13 9.55228 12.5523 10 12 10C11.4477 10 11 9.55228 11 9C11 8.44772 11.4477 8 12 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M18 14C18.5523 14 19 14.4477 19 15C19 15.5523 18.5523 16 18 16C17.4477 16 17 15.5523 17 15C17 14.4477 17.4477 14 18 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M12 14C12.5523 14 13 14.4477 13 15C13 15.5523 12.5523 16 12 16C11.4477 16 11 15.5523 11 15C11 14.4477 11.4477 14 12 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var G7,K7=L(()=>{G7=[["path",{d:"M16 6C16 6.55228 15.5523 7 15 7C14.4477 7 14 6.55228 14 6C14 5.44772 14.4477 5 15 5C15.5523 5 16 5.44772 16 6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 6C10 6.55228 9.55228 7 9 7C8.44772 7 8 6.55228 8 6C8 5.44772 8.44772 5 9 5C9.55228 5 10 5.44772 10 6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 18C16 18.5523 15.5523 19 15 19C14.4477 19 14 18.5523 14 18C14 17.4477 14.4477 17 15 17C15.5523 17 16 17.4477 16 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M16 12C16 12.5523 15.5523 13 15 13C14.4477 13 14 12.5523 14 12C14 11.4477 14.4477 11 15 11C15.5523 11 16 11.4477 16 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M10 18C10 18.5523 9.55228 19 9 19C8.44772 19 8 18.5523 8 18C8 17.4477 8.44772 17 9 17C9.55228 17 10 17.4477 10 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M10 12C10 12.5523 9.55228 13 9 13C8.44772 13 8 12.5523 8 12C8 11.4477 8.44772 11 9 11C9.55228 11 10 11.4477 10 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var q7,J7=L(()=>{q7=[["path",{d:"M8.17151 19.8284L19.8284 8.17157C20.3736 7.62632 20.6462 7.3537 20.792 7.0596C21.0693 6.50005 21.0693 5.8431 20.792 5.28354C20.6462 4.98945 20.3736 4.71682 19.8284 4.17157C19.2831 3.62632 19.0105 3.3537 18.7164 3.20796C18.1568 2.93068 17.4999 2.93068 16.9403 3.20796C16.6462 3.3537 16.3736 3.62632 15.8284 4.17157L4.17151 15.8284C3.59345 16.4064 3.30442 16.6955 3.15218 17.063C2.99994 17.4305 2.99994 17.8393 2.99994 18.6568V20.9999H5.34308C6.16059 20.9999 6.56934 20.9999 6.93688 20.8477C7.30442 20.6955 7.59345 20.4064 8.17151 19.8284Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 21H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 5.5L18.5 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Y7,X7=L(()=>{Y7=[["path",{d:"M9 2L9 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 2L15 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 18L12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12.6939 8.5L10.6029 10.6749C10.3788 10.9079 10.5394 11.2433 10.9048 11.3053L13.0952 11.6773C13.4848 11.7434 13.6334 12.1147 13.361 12.3413L10.7666 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14.3066 5L9.69342 5C7.5551 5 6.48594 5 5.89527 5.69774C5.3046 6.39548 5.46717 7.46639 5.79232 9.60823L6.31604 13.0581C6.83606 16.4836 8.28588 18 12 18C15.7141 18 17.1639 16.4836 17.684 13.0581L18.2077 9.60823C18.5328 7.46639 18.6954 6.39548 18.1047 5.69774C17.5141 5 16.4449 5 14.3066 5Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var Q7,e3=L(()=>{Q7=[["path",{d:"M19 12L19 8.99996C19 7.11435 18.9999 6.17155 18.4142 5.58577C17.8284 4.99999 16.8856 4.99999 15 5L12 5.00001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5 12L5.00003 15C5.00004 16.8856 5.00005 17.8284 5.58584 18.4142C6.17163 19 7.11443 19 9.00004 19L12 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var t3,n3=L(()=>{t3=[["path",{d:"M8 7L16 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 11L12 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M13 21.5V21C13 18.1716 13 16.7574 13.8787 15.8787C14.7574 15 16.1716 15 19 15H19.5M20 13.3431V10C20 6.22876 20 4.34315 18.8284 3.17157C17.6569 2 15.7712 2 12 2C8.22877 2 6.34315 2 5.17157 3.17157C4 4.34314 4 6.22876 4 10L4 14.5442C4 17.7892 4 19.4117 4.88607 20.5107C5.06508 20.7327 5.26731 20.9349 5.48933 21.1139C6.58831 22 8.21082 22 11.4558 22C12.1614 22 12.5141 22 12.8372 21.886C12.9044 21.8623 12.9702 21.835 13.0345 21.8043C13.3436 21.6564 13.593 21.407 14.0919 20.9081L18.8284 16.1716C19.4065 15.5935 19.6955 15.3045 19.8478 14.9369C20 14.5694 20 14.1606 20 13.3431Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var r3,o3=L(()=>{r3=[["path",{d:"M4 12.0004L4 14.5446C4 17.7896 4 19.4121 4.88607 20.5111C5.06508 20.7331 5.26731 20.9354 5.48933 21.1144C6.58831 22.0004 8.21082 22.0004 11.4558 22.0004C12.1614 22.0004 12.5141 22.0004 12.8372 21.8864C12.9044 21.8627 12.9702 21.8354 13.0345 21.8047C13.3436 21.6569 13.593 21.4074 14.0919 20.9085L18.8284 16.172C19.4065 15.5939 19.6955 15.3049 19.8478 14.9374C20 14.5698 20 14.1611 20 13.3436V10.0004C20 6.22919 20 4.34358 18.8284 3.172C17.7693 2.11284 16.1265 2.01122 13.0345 2.00146M13 21.5004V21.0004C13 18.172 13 16.7578 13.8787 15.8791C14.7574 15.0004 16.1716 15.0004 19 15.0004H19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 8.23028V5.46105C4 3.54929 5.567 1.99951 7.5 1.99951C9.433 1.99951 11 3.54929 11 5.46105V9.26874C11 10.2246 10.2165 10.9995 9.25 10.9995C8.2835 10.9995 7.5 10.2246 7.5 9.26874V5.46105",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var i3,s3=L(()=>{i3=[["path",{d:"M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var a3,c3=L(()=>{a3=[["path",{d:"M3.5 14.5C3.5 13.1193 4.6193 12 6 12C7.3807 12 8.5 13.1193 8.5 14.5C8.5 15.3569 8.06886 16.1131 7.41166 16.5636C6.72833 17.0319 6 17.6716 6 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.125 21.75H6M6.25 21.75C6.25 21.8881 6.13807 22 6 22C5.86193 22 5.75 21.8881 5.75 21.75C5.75 21.6119 5.86193 21.5 6 21.5C6.13807 21.5 6.25 21.6119 6.25 21.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M13.5 2.5V3C13.5 5.82843 13.5 7.24264 14.3787 8.12132C15.2574 9 16.6716 9 19.5 9H20M4.50394 7.98123C4.52397 5.69117 4.64575 4.40752 5.38607 3.48933C5.56507 3.26731 5.76731 3.06508 5.98932 2.88607C7.0883 2 8.71081 2 11.9558 2C12.6614 2 13.0141 2 13.3372 2.11401C13.4044 2.13772 13.4702 2.165 13.5345 2.19575C13.8435 2.34355 14.093 2.593 14.5919 3.09188L19.3284 7.82843C19.9065 8.40649 20.1955 8.69552 20.3478 9.06306C20.5 9.4306 20.5 9.83935 20.5 10.6569V14C20.5 17.7712 20.5 19.6569 19.3284 20.8284C18.1568 22 16.2712 22 12.5 22C11.7645 22 11.1007 22 10.5 21.9913",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var u3,l3=L(()=>{u3=[["path",{d:"M8.00164 7.00013H16.754C18.8613 7.00013 19.9149 7.00013 20.6718 7.50574C20.9995 7.72462 21.2808 8.00588 21.4997 8.33346C21.8937 8.92301 21.9808 9.69265 22 11.0003M12.0027 7.00013L11.3691 5.73321C10.8442 4.68363 10.3645 3.62714 9.20122 3.19101C8.69172 3 8.10969 3 6.94562 3C5.12865 3 4.22017 3 3.53848 3.38033C3.05255 3.65144 2.6516 4.0523 2.38042 4.53811C2 5.21963 2 6.1279 2 7.94443V11.0003C2 15.7145 2 18.0716 3.46487 19.5361C4.82227 20.8931 6.94628 20.9927 11.0025 21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 19.8268V21H15.1734C15.5827 21 15.7874 21 15.9715 20.9238C16.1555 20.8475 16.3003 20.7028 16.5897 20.4134L21.4133 15.5894C21.6864 15.3164 21.8229 15.1799 21.8959 15.0327C22.0347 14.7525 22.0347 14.4236 21.8959 14.1434C21.8229 13.9961 21.6864 13.8596 21.4133 13.5866C21.1403 13.3136 21.0038 13.1771 20.8565 13.1041C20.5763 12.9653 20.2473 12.9653 19.9671 13.1041C19.8198 13.1771 19.6833 13.3136 19.4103 13.5866L19.4103 13.5866L14.5867 18.4106C14.2972 18.7 14.1525 18.8447 14.0762 19.0287C14 19.2128 14 19.4174 14 19.8268Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var d3,p3=L(()=>{d3=[["path",{d:"M13 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 15L16 21M22 21L16 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var f3,m3=L(()=>{f3=[["path",{d:"M7 19H13C15.8284 19 17.2426 19 18.1213 18.1213C19 17.2426 19 15.8284 19 13V10M19 10C19.7002 10 21.0085 11.9943 21.5 12.5M19 10C18.2998 10 16.9915 11.9943 16.5 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5 7L5 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"5",cy:"5",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"19",cy:"5",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"5",cy:"19",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var h3,g3=L(()=>{h3=[["path",{d:"M6 8C7.10457 8 8 7.10457 8 6C8 4.89543 7.10457 4 6 4C4.89543 4 4 4.89543 4 6C4 7.10457 4.89543 8 6 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 20C13.1046 20 14 19.1046 14 18C14 16.8954 13.1046 16 12 16C10.8954 16 10 16.8954 10 18C10 19.1046 10.8954 20 12 20Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 8C19.1046 8 20 7.10457 20 6C20 4.89543 19.1046 4 18 4C16.8954 4 16 4.89543 16 6C16 7.10457 16.8954 8 18 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M6.01734 8.74067C6.01734 10.4142 5.77537 12.1995 9.22051 11.9855H12.0053M17.9929 8.57617C18.1259 11.9855 16.9199 11.7648 15.7861 11.9855H12.0053M12.0053 15.7001V11.9855",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var C3,k3=L(()=>{C3=[["path",{d:"M7 20C8.10457 20 9 19.1046 9 18C9 16.8954 8.10457 16 7 16C5.89543 16 5 16.8954 5 18C5 19.1046 5.89543 20 7 20Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8C8.10457 8 9 7.10457 9 6C9 4.89543 8.10457 4 7 4C5.89543 4 5 4.89543 5 6C5 7.10457 5.89543 8 7 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M17 14C18.1046 14 19 13.1046 19 12C19 10.8954 18.1046 10 17 10C15.8954 10 15 10.8954 15 12C15 13.1046 15.8954 14 17 14Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M7.02116 8.2793V15.4073M14.4113 12.0047L10.0193 12.0048C8.92158 12.0048 6.86182 11.1254 7.01818 8.78001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var pu,Am=L(()=>{pu=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 16V12C18 9.17156 18 7.75735 17.1213 6.87867C16.2426 5.99999 14.8284 5.99999 12 5.99999L11 5.99999M11 5.99999C11 5.29976 12.9943 3.99152 13.5 3.49999M11 5.99999C11 6.70022 12.9943 8.00846 13.5 8.49999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var y3,b3=L(()=>{y3=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 11L18 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M20 4L18 6M18 6L16 8M18 6L20 8M18 6L16 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var v3,w3=L(()=>{v3=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["path",{d:"M18.125 11H18M18.25 11C18.25 11.1381 18.1381 11.25 18 11.25C17.8619 11.25 17.75 11.1381 17.75 11C17.75 10.8619 17.8619 10.75 18 10.75C18.1381 10.75 18.25 10.8619 18.25 11Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M18.125 6H18M18.25 6C18.25 6.13807 18.1381 6.25 18 6.25C17.8619 6.25 17.75 6.13807 17.75 6C17.75 5.86193 17.8619 5.75 18 5.75C18.1381 5.75 18.25 5.86193 18.25 6Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}]]});var x3,I3=L(()=>{x3=[["path",{d:"M10 20.5675C6.57143 21.7248 3.71429 20.5675 2 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 22V18.7579C10 18.1596 10.1839 17.6396 10.4804 17.1699C10.6838 16.8476 10.5445 16.3904 10.1771 16.2894C7.13394 15.4528 5 14.1077 5 9.64606C5 8.48611 5.38005 7.39556 6.04811 6.4464C6.21437 6.21018 6.29749 6.09208 6.31748 5.9851C6.33746 5.87813 6.30272 5.73852 6.23322 5.45932C5.95038 4.32292 5.96871 3.11619 6.39322 2.02823C6.39322 2.02823 7.27042 1.74242 9.26698 2.98969C9.72282 3.27447 9.95075 3.41686 10.1515 3.44871C10.3522 3.48056 10.6206 3.41384 11.1573 3.28041C11.8913 3.09795 12.6476 3 13.5 3C14.3524 3 15.1087 3.09795 15.8427 3.28041C16.3794 3.41384 16.6478 3.48056 16.8485 3.44871C17.0493 3.41686 17.2772 3.27447 17.733 2.98969C19.7296 1.74242 20.6068 2.02823 20.6068 2.02823C21.0313 3.11619 21.0496 4.32292 20.7668 5.45932C20.6973 5.73852 20.6625 5.87813 20.6825 5.9851C20.7025 6.09207 20.7856 6.21019 20.9519 6.4464C21.6199 7.39556 22 8.48611 22 9.64606C22 14.1077 19.8661 15.4528 16.8229 16.2894C16.4555 16.3904 16.3162 16.8476 16.5196 17.1699C16.8161 17.6396 17 18.1596 17 18.7579V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var _3,S3=L(()=>{_3=[["path",{d:"M3.88884 9.66294C4.39329 10 5.09552 10 6.49998 10C7.90445 10 8.60668 10 9.11113 9.66294C9.32951 9.51702 9.51701 9.32952 9.66292 9.11114C9.99998 8.60669 9.99998 7.90446 9.99998 6.5C9.99998 5.09554 9.99998 4.39331 9.66292 3.88886C9.51701 3.67048 9.32951 3.48298 9.11113 3.33706C8.60668 3 7.90445 3 6.49998 3C5.09552 3 4.39329 3 3.88884 3.33706C3.67046 3.48298 3.48296 3.67048 3.33705 3.88886C2.99998 4.39331 2.99998 5.09554 2.99998 6.5C2.99998 7.90446 2.99998 8.60669 3.33705 9.11114C3.48296 9.32952 3.67046 9.51702 3.88884 9.66294Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.8888 9.66294C15.3933 10 16.0955 10 17.5 10C18.9044 10 19.6067 10 20.1111 9.66294C20.3295 9.51702 20.517 9.32952 20.6629 9.11114C21 8.60669 21 7.90446 21 6.5C21 5.09554 21 4.39331 20.6629 3.88886C20.517 3.67048 20.3295 3.48298 20.1111 3.33706C19.6067 3 18.9044 3 17.5 3C16.0955 3 15.3933 3 14.8888 3.33706C14.6705 3.48298 14.483 3.67048 14.337 3.88886C14 4.39331 14 5.09554 14 6.5C14 7.90446 14 8.60669 14.337 9.11114C14.483 9.32952 14.6705 9.51702 14.8888 9.66294Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3.88884 20.6629C4.39329 21 5.09552 21 6.49998 21C7.90445 21 8.60668 21 9.11113 20.6629C9.32951 20.517 9.51701 20.3295 9.66292 20.1111C9.99998 19.6067 9.99998 18.9045 9.99998 17.5C9.99998 16.0955 9.99998 15.3933 9.66292 14.8889C9.51701 14.6705 9.32951 14.483 9.11113 14.3371C8.60668 14 7.90445 14 6.49998 14C5.09552 14 4.39329 14 3.88884 14.3371C3.67046 14.483 3.48296 14.6705 3.33705 14.8889C2.99998 15.3933 2.99998 16.0955 2.99998 17.5C2.99998 18.9045 2.99998 19.6067 3.33705 20.1111C3.48296 20.3295 3.67046 20.517 3.88884 20.6629Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14.8888 20.6629C15.3933 21 16.0955 21 17.5 21C18.9044 21 19.6067 21 20.1111 20.6629C20.3295 20.517 20.517 20.3295 20.6629 20.1111C21 19.6067 21 18.9045 21 17.5C21 16.0955 21 15.3933 20.6629 14.8889C20.517 14.6705 20.3295 14.483 20.1111 14.3371C19.6067 14 18.9044 14 17.5 14C16.0955 14 15.3933 14 14.8888 14.3371C14.6705 14.483 14.483 14.6705 14.337 14.8889C14 15.3933 14 16.0955 14 17.5C14 18.9045 14 19.6067 14.337 20.1111C14.483 20.3295 14.6705 20.517 14.8888 20.6629Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var L3,P3=L(()=>{L3=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["ellipse",{cx:"12",cy:"12",rx:"4",ry:"10",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 12H22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var M3,R3=L(()=>{M3=[["path",{d:"M20.4999 16.5V8.5C20.4999 6.14298 20.4999 4.96447 19.7676 4.23223C19.0354 3.5 17.8569 3.5 15.4999 3.5H8.49988C6.14286 3.5 4.96434 3.5 4.23211 4.23223C3.49988 4.96447 3.49988 6.14298 3.49988 8.5V16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.9841 20.5H2.01567C1.63273 20.5 1.38367 20.1088 1.55493 19.7764L3.49988 16.5H20.4999L22.4448 19.7764C22.6161 20.1088 22.367 20.5 21.9841 20.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var T3,$3=L(()=>{T3=[["path",{d:"M8.64298 3.14559L6.93816 3.93362C4.31272 5.14719 3 5.75397 3 6.75C3 7.74603 4.31272 8.35281 6.93817 9.56638L8.64298 10.3544C10.2952 11.1181 11.1214 11.5 12 11.5C12.8786 11.5 13.7048 11.1181 15.357 10.3544L17.0618 9.56638C19.6873 8.35281 21 7.74603 21 6.75C21 5.75397 19.6873 5.14719 17.0618 3.93362L15.357 3.14559C13.7048 2.38186 12.8786 2 12 2C11.1214 2 10.2952 2.38186 8.64298 3.14559Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.788 11.0972C20.9293 11.2959 21 11.5031 21 11.7309C21 12.7127 19.6873 13.3109 17.0618 14.5072L15.357 15.284C13.7048 16.0368 12.8786 16.4133 12 16.4133C11.1214 16.4133 10.2952 16.0368 8.64298 15.284L6.93817 14.5072C4.31272 13.3109 3 12.7127 3 11.7309C3 11.5031 3.07067 11.2959 3.212 11.0972",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.3767 16.2661C20.7922 16.5971 21 16.927 21 17.3176C21 18.2995 19.6873 18.8976 17.0618 20.0939L15.357 20.8707C13.7048 21.6236 12.8786 22 12 22C11.1214 22 10.2952 21.6236 8.64298 20.8707L6.93817 20.0939C4.31272 18.8976 3 18.2995 3 17.3176C3 16.927 3.20778 16.5971 3.62334 16.2661",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var A3,D3=L(()=>{A3=[["path",{d:"M3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 2.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var E3,N3=L(()=>{E3=[["path",{d:"M20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.5 12L2.50078 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var O3,z3=L(()=>{O3=[["path",{d:"M8 20C7.48595 20.6974 7.2774 20.9401 6.85472 20.9929C6.43205 21.0457 6.13982 20.8037 5.55537 20.3197C3.38109 18.5193 2 15.8253 2 12.8147C2 7.39421 6.47715 3 12 3C17.5228 3 22 7.39421 22 12.8147C22 15.8253 20.6189 18.5193 18.4446 20.3197C17.8602 20.8037 17.568 21.0457 17.1453 20.9929C16.7226 20.9401 16.514 20.6974 16 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 10.5L18 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"12",cy:"12",r:"1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Z3,j3=L(()=>{Z3=[["path",{d:"M11.0991 3.00012C7.45013 3.00669 5.53932 3.09629 4.31817 4.31764C3.00034 5.63568 3.00034 7.75704 3.00034 11.9997C3.00034 16.2424 3.00034 18.3638 4.31817 19.6818C5.63599 20.9999 7.75701 20.9999 11.9991 20.9999C16.241 20.9999 18.3621 20.9999 19.6799 19.6818C20.901 18.4605 20.9906 16.5493 20.9972 12.8998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.556 3.49612L11.0487 13.0586M20.556 3.49612C20.062 3.00151 16.7343 3.04761 16.0308 3.05762M20.556 3.49612C21.05 3.99074 21.0039 7.32273 20.9939 8.02714",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var W3,F3=L(()=>{W3=[["path",{d:"M2.99609 18H8.99609",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.9961 15C15.9961 15 12.9961 17.2095 12.9961 18C12.9961 18.7906 15.9961 21 15.9961 21M13.9961 18L14.9961 18C17.8245 18 19.2387 18 20.1174 17.1213C20.9961 16.2427 20.9961 14.8284 20.9961 12V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2.99609 11H15.9961",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M2.99609 4H15.9961",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var V3,H3=L(()=>{V3=[["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H20.6C21.7583 10 22 10.2417 22 11.4V12.6C22 13.7583 21.7583 14 20.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H20.6C21.7583 18 22 18.2417 22 19.4V20.6C22 21.7583 21.7583 22 20.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]]});var B3,U3=L(()=>{B3=[["path",{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 13C13.1046 13 14 12.1046 14 11C14 9.89543 13.1046 9 12 9C10.8954 9 10 9.89543 10 11C10 12.1046 10.8954 13 12 13ZM12 13L12 16",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var G3,K3=L(()=>{G3=[["path",{d:"M7 8.5L9.94202 10.2394C11.6572 11.2535 12.3428 11.2535 14.058 10.2394L17 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.01577 13.4756C2.08114 16.5412 2.11383 18.0739 3.24496 19.2094C4.37608 20.3448 5.95033 20.3843 9.09883 20.4634C11.0393 20.5122 12.9607 20.5122 14.9012 20.4634C18.0497 20.3843 19.6239 20.3448 20.7551 19.2094C21.8862 18.0739 21.9189 16.5412 21.9842 13.4756C22.0053 12.4899 22.0053 11.5101 21.9842 10.5244C21.9189 7.45886 21.8862 5.92609 20.7551 4.79066C19.6239 3.65523 18.0497 3.61568 14.9012 3.53657C12.9607 3.48781 11.0393 3.48781 9.09882 3.53656C5.95033 3.61566 4.37608 3.65521 3.24495 4.79065C2.11382 5.92608 2.08114 7.45885 2.01576 10.5244C1.99474 11.5101 1.99475 12.4899 2.01577 13.4756Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var q3,J3=L(()=>{q3=[["path",{d:"M2 19L8.91302 14.2905C11.4387 12.5698 12.5613 12.5698 15.087 14.2905L22 19",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.01592 14.551C2.08186 17.5843 2.11484 19.1009 3.24611 20.2241C4.37738 21.3473 5.95183 21.3862 9.10072 21.4641C11.0393 21.512 12.9607 21.512 14.8993 21.4641C18.0482 21.3862 19.6226 21.3473 20.7539 20.2241C21.8852 19.1009 21.9181 17.5843 21.9841 14.551C22.0164 13.0649 21.9995 11.5934 21.9334 10.0921C21.8924 9.15964 21.8719 8.69341 21.6354 8.27984C21.3989 7.86628 20.9913 7.59935 20.176 7.0655L16.4152 4.60286C14.2742 3.20096 13.2038 2.5 12 2.5C10.7962 2.5 9.72577 3.20095 7.58483 4.60286L3.82397 7.0655C3.00869 7.59935 2.60106 7.86628 2.36459 8.27984C2.12812 8.69341 2.1076 9.15965 2.06656 10.0921C2.00049 11.5934 1.98361 13.0649 2.01592 14.551Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M22 9.5L17.7346 12.6072C16.7004 13.3606 15.8504 14 14.5 14M2 9.5L6.26538 12.6072C7.29955 13.3606 8.14961 14 9.5 14",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Y3,X3=L(()=>{Y3=[["path",{d:"M4 5L16 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 12L20 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4 19L12 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Q3,e6=L(()=>{Q3=[["path",{d:"M13 3.02144C12.6777 3.00721 12.3445 2.99998 12 2.99998C4.13281 2.99998 2 7.02942 2 12C2 14.0712 2.37034 15.979 3.37161 17.5C4.63281 19.5 3.99253 21.3333 3 22C4.61547 22 5.70211 21.4858 6.39239 20.9766C6.88252 20.615 7.50688 20.4364 8.0984 20.5814C9.20689 20.8533 10.4991 21 12 21C19.1328 21 22 16.9705 22 12C22 11.3126 21.9643 10.6432 21.8812 9.99998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.1248 12H11.9998M16.125 12H16M8.125 12H8M12.2498 12C12.2498 12.1381 12.1379 12.25 11.9998 12.25C11.8618 12.25 11.7498 12.1381 11.7498 12C11.7498 11.8619 11.8618 11.75 11.9998 11.75C12.1379 11.75 12.2498 11.8619 12.2498 12ZM16.25 12C16.25 12.1381 16.1381 12.25 16 12.25C15.8619 12.25 15.75 12.1381 15.75 12C15.75 11.8619 15.8619 11.75 16 11.75C16.1381 11.75 16.25 11.8619 16.25 12ZM8.25 12C8.25 12.1381 8.13807 12.25 8 12.25C7.86193 12.25 7.75 12.1381 7.75 12C7.75 11.8619 7.86193 11.75 8 11.75C8.13807 11.75 8.25 11.8619 8.25 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 4.99998H22M19 1.99998L19 7.99998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var t6,n6=L(()=>{t6=[["path",{d:"M12 18V22M12 18H11.5208C8.11765 18 5.28262 15.3914 5 12M12 18H12.4792C15.8824 18 18.7174 15.3914 19 12M12 22H15M12 22H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6V11C16 13.2091 14.2091 15 12 15C9.79086 15 8 13.2091 8 11V6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var r6,o6=L(()=>{r6=[["path",{d:"M20 12L4 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var i6,s6=L(()=>{i6=[["path",{d:"M8 17.625L20 17.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 14.625L20 17.625L17 20.625",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M8 3.625L20 3.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8 10.625L20 10.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M4.375 3.625H4.25M4.5 3.625C4.5 3.76307 4.38807 3.875 4.25 3.875C4.11193 3.875 4 3.76307 4 3.625C4 3.48693 4.11193 3.375 4.25 3.375C4.38807 3.375 4.5 3.48693 4.5 3.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M4.375 10.625H4.25M4.5 10.625C4.5 10.7631 4.38807 10.875 4.25 10.875C4.11193 10.875 4 10.7631 4 10.625C4 10.4869 4.11193 10.375 4.25 10.375C4.38807 10.375 4.5 10.4869 4.5 10.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M4.375 17.625H4.25M4.5 17.625C4.5 17.7631 4.38807 17.875 4.25 17.875C4.11193 17.875 4 17.7631 4 17.625C4 17.4869 4.11193 17.375 4.25 17.375C4.38807 17.375 4.5 17.4869 4.5 17.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]]});var a6,c6=L(()=>{a6=[["path",{d:"M10.5 8H18.5M10.5 12H13M18.5 12H16M10.5 16H13M18.5 16H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 7.5H6C4.11438 7.5 3.17157 7.5 2.58579 8.08579C2 8.67157 2 9.61438 2 11.5V18C2 19.3807 3.11929 20.5 4.5 20.5C5.88071 20.5 7 19.3807 7 18V7.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 3.5H11C10.07 3.5 9.60504 3.5 9.22354 3.60222C8.18827 3.87962 7.37962 4.68827 7.10222 5.72354C7 6.10504 7 6.57003 7 7.5V18C7 19.3807 5.88071 20.5 4.5 20.5H16C18.8284 20.5 20.2426 20.5 21.1213 19.6213C22 18.7426 22 17.3284 22 14.5V9.5C22 6.67157 22 5.25736 21.1213 4.37868C20.2426 3.5 18.8284 3.5 16 3.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var u6,l6=L(()=>{u6=[["path",{d:"M12 22C11.1818 22 10.4002 21.6754 8.83693 21.0262C4.94564 19.4101 3 18.6021 3 17.2429V7.74463M12 22C12.8182 22 13.5998 21.6754 15.1631 21.0262C19.0544 19.4101 21 18.6021 21 17.2429V7.74463M12 22V12.1687M3 7.74463C3 8.3485 3.80157 8.72983 5.40472 9.49248L8.32592 10.8822C10.1288 11.7399 11.0303 12.1687 12 12.1687M3 7.74463C3 7.14076 3.80157 6.75944 5.40472 5.99678L7.5 5M21 7.74463C21 8.3485 20.1984 8.72983 18.5953 9.49248L15.6741 10.8822C13.8712 11.7399 12.9697 12.1687 12 12.1687M21 7.74463C21 7.14076 20.1984 6.75944 18.5953 5.99678L16.5 5M6 13.1518L8 14.135",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.0037 2L12.0037 8.99995M12.0037 8.99995C12.2668 9.00351 12.5263 8.81972 12.7178 8.59534L14 7.06174M12.0037 8.99995C11.7499 8.99652 11.4929 8.81368 11.2897 8.59534L10 7.06174",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var d6,p6=L(()=>{d6=[["path",{d:"M4 7C4 5.58579 4 4.87868 4.43934 4.43934C4.87868 4 5.58579 4 7 4C8.41421 4 9.12132 4 9.56066 4.43934C10 4.87868 10 5.58579 10 7V17C10 18.4142 10 19.1213 9.56066 19.5607C9.12132 20 8.41421 20 7 20C5.58579 20 4.87868 20 4.43934 19.5607C4 19.1213 4 18.4142 4 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 7C14 5.58579 14 4.87868 14.4393 4.43934C14.8787 4 15.5858 4 17 4C18.4142 4 19.1213 4 19.5607 4.43934C20 4.87868 20 5.58579 20 7V17C20 18.4142 20 19.1213 19.5607 19.5607C19.1213 20 18.4142 20 17 20C15.5858 20 14.8787 20 14.4393 19.5607C14 19.1213 14 18.4142 14 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]]});var f6,m6=L(()=>{f6=[["path",{d:"M3 21L8 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.2585 18.8714C9.51516 18.0215 5.97844 14.4848 5.12853 10.7415C4.99399 10.1489 4.92672 9.85266 5.12161 9.37197C5.3165 8.89129 5.55457 8.74255 6.03071 8.44509C7.10705 7.77265 8.27254 7.55888 9.48209 7.66586C11.1793 7.81598 12.0279 7.89104 12.4512 7.67048C12.8746 7.44991 13.1622 6.93417 13.7376 5.90269L14.4664 4.59604C14.9465 3.73528 15.1866 3.3049 15.7513 3.10202C16.316 2.89913 16.6558 3.02199 17.3355 3.26771C18.9249 3.84236 20.1576 5.07505 20.7323 6.66449C20.978 7.34417 21.1009 7.68401 20.898 8.2487C20.6951 8.8134 20.2647 9.05346 19.4039 9.53358L18.0672 10.2792C17.0376 10.8534 16.5229 11.1406 16.3024 11.568C16.0819 11.9955 16.162 12.8256 16.3221 14.4859C16.4399 15.7068 16.2369 16.88 15.5555 17.9697C15.2577 18.4458 15.1088 18.6839 14.6283 18.8786C14.1477 19.0733 13.8513 19.006 13.2585 18.8714Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var h6,g6=L(()=>{h6=[["path",{d:"M7.5 8C6.95863 8.1281 6.49932 8.14239 5.99268 8.45891C5.07234 9.03388 4.85108 9.71674 5.08821 10.7612C5.94028 14.5139 9.48599 18.0596 13.2388 18.9117C14.2834 19.1489 14.9661 18.928 15.5416 18.0077C15.8411 17.5288 15.8716 17.0081 16 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 7.79915C12.1776 7.77794 12.3182 7.74034 12.4295 7.68235C13.3997 7.17686 13.9291 5.53361 14.4498 4.60009C14.9311 3.73715 15.1718 3.30567 15.7379 3.10227C16.3041 2.89888 16.6448 3.02205 17.3262 3.26839C18.9197 3.8445 20.1555 5.08032 20.7316 6.6738C20.9779 7.35521 21.1011 7.69591 20.8977 8.26204C20.6943 8.82817 20.2628 9.06884 19.3999 9.55018C18.4608 10.074 16.7954 10.6108 16.2905 11.5898C16.2345 11.6983 16.1978 11.8327 16.1769 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 21L8 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 3L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var C6,k6=L(()=>{C6=[["path",{d:"M18.8906 12.846C18.5371 14.189 16.8667 15.138 13.5257 17.0361C10.296 18.8709 8.6812 19.7884 7.37983 19.4196C6.8418 19.2671 6.35159 18.9776 5.95624 18.5787C5 17.6139 5 15.7426 5 12C5 8.2574 5 6.3861 5.95624 5.42132C6.35159 5.02245 6.8418 4.73288 7.37983 4.58042C8.6812 4.21165 10.296 5.12907 13.5257 6.96393C16.8667 8.86197 18.5371 9.811 18.8906 11.154C19.0365 11.7084 19.0365 12.2916 18.8906 12.846Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var y6,b6=L(()=>{y6=[["path",{d:"M14 8V11M10 11V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.00297 12.0267C7.95812 11.4726 8.42638 11 9.02009 11H14.9799C15.5736 11 16.0419 11.4726 15.997 12.0267L15.8745 13.5403C15.7864 14.6285 15.4008 15.6771 14.7546 16.5856L14.3541 17.1487C13.9759 17.6805 13.3385 18 12.6558 18H11.3442C10.6615 18 10.0241 17.6805 9.64588 17.1487L9.24535 16.5856C8.59923 15.6771 8.2136 14.6285 8.12551 13.5403L8.00297 12.0267Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 21.2109C19.5318 19.6644 22 16.1323 22 12.0224C22 6.4872 17.5228 2 12 2C6.47715 2 2 6.4872 2 12.0224C2 17.2199 5.94741 21.4933 11.0014 21.9955C11.551 22.0501 12 21.5962 12 21.0426V18.0359",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var v6,w6=L(()=>{v6=[["path",{d:"M12 7.5V13.8636M15.5 10.6818H8.5M15.5 16.5H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var x6,I6=L(()=>{x6=[["path",{d:"M12 4V20M20 12H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var _6,S6=L(()=>{_6=[["path",{d:"M12.828 6.00096C12.9388 5.68791 12.999 5.35099 12.999 5C12.999 3.34315 11.6559 2 9.99904 2C8.34219 2 6.99904 3.34315 6.99904 5C6.99904 5.35099 7.05932 5.68791 7.17008 6.00096C4.88532 6.0093 3.66601 6.09039 2.87772 6.87868C2.08951 7.66689 2.00836 8.88603 2 11.1704C2.31251 11.06 2.64876 11 2.99904 11C4.6559 11 5.99904 12.3431 5.99904 14C5.99904 15.6569 4.6559 17 2.99904 17C2.64876 17 2.31251 16.94 2 16.8296C2.00836 19.114 2.08951 20.3331 2.87772 21.1213C3.66593 21.9095 4.88508 21.9907 7.16941 21.999C7.05908 21.6865 6.99904 21.3503 6.99904 21C6.99904 19.3431 8.34219 18 9.99904 18C11.6559 18 12.999 19.3431 12.999 21C12.999 21.3503 12.939 21.6865 12.8287 21.999C15.113 21.9907 16.3322 21.9095 17.1204 21.1213C17.9086 20.333 17.9897 19.1137 17.9981 16.829C18.3111 16.9397 18.648 17 18.999 17C20.6559 17 21.999 15.6569 21.999 14C21.999 12.3431 20.6559 11 18.999 11C18.648 11 18.3111 11.0603 17.9981 11.171C17.9897 8.88627 17.9086 7.66697 17.1204 6.87868C16.3321 6.09039 15.1128 6.0093 12.828 6.00096Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var L6,P6=L(()=>{L6=[["path",{d:"M20.4879 15C19.2524 18.4956 15.9187 21 12 21C7.02943 21 3 16.9706 3 12C3 7.02943 7.02943 3 12 3C15.7292 3 18.9286 5.26806 20.2941 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 9H18C19.4142 9 20.1213 9 20.5607 8.56066C21 8.12132 21 7.41421 21 6V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var M6,R6=L(()=>{M6=[["path",{d:"M16.3884 3L17.3913 3.97574C17.8393 4.41165 18.0633 4.62961 17.9844 4.81481C17.9056 5 17.5888 5 16.9552 5H9.19422C5.22096 5 2 8.13401 2 12C2 13.4872 2.47668 14.8662 3.2895 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.61156 21L6.60875 20.0243C6.16074 19.5883 5.93673 19.3704 6.01557 19.1852C6.09441 19 6.4112 19 7.04478 19H14.8058C18.779 19 22 15.866 22 12C22 10.5128 21.5233 9.13383 20.7105 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var T6,$6=L(()=>{T6=[["path",{d:"M18.7088 3.49534C16.8165 2.55382 14.5009 2 12 2C9.4991 2 7.1835 2.55382 5.29116 3.49534C4.36318 3.95706 3.89919 4.18792 3.4496 4.91378C3 5.63965 3 6.34248 3 7.74814V11.2371C3 16.9205 7.54236 20.0804 10.173 21.4338C10.9067 21.8113 11.2735 22 12 22C12.7265 22 13.0933 21.8113 13.8269 21.4338C16.4576 20.0804 21 16.9205 21 11.2371L21 7.74814C21 6.34249 21 5.63966 20.5504 4.91378C20.1008 4.18791 19.6368 3.95706 18.7088 3.49534Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 11.5C9 11.5 10.4079 11.7519 11 13.5C11 13.5 12.5 10.5 15 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var A6,D6=L(()=>{A6=[["path",{d:"M21.0477 3.05293C18.8697 0.707363 2.48648 6.4532 2.50001 8.551C2.51535 10.9299 8.89809 11.6617 10.6672 12.1581C11.7311 12.4565 12.016 12.7625 12.2613 13.8781C13.3723 18.9305 13.9301 21.4435 15.2014 21.4996C17.2278 21.5892 23.1733 5.342 21.0477 3.05293Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.4999 12.5L14.9999 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var E6,N6=L(()=>{E6=[["path",{d:"M2 12C2 8.31087 2 6.4663 2.81382 5.15877C3.1149 4.67502 3.48891 4.25427 3.91891 3.91555C5.08116 3 6.72077 3 10 3H14C17.2792 3 18.9188 3 20.0811 3.91555C20.5111 4.25427 20.8851 4.67502 21.1862 5.15877C22 6.4663 22 8.31087 22 12C22 15.6891 22 17.5337 21.1862 18.8412C20.8851 19.325 20.5111 19.7457 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7457 3.1149 19.325 2.81382 18.8412C2 17.5337 2 15.6891 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 14.5L22 14.5",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M6 18H7M10 18H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var O6,z6=L(()=>{O6=[["path",{d:"M2 12C2 8.3109 2 6.46633 2.81382 5.1588C3.1149 4.67505 3.48891 4.2543 3.91891 3.91557C5.08116 3.00003 6.72077 3.00003 10 3.00003H14C17.2792 3.00003 18.9188 3.00003 20.0811 3.91557C20.5111 4.2543 20.8851 4.67505 21.1862 5.1588C22 6.46633 22 8.3109 22 12C22 15.6892 22 17.5337 21.1862 18.8413C20.8851 19.325 20.5111 19.7458 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7458 3.1149 19.325 2.81382 18.8413C2 17.5337 2 15.6892 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.5 3.00003L14.5 21",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 7.00006H19M18 10.0001H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Z6,j6=L(()=>{Z6=[["path",{d:"M13.5 2H10.5C8.14298 2 6.96447 2 6.23223 2.73223C5.5 3.46447 5.5 4.64298 5.5 7V17C5.5 19.357 5.5 20.5355 6.23223 21.2678C6.96447 22 8.14298 22 10.5 22H13.5C15.857 22 17.0355 22 17.7678 21.2678C18.5 20.5355 18.5 19.357 18.5 17V7C18.5 4.64298 18.5 3.46447 17.7678 2.73223C17.0355 2 15.857 2 13.5 2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.125 19H12M12.25 19C12.25 19.1381 12.1381 19.25 12 19.25C11.8619 19.25 11.75 19.1381 11.75 19C11.75 18.8619 11.8619 18.75 12 18.75C12.1381 18.75 12.25 18.8619 12.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var W6,F6=L(()=>{W6=[["path",{d:"M11.0001 8L19.0001 8.00006",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.0001 12H16.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11.0001 16H14.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.0001 4H21.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M5.5 21V3M5.5 21C4.79977 21 3.49153 19.0057 3 18.5M5.5 21C6.20023 21 7.50847 19.0057 8 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var V6,H6=L(()=>{V6=[["path",{d:"M4 14H8.42109C9.35119 14 9.81624 14 9.94012 14.2801C10.064 14.5603 9.74755 14.8963 9.11466 15.5684L5.47691 19.4316C4.84402 20.1037 4.52757 20.4397 4.65145 20.7199C4.77533 21 5.24038 21 6.17048 21H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 9L6.10557 4.30527C6.49585 3.43509 6.69098 3 7 3C7.30902 3 7.50415 3.43509 7.89443 4.30527L10 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M17.5 20V4M17.5 20C16.7998 20 15.4915 18.0057 15 17.5M17.5 20C18.2002 20 19.5085 18.0057 20 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var B6,U6=L(()=>{B6=[["path",{d:"M7 20.9994V14.9481C7 14.3736 7 14.0863 6.76959 14.0149C6.26306 13.8577 5.5 14.999 5.5 14.999M7 20.9994H5.5M7 20.9994H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 6.5V4.75C9 3.92504 9 3.51256 8.70711 3.25628C8.41421 3 7.94281 3 7 3C6.05719 3 5.58579 3 5.29289 3.25628C5 3.51256 5 3.92504 5 4.75C5 5.57496 5 5.98744 5.29289 6.24372C5.58579 6.5 6.05719 6.5 7 6.5H9ZM9 6.5V7.375C9 8.61244 9 9.23116 8.56066 9.61558C8.12132 10 7.41421 10 6 10H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5001 19.999V3.99902M16.5001 19.999C15.7998 19.999 14.4916 18.0047 14.0001 17.499M16.5001 19.999C17.2003 19.999 18.5085 18.0047 19.0001 17.499",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var G6,K6=L(()=>{G6=[["path",{d:"M7 9.99936V3.94812C7 3.3736 7 3.08634 6.76959 3.01485C6.26306 2.85769 5.5 3.99902 5.5 3.99902M7 9.99936H5.5M7 9.99936H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 17.4991V15.7491C9 14.9242 9 14.5117 8.70711 14.2554C8.41421 13.9991 7.94281 13.9991 7 13.9991C6.05719 13.9991 5.58579 13.9991 5.29289 14.2554C5 14.5117 5 14.9242 5 15.7491C5 16.5741 5 16.9866 5.29289 17.2429C5.58579 17.4991 6.05719 17.4991 7 17.4991H9ZM9 17.4991V18.3741C9 19.6116 9 20.2303 8.56066 20.6147C8.12132 20.9991 7.41421 20.9991 6 20.9991H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5 19.9991V3.99915M16.5 19.9991C15.7998 19.9991 14.4915 18.0048 14 17.4991M16.5 19.9991C17.2002 19.9991 18.5085 18.0048 19 17.4991",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var q6,J6=L(()=>{q6=[["path",{d:"M4 3H8.42109C9.35119 3 9.81624 3 9.94012 3.28013C10.064 3.56026 9.74755 3.89632 9.11466 4.56842L5.47691 8.43158C4.84402 9.10368 4.52757 9.43974 4.65145 9.71987C4.77533 10 5.24038 10 6.17048 10H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 21L6.10557 16.3053C6.49585 15.4351 6.69098 15 7 15C7.30902 15 7.50415 15.4351 7.89443 16.3053L10 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M17.5 20V3.99999M17.5 20C16.7998 20 15.4915 18.0057 15 17.5M17.5 20C18.2002 20 19.5085 18.0057 20 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Y6,X6=L(()=>{Y6=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}]]});var Q6,eC=L(()=>{Q6=[["path",{d:"M12 14.5V17.5M13 14.5C13 15.0523 12.5523 15.5 12 15.5C11.4477 15.5 11 15.0523 11 14.5C11 13.9477 11.4477 13.5 12 13.5C12.5523 13.5 13 13.9477 13 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 9V6.5C7.5 4.01472 9.51472 2 12 2C13.9593 2 15.8664 3.25221 16.5 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4.26781 18.8447C4.49269 20.515 5.87613 21.8235 7.55966 21.9009C8.97627 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.879 17.7547 20 16.6376 20 15.5C20 14.3624 19.879 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97627 9.03397 7.55966 9.09909C5.87613 9.17649 4.49269 10.485 4.26781 12.1553C4.12104 13.2453 4 14.3624 4 15.5C4 16.6376 4.12104 17.7547 4.26781 18.8447Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var tC,nC=L(()=>{tC=[["path",{d:"M13.7276 3.44418L15.4874 6.99288C15.7274 7.48687 16.3673 7.9607 16.9073 8.05143L20.0969 8.58575C22.1367 8.92853 22.6167 10.4206 21.1468 11.8925L18.6671 14.3927C18.2471 14.8161 18.0172 15.6327 18.1471 16.2175L18.8571 19.3125C19.417 21.7623 18.1271 22.71 15.9774 21.4296L12.9877 19.6452C12.4478 19.3226 11.5579 19.3226 11.0079 19.6452L8.01827 21.4296C5.8785 22.71 4.57865 21.7522 5.13859 19.3125L5.84851 16.2175C5.97849 15.6327 5.74852 14.8161 5.32856 14.3927L2.84884 11.8925C1.389 10.4206 1.85895 8.92853 3.89872 8.58575L7.08837 8.05143C7.61831 7.9607 8.25824 7.48687 8.49821 6.99288L10.258 3.44418C11.2179 1.51861 12.7777 1.51861 13.7276 3.44418Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var rC,oC=L(()=>{rC=[["path",{d:"M8 2H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.2187 13.0044L15.9921 13.6151C15.5219 14.65 14.1115 15.7439 11.7609 14.3182C10.2471 13.4001 8.93663 12.6631 7.9997 13.16L7.21891 13.5412",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5323 2V8.56602C14.5323 9.27829 14.5323 9.63442 14.6304 9.97222C14.7285 10.31 14.9197 10.612 15.3021 11.216L17.2861 14.35C19.4275 17.7326 20.4982 19.4238 19.7751 20.7119C19.0519 22 17.0317 22 12.9914 22H11.0086C6.96825 22 4.94807 22 4.22495 20.7119C3.50182 19.4238 4.57251 17.7326 6.71389 14.35L8.69792 11.216C9.08029 10.612 9.27148 10.31 9.36961 9.97222C9.46773 9.63442 9.46773 9.27829 9.46773 8.56602V2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15.125 19H15M15.25 19C15.25 19.1381 15.1381 19.25 15 19.25C14.8619 19.25 14.75 19.1381 14.75 19C14.75 18.8619 14.8619 18.75 15 18.75C15.1381 18.75 15.25 18.8619 15.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M10.125 17H10M10.25 17C10.25 17.1381 10.1381 17.25 10 17.25C9.86193 17.25 9.75 17.1381 9.75 17C9.75 16.8619 9.86193 16.75 10 16.75C10.1381 16.75 10.25 16.8619 10.25 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var iC,sC=L(()=>{iC=[["path",{d:"M3 3H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 15H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 21H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 9H16.5C18.9853 9 21 11.0147 21 13.5C21 15.9853 18.9853 18 16.5 18H12M12 18C12 17.1597 14.3932 15.5898 15 15M12 18C12 18.8403 14.3932 20.4102 15 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var aC,cC=L(()=>{aC=[["path",{d:"M12 8V12L13.5 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19.5454 16.4534C21.1818 17.337 22 17.7789 22 18.5C22 19.2211 21.1818 19.663 19.5454 20.5466L18.4311 21.1484C17.1744 21.827 16.5461 22.1663 16.2439 21.9196C15.504 21.3154 16.6567 19.7561 16.9403 19.2037C17.2277 18.644 17.2225 18.3459 16.9403 17.7963C16.6567 17.2439 15.504 15.6846 16.2439 15.0804C16.5461 14.8337 17.1744 15.173 18.4311 15.8516L19.5454 16.4534Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M13.0261 21.948C12.6888 21.9824 12.3464 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 12.6849 21.9311 13.3538 21.8 14",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]]});var uC,lC=L(()=>{uC=[["path",{d:"M21 7H3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H13C16.7712 21 18.6569 21 19.8284 19.8284C21 18.6569 21 16.7712 21 13V7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 7H3L4.2 5.4C5.08328 4.22229 5.52492 3.63344 6.15836 3.31672C6.7918 3 7.52786 3 9 3H15C16.4721 3 17.2082 3 17.8416 3.31672C18.4751 3.63344 18.9167 4.22229 19.8 5.4L21 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 11L12 17.5M9 13.5C9.58984 12.8932 11.1597 10.5 12 10.5C12.8403 10.5 14.4102 12.8932 15 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var dC,pC=L(()=>{dC=[["path",{d:"M20 21.0001C19.713 17.269 16.7289 14.3151 12.995 14.0662L12 13.9999C11.6446 14.0096 11.3134 14.0225 11.0008 14.0378C7.3 14.2192 4.28417 17.3057 4 21.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"12",cy:"6.99988",r:"4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var fC,mC=L(()=>{fC=[["path",{d:"M21.544 11.045C21.848 11.4713 22 11.6845 22 12C22 12.3155 21.848 12.5287 21.544 12.955C20.1779 14.8706 16.6892 19 12 19C7.31078 19 3.8221 14.8706 2.45604 12.955C2.15201 12.5287 2 12.3155 2 12C2 11.6845 2.15201 11.4713 2.45604 11.045C3.8221 9.12944 7.31078 5 12 5C16.6892 5 20.1779 9.12944 21.544 11.045Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]]});var hC,gC=L(()=>{hC=[["path",{d:"M22 8C22 8 18 14 12 14C6 14 2 8 2 8",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 13.5L16.5 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 11L22 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M2 13L4 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M9 13.5L7.5 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var CC,kC=L(()=>{CC=[["path",{d:"M18.5016 19.1217L21 21.6217M20 15.1217C20 12.0842 17.5376 9.62173 14.5 9.62173C11.4624 9.62173 9 12.0842 9 15.1217C9 18.1593 11.4624 20.6217 14.5 20.6217C17.5376 20.6217 20 18.1593 20 15.1217Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.5 13.1217V17.1217M16.5 15.1217H12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 3.62173H14M3 10.6217V14.6217M6.5 21.6217C4.567 21.6217 3 20.0547 3 18.1217M17.5 3.62173C19.433 3.62173 21 5.18873 21 7.12173M3 7.12173C3 5.18873 4.567 3.62173 6.5 3.62173",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var yC,bC=L(()=>{yC=[["path",{d:"M18.5016 18.5L21 21M20 14.5C20 11.4624 17.5376 9 14.5 9C11.4624 9 9 11.4624 9 14.5C9 17.5376 11.4624 20 14.5 20C17.5376 20 20 17.5376 20 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.5 14.5H12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 3H14M3 10V14M6.5 21C4.567 21 3 19.433 3 17.5M17.5 3C19.433 3 21 4.567 21 6.5M3 6.5C3 4.567 4.567 3 6.5 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var wC={};Lt(wC,{EXTENDED_ICON_MAP:()=>vC});var X_,Q_,eS,vC,xC=L(()=>{"use strict";Lg();Mg();Tg();Ag();Eg();Og();Zg();Wg();Vg();Bg();Gg();qg();Yg();Qg();t7();r7();i7();a7();u7();d7();f7();m7();g7();k7();b7();w7();I7();S7();P7();R7();$7();D7();N7();z7();j7();F7();H7();U7();K7();J7();X7();e3();n3();o3();s3();c3();Sm();l3();p3();m3();g3();k3();Am();b3();w3();Am();I3();S3();P3();R3();$3();D3();N3();z3();j3();F3();H3();U3();K3();J3();X3();e6();n6();o6();s6();c6();l6();p6();m6();g6();k6();b6();w6();I6();S6();P6();R6();$6();D6();N6();z6();j6();F6();H6();U6();K6();J6();X6();eC();nC();oC();sC();cC();lC();pC();mC();gC();kC();bC();Tm();X_=[["path",{d:"M21.8205 10.4127C22.062 11.8519 22.1827 12.5715 21.2423 13.9326C21.1459 14.0722 20.8966 14.3713 20.777 14.4911C19.6103 15.6586 18.4308 15.6586 16.0716 15.6586H14.1392C13.5085 15.6586 13.1931 15.6586 12.9639 15.7142C11.9586 15.9581 11.3031 16.9391 11.453 17.9755C11.4872 18.2118 11.6043 18.5085 11.8386 19.102C11.9345 19.3449 11.9824 19.4664 12.0136 19.7304C12.1292 20.7084 11.0869 21.9508 10.1158 21.9926C9.85358 22.0039 9.83681 22.0002 9.80326 21.9926C7.66174 21.51 5.66204 20.3123 4.18389 18.4421C0.736789 14.0808 1.43146 7.71364 5.73548 4.22064C10.0395 0.727643 16.323 1.43156 19.7701 5.79289C20.868 7.1819 21.5457 8.77438 21.8205 10.4127Z",fill:"none",fillRule:"evenodd",clipRule:"evenodd",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.36719 7.74976H7.24219M7.49219 7.74976C7.49219 7.88783 7.38026 7.99976 7.24219 7.99976C7.10412 7.99976 6.99219 7.88783 6.99219 7.74976C6.99219 7.61169 7.10412 7.49976 7.24219 7.49976C7.38026 7.49976 7.49219 7.61169 7.49219 7.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M7.36719 15.7498H7.24219M7.49219 15.7498C7.49219 15.8878 7.38026 15.9998 7.24219 15.9998C7.10412 15.9998 6.99219 15.8878 6.99219 15.7498C6.99219 15.6117 7.10412 15.4998 7.24219 15.4998C7.38026 15.4998 7.49219 15.6117 7.49219 15.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.8672 5.74976H11.7422M11.9922 5.74976C11.9922 5.88783 11.8803 5.99976 11.7422 5.99976C11.6041 5.99976 11.4922 5.88783 11.4922 5.74976C11.4922 5.61169 11.6041 5.49976 11.7422 5.49976C11.8803 5.49976 11.9922 5.61169 11.9922 5.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M16.3672 7.74976H16.2422M16.4922 7.74976C16.4922 7.88783 16.3803 7.99976 16.2422 7.99976C16.1041 7.99976 15.9922 7.88783 15.9922 7.74976C15.9922 7.61169 16.1041 7.49976 16.2422 7.49976C16.3803 7.49976 16.4922 7.61169 16.4922 7.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M18.3672 11.7498H18.2422M18.4922 11.7498C18.4922 11.8878 18.3803 11.9998 18.2422 11.9998C18.1041 11.9998 17.9922 11.8878 17.9922 11.7498C17.9922 11.6117 18.1041 11.4998 18.2422 11.4998C18.3803 11.4998 18.4922 11.6117 18.4922 11.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M5.86719 11.7498H5.74219M5.99219 11.7498C5.99219 11.8878 5.88026 11.9998 5.74219 11.9998C5.60412 11.9998 5.49219 11.8878 5.49219 11.7498C5.49219 11.6117 5.60412 11.4998 5.74219 11.4998C5.88026 11.4998 5.99219 11.6117 5.99219 11.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]],Q_=[["path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z",fill:"currentColor",key:"0"}]],eS=[["path",{d:"M10.226 17.284c-2.965-.36-5.054-2.493-5.054-5.256 0-1.123.404-2.336 1.078-3.144-.292-.741-.247-2.314.09-2.965.898-.112 2.111.36 2.83 1.01.853-.269 1.752-.404 2.853-.404 1.1 0 1.999.135 2.807.382.696-.629 1.932-1.1 2.83-.988.315.606.36 2.179.067 2.942.72.854 1.101 2 1.101 3.167 0 2.763-2.089 4.852-5.098 5.234.763.494 1.28 1.572 1.28 2.807v2.336c0 .674.561 1.056 1.235.786 4.066-1.55 7.255-5.615 7.255-10.646C23.5 6.188 18.334 1 11.978 1 5.62 1 .5 6.188.5 12.545c0 4.986 3.167 9.12 7.435 10.669.606.225 1.19-.18 1.19-.786V20.63a2.9 2.9 0 0 1-1.078.224c-1.483 0-2.359-.808-2.987-2.313-.247-.607-.517-.966-1.034-1.033-.27-.023-.359-.135-.359-.27 0-.27.45-.471.898-.471.652 0 1.213.404 1.797 1.235.45.651.921.943 1.483.943.561 0 .92-.202 1.437-.719.382-.381.674-.718.944-.943",fill:"currentColor",key:"0"}]],vC={AiBrain01:Sg,AiBrowser:Pg,AiContentGenerator01:Rg,AlignLeft:Y3,AppWindow:$m,ArchiveRestore:uC,ArrowDown:$g,ArrowLeft:Ng,ArrowRight:Hg,ArrowReloadHorizontal:Fg,ArrowUp:Xg,ArrowUpDown:n7,ArrowTurnBackward:Ug,ArrowTurnForward:Kg,ArrowUpRight:o7,Beaker:rC,BellDot:c7,Browser:$m,Brain:p7,Calendar:h7,CalendarCheckOut02:C7,ChartColumn:y7,ChevronUp:Jg,ChevronsDown:Dg,ChevronsUp:e7,CircleArrowShrink:v7,Clean:x7,Clock:_7,ClockArrowUp:M7,ClockArrowDown:L7,Cloud:T7,CloudOff:A7,Coffee:E7,Columns2:A3,CornerDownLeft:zg,CornerDownRight:jg,Discord:V7,DiscordLogo:Q_,DateTime:W7,Github:x3,GithubLogo:eS,DragDropHorizontal:B7,DragDropVertical:G7,EditFile:q7,ElectricPlugs:Y7,Eye:fC,EyeOff:hC,Explore:l7,ExternalLink:Z3,FileDiff:v6,File:i3,FileAttachment:r3,FileQuestion:a3,FileText:t3,FolderOpen:lu,FolderEdit:u3,FolderMinus:d3,Fork:h3,GitBranch:f3,GitMerge:C3,GitPullRequest:pu,GitPullRequestArrow:pu,GitPullRequestClosed:y3,GitPullRequestDraft:v3,Globe:L3,GridView:_3,Laptop:M3,Layers:T3,Limitation:O3,ListEnd:W3,ListView:V3,Lock:B3,Mail:G3,MailOpen:q3,Maximize2:Q7,Mic:t6,Minus:r6,Minimize2:O7,MoveTo:i6,NewTab:Z7,News01:a6,PackageReceive:u6,Palette:X_,PanelBottom:E6,PanelRight:O6,Paperclip:s7,Pause:d6,Pin:f6,PinOff:h6,Play:C6,Plug02:y6,Plus:x6,Puzzle:_6,Repeat:M6,SecurityCheck:T6,RotateCcw:L6,Rows2:E3,Sent:A6,SideChat:Q3,Smartphone:Z6,Sort:W6,SortingAZ02:V6,SortingZA01:q6,SortingOneNine:G6,SortingNineOne:B6,Square:Y6,SquareUnlock02:Q6,Star:tC,TextWrap:iC,TimeSchedule:aC,UserRound:dC,ZoomIn:CC,ZoomOut:yC};Ig(vC)});var Eu=globalThis.__bbPluginRuntime;if(Eu==null||Eu.pluginSdkApp==null)throw new Error('Cannot load "@get-bb/plugin-sdk/app": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var os=Eu.pluginSdkApp,hL="default"in os?os.default:os,{Markdown:gL,ThreadChat:CL,ThreadTitle:kL,UrlLink:yL,definePluginApp:mh,experimental_BranchPicker:bL,experimental_Diff:vL,experimental_FileLink:wL,experimental_Icon:B,experimental_NewThreadComposer:xL,experimental_PermissionModePicker:IL,experimental_ProviderIcon:is,experimental_ProviderModelPicker:_L,experimental_SourceCode:SL,experimental_useAppPanel:LL,experimental_useBranches:PL,experimental_useCheckoutState:ML,experimental_useCodeTheme:RL,experimental_useFixedTabTarget:TL,experimental_useProviders:hh,experimental_useSidebarThreadActions:gh,experimental_useSidebarThreadPullRequest:ss,experimental_useSidebarThreadSplit:Ch,experimental_useSidebarThreads:kh,useBbContext:$L,useBbNavigate:AL,useComposer:DL,useComposerView:EL,useEnvironmentProviders:yh,useRealtime:fn,useRealtimeConnectionState:mn,useRpc:hn,useSdk:bh,useSettings:NL,useSidebarSplitLayout:vh,useSidebarThreadDraft:wh,useSidebarThreadDraftIds:xh,useSidebarThreadRowStatus:Ih,useSidebarThreadRowStatuses:OL,useSidebarThreadShortcut:_h}=os;var it={};Lt(it,{Activity:()=>Qk,Children:()=>cs,Component:()=>Ou,Fragment:()=>mr,Profiler:()=>ey,PureComponent:()=>ty,StrictMode:()=>ny,Suspense:()=>ry,act:()=>oy,cache:()=>iy,cacheSignal:()=>sy,captureOwnerStack:()=>ay,cloneElement:()=>hr,createContext:()=>we,createElement:()=>_o,createRef:()=>cy,default:()=>qe,forwardRef:()=>H,isValidElement:()=>gr,lazy:()=>uy,memo:()=>ft,startTransition:()=>ly,unstable_useCacheRefresh:()=>dy,use:()=>py,useActionState:()=>fy,useCallback:()=>Z,useContext:()=>xe,useDebugValue:()=>my,useDeferredValue:()=>hy,useEffect:()=>z,useEffectEvent:()=>gy,useId:()=>gn,useImperativeHandle:()=>Cy,useInsertionEffect:()=>ky,useLayoutEffect:()=>ot,useMemo:()=>q,useOptimistic:()=>yy,useReducer:()=>zu,useRef:()=>$,useState:()=>E,useSyncExternalStore:()=>Kt,useTransition:()=>by,version:()=>vy});var Nu=globalThis.__bbPluginRuntime;if(Nu==null||Nu.react==null)throw new Error('Cannot load "react": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var as=Nu.react,qe="default"in as?as.default:as,{Activity:Qk,Children:cs,Component:Ou,Fragment:mr,Profiler:ey,PureComponent:ty,StrictMode:ny,Suspense:ry,act:oy,cache:iy,cacheSignal:sy,captureOwnerStack:ay,cloneElement:hr,createContext:we,createElement:_o,createRef:cy,forwardRef:H,isValidElement:gr,lazy:uy,memo:ft,startTransition:ly,unstable_useCacheRefresh:dy,use:py,useActionState:fy,useCallback:Z,useContext:xe,useDebugValue:my,useDeferredValue:hy,useEffect:z,useEffectEvent:gy,useId:gn,useImperativeHandle:Cy,useInsertionEffect:ky,useLayoutEffect:ot,useMemo:q,useOptimistic:yy,useReducer:zu,useRef:$,useState:E,useSyncExternalStore:Kt,useTransition:by,version:vy}=as;var Zu=globalThis.__bbPluginRuntime;if(Zu==null||Zu.reactDom==null)throw new Error('Cannot load "react-dom": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var us=Zu.reactDom,ZL="default"in us?us.default:us,{createPortal:ls,flushSync:jL,preconnect:WL,prefetchDNS:FL,preinit:VL,preinitModule:HL,preload:BL,preloadModule:UL,requestFormReset:GL,unstable_batchedUpdates:So,useFormState:KL,useFormStatus:qL,version:JL}=us;var Lo=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Zn(e){let t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function ds(e){return"nodeType"in e}function Je(e){var t,n;return e?Zn(e)?e:ds(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function ps(e){let{Document:t}=Je(e);return e instanceof t}function Cr(e){return Zn(e)?!1:e instanceof Je(e).HTMLElement}function Wu(e){return e instanceof Je(e).SVGElement}function jn(e){return e?Zn(e)?e.document:ds(e)?ps(e)?e:Cr(e)||Wu(e)?e.ownerDocument:document:document:document}var qt=Lo?ot:z;function fs(e){let t=$(e);return qt(()=>{t.current=e}),Z(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function Lh(){let e=$(null),t=Z((r,o)=>{e.current=setInterval(r,o)},[]),n=Z(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function kr(e,t){t===void 0&&(t=[e]);let n=$(e);return qt(()=>{n.current!==e&&(n.current=e)},t),n}function yr(e,t){let n=$();return q(()=>{let r=e(n.current);return n.current=r,r},[...t])}function Po(e){let t=fs(e),n=$(null),r=Z(o=>{o!==n.current&&t?.(o,n.current),n.current=o},[]);return[n,r]}function ms(e){let t=$();return z(()=>{t.current=e},[e]),t.current}var ju={};function Mo(e,t){return q(()=>{if(t)return t;let n=ju[e]==null?0:ju[e]+1;return ju[e]=n,e+"-"+n},[e,t])}function Ph(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,s)=>{let a=Object.entries(s);for(let[c,u]of a){let l=i[c];l!=null&&(i[c]=l+e*u)}return i},{...t})}}var Wn=Ph(1),Ro=Ph(-1);function wy(e){return"clientX"in e&&"clientY"in e}function Fu(e){if(!e)return!1;let{KeyboardEvent:t}=Je(e.target);return t&&e instanceof t}function xy(e){if(!e)return!1;let{TouchEvent:t}=Je(e.target);return t&&e instanceof t}function hs(e){if(xy(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return wy(e)?{x:e.clientX,y:e.clientY}:null}var Sh="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Mh(e){return e.matches(Sh)?e:e.querySelector(Sh)}var Iy={display:"none"};function Rh(e){let{id:t,value:n}=e;return qe.createElement("div",{id:t,style:Iy},n)}function Th(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e,o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return qe.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function $h(){let[e,t]=E("");return{announce:Z(r=>{r!=null&&t(r)},[]),announcement:e}}var Vh=we(null);function _y(e){let t=xe(Vh);z(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Sy(){let[e]=E(()=>new Set),t=Z(r=>(e.add(r),()=>e.delete(r)),[e]);return[Z(r=>{let{type:o,event:i}=r;e.forEach(s=>{var a;return(a=s[o])==null?void 0:a.call(s,i)})},[e]),t]}var Ly={draggable:`
1
+ var Qk=Object.defineProperty;var L=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(r){throw n=[r],r}};var Lt=(e,t)=>{for(var n in t)Qk(e,n,{get:t[n],enumerable:!0})};var du,Lm=L(()=>{du=[["path",{d:"M2 19V7.54902C2 6.10516 2 5.38322 2.24332 4.81647C2.5467 4.10985 3.10985 3.5467 3.81647 3.24332C4.38322 3 5.09805 3 6.54902 3H7.04311C7.64819 3 8.22075 3.27394 8.60041 3.74509L10.4175 6M10.4175 6H16C17.4001 6 18.1002 6 18.635 6.27248C19.1054 6.51217 19.4878 6.89462 19.7275 7.36502C20 7.8998 20 8.59987 20 10V11M10.4175 6H7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.15802 15.5144L3.45643 14.7717C4.19029 12.9449 4.55723 12.0316 5.3224 11.5158C6.08757 11 7.07557 11 9.05157 11H17.1119C19.8004 11 21.1446 11 21.7422 11.8787C22.3397 12.7575 21.8405 14.0002 20.842 16.4856L20.5436 17.2283C19.8097 19.0551 19.4428 19.9684 18.6776 20.4842C17.9124 21 16.9244 21 14.9484 21H6.88812C4.19961 21 2.85535 21 2.25782 20.1213C1.66029 19.2425 2.15953 17.9998 3.15802 15.5144Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});function _g(e){if(Pm!==e){Pm=e;for(let t of Mm)t()}}function pu(){return Pm}function Sg(e){return Mm.add(e),()=>{Mm.delete(e)}}function Vi(e){return Y_.get(e)}function Rm(e){return wg.add(e),()=>{wg.delete(e)}}function Hi(e){return X_.get(e)}function Tm(e){return xg.add(e),()=>{xg.delete(e)}}var Ig,Pm,Mm,Y_,wg,X_,xg,$m=L(()=>{"use strict";Ig=["AiBrain01","AiBrowser","AiContentGenerator01","AlignLeft","AppWindow","ArchiveRestore","ArrowDown","ArrowLeft","ArrowRight","ArrowReloadHorizontal","ArrowUp","ArrowUpDown","ArrowTurnBackward","ArrowTurnForward","ArrowUpRight","Beaker","BellDot","Browser","Brain","Calendar","CalendarCheckOut02","ChartColumn","ChevronUp","ChevronsDown","ChevronsUp","CircleArrowShrink","Clean","Clock","ClockArrowUp","ClockArrowDown","Cloud","CloudOff","Coffee","Columns2","CornerDownLeft","CornerDownRight","Discord","DiscordLogo","DateTime","Github","GithubLogo","DragDropHorizontal","DragDropVertical","EditFile","ElectricPlugs","Eye","EyeOff","Explore","ExternalLink","FileDiff","File","FileAttachment","FileQuestion","FileText","FolderOpen","FolderEdit","FolderMinus","Fork","GitBranch","GitMerge","GitPullRequest","GitPullRequestArrow","GitPullRequestClosed","GitPullRequestDraft","Globe","GridView","Laptop","Layers","Limitation","ListEnd","ListView","Lock","Mail","MailOpen","Maximize2","Mic","Minus","Minimize2","MoveTo","NewTab","News01","PackageReceive","Palette","PanelBottom","PanelRight","Paperclip","Pause","Pin","PinOff","Play","Plug02","Plus","Puzzle","Repeat","RotateCcw","Rows2","SecurityCheck","Sent","SideChat","Smartphone","Sort","SortingAZ02","SortingZA01","SortingOneNine","SortingNineOne","Square","SquareUnlock02","Star","TextWrap","TimeSchedule","UserRound","ZoomIn","ZoomOut"],Pm=null,Mm=new Set;Y_=new Map,wg=new Set;X_=new Map,xg=new Set});var Lg,Pg=L(()=>{Lg=[["path",{d:"M7 4.5C5.34315 4.5 4 5.84315 4 7.5C4 8.06866 4.15822 8.60037 4.43304 9.0535C3.04727 9.31855 2 10.537 2 12C2 13.463 3.04727 14.6814 4.43304 14.9465M7 4.5C7 3.11929 8.11929 2 9.5 2C10.8807 2 12 3.11929 12 4.5V19.5C12 20.8807 10.8807 22 9.5 22C8.11929 22 7 20.8807 7 19.5C5.34315 19.5 4 18.1569 4 16.5C4 15.9313 4.15822 15.3996 4.43304 14.9465M7 4.5C7 5.31791 7.39278 6.04408 8 6.50018M4.43304 14.9465C4.78948 14.3588 5.34207 13.9032 6 13.6707",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 19.4999C18.6569 19.4999 20 18.1567 20 16.4999C20 15.9312 19.8418 15.3995 19.567 14.9464C20.9527 14.6813 22 13.4629 22 11.9999C22 10.5369 20.9527 9.31843 19.567 9.05338M17 19.4999C17 20.8806 15.8807 21.9999 14.5 21.9999C13.1193 21.9999 12 20.8806 12 19.4999L12 4.49988C12 3.11917 13.1193 1.99988 14.5 1.99988C15.8807 1.99988 17 3.11917 17 4.49988C18.6569 4.49988 20 5.84302 20 7.49988C20 8.06854 19.8418 8.60024 19.567 9.05338M17 19.4999C17 18.682 16.6072 17.9558 16 17.4997M19.567 9.05338C19.2105 9.64109 18.6579 10.0966 18 10.3292",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Mg,Rg=L(()=>{Mg=[["path",{d:"M18.4737 15.5215C18.4795 15.4928 18.5205 15.4928 18.5263 15.5215C18.8302 17.0081 19.9919 18.1698 21.4785 18.4737C21.5072 18.4795 21.5072 18.5205 21.4785 18.5263C19.9919 18.8302 18.8302 19.9919 18.5263 21.4785C18.5205 21.5072 18.4795 21.5072 18.4737 21.4785C18.1698 19.9919 17.0081 18.8302 15.5215 18.5263C15.4928 18.5205 15.4928 18.4795 15.5215 18.4737C17.0081 18.1698 18.1698 17.0081 18.4737 15.5215Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 7.5H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.5 20.5H10.5C6.72876 20.5 4.84315 20.5 3.67157 19.3284C2.5 18.1569 2.5 16.2712 2.5 12.5V10.5C2.5 6.72876 2.5 4.84315 3.67157 3.67157C4.84315 2.5 6.72876 2.5 10.5 2.5H12.5C16.2712 2.5 18.1569 2.5 19.3284 3.67157C20.5 4.84315 20.5 6.72876 20.5 10.5V12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Tg,$g=L(()=>{Tg=[["path",{d:"M11 21H10C6.22876 21 4.34315 21 3.17157 19.8284C2 18.6569 2 16.7712 2 13V10C2 6.22876 2 4.34315 3.17157 3.17157C4.34315 2 6.22876 2 10 2H12C15.7712 2 17.6569 2 18.8284 3.17157C20 4.34315 20 6.22876 20 10V10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.4069 14.4036C17.6192 13.8655 18.3808 13.8655 18.5931 14.4036L18.6298 14.4969C19.1482 15.8113 20.1887 16.8518 21.5031 17.3702L21.5964 17.4069C22.1345 17.6192 22.1345 18.3808 21.5964 18.5931L21.5031 18.6298C20.1887 19.1482 19.1482 20.1887 18.6298 21.5031L18.5931 21.5964C18.3808 22.1345 17.6192 22.1345 17.4069 21.5964L17.3702 21.5031C16.8518 20.1887 15.8113 19.1482 14.4969 18.6298L14.4036 18.5931C13.8655 18.3808 13.8655 17.6192 14.4036 17.4069L14.4969 17.3702C15.8113 16.8518 16.8518 15.8113 17.3702 14.4969L17.4069 14.4036Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M7 7H15M7 11.5H15M7 16H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Ag,Dg=L(()=>{Ag=[["path",{d:"M12 18.502V5.00195",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 13.002C18 13.002 13.5811 19.0019 12 19.002C10.4188 19.002 6 13.002 6 13.002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Eg,Ng=L(()=>{Eg=[["path",{d:"M17.9997 12.5C17.9997 12.5 13.5807 18.5 11.9996 18.5C10.4185 18.5 5.99966 12.5 5.99966 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.9997 5.50005C17.9997 5.50005 13.5807 11.5 11.9996 11.5C10.4185 11.5 5.99966 5.5 5.99966 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Og,zg=L(()=>{Og=[["path",{d:"M5.5 12.002H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10.9999 18.002C10.9999 18.002 4.99998 13.583 4.99997 12.0019C4.99996 10.4208 11 6.00195 11 6.00195",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Zg,jg=L(()=>{Zg=[["path",{d:"M20 3V5.07692C20 7.07786 20 8.07833 19.8547 8.91545C19.0547 13.5235 15.0934 17.1376 10.0426 17.8674C9.12509 18 7.19318 18 5 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 21C6.39316 20.4102 4 18.8403 4 18C4 17.1597 6.39316 15.5898 7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Wg,Fg=L(()=>{Wg=[["path",{d:"M4 3V5.07692C4 7.07786 4 8.07833 4.14533 8.91545C4.94529 13.5235 8.90656 17.1376 13.9574 17.8674C14.8749 18 16.8068 18 19 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 21C17.6068 20.4102 20 18.8403 20 18C20 17.1597 17.6068 15.5898 17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Vg,Hg=L(()=>{Vg=[["path",{d:"M20.5 5.5H9.5C5.78672 5.5 3 8.18503 3 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.5 18.5H14.5C18.2133 18.5 21 15.815 21 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18.5 3C18.5 3 21 4.84122 21 5.50002C21 6.15882 18.5 8 18.5 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M5.49998 16C5.49998 16 3.00001 17.8412 3 18.5C2.99999 19.1588 5.5 21 5.5 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var Bg,Ug=L(()=>{Bg=[["path",{d:"M18.5 12L4.99997 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 18C13 18 19 13.5811 19 12C19 10.4188 13 6 13 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Gg,Kg=L(()=>{Gg=[["path",{d:"M11 6H15.5C17.9853 6 20 8.01472 20 10.5C20 12.9853 17.9853 15 15.5 15H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.99998 12C6.99998 12 4.00001 14.2095 4 15C3.99999 15.7906 7 18 7 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var qg,Jg=L(()=>{qg=[["path",{d:"M13 6H8.5C6.01472 6 4 8.01472 4 10.5C4 12.9853 6.01472 15 8.5 15H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 12C17 12 20 14.2095 20 15C20 15.7906 17 18 17 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Yg,Xg=L(()=>{Yg=[["path",{d:"M17.9998 15C17.9998 15 13.5809 9.00001 11.9998 9C10.4187 8.99999 5.99985 15 5.99985 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var Qg,e7=L(()=>{Qg=[["path",{d:"M12 5.5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 11C18 11 13.5811 5.00001 12 5C10.4188 4.99999 6 11 6 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var t7,n7=L(()=>{t7=[["path",{d:"M18 11.5C18 11.5 13.5811 5.50001 12 5.5C10.4188 5.49999 6 11.5 6 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 18.5C18 18.5 13.5811 12.5 12 12.5C10.4188 12.5 6 18.5 6 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var r7,o7=L(()=>{r7=[["path",{d:"M7 4V20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 19L17 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 6.99998C10 6.99998 7.79053 4.00001 6.99998 4C6.20942 3.99999 4 7 4 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M20 17C20 17 17.7905 20 17 20C16.2094 20 14 17 14 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var i7,s7=L(()=>{i7=[["path",{d:"M9 6.65032C9 6.65032 15.9383 6.10759 16.9154 7.08463C17.8924 8.06167 17.3496 15 17.3496 15M16.5 7.5L6.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var a7,c7=L(()=>{a7=[["path",{d:"M19.5 12.0001V13.5001C19.5 17.6422 16.1421 21.0001 12 21.0001C7.85786 21.0001 4.5 17.6422 4.5 13.5001V8C4.5 5.23858 6.73858 3 9.5 3C12.2614 3 14.5 5.23858 14.5 8V13.5C14.5 14.8807 13.3807 16 12 16C10.6193 16 9.5 14.8807 9.5 13.5V9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var u7,l7=L(()=>{u7=[["path",{d:"M19 11V12.7558C19 13.5514 19.3161 14.3145 19.8787 14.8771L20.4819 15.4803C20.8136 15.8121 21 16.262 21 16.7311C21 17.708 20.208 18.5 19.2311 18.5H4.76887C3.79195 18.5 3 17.708 3 16.7311C3 16.262 3.18636 15.8121 3.51809 15.4803L4.12132 14.8771C4.68393 14.3145 5 13.5514 5 12.7558V10C5 6.13401 8.13401 3 12 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5 18.5C15.5 20.433 13.933 22 12 22C10.067 22 8.5 20.433 8.5 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 5C21 3.34315 19.6568 2 18 2C16.3431 2 15 3.34315 15 5C15 6.65684 16.3431 8 18 8C19.6568 8 21 6.65684 21 5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var d7,p7=L(()=>{d7=[["path",{d:"M15.5 7H8.5M12.499 11H8.49902",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20 22H6C4.89543 22 4 21.1046 4 20M4 20C4 18.8954 4.89543 18 6 18H20V6C20 4.11438 20 3.17157 19.4142 2.58579C18.8284 2 17.8856 2 16 2H10C7.17157 2 5.75736 2 4.87868 2.87868C4 3.75736 4 5.17157 4 8V20Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M19.5 18C19.5 18 18.5 18.7628 18.5 20C18.5 21.2372 19.5 22 19.5 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var f7,m7=L(()=>{f7=[["path",{d:"M16.998 7.12652C17.3182 7.04393 17.654 7 18 7C20.2091 7 22 8.79086 22 11C22 13.2091 20.2091 15 18 15C17.6451 15 17.3009 14.9538 16.9733 14.867M16.998 7.12652C16.9993 7.08451 17 7.04233 17 7C17 4.79086 15.2091 3 13 3C11.0824 3 9.47994 4.34939 9.09041 6.15043M16.998 7.12652C16.9769 7.80763 16.7854 8.44584 16.4649 9M16.9733 14.867C16.9909 14.7472 17 14.6247 17 14.5C17 13.2905 16.1411 12.2816 15 12.05M16.9733 14.867C16.7957 16.0737 15.756 17 14.5 17H14C11.7909 17 10 18.7909 10 21M9.09041 6.15043C8.74377 6.05243 8.37801 6 8 6C5.79086 6 4 7.79086 4 10C4 10.3886 4.05542 10.7643 4.15878 11.1195M9.09041 6.15043C10.1015 6.43625 10.9498 7.10965 11.4649 8M4.15878 11.1195C2.9114 11.4832 2 12.6352 2 14C2 15.6569 3.34315 17 5 17C6.30622 17 7.41746 16.1652 7.82929 15M4.15878 11.1195C4.24921 11.4303 4.37632 11.7255 4.53513 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.8361 11.7435C11.3257 12.2353 10.453 12.3202 9.70713 11.9008C8.9612 11.4814 8.58031 10.6917 8.73535 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var Am,h7=L(()=>{Am=[["path",{d:"M3 12C3 7.75736 3 5.63604 4.31802 4.31802C5.63604 3 7.75736 3 12 3C16.2426 3 18.364 3 19.682 4.31802C21 5.63604 21 7.75736 21 12C21 16.2426 21 18.364 19.682 19.682C18.364 21 16.2426 21 12 21C7.75736 21 5.63604 21 4.31802 19.682C3 18.364 3 16.2426 3 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 9H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var g7,C7=L(()=>{g7=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12.1258 14H12.0008M12.1258 18H12.0008M7.625 14H7.5M7.625 18H7.5M16.625 14H16.5M12.2508 14C12.2508 14.1381 12.1389 14.25 12.0008 14.25C11.8628 14.25 11.7508 14.1381 11.7508 14C11.7508 13.8619 11.8628 13.75 12.0008 13.75C12.1389 13.75 12.2508 13.8619 12.2508 14ZM12.2508 18C12.2508 18.1381 12.1389 18.25 12.0008 18.25C11.8628 18.25 11.7508 18.1381 11.7508 18C11.7508 17.8619 11.8628 17.75 12.0008 17.75C12.1389 17.75 12.2508 17.8619 12.2508 18ZM7.75 14C7.75 14.1381 7.63807 14.25 7.5 14.25C7.36193 14.25 7.25 14.1381 7.25 14C7.25 13.8619 7.36193 13.75 7.5 13.75C7.63807 13.75 7.75 13.8619 7.75 14ZM7.75 18C7.75 18.1381 7.63807 18.25 7.5 18.25C7.36193 18.25 7.25 18.1381 7.25 18C7.25 17.8619 7.36193 17.75 7.5 17.75C7.63807 17.75 7.75 17.8619 7.75 18ZM16.75 14C16.75 14.1381 16.6381 14.25 16.5 14.25C16.3619 14.25 16.25 14.1381 16.25 14C16.25 13.8619 16.3619 13.75 16.5 13.75C16.6381 13.75 16.75 13.8619 16.75 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var k7,y7=L(()=>{k7=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M13.5 18.5C14.0057 18.0085 16 16.7002 16 16C16 15.2998 14.0057 13.9915 13.5 13.5M15.5 16L9 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var b7,v7=L(()=>{b7=[["path",{d:"M8 9V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 5V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 13V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var w7,x7=L(()=>{w7=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.115 11.1151C11.6324 10.5977 11.5463 8.4 11.5463 8.4M11.115 11.1151C10.5977 11.6324 8.4 11.5462 8.4 11.5462M11.115 11.1151L7.5 7.5M12.8882 12.8882C13.4055 12.3708 15.6032 12.4569 15.6032 12.4569M12.8882 12.8882C12.3709 13.4055 12.457 15.6032 12.457 15.6032M12.8882 12.8882L16.5 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var I7,_7=L(()=>{I7=[["path",{d:"M21 3L13 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.44573 11.0854C6.96539 12.0368 4.98269 11.8736 3 11.0885C3.50059 17.531 6.50414 20.0089 10.5089 21C10.5089 21 13.5261 18.8664 13.961 13.8074C14.0081 13.2595 14.0317 12.9856 13.9178 12.6769C13.8038 12.3682 13.5802 12.1468 13.1329 11.704C12.3973 10.9757 12.0295 10.6116 11.5929 10.5204C11.1564 10.4293 10.5862 10.648 9.44573 11.0854Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4.5 16.4464C4.5 16.4464 7 16.9286 9.5 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.5 7.25C8.5 7.94036 7.94036 8.5 7.25 8.5C6.55964 8.5 6 7.94036 6 7.25C6 6.55964 6.55964 6 7.25 6C7.94036 6 8.5 6.55964 8.5 7.25Z",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["path",{d:"M11.125 4H11M11.25 4C11.25 4.13807 11.1381 4.25 11 4.25C10.8619 4.25 10.75 4.13807 10.75 4C10.75 3.86193 10.8619 3.75 11 3.75C11.1381 3.75 11.25 3.86193 11.25 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var S7,L7=L(()=>{S7=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var P7,M7=L(()=>{P7=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 19C22 19 19.7905 22 19 22C18.2094 22 16 19 16 19M19 21V15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var R7,T7=L(()=>{R7=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 18C22 18 19.7905 15 19 15C18.2094 15 16 18 16 18M19 16V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var $7,A7=L(()=>{$7=[["path",{d:"M17.4776 10.0001C17.485 10 17.4925 10 17.5 10C19.9853 10 22 12.0147 22 14.5C22 16.9853 19.9853 19 17.5 19H7C4.23858 19 2 16.7614 2 14C2 11.4003 3.98398 9.26407 6.52042 9.0227M17.4776 10.0001C17.4924 9.83536 17.5 9.66856 17.5 9.5C17.5 6.46243 15.0376 4 12 4C9.12324 4 6.76233 6.20862 6.52042 9.0227M17.4776 10.0001C17.3753 11.1345 16.9286 12.1696 16.2428 13M6.52042 9.0227C6.67826 9.00768 6.83823 9 7 9C8.12582 9 9.16474 9.37209 10.0005 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var D7,E7=L(()=>{D7=[["path",{d:"M17.4776 10.5001C17.485 10.5 17.4925 10.5 17.5 10.5C19.9853 10.5 22 12.5147 22 15C22 15.8582 21.7597 16.6604 21.3428 17.3428M17.4776 10.5001C17.4924 10.3354 17.5 10.1686 17.5 10C17.5 6.96243 15.0376 4.5 12 4.5C10.9945 4.5 10.052 4.76982 9.24101 5.24101M17.4776 10.5001C17.4039 11.3178 17.1512 12.0839 16.759 12.759M6.52042 9.5227C3.98398 9.76407 2 11.9003 2 14.5C2 17.2614 4.23858 19.5 7 19.5H17.5C18.0928 19.5 18.6588 19.3854 19.1771 19.1771M6.52042 9.5227C6.67826 9.50768 6.83823 9.5 7 9.5C8.12582 9.5 9.16474 9.87209 10.0005 10.5M6.52042 9.5227C6.59145 8.69641 6.84518 7.92232 7.24101 7.24101",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 2L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var N7,O7=L(()=>{N7=[["path",{d:"M18.2505 10.5H19.6403C21.4918 10.5 22.0421 10.7655 21.9975 12.0838C21.9237 14.2674 20.939 16.8047 17 17.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5.94627 20.6145C2.57185 18.02 2.07468 14.3401 2.00143 10.5001C1.96979 8.8413 2.45126 8.5 4.65919 8.5H15.3408C17.5487 8.5 18.0302 8.8413 17.9986 10.5001C17.9253 14.3401 17.4281 18.02 14.0537 20.6145C13.0934 21.3528 12.2831 21.5 10.9194 21.5H9.08064C7.71686 21.5 6.90658 21.3528 5.94627 20.6145Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11.3089 2.5C10.7622 2.83861 10.0012 4 10.0012 5.5M7.53971 4C7.53971 4 7 4.5 7 5.5M14.0012 4C13.7279 4.1693 13.5 5 13.5 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var z7,Z7=L(()=>{z7=[["path",{d:"M13 4L13 7.00002C13 8.88563 13.0001 9.82843 13.5858 10.4142C14.1716 11 15.1144 11 17 11L20 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.0001 20L11 17C11 15.1144 11 14.1715 10.4142 13.5858C9.82843 13 8.88563 13 7.00002 13L4.00006 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var j7,W7=L(()=>{j7=[["path",{d:"M6.3 2.75143C5.26076 2.94471 4.49591 3.28657 3.89124 3.89124C3.28657 4.49591 2.94471 5.26076 2.75143 6.3M17.7 2.75143C18.7392 2.94471 19.5041 3.28657 20.1088 3.89124C20.7134 4.49591 21.0553 5.26076 21.2486 6.3M13.9 2.50495C13.3156 2.5 12.6839 2.5 12 2.5C11.3161 2.5 10.6844 2.5 10.1 2.50495M21.495 10.1C21.5 10.6844 21.5 11.3161 21.5 12C21.5 12.6839 21.5 13.3156 21.495 13.9001M2.50495 10.1C2.5 10.6844 2.5 11.3161 2.5 12C2.5 12.6839 2.5 13.3156 2.50496 13.9001M2.75143 17.7C2.94471 18.7392 3.28657 19.5041 3.89124 20.1088C4.49591 20.7134 5.26076 21.0553 6.3 21.2486M21.2486 17.7C21.0553 18.7392 20.7134 19.5041 20.1088 20.1088C19.5041 20.7134 18.7392 21.0553 17.7 21.2486M13.9 21.495C13.3156 21.5 12.6839 21.5 12 21.5C11.3162 21.5 10.6845 21.5 10.1002 21.495",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var F7,V7=L(()=>{F7=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18.2671 18.7011L17 18V16.2668M21 18C21 20.2091 19.2091 22 17 22C14.7909 22 13 20.2091 13 18C13 15.7909 14.7909 14 17 14C19.2091 14 21 15.7909 21 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var H7,B7=L(()=>{H7=[["path",{d:"M15.5 17.5C16.5 19 17.3333 19.6667 18 20C19.3333 19.6667 22 18.2 22 15C22 11.8 20.6667 7.33333 20 5.5C18 4.3 15.8333 4 15 4L14.198 5.60393C13.4135 5.28708 12.4058 5.25438 12 5.27763C11.5942 5.25438 10.5865 5.28708 9.80197 5.60393L9 4C8.16667 4 6 4.3 4 5.5C3.33333 7.33333 2 11.8 2 15C2 18.2 4.66667 19.6667 6 20C6.66667 19.6667 7.5 19 8.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.3652 11.5C17.3652 12.6046 16.5817 13.5 15.6152 13.5C14.6487 13.5 13.8652 12.6046 13.8652 11.5C13.8652 10.3954 14.6487 9.5 15.6152 9.5C16.5817 9.5 17.3652 10.3954 17.3652 11.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 11.5C10 12.6046 9.2165 13.5 8.25 13.5C7.2835 13.5 6.5 12.6046 6.5 11.5C6.5 10.3954 7.2835 9.5 8.25 9.5C9.2165 9.5 10 10.3954 10 11.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M17.5 16.5C16.4022 17.3967 14.3502 18 12 18C9.64981 18 7.59785 17.3967 6.5 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var U7,G7=L(()=>{U7=[["path",{d:"M6 8C6.55228 8 7 8.44772 7 9C7 9.55228 6.55228 10 6 10C5.44772 10 5 9.55228 5 9C5 8.44772 5.44772 8 6 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 14C6.55228 14 7 14.4477 7 15C7 15.5523 6.55228 16 6 16C5.44772 16 5 15.5523 5 15C5 14.4477 5.44772 14 6 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 8C18.5523 8 19 8.44772 19 9C19 9.55228 18.5523 10 18 10C17.4477 10 17 9.55228 17 9C17 8.44772 17.4477 8 18 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 8C12.5523 8 13 8.44772 13 9C13 9.55228 12.5523 10 12 10C11.4477 10 11 9.55228 11 9C11 8.44772 11.4477 8 12 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M18 14C18.5523 14 19 14.4477 19 15C19 15.5523 18.5523 16 18 16C17.4477 16 17 15.5523 17 15C17 14.4477 17.4477 14 18 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M12 14C12.5523 14 13 14.4477 13 15C13 15.5523 12.5523 16 12 16C11.4477 16 11 15.5523 11 15C11 14.4477 11.4477 14 12 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var K7,q7=L(()=>{K7=[["path",{d:"M16 6C16 6.55228 15.5523 7 15 7C14.4477 7 14 6.55228 14 6C14 5.44772 14.4477 5 15 5C15.5523 5 16 5.44772 16 6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 6C10 6.55228 9.55228 7 9 7C8.44772 7 8 6.55228 8 6C8 5.44772 8.44772 5 9 5C9.55228 5 10 5.44772 10 6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 18C16 18.5523 15.5523 19 15 19C14.4477 19 14 18.5523 14 18C14 17.4477 14.4477 17 15 17C15.5523 17 16 17.4477 16 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M16 12C16 12.5523 15.5523 13 15 13C14.4477 13 14 12.5523 14 12C14 11.4477 14.4477 11 15 11C15.5523 11 16 11.4477 16 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M10 18C10 18.5523 9.55228 19 9 19C8.44772 19 8 18.5523 8 18C8 17.4477 8.44772 17 9 17C9.55228 17 10 17.4477 10 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M10 12C10 12.5523 9.55228 13 9 13C8.44772 13 8 12.5523 8 12C8 11.4477 8.44772 11 9 11C9.55228 11 10 11.4477 10 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var J7,Y7=L(()=>{J7=[["path",{d:"M8.17151 19.8284L19.8284 8.17157C20.3736 7.62632 20.6462 7.3537 20.792 7.0596C21.0693 6.50005 21.0693 5.8431 20.792 5.28354C20.6462 4.98945 20.3736 4.71682 19.8284 4.17157C19.2831 3.62632 19.0105 3.3537 18.7164 3.20796C18.1568 2.93068 17.4999 2.93068 16.9403 3.20796C16.6462 3.3537 16.3736 3.62632 15.8284 4.17157L4.17151 15.8284C3.59345 16.4064 3.30442 16.6955 3.15218 17.063C2.99994 17.4305 2.99994 17.8393 2.99994 18.6568V20.9999H5.34308C6.16059 20.9999 6.56934 20.9999 6.93688 20.8477C7.30442 20.6955 7.59345 20.4064 8.17151 19.8284Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 21H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 5.5L18.5 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var X7,Q7=L(()=>{X7=[["path",{d:"M9 2L9 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 2L15 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 18L12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12.6939 8.5L10.6029 10.6749C10.3788 10.9079 10.5394 11.2433 10.9048 11.3053L13.0952 11.6773C13.4848 11.7434 13.6334 12.1147 13.361 12.3413L10.7666 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14.3066 5L9.69342 5C7.5551 5 6.48594 5 5.89527 5.69774C5.3046 6.39548 5.46717 7.46639 5.79232 9.60823L6.31604 13.0581C6.83606 16.4836 8.28588 18 12 18C15.7141 18 17.1639 16.4836 17.684 13.0581L18.2077 9.60823C18.5328 7.46639 18.6954 6.39548 18.1047 5.69774C17.5141 5 16.4449 5 14.3066 5Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var e3,t3=L(()=>{e3=[["path",{d:"M19 12L19 8.99996C19 7.11435 18.9999 6.17155 18.4142 5.58577C17.8284 4.99999 16.8856 4.99999 15 5L12 5.00001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5 12L5.00003 15C5.00004 16.8856 5.00005 17.8284 5.58584 18.4142C6.17163 19 7.11443 19 9.00004 19L12 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var n3,r3=L(()=>{n3=[["path",{d:"M8 7L16 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 11L12 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M13 21.5V21C13 18.1716 13 16.7574 13.8787 15.8787C14.7574 15 16.1716 15 19 15H19.5M20 13.3431V10C20 6.22876 20 4.34315 18.8284 3.17157C17.6569 2 15.7712 2 12 2C8.22877 2 6.34315 2 5.17157 3.17157C4 4.34314 4 6.22876 4 10L4 14.5442C4 17.7892 4 19.4117 4.88607 20.5107C5.06508 20.7327 5.26731 20.9349 5.48933 21.1139C6.58831 22 8.21082 22 11.4558 22C12.1614 22 12.5141 22 12.8372 21.886C12.9044 21.8623 12.9702 21.835 13.0345 21.8043C13.3436 21.6564 13.593 21.407 14.0919 20.9081L18.8284 16.1716C19.4065 15.5935 19.6955 15.3045 19.8478 14.9369C20 14.5694 20 14.1606 20 13.3431Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var o3,i3=L(()=>{o3=[["path",{d:"M4 12.0004L4 14.5446C4 17.7896 4 19.4121 4.88607 20.5111C5.06508 20.7331 5.26731 20.9354 5.48933 21.1144C6.58831 22.0004 8.21082 22.0004 11.4558 22.0004C12.1614 22.0004 12.5141 22.0004 12.8372 21.8864C12.9044 21.8627 12.9702 21.8354 13.0345 21.8047C13.3436 21.6569 13.593 21.4074 14.0919 20.9085L18.8284 16.172C19.4065 15.5939 19.6955 15.3049 19.8478 14.9374C20 14.5698 20 14.1611 20 13.3436V10.0004C20 6.22919 20 4.34358 18.8284 3.172C17.7693 2.11284 16.1265 2.01122 13.0345 2.00146M13 21.5004V21.0004C13 18.172 13 16.7578 13.8787 15.8791C14.7574 15.0004 16.1716 15.0004 19 15.0004H19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 8.23028V5.46105C4 3.54929 5.567 1.99951 7.5 1.99951C9.433 1.99951 11 3.54929 11 5.46105V9.26874C11 10.2246 10.2165 10.9995 9.25 10.9995C8.2835 10.9995 7.5 10.2246 7.5 9.26874V5.46105",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var s3,a3=L(()=>{s3=[["path",{d:"M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var c3,u3=L(()=>{c3=[["path",{d:"M3.5 14.5C3.5 13.1193 4.6193 12 6 12C7.3807 12 8.5 13.1193 8.5 14.5C8.5 15.3569 8.06886 16.1131 7.41166 16.5636C6.72833 17.0319 6 17.6716 6 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.125 21.75H6M6.25 21.75C6.25 21.8881 6.13807 22 6 22C5.86193 22 5.75 21.8881 5.75 21.75C5.75 21.6119 5.86193 21.5 6 21.5C6.13807 21.5 6.25 21.6119 6.25 21.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M13.5 2.5V3C13.5 5.82843 13.5 7.24264 14.3787 8.12132C15.2574 9 16.6716 9 19.5 9H20M4.50394 7.98123C4.52397 5.69117 4.64575 4.40752 5.38607 3.48933C5.56507 3.26731 5.76731 3.06508 5.98932 2.88607C7.0883 2 8.71081 2 11.9558 2C12.6614 2 13.0141 2 13.3372 2.11401C13.4044 2.13772 13.4702 2.165 13.5345 2.19575C13.8435 2.34355 14.093 2.593 14.5919 3.09188L19.3284 7.82843C19.9065 8.40649 20.1955 8.69552 20.3478 9.06306C20.5 9.4306 20.5 9.83935 20.5 10.6569V14C20.5 17.7712 20.5 19.6569 19.3284 20.8284C18.1568 22 16.2712 22 12.5 22C11.7645 22 11.1007 22 10.5 21.9913",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var l3,d3=L(()=>{l3=[["path",{d:"M8.00164 7.00013H16.754C18.8613 7.00013 19.9149 7.00013 20.6718 7.50574C20.9995 7.72462 21.2808 8.00588 21.4997 8.33346C21.8937 8.92301 21.9808 9.69265 22 11.0003M12.0027 7.00013L11.3691 5.73321C10.8442 4.68363 10.3645 3.62714 9.20122 3.19101C8.69172 3 8.10969 3 6.94562 3C5.12865 3 4.22017 3 3.53848 3.38033C3.05255 3.65144 2.6516 4.0523 2.38042 4.53811C2 5.21963 2 6.1279 2 7.94443V11.0003C2 15.7145 2 18.0716 3.46487 19.5361C4.82227 20.8931 6.94628 20.9927 11.0025 21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 19.8268V21H15.1734C15.5827 21 15.7874 21 15.9715 20.9238C16.1555 20.8475 16.3003 20.7028 16.5897 20.4134L21.4133 15.5894C21.6864 15.3164 21.8229 15.1799 21.8959 15.0327C22.0347 14.7525 22.0347 14.4236 21.8959 14.1434C21.8229 13.9961 21.6864 13.8596 21.4133 13.5866C21.1403 13.3136 21.0038 13.1771 20.8565 13.1041C20.5763 12.9653 20.2473 12.9653 19.9671 13.1041C19.8198 13.1771 19.6833 13.3136 19.4103 13.5866L19.4103 13.5866L14.5867 18.4106C14.2972 18.7 14.1525 18.8447 14.0762 19.0287C14 19.2128 14 19.4174 14 19.8268Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var p3,f3=L(()=>{p3=[["path",{d:"M13 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 15L16 21M22 21L16 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var m3,h3=L(()=>{m3=[["path",{d:"M7 19H13C15.8284 19 17.2426 19 18.1213 18.1213C19 17.2426 19 15.8284 19 13V10M19 10C19.7002 10 21.0085 11.9943 21.5 12.5M19 10C18.2998 10 16.9915 11.9943 16.5 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5 7L5 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"5",cy:"5",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"19",cy:"5",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"5",cy:"19",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var g3,C3=L(()=>{g3=[["path",{d:"M6 8C7.10457 8 8 7.10457 8 6C8 4.89543 7.10457 4 6 4C4.89543 4 4 4.89543 4 6C4 7.10457 4.89543 8 6 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 20C13.1046 20 14 19.1046 14 18C14 16.8954 13.1046 16 12 16C10.8954 16 10 16.8954 10 18C10 19.1046 10.8954 20 12 20Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 8C19.1046 8 20 7.10457 20 6C20 4.89543 19.1046 4 18 4C16.8954 4 16 4.89543 16 6C16 7.10457 16.8954 8 18 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M6.01734 8.74067C6.01734 10.4142 5.77537 12.1995 9.22051 11.9855H12.0053M17.9929 8.57617C18.1259 11.9855 16.9199 11.7648 15.7861 11.9855H12.0053M12.0053 15.7001V11.9855",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var k3,y3=L(()=>{k3=[["path",{d:"M7 20C8.10457 20 9 19.1046 9 18C9 16.8954 8.10457 16 7 16C5.89543 16 5 16.8954 5 18C5 19.1046 5.89543 20 7 20Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8C8.10457 8 9 7.10457 9 6C9 4.89543 8.10457 4 7 4C5.89543 4 5 4.89543 5 6C5 7.10457 5.89543 8 7 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M17 14C18.1046 14 19 13.1046 19 12C19 10.8954 18.1046 10 17 10C15.8954 10 15 10.8954 15 12C15 13.1046 15.8954 14 17 14Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M7.02116 8.2793V15.4073M14.4113 12.0047L10.0193 12.0048C8.92158 12.0048 6.86182 11.1254 7.01818 8.78001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var fu,Dm=L(()=>{fu=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 16V12C18 9.17156 18 7.75735 17.1213 6.87867C16.2426 5.99999 14.8284 5.99999 12 5.99999L11 5.99999M11 5.99999C11 5.29976 12.9943 3.99152 13.5 3.49999M11 5.99999C11 6.70022 12.9943 8.00846 13.5 8.49999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var b3,v3=L(()=>{b3=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 11L18 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M20 4L18 6M18 6L16 8M18 6L20 8M18 6L16 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var w3,x3=L(()=>{w3=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["path",{d:"M18.125 11H18M18.25 11C18.25 11.1381 18.1381 11.25 18 11.25C17.8619 11.25 17.75 11.1381 17.75 11C17.75 10.8619 17.8619 10.75 18 10.75C18.1381 10.75 18.25 10.8619 18.25 11Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M18.125 6H18M18.25 6C18.25 6.13807 18.1381 6.25 18 6.25C17.8619 6.25 17.75 6.13807 17.75 6C17.75 5.86193 17.8619 5.75 18 5.75C18.1381 5.75 18.25 5.86193 18.25 6Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}]]});var I3,_3=L(()=>{I3=[["path",{d:"M10 20.5675C6.57143 21.7248 3.71429 20.5675 2 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 22V18.7579C10 18.1596 10.1839 17.6396 10.4804 17.1699C10.6838 16.8476 10.5445 16.3904 10.1771 16.2894C7.13394 15.4528 5 14.1077 5 9.64606C5 8.48611 5.38005 7.39556 6.04811 6.4464C6.21437 6.21018 6.29749 6.09208 6.31748 5.9851C6.33746 5.87813 6.30272 5.73852 6.23322 5.45932C5.95038 4.32292 5.96871 3.11619 6.39322 2.02823C6.39322 2.02823 7.27042 1.74242 9.26698 2.98969C9.72282 3.27447 9.95075 3.41686 10.1515 3.44871C10.3522 3.48056 10.6206 3.41384 11.1573 3.28041C11.8913 3.09795 12.6476 3 13.5 3C14.3524 3 15.1087 3.09795 15.8427 3.28041C16.3794 3.41384 16.6478 3.48056 16.8485 3.44871C17.0493 3.41686 17.2772 3.27447 17.733 2.98969C19.7296 1.74242 20.6068 2.02823 20.6068 2.02823C21.0313 3.11619 21.0496 4.32292 20.7668 5.45932C20.6973 5.73852 20.6625 5.87813 20.6825 5.9851C20.7025 6.09207 20.7856 6.21019 20.9519 6.4464C21.6199 7.39556 22 8.48611 22 9.64606C22 14.1077 19.8661 15.4528 16.8229 16.2894C16.4555 16.3904 16.3162 16.8476 16.5196 17.1699C16.8161 17.6396 17 18.1596 17 18.7579V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var S3,L3=L(()=>{S3=[["path",{d:"M3.88884 9.66294C4.39329 10 5.09552 10 6.49998 10C7.90445 10 8.60668 10 9.11113 9.66294C9.32951 9.51702 9.51701 9.32952 9.66292 9.11114C9.99998 8.60669 9.99998 7.90446 9.99998 6.5C9.99998 5.09554 9.99998 4.39331 9.66292 3.88886C9.51701 3.67048 9.32951 3.48298 9.11113 3.33706C8.60668 3 7.90445 3 6.49998 3C5.09552 3 4.39329 3 3.88884 3.33706C3.67046 3.48298 3.48296 3.67048 3.33705 3.88886C2.99998 4.39331 2.99998 5.09554 2.99998 6.5C2.99998 7.90446 2.99998 8.60669 3.33705 9.11114C3.48296 9.32952 3.67046 9.51702 3.88884 9.66294Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.8888 9.66294C15.3933 10 16.0955 10 17.5 10C18.9044 10 19.6067 10 20.1111 9.66294C20.3295 9.51702 20.517 9.32952 20.6629 9.11114C21 8.60669 21 7.90446 21 6.5C21 5.09554 21 4.39331 20.6629 3.88886C20.517 3.67048 20.3295 3.48298 20.1111 3.33706C19.6067 3 18.9044 3 17.5 3C16.0955 3 15.3933 3 14.8888 3.33706C14.6705 3.48298 14.483 3.67048 14.337 3.88886C14 4.39331 14 5.09554 14 6.5C14 7.90446 14 8.60669 14.337 9.11114C14.483 9.32952 14.6705 9.51702 14.8888 9.66294Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3.88884 20.6629C4.39329 21 5.09552 21 6.49998 21C7.90445 21 8.60668 21 9.11113 20.6629C9.32951 20.517 9.51701 20.3295 9.66292 20.1111C9.99998 19.6067 9.99998 18.9045 9.99998 17.5C9.99998 16.0955 9.99998 15.3933 9.66292 14.8889C9.51701 14.6705 9.32951 14.483 9.11113 14.3371C8.60668 14 7.90445 14 6.49998 14C5.09552 14 4.39329 14 3.88884 14.3371C3.67046 14.483 3.48296 14.6705 3.33705 14.8889C2.99998 15.3933 2.99998 16.0955 2.99998 17.5C2.99998 18.9045 2.99998 19.6067 3.33705 20.1111C3.48296 20.3295 3.67046 20.517 3.88884 20.6629Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14.8888 20.6629C15.3933 21 16.0955 21 17.5 21C18.9044 21 19.6067 21 20.1111 20.6629C20.3295 20.517 20.517 20.3295 20.6629 20.1111C21 19.6067 21 18.9045 21 17.5C21 16.0955 21 15.3933 20.6629 14.8889C20.517 14.6705 20.3295 14.483 20.1111 14.3371C19.6067 14 18.9044 14 17.5 14C16.0955 14 15.3933 14 14.8888 14.3371C14.6705 14.483 14.483 14.6705 14.337 14.8889C14 15.3933 14 16.0955 14 17.5C14 18.9045 14 19.6067 14.337 20.1111C14.483 20.3295 14.6705 20.517 14.8888 20.6629Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var P3,M3=L(()=>{P3=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["ellipse",{cx:"12",cy:"12",rx:"4",ry:"10",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 12H22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var R3,T3=L(()=>{R3=[["path",{d:"M20.4999 16.5V8.5C20.4999 6.14298 20.4999 4.96447 19.7676 4.23223C19.0354 3.5 17.8569 3.5 15.4999 3.5H8.49988C6.14286 3.5 4.96434 3.5 4.23211 4.23223C3.49988 4.96447 3.49988 6.14298 3.49988 8.5V16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.9841 20.5H2.01567C1.63273 20.5 1.38367 20.1088 1.55493 19.7764L3.49988 16.5H20.4999L22.4448 19.7764C22.6161 20.1088 22.367 20.5 21.9841 20.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var $3,A3=L(()=>{$3=[["path",{d:"M8.64298 3.14559L6.93816 3.93362C4.31272 5.14719 3 5.75397 3 6.75C3 7.74603 4.31272 8.35281 6.93817 9.56638L8.64298 10.3544C10.2952 11.1181 11.1214 11.5 12 11.5C12.8786 11.5 13.7048 11.1181 15.357 10.3544L17.0618 9.56638C19.6873 8.35281 21 7.74603 21 6.75C21 5.75397 19.6873 5.14719 17.0618 3.93362L15.357 3.14559C13.7048 2.38186 12.8786 2 12 2C11.1214 2 10.2952 2.38186 8.64298 3.14559Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.788 11.0972C20.9293 11.2959 21 11.5031 21 11.7309C21 12.7127 19.6873 13.3109 17.0618 14.5072L15.357 15.284C13.7048 16.0368 12.8786 16.4133 12 16.4133C11.1214 16.4133 10.2952 16.0368 8.64298 15.284L6.93817 14.5072C4.31272 13.3109 3 12.7127 3 11.7309C3 11.5031 3.07067 11.2959 3.212 11.0972",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.3767 16.2661C20.7922 16.5971 21 16.927 21 17.3176C21 18.2995 19.6873 18.8976 17.0618 20.0939L15.357 20.8707C13.7048 21.6236 12.8786 22 12 22C11.1214 22 10.2952 21.6236 8.64298 20.8707L6.93817 20.0939C4.31272 18.8976 3 18.2995 3 17.3176C3 16.927 3.20778 16.5971 3.62334 16.2661",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var D3,E3=L(()=>{D3=[["path",{d:"M3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 2.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var N3,O3=L(()=>{N3=[["path",{d:"M20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.5 12L2.50078 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var z3,Z3=L(()=>{z3=[["path",{d:"M8 20C7.48595 20.6974 7.2774 20.9401 6.85472 20.9929C6.43205 21.0457 6.13982 20.8037 5.55537 20.3197C3.38109 18.5193 2 15.8253 2 12.8147C2 7.39421 6.47715 3 12 3C17.5228 3 22 7.39421 22 12.8147C22 15.8253 20.6189 18.5193 18.4446 20.3197C17.8602 20.8037 17.568 21.0457 17.1453 20.9929C16.7226 20.9401 16.514 20.6974 16 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 10.5L18 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"12",cy:"12",r:"1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var j3,W3=L(()=>{j3=[["path",{d:"M11.0991 3.00012C7.45013 3.00669 5.53932 3.09629 4.31817 4.31764C3.00034 5.63568 3.00034 7.75704 3.00034 11.9997C3.00034 16.2424 3.00034 18.3638 4.31817 19.6818C5.63599 20.9999 7.75701 20.9999 11.9991 20.9999C16.241 20.9999 18.3621 20.9999 19.6799 19.6818C20.901 18.4605 20.9906 16.5493 20.9972 12.8998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.556 3.49612L11.0487 13.0586M20.556 3.49612C20.062 3.00151 16.7343 3.04761 16.0308 3.05762M20.556 3.49612C21.05 3.99074 21.0039 7.32273 20.9939 8.02714",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var F3,V3=L(()=>{F3=[["path",{d:"M2.99609 18H8.99609",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.9961 15C15.9961 15 12.9961 17.2095 12.9961 18C12.9961 18.7906 15.9961 21 15.9961 21M13.9961 18L14.9961 18C17.8245 18 19.2387 18 20.1174 17.1213C20.9961 16.2427 20.9961 14.8284 20.9961 12V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2.99609 11H15.9961",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M2.99609 4H15.9961",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var H3,B3=L(()=>{H3=[["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H20.6C21.7583 10 22 10.2417 22 11.4V12.6C22 13.7583 21.7583 14 20.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H20.6C21.7583 18 22 18.2417 22 19.4V20.6C22 21.7583 21.7583 22 20.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]]});var U3,G3=L(()=>{U3=[["path",{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 13C13.1046 13 14 12.1046 14 11C14 9.89543 13.1046 9 12 9C10.8954 9 10 9.89543 10 11C10 12.1046 10.8954 13 12 13ZM12 13L12 16",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var K3,q3=L(()=>{K3=[["path",{d:"M7 8.5L9.94202 10.2394C11.6572 11.2535 12.3428 11.2535 14.058 10.2394L17 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.01577 13.4756C2.08114 16.5412 2.11383 18.0739 3.24496 19.2094C4.37608 20.3448 5.95033 20.3843 9.09883 20.4634C11.0393 20.5122 12.9607 20.5122 14.9012 20.4634C18.0497 20.3843 19.6239 20.3448 20.7551 19.2094C21.8862 18.0739 21.9189 16.5412 21.9842 13.4756C22.0053 12.4899 22.0053 11.5101 21.9842 10.5244C21.9189 7.45886 21.8862 5.92609 20.7551 4.79066C19.6239 3.65523 18.0497 3.61568 14.9012 3.53657C12.9607 3.48781 11.0393 3.48781 9.09882 3.53656C5.95033 3.61566 4.37608 3.65521 3.24495 4.79065C2.11382 5.92608 2.08114 7.45885 2.01576 10.5244C1.99474 11.5101 1.99475 12.4899 2.01577 13.4756Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var J3,Y3=L(()=>{J3=[["path",{d:"M2 19L8.91302 14.2905C11.4387 12.5698 12.5613 12.5698 15.087 14.2905L22 19",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.01592 14.551C2.08186 17.5843 2.11484 19.1009 3.24611 20.2241C4.37738 21.3473 5.95183 21.3862 9.10072 21.4641C11.0393 21.512 12.9607 21.512 14.8993 21.4641C18.0482 21.3862 19.6226 21.3473 20.7539 20.2241C21.8852 19.1009 21.9181 17.5843 21.9841 14.551C22.0164 13.0649 21.9995 11.5934 21.9334 10.0921C21.8924 9.15964 21.8719 8.69341 21.6354 8.27984C21.3989 7.86628 20.9913 7.59935 20.176 7.0655L16.4152 4.60286C14.2742 3.20096 13.2038 2.5 12 2.5C10.7962 2.5 9.72577 3.20095 7.58483 4.60286L3.82397 7.0655C3.00869 7.59935 2.60106 7.86628 2.36459 8.27984C2.12812 8.69341 2.1076 9.15965 2.06656 10.0921C2.00049 11.5934 1.98361 13.0649 2.01592 14.551Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M22 9.5L17.7346 12.6072C16.7004 13.3606 15.8504 14 14.5 14M2 9.5L6.26538 12.6072C7.29955 13.3606 8.14961 14 9.5 14",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var X3,Q3=L(()=>{X3=[["path",{d:"M4 5L16 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 12L20 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4 19L12 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var e6,t6=L(()=>{e6=[["path",{d:"M13 3.02144C12.6777 3.00721 12.3445 2.99998 12 2.99998C4.13281 2.99998 2 7.02942 2 12C2 14.0712 2.37034 15.979 3.37161 17.5C4.63281 19.5 3.99253 21.3333 3 22C4.61547 22 5.70211 21.4858 6.39239 20.9766C6.88252 20.615 7.50688 20.4364 8.0984 20.5814C9.20689 20.8533 10.4991 21 12 21C19.1328 21 22 16.9705 22 12C22 11.3126 21.9643 10.6432 21.8812 9.99998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.1248 12H11.9998M16.125 12H16M8.125 12H8M12.2498 12C12.2498 12.1381 12.1379 12.25 11.9998 12.25C11.8618 12.25 11.7498 12.1381 11.7498 12C11.7498 11.8619 11.8618 11.75 11.9998 11.75C12.1379 11.75 12.2498 11.8619 12.2498 12ZM16.25 12C16.25 12.1381 16.1381 12.25 16 12.25C15.8619 12.25 15.75 12.1381 15.75 12C15.75 11.8619 15.8619 11.75 16 11.75C16.1381 11.75 16.25 11.8619 16.25 12ZM8.25 12C8.25 12.1381 8.13807 12.25 8 12.25C7.86193 12.25 7.75 12.1381 7.75 12C7.75 11.8619 7.86193 11.75 8 11.75C8.13807 11.75 8.25 11.8619 8.25 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 4.99998H22M19 1.99998L19 7.99998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var n6,r6=L(()=>{n6=[["path",{d:"M12 18V22M12 18H11.5208C8.11765 18 5.28262 15.3914 5 12M12 18H12.4792C15.8824 18 18.7174 15.3914 19 12M12 22H15M12 22H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6V11C16 13.2091 14.2091 15 12 15C9.79086 15 8 13.2091 8 11V6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var o6,i6=L(()=>{o6=[["path",{d:"M20 12L4 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var s6,a6=L(()=>{s6=[["path",{d:"M8 17.625L20 17.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 14.625L20 17.625L17 20.625",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M8 3.625L20 3.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8 10.625L20 10.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M4.375 3.625H4.25M4.5 3.625C4.5 3.76307 4.38807 3.875 4.25 3.875C4.11193 3.875 4 3.76307 4 3.625C4 3.48693 4.11193 3.375 4.25 3.375C4.38807 3.375 4.5 3.48693 4.5 3.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M4.375 10.625H4.25M4.5 10.625C4.5 10.7631 4.38807 10.875 4.25 10.875C4.11193 10.875 4 10.7631 4 10.625C4 10.4869 4.11193 10.375 4.25 10.375C4.38807 10.375 4.5 10.4869 4.5 10.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M4.375 17.625H4.25M4.5 17.625C4.5 17.7631 4.38807 17.875 4.25 17.875C4.11193 17.875 4 17.7631 4 17.625C4 17.4869 4.11193 17.375 4.25 17.375C4.38807 17.375 4.5 17.4869 4.5 17.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]]});var c6,u6=L(()=>{c6=[["path",{d:"M10.5 8H18.5M10.5 12H13M18.5 12H16M10.5 16H13M18.5 16H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 7.5H6C4.11438 7.5 3.17157 7.5 2.58579 8.08579C2 8.67157 2 9.61438 2 11.5V18C2 19.3807 3.11929 20.5 4.5 20.5C5.88071 20.5 7 19.3807 7 18V7.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 3.5H11C10.07 3.5 9.60504 3.5 9.22354 3.60222C8.18827 3.87962 7.37962 4.68827 7.10222 5.72354C7 6.10504 7 6.57003 7 7.5V18C7 19.3807 5.88071 20.5 4.5 20.5H16C18.8284 20.5 20.2426 20.5 21.1213 19.6213C22 18.7426 22 17.3284 22 14.5V9.5C22 6.67157 22 5.25736 21.1213 4.37868C20.2426 3.5 18.8284 3.5 16 3.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var l6,d6=L(()=>{l6=[["path",{d:"M12 22C11.1818 22 10.4002 21.6754 8.83693 21.0262C4.94564 19.4101 3 18.6021 3 17.2429V7.74463M12 22C12.8182 22 13.5998 21.6754 15.1631 21.0262C19.0544 19.4101 21 18.6021 21 17.2429V7.74463M12 22V12.1687M3 7.74463C3 8.3485 3.80157 8.72983 5.40472 9.49248L8.32592 10.8822C10.1288 11.7399 11.0303 12.1687 12 12.1687M3 7.74463C3 7.14076 3.80157 6.75944 5.40472 5.99678L7.5 5M21 7.74463C21 8.3485 20.1984 8.72983 18.5953 9.49248L15.6741 10.8822C13.8712 11.7399 12.9697 12.1687 12 12.1687M21 7.74463C21 7.14076 20.1984 6.75944 18.5953 5.99678L16.5 5M6 13.1518L8 14.135",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.0037 2L12.0037 8.99995M12.0037 8.99995C12.2668 9.00351 12.5263 8.81972 12.7178 8.59534L14 7.06174M12.0037 8.99995C11.7499 8.99652 11.4929 8.81368 11.2897 8.59534L10 7.06174",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var p6,f6=L(()=>{p6=[["path",{d:"M4 7C4 5.58579 4 4.87868 4.43934 4.43934C4.87868 4 5.58579 4 7 4C8.41421 4 9.12132 4 9.56066 4.43934C10 4.87868 10 5.58579 10 7V17C10 18.4142 10 19.1213 9.56066 19.5607C9.12132 20 8.41421 20 7 20C5.58579 20 4.87868 20 4.43934 19.5607C4 19.1213 4 18.4142 4 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 7C14 5.58579 14 4.87868 14.4393 4.43934C14.8787 4 15.5858 4 17 4C18.4142 4 19.1213 4 19.5607 4.43934C20 4.87868 20 5.58579 20 7V17C20 18.4142 20 19.1213 19.5607 19.5607C19.1213 20 18.4142 20 17 20C15.5858 20 14.8787 20 14.4393 19.5607C14 19.1213 14 18.4142 14 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]]});var m6,h6=L(()=>{m6=[["path",{d:"M3 21L8 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.2585 18.8714C9.51516 18.0215 5.97844 14.4848 5.12853 10.7415C4.99399 10.1489 4.92672 9.85266 5.12161 9.37197C5.3165 8.89129 5.55457 8.74255 6.03071 8.44509C7.10705 7.77265 8.27254 7.55888 9.48209 7.66586C11.1793 7.81598 12.0279 7.89104 12.4512 7.67048C12.8746 7.44991 13.1622 6.93417 13.7376 5.90269L14.4664 4.59604C14.9465 3.73528 15.1866 3.3049 15.7513 3.10202C16.316 2.89913 16.6558 3.02199 17.3355 3.26771C18.9249 3.84236 20.1576 5.07505 20.7323 6.66449C20.978 7.34417 21.1009 7.68401 20.898 8.2487C20.6951 8.8134 20.2647 9.05346 19.4039 9.53358L18.0672 10.2792C17.0376 10.8534 16.5229 11.1406 16.3024 11.568C16.0819 11.9955 16.162 12.8256 16.3221 14.4859C16.4399 15.7068 16.2369 16.88 15.5555 17.9697C15.2577 18.4458 15.1088 18.6839 14.6283 18.8786C14.1477 19.0733 13.8513 19.006 13.2585 18.8714Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var g6,C6=L(()=>{g6=[["path",{d:"M7.5 8C6.95863 8.1281 6.49932 8.14239 5.99268 8.45891C5.07234 9.03388 4.85108 9.71674 5.08821 10.7612C5.94028 14.5139 9.48599 18.0596 13.2388 18.9117C14.2834 19.1489 14.9661 18.928 15.5416 18.0077C15.8411 17.5288 15.8716 17.0081 16 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 7.79915C12.1776 7.77794 12.3182 7.74034 12.4295 7.68235C13.3997 7.17686 13.9291 5.53361 14.4498 4.60009C14.9311 3.73715 15.1718 3.30567 15.7379 3.10227C16.3041 2.89888 16.6448 3.02205 17.3262 3.26839C18.9197 3.8445 20.1555 5.08032 20.7316 6.6738C20.9779 7.35521 21.1011 7.69591 20.8977 8.26204C20.6943 8.82817 20.2628 9.06884 19.3999 9.55018C18.4608 10.074 16.7954 10.6108 16.2905 11.5898C16.2345 11.6983 16.1978 11.8327 16.1769 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 21L8 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 3L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var k6,y6=L(()=>{k6=[["path",{d:"M18.8906 12.846C18.5371 14.189 16.8667 15.138 13.5257 17.0361C10.296 18.8709 8.6812 19.7884 7.37983 19.4196C6.8418 19.2671 6.35159 18.9776 5.95624 18.5787C5 17.6139 5 15.7426 5 12C5 8.2574 5 6.3861 5.95624 5.42132C6.35159 5.02245 6.8418 4.73288 7.37983 4.58042C8.6812 4.21165 10.296 5.12907 13.5257 6.96393C16.8667 8.86197 18.5371 9.811 18.8906 11.154C19.0365 11.7084 19.0365 12.2916 18.8906 12.846Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var b6,v6=L(()=>{b6=[["path",{d:"M14 8V11M10 11V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.00297 12.0267C7.95812 11.4726 8.42638 11 9.02009 11H14.9799C15.5736 11 16.0419 11.4726 15.997 12.0267L15.8745 13.5403C15.7864 14.6285 15.4008 15.6771 14.7546 16.5856L14.3541 17.1487C13.9759 17.6805 13.3385 18 12.6558 18H11.3442C10.6615 18 10.0241 17.6805 9.64588 17.1487L9.24535 16.5856C8.59923 15.6771 8.2136 14.6285 8.12551 13.5403L8.00297 12.0267Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 21.2109C19.5318 19.6644 22 16.1323 22 12.0224C22 6.4872 17.5228 2 12 2C6.47715 2 2 6.4872 2 12.0224C2 17.2199 5.94741 21.4933 11.0014 21.9955C11.551 22.0501 12 21.5962 12 21.0426V18.0359",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var w6,x6=L(()=>{w6=[["path",{d:"M12 7.5V13.8636M15.5 10.6818H8.5M15.5 16.5H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var I6,_6=L(()=>{I6=[["path",{d:"M12 4V20M20 12H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var S6,L6=L(()=>{S6=[["path",{d:"M12.828 6.00096C12.9388 5.68791 12.999 5.35099 12.999 5C12.999 3.34315 11.6559 2 9.99904 2C8.34219 2 6.99904 3.34315 6.99904 5C6.99904 5.35099 7.05932 5.68791 7.17008 6.00096C4.88532 6.0093 3.66601 6.09039 2.87772 6.87868C2.08951 7.66689 2.00836 8.88603 2 11.1704C2.31251 11.06 2.64876 11 2.99904 11C4.6559 11 5.99904 12.3431 5.99904 14C5.99904 15.6569 4.6559 17 2.99904 17C2.64876 17 2.31251 16.94 2 16.8296C2.00836 19.114 2.08951 20.3331 2.87772 21.1213C3.66593 21.9095 4.88508 21.9907 7.16941 21.999C7.05908 21.6865 6.99904 21.3503 6.99904 21C6.99904 19.3431 8.34219 18 9.99904 18C11.6559 18 12.999 19.3431 12.999 21C12.999 21.3503 12.939 21.6865 12.8287 21.999C15.113 21.9907 16.3322 21.9095 17.1204 21.1213C17.9086 20.333 17.9897 19.1137 17.9981 16.829C18.3111 16.9397 18.648 17 18.999 17C20.6559 17 21.999 15.6569 21.999 14C21.999 12.3431 20.6559 11 18.999 11C18.648 11 18.3111 11.0603 17.9981 11.171C17.9897 8.88627 17.9086 7.66697 17.1204 6.87868C16.3321 6.09039 15.1128 6.0093 12.828 6.00096Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var P6,M6=L(()=>{P6=[["path",{d:"M20.4879 15C19.2524 18.4956 15.9187 21 12 21C7.02943 21 3 16.9706 3 12C3 7.02943 7.02943 3 12 3C15.7292 3 18.9286 5.26806 20.2941 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 9H18C19.4142 9 20.1213 9 20.5607 8.56066C21 8.12132 21 7.41421 21 6V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var R6,T6=L(()=>{R6=[["path",{d:"M16.3884 3L17.3913 3.97574C17.8393 4.41165 18.0633 4.62961 17.9844 4.81481C17.9056 5 17.5888 5 16.9552 5H9.19422C5.22096 5 2 8.13401 2 12C2 13.4872 2.47668 14.8662 3.2895 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.61156 21L6.60875 20.0243C6.16074 19.5883 5.93673 19.3704 6.01557 19.1852C6.09441 19 6.4112 19 7.04478 19H14.8058C18.779 19 22 15.866 22 12C22 10.5128 21.5233 9.13383 20.7105 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var $6,A6=L(()=>{$6=[["path",{d:"M18.7088 3.49534C16.8165 2.55382 14.5009 2 12 2C9.4991 2 7.1835 2.55382 5.29116 3.49534C4.36318 3.95706 3.89919 4.18792 3.4496 4.91378C3 5.63965 3 6.34248 3 7.74814V11.2371C3 16.9205 7.54236 20.0804 10.173 21.4338C10.9067 21.8113 11.2735 22 12 22C12.7265 22 13.0933 21.8113 13.8269 21.4338C16.4576 20.0804 21 16.9205 21 11.2371L21 7.74814C21 6.34249 21 5.63966 20.5504 4.91378C20.1008 4.18791 19.6368 3.95706 18.7088 3.49534Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 11.5C9 11.5 10.4079 11.7519 11 13.5C11 13.5 12.5 10.5 15 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var D6,E6=L(()=>{D6=[["path",{d:"M21.0477 3.05293C18.8697 0.707363 2.48648 6.4532 2.50001 8.551C2.51535 10.9299 8.89809 11.6617 10.6672 12.1581C11.7311 12.4565 12.016 12.7625 12.2613 13.8781C13.3723 18.9305 13.9301 21.4435 15.2014 21.4996C17.2278 21.5892 23.1733 5.342 21.0477 3.05293Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.4999 12.5L14.9999 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var N6,O6=L(()=>{N6=[["path",{d:"M2 12C2 8.31087 2 6.4663 2.81382 5.15877C3.1149 4.67502 3.48891 4.25427 3.91891 3.91555C5.08116 3 6.72077 3 10 3H14C17.2792 3 18.9188 3 20.0811 3.91555C20.5111 4.25427 20.8851 4.67502 21.1862 5.15877C22 6.4663 22 8.31087 22 12C22 15.6891 22 17.5337 21.1862 18.8412C20.8851 19.325 20.5111 19.7457 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7457 3.1149 19.325 2.81382 18.8412C2 17.5337 2 15.6891 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 14.5L22 14.5",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M6 18H7M10 18H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var z6,Z6=L(()=>{z6=[["path",{d:"M2 12C2 8.3109 2 6.46633 2.81382 5.1588C3.1149 4.67505 3.48891 4.2543 3.91891 3.91557C5.08116 3.00003 6.72077 3.00003 10 3.00003H14C17.2792 3.00003 18.9188 3.00003 20.0811 3.91557C20.5111 4.2543 20.8851 4.67505 21.1862 5.1588C22 6.46633 22 8.3109 22 12C22 15.6892 22 17.5337 21.1862 18.8413C20.8851 19.325 20.5111 19.7458 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7458 3.1149 19.325 2.81382 18.8413C2 17.5337 2 15.6892 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.5 3.00003L14.5 21",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 7.00006H19M18 10.0001H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var j6,W6=L(()=>{j6=[["path",{d:"M13.5 2H10.5C8.14298 2 6.96447 2 6.23223 2.73223C5.5 3.46447 5.5 4.64298 5.5 7V17C5.5 19.357 5.5 20.5355 6.23223 21.2678C6.96447 22 8.14298 22 10.5 22H13.5C15.857 22 17.0355 22 17.7678 21.2678C18.5 20.5355 18.5 19.357 18.5 17V7C18.5 4.64298 18.5 3.46447 17.7678 2.73223C17.0355 2 15.857 2 13.5 2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.125 19H12M12.25 19C12.25 19.1381 12.1381 19.25 12 19.25C11.8619 19.25 11.75 19.1381 11.75 19C11.75 18.8619 11.8619 18.75 12 18.75C12.1381 18.75 12.25 18.8619 12.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var F6,V6=L(()=>{F6=[["path",{d:"M11.0001 8L19.0001 8.00006",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.0001 12H16.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11.0001 16H14.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.0001 4H21.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M5.5 21V3M5.5 21C4.79977 21 3.49153 19.0057 3 18.5M5.5 21C6.20023 21 7.50847 19.0057 8 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var H6,B6=L(()=>{H6=[["path",{d:"M4 14H8.42109C9.35119 14 9.81624 14 9.94012 14.2801C10.064 14.5603 9.74755 14.8963 9.11466 15.5684L5.47691 19.4316C4.84402 20.1037 4.52757 20.4397 4.65145 20.7199C4.77533 21 5.24038 21 6.17048 21H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 9L6.10557 4.30527C6.49585 3.43509 6.69098 3 7 3C7.30902 3 7.50415 3.43509 7.89443 4.30527L10 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M17.5 20V4M17.5 20C16.7998 20 15.4915 18.0057 15 17.5M17.5 20C18.2002 20 19.5085 18.0057 20 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var U6,G6=L(()=>{U6=[["path",{d:"M7 20.9994V14.9481C7 14.3736 7 14.0863 6.76959 14.0149C6.26306 13.8577 5.5 14.999 5.5 14.999M7 20.9994H5.5M7 20.9994H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 6.5V4.75C9 3.92504 9 3.51256 8.70711 3.25628C8.41421 3 7.94281 3 7 3C6.05719 3 5.58579 3 5.29289 3.25628C5 3.51256 5 3.92504 5 4.75C5 5.57496 5 5.98744 5.29289 6.24372C5.58579 6.5 6.05719 6.5 7 6.5H9ZM9 6.5V7.375C9 8.61244 9 9.23116 8.56066 9.61558C8.12132 10 7.41421 10 6 10H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5001 19.999V3.99902M16.5001 19.999C15.7998 19.999 14.4916 18.0047 14.0001 17.499M16.5001 19.999C17.2003 19.999 18.5085 18.0047 19.0001 17.499",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var K6,q6=L(()=>{K6=[["path",{d:"M7 9.99936V3.94812C7 3.3736 7 3.08634 6.76959 3.01485C6.26306 2.85769 5.5 3.99902 5.5 3.99902M7 9.99936H5.5M7 9.99936H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 17.4991V15.7491C9 14.9242 9 14.5117 8.70711 14.2554C8.41421 13.9991 7.94281 13.9991 7 13.9991C6.05719 13.9991 5.58579 13.9991 5.29289 14.2554C5 14.5117 5 14.9242 5 15.7491C5 16.5741 5 16.9866 5.29289 17.2429C5.58579 17.4991 6.05719 17.4991 7 17.4991H9ZM9 17.4991V18.3741C9 19.6116 9 20.2303 8.56066 20.6147C8.12132 20.9991 7.41421 20.9991 6 20.9991H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5 19.9991V3.99915M16.5 19.9991C15.7998 19.9991 14.4915 18.0048 14 17.4991M16.5 19.9991C17.2002 19.9991 18.5085 18.0048 19 17.4991",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var J6,Y6=L(()=>{J6=[["path",{d:"M4 3H8.42109C9.35119 3 9.81624 3 9.94012 3.28013C10.064 3.56026 9.74755 3.89632 9.11466 4.56842L5.47691 8.43158C4.84402 9.10368 4.52757 9.43974 4.65145 9.71987C4.77533 10 5.24038 10 6.17048 10H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 21L6.10557 16.3053C6.49585 15.4351 6.69098 15 7 15C7.30902 15 7.50415 15.4351 7.89443 16.3053L10 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M17.5 20V3.99999M17.5 20C16.7998 20 15.4915 18.0057 15 17.5M17.5 20C18.2002 20 19.5085 18.0057 20 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var X6,Q6=L(()=>{X6=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}]]});var eC,tC=L(()=>{eC=[["path",{d:"M12 14.5V17.5M13 14.5C13 15.0523 12.5523 15.5 12 15.5C11.4477 15.5 11 15.0523 11 14.5C11 13.9477 11.4477 13.5 12 13.5C12.5523 13.5 13 13.9477 13 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 9V6.5C7.5 4.01472 9.51472 2 12 2C13.9593 2 15.8664 3.25221 16.5 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4.26781 18.8447C4.49269 20.515 5.87613 21.8235 7.55966 21.9009C8.97627 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.879 17.7547 20 16.6376 20 15.5C20 14.3624 19.879 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97627 9.03397 7.55966 9.09909C5.87613 9.17649 4.49269 10.485 4.26781 12.1553C4.12104 13.2453 4 14.3624 4 15.5C4 16.6376 4.12104 17.7547 4.26781 18.8447Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var nC,rC=L(()=>{nC=[["path",{d:"M13.7276 3.44418L15.4874 6.99288C15.7274 7.48687 16.3673 7.9607 16.9073 8.05143L20.0969 8.58575C22.1367 8.92853 22.6167 10.4206 21.1468 11.8925L18.6671 14.3927C18.2471 14.8161 18.0172 15.6327 18.1471 16.2175L18.8571 19.3125C19.417 21.7623 18.1271 22.71 15.9774 21.4296L12.9877 19.6452C12.4478 19.3226 11.5579 19.3226 11.0079 19.6452L8.01827 21.4296C5.8785 22.71 4.57865 21.7522 5.13859 19.3125L5.84851 16.2175C5.97849 15.6327 5.74852 14.8161 5.32856 14.3927L2.84884 11.8925C1.389 10.4206 1.85895 8.92853 3.89872 8.58575L7.08837 8.05143C7.61831 7.9607 8.25824 7.48687 8.49821 6.99288L10.258 3.44418C11.2179 1.51861 12.7777 1.51861 13.7276 3.44418Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var oC,iC=L(()=>{oC=[["path",{d:"M8 2H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.2187 13.0044L15.9921 13.6151C15.5219 14.65 14.1115 15.7439 11.7609 14.3182C10.2471 13.4001 8.93663 12.6631 7.9997 13.16L7.21891 13.5412",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5323 2V8.56602C14.5323 9.27829 14.5323 9.63442 14.6304 9.97222C14.7285 10.31 14.9197 10.612 15.3021 11.216L17.2861 14.35C19.4275 17.7326 20.4982 19.4238 19.7751 20.7119C19.0519 22 17.0317 22 12.9914 22H11.0086C6.96825 22 4.94807 22 4.22495 20.7119C3.50182 19.4238 4.57251 17.7326 6.71389 14.35L8.69792 11.216C9.08029 10.612 9.27148 10.31 9.36961 9.97222C9.46773 9.63442 9.46773 9.27829 9.46773 8.56602V2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15.125 19H15M15.25 19C15.25 19.1381 15.1381 19.25 15 19.25C14.8619 19.25 14.75 19.1381 14.75 19C14.75 18.8619 14.8619 18.75 15 18.75C15.1381 18.75 15.25 18.8619 15.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M10.125 17H10M10.25 17C10.25 17.1381 10.1381 17.25 10 17.25C9.86193 17.25 9.75 17.1381 9.75 17C9.75 16.8619 9.86193 16.75 10 16.75C10.1381 16.75 10.25 16.8619 10.25 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var sC,aC=L(()=>{sC=[["path",{d:"M3 3H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 15H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 21H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 9H16.5C18.9853 9 21 11.0147 21 13.5C21 15.9853 18.9853 18 16.5 18H12M12 18C12 17.1597 14.3932 15.5898 15 15M12 18C12 18.8403 14.3932 20.4102 15 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var cC,uC=L(()=>{cC=[["path",{d:"M12 8V12L13.5 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19.5454 16.4534C21.1818 17.337 22 17.7789 22 18.5C22 19.2211 21.1818 19.663 19.5454 20.5466L18.4311 21.1484C17.1744 21.827 16.5461 22.1663 16.2439 21.9196C15.504 21.3154 16.6567 19.7561 16.9403 19.2037C17.2277 18.644 17.2225 18.3459 16.9403 17.7963C16.6567 17.2439 15.504 15.6846 16.2439 15.0804C16.5461 14.8337 17.1744 15.173 18.4311 15.8516L19.5454 16.4534Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M13.0261 21.948C12.6888 21.9824 12.3464 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 12.6849 21.9311 13.3538 21.8 14",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]]});var lC,dC=L(()=>{lC=[["path",{d:"M21 7H3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H13C16.7712 21 18.6569 21 19.8284 19.8284C21 18.6569 21 16.7712 21 13V7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 7H3L4.2 5.4C5.08328 4.22229 5.52492 3.63344 6.15836 3.31672C6.7918 3 7.52786 3 9 3H15C16.4721 3 17.2082 3 17.8416 3.31672C18.4751 3.63344 18.9167 4.22229 19.8 5.4L21 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 11L12 17.5M9 13.5C9.58984 12.8932 11.1597 10.5 12 10.5C12.8403 10.5 14.4102 12.8932 15 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var pC,fC=L(()=>{pC=[["path",{d:"M20 21.0001C19.713 17.269 16.7289 14.3151 12.995 14.0662L12 13.9999C11.6446 14.0096 11.3134 14.0225 11.0008 14.0378C7.3 14.2192 4.28417 17.3057 4 21.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"12",cy:"6.99988",r:"4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var mC,hC=L(()=>{mC=[["path",{d:"M21.544 11.045C21.848 11.4713 22 11.6845 22 12C22 12.3155 21.848 12.5287 21.544 12.955C20.1779 14.8706 16.6892 19 12 19C7.31078 19 3.8221 14.8706 2.45604 12.955C2.15201 12.5287 2 12.3155 2 12C2 11.6845 2.15201 11.4713 2.45604 11.045C3.8221 9.12944 7.31078 5 12 5C16.6892 5 20.1779 9.12944 21.544 11.045Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]]});var gC,CC=L(()=>{gC=[["path",{d:"M22 8C22 8 18 14 12 14C6 14 2 8 2 8",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 13.5L16.5 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 11L22 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M2 13L4 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M9 13.5L7.5 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var kC,yC=L(()=>{kC=[["path",{d:"M18.5016 19.1217L21 21.6217M20 15.1217C20 12.0842 17.5376 9.62173 14.5 9.62173C11.4624 9.62173 9 12.0842 9 15.1217C9 18.1593 11.4624 20.6217 14.5 20.6217C17.5376 20.6217 20 18.1593 20 15.1217Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.5 13.1217V17.1217M16.5 15.1217H12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 3.62173H14M3 10.6217V14.6217M6.5 21.6217C4.567 21.6217 3 20.0547 3 18.1217M17.5 3.62173C19.433 3.62173 21 5.18873 21 7.12173M3 7.12173C3 5.18873 4.567 3.62173 6.5 3.62173",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var bC,vC=L(()=>{bC=[["path",{d:"M18.5016 18.5L21 21M20 14.5C20 11.4624 17.5376 9 14.5 9C11.4624 9 9 11.4624 9 14.5C9 17.5376 11.4624 20 14.5 20C17.5376 20 20 17.5376 20 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.5 14.5H12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 3H14M3 10V14M6.5 21C4.567 21 3 19.433 3 17.5M17.5 3C19.433 3 21 4.567 21 6.5M3 6.5C3 4.567 4.567 3 6.5 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var xC={};Lt(xC,{EXTENDED_ICON_MAP:()=>wC});var Q_,eS,tS,wC,IC=L(()=>{"use strict";Pg();Rg();$g();Dg();Ng();zg();jg();Fg();Hg();Ug();Kg();Jg();Xg();e7();n7();o7();s7();c7();l7();p7();m7();h7();C7();y7();v7();x7();_7();L7();M7();T7();A7();E7();O7();Z7();W7();V7();B7();G7();q7();Y7();Q7();t3();r3();i3();a3();u3();Lm();d3();f3();h3();C3();y3();Dm();v3();x3();Dm();_3();L3();M3();T3();A3();E3();O3();Z3();W3();V3();B3();G3();q3();Y3();Q3();t6();r6();i6();a6();u6();d6();f6();h6();C6();y6();v6();x6();_6();L6();M6();T6();A6();E6();O6();Z6();W6();V6();B6();G6();q6();Y6();Q6();tC();rC();iC();aC();uC();dC();fC();hC();CC();yC();vC();$m();Q_=[["path",{d:"M21.8205 10.4127C22.062 11.8519 22.1827 12.5715 21.2423 13.9326C21.1459 14.0722 20.8966 14.3713 20.777 14.4911C19.6103 15.6586 18.4308 15.6586 16.0716 15.6586H14.1392C13.5085 15.6586 13.1931 15.6586 12.9639 15.7142C11.9586 15.9581 11.3031 16.9391 11.453 17.9755C11.4872 18.2118 11.6043 18.5085 11.8386 19.102C11.9345 19.3449 11.9824 19.4664 12.0136 19.7304C12.1292 20.7084 11.0869 21.9508 10.1158 21.9926C9.85358 22.0039 9.83681 22.0002 9.80326 21.9926C7.66174 21.51 5.66204 20.3123 4.18389 18.4421C0.736789 14.0808 1.43146 7.71364 5.73548 4.22064C10.0395 0.727643 16.323 1.43156 19.7701 5.79289C20.868 7.1819 21.5457 8.77438 21.8205 10.4127Z",fill:"none",fillRule:"evenodd",clipRule:"evenodd",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.36719 7.74976H7.24219M7.49219 7.74976C7.49219 7.88783 7.38026 7.99976 7.24219 7.99976C7.10412 7.99976 6.99219 7.88783 6.99219 7.74976C6.99219 7.61169 7.10412 7.49976 7.24219 7.49976C7.38026 7.49976 7.49219 7.61169 7.49219 7.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M7.36719 15.7498H7.24219M7.49219 15.7498C7.49219 15.8878 7.38026 15.9998 7.24219 15.9998C7.10412 15.9998 6.99219 15.8878 6.99219 15.7498C6.99219 15.6117 7.10412 15.4998 7.24219 15.4998C7.38026 15.4998 7.49219 15.6117 7.49219 15.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.8672 5.74976H11.7422M11.9922 5.74976C11.9922 5.88783 11.8803 5.99976 11.7422 5.99976C11.6041 5.99976 11.4922 5.88783 11.4922 5.74976C11.4922 5.61169 11.6041 5.49976 11.7422 5.49976C11.8803 5.49976 11.9922 5.61169 11.9922 5.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M16.3672 7.74976H16.2422M16.4922 7.74976C16.4922 7.88783 16.3803 7.99976 16.2422 7.99976C16.1041 7.99976 15.9922 7.88783 15.9922 7.74976C15.9922 7.61169 16.1041 7.49976 16.2422 7.49976C16.3803 7.49976 16.4922 7.61169 16.4922 7.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M18.3672 11.7498H18.2422M18.4922 11.7498C18.4922 11.8878 18.3803 11.9998 18.2422 11.9998C18.1041 11.9998 17.9922 11.8878 17.9922 11.7498C17.9922 11.6117 18.1041 11.4998 18.2422 11.4998C18.3803 11.4998 18.4922 11.6117 18.4922 11.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M5.86719 11.7498H5.74219M5.99219 11.7498C5.99219 11.8878 5.88026 11.9998 5.74219 11.9998C5.60412 11.9998 5.49219 11.8878 5.49219 11.7498C5.49219 11.6117 5.60412 11.4998 5.74219 11.4998C5.88026 11.4998 5.99219 11.6117 5.99219 11.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]],eS=[["path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z",fill:"currentColor",key:"0"}]],tS=[["path",{d:"M10.226 17.284c-2.965-.36-5.054-2.493-5.054-5.256 0-1.123.404-2.336 1.078-3.144-.292-.741-.247-2.314.09-2.965.898-.112 2.111.36 2.83 1.01.853-.269 1.752-.404 2.853-.404 1.1 0 1.999.135 2.807.382.696-.629 1.932-1.1 2.83-.988.315.606.36 2.179.067 2.942.72.854 1.101 2 1.101 3.167 0 2.763-2.089 4.852-5.098 5.234.763.494 1.28 1.572 1.28 2.807v2.336c0 .674.561 1.056 1.235.786 4.066-1.55 7.255-5.615 7.255-10.646C23.5 6.188 18.334 1 11.978 1 5.62 1 .5 6.188.5 12.545c0 4.986 3.167 9.12 7.435 10.669.606.225 1.19-.18 1.19-.786V20.63a2.9 2.9 0 0 1-1.078.224c-1.483 0-2.359-.808-2.987-2.313-.247-.607-.517-.966-1.034-1.033-.27-.023-.359-.135-.359-.27 0-.27.45-.471.898-.471.652 0 1.213.404 1.797 1.235.45.651.921.943 1.483.943.561 0 .92-.202 1.437-.719.382-.381.674-.718.944-.943",fill:"currentColor",key:"0"}]],wC={AiBrain01:Lg,AiBrowser:Mg,AiContentGenerator01:Tg,AlignLeft:X3,AppWindow:Am,ArchiveRestore:lC,ArrowDown:Ag,ArrowLeft:Og,ArrowRight:Bg,ArrowReloadHorizontal:Vg,ArrowUp:Qg,ArrowUpDown:r7,ArrowTurnBackward:Gg,ArrowTurnForward:qg,ArrowUpRight:i7,Beaker:oC,BellDot:u7,Browser:Am,Brain:f7,Calendar:g7,CalendarCheckOut02:k7,ChartColumn:b7,ChevronUp:Yg,ChevronsDown:Eg,ChevronsUp:t7,CircleArrowShrink:w7,Clean:I7,Clock:S7,ClockArrowUp:R7,ClockArrowDown:P7,Cloud:$7,CloudOff:D7,Coffee:N7,Columns2:D3,CornerDownLeft:Zg,CornerDownRight:Wg,Discord:H7,DiscordLogo:eS,DateTime:F7,Github:I3,GithubLogo:tS,DragDropHorizontal:U7,DragDropVertical:K7,EditFile:J7,ElectricPlugs:X7,Eye:mC,EyeOff:gC,Explore:d7,ExternalLink:j3,FileDiff:w6,File:s3,FileAttachment:o3,FileQuestion:c3,FileText:n3,FolderOpen:du,FolderEdit:l3,FolderMinus:p3,Fork:g3,GitBranch:m3,GitMerge:k3,GitPullRequest:fu,GitPullRequestArrow:fu,GitPullRequestClosed:b3,GitPullRequestDraft:w3,Globe:P3,GridView:S3,Laptop:R3,Layers:$3,Limitation:z3,ListEnd:F3,ListView:H3,Lock:U3,Mail:K3,MailOpen:J3,Maximize2:e3,Mic:n6,Minus:o6,Minimize2:z7,MoveTo:s6,NewTab:j7,News01:c6,PackageReceive:l6,Palette:Q_,PanelBottom:N6,PanelRight:z6,Paperclip:a7,Pause:p6,Pin:m6,PinOff:g6,Play:k6,Plug02:b6,Plus:I6,Puzzle:S6,Repeat:R6,SecurityCheck:$6,RotateCcw:P6,Rows2:N3,Sent:D6,SideChat:e6,Smartphone:j6,Sort:F6,SortingAZ02:H6,SortingZA01:J6,SortingOneNine:K6,SortingNineOne:U6,Square:X6,SquareUnlock02:eC,Star:nC,TextWrap:sC,TimeSchedule:cC,UserRound:pC,ZoomIn:kC,ZoomOut:bC};_g(wC)});var Nu=globalThis.__bbPluginRuntime;if(Nu==null||Nu.pluginSdkApp==null)throw new Error('Cannot load "@get-bb/plugin-sdk/app": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var os=Nu.pluginSdkApp,gL="default"in os?os.default:os,{Markdown:CL,ThreadChat:kL,ThreadTitle:yL,UrlLink:bL,definePluginApp:hh,experimental_BranchPicker:vL,experimental_Diff:wL,experimental_FileLink:xL,experimental_Icon:B,experimental_NewThreadComposer:IL,experimental_PermissionModePicker:_L,experimental_ProviderIcon:is,experimental_ProviderModelPicker:SL,experimental_SourceCode:LL,experimental_useAppPanel:PL,experimental_useBranches:ML,experimental_useCheckoutState:RL,experimental_useCodeTheme:TL,experimental_useFixedTabTarget:$L,experimental_useProviders:gh,experimental_useSidebarThreadActions:Ch,experimental_useSidebarThreadPullRequest:ss,experimental_useSidebarThreadSplit:kh,experimental_useSidebarThreads:yh,useBbContext:AL,useBbNavigate:DL,useComposer:EL,useComposerView:NL,useEnvironmentProviders:bh,useRealtime:fn,useRealtimeConnectionState:mn,useRpc:hn,useSdk:vh,useSettings:OL,useSidebarSplitLayout:wh,useSidebarThreadDraft:xh,useSidebarThreadDraftIds:Ih,useSidebarThreadRowStatus:_h,useSidebarThreadRowStatuses:zL,useSidebarThreadShortcut:Sh}=os;var it={};Lt(it,{Activity:()=>ey,Children:()=>cs,Component:()=>zu,Fragment:()=>mr,Profiler:()=>ty,PureComponent:()=>ny,StrictMode:()=>ry,Suspense:()=>oy,act:()=>iy,cache:()=>sy,cacheSignal:()=>ay,captureOwnerStack:()=>cy,cloneElement:()=>hr,createContext:()=>we,createElement:()=>_o,createRef:()=>uy,default:()=>qe,forwardRef:()=>H,isValidElement:()=>gr,lazy:()=>ly,memo:()=>ft,startTransition:()=>dy,unstable_useCacheRefresh:()=>py,use:()=>fy,useActionState:()=>my,useCallback:()=>Z,useContext:()=>xe,useDebugValue:()=>hy,useDeferredValue:()=>gy,useEffect:()=>z,useEffectEvent:()=>Cy,useId:()=>gn,useImperativeHandle:()=>ky,useInsertionEffect:()=>yy,useLayoutEffect:()=>ot,useMemo:()=>q,useOptimistic:()=>by,useReducer:()=>Zu,useRef:()=>$,useState:()=>E,useSyncExternalStore:()=>Kt,useTransition:()=>vy,version:()=>wy});var Ou=globalThis.__bbPluginRuntime;if(Ou==null||Ou.react==null)throw new Error('Cannot load "react": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var as=Ou.react,qe="default"in as?as.default:as,{Activity:ey,Children:cs,Component:zu,Fragment:mr,Profiler:ty,PureComponent:ny,StrictMode:ry,Suspense:oy,act:iy,cache:sy,cacheSignal:ay,captureOwnerStack:cy,cloneElement:hr,createContext:we,createElement:_o,createRef:uy,forwardRef:H,isValidElement:gr,lazy:ly,memo:ft,startTransition:dy,unstable_useCacheRefresh:py,use:fy,useActionState:my,useCallback:Z,useContext:xe,useDebugValue:hy,useDeferredValue:gy,useEffect:z,useEffectEvent:Cy,useId:gn,useImperativeHandle:ky,useInsertionEffect:yy,useLayoutEffect:ot,useMemo:q,useOptimistic:by,useReducer:Zu,useRef:$,useState:E,useSyncExternalStore:Kt,useTransition:vy,version:wy}=as;var ju=globalThis.__bbPluginRuntime;if(ju==null||ju.reactDom==null)throw new Error('Cannot load "react-dom": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var us=ju.reactDom,jL="default"in us?us.default:us,{createPortal:ls,flushSync:WL,preconnect:FL,prefetchDNS:VL,preinit:HL,preinitModule:BL,preload:UL,preloadModule:GL,requestFormReset:KL,unstable_batchedUpdates:So,useFormState:qL,useFormStatus:JL,version:YL}=us;var Lo=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Zn(e){let t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function ds(e){return"nodeType"in e}function Je(e){var t,n;return e?Zn(e)?e:ds(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function ps(e){let{Document:t}=Je(e);return e instanceof t}function Cr(e){return Zn(e)?!1:e instanceof Je(e).HTMLElement}function Fu(e){return e instanceof Je(e).SVGElement}function jn(e){return e?Zn(e)?e.document:ds(e)?ps(e)?e:Cr(e)||Fu(e)?e.ownerDocument:document:document:document}var qt=Lo?ot:z;function fs(e){let t=$(e);return qt(()=>{t.current=e}),Z(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function Ph(){let e=$(null),t=Z((r,o)=>{e.current=setInterval(r,o)},[]),n=Z(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function kr(e,t){t===void 0&&(t=[e]);let n=$(e);return qt(()=>{n.current!==e&&(n.current=e)},t),n}function yr(e,t){let n=$();return q(()=>{let r=e(n.current);return n.current=r,r},[...t])}function Po(e){let t=fs(e),n=$(null),r=Z(o=>{o!==n.current&&t?.(o,n.current),n.current=o},[]);return[n,r]}function ms(e){let t=$();return z(()=>{t.current=e},[e]),t.current}var Wu={};function Mo(e,t){return q(()=>{if(t)return t;let n=Wu[e]==null?0:Wu[e]+1;return Wu[e]=n,e+"-"+n},[e,t])}function Mh(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,s)=>{let a=Object.entries(s);for(let[c,u]of a){let l=i[c];l!=null&&(i[c]=l+e*u)}return i},{...t})}}var Wn=Mh(1),Ro=Mh(-1);function xy(e){return"clientX"in e&&"clientY"in e}function Vu(e){if(!e)return!1;let{KeyboardEvent:t}=Je(e.target);return t&&e instanceof t}function Iy(e){if(!e)return!1;let{TouchEvent:t}=Je(e.target);return t&&e instanceof t}function hs(e){if(Iy(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return xy(e)?{x:e.clientX,y:e.clientY}:null}var Lh="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Rh(e){return e.matches(Lh)?e:e.querySelector(Lh)}var _y={display:"none"};function Th(e){let{id:t,value:n}=e;return qe.createElement("div",{id:t,style:_y},n)}function $h(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e,o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return qe.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function Ah(){let[e,t]=E("");return{announce:Z(r=>{r!=null&&t(r)},[]),announcement:e}}var Hh=we(null);function Sy(e){let t=xe(Hh);z(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Ly(){let[e]=E(()=>new Set),t=Z(r=>(e.add(r),()=>e.delete(r)),[e]);return[Z(r=>{let{type:o,event:i}=r;e.forEach(s=>{var a;return(a=s[o])==null?void 0:a.call(s,i)})},[e]),t]}var Py={draggable:`
2
2
  To pick up a draggable item, press the space bar.
3
3
  While dragging, use the arrow keys to move the item.
4
4
  Press space again to drop the item in its new position, or press escape to cancel.
5
- `},Py={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function My(e){let{announcements:t=Py,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Ly}=e,{announce:i,announcement:s}=$h(),a=Mo("DndLiveRegion"),[c,u]=E(!1);if(z(()=>{u(!0)},[]),_y(q(()=>({onDragStart(d){let{active:m}=d;i(t.onDragStart({active:m}))},onDragMove(d){let{active:m,over:f}=d;t.onDragMove&&i(t.onDragMove({active:m,over:f}))},onDragOver(d){let{active:m,over:f}=d;i(t.onDragOver({active:m,over:f}))},onDragEnd(d){let{active:m,over:f}=d;i(t.onDragEnd({active:m,over:f}))},onDragCancel(d){let{active:m,over:f}=d;i(t.onDragCancel({active:m,over:f}))}}),[i,t])),!c)return null;let l=qe.createElement(qe.Fragment,null,qe.createElement(Rh,{id:r,value:o.draggable}),qe.createElement(Th,{id:a,announcement:s}));return n?ls(l,n):l}var Pe;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Pe||(Pe={}));function Cs(){}function bs(e,t){return q(()=>({sensor:e,options:t??{}}),[e,t])}function Hh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return q(()=>[...t].filter(r=>r!=null),[...t])}var Pt=Object.freeze({x:0,y:0});function Ry(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ty(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function $y(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Ay(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function Dy(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function Ey(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),s=o-r,a=i-n;if(r<o&&n<i){let c=t.width*t.height,u=e.width*e.height,l=s*a,d=l/(c+u-l);return Number(d.toFixed(4))}return 0}var Ny=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,o=[];for(let i of r){let{id:s}=i,a=n.get(s);if(a){let c=Ey(a,t);c>0&&o.push({id:s,data:{droppableContainer:i,value:c}})}}return o.sort($y)};function Oy(e,t){let{top:n,left:r,bottom:o,right:i}=t;return n<=e.y&&e.y<=o&&r<=e.x&&e.x<=i}var Bh=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];let o=[];for(let i of t){let{id:s}=i,a=n.get(s);if(a&&Oy(r,a)){let u=Ay(a).reduce((d,m)=>d+Ry(r,m),0),l=Number((u/4).toFixed(4));o.push({id:s,data:{droppableContainer:i,value:l}})}}return o.sort(Ty)};function zy(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Uh(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Pt}function Zy(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}var jy=Zy(1);function Wy(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Fy(e,t,n){let r=Wy(t);if(!r)return e;let{scaleX:o,scaleY:i,x:s,y:a}=r,c=e.left-s-(1-o)*parseFloat(n),u=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),l=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:l,height:d,top:u,right:c+l,bottom:u+d,left:c}}var Vy={ignoreTransform:!1};function Oo(e,t){t===void 0&&(t=Vy);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:u,transformOrigin:l}=Je(e).getComputedStyle(e);u&&(n=Fy(n,u,l))}let{top:r,left:o,width:i,height:s,bottom:a,right:c}=n;return{top:r,left:o,width:i,height:s,bottom:a,right:c}}function Ah(e){return Oo(e,{ignoreTransform:!0})}function Hy(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function By(e,t){return t===void 0&&(t=Je(e).getComputedStyle(e)),t.position==="fixed"}function Uy(e,t){t===void 0&&(t=Je(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{let i=t[o];return typeof i=="string"?n.test(i):!1})}function qu(e,t){let n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(ps(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Cr(o)||Wu(o)||n.includes(o))return n;let i=Je(e).getComputedStyle(o);return o!==e&&Uy(o,i)&&n.push(o),By(o,i)?n:r(o.parentNode)}return e?r(e):n}function Gh(e){let[t]=qu(e,1);return t??null}function Vu(e){return!Lo||!e?null:Zn(e)?e:ds(e)?ps(e)||e===jn(e).scrollingElement?window:Cr(e)?e:null:null}function Kh(e){return Zn(e)?e.scrollX:e.scrollLeft}function qh(e){return Zn(e)?e.scrollY:e.scrollTop}function Uu(e){return{x:Kh(e),y:qh(e)}}var De;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(De||(De={}));function Jh(e){return!Lo||!e?!1:e===document.scrollingElement}function Yh(e){let t={x:0,y:0},n=Jh(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:s,isRight:a,maxScroll:r,minScroll:t}}var Gy={x:.2,y:.2};function Ky(e,t,n,r,o){let{top:i,left:s,right:a,bottom:c}=n;r===void 0&&(r=10),o===void 0&&(o=Gy);let{isTop:u,isBottom:l,isLeft:d,isRight:m}=Yh(e),f={x:0,y:0},h={x:0,y:0},g={height:t.height*o.y,width:t.width*o.x};return!u&&i<=t.top+g.height?(f.y=De.Backward,h.y=r*Math.abs((t.top+g.height-i)/g.height)):!l&&c>=t.bottom-g.height&&(f.y=De.Forward,h.y=r*Math.abs((t.bottom-g.height-c)/g.height)),!m&&a>=t.right-g.width?(f.x=De.Forward,h.x=r*Math.abs((t.right-g.width-a)/g.width)):!d&&s<=t.left+g.width&&(f.x=De.Backward,h.x=r*Math.abs((t.left+g.width-s)/g.width)),{direction:f,speed:h}}function qy(e){if(e===document.scrollingElement){let{innerWidth:i,innerHeight:s}=window;return{top:0,left:0,right:i,bottom:s,width:i,height:s}}let{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Xh(e){return e.reduce((t,n)=>Wn(t,Uu(n)),Pt)}function Jy(e){return e.reduce((t,n)=>t+Kh(n),0)}function Yy(e){return e.reduce((t,n)=>t+qh(n),0)}function Xy(e,t){if(t===void 0&&(t=Oo),!e)return;let{top:n,left:r,bottom:o,right:i}=t(e);Gh(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}var Qy=[["x",["left","right"],Jy],["y",["top","bottom"],Yy]],$o=class{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let r=qu(n),o=Xh(r);this.rect={...t},this.width=t.width,this.height=t.height;for(let[i,s,a]of Qy)for(let c of s)Object.defineProperty(this,c,{get:()=>{let u=a(r),l=o[i]-u;return this.rect[c]+l},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},Fn=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}};function eb(e){let{EventTarget:t}=Je(e);return e instanceof t?e:jn(e)}function Hu(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Ct;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ct||(Ct={}));function Dh(e){e.preventDefault()}function tb(e){e.stopPropagation()}var fe;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(fe||(fe={}));var Qh={start:[fe.Space,fe.Enter],cancel:[fe.Esc],end:[fe.Space,fe.Enter,fe.Tab]},nb=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case fe.Right:return{...n,x:n.x+25};case fe.Left:return{...n,x:n.x-25};case fe.Down:return{...n,y:n.y+25};case fe.Up:return{...n,y:n.y-25}}},br=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;let{event:{target:n}}=t;this.props=t,this.listeners=new Fn(jn(n)),this.windowListeners=new Fn(Je(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ct.Resize,this.handleCancel),this.windowListeners.add(Ct.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ct.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Xy(r),n(Pt)}handleKeyDown(t){if(Fu(t)){let{active:n,context:r,options:o}=this.props,{keyboardCodes:i=Qh,coordinateGetter:s=nb,scrollBehavior:a="smooth"}=o,{code:c}=t;if(i.end.includes(c)){this.handleEnd(t);return}if(i.cancel.includes(c)){this.handleCancel(t);return}let{collisionRect:u}=r.current,l=u?{x:u.left,y:u.top}:Pt;this.referenceCoordinates||(this.referenceCoordinates=l);let d=s(t,{active:n,context:r.current,currentCoordinates:l});if(d){let m=Ro(d,l),f={x:0,y:0},{scrollableAncestors:h}=r.current;for(let g of h){let k=t.code,{isTop:v,isRight:y,isLeft:w,isBottom:T,maxScroll:M,minScroll:x}=Yh(g),A=qy(g),V={x:Math.min(k===fe.Right?A.right-A.width/2:A.right,Math.max(k===fe.Right?A.left:A.left+A.width/2,d.x)),y:Math.min(k===fe.Down?A.bottom-A.height/2:A.bottom,Math.max(k===fe.Down?A.top:A.top+A.height/2,d.y))},X=k===fe.Right&&!y||k===fe.Left&&!w,ie=k===fe.Down&&!T||k===fe.Up&&!v;if(X&&V.x!==d.x){let re=g.scrollLeft+m.x,W=k===fe.Right&&re<=M.x||k===fe.Left&&re>=x.x;if(W&&!m.y){g.scrollTo({left:re,behavior:a});return}W?f.x=g.scrollLeft-re:f.x=k===fe.Right?g.scrollLeft-M.x:g.scrollLeft-x.x,f.x&&g.scrollBy({left:-f.x,behavior:a});break}else if(ie&&V.y!==d.y){let re=g.scrollTop+m.y,W=k===fe.Down&&re<=M.y||k===fe.Up&&re>=x.y;if(W&&!m.x){g.scrollTo({top:re,behavior:a});return}W?f.y=g.scrollTop-re:f.y=k===fe.Down?g.scrollTop-M.y:g.scrollTop-x.y,f.y&&g.scrollBy({top:-f.y,behavior:a});break}}this.handleMove(t,Wn(Ro(d,this.referenceCoordinates),f))}}}handleMove(t,n){let{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){let{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){let{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};br.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Qh,onActivation:o}=t,{active:i}=n,{code:s}=e.nativeEvent;if(r.start.includes(s)){let a=i.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),o?.({event:e.nativeEvent}),!0)}return!1}}];function Eh(e){return!!(e&&"distance"in e)}function Nh(e){return!!(e&&"delay"in e)}var Ao=class{constructor(t,n,r){var o;r===void 0&&(r=eb(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;let{event:i}=t,{target:s}=i;this.props=t,this.events=n,this.document=jn(s),this.documentListeners=new Fn(this.document),this.listeners=new Fn(r),this.windowListeners=new Fn(Je(s)),this.initialCoordinates=(o=hs(i))!=null?o:Pt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Ct.Resize,this.handleCancel),this.windowListeners.add(Ct.DragStart,Dh),this.windowListeners.add(Ct.VisibilityChange,this.handleCancel),this.windowListeners.add(Ct.ContextMenu,Dh),this.documentListeners.add(Ct.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Nh(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Eh(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){let{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){let{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Ct.Click,tb,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ct.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;let{activated:r,initialCoordinates:o,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!o)return;let c=(n=hs(t))!=null?n:Pt,u=Ro(o,c);if(!r&&a){if(Eh(a)){if(a.tolerance!=null&&Hu(u,a.tolerance))return this.handleCancel();if(Hu(u,a.distance))return this.handleStart()}if(Nh(a)&&Hu(u,a.tolerance))return this.handleCancel();this.handlePending(a,u);return}t.cancelable&&t.preventDefault(),s(c)}handleEnd(){let{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){let{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===fe.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}},rb={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}},ks=class extends Ao{constructor(t){let{event:n}=t,r=jn(n.target);super(t,rb,r)}};ks.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var ob={move:{name:"mousemove"},end:{name:"mouseup"}},Gu;(function(e){e[e.RightClick=2]="RightClick"})(Gu||(Gu={}));var Do=class extends Ao{constructor(t){super(t,ob,jn(t.event.target))}};Do.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Gu.RightClick?!1:(r?.({event:n}),!0)}}];var Bu={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}},Eo=class extends Ao{constructor(t){super(t,Bu)}static setup(){return window.addEventListener(Bu.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Bu.move.name,t)};function t(){}}};Eo.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:o}=n;return o.length>1?!1:(r?.({event:n}),!0)}}];var To;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(To||(To={}));var ys;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(ys||(ys={}));function ib(e){let{acceleration:t,activator:n=To.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:s=5,order:a=ys.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:l,delta:d,threshold:m}=e,f=ab({delta:d,disabled:!i}),[h,g]=Lh(),k=$({x:0,y:0}),v=$({x:0,y:0}),y=q(()=>{switch(n){case To.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case To.DraggableRect:return o}},[n,o,c]),w=$(null),T=Z(()=>{let x=w.current;if(!x)return;let A=k.current.x*v.current.x,V=k.current.y*v.current.y;x.scrollBy(A,V)},[]),M=q(()=>a===ys.TreeOrder?[...u].reverse():u,[a,u]);z(()=>{if(!i||!u.length||!y){g();return}for(let x of M){if(r?.(x)===!1)continue;let A=u.indexOf(x),V=l[A];if(!V)continue;let{direction:X,speed:ie}=Ky(x,V,y,t,m);for(let re of["x","y"])f[re][X[re]]||(ie[re]=0,X[re]=0);if(ie.x>0||ie.y>0){g(),w.current=x,h(T,s),k.current=ie,v.current=X;return}}k.current={x:0,y:0},v.current={x:0,y:0},g()},[t,T,r,g,i,s,JSON.stringify(y),JSON.stringify(f),h,u,M,l,JSON.stringify(m)])}var sb={x:{[De.Backward]:!1,[De.Forward]:!1},y:{[De.Backward]:!1,[De.Forward]:!1}};function ab(e){let{delta:t,disabled:n}=e,r=ms(t);return yr(o=>{if(n||!r||!o)return sb;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[De.Backward]:o.x[De.Backward]||i.x===-1,[De.Forward]:o.x[De.Forward]||i.x===1},y:{[De.Backward]:o.y[De.Backward]||i.y===-1,[De.Forward]:o.y[De.Forward]||i.y===1}}},[n,t,r])}function cb(e,t){let n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return yr(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function ub(e,t){return q(()=>e.reduce((n,r)=>{let{sensor:o}=r,i=o.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...i]},[]),[e,t])}var No;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(No||(No={}));var Ku;(function(e){e.Optimized="optimized"})(Ku||(Ku={}));var Oh=new Map;function lb(e,t){let{dragging:n,dependencies:r,config:o}=t,[i,s]=E(null),{frequency:a,measure:c,strategy:u}=o,l=$(e),d=k(),m=kr(d),f=Z(function(v){v===void 0&&(v=[]),!m.current&&s(y=>y===null?v:y.concat(v.filter(w=>!y.includes(w))))},[m]),h=$(null),g=yr(v=>{if(d&&!n)return Oh;if(!v||v===Oh||l.current!==e||i!=null){let y=new Map;for(let w of e){if(!w)continue;if(i&&i.length>0&&!i.includes(w.id)&&w.rect.current){y.set(w.id,w.rect.current);continue}let T=w.node.current,M=T?new $o(c(T),T):null;w.rect.current=M,M&&y.set(w.id,M)}return y}return v},[e,i,n,d,c]);return z(()=>{l.current=e},[e]),z(()=>{d||f()},[n,d]),z(()=>{i&&i.length>0&&s(null)},[JSON.stringify(i)]),z(()=>{d||typeof a!="number"||h.current!==null||(h.current=setTimeout(()=>{f(),h.current=null},a))},[a,d,f,...r]),{droppableRects:g,measureDroppableContainers:f,measuringScheduled:i!=null};function k(){switch(u){case No.Always:return!1;case No.BeforeDragging:return n;default:return!n}}}function e5(e,t){return yr(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function db(e,t){return e5(e,t)}function pb(e){let{callback:t,disabled:n}=e,r=fs(t),o=q(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;let{MutationObserver:i}=window;return new i(r)},[r,n]);return z(()=>()=>o?.disconnect(),[o]),o}function vs(e){let{callback:t,disabled:n}=e,r=fs(t),o=q(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;let{ResizeObserver:i}=window;return new i(r)},[n]);return z(()=>()=>o?.disconnect(),[o]),o}function fb(e){return new $o(Oo(e),e)}function zh(e,t,n){t===void 0&&(t=fb);let[r,o]=E(null);function i(){o(c=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}let l=t(e);return JSON.stringify(c)===JSON.stringify(l)?c:l})}let s=pb({callback(c){if(e)for(let u of c){let{type:l,target:d}=u;if(l==="childList"&&d instanceof HTMLElement&&d.contains(e)){i();break}}}}),a=vs({callback:i});return qt(()=>{i(),e?(a?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),s?.disconnect())},[e]),r}function mb(e){let t=e5(e);return Uh(e,t)}var Zh=[];function hb(e){let t=$(e),n=yr(r=>e?r&&r!==Zh&&e&&t.current&&e.parentNode===t.current.parentNode?r:qu(e):Zh,[e]);return z(()=>{t.current=e},[e]),n}function gb(e){let[t,n]=E(null),r=$(e),o=Z(i=>{let s=Vu(i.target);s&&n(a=>a?(a.set(s,Uu(s)),new Map(a)):null)},[]);return z(()=>{let i=r.current;if(e!==i){s(i);let a=e.map(c=>{let u=Vu(c);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,Uu(u)]):null}).filter(c=>c!=null);n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(i)};function s(a){a.forEach(c=>{let u=Vu(c);u?.removeEventListener("scroll",o)})}},[o,e]),q(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>Wn(i,s),Pt):Xh(e):Pt,[e,t])}function jh(e,t){t===void 0&&(t=[]);let n=$(null);return z(()=>{n.current=null},t),z(()=>{let r=e!==Pt;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Ro(e,n.current):Pt}function Cb(e){z(()=>{if(!Lo)return;let t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(let n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function kb(e,t){return q(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=s=>{i(s,t)},n},{}),[e,t])}function t5(e){return q(()=>e?Hy(e):null,[e])}var Wh=[];function yb(e,t){t===void 0&&(t=Oo);let[n]=e,r=t5(n?Je(n):null),[o,i]=E(Wh);function s(){i(()=>e.length?e.map(c=>Jh(c)?r:new $o(t(c),c)):Wh)}let a=vs({callback:s});return qt(()=>{a?.disconnect(),s(),e.forEach(c=>a?.observe(c))},[e]),o}function bb(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return Cr(t)?t:e}function vb(e){let{measure:t}=e,[n,r]=E(null),o=Z(u=>{for(let{target:l}of u)if(Cr(l)){r(d=>{let m=t(l);return d?{...d,width:m.width,height:m.height}:m});break}},[t]),i=vs({callback:o}),s=Z(u=>{let l=bb(u);i?.disconnect(),l&&i?.observe(l),r(l?t(l):null)},[t,i]),[a,c]=Po(s);return q(()=>({nodeRef:a,rect:n,setRef:c}),[n,a,c])}var wb=[{sensor:ks,options:{}},{sensor:br,options:{}}],xb={current:{}},gs={draggable:{measure:Ah},droppable:{measure:Ah,strategy:No.WhileDragging,frequency:Ku.Optimized},dragOverlay:{measure:Oo}},Vn=class extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}},Ib={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Vn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Cs},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:gs,measureDroppableContainers:Cs,windowRect:null,measuringScheduled:!1},_b={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Cs,draggableNodes:new Map,over:null,measureDroppableContainers:Cs},ws=we(_b),Sb=we(Ib);function Lb(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Vn}}}function Pb(e,t){switch(t.type){case Pe.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Pe.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Pe.DragEnd:case Pe.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Pe.RegisterDroppable:{let{element:n}=t,{id:r}=n,o=new Vn(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case Pe.SetDroppableDisabled:{let{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let s=new Vn(e.droppable.containers);return s.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case Pe.UnregisterDroppable:{let{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;let i=new Vn(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Mb(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:o}=xe(ws),i=ms(r),s=ms(n?.id);return z(()=>{if(!t&&!r&&i&&s!=null){if(!Fu(i)||document.activeElement===i.target)return;let a=o.get(s);if(!a)return;let{activatorNode:c,node:u}=a;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(let l of[c.current,u.current]){if(!l)continue;let d=Mh(l);if(d){d.focus();break}}})}},[r,t,o,s,i]),null}function Rb(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function Tb(e){return q(()=>({draggable:{...gs.draggable,...e?.draggable},droppable:{...gs.droppable,...e?.droppable},dragOverlay:{...gs.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function $b(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e,i=$(!1),{x:s,y:a}=typeof o=="boolean"?{x:o,y:o}:o;qt(()=>{if(!s&&!a||!t){i.current=!1;return}if(i.current||!r)return;let u=t?.node.current;if(!u||u.isConnected===!1)return;let l=n(u),d=Uh(l,r);if(s||(d.x=0),a||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){let m=Gh(u);m&&m.scrollBy({top:d.y,left:d.x})}},[t,s,a,r,n])}var n5=we({...Pt,scaleX:1,scaleY:1}),Cn;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Cn||(Cn={}));var r5=ft(function(t){var n,r,o,i;let{id:s,accessibility:a,autoScroll:c=!0,children:u,sensors:l=wb,collisionDetection:d=Ny,measuring:m,modifiers:f,...h}=t,g=zu(Pb,void 0,Lb),[k,v]=g,[y,w]=Sy(),[T,M]=E(Cn.Uninitialized),x=T===Cn.Initialized,{draggable:{active:A,nodes:V,translate:X},droppable:{containers:ie}}=k,re=A!=null?V.get(A):null,W=$({initial:null,translated:null}),ae=q(()=>{var he;return A!=null?{id:A,data:(he=re?.data)!=null?he:xb,rect:W}:null},[A,re]),ne=$(null),[ze,xt]=E(null),[Ge,Nn]=E(null),gt=kr(h,Object.values(h)),Ve=Mo("DndDescribedBy",s),Et=q(()=>ie.getEnabled(),[ie]),Te=Tb(m),{droppableRects:Ze,measureDroppableContainers:Nt,measuringScheduled:Ot}=lb(Et,{dragging:x,dependencies:[X.x,X.y],config:Te.droppable}),$e=cb(V,A),cn=q(()=>Ge?hs(Ge):null,[Ge]),un=Au(),On=db($e,Te.draggable.measure);$b({activeNode:A!=null?V.get(A):null,config:un.layoutShiftCompensation,initialRect:On,measure:Te.draggable.measure});let He=zh($e,Te.draggable.measure,On),Be=zh($e?$e.parentElement:null),Ae=$({activatorEvent:null,active:null,activeNode:$e,collisionRect:null,collisions:null,droppableRects:Ze,draggableNodes:V,draggingNode:null,draggingNodeRect:null,droppableContainers:ie,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ce=ie.getNodeFor((n=Ae.current.over)==null?void 0:n.id),me=vb({measure:Te.dragOverlay.measure}),Ut=(r=me.nodeRef.current)!=null?r:$e,rt=x?(o=me.rect)!=null?o:He:null,ln=!!(me.nodeRef.current&&me.rect),ee=mb(ln?null:He),zt=t5(Ut?Je(Ut):null),Ke=hb(x?Ce??$e:null),Zt=yb(Ke),j=Rb(f,{transform:{x:X.x-ee.x,y:X.y-ee.y,scaleX:1,scaleY:1},activatorEvent:Ge,active:ae,activeNodeRect:He,containerNodeRect:Be,draggingNodeRect:rt,over:Ae.current.over,overlayNodeRect:me.rect,scrollableAncestors:Ke,scrollableAncestorRects:Zt,windowRect:zt}),Se=cn?Wn(cn,X):null,ko=gb(Ke),pt=jh(ko),ns=jh(ko,[He]),Gt=Wn(j,pt),It=rt?jy(rt,j):null,_t=ae&&It?d({active:ae,collisionRect:It,droppableRects:Ze,droppableContainers:Et,pointerCoordinates:Se}):null,rs=Dy(_t,"id"),[St,yo]=E(null),bo=ln?j:Wn(j,ns),Mu=zy(bo,(i=St?.rect)!=null?i:null,He),dn=$(null),zn=Z((he,be)=>{let{sensor:ve,options:b}=be;if(ne.current==null)return;let _=V.get(ne.current);if(!_)return;let P=he.nativeEvent,G=new ve({active:ne.current,activeNode:_,event:P,options:b,context:Ae,onAbort(oe){if(!V.get(oe))return;let{onDragAbort:je}=gt.current,Le={id:oe};je?.(Le),y({type:"onDragAbort",event:Le})},onPending(oe,ge,je,Le){if(!V.get(oe))return;let{onDragPending:xo}=gt.current,pn={id:oe,constraint:ge,initialCoordinates:je,offset:Le};xo?.(pn),y({type:"onDragPending",event:pn})},onStart(oe){let ge=ne.current;if(ge==null)return;let je=V.get(ge);if(!je)return;let{onDragStart:Le}=gt.current,wo={activatorEvent:P,active:{id:ge,data:je.data,rect:W}};So(()=>{Le?.(wo),M(Cn.Initializing),v({type:Pe.DragStart,initialCoordinates:oe,active:ge}),y({type:"onDragStart",event:wo}),xt(dn.current),Nn(P)})},onMove(oe){v({type:Pe.DragMove,coordinates:oe})},onEnd:te(Pe.DragEnd),onCancel:te(Pe.DragCancel)});dn.current=G;function te(oe){return async function(){let{active:je,collisions:Le,over:wo,scrollAdjustedTranslate:xo}=Ae.current,pn=null;if(je&&xo){let{cancelDrop:Io}=gt.current;pn={activatorEvent:P,active:je,collisions:Le,delta:xo,over:wo},oe===Pe.DragEnd&&typeof Io=="function"&&await Promise.resolve(Io(pn))&&(oe=Pe.DragCancel)}ne.current=null,So(()=>{v({type:oe}),M(Cn.Uninitialized),yo(null),xt(null),Nn(null),dn.current=null;let Io=oe===Pe.DragEnd?"onDragEnd":"onDragCancel";if(pn){let Du=gt.current[Io];Du?.(pn),y({type:Io,event:pn})}})}}},[V]),Ru=Z((he,be)=>(ve,b)=>{let _=ve.nativeEvent,P=V.get(b);if(ne.current!==null||!P||_.dndKit||_.defaultPrevented)return;let G={active:P};he(ve,be.options,G)===!0&&(_.dndKit={capturedBy:be.sensor},ne.current=b,zn(ve,be))},[V,zn]),vo=ub(l,Ru);Cb(l),qt(()=>{He&&T===Cn.Initializing&&M(Cn.Initialized)},[He,T]),z(()=>{let{onDragMove:he}=gt.current,{active:be,activatorEvent:ve,collisions:b,over:_}=Ae.current;if(!be||!ve)return;let P={active:be,activatorEvent:ve,collisions:b,delta:{x:Gt.x,y:Gt.y},over:_};So(()=>{he?.(P),y({type:"onDragMove",event:P})})},[Gt.x,Gt.y]),z(()=>{let{active:he,activatorEvent:be,collisions:ve,droppableContainers:b,scrollAdjustedTranslate:_}=Ae.current;if(!he||ne.current==null||!be||!_)return;let{onDragOver:P}=gt.current,G=b.get(rs),te=G&&G.rect.current?{id:G.id,rect:G.rect.current,data:G.data,disabled:G.disabled}:null,oe={active:he,activatorEvent:be,collisions:ve,delta:{x:_.x,y:_.y},over:te};So(()=>{yo(te),P?.(oe),y({type:"onDragOver",event:oe})})},[rs]),qt(()=>{Ae.current={activatorEvent:Ge,active:ae,activeNode:$e,collisionRect:It,collisions:_t,droppableRects:Ze,draggableNodes:V,draggingNode:Ut,draggingNodeRect:rt,droppableContainers:ie,over:St,scrollableAncestors:Ke,scrollAdjustedTranslate:Gt},W.current={initial:rt,translated:It}},[ae,$e,_t,It,V,Ut,rt,Ze,ie,St,Ke,Gt]),ib({...un,delta:X,draggingRect:It,pointerCoordinates:Se,scrollableAncestors:Ke,scrollableAncestorRects:Zt});let Tu=q(()=>({active:ae,activeNode:$e,activeNodeRect:He,activatorEvent:Ge,collisions:_t,containerNodeRect:Be,dragOverlay:me,draggableNodes:V,droppableContainers:ie,droppableRects:Ze,over:St,measureDroppableContainers:Nt,scrollableAncestors:Ke,scrollableAncestorRects:Zt,measuringConfiguration:Te,measuringScheduled:Ot,windowRect:zt}),[ae,$e,He,Ge,_t,Be,me,V,ie,Ze,St,Nt,Ke,Zt,Te,Ot,zt]),$u=q(()=>({activatorEvent:Ge,activators:vo,active:ae,activeNodeRect:He,ariaDescribedById:{draggable:Ve},dispatch:v,draggableNodes:V,over:St,measureDroppableContainers:Nt}),[Ge,vo,ae,He,v,Ve,V,St,Nt]);return qe.createElement(Vh.Provider,{value:w},qe.createElement(ws.Provider,{value:$u},qe.createElement(Sb.Provider,{value:Tu},qe.createElement(n5.Provider,{value:Mu},u)),qe.createElement(Mb,{disabled:a?.restoreFocus===!1})),qe.createElement(My,{...a,hiddenTextDescribedById:Ve}));function Au(){let he=ze?.autoScrollEnabled===!1,be=typeof c=="object"?c.enabled===!1:c===!1,ve=x&&!he&&!be;return typeof c=="object"?{...c,enabled:ve}:{enabled:ve}}}),Ab=we(null),Fh="button",Db="Draggable";function xs(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e,i=Mo(Db),{activators:s,activatorEvent:a,active:c,activeNodeRect:u,ariaDescribedById:l,draggableNodes:d,over:m}=xe(ws),{role:f=Fh,roleDescription:h="draggable",tabIndex:g=0}=o??{},k=c?.id===t,v=xe(k?n5:Ab),[y,w]=Po(),[T,M]=Po(),x=kb(s,t),A=kr(n);qt(()=>(d.set(t,{id:t,key:i,node:y,activatorNode:T,data:A}),()=>{let X=d.get(t);X&&X.key===i&&d.delete(t)}),[d,t]);let V=q(()=>({role:f,tabIndex:g,"aria-disabled":r,"aria-pressed":k&&f===Fh?!0:void 0,"aria-roledescription":h,"aria-describedby":l.draggable}),[r,f,g,k,h,l.draggable]);return{active:c,activatorEvent:a,activeNodeRect:u,attributes:V,isDragging:k,listeners:r?void 0:x,node:y,over:m,setNodeRef:w,setActivatorNodeRef:M,transform:v}}var Eb="Droppable",Nb={timeout:25};function Is(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e,i=Mo(Eb),{active:s,dispatch:a,over:c,measureDroppableContainers:u}=xe(ws),l=$({disabled:n}),d=$(!1),m=$(null),f=$(null),{disabled:h,updateMeasurementsFor:g,timeout:k}={...Nb,...o},v=kr(g??r),y=Z(()=>{if(!d.current){d.current=!0;return}f.current!=null&&clearTimeout(f.current),f.current=setTimeout(()=>{u(Array.isArray(v.current)?v.current:[v.current]),f.current=null},k)},[k]),w=vs({callback:y,disabled:h||!s}),T=Z((V,X)=>{w&&(X&&(w.unobserve(X),d.current=!1),V&&w.observe(V))},[w]),[M,x]=Po(T),A=kr(t);return z(()=>{!w||!M.current||(w.disconnect(),d.current=!1,w.observe(M.current))},[M,w]),z(()=>(a({type:Pe.RegisterDroppable,element:{id:r,key:i,disabled:n,node:M,rect:m,data:A}}),()=>a({type:Pe.UnregisterDroppable,key:i,id:r})),[r]),z(()=>{n!==l.current.disabled&&(a({type:Pe.SetDroppableDisabled,id:r,key:i,disabled:n}),l.current.disabled=n)},[r,i,n,a]),{active:s,rect:m,isOver:c?.id===r,node:M,over:c,setNodeRef:x}}var Ju=globalThis.__bbPluginRuntime;if(Ju==null||Ju.sonner==null)throw new Error('Cannot load "sonner": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var _s=Ju.sonner,cP="default"in _s?_s.default:_s,{Toaster:uP,toast:st,useSonner:lP}=_s;var Ob=Object.defineProperty,Xu=(e,t)=>Ob(e,"name",{value:t,configurable:!0});function Yu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Xu(Yu,"setRef");function o5(...e){return t=>{let n=!1,r=e.map(o=>{let i=Yu(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){let i=r[o];typeof i=="function"?i():Yu(e[o],null)}}}}Xu(o5,"composeRefs");function Qu(...e){return Z(o5(...e),e)}Xu(Qu,"useComposedRefs");var zb=Object.defineProperty,Mt=(e,t)=>zb(e,"name",{value:t,configurable:!0});function i5(e){let t=H((n,r)=>{let{children:o,...i}=n,s=null,a=!1,c=[];el(o)&&typeof Ss=="function"&&(o=Ss(o._payload)),cs.forEach(o,m=>{if(u5(m)){a=!0;let f=m,h="child"in f.props?f.props.child:f.props.children;el(h)&&typeof Ss=="function"&&(h=Ss(h._payload)),s=jb(f,h),c.push(s?.props?.children)}else c.push(m)}),s?s=hr(s,void 0,c):!a&&cs.count(o)===1&&gr(o)&&(s=o);let u=s?c5(s):void 0,l=Qu(r,u);if(!s){if(o||o===0)throw new Error(a?Vb(e):Fb(e));return o}let d=a5(i,s.props??{});return s.type!==mr&&(d.ref=r?l:u),hr(s,d)});return t.displayName=`${e}.Slot`,t}Mt(i5,"createSlot");var kn=i5("Slot"),s5=Symbol.for("radix.slottable");function Zb(e){let t=Mt(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=s5,t}Mt(Zb,"createSlottable");var jb=Mt((e,t)=>{if("child"in e.props){let n=e.props.child;return gr(n)?hr(n,void 0,e.props.children(n.props.children)):null}return gr(t)?t:null},"getSlottableElementFromSlottable");function a5(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{let c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}Mt(a5,"mergeProps");function c5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Mt(c5,"getElementRef");function u5(e){return gr(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===s5}Mt(u5,"isSlottable");var Wb=Symbol.for("react.lazy");function el(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Wb&&"_payload"in e&&l5(e._payload)}Mt(el,"isLazyComponent");function l5(e){return typeof e=="object"&&e!==null&&"then"in e}Mt(l5,"isPromiseLike");var Fb=Mt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Vb=Mt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Ss=it[" use ".trim().toString()];var tl=globalThis.__bbPluginRuntime;if(tl==null||tl.classVarianceAuthority==null)throw new Error('Cannot load "class-variance-authority": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ls=tl.classVarianceAuthority,hP="default"in Ls?Ls.default:Ls,{cva:d5,cx:gP}=Ls;var nl=globalThis.__bbPluginRuntime;if(nl==null||nl.clsx==null)throw new Error('Cannot load "clsx": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ps=nl.clsx,kP="default"in Ps?Ps.default:Ps,{clsx:p5}=Ps;var rl=globalThis.__bbPluginRuntime;if(rl==null||rl.tailwindMerge==null)throw new Error('Cannot load "tailwind-merge": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ms=rl.tailwindMerge,bP="default"in Ms?Ms.default:Ms,{createTailwindMerge:vP,extendTailwindMerge:wP,fromTheme:xP,getDefaultConfig:IP,mergeConfigs:_P,twJoin:SP,twMerge:f5,validators:LP}=Ms;function I(...e){return f5(p5(e))}var Rs="transition-colors duration-150 hover:duration-0",jt="transition-none";var ol=globalThis.__bbPluginRuntime;if(ol==null||ol.jsxRuntime==null)throw new Error('Cannot load "react/jsx-runtime": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ts=ol.jsxRuntime,AP="default"in Ts?Ts.default:Ts,{Fragment:kt,jsx:p,jsxs:S}=Ts;var $s=d5(`inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ${Rs} focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0`,{variants:{variant:{default:"bg-foreground text-background hover:bg-foreground/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-transparent hover:bg-state-hover hover:text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-state-hover hover:text-foreground aria-pressed:bg-state-active aria-pressed:text-foreground aria-pressed:hover:bg-state-active data-[state=open]:bg-state-active data-[state=open]:text-foreground data-[state=open]:hover:bg-state-active",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ye=H(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>p(r?kn:"button",{className:I($s({variant:t,size:n,className:e})),ref:i,...o}));Ye.displayName="Button";var il=globalThis.__bbPluginRuntime;if(il==null||il.radixPopover==null)throw new Error('Cannot load "@radix-ui/react-popover": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var As=il.radixPopover,WP="default"in As?As.default:As,{Anchor:m5,Arrow:FP,Close:VP,Content:h5,Popover:HP,PopoverAnchor:BP,PopoverArrow:UP,PopoverClose:GP,PopoverContent:KP,PopoverPortal:qP,PopoverTrigger:JP,Portal:g5,Root:C5,Trigger:k5,createPopoverScope:YP}=As;function Ee(){let e="thread-glance";return{"data-bb-portaled-overlay":"","data-bb-plugin-root":"",...e!==void 0?{"data-bb-plugin":e}:{}}}var Bb="select-none",Ub=new Set(["button","checkbox","file","hidden","image","radio","range","reset","submit"]),yn=e=>I(Bb,e);function Gb(e){return e instanceof HTMLTextAreaElement?!0:e instanceof HTMLInputElement?!e.disabled&&!e.readOnly&&!Ub.has(e.type):e instanceof HTMLElement?e.isContentEditable||e.closest("[contenteditable='true']")!==null:!1}function zo(e){if(typeof document>"u")return;let t=document.activeElement;!t||!Gb(t)||e!==null&&!e.contains(t)||t.blur()}function bn(){zo(null)}function y5(){zo(null)}function Jt(e){e.preventDefault()}var sl="pointer";typeof document<"u"&&(document.addEventListener("keydown",()=>{sl="keyboard"},{capture:!0}),document.addEventListener("pointerdown",()=>{sl="pointer"},{capture:!0}));function b5(){return sl==="keyboard"}var Ds=new Map;function Kb(e){if(typeof window>"u"||!window.matchMedia)return null;let t=Ds.get(e);if(t)return t;let n=window.matchMedia(e),r=new Set,o=()=>{for(let i of r)i()};return t={mql:n,subscribe(i){let s=r.size===0;return r.add(i),s&&n.addEventListener("change",o),()=>{r.delete(i),r.size===0&&(n.removeEventListener("change",o),Ds.delete(e))}}},Ds.set(e,t),t}function qb(e,t){return Kb(e)?.subscribe(t)??(()=>{})}function Jb(e){return typeof window>"u"||!window.matchMedia?!1:Ds.get(e)?.mql.matches??window.matchMedia(e).matches}function Es(e){return Kt(t=>qb(e,t),()=>Jb(e),()=>!1)}var Yb="(max-width: 767px)",Xb=we(null);function v5(){let e=xe(Xb),t=Es(Yb);return e!==null?e:t}var Qb="(pointer: coarse)";function Ns(){return Es(Qb)}var ev=120,Zs={width:"auto",minWidth:"auto",maxWidth:"none"},al="--bb-drawer-keyboard-inset",tv=80;function zs(e){e!==null&&(e.style.height="",e.style.bottom="",e.style.removeProperty(al))}function nv({layoutViewportHeight:e,visualViewportHeight:t,visualViewportOffsetTop:n}){let r=Math.round(e-(t+n));return r>=tv?r:0}function rv(e,t){z(()=>{let n=e.current,r=window.visualViewport;if(n===null||!t||!r)return;let o=null,i=()=>{if(o=null,r.scale!==1){zs(n);return}let a=nv({layoutViewportHeight:n.ownerDocument.documentElement.clientHeight,visualViewportHeight:r.height,visualViewportOffsetTop:r.offsetTop});if(a===0){n.style.bottom="",n.style.removeProperty(al);return}n.style.bottom=`${a}px`,n.style.setProperty(al,`${a}px`)},s=()=>{o!==null&&window.cancelAnimationFrame(o),o=window.requestAnimationFrame(i)};return i(),r.addEventListener("resize",s),r.addEventListener("scroll",s),()=>{r.removeEventListener("resize",s),r.removeEventListener("scroll",s),o!==null&&window.cancelAnimationFrame(o),zs(n)}},[t,e])}function ov(){let e=v5()?"drawer":"floating",t=Ns();return{presentation:e,supportsHover:e==="floating"&&!t}}function vr(e,t,n=!1){let{presentation:r}=ov(),o=r==="drawer",[i,s]=E(n),a=e!==void 0,c=a?e:i,u=Z(l=>{c&&!l&&o&&y5(),a||s(l),t?.(l)},[o,a,t,c]);return q(()=>({isCompactViewport:o,open:c,onOpenChange:u}),[o,c,u])}var Hn=H(({asChild:e,open:t,onOpenChange:n,haspopup:r,onClick:o,children:i,className:s,...a},c)=>{let u=yn(s),l=m=>{o?.(m),m.defaultPrevented||(t||bn(),n(!t))},d={"aria-expanded":t,"aria-haspopup":r,"data-state":t?"open":"closed"};return e?p(kn,{ref:c,onClick:l,onMouseDown:Jt,className:u,...d,...a,children:i}):p("button",{ref:c,type:"button",onClick:l,onMouseDown:Jt,className:u,...d,...a,children:i})});Hn.displayName="MobileTrigger";var iv=["side","sideOffset","align","alignOffset","collisionPadding","collisionBoundary","arrowPadding","sticky","hideWhenDetached","avoidCollisions","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"],sv=new Set(iv);function wr(e){let t={};for(let n of Object.keys(e))sv.has(n)||(t[n]=e[n]);return t}function av({open:e,enabled:t=!0}){let[n,r]=E(!1),o=Z(()=>r(!0),[]);return z(()=>{if(!t||!e||n)return;let i=null,s=null;i=window.requestAnimationFrame(()=>{i=null,s=window.requestAnimationFrame(()=>{s=null,o()})});let a=window.setTimeout(o,ev);return()=>{i!==null&&window.cancelAnimationFrame(i),s!==null&&window.cancelAnimationFrame(s),window.clearTimeout(a)}},[t,n,e,o]),{isContentRealized:t&&n,realizeContent:o}}function xr({open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r=!0,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,onContentAnimationEnd:c,children:u}){let{isContentRealized:l}=av({open:e});return!e&&!l?null:p(gv,{open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,onContentAnimationEnd:c,children:l?u:p("div",{"aria-hidden":"true",className:"min-h-32","data-responsive-drawer-placeholder":""})})}var w5="cubic-bezier(0.32, 0.72, 0, 1)",cv=.25,uv=450,lv=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),Os=new WeakMap;function dv(e){return Array.from(e.querySelectorAll(lv)).filter(t=>t.closest('[aria-hidden="true"], [inert]')===null)}function pv(e,t){let n=e?.closest("[data-bb-portaled-overlay]");return n!=null&&n!==t}function fv(e,t){let n=t.ownerDocument.activeElement;if(!t.contains(n)&&pv(n,t))return;let r=dv(t);if(e.preventDefault(),r.length===0){t.focus({preventScroll:!0});return}let o=r[0],i=r[r.length-1];if(e.shiftKey){if(!t.contains(n)||n===t||n===o){i?.focus({preventScroll:!0});return}let a=r.indexOf(n);r[Math.max(0,a-1)]?.focus({preventScroll:!0});return}if(!t.contains(n)||n===t||n===i){o?.focus({preventScroll:!0});return}let s=r.indexOf(n);r[Math.min(r.length-1,s+1)]?.focus({preventScroll:!0})}function mv(e,t){let n=Os.get(e);if(n===void 0){let r=[],o=i=>{if(i.defaultPrevented)return;let s=r[r.length-1],a=s?.panel()??null;s===void 0||a===null||(i.key==="Escape"?(i.preventDefault(),s.requestClose()):i.key==="Tab"&&fv(i,a))};n={entries:r,handleKeyDown:o},Os.set(e,n),e.addEventListener("keydown",o)}return n.entries.push(t),()=>{let r=Os.get(e);if(r===void 0)return;let o=r.entries.indexOf(t);o>=0&&r.entries.splice(o,1),r.entries.length===0&&(e.removeEventListener("keydown",r.handleKeyDown),Os.delete(e))}}function hv({onAfterCloseAutoFocus:e,onBeforeCloseAutoFocus:t,open:n,panelRef:r,requestClose:o}){let i=$(null);ot(()=>{if(!n)return;let a=r.current;if(a===null)return;let c=a.ownerDocument,u=c.activeElement;i.current=u instanceof HTMLElement&&u!==c.body?u:null;let l=mv(c,{panel:()=>r.current,requestClose:o});return a.focus({preventScroll:!0}),l},[n,r,o]);let s=$(n);ot(()=>{let a;if(s.current&&!n){t?.();let c=i.current;if(c?.isConnected&&c.closest('[aria-hidden="true"], [inert]')===null&&(c.focus({preventScroll:!0}),c.ownerDocument.activeElement!==c)){let u=c.ownerDocument.defaultView;if(u!==null){let l=u.requestAnimationFrame(()=>{c.isConnected&&c.closest('[aria-hidden="true"], [inert]')===null&&c.focus({preventScroll:!0}),e?.()});a=()=>u.cancelAnimationFrame(l)}}i.current=null,a===void 0&&e?.()}return s.current=n,a},[e,t,n])}function gv({open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r=!0,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,motionDurationMs:c=220,onContentAnimationEnd:u,children:l}){let d=$(null),m=$(null),f=$(null),h=$(null),g=gn(),k=Ee(),v=`transform ${c}ms ${w5}`,y=`opacity ${c}ms ${w5}`,w=$(t);ot(()=>{w.current=t},[t]);let T=Z(()=>{zo(d.current),zs(d.current),w.current(!1)},[]),M=Z(()=>{zo(d.current),zs(d.current)},[]);hv({onAfterCloseAutoFocus:n,onBeforeCloseAutoFocus:M,open:e,panelRef:d,requestClose:T}),rv(d,e);let x=Z(W=>{h.current!==W&&(h.current=W,u?.(W))},[u]);z(()=>{h.current=null;let W=window.setTimeout(()=>x(e),c+50);return()=>window.clearTimeout(W)},[c,e,x]);let A=Z((W,ae,ne)=>{let ze=d.current,xt=m.current;ze===null||xt===null||(ze.style.transition=ne?v:"none",ze.style.transform=`translate3d(0, ${W}px, 0)`,xt.style.transition=ne?y:"none",xt.style.opacity=String(Math.max(0,Math.min(1,1-W/ae))))},[y,v]),V=Z(W=>{if(!e||W.button!==0)return;W.currentTarget.setPointerCapture(W.pointerId);let ae=Date.now(),ne=Math.max(d.current?.clientHeight??0,1);f.current={pointerId:W.pointerId,startY:W.clientY,lastY:W.clientY,lastTimeMs:ae,velocityY:0,height:ne},A(0,ne,!1),W.preventDefault()},[e,A]),X=Z(W=>{let ae=f.current;if(ae===null||ae.pointerId!==W.pointerId)return;let ne=Date.now(),ze=ne-ae.lastTimeMs;ze>0&&(ae.velocityY=(W.clientY-ae.lastY)/ze*1e3,ae.lastY=W.clientY,ae.lastTimeMs=ne),A(Math.max(0,W.clientY-ae.startY),ae.height,!1),W.preventDefault()},[A]),ie=Z((W,ae)=>{let ne=f.current;if(ne===null||ne.pointerId!==W.pointerId)return;f.current=null;let ze=Math.max(0,W.clientY-ne.startY);!ae&&(ze>=ne.height*cv||ne.velocityY>=uv)?(A(ne.height,ne.height,!0),T()):A(0,ne.height,!0),W.preventDefault()},[T,A]),re=typeof document>"u"?null:document.body;return re===null?null:ls(S(kt,{children:[p("div",{ref:m,...k,"aria-hidden":"true","data-persistent-drawer-backdrop":"","data-state":e?"open":"closed",className:"fixed inset-0 z-50 bg-black/40",style:{opacity:e?1:0,pointerEvents:e?"auto":"none",transition:y},onClick:r?T:void 0,onTouchMove:W=>W.preventDefault()}),S("div",{ref:d,...k,"aria-hidden":!e,"aria-labelledby":i??(o===void 0?void 0:g),"aria-describedby":s,"aria-modal":e||void 0,"data-bb-portaled-overlay":"","data-persistent-drawer-content":"","data-state":e?"open":"closed",inert:!e,role:"dialog",tabIndex:-1,className:I("fixed inset-x-0 bottom-0 z-50 mt-24 flex max-h-[calc(92dvh-var(--bb-drawer-keyboard-inset,0px))] flex-col rounded-t-xl border bg-background outline-none",a),style:{transform:e?"translate3d(0, 0, 0)":"translate3d(0, 100%, 0)",transition:v,willChange:e?"transform":void 0},onTransitionEnd:W=>{W.currentTarget===W.target&&W.propertyName==="transform"&&x(e)},children:[p("div",{"data-persistent-drawer-handle":"",className:"mx-auto flex h-8 w-16 shrink-0 touch-none cursor-grab items-center justify-center active:cursor-grabbing",onPointerDown:V,onPointerMove:X,onPointerUp:W=>ie(W,!1),onPointerCancel:W=>ie(W,!0),children:p("div",{className:"h-1 w-10 rounded-full bg-muted-foreground/20"})}),o===void 0?null:p("h2",{id:g,className:"sr-only",children:o}),l]})]}),re)}var cl=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function ul(){return xe(cl)}function js({children:e,open:t,onOpenChange:n,defaultOpen:r,...o}){let i=vr(t,n,r);return i.isCompactViewport?p(cl.Provider,{value:i,children:e}):p(C5,{open:i.open,onOpenChange:i.onOpenChange,...o,children:p(cl.Provider,{value:i,children:e})})}var Zo=H(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=ul();return i?p(Hn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"dialog",className:n,...r,children:t}):p(k5,{ref:o,asChild:e,className:yn(n),onMouseDown:c=>{s||bn(),Jt(c)},...r,children:t})});Zo.displayName="PopoverTrigger";var jo=H(({className:e,align:t="center",sideOffset:n=4,children:r,dismissOnOutsideInteraction:o=!0,onInteractOutside:i,mobileTitle:s,mobileClassName:a,onMobileContentAnimationEnd:c,onOpenAutoFocus:u,autoFocusRef:l,...d},m)=>{let{isCompactViewport:f,open:h,onOpenChange:g}=ul(),k=Ns(),v=Ee();if(z(()=>{if(!h||f||k||!l)return;let y=window.requestAnimationFrame(()=>{let w=l.current;w?.focus(),w instanceof HTMLInputElement&&w.select()});return()=>window.cancelAnimationFrame(y)},[l,f,k,h]),f){let{style:y,...w}=wr(d);return p(xr,{open:h,onOpenChange:g,srLabel:s??"Options",closeOnBackdropClick:o,contentClassName:a,onContentAnimationEnd:c,children:p("div",{ref:m,className:I("overflow-y-auto px-4 pt-2 pb-[max(1rem,env(safe-area-inset-bottom))]",e),...w,style:{...y,...Zs},children:r})})}return p(g5,{children:p(h5,{ref:m,...v,align:t,sideOffset:n,onOpenAutoFocus:y=>{(k||l)&&y.preventDefault(),k||u?.(y)},className:I("z-50 w-96 rounded-md border bg-popover p-4 text-popover-foreground shadow-md 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",e),...d,onInteractOutside:y=>{o||y.preventDefault(),i?.(y)},children:r})})});jo.displayName="PopoverContent";var Cv=H(({children:e,...t},n)=>{let{isCompactViewport:r}=ul();return r?p(kt,{children:e}):p(m5,{ref:n,...t,children:e})});Cv.displayName="PopoverAnchor";var kv=new Set(["waits-on-you","unread-failed","queue-failed","offline","unread"]),yv=new Set(["working","background","queued","scheduled"]);function bv(e){return!yv.has(e.state.kind)}function vv(e,t){let n=0;return t.has("unread-failed")&&(n=Math.max(n,e.latestAttentionAt)),t.has("queue-failed")&&(n=Math.max(n,e.updatedAt)),n}function x5(e,t,n){return!t.has("unread-failed")&&!t.has("queue-failed")||!bv(n)?!1:Math.max(n.thread.latestAttentionAt,n.finishedAt??0)<=vv(e,t)}function I5(e,t){let n=new Set;if(t.isRoot||t.mode==="everything"){for(let r of e)kv.has(r)&&n.add(r);return n}return e.has("waits-on-you")&&n.add("waits-on-you"),e.has("offline")&&n.add("offline"),t.orphaned&&(e.has("unread-failed")&&n.add("unread-failed"),e.has("queue-failed")&&n.add("queue-failed")),n}function _5(e,t){return e.has("waits-on-you")||e.has("unread-failed")?!0:!t&&e.has("queue-failed")}var ll={heldRootId:null,openRootId:null};function S5(e,t,n){let r=e.root.thread.id;return r===t?!0:e.attentionFlags.size>0&&r!==n}function L5(e,t){if(t===void 0)return ll;let n=t.root.thread.id;return n===e.openRootId?{heldRootId:e.heldRootId===n?n:null,openRootId:n}:{heldRootId:t.attentionFlags.size>0?n:null,openRootId:n}}function P5(e,t){let n=new Set,r=new Set;for(let o of e.infos.values())o.thread.isArchived||(o.attentionFlags.has("unread")&&!o.thread.isHidden&&n.add(o.thread.id),_5(o.attentionFlags,o.parentId===null)&&r.add(o.thread.id));return{activeThreadId:t,unread:n,attentionIds:r}}function M5(e,t){let n=new Map;t.activeThreadId!==null&&t.activeThreadId!==e?.activeThreadId&&n.set(t.activeThreadId,"reveal");for(let r of t.attentionIds)e?.attentionIds.has(r)||n.set(r,"reveal");for(let r of t.unread)r===t.activeThreadId||n.has(r)||e?.unread.has(r)||n.set(r,"open");return n}function R5(e,t){if(t.size===0)return e;let n=new Map(e);for(let[r,o]of t)n.get(r)!=="reveal"&&n.set(r,o);return n}function T5(e,t){let n=!1,r=new Map;for(let[o,i]of e)t(o)?n=!0:r.set(o,i);return n?r:e}function $5(e,t){let n=$(null),r=$(null),o=$(void 0),[i,s]=E(()=>new Map),a=$(i);a.current=i;let c=i;if(e!==null&&(e!==r.current||t!==o.current)){let l=P5(e,t),d=M5(n.current,l);n.current=l,r.current=e,o.current=t,c=R5(i,d),c!==i&&(a.current=c,s(c))}let u=Z(l=>{let d=T5(a.current,l);d!==a.current&&(a.current=d,s(d))},[]);return{targets:c,prune:u}}var se={};Lt(se,{$brand:()=>_l,$input:()=>J1,$output:()=>q1,INVALID:()=>et,NEVER:()=>Il,TimePrecision:()=>ap,ZodAny:()=>qf,ZodArray:()=>Qf,ZodBase64:()=>Oc,ZodBase64URL:()=>zc,ZodBigInt:()=>io,ZodBigIntFormat:()=>Wc,ZodBoolean:()=>oo,ZodCIDRv4:()=>Ec,ZodCIDRv6:()=>Nc,ZodCUID:()=>Pc,ZodCUID2:()=>Mc,ZodCatch:()=>b2,ZodCodec:()=>Ai,ZodCompileAsyncError:()=>Tt,ZodCompileUnsupportedError:()=>Q,ZodCreditCard:()=>Wf,ZodCustom:()=>Di,ZodCustomStringFormat:()=>cr,ZodDate:()=>Li,ZodDefault:()=>m2,ZodDiscriminatedUnion:()=>t2,ZodE164:()=>Zc,ZodEmail:()=>Ic,ZodEmoji:()=>Sc,ZodEnum:()=>to,ZodError:()=>TI,ZodExactOptional:()=>Bc,ZodFile:()=>l2,ZodFirstPartyTypeKind:()=>D2,ZodFunction:()=>R2,ZodGUID:()=>_c,ZodIBAN:()=>Ff,ZodIPv4:()=>Ac,ZodIPv6:()=>Dc,ZodISODate:()=>Rn,ZodISODateTime:()=>Mn,ZodISODuration:()=>$n,ZodISOTime:()=>Tn,ZodInstanceOf:()=>A2,ZodIntersection:()=>n2,ZodIssueCode:()=>DI,ZodJWT:()=>jc,ZodKSUID:()=>$c,ZodLazy:()=>L2,ZodLiteral:()=>u2,ZodMAC:()=>jf,ZodMap:()=>a2,ZodNaN:()=>w2,ZodNanoID:()=>Lc,ZodNever:()=>Yf,ZodNonOptional:()=>Uc,ZodNull:()=>Gf,ZodNullable:()=>f2,ZodNumber:()=>ro,ZodNumberFormat:()=>ur,ZodObject:()=>Mi,ZodOptional:()=>Ti,ZodPipe:()=>$i,ZodPrefault:()=>g2,ZodPreprocess:()=>x2,ZodPromise:()=>M2,ZodReadonly:()=>I2,ZodRealError:()=>dt,ZodRecord:()=>eo,ZodSet:()=>c2,ZodString:()=>no,ZodStringFormat:()=>de,ZodSuccess:()=>y2,ZodSymbol:()=>Bf,ZodTemplateLiteral:()=>S2,ZodTransform:()=>d2,ZodTuple:()=>o2,ZodType:()=>J,ZodULID:()=>Rc,ZodURL:()=>Si,ZodUUID:()=>Ht,ZodUndefined:()=>Uf,ZodUnion:()=>Ri,ZodUnknown:()=>Jf,ZodVoid:()=>Xf,ZodXID:()=>Tc,ZodXor:()=>e2,_ZodString:()=>xc,_default:()=>h2,_function:()=>n4,any:()=>A9,array:()=>Pi,base64:()=>f9,base64url:()=>m9,bigint:()=>P9,boolean:()=>Hf,catch:()=>v2,check:()=>r4,cidrv4:()=>d9,cidrv6:()=>p9,clone:()=>ce,codec:()=>X9,coerce:()=>N2,compile:()=>ep,config:()=>ye,core:()=>tn,creditCard:()=>g9,cuid:()=>r9,cuid2:()=>o9,currencyCode:()=>w9,custom:()=>o4,date:()=>E9,decode:()=>Af,decodeAsync:()=>Ef,deepPartial:()=>C4,describe:()=>i4,discriminatedUnion:()=>W9,e164:()=>h9,email:()=>G0,emoji:()=>t9,encode:()=>$f,encodeAsync:()=>Df,endsWith:()=>Vr,enum:()=>Vc,exactOptional:()=>p2,file:()=>K9,flattenError:()=>Jo,float32:()=>I9,float64:()=>_9,formatError:()=>Yo,fromJSONSchema:()=>h4,function:()=>n4,getDiscriminatedOption:()=>x1,getErrorMap:()=>NI,globalRegistry:()=>Fe,gt:()=>Ft,gte:()=>ht,guid:()=>K0,hash:()=>x9,hex:()=>v9,hostname:()=>b9,httpUrl:()=>e9,iban:()=>C9,includes:()=>Wr,input:()=>y4,instanceof:()=>a4,int:()=>vc,int32:()=>S9,int64:()=>M9,intersection:()=>r2,invertCodec:()=>Q9,ipv4:()=>c9,ipv6:()=>l9,iso:()=>Ei,json:()=>u4,jwt:()=>k9,keyof:()=>N9,ksuid:()=>a9,lazy:()=>P2,length:()=>rr,literal:()=>G9,locales:()=>gi,looseObject:()=>Z9,looseRecord:()=>V9,lowercase:()=>Zr,lt:()=>Wt,lte:()=>mt,mac:()=>u9,map:()=>H9,maxLength:()=>nr,maxSize:()=>_n,memoizer:()=>hi,meta:()=>s4,mime:()=>Br,minLength:()=>en,minSize:()=>Vt,multipleOf:()=>In,nan:()=>Y9,nanoid:()=>n9,nativeEnum:()=>U9,negative:()=>lc,never:()=>Fc,nonnegative:()=>pc,nonoptional:()=>k2,nonpositive:()=>dc,normalize:()=>Ur,null:()=>Kf,nullable:()=>_i,nullish:()=>q9,number:()=>Vf,object:()=>O9,optional:()=>sr,output:()=>b4,overwrite:()=>$t,parse:()=>Pf,parseAsync:()=>Mf,partialRecord:()=>F9,pipe:()=>wc,positive:()=>uc,prefault:()=>C2,preprocess:()=>l4,prettifyError:()=>Rl,promise:()=>t4,properties:()=>Hr,property:()=>fc,readonly:()=>_2,record:()=>s2,refine:()=>T2,regex:()=>zr,regexes:()=>vt,registry:()=>za,safeDecode:()=>Of,safeDecodeAsync:()=>Zf,safeEncode:()=>Nf,safeEncodeAsync:()=>zf,safeParse:()=>Rf,safeParseAsync:()=>Tf,set:()=>B9,setErrorMap:()=>EI,size:()=>tr,slugify:()=>Jr,startsWith:()=>Fr,strictObject:()=>z9,string:()=>Ii,stringFormat:()=>y9,stringbool:()=>c4,success:()=>J9,superRefine:()=>$2,symbol:()=>T9,templateLiteral:()=>e4,toJSONSchema:()=>Cc,toLowerCase:()=>Kr,toUpperCase:()=>qr,toZod:()=>Wo,transform:()=>Hc,treeifyError:()=>Ml,trim:()=>Gr,tuple:()=>i2,uint32:()=>L9,uint64:()=>R9,ulid:()=>i9,undefined:()=>$9,union:()=>so,unknown:()=>ir,uppercase:()=>jr,url:()=>Q0,util:()=>O,uuid:()=>q0,uuidv4:()=>J0,uuidv6:()=>Y0,uuidv7:()=>X0,validate:()=>Xo,validateAsync:()=>Qo,void:()=>D9,withParser:()=>Za,xid:()=>s9,xor:()=>j9});var tn={};Lt(tn,{$ZodAny:()=>h1,$ZodArray:()=>b1,$ZodAsyncError:()=>ut,$ZodBase64:()=>r1,$ZodBase64URL:()=>o1,$ZodBigInt:()=>Sa,$ZodBigIntFormat:()=>d1,$ZodBoolean:()=>ui,$ZodCIDRv4:()=>t1,$ZodCIDRv6:()=>n1,$ZodCUID:()=>Vd,$ZodCUID2:()=>Hd,$ZodCatch:()=>Z1,$ZodCheck:()=>pe,$ZodCheckBigIntFormat:()=>gd,$ZodCheckEndsWith:()=>Pd,$ZodCheckGreaterThan:()=>la,$ZodCheckIncludes:()=>Sd,$ZodCheckLengthEquals:()=>wd,$ZodCheckLessThan:()=>ua,$ZodCheckLowerCase:()=>Id,$ZodCheckMaxLength:()=>bd,$ZodCheckMaxSize:()=>Cd,$ZodCheckMimeType:()=>Td,$ZodCheckMinLength:()=>vd,$ZodCheckMinSize:()=>kd,$ZodCheckMultipleOf:()=>md,$ZodCheckNumberFormat:()=>hd,$ZodCheckOverwrite:()=>$d,$ZodCheckProperties:()=>Rd,$ZodCheckProperty:()=>Md,$ZodCheckRegex:()=>xd,$ZodCheckSizeEquals:()=>yd,$ZodCheckStartsWith:()=>Ld,$ZodCheckStringFormat:()=>Dr,$ZodCheckUpperCase:()=>_d,$ZodCodec:()=>di,$ZodCreditCard:()=>s1,$ZodCustom:()=>U1,$ZodCustomStringFormat:()=>u1,$ZodCyclicError:()=>Aa,$ZodDate:()=>y1,$ZodDefault:()=>E1,$ZodDiscriminatedUnion:()=>I1,$ZodE164:()=>i1,$ZodEmail:()=>Od,$ZodEmoji:()=>Wd,$ZodEncodeError:()=>xn,$ZodEnum:()=>M1,$ZodError:()=>Pl,$ZodExactOptional:()=>A1,$ZodFile:()=>T1,$ZodFunction:()=>H1,$ZodGUID:()=>Ed,$ZodIBAN:()=>a1,$ZodIPv4:()=>Xd,$ZodIPv6:()=>Qd,$ZodISODate:()=>qd,$ZodISODateTime:()=>Kd,$ZodISODuration:()=>Yd,$ZodISOTime:()=>Jd,$ZodIntersection:()=>_1,$ZodJWT:()=>c1,$ZodKSUID:()=>Gd,$ZodLazy:()=>pi,$ZodLiteral:()=>R1,$ZodMAC:()=>e1,$ZodMap:()=>L1,$ZodNaN:()=>j1,$ZodNanoID:()=>Fd,$ZodNever:()=>C1,$ZodNonOptional:()=>O1,$ZodNull:()=>m1,$ZodNullable:()=>D1,$ZodNumber:()=>_a,$ZodNumberFormat:()=>l1,$ZodObject:()=>f0,$ZodObjectJIT:()=>v1,$ZodOptional:()=>Pa,$ZodPipe:()=>Ma,$ZodPrefault:()=>N1,$ZodPreprocess:()=>W1,$ZodPromise:()=>B1,$ZodReadonly:()=>F1,$ZodRealError:()=>lt,$ZodRecord:()=>S1,$ZodRegistry:()=>Oa,$ZodSet:()=>P1,$ZodString:()=>Jn,$ZodStringFormat:()=>ue,$ZodSuccess:()=>z1,$ZodSymbol:()=>p1,$ZodTemplateLiteral:()=>V1,$ZodTransform:()=>$1,$ZodTuple:()=>La,$ZodType:()=>K,$ZodULID:()=>Bd,$ZodURL:()=>jd,$ZodUUID:()=>Nd,$ZodUndefined:()=>f1,$ZodUnion:()=>li,$ZodUnknown:()=>g1,$ZodVoid:()=>k1,$ZodXID:()=>Ud,$ZodXor:()=>w1,$brand:()=>_l,$constructor:()=>C,$input:()=>J1,$output:()=>q1,Doc:()=>qn,INVALID:()=>et,JSONSchema:()=>H0,JSONSchemaGenerator:()=>kc,NEVER:()=>Il,TimePrecision:()=>ap,URL_BAD_FORMAT:()=>zd,URL_UNPARSEABLE:()=>oi,ZodCompileAsyncError:()=>Tt,ZodCompileUnsupportedError:()=>Q,_any:()=>Ip,_array:()=>Tp,_base64:()=>ic,_base64url:()=>sc,_bigint:()=>Cp,_boolean:()=>hp,_catch:()=>yI,_check:()=>P0,_cidrv4:()=>rc,_cidrv6:()=>oc,_coercedBigint:()=>kp,_coercedBoolean:()=>gp,_coercedDate:()=>Mp,_coercedNumber:()=>up,_coercedString:()=>rp,_creditCard:()=>ip,_cuid:()=>Ja,_cuid2:()=>Ya,_custom:()=>Ap,_date:()=>Pp,_decode:()=>Xs,_decodeAsync:()=>ea,_default:()=>gI,_discriminatedUnion:()=>oI,_e164:()=>ac,_email:()=>Fa,_emoji:()=>Ka,_encode:()=>Ys,_encodeAsync:()=>Qs,_endsWith:()=>Vr,_enum:()=>lI,_file:()=>$p,_float32:()=>dp,_float64:()=>pp,_gt:()=>Ft,_gte:()=>ht,_guid:()=>Va,_iban:()=>sp,_includes:()=>Wr,_int:()=>lp,_int32:()=>fp,_int64:()=>yp,_intersection:()=>iI,_ipv4:()=>tc,_ipv6:()=>nc,_isoDate:()=>yi,_isoDateTime:()=>ki,_isoDuration:()=>vi,_isoTime:()=>bi,_jwt:()=>cc,_ksuid:()=>ec,_lazy:()=>xI,_length:()=>rr,_literal:()=>pI,_lowercase:()=>Zr,_lt:()=>Wt,_lte:()=>mt,_mac:()=>op,_map:()=>cI,_max:()=>mt,_maxLength:()=>nr,_maxSize:()=>_n,_mime:()=>Br,_min:()=>ht,_minLength:()=>en,_minSize:()=>Vt,_multipleOf:()=>In,_nan:()=>Rp,_nanoid:()=>qa,_nativeEnum:()=>dI,_negative:()=>lc,_never:()=>Sp,_nonnegative:()=>pc,_nonoptional:()=>CI,_nonpositive:()=>dc,_normalize:()=>Ur,_null:()=>xp,_nullable:()=>hI,_number:()=>cp,_optional:()=>mI,_overwrite:()=>$t,_parse:()=>Rr,_parseAsync:()=>Tr,_pipe:()=>bI,_positive:()=>uc,_promise:()=>II,_properties:()=>Hr,_property:()=>fc,_readonly:()=>vI,_record:()=>aI,_refine:()=>Dp,_regex:()=>zr,_safeDecode:()=>na,_safeDecodeAsync:()=>oa,_safeEncode:()=>ta,_safeEncodeAsync:()=>ra,_safeParse:()=>$r,_safeParseAsync:()=>Ar,_set:()=>uI,_size:()=>tr,_slugify:()=>Jr,_startsWith:()=>Fr,_string:()=>np,_stringFormat:()=>or,_stringbool:()=>zp,_success:()=>kI,_superRefine:()=>Ep,_symbol:()=>vp,_templateLiteral:()=>wI,_toLowerCase:()=>Kr,_toUpperCase:()=>qr,_transform:()=>fI,_trim:()=>Gr,_tuple:()=>sI,_uint32:()=>mp,_uint64:()=>bp,_ulid:()=>Xa,_undefined:()=>wp,_union:()=>nI,_unknown:()=>_p,_uppercase:()=>jr,_url:()=>Ci,_uuid:()=>Ha,_uuidv4:()=>Ba,_uuidv6:()=>Ua,_uuidv7:()=>Ga,_void:()=>Lp,_xid:()=>Qa,_xor:()=>rI,base64Charset:()=>ba,base64urlCharset:()=>ci,canParseURL:()=>Zd,clone:()=>ce,compile:()=>ep,compileFn:()=>ja,config:()=>ye,createStandardJSONSchemaMethod:()=>Yr,createToJSONSchemaMethod:()=>jp,decode:()=>pw,decodeAsync:()=>mw,describe:()=>Np,encode:()=>dw,encodeAsync:()=>fw,extractDefs:()=>Ln,finalize:()=>Pn,flattenError:()=>Jo,formatError:()=>Yo,getDiscriminatedOption:()=>x1,globalConfig:()=>Ne,globalRegistry:()=>Fe,handleUnrepresentable:()=>Me,initializeContext:()=>Sn,isBackEdge:()=>Ea,isRecursiveSchema:()=>Da,isValidBase64:()=>ai,isValidBase64URL:()=>va,isValidCIDRv6:()=>ya,isValidCreditCard:()=>wa,isValidIBAN:()=>xa,isValidIPv6:()=>si,isValidJWT:()=>Ia,locales:()=>gi,memoizer:()=>hi,mergeValues:()=>Er,meta:()=>Op,parse:()=>qs,parseAsync:()=>Js,parseURLObject:()=>l0,prettifyError:()=>Rl,process:()=>le,processSchema:()=>le,regexes:()=>vt,registry:()=>za,safeDecode:()=>gw,safeDecodeAsync:()=>kw,safeEncode:()=>hw,safeEncodeAsync:()=>Cw,safeParse:()=>sw,safeParseAsync:()=>aw,standardProps:()=>ha,stripTabAndNewline:()=>ii,toDotPath:()=>V5,toJSONSchema:()=>Cc,toZod:()=>Wo,treeifyError:()=>Ml,urlHostnameOk:()=>Ca,urlProtocolOk:()=>ka,util:()=>O,validate:()=>Xo,validateAsync:()=>Qo,validateURL:()=>ga,version:()=>Ad,withParser:()=>Za});var O={};Lt(O,{BIGINT_FORMAT_RANGES:()=>Uo,CONSTANT_CATCH:()=>Gs,Class:()=>fl,NUMBER_FORMAT_RANGES:()=>Bo,aborted:()=>Qe,allowsEval:()=>gl,assert:()=>Sv,assertEqual:()=>wv,assertIs:()=>Iv,assertNever:()=>_v,assertNotEqual:()=>xv,assignProp:()=>We,attachSchema:()=>Us,base64ToUint8Array:()=>O5,base64urlToUint8Array:()=>Bv,cached:()=>Lr,captureStackTrace:()=>Vs,cleanEnum:()=>Hv,cleanRegex:()=>Xt,clone:()=>ce,cloneDef:()=>Mv,codePointLength:()=>Gn,constantCatch:()=>wl,createTransparentProxy:()=>Ev,defineLazy:()=>ml,defineLazyInternal:()=>Y,derived:()=>qv,esc:()=>Xe,escapeRegex:()=>bt,explicitlyAborted:()=>yl,extend:()=>zv,finalizeIssue:()=>ct,floatSafeRemainder:()=>Fo,getElementAtPath:()=>Rv,getEnumValues:()=>_r,getLengthableOrigin:()=>Ko,getParsedType:()=>Dv,getSizableOrigin:()=>Go,hexToUint8Array:()=>Gv,hide:()=>qo,installLazyProp:()=>Qv,isObject:()=>Un,isPlainObject:()=>yt,issue:()=>Mr,joinValues:()=>Ws,jsonStringifyReplacer:()=>Sr,members:()=>vl,merge:()=>jv,mergeDefs:()=>Rt,normalizeParams:()=>R,nullish:()=>Fs,numKeys:()=>Av,objectClone:()=>Lv,omit:()=>Ov,optionalKeys:()=>kl,own:()=>wn,parsedType:()=>bl,partial:()=>Wv,pick:()=>Nv,prefixIssues:()=>at,primitiveTypes:()=>Cl,promiseAllObject:()=>Tv,propertyKeyTypes:()=>Ho,randomString:()=>$v,rawShape:()=>Pr,required:()=>Fv,safeExtend:()=>Zv,shallowClone:()=>Vo,slugify:()=>hl,stringifyPrimitive:()=>Hs,toZod:()=>Wo,uint8ArrayToBase64:()=>z5,uint8ArrayToBase64url:()=>Uv,uint8ArrayToHex:()=>Kv,unwrapMessage:()=>Ir});function wv(e){return e}function xv(e){return e}function Wo(){return e=>e}function Iv(e){}function _v(e){throw new Error("Unexpected value in exhaustive check")}function Sv(e){}function _r(e){let t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function Ws(e,t="|"){return e.map(n=>Hs(n)).join(t)}function Sr(e,t){return typeof t=="bigint"?t.toString():t}var pl=class{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};function Lr(e){return new pl(e)}function Fs(e){return e==null}function Xt(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Fo(e,t){let n=e/t,r=Math.round(n),o=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}var A5=Symbol("evaluating");function ml(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==A5)return r===void 0&&(r=A5,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Lv(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function We(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Pr(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function Yt(e){return Pr(e._zod.def)??e._zod.def.shape}function D5(e,t,n){Object.defineProperty(e,t,{get(){let r=n();return We(this,t,r),r},enumerable:!0,configurable:!0})}function E5(e,t,n){t in e?We(e,t,n):e[t]=n}function Bn(e,t,n,r){let o=Yt(t);for(let i of n){let s=Object.getOwnPropertyDescriptor(o,i);s.enumerable&&(s.get?D5(e,i,()=>{let a=t._zod.def.shape[i];return r?r(a,i):a}):E5(e,i,r?r(s.value,i):s.value))}}function Pv(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?D5(e,n,()=>t[n]):E5(e,n,r.value))}}function Rt(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Mv(e){return Rt(e._zod.def)}function Rv(e,t){return t?t.reduce((n,r)=>n?.[r],e):e}function Tv(e){let t=Object.keys(e),n=t.map(r=>e[r]);return Promise.all(n).then(r=>{let o={};for(let i=0;i<t.length;i++)o[t[i]]=r[i];return o})}function $v(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function Xe(e){return JSON.stringify(e)}function hl(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Vs="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Un(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var gl=Lr(()=>{if(Ne.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function yt(e){if(Un(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Un(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Vo(e){return yt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Av(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var Dv=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Ho=new Set(["string","number","symbol"]),Cl=new Set(["string","number","bigint","boolean","symbol","undefined"]);function bt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ce(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function R(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Ev(e){let t;return new Proxy({},{get(n,r,o){return t??(t=e()),Reflect.get(t,r,o)},set(n,r,o,i){return t??(t=e()),Reflect.set(t,r,o,i)},has(n,r){return t??(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t??(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,o){return t??(t=e()),Reflect.defineProperty(t,r,o)}})}function Hs(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function kl(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Bo={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Uo={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Nv(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i={};return Bn(i,e,Bs(e,t)),ce(e,Rt(n,{shape:i,checks:[]}))}function Bs(e,t){let n=Yt(e),r=[];for(let o of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,o)?.enumerable)throw new Error(`Unrecognized key: "${String(o)}"`);t[o]&&r.push(o)}return r}function Ov(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=new Set(Bs(e,t)),s={};return Bn(s,e,Reflect.ownKeys(Yt(e)).filter(a=>!i.has(a))),ce(e,Rt(n,{shape:s,checks:[]}))}function zv(e,t){if(!yt(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=Yt(e);for(let i of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ce(e,Rt(e._zod.def,{shape:N5(e,t)}))}function N5(e,t){let n={};return Bn(n,e,Reflect.ownKeys(Yt(e))),Pv(n,t),n}function Zv(e,t){if(!yt(t))throw new Error("Invalid input to safeExtend: expected a plain object");return ce(e,Rt(e._zod.def,{shape:N5(e,t)}))}function jv(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};Bn(n,e,Reflect.ownKeys(Yt(e))),Bn(n,t,Reflect.ownKeys(Yt(t)));let r=Rt(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ce(e,r)}function Wv(e,t,n,r="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(Bs(t,n)):void 0,c={};return Bn(c,t,Reflect.ownKeys(Yt(t)),e&&((u,l)=>a&&!a.has(l)?u:new e({type:"optional",innerType:u}))),ce(t,Rt(t._zod.def,{shape:c,checks:[]}))}function Fv(e,t,n){let r=n?new Set(Bs(t,n)):void 0,o={};return Bn(o,t,Reflect.ownKeys(Yt(t)),(i,s)=>r&&!r.has(s)?i:new e({type:"nonoptional",innerType:i})),ce(t,Rt(t._zod.def,{shape:o}))}function Qe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function yl(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function at(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Ir(e){return typeof e=="string"?e:e?.message}function Us(e,t,n){var r;for(let o=t;o<e.length;o++)(r=e[o]).schema??(r.schema=n)}function ct(e,t,n){var r;let o=e.inst?._zod?.traits;o?.has("$ZodType")&&(o.has("$ZodCheck")?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,s=e.message?e.message:Ir(e.inst?._zod.def?.error?.(e))??Ir(i?.(e))??Ir(t?.error?.(e))??Ir(n.customError?.(e))??Ir(n.localeError?.(e))??"Invalid input",a={};for(let c of Object.keys(e))c==="inst"||c==="schema"||c==="continue"||c==="input"||c==="__proto__"||(a[c]=e[c]);return a.path??(a.path=[]),a.message=s,t?.reportInput&&(a.input=e.input),a}function Go(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var Vv=/[\uD800-\uDBFF]/;function Gn(e){let t=e.length;if(!Vv.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function Ko(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function bl(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Mr(...e){let[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function Hv(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function O5(e){let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function z5(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Bv(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return O5(t+n)}function Uv(e){return z5(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Gv(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r/2]=Number.parseInt(t.slice(r,r+2),16);return n}function Kv(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var fl=class{constructor(...t){}};function vl(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Jv(e,n,r.value)}}function wn(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function qo(e,t,n){return wn(e,t,n,!1)}function qv(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return wn(this,n,r(this))},set(o){wn(this,n,o)}})}return t}function Jv(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:wn(this,t,n.bind(this))},set(r){wn(this,t,r)}})}function Yv(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var dl,vn=!1,Xv={configurable:!0,get(){vn=!0}};function Y(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&dl!==e._zod){dl=void 0;return}dl=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Xv);let o=vn;vn=!1;try{let i=n(this);return vn?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i}),vn=vn||o,i}catch(i){throw delete this[t],vn=vn||o,i}},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o})}})}function Qv(e,t,n,r){let o=Yv(e,t);o&&Object.defineProperty(o,t,{configurable:!0,get(){let i={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,i),i.value=n(this),Object.defineProperty(this,t,i),i.value},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:i})}})}var Gs="~constantCatch";function wl(e){let t=()=>e;return t[Gs]=!0,t}var Z5,Il=Object.freeze({status:"aborted"}),xl={value:void 0,enumerable:!1},j5="captureStackTrace"in Error?Error:null;function ew(e){let t=j5;if(t){let n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return j5=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function C(e,t,n,r){let o={};function i(m){this.def=m,this.constr=d,this.traits=new Set}i.prototype=o;let s=n,a=s&&new WeakSet;function c(m,f){if(m._zod){if(m._zod.traits.has(e))return}else{xl.value=new i(f);try{Object.defineProperty(m,"_zod",xl)}finally{xl.value=void 0}}if(m._zod.traits.add(e),t(m,f),a){let g=Object.getPrototypeOf(m),k=m._zod.constr.prototype,v=g;for(;v&&v!==k;)v=Object.getPrototypeOf(v);let y=v??g;a.has(y)||(a.add(y),vl(y,s))}let h=d.prototype;for(let g in h)Object.prototype.hasOwnProperty.call(h,g)&&(g in m||(m[g]=h[g].bind(m)))}let u=r?.Parent??Object;class l extends u{}Object.defineProperty(l,"name",{value:e});function d(m){let f=r?.Parent?ew(l):this;c(f,m);let h=f._zod.deferred;if(h){for(let k of h)k();f._zod.deferred=void 0}let g=globalThis.__zod_globalConfig?.postProcessor;return g&&g(f),f}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:m=>r?.Parent&&m instanceof r.Parent?!0:m?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var _l=Symbol("zod_brand"),ut=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},xn=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(Z5=globalThis).__zod_globalConfig??(Z5.__zod_globalConfig={});var Ne=globalThis.__zod_globalConfig;function ye(e){return e&&Object.assign(Ne,e),Ne}function tw(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Sr,2)),e.message}function nw(e){this._zod.message=e}var rw={get:tw,set:nw,enumerable:!0,configurable:!0},Ll={value:void 0,enumerable:!1},W5=new WeakSet([Object.prototype,Error.prototype]),F5=(e,t)=>{e.name="$ZodError",Ll.value=t,Object.defineProperty(e,"issues",Ll),Ll.value=void 0,Object.defineProperty(e,"message",rw);let n=Object.getPrototypeOf(e);W5.has(n)||(W5.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},Pl=C("$ZodError",F5),lt=C("$ZodError",F5,void 0,{Parent:Error});function ow(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Jo(e,t=n=>n.message){let n={},r=[];for(let o of e.issues)o.path.length>0?ow(n,o.path[0],()=>[]).push(t(o)):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Yo(e,t=n=>n.message){let n={_errors:[]},r=(o,i=[])=>{for(let s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>r({issues:a},[...i,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...i,...s.path]);else{let a=[...i,...s.path];if(a.length===0)n._errors.push(t(s));else{let c=n,u=0;for(;u<a.length;){let l=a[u],d=u===a.length-1;if(l==="_errors"){d&&c._errors.push(t(s)),u++;continue}Object.prototype.hasOwnProperty.call(c,l)||Object.defineProperty(c,l,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let m=c[l];d&&m._errors.push(t(s)),c=m,u++}}}};return r(e),n}function Ml(e,t=n=>n.message){let n={errors:[]},r=(o,i=[])=>{var s;for(let a of o.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>r({issues:c},[...i,...a.path]));else if(a.code==="invalid_key")r({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")r({issues:a.issues},[...i,...a.path]);else{let c=[...i,...a.path];if(c.length===0){n.errors.push(t(a));continue}let u=n,l=0;for(;l<c.length;){let d=c[l],m=l===c.length-1;typeof d=="string"?(u.properties??(u.properties={}),Object.prototype.hasOwnProperty.call(u.properties,d)||Object.defineProperty(u.properties,d,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),u=u.properties[d]):(u.items??(u.items=[]),(s=u.items)[d]??(s[d]={errors:[]}),u=u.items[d]),m&&u.errors.push(t(a)),l++}}};return r(e),n}function V5(e){let t=[],n=e.map(r=>typeof r=="object"?r.key:r);for(let r of n)typeof r=="number"?t.push(`[${r}]`):typeof r=="symbol"?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function Rl(e){let t=[],n=[...e.issues].sort((r,o)=>(r.path??[]).length-(o.path??[]).length);for(let r of n)t.push(`\u2716 ${r.message}`),r.path?.length&&t.push(` \u2192 at ${V5(r.path)}`);return t.join(`
6
- `)}function Ks(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Rr=e=>{let t=(n,r,o,i)=>{let s=o?{...o,async:!1}:{async:!1},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise)throw new ut;if(a.issues.length){let c=new(i?.Err??e)(a.issues.map(u=>ct(u,s,ye())));throw Vs(c,i?.callee??t),c}return a.value};return t},qs=Rr(lt),Tr=e=>{let t=async(n,r,o,i)=>{let s=o?{...o,async:!0}:{async:!0},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new(i?.Err??e)(a.issues.map(u=>ct(u,s,ye())));throw Vs(c,i?.callee??t),c}return a.value};return t},Js=Tr(lt),$r=e=>(t,n,r)=>{let o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new ut;return i.issues.length?H5(e,i.issues,o):{success:!0,data:i.value}},sw=$r(lt);function H5(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(o=>ct(o,n,ye()))),t=void 0,n=void 0),r},set error(o){r=o,t=void 0,n=void 0}}}var Ar=e=>async(t,n,r)=>{let o=r?{...r,async:!0}:{async:!0},i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?H5(e,i.issues,o):{success:!0,data:i.value}},aw=Ar(lt),cw=Symbol.for("zod.compile.invalid"),uw=Symbol.for("zod.compile.fallback"),Xo=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==cw)return!0;if(r.definite===!0&&n===void 0)return!1}return lw(e,t,n)});function lw(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},o=e._zod.bag.fallbackRun,i;if(o?(r[uw]=!0,i=o({value:t,issues:[]},r)):i=e._zod.run({value:t,issues:[]},r),i instanceof Promise)throw new ut;return i.issues.length===0}var Qo=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},o=e._zod.run({value:t,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length===0},Ys=e=>{let t=Rr(e),n=(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return t(r,o,a,Ks(n,s))};return n},dw=Ys(lt),Xs=e=>{let t=Rr(e),n=(r,o,i,s)=>t(r,o,i,Ks(n,s));return n},pw=Xs(lt),Qs=e=>{let t=Tr(e),n=async(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return await t(r,o,a,Ks(n,s))};return n},fw=Qs(lt),ea=e=>{let t=Tr(e),n=async(r,o,i,s)=>await t(r,o,i,Ks(n,s));return n},mw=ea(lt),ta=e=>(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return $r(e)(t,n,o)},hw=ta(lt),na=e=>(t,n,r)=>$r(e)(t,n,r),gw=na(lt),ra=e=>async(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return Ar(e)(t,n,o)},Cw=ra(lt),oa=e=>async(t,n,r)=>Ar(e)(t,n,r),kw=oa(lt);var vt={};Lt(vt,{anyString:()=>rd,base64:()=>Kl,base64url:()=>ql,bigint:()=>id,boolean:()=>sd,browserEmail:()=>Sw,cidrv4:()=>Ul,cidrv6:()=>Gl,creditCard:()=>ia,cuid:()=>$l,cuid2:()=>Al,currencyCode:()=>Ql,date:()=>ed,datetime:()=>nd,domain:()=>Yl,duration:()=>Zl,e164:()=>Xl,email:()=>Wl,emoji:()=>Fl,extendedDuration:()=>yw,guid:()=>jl,hex:()=>dd,hostname:()=>Jl,html5Email:()=>xw,httpProtocol:()=>ei,iban:()=>sa,idnEmail:()=>_w,integer:()=>ti,ipv4:()=>Vl,ipv6:()=>Hl,ksuid:()=>Nl,lowercase:()=>ud,mac:()=>Bl,md5_base64:()=>Rw,md5_base64url:()=>Tw,md5_hex:()=>Mw,nanoid:()=>Ol,nanoidOfLength:()=>zl,null:()=>ad,number:()=>Qt,rfc5322Email:()=>Iw,sha1_base64:()=>Aw,sha1_base64url:()=>Dw,sha1_hex:()=>$w,sha256_base64:()=>Nw,sha256_base64url:()=>Ow,sha256_hex:()=>Ew,sha384_base64:()=>Zw,sha384_base64url:()=>jw,sha384_hex:()=>zw,sha512_base64:()=>Fw,sha512_base64url:()=>Vw,sha512_hex:()=>Ww,string:()=>od,time:()=>td,ulid:()=>Dl,undefined:()=>cd,unicodeEmail:()=>B5,uppercase:()=>ld,uuid:()=>Kn,uuid4:()=>bw,uuid6:()=>vw,uuid7:()=>ww,xid:()=>El});var $l=/^[cC][0-9a-z]{6,}$/,Al=/^[0-9a-z]+$/,Dl=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,El=/^[0-9a-vA-V]{20}$/,Nl=/^[A-Za-z0-9]{27}$/,Ol=/^[a-zA-Z0-9_-]{21}$/;function zl(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Zl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,yw=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,jl=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Kn=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,bw=Kn(4),vw=Kn(6),ww=Kn(7),Wl=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,xw=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Iw=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,B5=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,_w=B5,Sw=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Lw="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function Fl(){return new RegExp(Lw,"u")}var Vl=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Hl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Bl=e=>{let t=bt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Ul=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Gl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Kl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ql=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Jl=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Yl=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,ei=/^https?$/,Xl=/^\+[1-9]\d{6,14}$/,ia=/^\d(?:[ -]?\d){11,18}$/,Ql=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,sa=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,U5="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function Pw(e){return new RegExp(`^${e}$`)}var ed=Pw(U5);function Tl(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function td(e){return new RegExp(`^${Tl(e)}$`)}function nd(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${Tl({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${Tl({precision:e.precision})}`:n;return new RegExp(`^${U5}T(?:${r})$`)}var rd=/^[\s\S]{0,}$/,od=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},id=/^-?\d+n?$/,ti=/^-?\d+$/,Qt=/^-?\d+(?:\.\d+)?$/,sd=/^(?:true|false)$/i,ad=/^null$/i;var cd=/^undefined$/i;var ud=/^[^A-Z]*$/,ld=/^[^a-z]*$/,dd=/^[0-9a-fA-F]*$/;function ni(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function ri(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Mw=/^[0-9a-fA-F]{32}$/,Rw=ni(22,"=="),Tw=ri(22),$w=/^[0-9a-fA-F]{40}$/,Aw=ni(27,"="),Dw=ri(27),Ew=/^[0-9a-fA-F]{64}$/,Nw=ni(43,"="),Ow=ri(43),zw=/^[0-9a-fA-F]{96}$/,Zw=ni(64,""),jw=ri(64),Ww=/^[0-9a-fA-F]{128}$/,Fw=ni(86,"=="),Vw=ri(86);var pe=C("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),pd=e=>{let t=e.value;return!Fs(t)&&t.size!==void 0},fd=e=>{let t=e.value;return!Fs(t)&&t.length!==void 0},aa={number:"number",bigint:"bigint",object:"date"},ua=C("$ZodCheckLessThan",(e,t)=>{pe.init(e,t);let n=aa[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:aa[typeof r.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),la=C("$ZodCheckGreaterThan",(e,t)=>{pe.init(e,t);let n=aa[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:aa[typeof r.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),md=C("$ZodCheckMultipleOf",(e,t)=>{pe.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):Fo(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),hd=C("$ZodCheckNumberFormat",(e,t)=>{pe.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[o,i]=Bo[t.format];e._zod.check=s=>{let a=s.value;if(n){if(!Number.isInteger(a)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}a<o&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),a>i&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),gd=C("$ZodCheckBigIntFormat",(e,t)=>{pe.init(e,t);let[n,r]=Uo[t.format];e._zod.check=o=>{let i=o.value;i<n&&o.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),i>r&&o.issues.push({origin:"bigint",input:i,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),Cd=C("$ZodCheckMaxSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=pd),e._zod.check=r=>{let o=r.value;o.size<=t.maximum||r.issues.push({origin:Go(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),kd=C("$ZodCheckMinSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=pd),e._zod.check=r=>{let o=r.value;o.size>=t.minimum||r.issues.push({origin:Go(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),yd=C("$ZodCheckSizeEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=pd),e._zod.check=r=>{let o=r.value,i=o.size;if(i===t.size)return;let s=i>t.size;r.issues.push({origin:Go(o),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),bd=C("$ZodCheckMaxLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=fd),e._zod.check=r=>{let o=r.value,i=o.length;if((typeof o=="string"&&i>t.maximum?Gn(o):i)<=t.maximum)return;let a=Ko(o);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),vd=C("$ZodCheckMinLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=fd),e._zod.check=r=>{let o=r.value,i=o.length;if((typeof o=="string"&&i>=t.minimum&&i<t.minimum*2?Gn(o):i)>=t.minimum)return;let a=Ko(o);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),wd=C("$ZodCheckLengthEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=fd),e._zod.check=r=>{let o=r.value,i=o.length,s=typeof o=="string"&&i>=t.length&&i<=t.length*2?Gn(o):i;if(s===t.length)return;let a=Ko(o),c=s>t.length;r.issues.push({origin:a,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Dr=C("$ZodCheckStringFormat",(e,t)=>{var n,r;pe.init(e,t),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),xd=C("$ZodCheckRegex",(e,t)=>{Dr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Id=C("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ud),Dr.init(e,t)}),_d=C("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ld),Dr.init(e,t)}),Sd=C("$ZodCheckIncludes",(e,t)=>{pe.init(e,t);let n=bt(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Ld=C("$ZodCheckStartsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`^${bt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Pd=C("$ZodCheckEndsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`.*${bt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function ca(e,t,n){e.issues.length&&t.issues.push(...at(n,e.issues))}var Md=C("$ZodCheckProperty",(e,t)=>{pe.init(e,t),e._zod.check=n=>{let r=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(o=>ca(o,n,t.property));ca(r,n,t.property)}}),Rd=C("$ZodCheckProperties",(e,t)=>{pe.init(e,t),qo(e,Symbol.iterator,function*(){yield e});let n;e._zod.check=r=>{if(r.value==null){r.issues.push({expected:"object",code:"invalid_type",input:r.value,inst:e});return}n??(n=Reflect.ownKeys(t.shape).map(s=>[s,t.shape[s]]));let o=r.value,i;for(let[s,a]of n){let c=a._zod.run({value:o[s],issues:[]},{});c instanceof Promise?(i??(i=[]),i.push(c.then(u=>ca(u,r,s)))):ca(c,r,s)}if(i)return Promise.all(i).then(()=>{})}}),Td=C("$ZodCheckMimeType",(e,t)=>{pe.init(e,t);let n=new Set(t.mime);e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),$d=C("$ZodCheckOverwrite",(e,t)=>{pe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var qn=class{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let r=t.split(`
5
+ `},My={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Ry(e){let{announcements:t=My,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Py}=e,{announce:i,announcement:s}=Ah(),a=Mo("DndLiveRegion"),[c,u]=E(!1);if(z(()=>{u(!0)},[]),Sy(q(()=>({onDragStart(d){let{active:m}=d;i(t.onDragStart({active:m}))},onDragMove(d){let{active:m,over:f}=d;t.onDragMove&&i(t.onDragMove({active:m,over:f}))},onDragOver(d){let{active:m,over:f}=d;i(t.onDragOver({active:m,over:f}))},onDragEnd(d){let{active:m,over:f}=d;i(t.onDragEnd({active:m,over:f}))},onDragCancel(d){let{active:m,over:f}=d;i(t.onDragCancel({active:m,over:f}))}}),[i,t])),!c)return null;let l=qe.createElement(qe.Fragment,null,qe.createElement(Th,{id:r,value:o.draggable}),qe.createElement($h,{id:a,announcement:s}));return n?ls(l,n):l}var Pe;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Pe||(Pe={}));function Cs(){}function bs(e,t){return q(()=>({sensor:e,options:t??{}}),[e,t])}function Bh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return q(()=>[...t].filter(r=>r!=null),[...t])}var Pt=Object.freeze({x:0,y:0});function Ty(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function $y(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Ay(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Dy(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function Ey(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function Ny(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),s=o-r,a=i-n;if(r<o&&n<i){let c=t.width*t.height,u=e.width*e.height,l=s*a,d=l/(c+u-l);return Number(d.toFixed(4))}return 0}var Oy=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,o=[];for(let i of r){let{id:s}=i,a=n.get(s);if(a){let c=Ny(a,t);c>0&&o.push({id:s,data:{droppableContainer:i,value:c}})}}return o.sort(Ay)};function zy(e,t){let{top:n,left:r,bottom:o,right:i}=t;return n<=e.y&&e.y<=o&&r<=e.x&&e.x<=i}var Uh=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];let o=[];for(let i of t){let{id:s}=i,a=n.get(s);if(a&&zy(r,a)){let u=Dy(a).reduce((d,m)=>d+Ty(r,m),0),l=Number((u/4).toFixed(4));o.push({id:s,data:{droppableContainer:i,value:l}})}}return o.sort($y)};function Zy(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Gh(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Pt}function jy(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}var Wy=jy(1);function Fy(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Vy(e,t,n){let r=Fy(t);if(!r)return e;let{scaleX:o,scaleY:i,x:s,y:a}=r,c=e.left-s-(1-o)*parseFloat(n),u=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),l=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:l,height:d,top:u,right:c+l,bottom:u+d,left:c}}var Hy={ignoreTransform:!1};function Oo(e,t){t===void 0&&(t=Hy);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:u,transformOrigin:l}=Je(e).getComputedStyle(e);u&&(n=Vy(n,u,l))}let{top:r,left:o,width:i,height:s,bottom:a,right:c}=n;return{top:r,left:o,width:i,height:s,bottom:a,right:c}}function Dh(e){return Oo(e,{ignoreTransform:!0})}function By(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Uy(e,t){return t===void 0&&(t=Je(e).getComputedStyle(e)),t.position==="fixed"}function Gy(e,t){t===void 0&&(t=Je(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{let i=t[o];return typeof i=="string"?n.test(i):!1})}function Ju(e,t){let n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(ps(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Cr(o)||Fu(o)||n.includes(o))return n;let i=Je(e).getComputedStyle(o);return o!==e&&Gy(o,i)&&n.push(o),Uy(o,i)?n:r(o.parentNode)}return e?r(e):n}function Kh(e){let[t]=Ju(e,1);return t??null}function Hu(e){return!Lo||!e?null:Zn(e)?e:ds(e)?ps(e)||e===jn(e).scrollingElement?window:Cr(e)?e:null:null}function qh(e){return Zn(e)?e.scrollX:e.scrollLeft}function Jh(e){return Zn(e)?e.scrollY:e.scrollTop}function Gu(e){return{x:qh(e),y:Jh(e)}}var De;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(De||(De={}));function Yh(e){return!Lo||!e?!1:e===document.scrollingElement}function Xh(e){let t={x:0,y:0},n=Yh(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:s,isRight:a,maxScroll:r,minScroll:t}}var Ky={x:.2,y:.2};function qy(e,t,n,r,o){let{top:i,left:s,right:a,bottom:c}=n;r===void 0&&(r=10),o===void 0&&(o=Ky);let{isTop:u,isBottom:l,isLeft:d,isRight:m}=Xh(e),f={x:0,y:0},h={x:0,y:0},g={height:t.height*o.y,width:t.width*o.x};return!u&&i<=t.top+g.height?(f.y=De.Backward,h.y=r*Math.abs((t.top+g.height-i)/g.height)):!l&&c>=t.bottom-g.height&&(f.y=De.Forward,h.y=r*Math.abs((t.bottom-g.height-c)/g.height)),!m&&a>=t.right-g.width?(f.x=De.Forward,h.x=r*Math.abs((t.right-g.width-a)/g.width)):!d&&s<=t.left+g.width&&(f.x=De.Backward,h.x=r*Math.abs((t.left+g.width-s)/g.width)),{direction:f,speed:h}}function Jy(e){if(e===document.scrollingElement){let{innerWidth:i,innerHeight:s}=window;return{top:0,left:0,right:i,bottom:s,width:i,height:s}}let{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Qh(e){return e.reduce((t,n)=>Wn(t,Gu(n)),Pt)}function Yy(e){return e.reduce((t,n)=>t+qh(n),0)}function Xy(e){return e.reduce((t,n)=>t+Jh(n),0)}function Qy(e,t){if(t===void 0&&(t=Oo),!e)return;let{top:n,left:r,bottom:o,right:i}=t(e);Kh(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}var eb=[["x",["left","right"],Yy],["y",["top","bottom"],Xy]],$o=class{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let r=Ju(n),o=Qh(r);this.rect={...t},this.width=t.width,this.height=t.height;for(let[i,s,a]of eb)for(let c of s)Object.defineProperty(this,c,{get:()=>{let u=a(r),l=o[i]-u;return this.rect[c]+l},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},Fn=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}};function tb(e){let{EventTarget:t}=Je(e);return e instanceof t?e:jn(e)}function Bu(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Ct;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ct||(Ct={}));function Eh(e){e.preventDefault()}function nb(e){e.stopPropagation()}var fe;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(fe||(fe={}));var e5={start:[fe.Space,fe.Enter],cancel:[fe.Esc],end:[fe.Space,fe.Enter,fe.Tab]},rb=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case fe.Right:return{...n,x:n.x+25};case fe.Left:return{...n,x:n.x-25};case fe.Down:return{...n,y:n.y+25};case fe.Up:return{...n,y:n.y-25}}},br=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;let{event:{target:n}}=t;this.props=t,this.listeners=new Fn(jn(n)),this.windowListeners=new Fn(Je(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ct.Resize,this.handleCancel),this.windowListeners.add(Ct.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ct.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Qy(r),n(Pt)}handleKeyDown(t){if(Vu(t)){let{active:n,context:r,options:o}=this.props,{keyboardCodes:i=e5,coordinateGetter:s=rb,scrollBehavior:a="smooth"}=o,{code:c}=t;if(i.end.includes(c)){this.handleEnd(t);return}if(i.cancel.includes(c)){this.handleCancel(t);return}let{collisionRect:u}=r.current,l=u?{x:u.left,y:u.top}:Pt;this.referenceCoordinates||(this.referenceCoordinates=l);let d=s(t,{active:n,context:r.current,currentCoordinates:l});if(d){let m=Ro(d,l),f={x:0,y:0},{scrollableAncestors:h}=r.current;for(let g of h){let k=t.code,{isTop:v,isRight:y,isLeft:w,isBottom:T,maxScroll:M,minScroll:x}=Xh(g),A=Jy(g),V={x:Math.min(k===fe.Right?A.right-A.width/2:A.right,Math.max(k===fe.Right?A.left:A.left+A.width/2,d.x)),y:Math.min(k===fe.Down?A.bottom-A.height/2:A.bottom,Math.max(k===fe.Down?A.top:A.top+A.height/2,d.y))},X=k===fe.Right&&!y||k===fe.Left&&!w,ie=k===fe.Down&&!T||k===fe.Up&&!v;if(X&&V.x!==d.x){let re=g.scrollLeft+m.x,W=k===fe.Right&&re<=M.x||k===fe.Left&&re>=x.x;if(W&&!m.y){g.scrollTo({left:re,behavior:a});return}W?f.x=g.scrollLeft-re:f.x=k===fe.Right?g.scrollLeft-M.x:g.scrollLeft-x.x,f.x&&g.scrollBy({left:-f.x,behavior:a});break}else if(ie&&V.y!==d.y){let re=g.scrollTop+m.y,W=k===fe.Down&&re<=M.y||k===fe.Up&&re>=x.y;if(W&&!m.x){g.scrollTo({top:re,behavior:a});return}W?f.y=g.scrollTop-re:f.y=k===fe.Down?g.scrollTop-M.y:g.scrollTop-x.y,f.y&&g.scrollBy({top:-f.y,behavior:a});break}}this.handleMove(t,Wn(Ro(d,this.referenceCoordinates),f))}}}handleMove(t,n){let{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){let{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){let{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};br.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=e5,onActivation:o}=t,{active:i}=n,{code:s}=e.nativeEvent;if(r.start.includes(s)){let a=i.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),o?.({event:e.nativeEvent}),!0)}return!1}}];function Nh(e){return!!(e&&"distance"in e)}function Oh(e){return!!(e&&"delay"in e)}var Ao=class{constructor(t,n,r){var o;r===void 0&&(r=tb(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;let{event:i}=t,{target:s}=i;this.props=t,this.events=n,this.document=jn(s),this.documentListeners=new Fn(this.document),this.listeners=new Fn(r),this.windowListeners=new Fn(Je(s)),this.initialCoordinates=(o=hs(i))!=null?o:Pt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Ct.Resize,this.handleCancel),this.windowListeners.add(Ct.DragStart,Eh),this.windowListeners.add(Ct.VisibilityChange,this.handleCancel),this.windowListeners.add(Ct.ContextMenu,Eh),this.documentListeners.add(Ct.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Oh(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Nh(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){let{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){let{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Ct.Click,nb,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ct.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;let{activated:r,initialCoordinates:o,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!o)return;let c=(n=hs(t))!=null?n:Pt,u=Ro(o,c);if(!r&&a){if(Nh(a)){if(a.tolerance!=null&&Bu(u,a.tolerance))return this.handleCancel();if(Bu(u,a.distance))return this.handleStart()}if(Oh(a)&&Bu(u,a.tolerance))return this.handleCancel();this.handlePending(a,u);return}t.cancelable&&t.preventDefault(),s(c)}handleEnd(){let{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){let{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===fe.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}},ob={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}},ks=class extends Ao{constructor(t){let{event:n}=t,r=jn(n.target);super(t,ob,r)}};ks.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var ib={move:{name:"mousemove"},end:{name:"mouseup"}},Ku;(function(e){e[e.RightClick=2]="RightClick"})(Ku||(Ku={}));var Do=class extends Ao{constructor(t){super(t,ib,jn(t.event.target))}};Do.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Ku.RightClick?!1:(r?.({event:n}),!0)}}];var Uu={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}},Eo=class extends Ao{constructor(t){super(t,Uu)}static setup(){return window.addEventListener(Uu.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Uu.move.name,t)};function t(){}}};Eo.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:o}=n;return o.length>1?!1:(r?.({event:n}),!0)}}];var To;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(To||(To={}));var ys;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(ys||(ys={}));function sb(e){let{acceleration:t,activator:n=To.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:s=5,order:a=ys.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:l,delta:d,threshold:m}=e,f=cb({delta:d,disabled:!i}),[h,g]=Ph(),k=$({x:0,y:0}),v=$({x:0,y:0}),y=q(()=>{switch(n){case To.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case To.DraggableRect:return o}},[n,o,c]),w=$(null),T=Z(()=>{let x=w.current;if(!x)return;let A=k.current.x*v.current.x,V=k.current.y*v.current.y;x.scrollBy(A,V)},[]),M=q(()=>a===ys.TreeOrder?[...u].reverse():u,[a,u]);z(()=>{if(!i||!u.length||!y){g();return}for(let x of M){if(r?.(x)===!1)continue;let A=u.indexOf(x),V=l[A];if(!V)continue;let{direction:X,speed:ie}=qy(x,V,y,t,m);for(let re of["x","y"])f[re][X[re]]||(ie[re]=0,X[re]=0);if(ie.x>0||ie.y>0){g(),w.current=x,h(T,s),k.current=ie,v.current=X;return}}k.current={x:0,y:0},v.current={x:0,y:0},g()},[t,T,r,g,i,s,JSON.stringify(y),JSON.stringify(f),h,u,M,l,JSON.stringify(m)])}var ab={x:{[De.Backward]:!1,[De.Forward]:!1},y:{[De.Backward]:!1,[De.Forward]:!1}};function cb(e){let{delta:t,disabled:n}=e,r=ms(t);return yr(o=>{if(n||!r||!o)return ab;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[De.Backward]:o.x[De.Backward]||i.x===-1,[De.Forward]:o.x[De.Forward]||i.x===1},y:{[De.Backward]:o.y[De.Backward]||i.y===-1,[De.Forward]:o.y[De.Forward]||i.y===1}}},[n,t,r])}function ub(e,t){let n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return yr(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function lb(e,t){return q(()=>e.reduce((n,r)=>{let{sensor:o}=r,i=o.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...i]},[]),[e,t])}var No;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(No||(No={}));var qu;(function(e){e.Optimized="optimized"})(qu||(qu={}));var zh=new Map;function db(e,t){let{dragging:n,dependencies:r,config:o}=t,[i,s]=E(null),{frequency:a,measure:c,strategy:u}=o,l=$(e),d=k(),m=kr(d),f=Z(function(v){v===void 0&&(v=[]),!m.current&&s(y=>y===null?v:y.concat(v.filter(w=>!y.includes(w))))},[m]),h=$(null),g=yr(v=>{if(d&&!n)return zh;if(!v||v===zh||l.current!==e||i!=null){let y=new Map;for(let w of e){if(!w)continue;if(i&&i.length>0&&!i.includes(w.id)&&w.rect.current){y.set(w.id,w.rect.current);continue}let T=w.node.current,M=T?new $o(c(T),T):null;w.rect.current=M,M&&y.set(w.id,M)}return y}return v},[e,i,n,d,c]);return z(()=>{l.current=e},[e]),z(()=>{d||f()},[n,d]),z(()=>{i&&i.length>0&&s(null)},[JSON.stringify(i)]),z(()=>{d||typeof a!="number"||h.current!==null||(h.current=setTimeout(()=>{f(),h.current=null},a))},[a,d,f,...r]),{droppableRects:g,measureDroppableContainers:f,measuringScheduled:i!=null};function k(){switch(u){case No.Always:return!1;case No.BeforeDragging:return n;default:return!n}}}function t5(e,t){return yr(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function pb(e,t){return t5(e,t)}function fb(e){let{callback:t,disabled:n}=e,r=fs(t),o=q(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;let{MutationObserver:i}=window;return new i(r)},[r,n]);return z(()=>()=>o?.disconnect(),[o]),o}function vs(e){let{callback:t,disabled:n}=e,r=fs(t),o=q(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;let{ResizeObserver:i}=window;return new i(r)},[n]);return z(()=>()=>o?.disconnect(),[o]),o}function mb(e){return new $o(Oo(e),e)}function Zh(e,t,n){t===void 0&&(t=mb);let[r,o]=E(null);function i(){o(c=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}let l=t(e);return JSON.stringify(c)===JSON.stringify(l)?c:l})}let s=fb({callback(c){if(e)for(let u of c){let{type:l,target:d}=u;if(l==="childList"&&d instanceof HTMLElement&&d.contains(e)){i();break}}}}),a=vs({callback:i});return qt(()=>{i(),e?(a?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),s?.disconnect())},[e]),r}function hb(e){let t=t5(e);return Gh(e,t)}var jh=[];function gb(e){let t=$(e),n=yr(r=>e?r&&r!==jh&&e&&t.current&&e.parentNode===t.current.parentNode?r:Ju(e):jh,[e]);return z(()=>{t.current=e},[e]),n}function Cb(e){let[t,n]=E(null),r=$(e),o=Z(i=>{let s=Hu(i.target);s&&n(a=>a?(a.set(s,Gu(s)),new Map(a)):null)},[]);return z(()=>{let i=r.current;if(e!==i){s(i);let a=e.map(c=>{let u=Hu(c);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,Gu(u)]):null}).filter(c=>c!=null);n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(i)};function s(a){a.forEach(c=>{let u=Hu(c);u?.removeEventListener("scroll",o)})}},[o,e]),q(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>Wn(i,s),Pt):Qh(e):Pt,[e,t])}function Wh(e,t){t===void 0&&(t=[]);let n=$(null);return z(()=>{n.current=null},t),z(()=>{let r=e!==Pt;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Ro(e,n.current):Pt}function kb(e){z(()=>{if(!Lo)return;let t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(let n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function yb(e,t){return q(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=s=>{i(s,t)},n},{}),[e,t])}function n5(e){return q(()=>e?By(e):null,[e])}var Fh=[];function bb(e,t){t===void 0&&(t=Oo);let[n]=e,r=n5(n?Je(n):null),[o,i]=E(Fh);function s(){i(()=>e.length?e.map(c=>Yh(c)?r:new $o(t(c),c)):Fh)}let a=vs({callback:s});return qt(()=>{a?.disconnect(),s(),e.forEach(c=>a?.observe(c))},[e]),o}function vb(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return Cr(t)?t:e}function wb(e){let{measure:t}=e,[n,r]=E(null),o=Z(u=>{for(let{target:l}of u)if(Cr(l)){r(d=>{let m=t(l);return d?{...d,width:m.width,height:m.height}:m});break}},[t]),i=vs({callback:o}),s=Z(u=>{let l=vb(u);i?.disconnect(),l&&i?.observe(l),r(l?t(l):null)},[t,i]),[a,c]=Po(s);return q(()=>({nodeRef:a,rect:n,setRef:c}),[n,a,c])}var xb=[{sensor:ks,options:{}},{sensor:br,options:{}}],Ib={current:{}},gs={draggable:{measure:Dh},droppable:{measure:Dh,strategy:No.WhileDragging,frequency:qu.Optimized},dragOverlay:{measure:Oo}},Vn=class extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}},_b={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Vn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Cs},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:gs,measureDroppableContainers:Cs,windowRect:null,measuringScheduled:!1},Sb={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Cs,draggableNodes:new Map,over:null,measureDroppableContainers:Cs},ws=we(Sb),Lb=we(_b);function Pb(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Vn}}}function Mb(e,t){switch(t.type){case Pe.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Pe.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Pe.DragEnd:case Pe.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Pe.RegisterDroppable:{let{element:n}=t,{id:r}=n,o=new Vn(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case Pe.SetDroppableDisabled:{let{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let s=new Vn(e.droppable.containers);return s.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case Pe.UnregisterDroppable:{let{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;let i=new Vn(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Rb(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:o}=xe(ws),i=ms(r),s=ms(n?.id);return z(()=>{if(!t&&!r&&i&&s!=null){if(!Vu(i)||document.activeElement===i.target)return;let a=o.get(s);if(!a)return;let{activatorNode:c,node:u}=a;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(let l of[c.current,u.current]){if(!l)continue;let d=Rh(l);if(d){d.focus();break}}})}},[r,t,o,s,i]),null}function Tb(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function $b(e){return q(()=>({draggable:{...gs.draggable,...e?.draggable},droppable:{...gs.droppable,...e?.droppable},dragOverlay:{...gs.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Ab(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e,i=$(!1),{x:s,y:a}=typeof o=="boolean"?{x:o,y:o}:o;qt(()=>{if(!s&&!a||!t){i.current=!1;return}if(i.current||!r)return;let u=t?.node.current;if(!u||u.isConnected===!1)return;let l=n(u),d=Gh(l,r);if(s||(d.x=0),a||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){let m=Kh(u);m&&m.scrollBy({top:d.y,left:d.x})}},[t,s,a,r,n])}var r5=we({...Pt,scaleX:1,scaleY:1}),Cn;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Cn||(Cn={}));var o5=ft(function(t){var n,r,o,i;let{id:s,accessibility:a,autoScroll:c=!0,children:u,sensors:l=xb,collisionDetection:d=Oy,measuring:m,modifiers:f,...h}=t,g=Zu(Mb,void 0,Pb),[k,v]=g,[y,w]=Ly(),[T,M]=E(Cn.Uninitialized),x=T===Cn.Initialized,{draggable:{active:A,nodes:V,translate:X},droppable:{containers:ie}}=k,re=A!=null?V.get(A):null,W=$({initial:null,translated:null}),ae=q(()=>{var he;return A!=null?{id:A,data:(he=re?.data)!=null?he:Ib,rect:W}:null},[A,re]),ne=$(null),[ze,xt]=E(null),[Ge,Nn]=E(null),gt=kr(h,Object.values(h)),Ve=Mo("DndDescribedBy",s),Et=q(()=>ie.getEnabled(),[ie]),Te=$b(m),{droppableRects:Ze,measureDroppableContainers:Nt,measuringScheduled:Ot}=db(Et,{dragging:x,dependencies:[X.x,X.y],config:Te.droppable}),$e=ub(V,A),cn=q(()=>Ge?hs(Ge):null,[Ge]),un=Du(),On=pb($e,Te.draggable.measure);Ab({activeNode:A!=null?V.get(A):null,config:un.layoutShiftCompensation,initialRect:On,measure:Te.draggable.measure});let He=Zh($e,Te.draggable.measure,On),Be=Zh($e?$e.parentElement:null),Ae=$({activatorEvent:null,active:null,activeNode:$e,collisionRect:null,collisions:null,droppableRects:Ze,draggableNodes:V,draggingNode:null,draggingNodeRect:null,droppableContainers:ie,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ce=ie.getNodeFor((n=Ae.current.over)==null?void 0:n.id),me=wb({measure:Te.dragOverlay.measure}),Ut=(r=me.nodeRef.current)!=null?r:$e,rt=x?(o=me.rect)!=null?o:He:null,ln=!!(me.nodeRef.current&&me.rect),ee=hb(ln?null:He),zt=n5(Ut?Je(Ut):null),Ke=gb(x?Ce??$e:null),Zt=bb(Ke),j=Tb(f,{transform:{x:X.x-ee.x,y:X.y-ee.y,scaleX:1,scaleY:1},activatorEvent:Ge,active:ae,activeNodeRect:He,containerNodeRect:Be,draggingNodeRect:rt,over:Ae.current.over,overlayNodeRect:me.rect,scrollableAncestors:Ke,scrollableAncestorRects:Zt,windowRect:zt}),Se=cn?Wn(cn,X):null,ko=Cb(Ke),pt=Wh(ko),ns=Wh(ko,[He]),Gt=Wn(j,pt),It=rt?Wy(rt,j):null,_t=ae&&It?d({active:ae,collisionRect:It,droppableRects:Ze,droppableContainers:Et,pointerCoordinates:Se}):null,rs=Ey(_t,"id"),[St,yo]=E(null),bo=ln?j:Wn(j,ns),Ru=Zy(bo,(i=St?.rect)!=null?i:null,He),dn=$(null),zn=Z((he,be)=>{let{sensor:ve,options:b}=be;if(ne.current==null)return;let _=V.get(ne.current);if(!_)return;let P=he.nativeEvent,G=new ve({active:ne.current,activeNode:_,event:P,options:b,context:Ae,onAbort(oe){if(!V.get(oe))return;let{onDragAbort:je}=gt.current,Le={id:oe};je?.(Le),y({type:"onDragAbort",event:Le})},onPending(oe,ge,je,Le){if(!V.get(oe))return;let{onDragPending:xo}=gt.current,pn={id:oe,constraint:ge,initialCoordinates:je,offset:Le};xo?.(pn),y({type:"onDragPending",event:pn})},onStart(oe){let ge=ne.current;if(ge==null)return;let je=V.get(ge);if(!je)return;let{onDragStart:Le}=gt.current,wo={activatorEvent:P,active:{id:ge,data:je.data,rect:W}};So(()=>{Le?.(wo),M(Cn.Initializing),v({type:Pe.DragStart,initialCoordinates:oe,active:ge}),y({type:"onDragStart",event:wo}),xt(dn.current),Nn(P)})},onMove(oe){v({type:Pe.DragMove,coordinates:oe})},onEnd:te(Pe.DragEnd),onCancel:te(Pe.DragCancel)});dn.current=G;function te(oe){return async function(){let{active:je,collisions:Le,over:wo,scrollAdjustedTranslate:xo}=Ae.current,pn=null;if(je&&xo){let{cancelDrop:Io}=gt.current;pn={activatorEvent:P,active:je,collisions:Le,delta:xo,over:wo},oe===Pe.DragEnd&&typeof Io=="function"&&await Promise.resolve(Io(pn))&&(oe=Pe.DragCancel)}ne.current=null,So(()=>{v({type:oe}),M(Cn.Uninitialized),yo(null),xt(null),Nn(null),dn.current=null;let Io=oe===Pe.DragEnd?"onDragEnd":"onDragCancel";if(pn){let Eu=gt.current[Io];Eu?.(pn),y({type:Io,event:pn})}})}}},[V]),Tu=Z((he,be)=>(ve,b)=>{let _=ve.nativeEvent,P=V.get(b);if(ne.current!==null||!P||_.dndKit||_.defaultPrevented)return;let G={active:P};he(ve,be.options,G)===!0&&(_.dndKit={capturedBy:be.sensor},ne.current=b,zn(ve,be))},[V,zn]),vo=lb(l,Tu);kb(l),qt(()=>{He&&T===Cn.Initializing&&M(Cn.Initialized)},[He,T]),z(()=>{let{onDragMove:he}=gt.current,{active:be,activatorEvent:ve,collisions:b,over:_}=Ae.current;if(!be||!ve)return;let P={active:be,activatorEvent:ve,collisions:b,delta:{x:Gt.x,y:Gt.y},over:_};So(()=>{he?.(P),y({type:"onDragMove",event:P})})},[Gt.x,Gt.y]),z(()=>{let{active:he,activatorEvent:be,collisions:ve,droppableContainers:b,scrollAdjustedTranslate:_}=Ae.current;if(!he||ne.current==null||!be||!_)return;let{onDragOver:P}=gt.current,G=b.get(rs),te=G&&G.rect.current?{id:G.id,rect:G.rect.current,data:G.data,disabled:G.disabled}:null,oe={active:he,activatorEvent:be,collisions:ve,delta:{x:_.x,y:_.y},over:te};So(()=>{yo(te),P?.(oe),y({type:"onDragOver",event:oe})})},[rs]),qt(()=>{Ae.current={activatorEvent:Ge,active:ae,activeNode:$e,collisionRect:It,collisions:_t,droppableRects:Ze,draggableNodes:V,draggingNode:Ut,draggingNodeRect:rt,droppableContainers:ie,over:St,scrollableAncestors:Ke,scrollAdjustedTranslate:Gt},W.current={initial:rt,translated:It}},[ae,$e,_t,It,V,Ut,rt,Ze,ie,St,Ke,Gt]),sb({...un,delta:X,draggingRect:It,pointerCoordinates:Se,scrollableAncestors:Ke,scrollableAncestorRects:Zt});let $u=q(()=>({active:ae,activeNode:$e,activeNodeRect:He,activatorEvent:Ge,collisions:_t,containerNodeRect:Be,dragOverlay:me,draggableNodes:V,droppableContainers:ie,droppableRects:Ze,over:St,measureDroppableContainers:Nt,scrollableAncestors:Ke,scrollableAncestorRects:Zt,measuringConfiguration:Te,measuringScheduled:Ot,windowRect:zt}),[ae,$e,He,Ge,_t,Be,me,V,ie,Ze,St,Nt,Ke,Zt,Te,Ot,zt]),Au=q(()=>({activatorEvent:Ge,activators:vo,active:ae,activeNodeRect:He,ariaDescribedById:{draggable:Ve},dispatch:v,draggableNodes:V,over:St,measureDroppableContainers:Nt}),[Ge,vo,ae,He,v,Ve,V,St,Nt]);return qe.createElement(Hh.Provider,{value:w},qe.createElement(ws.Provider,{value:Au},qe.createElement(Lb.Provider,{value:$u},qe.createElement(r5.Provider,{value:Ru},u)),qe.createElement(Rb,{disabled:a?.restoreFocus===!1})),qe.createElement(Ry,{...a,hiddenTextDescribedById:Ve}));function Du(){let he=ze?.autoScrollEnabled===!1,be=typeof c=="object"?c.enabled===!1:c===!1,ve=x&&!he&&!be;return typeof c=="object"?{...c,enabled:ve}:{enabled:ve}}}),Db=we(null),Vh="button",Eb="Draggable";function xs(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e,i=Mo(Eb),{activators:s,activatorEvent:a,active:c,activeNodeRect:u,ariaDescribedById:l,draggableNodes:d,over:m}=xe(ws),{role:f=Vh,roleDescription:h="draggable",tabIndex:g=0}=o??{},k=c?.id===t,v=xe(k?r5:Db),[y,w]=Po(),[T,M]=Po(),x=yb(s,t),A=kr(n);qt(()=>(d.set(t,{id:t,key:i,node:y,activatorNode:T,data:A}),()=>{let X=d.get(t);X&&X.key===i&&d.delete(t)}),[d,t]);let V=q(()=>({role:f,tabIndex:g,"aria-disabled":r,"aria-pressed":k&&f===Vh?!0:void 0,"aria-roledescription":h,"aria-describedby":l.draggable}),[r,f,g,k,h,l.draggable]);return{active:c,activatorEvent:a,activeNodeRect:u,attributes:V,isDragging:k,listeners:r?void 0:x,node:y,over:m,setNodeRef:w,setActivatorNodeRef:M,transform:v}}var Nb="Droppable",Ob={timeout:25};function Is(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e,i=Mo(Nb),{active:s,dispatch:a,over:c,measureDroppableContainers:u}=xe(ws),l=$({disabled:n}),d=$(!1),m=$(null),f=$(null),{disabled:h,updateMeasurementsFor:g,timeout:k}={...Ob,...o},v=kr(g??r),y=Z(()=>{if(!d.current){d.current=!0;return}f.current!=null&&clearTimeout(f.current),f.current=setTimeout(()=>{u(Array.isArray(v.current)?v.current:[v.current]),f.current=null},k)},[k]),w=vs({callback:y,disabled:h||!s}),T=Z((V,X)=>{w&&(X&&(w.unobserve(X),d.current=!1),V&&w.observe(V))},[w]),[M,x]=Po(T),A=kr(t);return z(()=>{!w||!M.current||(w.disconnect(),d.current=!1,w.observe(M.current))},[M,w]),z(()=>(a({type:Pe.RegisterDroppable,element:{id:r,key:i,disabled:n,node:M,rect:m,data:A}}),()=>a({type:Pe.UnregisterDroppable,key:i,id:r})),[r]),z(()=>{n!==l.current.disabled&&(a({type:Pe.SetDroppableDisabled,id:r,key:i,disabled:n}),l.current.disabled=n)},[r,i,n,a]),{active:s,rect:m,isOver:c?.id===r,node:M,over:c,setNodeRef:x}}var Yu=globalThis.__bbPluginRuntime;if(Yu==null||Yu.sonner==null)throw new Error('Cannot load "sonner": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var _s=Yu.sonner,uP="default"in _s?_s.default:_s,{Toaster:lP,toast:st,useSonner:dP}=_s;var zb=Object.defineProperty,Qu=(e,t)=>zb(e,"name",{value:t,configurable:!0});function Xu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Qu(Xu,"setRef");function i5(...e){return t=>{let n=!1,r=e.map(o=>{let i=Xu(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){let i=r[o];typeof i=="function"?i():Xu(e[o],null)}}}}Qu(i5,"composeRefs");function el(...e){return Z(i5(...e),e)}Qu(el,"useComposedRefs");var Zb=Object.defineProperty,Mt=(e,t)=>Zb(e,"name",{value:t,configurable:!0});function s5(e){let t=H((n,r)=>{let{children:o,...i}=n,s=null,a=!1,c=[];tl(o)&&typeof Ss=="function"&&(o=Ss(o._payload)),cs.forEach(o,m=>{if(l5(m)){a=!0;let f=m,h="child"in f.props?f.props.child:f.props.children;tl(h)&&typeof Ss=="function"&&(h=Ss(h._payload)),s=Wb(f,h),c.push(s?.props?.children)}else c.push(m)}),s?s=hr(s,void 0,c):!a&&cs.count(o)===1&&gr(o)&&(s=o);let u=s?u5(s):void 0,l=el(r,u);if(!s){if(o||o===0)throw new Error(a?Hb(e):Vb(e));return o}let d=c5(i,s.props??{});return s.type!==mr&&(d.ref=r?l:u),hr(s,d)});return t.displayName=`${e}.Slot`,t}Mt(s5,"createSlot");var kn=s5("Slot"),a5=Symbol.for("radix.slottable");function jb(e){let t=Mt(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=a5,t}Mt(jb,"createSlottable");var Wb=Mt((e,t)=>{if("child"in e.props){let n=e.props.child;return gr(n)?hr(n,void 0,e.props.children(n.props.children)):null}return gr(t)?t:null},"getSlottableElementFromSlottable");function c5(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{let c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}Mt(c5,"mergeProps");function u5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Mt(u5,"getElementRef");function l5(e){return gr(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===a5}Mt(l5,"isSlottable");var Fb=Symbol.for("react.lazy");function tl(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Fb&&"_payload"in e&&d5(e._payload)}Mt(tl,"isLazyComponent");function d5(e){return typeof e=="object"&&e!==null&&"then"in e}Mt(d5,"isPromiseLike");var Vb=Mt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Hb=Mt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Ss=it[" use ".trim().toString()];var nl=globalThis.__bbPluginRuntime;if(nl==null||nl.classVarianceAuthority==null)throw new Error('Cannot load "class-variance-authority": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ls=nl.classVarianceAuthority,gP="default"in Ls?Ls.default:Ls,{cva:p5,cx:CP}=Ls;var rl=globalThis.__bbPluginRuntime;if(rl==null||rl.clsx==null)throw new Error('Cannot load "clsx": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ps=rl.clsx,yP="default"in Ps?Ps.default:Ps,{clsx:f5}=Ps;var ol=globalThis.__bbPluginRuntime;if(ol==null||ol.tailwindMerge==null)throw new Error('Cannot load "tailwind-merge": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ms=ol.tailwindMerge,vP="default"in Ms?Ms.default:Ms,{createTailwindMerge:wP,extendTailwindMerge:xP,fromTheme:IP,getDefaultConfig:_P,mergeConfigs:SP,twJoin:LP,twMerge:m5,validators:PP}=Ms;function I(...e){return m5(f5(e))}var Rs="transition-colors duration-150 hover:duration-0",jt="transition-none";var il=globalThis.__bbPluginRuntime;if(il==null||il.jsxRuntime==null)throw new Error('Cannot load "react/jsx-runtime": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ts=il.jsxRuntime,DP="default"in Ts?Ts.default:Ts,{Fragment:kt,jsx:p,jsxs:S}=Ts;var $s=p5(`inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ${Rs} focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0`,{variants:{variant:{default:"bg-foreground text-background hover:bg-foreground/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-transparent hover:bg-state-hover hover:text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-state-hover hover:text-foreground aria-pressed:bg-state-active aria-pressed:text-foreground aria-pressed:hover:bg-state-active data-[state=open]:bg-state-active data-[state=open]:text-foreground data-[state=open]:hover:bg-state-active",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ye=H(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>p(r?kn:"button",{className:I($s({variant:t,size:n,className:e})),ref:i,...o}));Ye.displayName="Button";var sl=globalThis.__bbPluginRuntime;if(sl==null||sl.radixPopover==null)throw new Error('Cannot load "@radix-ui/react-popover": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var As=sl.radixPopover,FP="default"in As?As.default:As,{Anchor:h5,Arrow:VP,Close:HP,Content:g5,Popover:BP,PopoverAnchor:UP,PopoverArrow:GP,PopoverClose:KP,PopoverContent:qP,PopoverPortal:JP,PopoverTrigger:YP,Portal:C5,Root:k5,Trigger:y5,createPopoverScope:XP}=As;function Ee(){let e="thread-glance";return{"data-bb-portaled-overlay":"","data-bb-plugin-root":"",...e!==void 0?{"data-bb-plugin":e}:{}}}var Ub="select-none",Gb=new Set(["button","checkbox","file","hidden","image","radio","range","reset","submit"]),yn=e=>I(Ub,e);function Kb(e){return e instanceof HTMLTextAreaElement?!0:e instanceof HTMLInputElement?!e.disabled&&!e.readOnly&&!Gb.has(e.type):e instanceof HTMLElement?e.isContentEditable||e.closest("[contenteditable='true']")!==null:!1}function zo(e){if(typeof document>"u")return;let t=document.activeElement;!t||!Kb(t)||e!==null&&!e.contains(t)||t.blur()}function bn(){zo(null)}function b5(){zo(null)}function Jt(e){e.preventDefault()}var al="pointer";typeof document<"u"&&(document.addEventListener("keydown",()=>{al="keyboard"},{capture:!0}),document.addEventListener("pointerdown",()=>{al="pointer"},{capture:!0}));function v5(){return al==="keyboard"}var Ds=new Map;function qb(e){if(typeof window>"u"||!window.matchMedia)return null;let t=Ds.get(e);if(t)return t;let n=window.matchMedia(e),r=new Set,o=()=>{for(let i of r)i()};return t={mql:n,subscribe(i){let s=r.size===0;return r.add(i),s&&n.addEventListener("change",o),()=>{r.delete(i),r.size===0&&(n.removeEventListener("change",o),Ds.delete(e))}}},Ds.set(e,t),t}function Jb(e,t){return qb(e)?.subscribe(t)??(()=>{})}function Yb(e){return typeof window>"u"||!window.matchMedia?!1:Ds.get(e)?.mql.matches??window.matchMedia(e).matches}function Es(e){return Kt(t=>Jb(e,t),()=>Yb(e),()=>!1)}var Xb="(max-width: 767px)",Qb=we(null);function w5(){let e=xe(Qb),t=Es(Xb);return e!==null?e:t}var ev="(pointer: coarse)";function Ns(){return Es(ev)}var tv=120,Zs={width:"auto",minWidth:"auto",maxWidth:"none"},cl="--bb-drawer-keyboard-inset",nv=80;function zs(e){e!==null&&(e.style.height="",e.style.bottom="",e.style.removeProperty(cl))}function rv({layoutViewportHeight:e,visualViewportHeight:t,visualViewportOffsetTop:n}){let r=Math.round(e-(t+n));return r>=nv?r:0}function ov(e,t){z(()=>{let n=e.current,r=window.visualViewport;if(n===null||!t||!r)return;let o=null,i=()=>{if(o=null,r.scale!==1){zs(n);return}let a=rv({layoutViewportHeight:n.ownerDocument.documentElement.clientHeight,visualViewportHeight:r.height,visualViewportOffsetTop:r.offsetTop});if(a===0){n.style.bottom="",n.style.removeProperty(cl);return}n.style.bottom=`${a}px`,n.style.setProperty(cl,`${a}px`)},s=()=>{o!==null&&window.cancelAnimationFrame(o),o=window.requestAnimationFrame(i)};return i(),r.addEventListener("resize",s),r.addEventListener("scroll",s),()=>{r.removeEventListener("resize",s),r.removeEventListener("scroll",s),o!==null&&window.cancelAnimationFrame(o),zs(n)}},[t,e])}function iv(){let e=w5()?"drawer":"floating",t=Ns();return{presentation:e,supportsHover:e==="floating"&&!t}}function vr(e,t,n=!1){let{presentation:r}=iv(),o=r==="drawer",[i,s]=E(n),a=e!==void 0,c=a?e:i,u=Z(l=>{c&&!l&&o&&b5(),a||s(l),t?.(l)},[o,a,t,c]);return q(()=>({isCompactViewport:o,open:c,onOpenChange:u}),[o,c,u])}var Hn=H(({asChild:e,open:t,onOpenChange:n,haspopup:r,onClick:o,children:i,className:s,...a},c)=>{let u=yn(s),l=m=>{o?.(m),m.defaultPrevented||(t||bn(),n(!t))},d={"aria-expanded":t,"aria-haspopup":r,"data-state":t?"open":"closed"};return e?p(kn,{ref:c,onClick:l,onMouseDown:Jt,className:u,...d,...a,children:i}):p("button",{ref:c,type:"button",onClick:l,onMouseDown:Jt,className:u,...d,...a,children:i})});Hn.displayName="MobileTrigger";var sv=["side","sideOffset","align","alignOffset","collisionPadding","collisionBoundary","arrowPadding","sticky","hideWhenDetached","avoidCollisions","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"],av=new Set(sv);function wr(e){let t={};for(let n of Object.keys(e))av.has(n)||(t[n]=e[n]);return t}function cv({open:e,enabled:t=!0}){let[n,r]=E(!1),o=Z(()=>r(!0),[]);return z(()=>{if(!t||!e||n)return;let i=null,s=null;i=window.requestAnimationFrame(()=>{i=null,s=window.requestAnimationFrame(()=>{s=null,o()})});let a=window.setTimeout(o,tv);return()=>{i!==null&&window.cancelAnimationFrame(i),s!==null&&window.cancelAnimationFrame(s),window.clearTimeout(a)}},[t,n,e,o]),{isContentRealized:t&&n,realizeContent:o}}function xr({open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r=!0,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,onContentAnimationEnd:c,children:u}){let{isContentRealized:l}=cv({open:e});return!e&&!l?null:p(Cv,{open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,onContentAnimationEnd:c,children:l?u:p("div",{"aria-hidden":"true",className:"min-h-32","data-responsive-drawer-placeholder":""})})}var x5="cubic-bezier(0.32, 0.72, 0, 1)",uv=.25,lv=450,dv=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),Os=new WeakMap;function pv(e){return Array.from(e.querySelectorAll(dv)).filter(t=>t.closest('[aria-hidden="true"], [inert]')===null)}function fv(e,t){let n=e?.closest("[data-bb-portaled-overlay]");return n!=null&&n!==t}function mv(e,t){let n=t.ownerDocument.activeElement;if(!t.contains(n)&&fv(n,t))return;let r=pv(t);if(e.preventDefault(),r.length===0){t.focus({preventScroll:!0});return}let o=r[0],i=r[r.length-1];if(e.shiftKey){if(!t.contains(n)||n===t||n===o){i?.focus({preventScroll:!0});return}let a=r.indexOf(n);r[Math.max(0,a-1)]?.focus({preventScroll:!0});return}if(!t.contains(n)||n===t||n===i){o?.focus({preventScroll:!0});return}let s=r.indexOf(n);r[Math.min(r.length-1,s+1)]?.focus({preventScroll:!0})}function hv(e,t){let n=Os.get(e);if(n===void 0){let r=[],o=i=>{if(i.defaultPrevented)return;let s=r[r.length-1],a=s?.panel()??null;s===void 0||a===null||(i.key==="Escape"?(i.preventDefault(),s.requestClose()):i.key==="Tab"&&mv(i,a))};n={entries:r,handleKeyDown:o},Os.set(e,n),e.addEventListener("keydown",o)}return n.entries.push(t),()=>{let r=Os.get(e);if(r===void 0)return;let o=r.entries.indexOf(t);o>=0&&r.entries.splice(o,1),r.entries.length===0&&(e.removeEventListener("keydown",r.handleKeyDown),Os.delete(e))}}function gv({onAfterCloseAutoFocus:e,onBeforeCloseAutoFocus:t,open:n,panelRef:r,requestClose:o}){let i=$(null);ot(()=>{if(!n)return;let a=r.current;if(a===null)return;let c=a.ownerDocument,u=c.activeElement;i.current=u instanceof HTMLElement&&u!==c.body?u:null;let l=hv(c,{panel:()=>r.current,requestClose:o});return a.focus({preventScroll:!0}),l},[n,r,o]);let s=$(n);ot(()=>{let a;if(s.current&&!n){t?.();let c=i.current;if(c?.isConnected&&c.closest('[aria-hidden="true"], [inert]')===null&&(c.focus({preventScroll:!0}),c.ownerDocument.activeElement!==c)){let u=c.ownerDocument.defaultView;if(u!==null){let l=u.requestAnimationFrame(()=>{c.isConnected&&c.closest('[aria-hidden="true"], [inert]')===null&&c.focus({preventScroll:!0}),e?.()});a=()=>u.cancelAnimationFrame(l)}}i.current=null,a===void 0&&e?.()}return s.current=n,a},[e,t,n])}function Cv({open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r=!0,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,motionDurationMs:c=220,onContentAnimationEnd:u,children:l}){let d=$(null),m=$(null),f=$(null),h=$(null),g=gn(),k=Ee(),v=`transform ${c}ms ${x5}`,y=`opacity ${c}ms ${x5}`,w=$(t);ot(()=>{w.current=t},[t]);let T=Z(()=>{zo(d.current),zs(d.current),w.current(!1)},[]),M=Z(()=>{zo(d.current),zs(d.current)},[]);gv({onAfterCloseAutoFocus:n,onBeforeCloseAutoFocus:M,open:e,panelRef:d,requestClose:T}),ov(d,e);let x=Z(W=>{h.current!==W&&(h.current=W,u?.(W))},[u]);z(()=>{h.current=null;let W=window.setTimeout(()=>x(e),c+50);return()=>window.clearTimeout(W)},[c,e,x]);let A=Z((W,ae,ne)=>{let ze=d.current,xt=m.current;ze===null||xt===null||(ze.style.transition=ne?v:"none",ze.style.transform=`translate3d(0, ${W}px, 0)`,xt.style.transition=ne?y:"none",xt.style.opacity=String(Math.max(0,Math.min(1,1-W/ae))))},[y,v]),V=Z(W=>{if(!e||W.button!==0)return;W.currentTarget.setPointerCapture(W.pointerId);let ae=Date.now(),ne=Math.max(d.current?.clientHeight??0,1);f.current={pointerId:W.pointerId,startY:W.clientY,lastY:W.clientY,lastTimeMs:ae,velocityY:0,height:ne},A(0,ne,!1),W.preventDefault()},[e,A]),X=Z(W=>{let ae=f.current;if(ae===null||ae.pointerId!==W.pointerId)return;let ne=Date.now(),ze=ne-ae.lastTimeMs;ze>0&&(ae.velocityY=(W.clientY-ae.lastY)/ze*1e3,ae.lastY=W.clientY,ae.lastTimeMs=ne),A(Math.max(0,W.clientY-ae.startY),ae.height,!1),W.preventDefault()},[A]),ie=Z((W,ae)=>{let ne=f.current;if(ne===null||ne.pointerId!==W.pointerId)return;f.current=null;let ze=Math.max(0,W.clientY-ne.startY);!ae&&(ze>=ne.height*uv||ne.velocityY>=lv)?(A(ne.height,ne.height,!0),T()):A(0,ne.height,!0),W.preventDefault()},[T,A]),re=typeof document>"u"?null:document.body;return re===null?null:ls(S(kt,{children:[p("div",{ref:m,...k,"aria-hidden":"true","data-persistent-drawer-backdrop":"","data-state":e?"open":"closed",className:"fixed inset-0 z-50 bg-black/40",style:{opacity:e?1:0,pointerEvents:e?"auto":"none",transition:y},onClick:r?T:void 0,onTouchMove:W=>W.preventDefault()}),S("div",{ref:d,...k,"aria-hidden":!e,"aria-labelledby":i??(o===void 0?void 0:g),"aria-describedby":s,"aria-modal":e||void 0,"data-bb-portaled-overlay":"","data-persistent-drawer-content":"","data-state":e?"open":"closed",inert:!e,role:"dialog",tabIndex:-1,className:I("fixed inset-x-0 bottom-0 z-50 mt-24 flex max-h-[calc(92dvh-var(--bb-drawer-keyboard-inset,0px))] flex-col rounded-t-xl border bg-background outline-none",a),style:{transform:e?"translate3d(0, 0, 0)":"translate3d(0, 100%, 0)",transition:v,willChange:e?"transform":void 0},onTransitionEnd:W=>{W.currentTarget===W.target&&W.propertyName==="transform"&&x(e)},children:[p("div",{"data-persistent-drawer-handle":"",className:"mx-auto flex h-8 w-16 shrink-0 touch-none cursor-grab items-center justify-center active:cursor-grabbing",onPointerDown:V,onPointerMove:X,onPointerUp:W=>ie(W,!1),onPointerCancel:W=>ie(W,!0),children:p("div",{className:"h-1 w-10 rounded-full bg-muted-foreground/20"})}),o===void 0?null:p("h2",{id:g,className:"sr-only",children:o}),l]})]}),re)}var ul=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function ll(){return xe(ul)}function js({children:e,open:t,onOpenChange:n,defaultOpen:r,...o}){let i=vr(t,n,r);return i.isCompactViewport?p(ul.Provider,{value:i,children:e}):p(k5,{open:i.open,onOpenChange:i.onOpenChange,...o,children:p(ul.Provider,{value:i,children:e})})}var Zo=H(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=ll();return i?p(Hn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"dialog",className:n,...r,children:t}):p(y5,{ref:o,asChild:e,className:yn(n),onMouseDown:c=>{s||bn(),Jt(c)},...r,children:t})});Zo.displayName="PopoverTrigger";var jo=H(({className:e,align:t="center",sideOffset:n=4,children:r,dismissOnOutsideInteraction:o=!0,onInteractOutside:i,mobileTitle:s,mobileClassName:a,onMobileContentAnimationEnd:c,onOpenAutoFocus:u,autoFocusRef:l,...d},m)=>{let{isCompactViewport:f,open:h,onOpenChange:g}=ll(),k=Ns(),v=Ee();if(z(()=>{if(!h||f||k||!l)return;let y=window.requestAnimationFrame(()=>{let w=l.current;w?.focus(),w instanceof HTMLInputElement&&w.select()});return()=>window.cancelAnimationFrame(y)},[l,f,k,h]),f){let{style:y,...w}=wr(d);return p(xr,{open:h,onOpenChange:g,srLabel:s??"Options",closeOnBackdropClick:o,contentClassName:a,onContentAnimationEnd:c,children:p("div",{ref:m,className:I("overflow-y-auto px-4 pt-2 pb-[max(1rem,env(safe-area-inset-bottom))]",e),...w,style:{...y,...Zs},children:r})})}return p(C5,{children:p(g5,{ref:m,...v,align:t,sideOffset:n,onOpenAutoFocus:y=>{(k||l)&&y.preventDefault(),k||u?.(y)},className:I("z-50 w-96 rounded-md border bg-popover p-4 text-popover-foreground shadow-md 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",e),...d,onInteractOutside:y=>{o||y.preventDefault(),i?.(y)},children:r})})});jo.displayName="PopoverContent";var kv=H(({children:e,...t},n)=>{let{isCompactViewport:r}=ll();return r?p(kt,{children:e}):p(h5,{ref:n,...t,children:e})});kv.displayName="PopoverAnchor";var yv=new Set(["waits-on-you","unread-failed","queue-failed","offline","unread"]),bv=new Set(["working","background","queued","scheduled"]);function vv(e){return!bv.has(e.state.kind)}function wv(e,t){let n=0;return t.has("unread-failed")&&(n=Math.max(n,e.latestAttentionAt)),t.has("queue-failed")&&(n=Math.max(n,e.updatedAt)),n}function I5(e,t,n){return!t.has("unread-failed")&&!t.has("queue-failed")||!vv(n)?!1:Math.max(n.thread.latestAttentionAt,n.finishedAt??0)<=wv(e,t)}function _5(e,t){let n=new Set;if(t.isRoot||t.mode==="everything"){for(let r of e)yv.has(r)&&n.add(r);return n}return e.has("waits-on-you")&&n.add("waits-on-you"),e.has("offline")&&n.add("offline"),t.orphaned&&(e.has("unread-failed")&&n.add("unread-failed"),e.has("queue-failed")&&n.add("queue-failed")),n}function S5(e,t){return e.has("waits-on-you")||e.has("unread-failed")?!0:!t&&e.has("queue-failed")}var Ws={held:null,openRootId:null};function L5(e,t,n){let r=e.root.thread.id;return r===t?!0:e.attentionFlags.size>0&&r!==n}function dl(e,t){return e.root.thread.id===t&&e.attentionFlags.size===0}function P5(e,t,n){if(n===null)return Ws;let r=t.familyOf.get(n);if(r===void 0)return Ws;let o=r.root.thread.id;if(o===e.openRootId){let i=t.infos.get(n)?.thread.isArchived??!1;return e.held?.root.thread.id===o&&!(i&&r.attentionFlags.size===0)?e:{held:null,openRootId:o}}return{held:r.attentionFlags.size>0?r:null,openRootId:o}}function M5(e,t){let n=new Set,r=new Set;for(let o of e.infos.values())o.thread.isArchived||(o.attentionFlags.has("unread")&&!o.thread.isHidden&&n.add(o.thread.id),S5(o.attentionFlags,o.parentId===null)&&r.add(o.thread.id));return{activeThreadId:t,unread:n,attentionIds:r}}function R5(e,t){let n=new Map;t.activeThreadId!==null&&t.activeThreadId!==e?.activeThreadId&&n.set(t.activeThreadId,"reveal");for(let r of t.attentionIds)e?.attentionIds.has(r)||n.set(r,"reveal");for(let r of t.unread)r===t.activeThreadId||n.has(r)||e?.unread.has(r)||n.set(r,"open");return n}function T5(e,t){if(t.size===0)return e;let n=new Map(e);for(let[r,o]of t)n.get(r)!=="reveal"&&n.set(r,o);return n}function $5(e,t){let n=!1,r=new Map;for(let[o,i]of e)t(o)?n=!0:r.set(o,i);return n?r:e}function A5(e,t){let n=$(null),r=$(null),o=$(void 0),[i,s]=E(()=>new Map),a=$(i);a.current=i;let c=i;if(e!==null&&(e!==r.current||t!==o.current)){let l=M5(e,t),d=R5(n.current,l);n.current=l,r.current=e,o.current=t,c=T5(i,d),c!==i&&(a.current=c,s(c))}let u=Z(l=>{let d=$5(a.current,l);d!==a.current&&(a.current=d,s(d))},[]);return{targets:c,prune:u}}var se={};Lt(se,{$brand:()=>Sl,$input:()=>Y1,$output:()=>J1,INVALID:()=>et,NEVER:()=>_l,TimePrecision:()=>cp,ZodAny:()=>Jf,ZodArray:()=>e2,ZodBase64:()=>zc,ZodBase64URL:()=>Zc,ZodBigInt:()=>io,ZodBigIntFormat:()=>Fc,ZodBoolean:()=>oo,ZodCIDRv4:()=>Nc,ZodCIDRv6:()=>Oc,ZodCUID:()=>Mc,ZodCUID2:()=>Rc,ZodCatch:()=>v2,ZodCodec:()=>Ai,ZodCompileAsyncError:()=>Tt,ZodCompileUnsupportedError:()=>Q,ZodCreditCard:()=>Ff,ZodCustom:()=>Di,ZodCustomStringFormat:()=>cr,ZodDate:()=>Li,ZodDefault:()=>h2,ZodDiscriminatedUnion:()=>n2,ZodE164:()=>jc,ZodEmail:()=>_c,ZodEmoji:()=>Lc,ZodEnum:()=>to,ZodError:()=>$I,ZodExactOptional:()=>Uc,ZodFile:()=>d2,ZodFirstPartyTypeKind:()=>E2,ZodFunction:()=>T2,ZodGUID:()=>Sc,ZodIBAN:()=>Vf,ZodIPv4:()=>Dc,ZodIPv6:()=>Ec,ZodISODate:()=>Rn,ZodISODateTime:()=>Mn,ZodISODuration:()=>$n,ZodISOTime:()=>Tn,ZodInstanceOf:()=>D2,ZodIntersection:()=>r2,ZodIssueCode:()=>EI,ZodJWT:()=>Wc,ZodKSUID:()=>Ac,ZodLazy:()=>P2,ZodLiteral:()=>l2,ZodMAC:()=>Wf,ZodMap:()=>c2,ZodNaN:()=>x2,ZodNanoID:()=>Pc,ZodNever:()=>Xf,ZodNonOptional:()=>Gc,ZodNull:()=>Kf,ZodNullable:()=>m2,ZodNumber:()=>ro,ZodNumberFormat:()=>ur,ZodObject:()=>Mi,ZodOptional:()=>Ti,ZodPipe:()=>$i,ZodPrefault:()=>C2,ZodPreprocess:()=>I2,ZodPromise:()=>R2,ZodReadonly:()=>_2,ZodRealError:()=>dt,ZodRecord:()=>eo,ZodSet:()=>u2,ZodString:()=>no,ZodStringFormat:()=>de,ZodSuccess:()=>b2,ZodSymbol:()=>Uf,ZodTemplateLiteral:()=>L2,ZodTransform:()=>p2,ZodTuple:()=>i2,ZodType:()=>J,ZodULID:()=>Tc,ZodURL:()=>Si,ZodUUID:()=>Ht,ZodUndefined:()=>Gf,ZodUnion:()=>Ri,ZodUnknown:()=>Yf,ZodVoid:()=>Qf,ZodXID:()=>$c,ZodXor:()=>t2,_ZodString:()=>Ic,_default:()=>g2,_function:()=>r4,any:()=>D9,array:()=>Pi,base64:()=>m9,base64url:()=>h9,bigint:()=>M9,boolean:()=>Bf,catch:()=>w2,check:()=>o4,cidrv4:()=>p9,cidrv6:()=>f9,clone:()=>ce,codec:()=>Q9,coerce:()=>O2,compile:()=>tp,config:()=>ye,core:()=>tn,creditCard:()=>C9,cuid:()=>o9,cuid2:()=>i9,currencyCode:()=>x9,custom:()=>i4,date:()=>N9,decode:()=>Df,decodeAsync:()=>Nf,deepPartial:()=>k4,describe:()=>s4,discriminatedUnion:()=>F9,e164:()=>g9,email:()=>K0,emoji:()=>n9,encode:()=>Af,encodeAsync:()=>Ef,endsWith:()=>Vr,enum:()=>Hc,exactOptional:()=>f2,file:()=>q9,flattenError:()=>Jo,float32:()=>_9,float64:()=>S9,formatError:()=>Yo,fromJSONSchema:()=>g4,function:()=>r4,getDiscriminatedOption:()=>I1,getErrorMap:()=>OI,globalRegistry:()=>Fe,gt:()=>Ft,gte:()=>ht,guid:()=>q0,hash:()=>I9,hex:()=>w9,hostname:()=>v9,httpUrl:()=>t9,iban:()=>k9,includes:()=>Wr,input:()=>b4,instanceof:()=>c4,int:()=>wc,int32:()=>L9,int64:()=>R9,intersection:()=>o2,invertCodec:()=>e4,ipv4:()=>u9,ipv6:()=>d9,iso:()=>Ei,json:()=>l4,jwt:()=>y9,keyof:()=>O9,ksuid:()=>c9,lazy:()=>M2,length:()=>rr,literal:()=>K9,locales:()=>gi,looseObject:()=>j9,looseRecord:()=>H9,lowercase:()=>Zr,lt:()=>Wt,lte:()=>mt,mac:()=>l9,map:()=>B9,maxLength:()=>nr,maxSize:()=>_n,memoizer:()=>hi,meta:()=>a4,mime:()=>Br,minLength:()=>en,minSize:()=>Vt,multipleOf:()=>In,nan:()=>X9,nanoid:()=>r9,nativeEnum:()=>G9,negative:()=>dc,never:()=>Vc,nonnegative:()=>fc,nonoptional:()=>y2,nonpositive:()=>pc,normalize:()=>Ur,null:()=>qf,nullable:()=>_i,nullish:()=>J9,number:()=>Hf,object:()=>z9,optional:()=>sr,output:()=>v4,overwrite:()=>$t,parse:()=>Mf,parseAsync:()=>Rf,partialRecord:()=>V9,pipe:()=>xc,positive:()=>lc,prefault:()=>k2,preprocess:()=>d4,prettifyError:()=>Tl,promise:()=>n4,properties:()=>Hr,property:()=>mc,readonly:()=>S2,record:()=>a2,refine:()=>$2,regex:()=>zr,regexes:()=>vt,registry:()=>Za,safeDecode:()=>zf,safeDecodeAsync:()=>jf,safeEncode:()=>Of,safeEncodeAsync:()=>Zf,safeParse:()=>Tf,safeParseAsync:()=>$f,set:()=>U9,setErrorMap:()=>NI,size:()=>tr,slugify:()=>Jr,startsWith:()=>Fr,strictObject:()=>Z9,string:()=>Ii,stringFormat:()=>b9,stringbool:()=>u4,success:()=>Y9,superRefine:()=>A2,symbol:()=>$9,templateLiteral:()=>t4,toJSONSchema:()=>kc,toLowerCase:()=>Kr,toUpperCase:()=>qr,toZod:()=>Wo,transform:()=>Bc,treeifyError:()=>Rl,trim:()=>Gr,tuple:()=>s2,uint32:()=>P9,uint64:()=>T9,ulid:()=>s9,undefined:()=>A9,union:()=>so,unknown:()=>ir,uppercase:()=>jr,url:()=>e9,util:()=>O,uuid:()=>J0,uuidv4:()=>Y0,uuidv6:()=>X0,uuidv7:()=>Q0,validate:()=>Xo,validateAsync:()=>Qo,void:()=>E9,withParser:()=>ja,xid:()=>a9,xor:()=>W9});var tn={};Lt(tn,{$ZodAny:()=>g1,$ZodArray:()=>v1,$ZodAsyncError:()=>ut,$ZodBase64:()=>o1,$ZodBase64URL:()=>i1,$ZodBigInt:()=>La,$ZodBigIntFormat:()=>p1,$ZodBoolean:()=>ui,$ZodCIDRv4:()=>n1,$ZodCIDRv6:()=>r1,$ZodCUID:()=>Hd,$ZodCUID2:()=>Bd,$ZodCatch:()=>j1,$ZodCheck:()=>pe,$ZodCheckBigIntFormat:()=>Cd,$ZodCheckEndsWith:()=>Md,$ZodCheckGreaterThan:()=>da,$ZodCheckIncludes:()=>Ld,$ZodCheckLengthEquals:()=>xd,$ZodCheckLessThan:()=>la,$ZodCheckLowerCase:()=>_d,$ZodCheckMaxLength:()=>vd,$ZodCheckMaxSize:()=>kd,$ZodCheckMimeType:()=>$d,$ZodCheckMinLength:()=>wd,$ZodCheckMinSize:()=>yd,$ZodCheckMultipleOf:()=>hd,$ZodCheckNumberFormat:()=>gd,$ZodCheckOverwrite:()=>Ad,$ZodCheckProperties:()=>Td,$ZodCheckProperty:()=>Rd,$ZodCheckRegex:()=>Id,$ZodCheckSizeEquals:()=>bd,$ZodCheckStartsWith:()=>Pd,$ZodCheckStringFormat:()=>Dr,$ZodCheckUpperCase:()=>Sd,$ZodCodec:()=>di,$ZodCreditCard:()=>a1,$ZodCustom:()=>G1,$ZodCustomStringFormat:()=>l1,$ZodCyclicError:()=>Da,$ZodDate:()=>b1,$ZodDefault:()=>N1,$ZodDiscriminatedUnion:()=>_1,$ZodE164:()=>s1,$ZodEmail:()=>zd,$ZodEmoji:()=>Fd,$ZodEncodeError:()=>xn,$ZodEnum:()=>R1,$ZodError:()=>Ml,$ZodExactOptional:()=>D1,$ZodFile:()=>$1,$ZodFunction:()=>B1,$ZodGUID:()=>Nd,$ZodIBAN:()=>c1,$ZodIPv4:()=>Qd,$ZodIPv6:()=>e1,$ZodISODate:()=>Jd,$ZodISODateTime:()=>qd,$ZodISODuration:()=>Xd,$ZodISOTime:()=>Yd,$ZodIntersection:()=>S1,$ZodJWT:()=>u1,$ZodKSUID:()=>Kd,$ZodLazy:()=>pi,$ZodLiteral:()=>T1,$ZodMAC:()=>t1,$ZodMap:()=>P1,$ZodNaN:()=>W1,$ZodNanoID:()=>Vd,$ZodNever:()=>k1,$ZodNonOptional:()=>z1,$ZodNull:()=>h1,$ZodNullable:()=>E1,$ZodNumber:()=>Sa,$ZodNumberFormat:()=>d1,$ZodObject:()=>m0,$ZodObjectJIT:()=>w1,$ZodOptional:()=>Ma,$ZodPipe:()=>Ra,$ZodPrefault:()=>O1,$ZodPreprocess:()=>F1,$ZodPromise:()=>U1,$ZodReadonly:()=>V1,$ZodRealError:()=>lt,$ZodRecord:()=>L1,$ZodRegistry:()=>za,$ZodSet:()=>M1,$ZodString:()=>Jn,$ZodStringFormat:()=>ue,$ZodSuccess:()=>Z1,$ZodSymbol:()=>f1,$ZodTemplateLiteral:()=>H1,$ZodTransform:()=>A1,$ZodTuple:()=>Pa,$ZodType:()=>K,$ZodULID:()=>Ud,$ZodURL:()=>Wd,$ZodUUID:()=>Od,$ZodUndefined:()=>m1,$ZodUnion:()=>li,$ZodUnknown:()=>C1,$ZodVoid:()=>y1,$ZodXID:()=>Gd,$ZodXor:()=>x1,$brand:()=>Sl,$constructor:()=>C,$input:()=>Y1,$output:()=>J1,Doc:()=>qn,INVALID:()=>et,JSONSchema:()=>B0,JSONSchemaGenerator:()=>yc,NEVER:()=>_l,TimePrecision:()=>cp,URL_BAD_FORMAT:()=>Zd,URL_UNPARSEABLE:()=>oi,ZodCompileAsyncError:()=>Tt,ZodCompileUnsupportedError:()=>Q,_any:()=>_p,_array:()=>$p,_base64:()=>sc,_base64url:()=>ac,_bigint:()=>kp,_boolean:()=>gp,_catch:()=>bI,_check:()=>M0,_cidrv4:()=>oc,_cidrv6:()=>ic,_coercedBigint:()=>yp,_coercedBoolean:()=>Cp,_coercedDate:()=>Rp,_coercedNumber:()=>lp,_coercedString:()=>op,_creditCard:()=>sp,_cuid:()=>Ya,_cuid2:()=>Xa,_custom:()=>Dp,_date:()=>Mp,_decode:()=>Qs,_decodeAsync:()=>ta,_default:()=>CI,_discriminatedUnion:()=>iI,_e164:()=>cc,_email:()=>Va,_emoji:()=>qa,_encode:()=>Xs,_encodeAsync:()=>ea,_endsWith:()=>Vr,_enum:()=>dI,_file:()=>Ap,_float32:()=>pp,_float64:()=>fp,_gt:()=>Ft,_gte:()=>ht,_guid:()=>Ha,_iban:()=>ap,_includes:()=>Wr,_int:()=>dp,_int32:()=>mp,_int64:()=>bp,_intersection:()=>sI,_ipv4:()=>nc,_ipv6:()=>rc,_isoDate:()=>yi,_isoDateTime:()=>ki,_isoDuration:()=>vi,_isoTime:()=>bi,_jwt:()=>uc,_ksuid:()=>tc,_lazy:()=>II,_length:()=>rr,_literal:()=>fI,_lowercase:()=>Zr,_lt:()=>Wt,_lte:()=>mt,_mac:()=>ip,_map:()=>uI,_max:()=>mt,_maxLength:()=>nr,_maxSize:()=>_n,_mime:()=>Br,_min:()=>ht,_minLength:()=>en,_minSize:()=>Vt,_multipleOf:()=>In,_nan:()=>Tp,_nanoid:()=>Ja,_nativeEnum:()=>pI,_negative:()=>dc,_never:()=>Lp,_nonnegative:()=>fc,_nonoptional:()=>kI,_nonpositive:()=>pc,_normalize:()=>Ur,_null:()=>Ip,_nullable:()=>gI,_number:()=>up,_optional:()=>hI,_overwrite:()=>$t,_parse:()=>Rr,_parseAsync:()=>Tr,_pipe:()=>vI,_positive:()=>lc,_promise:()=>_I,_properties:()=>Hr,_property:()=>mc,_readonly:()=>wI,_record:()=>cI,_refine:()=>Ep,_regex:()=>zr,_safeDecode:()=>ra,_safeDecodeAsync:()=>ia,_safeEncode:()=>na,_safeEncodeAsync:()=>oa,_safeParse:()=>$r,_safeParseAsync:()=>Ar,_set:()=>lI,_size:()=>tr,_slugify:()=>Jr,_startsWith:()=>Fr,_string:()=>rp,_stringFormat:()=>or,_stringbool:()=>Zp,_success:()=>yI,_superRefine:()=>Np,_symbol:()=>wp,_templateLiteral:()=>xI,_toLowerCase:()=>Kr,_toUpperCase:()=>qr,_transform:()=>mI,_trim:()=>Gr,_tuple:()=>aI,_uint32:()=>hp,_uint64:()=>vp,_ulid:()=>Qa,_undefined:()=>xp,_union:()=>rI,_unknown:()=>Sp,_uppercase:()=>jr,_url:()=>Ci,_uuid:()=>Ba,_uuidv4:()=>Ua,_uuidv6:()=>Ga,_uuidv7:()=>Ka,_void:()=>Pp,_xid:()=>ec,_xor:()=>oI,base64Charset:()=>va,base64urlCharset:()=>ci,canParseURL:()=>jd,clone:()=>ce,compile:()=>tp,compileFn:()=>Wa,config:()=>ye,createStandardJSONSchemaMethod:()=>Yr,createToJSONSchemaMethod:()=>Wp,decode:()=>fw,decodeAsync:()=>hw,describe:()=>Op,encode:()=>pw,encodeAsync:()=>mw,extractDefs:()=>Ln,finalize:()=>Pn,flattenError:()=>Jo,formatError:()=>Yo,getDiscriminatedOption:()=>I1,globalConfig:()=>Ne,globalRegistry:()=>Fe,handleUnrepresentable:()=>Me,initializeContext:()=>Sn,isBackEdge:()=>Na,isRecursiveSchema:()=>Ea,isValidBase64:()=>ai,isValidBase64URL:()=>wa,isValidCIDRv6:()=>ba,isValidCreditCard:()=>xa,isValidIBAN:()=>Ia,isValidIPv6:()=>si,isValidJWT:()=>_a,locales:()=>gi,memoizer:()=>hi,mergeValues:()=>Er,meta:()=>zp,parse:()=>Js,parseAsync:()=>Ys,parseURLObject:()=>d0,prettifyError:()=>Tl,process:()=>le,processSchema:()=>le,regexes:()=>vt,registry:()=>Za,safeDecode:()=>Cw,safeDecodeAsync:()=>yw,safeEncode:()=>gw,safeEncodeAsync:()=>kw,safeParse:()=>aw,safeParseAsync:()=>cw,standardProps:()=>ga,stripTabAndNewline:()=>ii,toDotPath:()=>H5,toJSONSchema:()=>kc,toZod:()=>Wo,treeifyError:()=>Rl,urlHostnameOk:()=>ka,urlProtocolOk:()=>ya,util:()=>O,validate:()=>Xo,validateAsync:()=>Qo,validateURL:()=>Ca,version:()=>Dd,withParser:()=>ja});var O={};Lt(O,{BIGINT_FORMAT_RANGES:()=>Uo,CONSTANT_CATCH:()=>Ks,Class:()=>ml,NUMBER_FORMAT_RANGES:()=>Bo,aborted:()=>Qe,allowsEval:()=>Cl,assert:()=>Lv,assertEqual:()=>xv,assertIs:()=>_v,assertNever:()=>Sv,assertNotEqual:()=>Iv,assignProp:()=>We,attachSchema:()=>Gs,base64ToUint8Array:()=>z5,base64urlToUint8Array:()=>Uv,cached:()=>Lr,captureStackTrace:()=>Hs,cleanEnum:()=>Bv,cleanRegex:()=>Xt,clone:()=>ce,cloneDef:()=>Rv,codePointLength:()=>Gn,constantCatch:()=>xl,createTransparentProxy:()=>Nv,defineLazy:()=>hl,defineLazyInternal:()=>Y,derived:()=>Jv,esc:()=>Xe,escapeRegex:()=>bt,explicitlyAborted:()=>bl,extend:()=>Zv,finalizeIssue:()=>ct,floatSafeRemainder:()=>Fo,getElementAtPath:()=>Tv,getEnumValues:()=>_r,getLengthableOrigin:()=>Ko,getParsedType:()=>Ev,getSizableOrigin:()=>Go,hexToUint8Array:()=>Kv,hide:()=>qo,installLazyProp:()=>ew,isObject:()=>Un,isPlainObject:()=>yt,issue:()=>Mr,joinValues:()=>Fs,jsonStringifyReplacer:()=>Sr,members:()=>wl,merge:()=>Wv,mergeDefs:()=>Rt,normalizeParams:()=>R,nullish:()=>Vs,numKeys:()=>Dv,objectClone:()=>Pv,omit:()=>zv,optionalKeys:()=>yl,own:()=>wn,parsedType:()=>vl,partial:()=>Fv,pick:()=>Ov,prefixIssues:()=>at,primitiveTypes:()=>kl,promiseAllObject:()=>$v,propertyKeyTypes:()=>Ho,randomString:()=>Av,rawShape:()=>Pr,required:()=>Vv,safeExtend:()=>jv,shallowClone:()=>Vo,slugify:()=>gl,stringifyPrimitive:()=>Bs,toZod:()=>Wo,uint8ArrayToBase64:()=>Z5,uint8ArrayToBase64url:()=>Gv,uint8ArrayToHex:()=>qv,unwrapMessage:()=>Ir});function xv(e){return e}function Iv(e){return e}function Wo(){return e=>e}function _v(e){}function Sv(e){throw new Error("Unexpected value in exhaustive check")}function Lv(e){}function _r(e){let t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function Fs(e,t="|"){return e.map(n=>Bs(n)).join(t)}function Sr(e,t){return typeof t=="bigint"?t.toString():t}var fl=class{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};function Lr(e){return new fl(e)}function Vs(e){return e==null}function Xt(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Fo(e,t){let n=e/t,r=Math.round(n),o=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}var D5=Symbol("evaluating");function hl(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==D5)return r===void 0&&(r=D5,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Pv(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function We(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Pr(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function Yt(e){return Pr(e._zod.def)??e._zod.def.shape}function E5(e,t,n){Object.defineProperty(e,t,{get(){let r=n();return We(this,t,r),r},enumerable:!0,configurable:!0})}function N5(e,t,n){t in e?We(e,t,n):e[t]=n}function Bn(e,t,n,r){let o=Yt(t);for(let i of n){let s=Object.getOwnPropertyDescriptor(o,i);s.enumerable&&(s.get?E5(e,i,()=>{let a=t._zod.def.shape[i];return r?r(a,i):a}):N5(e,i,r?r(s.value,i):s.value))}}function Mv(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?E5(e,n,()=>t[n]):N5(e,n,r.value))}}function Rt(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Rv(e){return Rt(e._zod.def)}function Tv(e,t){return t?t.reduce((n,r)=>n?.[r],e):e}function $v(e){let t=Object.keys(e),n=t.map(r=>e[r]);return Promise.all(n).then(r=>{let o={};for(let i=0;i<t.length;i++)o[t[i]]=r[i];return o})}function Av(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function Xe(e){return JSON.stringify(e)}function gl(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Hs="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Un(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Cl=Lr(()=>{if(Ne.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function yt(e){if(Un(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Un(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Vo(e){return yt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Dv(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var Ev=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Ho=new Set(["string","number","symbol"]),kl=new Set(["string","number","bigint","boolean","symbol","undefined"]);function bt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ce(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function R(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Nv(e){let t;return new Proxy({},{get(n,r,o){return t??(t=e()),Reflect.get(t,r,o)},set(n,r,o,i){return t??(t=e()),Reflect.set(t,r,o,i)},has(n,r){return t??(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t??(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,o){return t??(t=e()),Reflect.defineProperty(t,r,o)}})}function Bs(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function yl(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Bo={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Uo={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Ov(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i={};return Bn(i,e,Us(e,t)),ce(e,Rt(n,{shape:i,checks:[]}))}function Us(e,t){let n=Yt(e),r=[];for(let o of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,o)?.enumerable)throw new Error(`Unrecognized key: "${String(o)}"`);t[o]&&r.push(o)}return r}function zv(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=new Set(Us(e,t)),s={};return Bn(s,e,Reflect.ownKeys(Yt(e)).filter(a=>!i.has(a))),ce(e,Rt(n,{shape:s,checks:[]}))}function Zv(e,t){if(!yt(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=Yt(e);for(let i of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ce(e,Rt(e._zod.def,{shape:O5(e,t)}))}function O5(e,t){let n={};return Bn(n,e,Reflect.ownKeys(Yt(e))),Mv(n,t),n}function jv(e,t){if(!yt(t))throw new Error("Invalid input to safeExtend: expected a plain object");return ce(e,Rt(e._zod.def,{shape:O5(e,t)}))}function Wv(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};Bn(n,e,Reflect.ownKeys(Yt(e))),Bn(n,t,Reflect.ownKeys(Yt(t)));let r=Rt(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ce(e,r)}function Fv(e,t,n,r="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(Us(t,n)):void 0,c={};return Bn(c,t,Reflect.ownKeys(Yt(t)),e&&((u,l)=>a&&!a.has(l)?u:new e({type:"optional",innerType:u}))),ce(t,Rt(t._zod.def,{shape:c,checks:[]}))}function Vv(e,t,n){let r=n?new Set(Us(t,n)):void 0,o={};return Bn(o,t,Reflect.ownKeys(Yt(t)),(i,s)=>r&&!r.has(s)?i:new e({type:"nonoptional",innerType:i})),ce(t,Rt(t._zod.def,{shape:o}))}function Qe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function bl(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function at(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Ir(e){return typeof e=="string"?e:e?.message}function Gs(e,t,n){var r;for(let o=t;o<e.length;o++)(r=e[o]).schema??(r.schema=n)}function ct(e,t,n){var r;let o=e.inst?._zod?.traits;o?.has("$ZodType")&&(o.has("$ZodCheck")?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,s=e.message?e.message:Ir(e.inst?._zod.def?.error?.(e))??Ir(i?.(e))??Ir(t?.error?.(e))??Ir(n.customError?.(e))??Ir(n.localeError?.(e))??"Invalid input",a={};for(let c of Object.keys(e))c==="inst"||c==="schema"||c==="continue"||c==="input"||c==="__proto__"||(a[c]=e[c]);return a.path??(a.path=[]),a.message=s,t?.reportInput&&(a.input=e.input),a}function Go(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var Hv=/[\uD800-\uDBFF]/;function Gn(e){let t=e.length;if(!Hv.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function Ko(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function vl(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Mr(...e){let[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function Bv(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function z5(e){let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function Z5(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Uv(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return z5(t+n)}function Gv(e){return Z5(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Kv(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r/2]=Number.parseInt(t.slice(r,r+2),16);return n}function qv(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var ml=class{constructor(...t){}};function wl(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Yv(e,n,r.value)}}function wn(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function qo(e,t,n){return wn(e,t,n,!1)}function Jv(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return wn(this,n,r(this))},set(o){wn(this,n,o)}})}return t}function Yv(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:wn(this,t,n.bind(this))},set(r){wn(this,t,r)}})}function Xv(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var pl,vn=!1,Qv={configurable:!0,get(){vn=!0}};function Y(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&pl!==e._zod){pl=void 0;return}pl=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Qv);let o=vn;vn=!1;try{let i=n(this);return vn?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i}),vn=vn||o,i}catch(i){throw delete this[t],vn=vn||o,i}},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o})}})}function ew(e,t,n,r){let o=Xv(e,t);o&&Object.defineProperty(o,t,{configurable:!0,get(){let i={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,i),i.value=n(this),Object.defineProperty(this,t,i),i.value},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:i})}})}var Ks="~constantCatch";function xl(e){let t=()=>e;return t[Ks]=!0,t}var j5,_l=Object.freeze({status:"aborted"}),Il={value:void 0,enumerable:!1},W5="captureStackTrace"in Error?Error:null;function tw(e){let t=W5;if(t){let n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return W5=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function C(e,t,n,r){let o={};function i(m){this.def=m,this.constr=d,this.traits=new Set}i.prototype=o;let s=n,a=s&&new WeakSet;function c(m,f){if(m._zod){if(m._zod.traits.has(e))return}else{Il.value=new i(f);try{Object.defineProperty(m,"_zod",Il)}finally{Il.value=void 0}}if(m._zod.traits.add(e),t(m,f),a){let g=Object.getPrototypeOf(m),k=m._zod.constr.prototype,v=g;for(;v&&v!==k;)v=Object.getPrototypeOf(v);let y=v??g;a.has(y)||(a.add(y),wl(y,s))}let h=d.prototype;for(let g in h)Object.prototype.hasOwnProperty.call(h,g)&&(g in m||(m[g]=h[g].bind(m)))}let u=r?.Parent??Object;class l extends u{}Object.defineProperty(l,"name",{value:e});function d(m){let f=r?.Parent?tw(l):this;c(f,m);let h=f._zod.deferred;if(h){for(let k of h)k();f._zod.deferred=void 0}let g=globalThis.__zod_globalConfig?.postProcessor;return g&&g(f),f}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:m=>r?.Parent&&m instanceof r.Parent?!0:m?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var Sl=Symbol("zod_brand"),ut=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},xn=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(j5=globalThis).__zod_globalConfig??(j5.__zod_globalConfig={});var Ne=globalThis.__zod_globalConfig;function ye(e){return e&&Object.assign(Ne,e),Ne}function nw(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Sr,2)),e.message}function rw(e){this._zod.message=e}var ow={get:nw,set:rw,enumerable:!0,configurable:!0},Pl={value:void 0,enumerable:!1},F5=new WeakSet([Object.prototype,Error.prototype]),V5=(e,t)=>{e.name="$ZodError",Pl.value=t,Object.defineProperty(e,"issues",Pl),Pl.value=void 0,Object.defineProperty(e,"message",ow);let n=Object.getPrototypeOf(e);F5.has(n)||(F5.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},Ml=C("$ZodError",V5),lt=C("$ZodError",V5,void 0,{Parent:Error});function iw(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Jo(e,t=n=>n.message){let n={},r=[];for(let o of e.issues)o.path.length>0?iw(n,o.path[0],()=>[]).push(t(o)):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Yo(e,t=n=>n.message){let n={_errors:[]},r=(o,i=[])=>{for(let s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>r({issues:a},[...i,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...i,...s.path]);else{let a=[...i,...s.path];if(a.length===0)n._errors.push(t(s));else{let c=n,u=0;for(;u<a.length;){let l=a[u],d=u===a.length-1;if(l==="_errors"){d&&c._errors.push(t(s)),u++;continue}Object.prototype.hasOwnProperty.call(c,l)||Object.defineProperty(c,l,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let m=c[l];d&&m._errors.push(t(s)),c=m,u++}}}};return r(e),n}function Rl(e,t=n=>n.message){let n={errors:[]},r=(o,i=[])=>{var s;for(let a of o.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>r({issues:c},[...i,...a.path]));else if(a.code==="invalid_key")r({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")r({issues:a.issues},[...i,...a.path]);else{let c=[...i,...a.path];if(c.length===0){n.errors.push(t(a));continue}let u=n,l=0;for(;l<c.length;){let d=c[l],m=l===c.length-1;typeof d=="string"?(u.properties??(u.properties={}),Object.prototype.hasOwnProperty.call(u.properties,d)||Object.defineProperty(u.properties,d,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),u=u.properties[d]):(u.items??(u.items=[]),(s=u.items)[d]??(s[d]={errors:[]}),u=u.items[d]),m&&u.errors.push(t(a)),l++}}};return r(e),n}function H5(e){let t=[],n=e.map(r=>typeof r=="object"?r.key:r);for(let r of n)typeof r=="number"?t.push(`[${r}]`):typeof r=="symbol"?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function Tl(e){let t=[],n=[...e.issues].sort((r,o)=>(r.path??[]).length-(o.path??[]).length);for(let r of n)t.push(`\u2716 ${r.message}`),r.path?.length&&t.push(` \u2192 at ${H5(r.path)}`);return t.join(`
6
+ `)}function qs(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Rr=e=>{let t=(n,r,o,i)=>{let s=o?{...o,async:!1}:{async:!1},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise)throw new ut;if(a.issues.length){let c=new(i?.Err??e)(a.issues.map(u=>ct(u,s,ye())));throw Hs(c,i?.callee??t),c}return a.value};return t},Js=Rr(lt),Tr=e=>{let t=async(n,r,o,i)=>{let s=o?{...o,async:!0}:{async:!0},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new(i?.Err??e)(a.issues.map(u=>ct(u,s,ye())));throw Hs(c,i?.callee??t),c}return a.value};return t},Ys=Tr(lt),$r=e=>(t,n,r)=>{let o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new ut;return i.issues.length?B5(e,i.issues,o):{success:!0,data:i.value}},aw=$r(lt);function B5(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(o=>ct(o,n,ye()))),t=void 0,n=void 0),r},set error(o){r=o,t=void 0,n=void 0}}}var Ar=e=>async(t,n,r)=>{let o=r?{...r,async:!0}:{async:!0},i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?B5(e,i.issues,o):{success:!0,data:i.value}},cw=Ar(lt),uw=Symbol.for("zod.compile.invalid"),lw=Symbol.for("zod.compile.fallback"),Xo=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==uw)return!0;if(r.definite===!0&&n===void 0)return!1}return dw(e,t,n)});function dw(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},o=e._zod.bag.fallbackRun,i;if(o?(r[lw]=!0,i=o({value:t,issues:[]},r)):i=e._zod.run({value:t,issues:[]},r),i instanceof Promise)throw new ut;return i.issues.length===0}var Qo=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},o=e._zod.run({value:t,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length===0},Xs=e=>{let t=Rr(e),n=(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return t(r,o,a,qs(n,s))};return n},pw=Xs(lt),Qs=e=>{let t=Rr(e),n=(r,o,i,s)=>t(r,o,i,qs(n,s));return n},fw=Qs(lt),ea=e=>{let t=Tr(e),n=async(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return await t(r,o,a,qs(n,s))};return n},mw=ea(lt),ta=e=>{let t=Tr(e),n=async(r,o,i,s)=>await t(r,o,i,qs(n,s));return n},hw=ta(lt),na=e=>(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return $r(e)(t,n,o)},gw=na(lt),ra=e=>(t,n,r)=>$r(e)(t,n,r),Cw=ra(lt),oa=e=>async(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return Ar(e)(t,n,o)},kw=oa(lt),ia=e=>async(t,n,r)=>Ar(e)(t,n,r),yw=ia(lt);var vt={};Lt(vt,{anyString:()=>od,base64:()=>ql,base64url:()=>Jl,bigint:()=>sd,boolean:()=>ad,browserEmail:()=>Lw,cidrv4:()=>Gl,cidrv6:()=>Kl,creditCard:()=>sa,cuid:()=>Al,cuid2:()=>Dl,currencyCode:()=>ed,date:()=>td,datetime:()=>rd,domain:()=>Xl,duration:()=>jl,e164:()=>Ql,email:()=>Fl,emoji:()=>Vl,extendedDuration:()=>bw,guid:()=>Wl,hex:()=>pd,hostname:()=>Yl,html5Email:()=>Iw,httpProtocol:()=>ei,iban:()=>aa,idnEmail:()=>Sw,integer:()=>ti,ipv4:()=>Hl,ipv6:()=>Bl,ksuid:()=>Ol,lowercase:()=>ld,mac:()=>Ul,md5_base64:()=>Tw,md5_base64url:()=>$w,md5_hex:()=>Rw,nanoid:()=>zl,nanoidOfLength:()=>Zl,null:()=>cd,number:()=>Qt,rfc5322Email:()=>_w,sha1_base64:()=>Dw,sha1_base64url:()=>Ew,sha1_hex:()=>Aw,sha256_base64:()=>Ow,sha256_base64url:()=>zw,sha256_hex:()=>Nw,sha384_base64:()=>jw,sha384_base64url:()=>Ww,sha384_hex:()=>Zw,sha512_base64:()=>Vw,sha512_base64url:()=>Hw,sha512_hex:()=>Fw,string:()=>id,time:()=>nd,ulid:()=>El,undefined:()=>ud,unicodeEmail:()=>U5,uppercase:()=>dd,uuid:()=>Kn,uuid4:()=>vw,uuid6:()=>ww,uuid7:()=>xw,xid:()=>Nl});var Al=/^[cC][0-9a-z]{6,}$/,Dl=/^[0-9a-z]+$/,El=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Nl=/^[0-9a-vA-V]{20}$/,Ol=/^[A-Za-z0-9]{27}$/,zl=/^[a-zA-Z0-9_-]{21}$/;function Zl(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var jl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,bw=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Wl=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Kn=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,vw=Kn(4),ww=Kn(6),xw=Kn(7),Fl=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Iw=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,_w=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,U5=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Sw=U5,Lw=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Pw="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function Vl(){return new RegExp(Pw,"u")}var Hl=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Bl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ul=e=>{let t=bt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Gl=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Kl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ql=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Jl=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Yl=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Xl=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,ei=/^https?$/,Ql=/^\+[1-9]\d{6,14}$/,sa=/^\d(?:[ -]?\d){11,18}$/,ed=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,aa=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,G5="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function Mw(e){return new RegExp(`^${e}$`)}var td=Mw(G5);function $l(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function nd(e){return new RegExp(`^${$l(e)}$`)}function rd(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${$l({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${$l({precision:e.precision})}`:n;return new RegExp(`^${G5}T(?:${r})$`)}var od=/^[\s\S]{0,}$/,id=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},sd=/^-?\d+n?$/,ti=/^-?\d+$/,Qt=/^-?\d+(?:\.\d+)?$/,ad=/^(?:true|false)$/i,cd=/^null$/i;var ud=/^undefined$/i;var ld=/^[^A-Z]*$/,dd=/^[^a-z]*$/,pd=/^[0-9a-fA-F]*$/;function ni(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function ri(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Rw=/^[0-9a-fA-F]{32}$/,Tw=ni(22,"=="),$w=ri(22),Aw=/^[0-9a-fA-F]{40}$/,Dw=ni(27,"="),Ew=ri(27),Nw=/^[0-9a-fA-F]{64}$/,Ow=ni(43,"="),zw=ri(43),Zw=/^[0-9a-fA-F]{96}$/,jw=ni(64,""),Ww=ri(64),Fw=/^[0-9a-fA-F]{128}$/,Vw=ni(86,"=="),Hw=ri(86);var pe=C("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),fd=e=>{let t=e.value;return!Vs(t)&&t.size!==void 0},md=e=>{let t=e.value;return!Vs(t)&&t.length!==void 0},ca={number:"number",bigint:"bigint",object:"date"},la=C("$ZodCheckLessThan",(e,t)=>{pe.init(e,t);let n=ca[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:ca[typeof r.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),da=C("$ZodCheckGreaterThan",(e,t)=>{pe.init(e,t);let n=ca[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:ca[typeof r.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),hd=C("$ZodCheckMultipleOf",(e,t)=>{pe.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):Fo(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),gd=C("$ZodCheckNumberFormat",(e,t)=>{pe.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[o,i]=Bo[t.format];e._zod.check=s=>{let a=s.value;if(n){if(!Number.isInteger(a)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}a<o&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),a>i&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Cd=C("$ZodCheckBigIntFormat",(e,t)=>{pe.init(e,t);let[n,r]=Uo[t.format];e._zod.check=o=>{let i=o.value;i<n&&o.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),i>r&&o.issues.push({origin:"bigint",input:i,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),kd=C("$ZodCheckMaxSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=fd),e._zod.check=r=>{let o=r.value;o.size<=t.maximum||r.issues.push({origin:Go(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),yd=C("$ZodCheckMinSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=fd),e._zod.check=r=>{let o=r.value;o.size>=t.minimum||r.issues.push({origin:Go(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),bd=C("$ZodCheckSizeEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=fd),e._zod.check=r=>{let o=r.value,i=o.size;if(i===t.size)return;let s=i>t.size;r.issues.push({origin:Go(o),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),vd=C("$ZodCheckMaxLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=md),e._zod.check=r=>{let o=r.value,i=o.length;if((typeof o=="string"&&i>t.maximum?Gn(o):i)<=t.maximum)return;let a=Ko(o);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),wd=C("$ZodCheckMinLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=md),e._zod.check=r=>{let o=r.value,i=o.length;if((typeof o=="string"&&i>=t.minimum&&i<t.minimum*2?Gn(o):i)>=t.minimum)return;let a=Ko(o);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),xd=C("$ZodCheckLengthEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=md),e._zod.check=r=>{let o=r.value,i=o.length,s=typeof o=="string"&&i>=t.length&&i<=t.length*2?Gn(o):i;if(s===t.length)return;let a=Ko(o),c=s>t.length;r.issues.push({origin:a,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Dr=C("$ZodCheckStringFormat",(e,t)=>{var n,r;pe.init(e,t),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Id=C("$ZodCheckRegex",(e,t)=>{Dr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),_d=C("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ld),Dr.init(e,t)}),Sd=C("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=dd),Dr.init(e,t)}),Ld=C("$ZodCheckIncludes",(e,t)=>{pe.init(e,t);let n=bt(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Pd=C("$ZodCheckStartsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`^${bt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Md=C("$ZodCheckEndsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`.*${bt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function ua(e,t,n){e.issues.length&&t.issues.push(...at(n,e.issues))}var Rd=C("$ZodCheckProperty",(e,t)=>{pe.init(e,t),e._zod.check=n=>{let r=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(o=>ua(o,n,t.property));ua(r,n,t.property)}}),Td=C("$ZodCheckProperties",(e,t)=>{pe.init(e,t),qo(e,Symbol.iterator,function*(){yield e});let n;e._zod.check=r=>{if(r.value==null){r.issues.push({expected:"object",code:"invalid_type",input:r.value,inst:e});return}n??(n=Reflect.ownKeys(t.shape).map(s=>[s,t.shape[s]]));let o=r.value,i;for(let[s,a]of n){let c=a._zod.run({value:o[s],issues:[]},{});c instanceof Promise?(i??(i=[]),i.push(c.then(u=>ua(u,r,s)))):ua(c,r,s)}if(i)return Promise.all(i).then(()=>{})}}),$d=C("$ZodCheckMimeType",(e,t)=>{pe.init(e,t);let n=new Set(t.mime);e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),Ad=C("$ZodCheckOverwrite",(e,t)=>{pe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var qn=class{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let r=t.split(`
7
7
  `).filter(s=>s),o=Math.min(...r.map(s=>s.length-s.trimStart().length)),i=r.map(s=>s.slice(o)).map(s=>" ".repeat(this.indent*2)+s);for(let s of i)this.content.push(s)}compile(){let t=Function,n=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
8
8
  ${n.join(`
9
9
  `)}
10
- };`)(...Object.values(this.closed))}};var Ad={major:4,minor:6,patch:5};var K=C("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ad;let r=e._zod.def.checks,o=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r?.length?[...r]:[];for(let i of o)for(let s of i._zod.onattach)s(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(a,c,u)=>{if(a.memo)return a;let l=Qe(a),d;for(let m of c){if(m._zod.def.when){if(yl(a)||!m._zod.def.when(a))continue}else if(l)continue;let f=a.issues.length,h=m._zod.check(a);if(h instanceof Promise&&u?.async===!1)throw new ut;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,a.issues.length!==f&&(Us(a.issues,f,e),l||(l=Qe(a,f)))});else{if(a.issues.length===f)continue;Us(a.issues,f,e),l||(l=Qe(a,f))}}return d?d.then(()=>a):a},s=(a,c,u)=>{if(Qe(a))return a.aborted=!0,a;let l=i(c,o,u);if(l instanceof Promise){if(u.async===!1)throw new ut;return l.then(d=>e._zod.parse(d,u))}return e._zod.parse(l,u)};e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return l instanceof Promise?l.then(d=>s(d,a,c)):s(l,a,c)}let u=e._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new ut;return u.then(l=>i(l,o,c))}return i(u,o,c)}}},{get"~standard"(){return qo(this,"~standard",ha(this))},set"~standard"(e){wn(this,"~standard",e)}}),u0=(e,t)=>e.issues.length?{issues:e.issues.map(n=>ct(n,t,ye()))}:{value:e.value};async function Hw(e,t){let n={async:!0};return u0(await e._zod.run({value:t,issues:[]},n),n)}function ha(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return u0(r,n)}catch{}return Hw(e,t)},vendor:"zod",version:1}}var Jn=C("$ZodString",(e,t)=>{K.init(e,t),e._zod.pattern=t.pattern??rd,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),ue=C("$ZodStringFormat",(e,t)=>{Dr.init(e,t),Jn.init(e,t)}),Ed=C("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=jl),ue.init(e,t)}),Nd=C("$ZodUUID",(e,t)=>{if(t.version){let r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Kn(r))}else t.pattern??(t.pattern=Kn());ue.init(e,t)}),Od=C("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Wl),ue.init(e,t)}),zd=1,oi=2;function Zd(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function ga(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?Zd(e)||oi:l0(e,t)}function l0(e,t){if(!t.normalize&&t.protocol?.source===ei.source&&!/^https?:\/\//i.test(e))return zd;try{if(typeof URL<"u"){let n=URL;if(typeof n.parse=="function")return n.parse(e)??oi}return new URL(e)}catch{return oi}}var Bw=/[\t\n\r]/g;function ii(e){return e.replace(Bw,"")}function Ca(e,t){return t.lastIndex=0,t.test(e.hostname)}function ka(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var jd=C("$ZodURL",(e,t)=>{ue.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),o=ga(r,t);if(o===zd){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(o===oi){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}if(o===!0){n.value=ii(r);return}t.hostname&&!Ca(o,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!ka(o,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?o.href:ii(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Wd=C("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Fl()),ue.init(e,t)}),Fd=C("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?Ol:zl(t.length)),ue.init(e,t)}),Vd=C("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=$l),ue.init(e,t)}),Hd=C("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Al),ue.init(e,t)}),Bd=C("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Dl),ue.init(e,t)}),Ud=C("$ZodXID",(e,t)=>{t.pattern??(t.pattern=El),ue.init(e,t)}),Gd=C("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Nl),ue.init(e,t)}),Kd=C("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=nd(t)),ue.init(e,t)}),qd=C("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=ed),ue.init(e,t)}),Jd=C("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=td(t)),ue.init(e,t)}),Yd=C("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Zl),ue.init(e,t)}),Xd=C("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Vl),ue.init(e,t)}),Uw=/^[0-9a-fA-F:.]+$/;function si(e){return Uw.test(e)?Zd(`http://[${e}]`):!1}var Qd=C("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Hl),ue.init(e,t),e._zod.check=n=>{si(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),e1=C("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Bl(t.delimiter)),ue.init(e,t)}),t1=C("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ul),ue.init(e,t)});function ya(e){let t=e.split("/");if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let o=Number(r);return`${o}`!==r||o<0||o>128?!1:si(n)}var n1=C("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Gl),ue.init(e,t),e._zod.check=n=>{ya(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function ai(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var ba=/^[0-9a-zA-Z+/]*={0,2}$/,r1=C("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=ba),ue.init(e,t),e._zod.check=n=>{ai(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),ci=/^[A-Za-z0-9_-]*$/;function va(e){if(!ci.test(e))return!1;let t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ai(n)}var o1=C("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ci),ue.init(e,t),e._zod.check=n=>{va(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),i1=C("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Xl),ue.init(e,t)}),Gw=/[- ]/g;function Kw(e){let t=e.length,n=1,r=0;for(;t;){let o=e.charCodeAt(--t)-48;n^=1,r+=n?[0,2,4,6,8,1,3,5,7,9][o]:o}return r%10===0}function wa(e){return ia.test(e)?Kw(e.replace(Gw,"")):!1}var s1=C("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=ia),ue.init(e,t),e._zod.check=n=>{wa(n.value)||n.issues.push({code:"invalid_format",format:"credit_card",input:n.value,inst:e,continue:!t.abort})}});function qw(e){let t=0,n=e.length;for(let r=4;r<n;r++){let o=e.charCodeAt(r);t=(o>=65?t*100+(o-55):t*10+(o-48))%97}for(let r=0;r<4;r++){let o=e.charCodeAt(r);t=(o>=65?t*100+(o-55):t*10+(o-48))%97}return t===1}function xa(e){return sa.test(e)?qw(e):!1}var a1=C("$ZodIBAN",(e,t)=>{t.pattern??(t.pattern=sa),ue.init(e,t),e._zod.check=n=>{xa(n.value)||n.issues.push({code:"invalid_format",format:"iban",input:n.value,inst:e,continue:!t.abort})}});function Ia(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}var c1=C("$ZodJWT",(e,t)=>{ue.init(e,t),e._zod.check=n=>{Ia(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),u1=C("$ZodCustomStringFormat",(e,t)=>{ue.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),_a=C("$ZodNumber",(e,t)=>{K.init(e,t),e._zod.pattern=Qt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:String(o):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),n}}),l1=C("$ZodNumberFormat",(e,t)=>{hd.init(e,t),_a.init(e,t)}),ui=C("$ZodBoolean",(e,t)=>{K.init(e,t),e._zod.pattern=sd,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),Sa=C("$ZodBigInt",(e,t)=>{K.init(e,t),e._zod.pattern=id,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),d1=C("$ZodBigIntFormat",(e,t)=>{gd.init(e,t),Sa.init(e,t)}),p1=C("$ZodSymbol",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return typeof o=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:o,inst:e}),n}}),f1=C("$ZodUndefined",(e,t)=>{K.init(e,t),e._zod.pattern=cd,e._zod.values=new Set([void 0]),e._zod.parse=(n,r)=>{let o=n.value;return typeof o>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),n}}),m1=C("$ZodNull",(e,t)=>{K.init(e,t),e._zod.pattern=ad,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{let o=n.value;return o===null||n.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),n}}),h1=C("$ZodAny",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),g1=C("$ZodUnknown",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),C1=C("$ZodNever",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),k1=C("$ZodVoid",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return typeof o>"u"||n.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),n}}),y1=C("$ZodDate",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let o=n.value,i=o instanceof Date;return i&&!Number.isNaN(o.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:o,...i?{received:"Invalid Date"}:{},inst:e}),n}});function K5(e,t,n){e.issues.length&&t.issues.push(...at(n,e.issues)),t.value[n]=e.value}var b1=C("$ZodArray",(e,t)=>{K.init(e,t);let n=Ne.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=n?n.alloc(e,r,Array(i.length),o):Array(i.length);let s=[],a=o?.abortEarly;for(let c=0;c<i.length;c++){let u=i[c],l=t.element._zod.run({value:u,issues:[]},o);if(l instanceof Promise)s.push(l.then(d=>K5(d,r,c)));else if(K5(l,r,c),a&&l.issues.length!==0&&Qe(l))break}return s.length?Promise.all(s).then(()=>r):r}});function ma(e,t,n,r,o,i){let s=n in r,a=i==="optional";if(!(!s&&a&&o==="optional")){if(e.issues.length){if(o!==void 0&&a&&!s)return;t.issues.push(...at(n,e.issues))}if(!s&&o===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?(s||o==="defaulted"&&!a)&&(t.value[n]=void 0):t.value[n]=e.value}}var Jw=[];function d0(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Jw,o=r.length?[...t,...r]:t;for(let s of o)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);let i=kl(e.shape);return{...e,allKeys:o,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function p0(e,t,n,r,o,i,s){let a=[],c=o.keySet,u=o.catchall._zod,l=u.def.type,d=u.optin,m=u.optout,f=0;for(let h in t){if(s&&n.issues.length!==f){if(Qe(n,f))break;f=n.issues.length}if(c.has(h))continue;if(h==="__proto__"){l==="never"&&a.push(h);continue}if(l==="never"){a.push(h);continue}let g=u.run({value:t[h],issues:[]},r);g instanceof Promise?e.push(g.then(k=>ma(k,n,h,t,d,m))):ma(g,n,h,t,d,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var f0=C("$ZodObject",(e,t)=>{K.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape"),r=n?.get?n.get.raw:t.shape??{};if(r){let u=()=>{let l={...r};return Object.defineProperty(t,"shape",{value:l}),u.raw=l,l};u.raw=r,Object.defineProperty(t,"shape",{get:u})}let o=Lr(()=>d0(t));Y(e,"propValues",u=>{let l=u.def.shape,d={};for(let m in l){let f=l[m]._zod;if(f.values){Object.prototype.hasOwnProperty.call(d,m)||We(d,m,new Set);for(let h of f.values)d[m].add(h);f.optin!==void 0&&d[m].add(void 0)}}return d});let i=Un,s=t.catchall,a,c=Ne.memoizer;c?.attach(e),e._zod.parse=(u,l)=>{a??(a=o.value);let d=u.value;if(!i(d))return u.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),u;u.value=c?c.alloc(e,u,{},l):{};let m=[],f=a.shape,h=l?.abortEarly,g=u.issues.length;for(let k of a.allKeys){if(h&&u.issues.length!==g){if(Qe(u,g))break;g=u.issues.length}if(k==="__proto__")continue;let v=f[k],y=v._zod.optin,w=v._zod.optout,T=v._zod.run({value:d[k],issues:[]},l);T instanceof Promise?m.push(T.then(M=>ma(M,u,k,d,y,w))):ma(T,u,k,d,y,w)}return s?p0(m,d,u,l,o.value,e,h===!0):m.length?Promise.all(m).then(()=>u):u}}),v1=C("$ZodObjectJIT",(e,t)=>{f0.init(e,t);let n=e._zod.parse,r=Lr(()=>d0(t)),o=Ne.memoizer,i=f=>{let h=r.value,g=h.symbolKeys,k=new qn(["payload","ctx"],{shape:f,inst:e,memo:o,syms:g}),v=M=>`shape[${M}]._zod.run({ value: input[${M}], issues: [] }, ctx)`,y=(M,x)=>`
10
+ };`)(...Object.values(this.closed))}};var Dd={major:4,minor:6,patch:5};var K=C("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Dd;let r=e._zod.def.checks,o=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r?.length?[...r]:[];for(let i of o)for(let s of i._zod.onattach)s(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(a,c,u)=>{if(a.memo)return a;let l=Qe(a),d;for(let m of c){if(m._zod.def.when){if(bl(a)||!m._zod.def.when(a))continue}else if(l)continue;let f=a.issues.length,h=m._zod.check(a);if(h instanceof Promise&&u?.async===!1)throw new ut;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,a.issues.length!==f&&(Gs(a.issues,f,e),l||(l=Qe(a,f)))});else{if(a.issues.length===f)continue;Gs(a.issues,f,e),l||(l=Qe(a,f))}}return d?d.then(()=>a):a},s=(a,c,u)=>{if(Qe(a))return a.aborted=!0,a;let l=i(c,o,u);if(l instanceof Promise){if(u.async===!1)throw new ut;return l.then(d=>e._zod.parse(d,u))}return e._zod.parse(l,u)};e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return l instanceof Promise?l.then(d=>s(d,a,c)):s(l,a,c)}let u=e._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new ut;return u.then(l=>i(l,o,c))}return i(u,o,c)}}},{get"~standard"(){return qo(this,"~standard",ga(this))},set"~standard"(e){wn(this,"~standard",e)}}),l0=(e,t)=>e.issues.length?{issues:e.issues.map(n=>ct(n,t,ye()))}:{value:e.value};async function Bw(e,t){let n={async:!0};return l0(await e._zod.run({value:t,issues:[]},n),n)}function ga(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return l0(r,n)}catch{}return Bw(e,t)},vendor:"zod",version:1}}var Jn=C("$ZodString",(e,t)=>{K.init(e,t),e._zod.pattern=t.pattern??od,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),ue=C("$ZodStringFormat",(e,t)=>{Dr.init(e,t),Jn.init(e,t)}),Nd=C("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Wl),ue.init(e,t)}),Od=C("$ZodUUID",(e,t)=>{if(t.version){let r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Kn(r))}else t.pattern??(t.pattern=Kn());ue.init(e,t)}),zd=C("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Fl),ue.init(e,t)}),Zd=1,oi=2;function jd(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Ca(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?jd(e)||oi:d0(e,t)}function d0(e,t){if(!t.normalize&&t.protocol?.source===ei.source&&!/^https?:\/\//i.test(e))return Zd;try{if(typeof URL<"u"){let n=URL;if(typeof n.parse=="function")return n.parse(e)??oi}return new URL(e)}catch{return oi}}var Uw=/[\t\n\r]/g;function ii(e){return e.replace(Uw,"")}function ka(e,t){return t.lastIndex=0,t.test(e.hostname)}function ya(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var Wd=C("$ZodURL",(e,t)=>{ue.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),o=Ca(r,t);if(o===Zd){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(o===oi){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}if(o===!0){n.value=ii(r);return}t.hostname&&!ka(o,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!ya(o,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?o.href:ii(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Fd=C("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Vl()),ue.init(e,t)}),Vd=C("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?zl:Zl(t.length)),ue.init(e,t)}),Hd=C("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Al),ue.init(e,t)}),Bd=C("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Dl),ue.init(e,t)}),Ud=C("$ZodULID",(e,t)=>{t.pattern??(t.pattern=El),ue.init(e,t)}),Gd=C("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Nl),ue.init(e,t)}),Kd=C("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Ol),ue.init(e,t)}),qd=C("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=rd(t)),ue.init(e,t)}),Jd=C("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=td),ue.init(e,t)}),Yd=C("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=nd(t)),ue.init(e,t)}),Xd=C("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=jl),ue.init(e,t)}),Qd=C("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Hl),ue.init(e,t)}),Gw=/^[0-9a-fA-F:.]+$/;function si(e){return Gw.test(e)?jd(`http://[${e}]`):!1}var e1=C("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Bl),ue.init(e,t),e._zod.check=n=>{si(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),t1=C("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Ul(t.delimiter)),ue.init(e,t)}),n1=C("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Gl),ue.init(e,t)});function ba(e){let t=e.split("/");if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let o=Number(r);return`${o}`!==r||o<0||o>128?!1:si(n)}var r1=C("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Kl),ue.init(e,t),e._zod.check=n=>{ba(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function ai(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var va=/^[0-9a-zA-Z+/]*={0,2}$/,o1=C("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=va),ue.init(e,t),e._zod.check=n=>{ai(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),ci=/^[A-Za-z0-9_-]*$/;function wa(e){if(!ci.test(e))return!1;let t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ai(n)}var i1=C("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ci),ue.init(e,t),e._zod.check=n=>{wa(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),s1=C("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Ql),ue.init(e,t)}),Kw=/[- ]/g;function qw(e){let t=e.length,n=1,r=0;for(;t;){let o=e.charCodeAt(--t)-48;n^=1,r+=n?[0,2,4,6,8,1,3,5,7,9][o]:o}return r%10===0}function xa(e){return sa.test(e)?qw(e.replace(Kw,"")):!1}var a1=C("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=sa),ue.init(e,t),e._zod.check=n=>{xa(n.value)||n.issues.push({code:"invalid_format",format:"credit_card",input:n.value,inst:e,continue:!t.abort})}});function Jw(e){let t=0,n=e.length;for(let r=4;r<n;r++){let o=e.charCodeAt(r);t=(o>=65?t*100+(o-55):t*10+(o-48))%97}for(let r=0;r<4;r++){let o=e.charCodeAt(r);t=(o>=65?t*100+(o-55):t*10+(o-48))%97}return t===1}function Ia(e){return aa.test(e)?Jw(e):!1}var c1=C("$ZodIBAN",(e,t)=>{t.pattern??(t.pattern=aa),ue.init(e,t),e._zod.check=n=>{Ia(n.value)||n.issues.push({code:"invalid_format",format:"iban",input:n.value,inst:e,continue:!t.abort})}});function _a(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}var u1=C("$ZodJWT",(e,t)=>{ue.init(e,t),e._zod.check=n=>{_a(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),l1=C("$ZodCustomStringFormat",(e,t)=>{ue.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Sa=C("$ZodNumber",(e,t)=>{K.init(e,t),e._zod.pattern=Qt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:String(o):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),n}}),d1=C("$ZodNumberFormat",(e,t)=>{gd.init(e,t),Sa.init(e,t)}),ui=C("$ZodBoolean",(e,t)=>{K.init(e,t),e._zod.pattern=ad,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),La=C("$ZodBigInt",(e,t)=>{K.init(e,t),e._zod.pattern=sd,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),p1=C("$ZodBigIntFormat",(e,t)=>{Cd.init(e,t),La.init(e,t)}),f1=C("$ZodSymbol",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return typeof o=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:o,inst:e}),n}}),m1=C("$ZodUndefined",(e,t)=>{K.init(e,t),e._zod.pattern=ud,e._zod.values=new Set([void 0]),e._zod.parse=(n,r)=>{let o=n.value;return typeof o>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),n}}),h1=C("$ZodNull",(e,t)=>{K.init(e,t),e._zod.pattern=cd,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{let o=n.value;return o===null||n.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),n}}),g1=C("$ZodAny",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),C1=C("$ZodUnknown",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),k1=C("$ZodNever",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),y1=C("$ZodVoid",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return typeof o>"u"||n.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),n}}),b1=C("$ZodDate",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let o=n.value,i=o instanceof Date;return i&&!Number.isNaN(o.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:o,...i?{received:"Invalid Date"}:{},inst:e}),n}});function q5(e,t,n){e.issues.length&&t.issues.push(...at(n,e.issues)),t.value[n]=e.value}var v1=C("$ZodArray",(e,t)=>{K.init(e,t);let n=Ne.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=n?n.alloc(e,r,Array(i.length),o):Array(i.length);let s=[],a=o?.abortEarly;for(let c=0;c<i.length;c++){let u=i[c],l=t.element._zod.run({value:u,issues:[]},o);if(l instanceof Promise)s.push(l.then(d=>q5(d,r,c)));else if(q5(l,r,c),a&&l.issues.length!==0&&Qe(l))break}return s.length?Promise.all(s).then(()=>r):r}});function ha(e,t,n,r,o,i){let s=n in r,a=i==="optional";if(!(!s&&a&&o==="optional")){if(e.issues.length){if(o!==void 0&&a&&!s)return;t.issues.push(...at(n,e.issues))}if(!s&&o===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?(s||o==="defaulted"&&!a)&&(t.value[n]=void 0):t.value[n]=e.value}}var Yw=[];function p0(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Yw,o=r.length?[...t,...r]:t;for(let s of o)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);let i=yl(e.shape);return{...e,allKeys:o,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function f0(e,t,n,r,o,i,s){let a=[],c=o.keySet,u=o.catchall._zod,l=u.def.type,d=u.optin,m=u.optout,f=0;for(let h in t){if(s&&n.issues.length!==f){if(Qe(n,f))break;f=n.issues.length}if(c.has(h))continue;if(h==="__proto__"){l==="never"&&a.push(h);continue}if(l==="never"){a.push(h);continue}let g=u.run({value:t[h],issues:[]},r);g instanceof Promise?e.push(g.then(k=>ha(k,n,h,t,d,m))):ha(g,n,h,t,d,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var m0=C("$ZodObject",(e,t)=>{K.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape"),r=n?.get?n.get.raw:t.shape??{};if(r){let u=()=>{let l={...r};return Object.defineProperty(t,"shape",{value:l}),u.raw=l,l};u.raw=r,Object.defineProperty(t,"shape",{get:u})}let o=Lr(()=>p0(t));Y(e,"propValues",u=>{let l=u.def.shape,d={};for(let m in l){let f=l[m]._zod;if(f.values){Object.prototype.hasOwnProperty.call(d,m)||We(d,m,new Set);for(let h of f.values)d[m].add(h);f.optin!==void 0&&d[m].add(void 0)}}return d});let i=Un,s=t.catchall,a,c=Ne.memoizer;c?.attach(e),e._zod.parse=(u,l)=>{a??(a=o.value);let d=u.value;if(!i(d))return u.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),u;u.value=c?c.alloc(e,u,{},l):{};let m=[],f=a.shape,h=l?.abortEarly,g=u.issues.length;for(let k of a.allKeys){if(h&&u.issues.length!==g){if(Qe(u,g))break;g=u.issues.length}if(k==="__proto__")continue;let v=f[k],y=v._zod.optin,w=v._zod.optout,T=v._zod.run({value:d[k],issues:[]},l);T instanceof Promise?m.push(T.then(M=>ha(M,u,k,d,y,w))):ha(T,u,k,d,y,w)}return s?f0(m,d,u,l,o.value,e,h===!0):m.length?Promise.all(m).then(()=>u):u}}),w1=C("$ZodObjectJIT",(e,t)=>{m0.init(e,t);let n=e._zod.parse,r=Lr(()=>p0(t)),o=Ne.memoizer,i=f=>{let h=r.value,g=h.symbolKeys,k=new qn(["payload","ctx"],{shape:f,inst:e,memo:o,syms:g}),v=M=>`shape[${M}]._zod.run({ value: input[${M}], issues: [] }, ctx)`,y=(M,x)=>`
11
11
  let ${M}_ab = false;
12
12
  for (let i = 0; i < ${M}.issues.length; i++) {
13
13
  const iss = ${M}.issues[i];
@@ -57,10 +57,10 @@ ${n.join(`
57
57
  newResult[${A}] = ${x}.value;
58
58
  }
59
59
 
60
- `)}return k.write("payload.value = newResult;"),k.write("return payload;"),k.compile()},s,a=Un,c=!Ne.jitless,l=c&&gl.value,d=t.catchall,m;e._zod.parse=(f,h)=>{m??(m=r.value);let g=f.value;return a(g)?c&&l&&h?.async===!1&&h.jitless!==!0?(s||(s=i(t.shape)),f=s(f,h),d?p0([],g,f,h,m,e,h?.abortEarly===!0):f):n(f,h):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function q5(e,t,n,r){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let o=e.filter(i=>!Qe(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>ct(s,r,ye())))}),t)}var li=C("$ZodUnion",(e,t)=>{K.init(e,t),Y(e,"optin",r=>r.def.options.some(o=>o._zod.optin==="defaulted")?"defaulted":r.def.options.some(o=>o._zod.optin!==void 0)?"optional":void 0),Y(e,"optout",r=>r.def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Y(e,"values",r=>{if(r.def.options.every(o=>o._zod.values))return new Set(r.def.options.flatMap(o=>Array.from(o._zod.values)))}),Y(e,"pattern",r=>{if(r.def.options.every(o=>o._zod.pattern)){let o=r.def.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Xt(i.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1,s=[];for(let a of t.options){let c=a._zod.run({value:r.value,issues:[]},o);if(c instanceof Promise)s.push(c),i=!0;else{if(c.issues.length===0)return c;s.push(c)}}return i?Promise.all(s).then(a=>q5(a,r,e,o)):q5(s,r,e,o)}});function J5(e,t,n,r){let o=[];for(let i=0;i<e.length;i++)e[i].issues.length===0&&o.push(i);return o.length===1?(t.value=e[o[0]].value,t):(o.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>ct(s,r,ye())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1,matches:o}),t)}var w1=C("$ZodXor",(e,t)=>{li.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1,s=[];for(let a of t.options){let c=a._zod.run({value:r.value,issues:[]},o);c instanceof Promise?(s.push(c),i=!0):s.push(c)}return i?Promise.all(s).then(a=>J5(a,r,e,o)):J5(s,r,e,o)}});function x1(e,t){let n=e._zod,r=n.bag.optionsMap;r||(r=m0(n.def),n.bag.optionsMap=r);let o=r.get(t);if(o===null)throw new Error(`Ambiguous discriminator value "${String(t)}"`);return o}function m0(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let o of r)if(t.has(o)){if(o!==void 0)throw new Error(`Duplicate discriminator value "${String(o)}"`);t.set(o,null)}else t.set(o,n)}return t}var I1=C("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,li.init(e,t);let n=e._zod.parse;Y(e,"propValues",o=>{let i={},s=0;for(let a of o.def.options){let c=a._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${o.def.options.indexOf(a)}"`);c[o.def.discriminator]?.has(void 0)&&s++;for(let[u,l]of Object.entries(c)){Object.prototype.hasOwnProperty.call(i,u)||We(i,u,new Set);for(let d of l)i[u].add(d)}}return!o.def.unionFallback&&s>1&&i[o.def.discriminator]?.delete(void 0),i}),t.options.forEach((o,i)=>{let s=Pr(o._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw new Error(`Invalid discriminated union option at index "${i}"`)});let r=Lr(()=>m0(t));e._zod.parse=(o,i)=>{let s=o.value;if(!Un(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;let a=s?.[t.discriminator],c=r.value.get(a);return c&&(a!==void 0||i.direction!=="backward")?c._zod.run(o,i):t.unionFallback||i.direction==="backward"?n(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(u=>r.value.get(u)!==null),input:s,path:[t.discriminator],inst:e}),o)}}),_1=C("$ZodIntersection",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value,i=t.left._zod.run({value:o,issues:[]},r),s=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([c,u])=>Y5(n,c,u)):Y5(n,i,s)}});function Er(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(yt(e)&&yt(t)){let n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(let i of r){if(i==="__proto__")continue;let s=Er(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t[r],s=Er(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Y5(e,t,n){let r=new Map,o,i=new Map,s=(u,l)=>{let d;if(u.code==="unrecognized_keys"&&!u.path?.length)o??(o=u),d=u.keys;else if(u.code==="invalid_key"&&u.origin==="record"&&u.path?.length===1){let m=String(u.path[0]);i.has(m)||i.set(m,u),d=[m]}else return!1;for(let m of d)r.has(m)||r.set(m,{}),r.get(m)[l]=!0;return!0};for(let u of t.issues)s(u,"l")||e.issues.push(u);for(let u of n.issues)s(u,"r")||e.issues.push(u);let a=[...r].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(a.length){let u=o?a.filter(l=>o.keys.includes(l)):[];u.length&&e.issues.push({...o,keys:u});for(let l of a)!u.includes(l)&&i.has(l)&&e.issues.push(i.get(l))}let c=Er(t.value,n.value);if(!c.valid){if(Qe(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var La=C("$ZodTuple",(e,t)=>{K.init(e,t);let n=t.items,r=Ne.memoizer;r?.attach(e),e._zod.parse=(o,i)=>{let s=o.value;if(!Array.isArray(s))return o.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=r?r.alloc(e,o,[],i):[];let a=[],c=X5(n,"optin"),u=X5(n,"optout");if(!t.rest){if(s.length<c)return o.issues.push({code:"too_small",minimum:c,inclusive:!0,input:s,inst:e,origin:"array"}),o;s.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:s,inst:e,origin:"array"})}let l=new Array(n.length),d=t.rest?i?.abortEarly:void 0,m=!1;for(let f=0;f<n.length;f++){let h=n[f]._zod.run({value:s[f],issues:[]},i);h instanceof Promise?a.push(h.then(g=>{l[f]=g})):(l[f]=h,d&&!m&&h.issues.length&&(m=Qe(h)))}if(t.rest&&!m){let f=n.length-1,h=s.slice(n.length),g=o.issues.length;for(let k of h){if(d&&o.issues.length!==g){if(Qe(o,g))break;g=o.issues.length}f++;let v=t.rest._zod.run({value:k,issues:[]},i);v instanceof Promise?a.push(v.then(y=>Q5(y,o,f))):Q5(v,o,f)}}return a.length?Promise.all(a).then(()=>e0(l,o,n,s,u)):e0(l,o,n,s,u)}});function X5(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function Q5(e,t,n){e.issues.length&&t.issues.push(...at(n,e.issues)),t.value[n]=e.value}function e0(e,t,n,r,o){for(let i=0;i<n.length;i++){let s=e[i],a=i<r.length;if(!a&&i>=o&&n[i]._zod.optin==="optional"){t.value.length=i;break}if(s.issues.length){if(!a&&i>=o){t.value.length=i;break}t.issues.push(...at(i,s.issues))}t.value[i]=s.value}for(let i=t.value.length-1;i>=r.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}var S1=C("$ZodRecord",(e,t)=>{K.init(e,t);let n=Ne.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!yt(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let s=[],a=t.keyType._zod.values;if(a&&!t.partial){r.value=n?n.alloc(e,r,{},o):{};let c=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){if(c.add(typeof l=="number"?l.toString():l),l==="__proto__")continue;let d=t.keyType._zod.run({value:l,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(h=>ct(h,o,ye())),input:l,path:[l],inst:e});continue}let m=d.value;if(m==="__proto__")continue;let f=t.valueType._zod.run({value:i[l],issues:[]},o);f instanceof Promise?s.push(f.then(h=>{h.issues.length&&r.issues.push(...at(l,h.issues)),r.value[m]=h.value})):(f.issues.length&&r.issues.push(...at(l,f.issues)),r.value[m]=f.value)}let u;for(let l in i)if(!c.has(l))if(t.mode==="loose"){if(l==="__proto__")continue;r.value[l]=i[l]}else u=u??[],u.push(l);u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:u,continue:!0})}else{r.value=n?n.alloc(e,r,{},o):{};let c;for(let u of Reflect.ownKeys(i)){if(u==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,u))continue;let l=t.keyType._zod.run({value:u,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&Qt.test(u)&&l.issues.length){let h=t.keyType._zod.run({value:Number(u),issues:[]},o);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(l=h)}if(l.issues.length){t.mode==="loose"?r.value[u]=i[u]:a?(c=c??[],c.push(u)):r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(h=>ct(h,o,ye())),input:u,path:[u],inst:e});continue}let m=l.value;if(m==="__proto__")continue;let f=t.valueType._zod.run({value:i[u],issues:[]},o);f instanceof Promise?s.push(f.then(h=>{h.issues.length&&r.issues.push(...at(u,h.issues)),r.value[m]=h.value})):(f.issues.length&&r.issues.push(...at(u,f.issues)),r.value[m]=f.value)}c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:c,continue:!0})}return s.length?Promise.all(s).then(()=>r):r}}),L1=C("$ZodMap",(e,t)=>{K.init(e,t);let n=Ne.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;let s=[];r.value=n?n.alloc(e,r,new Map,o):new Map;let a=o?.abortEarly,c=r.issues.length;for(let[u,l]of i){if(a&&r.issues.length!==c){if(Qe(r,c))break;c=r.issues.length}let d=t.keyType._zod.run({value:u,issues:[]},o),m=t.valueType._zod.run({value:l,issues:[]},o);d instanceof Promise||m instanceof Promise?s.push(Promise.all([d,m]).then(([f,h])=>{t0(f,h,r,u,i,e,o)})):t0(d,m,r,u,i,e,o)}return s.length?Promise.all(s).then(()=>r):r}});function t0(e,t,n,r,o,i,s){e.issues.length&&(Ho.has(typeof r)?n.issues.push(...at(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:o,inst:i,issues:e.issues.map(a=>ct(a,s,ye()))})),t.issues.length&&(Ho.has(typeof r)?n.issues.push(...at(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:o,inst:i,key:r,issues:t.issues.map(a=>ct(a,s,ye()))})),n.value.set(e.value,t.value)}var P1=C("$ZodSet",(e,t)=>{K.init(e,t);let n=Ne.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;let s=[];r.value=n?n.alloc(e,r,new Set,o):new Set;let a=o?.abortEarly,c=r.issues.length;for(let u of i){if(a&&r.issues.length!==c){if(Qe(r,c))break;c=r.issues.length}let l=t.valueType._zod.run({value:u,issues:[]},o);l instanceof Promise?s.push(l.then(d=>n0(d,r))):n0(l,r)}return s.length?Promise.all(s).then(()=>r):r}});function n0(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var M1=C("$ZodEnum",(e,t)=>{K.init(e,t);let n=_r(t.entries),r=new Set(n);e._zod.values=r,Y(e,"pattern",o=>{let i=_r(o.def.entries).filter(s=>Ho.has(typeof s));return new RegExp(i.length?`^(${i.map(s=>bt(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(o,i)=>{let s=o.value;return r.has(s)||o.issues.push({code:"invalid_value",values:n,input:s,inst:e}),o}}),R1=C("$ZodLiteral",(e,t)=>{K.init(e,t);let n=new Set(t.values);e._zod.values=n,Y(e,"pattern",r=>{let o=r.def.values;return new RegExp(o.length?`^(${o.map(i=>typeof i=="string"?bt(i):i?bt(i.toString()):String(i)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(r,o)=>{let i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),T1=C("$ZodFile",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return o instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:o,inst:e}),n}}),$1=C("$ZodTransform",(e,t)=>{K.init(e,t),e._zod.optin="optional",Ne.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new xn(e.constructor.name);let o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(n.value=s,n));if(o instanceof Promise)throw new ut;return n.value=o,n}});function r0(e,t){return e.value=t.issues.length?void 0:t.value,e}var Pa=C("$ZodOptional",(e,t)=>{K.init(e,t),Y(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",Y(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),Y(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Xt(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>r0(n,i)):r0(n,o)}return t.innerType._zod.run(n,r)}}),A1=C("$ZodExactOptional",(e,t)=>{Pa.init(e,t),Y(e,"values",n=>n.def.innerType._zod.values),Y(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),D1=C("$ZodNullable",(e,t)=>{K.init(e,t),Y(e,"optin",n=>n.def.innerType._zod.optin),Y(e,"optout",n=>n.def.innerType._zod.optout),Y(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Xt(r.source)}|null)$`):void 0}),Y(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),E1=C("$ZodDefault",(e,t)=>{K.init(e,t),e._zod.optin="defaulted",Y(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>o0(i,t)):o0(o,t)}});function o0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var N1=C("$ZodPrefault",(e,t)=>{K.init(e,t),e._zod.optin="defaulted",Y(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),O1=C("$ZodNonOptional",(e,t)=>{K.init(e,t),Y(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,r)=>{let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>i0(i,e)):i0(o,e)}});function i0(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var z1=C("$ZodSuccess",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new xn("ZodSuccess");let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>(n.value=i.issues.length===0,n)):(n.value=o.issues.length===0,n)}});function s0(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(o=>ct(o,r,ye()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var Z1=C("$ZodCatch",(e,t)=>{K.init(e,t),Y(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),Y(e,"optout",n=>n.def.innerType._zod.optout),Y(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>s0(n,i,t,r)):s0(n,o,t,r)}}),j1=C("$ZodNaN",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Ma=C("$ZodPipe",(e,t)=>{K.init(e,t),Y(e,"values",n=>n.def.in._zod.values),Y(e,"optin",n=>n.def.in._zod.optin),Y(e,"optout",n=>n.def.out._zod.optout),Y(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){let i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>da(s,t.in,r)):da(i,t.in,r)}let o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>da(i,t.out,r)):da(o,t.out,r)}});function da(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var di=C("$ZodCodec",(e,t)=>{K.init(e,t),Y(e,"values",n=>n.def.in._zod.values),Y(e,"optin",n=>n.def.in._zod.optin),Y(e,"optout",n=>n.def.out._zod.optout),Y(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if((r.direction||"forward")==="forward"){let i=t.in._zod.run(n,r);return i instanceof Promise?i.then(s=>pa(s,t,r)):pa(i,t,r)}else{let i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>pa(s,t,r)):pa(i,t,r)}}});function pa(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let o=t.transform(e.value,e);return o instanceof Promise?o.then(i=>fa(e,i,t.out,n)):fa(e,o,t.out,n)}else{let o=t.reverseTransform(e.value,e);return o instanceof Promise?o.then(i=>fa(e,i,t.in,n)):fa(e,o,t.in,n)}}function fa(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var W1=C("$ZodPreprocess",(e,t)=>{Ma.init(e,t)}),F1=C("$ZodReadonly",(e,t)=>{K.init(e,t),Y(e,"propValues",n=>n.def.innerType._zod.propValues),Y(e,"values",n=>n.def.innerType._zod.values),Y(e,"optin",n=>n.def.innerType?._zod?.optin),Y(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a0):a0(o)}});function a0(e){return e.memo||(e.value=Object.freeze(e.value)),e}function Yw(e){let t=e._zod.def,n=t.pattern,r=!!t.format?.includes("int"),o,i;for(let a of t.checks??[]){let c=a._zod.def;c.pattern&&(n=c.pattern),r||(r=!!c.format?.includes("int"));let u=c.minimum??c.length,l=c.maximum??c.length;u!==void 0&&(o===void 0||u>o)&&(o=u),l!==void 0&&(i===void 0||l<i)&&(i=l)}if(n)return n.source;if(o!==void 0&&i!==void 0&&o>i)return"(?!)";if(o!==void 0||i!==void 0)return od({minimum:o,maximum:i}).source;let s=e._zod.pattern;return(r&&s===Qt?ti:s)?.source}function Dd(e){let t=e._zod.def,n=e._zod.pattern?.source,r=t.innerType??e._zod.innerType;if(r){let o=r._zod.pattern?.source,i=Dd(r);return n&&o&&i&&i!==o?n.replace(Xt(o),()=>Xt(i)):n}if(t.options){let o=t.options.map(Dd);if(o.every(Boolean))return`^(${o.map(i=>Xt(i)).join("|")})$`}return Yw(e)}var V1=C("$ZodTemplateLiteral",(e,t)=>{K.init(e,t);let n=[];for(let r of t.parts)if(typeof r=="object"&&r!==null){let o=Dd(r);if(!o)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);n.push(Xt(o))}else if(r===null||Cl.has(typeof r))n.push(bt(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(r,o)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"string",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),r)}),H1=C("$ZodFunction",(e,t)=>(K.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...r){let o=e._def.input?qs(e._def.input,r):r,i=Reflect.apply(n,this,o);return e._def.output?qs(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...r){let o=e._def.input?await Js(e._def.input,r):r,i=await Reflect.apply(n,this,o);return e._def.output?await Js(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(n,r)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let r=e.constructor;return Array.isArray(n[0])?new r({type:"function",input:new La({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new r({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let r=e.constructor;return new r({type:"function",input:e._def.input,output:n})},e)),B1=C("$ZodPromise",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>Promise.resolve(n.value).then(o=>t.innerType._zod.run({value:o,issues:[]},r))}),pi=C("$ZodLazy",(e,t)=>{K.init(e,t),ml(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),Y(e,"pattern",n=>n.innerType?._zod?.pattern),Y(e,"propValues",n=>n.innerType?._zod?.propValues),Y(e,"optin",n=>n.innerType?._zod?.optin??void 0),Y(e,"optout",n=>n.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),U1=C("$ZodCustom",(e,t)=>{pe.init(e,t),K.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{let r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>c0(i,n,r,e));c0(o,n,r,e)}});function c0(e,t,n,r){if(!e){let o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Mr(o))}}var Aa=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},K1="~memo",g0=[];function C0(e){return e!==null&&typeof e=="object"}function G1(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var k0=new WeakMap,Nr=0,$a=1,fi=2;function mi(e,t,n){let r=k0.get(e);if(r!==void 0)return r?fi:Nr;if(t.has(e))return fi;t.add(e);let o=Nr,i=l=>{if(o!==fi&&l?._zod){let d=mi(l,t,n);d>o&&(o=d)}},s=(l,d)=>{let m=Nr;for(let f of Reflect.ownKeys(l)){let h=Object.getOwnPropertyDescriptor(l,f);if(d&&!h.enumerable)continue;let g=h.get?$a:h.value?._zod?mi(h.value,t,n):Nr;g>m&&(m=g)}return m},a=l=>{l>o&&(o=l)},c=e._zod.def,u=c.type;switch(u){case"object":{let l=Pr(c);a(l?s(l,!0):$a),i(c.catchall);break}case"array":i(c.element);break;case"tuple":for(let l of c.items)i(l);i(c.rest);break;case"record":case"map":i(c.keyType),i(c.valueType);break;case"set":i(c.valueType);break;case"union":for(let l of c.options)i(l);break;case"intersection":i(c.left),i(c.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":i(c.innerType);break;case"pipe":i(c.in),i(c.out);break;case"function":i(c.input),i(c.output);break;case"lazy":{let l=c._cachedInner??(n?e._zod.innerType:void 0);a(l?mi(l,t,!1):$a);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let l in c){let d=Object.getOwnPropertyDescriptor(c,l);if(!d||d.get)continue;let m=d.value;if(!(!m||typeof m!="object")){if(m._zod)i(m);else if(Array.isArray(m))for(let f of m)i(f)}}}return t.delete(e),Xw(e,o)}function Xw(e,t){return t!==$a&&k0.set(e,t===fi),t}function Da(e){return mi(e,new Set,!0)!==Nr}function Qw(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var Ra,Ta=[],ex={alloc(e,t,n){let r=Ra;if(!r)return n;Ra=void 0;let o={value:n,issues:null};return r.set(t.value,o),Ta.push(o),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let n=e._zod.parse,r=(o,i)=>{if(i.direction!=="backward"&&Ea(i,o.value))throw new Aa;return n(o,i)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r=!1,o,i;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let s=e._zod.parse,a=(c,u)=>{if(n===void 0){let v=mi(e,new Set,!1);if(v===Nr)return e._zod.parse=s,e._zod.run===a&&(e._zod.run=s),s(c,u);v===fi||r?n=!0:r=!0}let l=c.value;if(!C0(l))return s(c,u);let d=u[K1];d||(d={buckets:new WeakMap,backEdges:void 0},u[K1]=d);let m;o===u?m=i:(m=Qw(d,e),o=u,i=m);let f=m.get(l);if(f)return c.value=f.value,f.issues?f.issues.length&&c.issues.push(...G1(f.issues)):(c.memo=!0,d.backEdges??(d.backEdges=new WeakSet),d.backEdges.add(f.value)),c;Ra=m;let h=Ta.length,g=s(c,u);Ra=void 0;let k=Ta.length>h?Ta.pop():void 0;return g instanceof Promise?g.then(v=>(k&&(k.issues=v.issues.length?G1(v.issues):g0),v)):(k&&(k.issues=g.issues.length?G1(g.issues):g0),g)};e._zod.parse=a,e._zod.run===s&&(e._zod.run=a)})}};function hi(){return ex}function Ea(e,t){let n=e[K1]?.backEdges;return n!==void 0&&C0(t)&&n.has(t)}var gi={};Lt(gi,{en:()=>Na});var tx=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function o(i,s){return i==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):r[i]??i}return i=>{switch(i.code){case"invalid_type":{let s=o(i.expected),a=bl(i.input),c=o(a,i.input);return`Invalid input: expected ${s}, received ${c}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${Hs(i.values[0])}`:`Invalid option: expected one of ${Ws(i.values,"|")}`;case"too_big":{let s=i.exact?"exactly ":i.inclusive?"<=":"<",a=t(i.origin);return a?`Too big: expected ${i.origin??"value"} to have ${s}${i.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${s}${i.maximum.toString()}`}case"too_small":{let s=i.exact?"exactly ":i.inclusive?">=":">",a=t(i.origin);return a?`Too small: expected ${i.origin} to have ${s}${i.minimum.toString()} ${a.unit}`:`Too small: expected ${i.origin} to be ${s}${i.minimum.toString()}`}case"invalid_format":{let s=i;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${n[s.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${Ws(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(a=>`'${a}'`).join(" | ")}`:i.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function Na(){return{localeError:tx()}}var y0,q1=Symbol("ZodOutput"),J1=Symbol("ZodInput"),Oa=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let r={...this.get(n)??{}};delete r.id;let o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function za(){return new Oa}(y0=globalThis).__zod_globalRegistry??(y0.__zod_globalRegistry=za());var Fe=globalThis.__zod_globalRegistry;var et=Symbol.for("zod.compile.invalid"),b0=Symbol.for("zod.compile.fallback"),Tt=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},Q=class extends Error{constructor(t,n=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=n}};function rx(e,t){try{return ja(e,{assertOnly:!0})}catch{return t}}function ep(e,t){try{let n=ja(e),r=Za(e,n);return r._zod.bag.validator=rx(e,n),r}catch(n){if(t?.strict)throw n;return e}}function Za(e,t){if(Da(e))throw new Q("a schema whose subtree contains a reference cycle");let n=ce(e),r=e._zod.run,o=r.__originalRun??r,i=(s,a)=>{if(a?.async||a?.direction==="backward"||a?.skipChecks||a?.[b0]||a&&Ea(a,s.value))return o(s,a);let c=t(s.value);return c!==et?(s.value=c,s):(a&&(a[b0]=!0),o(s,a))};return i.__originalRun=o,n._zod.bag.fallbackRun=o,n._zod.bag.validator=t,n._zod.run=i,r.__originalRun||ox(n,e,t),n}function ox(e,t,n){let r=e,o=t;if(typeof o.safeParse=="function"){let i=o.safeParse;r.safeParse=(s,a)=>{let c=n(s);return c!==et?{success:!0,data:c}:i(s,a)}}if(typeof o.parse=="function"){let i=o.parse;r.parse=(s,a)=>{let c=n(s);return c!==et?c:i(s,a)}}}function ja(e,t){let n=!0;try{n=Da(e)}catch{}if(n)throw new Q("a schema whose subtree contains a reference cycle");let r={constants:new Map,constantCounter:0,varCounter:0,definite:!0},o=new qn(["input"]),i=ke(o,r,e,"input",!t?.assertOnly);o.write(i===null?"return true;":`return ${i};`);let s=["INVALID",...r.constants.keys()],a=[et,...r.constants.values()],c=o.content.join(`
60
+ `)}return k.write("payload.value = newResult;"),k.write("return payload;"),k.compile()},s,a=Un,c=!Ne.jitless,l=c&&Cl.value,d=t.catchall,m;e._zod.parse=(f,h)=>{m??(m=r.value);let g=f.value;return a(g)?c&&l&&h?.async===!1&&h.jitless!==!0?(s||(s=i(t.shape)),f=s(f,h),d?f0([],g,f,h,m,e,h?.abortEarly===!0):f):n(f,h):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function J5(e,t,n,r){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let o=e.filter(i=>!Qe(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>ct(s,r,ye())))}),t)}var li=C("$ZodUnion",(e,t)=>{K.init(e,t),Y(e,"optin",r=>r.def.options.some(o=>o._zod.optin==="defaulted")?"defaulted":r.def.options.some(o=>o._zod.optin!==void 0)?"optional":void 0),Y(e,"optout",r=>r.def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Y(e,"values",r=>{if(r.def.options.every(o=>o._zod.values))return new Set(r.def.options.flatMap(o=>Array.from(o._zod.values)))}),Y(e,"pattern",r=>{if(r.def.options.every(o=>o._zod.pattern)){let o=r.def.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Xt(i.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1,s=[];for(let a of t.options){let c=a._zod.run({value:r.value,issues:[]},o);if(c instanceof Promise)s.push(c),i=!0;else{if(c.issues.length===0)return c;s.push(c)}}return i?Promise.all(s).then(a=>J5(a,r,e,o)):J5(s,r,e,o)}});function Y5(e,t,n,r){let o=[];for(let i=0;i<e.length;i++)e[i].issues.length===0&&o.push(i);return o.length===1?(t.value=e[o[0]].value,t):(o.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>ct(s,r,ye())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1,matches:o}),t)}var x1=C("$ZodXor",(e,t)=>{li.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1,s=[];for(let a of t.options){let c=a._zod.run({value:r.value,issues:[]},o);c instanceof Promise?(s.push(c),i=!0):s.push(c)}return i?Promise.all(s).then(a=>Y5(a,r,e,o)):Y5(s,r,e,o)}});function I1(e,t){let n=e._zod,r=n.bag.optionsMap;r||(r=h0(n.def),n.bag.optionsMap=r);let o=r.get(t);if(o===null)throw new Error(`Ambiguous discriminator value "${String(t)}"`);return o}function h0(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let o of r)if(t.has(o)){if(o!==void 0)throw new Error(`Duplicate discriminator value "${String(o)}"`);t.set(o,null)}else t.set(o,n)}return t}var _1=C("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,li.init(e,t);let n=e._zod.parse;Y(e,"propValues",o=>{let i={},s=0;for(let a of o.def.options){let c=a._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${o.def.options.indexOf(a)}"`);c[o.def.discriminator]?.has(void 0)&&s++;for(let[u,l]of Object.entries(c)){Object.prototype.hasOwnProperty.call(i,u)||We(i,u,new Set);for(let d of l)i[u].add(d)}}return!o.def.unionFallback&&s>1&&i[o.def.discriminator]?.delete(void 0),i}),t.options.forEach((o,i)=>{let s=Pr(o._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw new Error(`Invalid discriminated union option at index "${i}"`)});let r=Lr(()=>h0(t));e._zod.parse=(o,i)=>{let s=o.value;if(!Un(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;let a=s?.[t.discriminator],c=r.value.get(a);return c&&(a!==void 0||i.direction!=="backward")?c._zod.run(o,i):t.unionFallback||i.direction==="backward"?n(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(u=>r.value.get(u)!==null),input:s,path:[t.discriminator],inst:e}),o)}}),S1=C("$ZodIntersection",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value,i=t.left._zod.run({value:o,issues:[]},r),s=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([c,u])=>X5(n,c,u)):X5(n,i,s)}});function Er(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(yt(e)&&yt(t)){let n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(let i of r){if(i==="__proto__")continue;let s=Er(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t[r],s=Er(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function X5(e,t,n){let r=new Map,o,i=new Map,s=(u,l)=>{let d;if(u.code==="unrecognized_keys"&&!u.path?.length)o??(o=u),d=u.keys;else if(u.code==="invalid_key"&&u.origin==="record"&&u.path?.length===1){let m=String(u.path[0]);i.has(m)||i.set(m,u),d=[m]}else return!1;for(let m of d)r.has(m)||r.set(m,{}),r.get(m)[l]=!0;return!0};for(let u of t.issues)s(u,"l")||e.issues.push(u);for(let u of n.issues)s(u,"r")||e.issues.push(u);let a=[...r].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(a.length){let u=o?a.filter(l=>o.keys.includes(l)):[];u.length&&e.issues.push({...o,keys:u});for(let l of a)!u.includes(l)&&i.has(l)&&e.issues.push(i.get(l))}let c=Er(t.value,n.value);if(!c.valid){if(Qe(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Pa=C("$ZodTuple",(e,t)=>{K.init(e,t);let n=t.items,r=Ne.memoizer;r?.attach(e),e._zod.parse=(o,i)=>{let s=o.value;if(!Array.isArray(s))return o.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=r?r.alloc(e,o,[],i):[];let a=[],c=Q5(n,"optin"),u=Q5(n,"optout");if(!t.rest){if(s.length<c)return o.issues.push({code:"too_small",minimum:c,inclusive:!0,input:s,inst:e,origin:"array"}),o;s.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:s,inst:e,origin:"array"})}let l=new Array(n.length),d=t.rest?i?.abortEarly:void 0,m=!1;for(let f=0;f<n.length;f++){let h=n[f]._zod.run({value:s[f],issues:[]},i);h instanceof Promise?a.push(h.then(g=>{l[f]=g})):(l[f]=h,d&&!m&&h.issues.length&&(m=Qe(h)))}if(t.rest&&!m){let f=n.length-1,h=s.slice(n.length),g=o.issues.length;for(let k of h){if(d&&o.issues.length!==g){if(Qe(o,g))break;g=o.issues.length}f++;let v=t.rest._zod.run({value:k,issues:[]},i);v instanceof Promise?a.push(v.then(y=>e0(y,o,f))):e0(v,o,f)}}return a.length?Promise.all(a).then(()=>t0(l,o,n,s,u)):t0(l,o,n,s,u)}});function Q5(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function e0(e,t,n){e.issues.length&&t.issues.push(...at(n,e.issues)),t.value[n]=e.value}function t0(e,t,n,r,o){for(let i=0;i<n.length;i++){let s=e[i],a=i<r.length;if(!a&&i>=o&&n[i]._zod.optin==="optional"){t.value.length=i;break}if(s.issues.length){if(!a&&i>=o){t.value.length=i;break}t.issues.push(...at(i,s.issues))}t.value[i]=s.value}for(let i=t.value.length-1;i>=r.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}var L1=C("$ZodRecord",(e,t)=>{K.init(e,t);let n=Ne.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!yt(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let s=[],a=t.keyType._zod.values;if(a&&!t.partial){r.value=n?n.alloc(e,r,{},o):{};let c=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){if(c.add(typeof l=="number"?l.toString():l),l==="__proto__")continue;let d=t.keyType._zod.run({value:l,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(h=>ct(h,o,ye())),input:l,path:[l],inst:e});continue}let m=d.value;if(m==="__proto__")continue;let f=t.valueType._zod.run({value:i[l],issues:[]},o);f instanceof Promise?s.push(f.then(h=>{h.issues.length&&r.issues.push(...at(l,h.issues)),r.value[m]=h.value})):(f.issues.length&&r.issues.push(...at(l,f.issues)),r.value[m]=f.value)}let u;for(let l in i)if(!c.has(l))if(t.mode==="loose"){if(l==="__proto__")continue;r.value[l]=i[l]}else u=u??[],u.push(l);u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:u,continue:!0})}else{r.value=n?n.alloc(e,r,{},o):{};let c;for(let u of Reflect.ownKeys(i)){if(u==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,u))continue;let l=t.keyType._zod.run({value:u,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&Qt.test(u)&&l.issues.length){let h=t.keyType._zod.run({value:Number(u),issues:[]},o);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(l=h)}if(l.issues.length){t.mode==="loose"?r.value[u]=i[u]:a?(c=c??[],c.push(u)):r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(h=>ct(h,o,ye())),input:u,path:[u],inst:e});continue}let m=l.value;if(m==="__proto__")continue;let f=t.valueType._zod.run({value:i[u],issues:[]},o);f instanceof Promise?s.push(f.then(h=>{h.issues.length&&r.issues.push(...at(u,h.issues)),r.value[m]=h.value})):(f.issues.length&&r.issues.push(...at(u,f.issues)),r.value[m]=f.value)}c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:c,continue:!0})}return s.length?Promise.all(s).then(()=>r):r}}),P1=C("$ZodMap",(e,t)=>{K.init(e,t);let n=Ne.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;let s=[];r.value=n?n.alloc(e,r,new Map,o):new Map;let a=o?.abortEarly,c=r.issues.length;for(let[u,l]of i){if(a&&r.issues.length!==c){if(Qe(r,c))break;c=r.issues.length}let d=t.keyType._zod.run({value:u,issues:[]},o),m=t.valueType._zod.run({value:l,issues:[]},o);d instanceof Promise||m instanceof Promise?s.push(Promise.all([d,m]).then(([f,h])=>{n0(f,h,r,u,i,e,o)})):n0(d,m,r,u,i,e,o)}return s.length?Promise.all(s).then(()=>r):r}});function n0(e,t,n,r,o,i,s){e.issues.length&&(Ho.has(typeof r)?n.issues.push(...at(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:o,inst:i,issues:e.issues.map(a=>ct(a,s,ye()))})),t.issues.length&&(Ho.has(typeof r)?n.issues.push(...at(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:o,inst:i,key:r,issues:t.issues.map(a=>ct(a,s,ye()))})),n.value.set(e.value,t.value)}var M1=C("$ZodSet",(e,t)=>{K.init(e,t);let n=Ne.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;let s=[];r.value=n?n.alloc(e,r,new Set,o):new Set;let a=o?.abortEarly,c=r.issues.length;for(let u of i){if(a&&r.issues.length!==c){if(Qe(r,c))break;c=r.issues.length}let l=t.valueType._zod.run({value:u,issues:[]},o);l instanceof Promise?s.push(l.then(d=>r0(d,r))):r0(l,r)}return s.length?Promise.all(s).then(()=>r):r}});function r0(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var R1=C("$ZodEnum",(e,t)=>{K.init(e,t);let n=_r(t.entries),r=new Set(n);e._zod.values=r,Y(e,"pattern",o=>{let i=_r(o.def.entries).filter(s=>Ho.has(typeof s));return new RegExp(i.length?`^(${i.map(s=>bt(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(o,i)=>{let s=o.value;return r.has(s)||o.issues.push({code:"invalid_value",values:n,input:s,inst:e}),o}}),T1=C("$ZodLiteral",(e,t)=>{K.init(e,t);let n=new Set(t.values);e._zod.values=n,Y(e,"pattern",r=>{let o=r.def.values;return new RegExp(o.length?`^(${o.map(i=>typeof i=="string"?bt(i):i?bt(i.toString()):String(i)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(r,o)=>{let i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),$1=C("$ZodFile",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return o instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:o,inst:e}),n}}),A1=C("$ZodTransform",(e,t)=>{K.init(e,t),e._zod.optin="optional",Ne.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new xn(e.constructor.name);let o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(n.value=s,n));if(o instanceof Promise)throw new ut;return n.value=o,n}});function o0(e,t){return e.value=t.issues.length?void 0:t.value,e}var Ma=C("$ZodOptional",(e,t)=>{K.init(e,t),Y(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",Y(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),Y(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Xt(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>o0(n,i)):o0(n,o)}return t.innerType._zod.run(n,r)}}),D1=C("$ZodExactOptional",(e,t)=>{Ma.init(e,t),Y(e,"values",n=>n.def.innerType._zod.values),Y(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),E1=C("$ZodNullable",(e,t)=>{K.init(e,t),Y(e,"optin",n=>n.def.innerType._zod.optin),Y(e,"optout",n=>n.def.innerType._zod.optout),Y(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Xt(r.source)}|null)$`):void 0}),Y(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),N1=C("$ZodDefault",(e,t)=>{K.init(e,t),e._zod.optin="defaulted",Y(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>i0(i,t)):i0(o,t)}});function i0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var O1=C("$ZodPrefault",(e,t)=>{K.init(e,t),e._zod.optin="defaulted",Y(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),z1=C("$ZodNonOptional",(e,t)=>{K.init(e,t),Y(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,r)=>{let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>s0(i,e)):s0(o,e)}});function s0(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Z1=C("$ZodSuccess",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new xn("ZodSuccess");let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>(n.value=i.issues.length===0,n)):(n.value=o.issues.length===0,n)}});function a0(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(o=>ct(o,r,ye()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var j1=C("$ZodCatch",(e,t)=>{K.init(e,t),Y(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),Y(e,"optout",n=>n.def.innerType._zod.optout),Y(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>a0(n,i,t,r)):a0(n,o,t,r)}}),W1=C("$ZodNaN",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Ra=C("$ZodPipe",(e,t)=>{K.init(e,t),Y(e,"values",n=>n.def.in._zod.values),Y(e,"optin",n=>n.def.in._zod.optin),Y(e,"optout",n=>n.def.out._zod.optout),Y(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){let i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>pa(s,t.in,r)):pa(i,t.in,r)}let o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>pa(i,t.out,r)):pa(o,t.out,r)}});function pa(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var di=C("$ZodCodec",(e,t)=>{K.init(e,t),Y(e,"values",n=>n.def.in._zod.values),Y(e,"optin",n=>n.def.in._zod.optin),Y(e,"optout",n=>n.def.out._zod.optout),Y(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if((r.direction||"forward")==="forward"){let i=t.in._zod.run(n,r);return i instanceof Promise?i.then(s=>fa(s,t,r)):fa(i,t,r)}else{let i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>fa(s,t,r)):fa(i,t,r)}}});function fa(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let o=t.transform(e.value,e);return o instanceof Promise?o.then(i=>ma(e,i,t.out,n)):ma(e,o,t.out,n)}else{let o=t.reverseTransform(e.value,e);return o instanceof Promise?o.then(i=>ma(e,i,t.in,n)):ma(e,o,t.in,n)}}function ma(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var F1=C("$ZodPreprocess",(e,t)=>{Ra.init(e,t)}),V1=C("$ZodReadonly",(e,t)=>{K.init(e,t),Y(e,"propValues",n=>n.def.innerType._zod.propValues),Y(e,"values",n=>n.def.innerType._zod.values),Y(e,"optin",n=>n.def.innerType?._zod?.optin),Y(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(c0):c0(o)}});function c0(e){return e.memo||(e.value=Object.freeze(e.value)),e}function Xw(e){let t=e._zod.def,n=t.pattern,r=!!t.format?.includes("int"),o,i;for(let a of t.checks??[]){let c=a._zod.def;c.pattern&&(n=c.pattern),r||(r=!!c.format?.includes("int"));let u=c.minimum??c.length,l=c.maximum??c.length;u!==void 0&&(o===void 0||u>o)&&(o=u),l!==void 0&&(i===void 0||l<i)&&(i=l)}if(n)return n.source;if(o!==void 0&&i!==void 0&&o>i)return"(?!)";if(o!==void 0||i!==void 0)return id({minimum:o,maximum:i}).source;let s=e._zod.pattern;return(r&&s===Qt?ti:s)?.source}function Ed(e){let t=e._zod.def,n=e._zod.pattern?.source,r=t.innerType??e._zod.innerType;if(r){let o=r._zod.pattern?.source,i=Ed(r);return n&&o&&i&&i!==o?n.replace(Xt(o),()=>Xt(i)):n}if(t.options){let o=t.options.map(Ed);if(o.every(Boolean))return`^(${o.map(i=>Xt(i)).join("|")})$`}return Xw(e)}var H1=C("$ZodTemplateLiteral",(e,t)=>{K.init(e,t);let n=[];for(let r of t.parts)if(typeof r=="object"&&r!==null){let o=Ed(r);if(!o)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);n.push(Xt(o))}else if(r===null||kl.has(typeof r))n.push(bt(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(r,o)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"string",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),r)}),B1=C("$ZodFunction",(e,t)=>(K.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...r){let o=e._def.input?Js(e._def.input,r):r,i=Reflect.apply(n,this,o);return e._def.output?Js(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...r){let o=e._def.input?await Ys(e._def.input,r):r,i=await Reflect.apply(n,this,o);return e._def.output?await Ys(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(n,r)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let r=e.constructor;return Array.isArray(n[0])?new r({type:"function",input:new Pa({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new r({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let r=e.constructor;return new r({type:"function",input:e._def.input,output:n})},e)),U1=C("$ZodPromise",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>Promise.resolve(n.value).then(o=>t.innerType._zod.run({value:o,issues:[]},r))}),pi=C("$ZodLazy",(e,t)=>{K.init(e,t),hl(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),Y(e,"pattern",n=>n.innerType?._zod?.pattern),Y(e,"propValues",n=>n.innerType?._zod?.propValues),Y(e,"optin",n=>n.innerType?._zod?.optin??void 0),Y(e,"optout",n=>n.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),G1=C("$ZodCustom",(e,t)=>{pe.init(e,t),K.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{let r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>u0(i,n,r,e));u0(o,n,r,e)}});function u0(e,t,n,r){if(!e){let o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Mr(o))}}var Da=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},q1="~memo",C0=[];function k0(e){return e!==null&&typeof e=="object"}function K1(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var y0=new WeakMap,Nr=0,Aa=1,fi=2;function mi(e,t,n){let r=y0.get(e);if(r!==void 0)return r?fi:Nr;if(t.has(e))return fi;t.add(e);let o=Nr,i=l=>{if(o!==fi&&l?._zod){let d=mi(l,t,n);d>o&&(o=d)}},s=(l,d)=>{let m=Nr;for(let f of Reflect.ownKeys(l)){let h=Object.getOwnPropertyDescriptor(l,f);if(d&&!h.enumerable)continue;let g=h.get?Aa:h.value?._zod?mi(h.value,t,n):Nr;g>m&&(m=g)}return m},a=l=>{l>o&&(o=l)},c=e._zod.def,u=c.type;switch(u){case"object":{let l=Pr(c);a(l?s(l,!0):Aa),i(c.catchall);break}case"array":i(c.element);break;case"tuple":for(let l of c.items)i(l);i(c.rest);break;case"record":case"map":i(c.keyType),i(c.valueType);break;case"set":i(c.valueType);break;case"union":for(let l of c.options)i(l);break;case"intersection":i(c.left),i(c.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":i(c.innerType);break;case"pipe":i(c.in),i(c.out);break;case"function":i(c.input),i(c.output);break;case"lazy":{let l=c._cachedInner??(n?e._zod.innerType:void 0);a(l?mi(l,t,!1):Aa);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let l in c){let d=Object.getOwnPropertyDescriptor(c,l);if(!d||d.get)continue;let m=d.value;if(!(!m||typeof m!="object")){if(m._zod)i(m);else if(Array.isArray(m))for(let f of m)i(f)}}}return t.delete(e),Qw(e,o)}function Qw(e,t){return t!==Aa&&y0.set(e,t===fi),t}function Ea(e){return mi(e,new Set,!0)!==Nr}function ex(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var Ta,$a=[],tx={alloc(e,t,n){let r=Ta;if(!r)return n;Ta=void 0;let o={value:n,issues:null};return r.set(t.value,o),$a.push(o),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let n=e._zod.parse,r=(o,i)=>{if(i.direction!=="backward"&&Na(i,o.value))throw new Da;return n(o,i)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r=!1,o,i;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let s=e._zod.parse,a=(c,u)=>{if(n===void 0){let v=mi(e,new Set,!1);if(v===Nr)return e._zod.parse=s,e._zod.run===a&&(e._zod.run=s),s(c,u);v===fi||r?n=!0:r=!0}let l=c.value;if(!k0(l))return s(c,u);let d=u[q1];d||(d={buckets:new WeakMap,backEdges:void 0},u[q1]=d);let m;o===u?m=i:(m=ex(d,e),o=u,i=m);let f=m.get(l);if(f)return c.value=f.value,f.issues?f.issues.length&&c.issues.push(...K1(f.issues)):(c.memo=!0,d.backEdges??(d.backEdges=new WeakSet),d.backEdges.add(f.value)),c;Ta=m;let h=$a.length,g=s(c,u);Ta=void 0;let k=$a.length>h?$a.pop():void 0;return g instanceof Promise?g.then(v=>(k&&(k.issues=v.issues.length?K1(v.issues):C0),v)):(k&&(k.issues=g.issues.length?K1(g.issues):C0),g)};e._zod.parse=a,e._zod.run===s&&(e._zod.run=a)})}};function hi(){return tx}function Na(e,t){let n=e[q1]?.backEdges;return n!==void 0&&k0(t)&&n.has(t)}var gi={};Lt(gi,{en:()=>Oa});var nx=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function o(i,s){return i==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):r[i]??i}return i=>{switch(i.code){case"invalid_type":{let s=o(i.expected),a=vl(i.input),c=o(a,i.input);return`Invalid input: expected ${s}, received ${c}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${Bs(i.values[0])}`:`Invalid option: expected one of ${Fs(i.values,"|")}`;case"too_big":{let s=i.exact?"exactly ":i.inclusive?"<=":"<",a=t(i.origin);return a?`Too big: expected ${i.origin??"value"} to have ${s}${i.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${s}${i.maximum.toString()}`}case"too_small":{let s=i.exact?"exactly ":i.inclusive?">=":">",a=t(i.origin);return a?`Too small: expected ${i.origin} to have ${s}${i.minimum.toString()} ${a.unit}`:`Too small: expected ${i.origin} to be ${s}${i.minimum.toString()}`}case"invalid_format":{let s=i;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${n[s.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${Fs(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(a=>`'${a}'`).join(" | ")}`:i.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function Oa(){return{localeError:nx()}}var b0,J1=Symbol("ZodOutput"),Y1=Symbol("ZodInput"),za=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let r={...this.get(n)??{}};delete r.id;let o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Za(){return new za}(b0=globalThis).__zod_globalRegistry??(b0.__zod_globalRegistry=Za());var Fe=globalThis.__zod_globalRegistry;var et=Symbol.for("zod.compile.invalid"),v0=Symbol.for("zod.compile.fallback"),Tt=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},Q=class extends Error{constructor(t,n=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=n}};function ox(e,t){try{return Wa(e,{assertOnly:!0})}catch{return t}}function tp(e,t){try{let n=Wa(e),r=ja(e,n);return r._zod.bag.validator=ox(e,n),r}catch(n){if(t?.strict)throw n;return e}}function ja(e,t){if(Ea(e))throw new Q("a schema whose subtree contains a reference cycle");let n=ce(e),r=e._zod.run,o=r.__originalRun??r,i=(s,a)=>{if(a?.async||a?.direction==="backward"||a?.skipChecks||a?.[v0]||a&&Na(a,s.value))return o(s,a);let c=t(s.value);return c!==et?(s.value=c,s):(a&&(a[v0]=!0),o(s,a))};return i.__originalRun=o,n._zod.bag.fallbackRun=o,n._zod.bag.validator=t,n._zod.run=i,r.__originalRun||ix(n,e,t),n}function ix(e,t,n){let r=e,o=t;if(typeof o.safeParse=="function"){let i=o.safeParse;r.safeParse=(s,a)=>{let c=n(s);return c!==et?{success:!0,data:c}:i(s,a)}}if(typeof o.parse=="function"){let i=o.parse;r.parse=(s,a)=>{let c=n(s);return c!==et?c:i(s,a)}}}function Wa(e,t){let n=!0;try{n=Ea(e)}catch{}if(n)throw new Q("a schema whose subtree contains a reference cycle");let r={constants:new Map,constantCounter:0,varCounter:0,definite:!0},o=new qn(["input"]),i=ke(o,r,e,"input",!t?.assertOnly);o.write(i===null?"return true;":`return ${i};`);let s=["INVALID",...r.constants.keys()],a=[et,...r.constants.values()],c=o.content.join(`
61
61
  `),u=t?.debug?s.length>0?`// Constants: ${s.join(", ")}
62
62
  ${c}`:c:"",l=Function,d=`return (input) => {
63
63
  ${c}
64
- }`,m;try{m=new l(...s,d)(...a)}catch(f){throw new Q(`this schema (generated code failed to evaluate: ${f.message})`)}return t?.debug&&(m.code=u),m.definite=r.definite,m}function U(e,t){for(let[r,o]of e.constants)if(o===t)return r;let n=`c${e.constantCounter++}`;return e.constants.set(n,t),n}function Qn(e,t){return e.definite=!1,U(e,t)}function F(e){return`v${e.varCounter++}`}function ix(e,t){let n=e._zod.run({value:t,issues:[]},{});if(n&&typeof n.then=="function")return et;let r=n;return r.issues.length===0?r.value:et}function Ue(e,t,n,r,o=!0){let i=e.content.length,s=t.constants.size,a=t.constantCounter,c=t.varCounter;try{return ke(e,t,n,r,o)}catch(u){if(!(u instanceof Q)||!u.islandable)throw u;if(e.content.length=i,t.constants.size>s){let l=Array.from(t.constants.keys()).slice(s);for(let d of l)t.constants.delete(d)}return t.constantCounter=a,t.varCounter=c,sx(e,t,n,r)}}function sx(e,t,n,r){t.definite=!1;let o=U(t,n),i=U(t,ix),s=F(t);return e.write(`const ${s} = ${i}(${o}, ${r});`),e.write(`if (${s} === INVALID) return INVALID;`),s}var ax=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function cx(e,t,n,r){let o=n._zod.def.checks;if(!o||o.length===0)return r;let i=r;for(let s of o){let a=s._zod.def;if(a.when&&!ax.has(a.check))throw new Q('check with a custom "when" condition');switch(a.check){case"greater_than":ux(e,t,a,i);break;case"less_than":lx(e,t,a,i);break;case"multiple_of":dx(e,t,a,i);break;case"number_format":S0(e,a,i);break;case"min_length":{let c=Yn(a.minimum,"min_length"),u=Y1(e,t,i,`${i}.length >= ${c} && ${i}.length < ${a.minimum*2}`);e.write(`if (${u} < ${c}) return INVALID;`);break}case"max_length":{let c=Yn(a.maximum,"max_length"),u=Y1(e,t,i,`${i}.length > ${c}`);e.write(`if (${u} > ${c}) return INVALID;`);break}case"length_equals":{let c=Yn(a.length,"length_equals"),u=Y1(e,t,i,`${i}.length >= ${c} && ${i}.length <= ${a.length*2}`);e.write(`if (${u} !== ${c}) return INVALID;`);break}case"min_size":e.write(`if (${i}.size < ${Yn(a.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${i}.size > ${Yn(a.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${i}.size !== ${Yn(a.size,"size_equals")}) return INVALID;`);break;case"string_format":i=L0(e,t,a,i);break;case"custom":i=Cx(e,t,s,i);break;case"bigint_format":px(e,a,i);break;case"mime_type":fx(e,t,a,i);break;case"property":hx(e,t,a,i);break;case"properties":mx(e,t,a,i);break;case"overwrite":{let c=F(t);gx(e,t,s,i,c),i=c;break}default:throw new Q(`check type ${a.check}`)}}return i}function Y1(e,t,n,r){let o=U(t,Gn),i=F(t);return e.write(`const ${i} = typeof ${n} === "string" && ${r} ? ${o}(${n}) : ${n}.length;`),i}function Yn(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new Q(`${t} bound of type ${typeof e}`);return`${e}`}function _0(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new Q("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new Q("comparison check with Invalid Date bound");return U(e,t)}throw new Q(`comparison check bound of type ${typeof t}`)}function ux(e,t,n,r){let o=n.inclusive?"<":"<=";e.write(`if (${r} ${o} ${_0(t,n.value)}) return INVALID;`)}function lx(e,t,n,r){let o=n.inclusive?">":">=";e.write(`if (${r} ${o} ${_0(t,n.value)}) return INVALID;`)}function dx(e,t,n,r){if(typeof n.value=="bigint"){if(n.value===BigInt(0))throw new Q("multiple_of check with a zero divisor");e.write(`if (${r} % ${n.value}n !== 0n) return INVALID;`)}else{let o=U(t,Fo);e.write(`if (${o}(${r}, ${Yn(n.value,"multiple_of")}) !== 0) return INVALID;`)}}function S0(e,t,n){let r=t.format;switch(r){case"safeint":e.write(`if (!Number.isSafeInteger(${n})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${n}) || ${n} < -2147483648 || ${n} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${n}) || ${n} < 0 || ${n} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${n}) || ${n} < -3.4028234663852886e38 || ${n} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${n})) return INVALID;`);break;default:throw new Q(`number format ${r}`)}}function px(e,t,n){let r=t.format;if(r)switch(r){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break;default:throw new Q(`bigint format ${r}`)}}function fx(e,t,n,r){let o=n.mime;if(o&&o.length>0){let i=U(t,new Set(o));e.write(`if (!${i}.has(${r}.type)) return INVALID;`)}}function mx(e,t,n,r){if(n.when)throw new Q('check with a custom "when" condition');e.write(`if (${r} == null) return INVALID;`);let o=n.shape;for(let i of Reflect.ownKeys(o)){let s=typeof i=="symbol"?U(t,i):Xe(i),a=F(t);e.write(`const ${a} = ${r}[${s}];`),Ue(e,t,o[i],a,!1)}}function hx(e,t,n,r){let o=`${r}[${JSON.stringify(n.property)}]`;ke(e,t,n.schema,o)}function gx(e,t,n,r,o){let i=n._zod.def.tx;if(!i)throw new Q("overwrite check without a transform function");if(er(i))throw new Tt("z.compile: async overwrite transforms are not supported");let s=U(t,i);e.write(`const ${o} = ${s}(${r});`)}function X1(){throw new ut}function tp(e){this.issues.push(e)}function Cx(e,t,n,r){let o=n._zod.def;if(o.fn){if(er(o.fn))throw new Tt("z.compile: async .refine() predicates are not supported");let i=Qn(t,o.fn),s=U(t,X1),a=F(t);return e.write(`const ${a} = ${i}(${r});`),e.write(`if (${a} instanceof Promise) ${s}();`),e.write(`if (!${a}) return INVALID;`),r}if(n._zod.check){if(er(n._zod.check))throw new Tt("z.compile: async .superRefine() / check functions are not supported");let i=n._zod.check,a=Qn(t,u=>{let l={value:u,issues:[],addIssue:tp};return i(l)instanceof Promise&&X1(),l.issues.length===0?l.value:et}),c=F(t);return e.write(`const ${c} = ${a}(${r});`),e.write(`if (${c} === INVALID) return INVALID;`),c}throw new Q("custom check without a predicate or check function")}var kx=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function L0(e,t,n,r,o=!0){let i=n.format;if(i==="base64"){let u=U(t,ai);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="base64url"){let u=U(t,va);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="jwt"){let u=U(t,Ia),l=U(t,n.alg??null);return e.write(`if (!${u}(${r}, ${l})) return INVALID;`),r}if(i==="ipv6"){let u=U(t,si);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="cidrv6"){let u=U(t,ya);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="credit_card"){let u=U(t,wa);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="iban"){let u=U(t,xa);return e.write(`if (!${u}(${r})) return INVALID;`),r}let s=n;if(i==="url"||i==="httpurl"||s.normalize||s.hostname!==void 0||s.protocol!==void 0){let u=U(t,ga),l=U(t,n),d=F(t),m=F(t);if(e.write(`const ${d} = ${r}.trim();`),e.write(`const ${m} = ${u}(${d}, ${l});`),e.write(`if (typeof ${m} === "number") return INVALID;`),s.hostname!==void 0){let g=U(t,Ca);e.write(`if (!${g}(${m}, ${l}.hostname)) return INVALID;`)}if(s.protocol!==void 0){let g=U(t,ka);e.write(`if (!${g}(${m}, ${l}.protocol)) return INVALID;`)}if(!o)return null;let f=F(t),h=s.normalize?`${m}.href`:`${U(t,ii)}(${d})`;return e.write(`const ${f} = ${h};`),f}let a=n.fn;if(a){if(er(a))throw new Q(`async string format ${i}`);let u=U(t,a);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(kx.has(i)&&n.pattern){let u=U(t,n.pattern);return e.write(`${u}.lastIndex = 0;`),e.write(`if (!${u}.test(${r})) return INVALID;`),r}let c=n.format;switch(c){case"regex":throw new Q("regex format without a pattern");case"lowercase":e.write(`if (${r} !== ${r}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${r} !== ${r}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${r}.includes(${Xe(n.includes)})) return INVALID;`);break;case"starts_with":{let u=n.prefix;e.write(`if (${r}.slice(0, ${u.length}) !== ${Xe(u)}) return INVALID;`);break}case"ends_with":{let u=n.suffix;e.write(`if (${r}.slice(-${u.length}) !== ${Xe(u)}) return INVALID;`);break}default:throw new Q(`string format ${c}`)}return r}function ke(e,t,n,r,o=!0){let i=n._zod.def,s=i.type;if(i.coerce)throw new Q(`coercion (z.coerce.${s}())`);let a=o||!!i.checks?.length,c;switch(s){case"string":c=yx(e,t,n,r,a);break;case"number":c=bx(e,n,r);break;case"boolean":c=vx(e,r);break;case"bigint":c=wx(e,n,r);break;case"symbol":c=xx(e,r);break;case"undefined":c=Ix(e,r);break;case"null":c=_x(e,r);break;case"any":case"unknown":c=r;break;case"never":e.write("return INVALID;"),c=r;break;case"void":c=Sx(e,r);break;case"nan":c=Lx(e,r);break;case"date":c=Px(e,r);break;case"object":c=Mx(e,t,n,r,a);break;case"optional":c=Rx(e,t,n,r,a);break;case"nullable":c=Ax(e,t,n,r,a);break;case"array":c=Dx(e,t,n,r,a);break;case"literal":c=Ex(e,t,n,r);break;case"enum":c=Nx(e,t,n,r);break;case"readonly":{let u=w0(e,t,n,r),l=F(t);e.write(`const ${l} = Object.freeze(${u});`),c=l;break}case"success":w0(e,t,n,r),c="true";break;case"default":case"prefault":c=Ox(e,t,n,r);break;case"nonoptional":c=zx(e,t,n,r);break;case"tuple":c=Zx(e,t,n,r);break;case"union":c=jx(e,t,n,r);break;case"intersection":c=Vx(e,t,n,r);break;case"record":c=Hx(e,t,n,r);break;case"map":c=Ux(e,t,n,r);break;case"set":c=Gx(e,t,n,r);break;case"file":c=Kx(e,r);break;case"template_literal":c=qx(e,t,n,r);break;case"lazy":c=Jx(e,t,n,r);break;case"pipe":c=Yx(e,t,n,r);break;case"custom":c=Xx(e,t,n,r);break;case"transform":c=tI(e,t,n,r);break;case"catch":c=eI(e,t,n,r);break;default:throw new Q(`schema type ${s}`)}return c===null?null:cx(e,t,n,c)}function yx(e,t,n,r,o=!0){e.write(`if (typeof ${r} !== "string") return INVALID;`);let i=n._zod.def;return i.format===void 0?r:L0(e,t,i,r,o)}function bx(e,t,n){e.write(`if (typeof ${n} !== "number" || !Number.isFinite(${n})) return INVALID;`);let r=t._zod.def;return r.check==="number_format"&&r.format&&S0(e,{format:r.format},n),n}function vx(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function wx(e,t,n){e.write(`if (typeof ${n} !== "bigint") return INVALID;`);let r=t._zod.def;if(r.format)switch(r.format){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break}return n}function xx(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function Ix(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function _x(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function Sx(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function Lx(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function Px(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function Mx(e,t,n,r,o=!0){let i=n._zod.def;e.write(`if (typeof ${r} !== "object" || ${r} === null || Array.isArray(${r})) return INVALID;`);let s=i.shape,a=Object.keys(s),c=Object.getOwnPropertySymbols(s),u=c.length?[...a,...c]:a,l=y=>typeof y=="symbol"?U(t,y):Xe(y),d=y=>typeof y=="symbol"?`[${l(y)}]`:Xe(y),m=s;if(a.includes("__proto__"))throw new Q('object shape key "__proto__"');let f=new Map;for(let y of u){let w=m[y],T=l(y),M=F(t);if(e.write(`const ${M} = ${r}[${T}];`),w._zod.optin!==void 0){let x=F(t);e.write(`let ${x} = (() => {`),e.indented(A=>{let V=Ue(A,t,w,M);A.write(`return ${V};`)}),e.write("})();"),w._zod.optout==="optional"?(e.write(`if (${x} === INVALID) {`),e.indented(A=>{A.write(`if (${T} in ${r}) return INVALID;`),A.write(`${x} = undefined;`)}),e.write("}")):e.write(`if (${x} === INVALID) return INVALID;`),f.set(y,x)}else{$x(w)&&e.write(`if (!(${T} in ${r})) return INVALID;`);let x=Ue(e,t,w,M,o);x!==null&&f.set(y,x)}}let h=i.catchall,g="none";if(h){let y=h._zod.def.type;if(y==="never"){let w=a.map(T=>`k !== ${Xe(T)}`).join(" && ")||"true";e.write(`for (const k in ${r}) {`),e.indented(T=>{T.write(`if (${w}) return INVALID;`)}),e.write("}")}else(y==="unknown"||y==="any")&&!h._zod.def.checks?.length?g="passthrough":g="schema"}let k=F(t),v=u.some(y=>v0(m[y])||Q1(m[y]));if(!o){if(g==="schema"){let y=a.length>0?U(t,new Set(a)):null;e.write(`for (const k in ${r}) {`),e.indented(w=>{w.write('if (k === "__proto__") continue;'),y&&w.write(`if (${y}.has(k)) continue;`);let T=F(t);w.write(`const ${T} = ${r}[k];`),Ue(w,t,h,T,!1)}),e.write("}")}return null}if(v){e.write(`const ${k} = {};`);for(let y of u){let w=l(y),T=f.get(y);Q1(m[y])?e.write(`if (${w} in ${r}) ${k}[${w}] = ${T};`):v0(m[y])?e.write(`if (${T} !== undefined || ${w} in ${r}) ${k}[${w}] = ${T};`):e.write(`${k}[${w}] = ${T};`)}}else{let y=u.map(w=>`${d(w)}: ${f.get(w)}`).join(", ");e.write(`const ${k} = { ${y} };`)}if(g!=="none"){let y=a.length>0?U(t,new Set(a)):null;e.write(`for (const k in ${r}) {`),e.indented(w=>{if(w.write('if (k === "__proto__") continue;'),y&&w.write(`if (${y}.has(k)) continue;`),g==="passthrough")w.write(`${k}[k] = ${r}[k];`);else{let T=F(t);w.write(`const ${T} = ${r}[k];`);let M=Ue(w,t,h,T);w.write(`${k}[k] = ${M};`)}}),e.write("}")}return k}function Rx(e,t,n,r,o=!0){let i=n._zod.def;if(Tx(n))return ke(e,t,i.innerType,r,o);if(i.innerType._zod.optin==="defaulted"){let a=F(t),c=F(t);return e.write(`let ${a};`),e.write(`if (${r} === undefined) {`),e.indented(u=>{u.write(`const ${c} = (() => {`),u.indented(l=>{let d=ke(l,t,i.innerType,r);l.write(`return ${d};`)}),u.write("})();"),u.write(`if (${c} !== INVALID) ${a} = ${c};`)}),e.write("} else {"),e.indented(u=>{let l=ke(u,t,i.innerType,r);u.write(`${a} = ${l};`)}),e.write("}"),a}let s=o?F(t):null;return s&&e.write(`let ${s};`),e.write(`if (${r} !== undefined) {`),e.indented(a=>{let c=ke(a,t,i.innerType,r,o);s&&c!==null&&a.write(`${s} = ${c};`)}),e.write("}"),s}function Tx(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function $x(e){return e._zod.optin===void 0&&Xn(e)}function Xn(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return t.innerType?Xn(t.innerType):!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return t.innerType?Xn(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some(Xn):!0;case"intersection":return!t.left||!t.right?!0:Xn(t.left)&&Xn(t.right);case"pipe":return t.in?Xn(t.in):!0;default:return!0}}function Q1(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function v0(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&Or(e)}function Or(e){let t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return t.innerType?Or(t.innerType):!0;case"union":return t.options?t.options.some(Or):!0;case"intersection":return!t.left||!t.right||Or(t.left)||Or(t.right);case"pipe":return t.out?Or(t.out):!0;default:return!0}}function Ax(e,t,n,r,o=!0){let i=n._zod.def,s=o?F(t):null;return s&&e.write(`let ${s} = null;`),e.write(`if (${r} !== null) {`),e.indented(a=>{let c=ke(a,t,i.innerType,r,o);s&&c!==null&&a.write(`${s} = ${c};`)}),e.write("}"),s}function Dx(e,t,n,r,o=!0){let i=n._zod.def;e.write(`if (!Array.isArray(${r})) return INVALID;`);let s=o?F(t):null,a=F(t),c=F(t);return s&&e.write(`const ${s} = new Array(${r}.length);`),e.write(`for (let ${a} = 0; ${a} < ${r}.length; ${a}++) {`),e.indented(u=>{u.write(`const ${c} = ${r}[${a}];`);let l=Ue(u,t,i.element,c,o);s&&l!==null&&u.write(`${s}[${a}] = ${l};`)}),e.write("}"),s}function Ex(e,t,n,r){let i=n._zod.def.values;if(i.length!==1){let a=U(t,new Set(i));return e.write(`if (!${a}.has(${r})) return INVALID;`),r}let s=i[0];if(typeof s=="number"&&Number.isNaN(s)){let a=U(t,new Set(i));return e.write(`if (!${a}.has(${r})) return INVALID;`),r}if(typeof s=="string")e.write(`if (${r} !== ${Xe(s)}) return INVALID;`);else if(typeof s=="number"||typeof s=="boolean")e.write(`if (${r} !== ${s}) return INVALID;`);else if(s===null)e.write(`if (${r} !== null) return INVALID;`);else if(s===void 0)e.write(`if (${r} !== undefined) return INVALID;`);else if(typeof s=="bigint")e.write(`if (${r} !== ${s}n) return INVALID;`);else throw new Q(`literal type ${typeof s}`);return r}function Nx(e,t,n,r){let o=n._zod.values;if(!o)throw new Q("enum schema without enumerated values");let i=U(t,o);return e.write(`if (!${i}.has(${r})) return INVALID;`),r}function w0(e,t,n,r){let o=n._zod.def;return ke(e,t,o.innerType,r)}function Ox(e,t,n,r){let o=n._zod.def,s=Object.getOwnPropertyDescriptor(n._zod.def,"defaultValue")?()=>n._zod.def.defaultValue:void 0;if(n._zod.def.type==="prefault"){if(!s)return ke(e,t,o.innerType,r);let c=U(t,s),u=F(t);return e.write(`let ${u} = ${r};`),e.write(`if (${r} === undefined) ${u} = ${c}();`),ke(e,t,o.innerType,u)}let a=F(t);if(s){let c=U(t,s),u=U(t,Vo);e.write(`let ${a};`),e.write(`if (${r} === undefined) {`),e.indented(l=>{l.write(`${a} = ${u}(${c}());`)}),e.write("} else {"),e.indented(l=>{let d=ke(l,t,o.innerType,r);l.write(`${a} = ${d} === undefined ? ${u}(${c}()) : ${d};`)}),e.write("}")}else e.write(`let ${a};`),e.write(`if (${r} !== undefined) {`),e.indented(c=>{let u=ke(c,t,o.innerType,r);c.write(`${a} = ${u};`)}),e.write("}");return a}function zx(e,t,n,r){let o=n._zod.def,i=ke(e,t,o.innerType,r),s=F(t);return e.write(`const ${s} = ${i};`),e.write(`if (${s} === undefined) return INVALID;`),s}function Zx(e,t,n,r){let o=n._zod.def,i=o.items,s=o.rest;e.write(`if (!Array.isArray(${r})) return INVALID;`);let a=x0(i,"optin"),c=x0(i,"optout");s?e.write(`if (${r}.length < ${a}) return INVALID;`):e.write(`if (${r}.length < ${a} || ${r}.length > ${i.length}) return INVALID;`);let u=F(t);e.write(`const ${u} = [];`);for(let l=0;l<i.length;l++){let d=i[l];if(l>=c)e.write(`if (${u}.length === ${l}) {`),e.indented(m=>{m.write(`if (${l} < ${r}.length) {`),m.indented(f=>{let h=F(t);f.write(`const ${h} = ${r}[${l}];`);let g=Ue(f,t,d,h);f.write(`${u}[${l}] = ${g};`)}),m.write("} else {"),m.indented(f=>{if(Q1(d)){f.write(`${u}.length = ${l};`);return}let h=F(t),g=F(t);f.write(`const ${h} = undefined;`),f.write(`const ${g} = (() => {`),f.indented(k=>{let v=Ue(k,t,d,h);k.write(`return ${v};`)}),f.write("})();"),f.write(`if (${g} === INVALID || ${g} === undefined) ${u}.length = ${l};`),f.write(`else ${u}[${l}] = ${g};`)}),m.write("}")}),e.write("}");else{let m=F(t);e.write(`const ${m} = ${r}[${l}];`);let f=Ue(e,t,d,m);e.write(`${u}[${l}] = ${f};`)}}if(s){let l=F(t),d=F(t);e.write(`for (let ${l} = ${i.length}; ${l} < ${r}.length; ${l}++) {`),e.indented(m=>{m.write(`const ${d} = ${r}[${l}];`);let f=Ue(m,t,s,d);m.write(`${u}[${l}] = ${f};`)}),e.write("}")}return u}function x0(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function jx(e,t,n,r){let o=n._zod.def,i=o.options;if(o.discriminator)return Wx(e,t,o,r);if(o.inclusive===!1)throw new Q("exclusive unions (z.xor)");if(i.length===0)return e.write("return INVALID;"),r;if(i.length===1)return ke(e,t,i[0],r);if(i.every(c=>c._zod.def.type==="literal"&&!c._zod.def.checks?.length)){let c=new Set(i.flatMap(l=>l._zod.def.values)),u=U(t,c);return e.write(`if (!${u}.has(${r})) return INVALID;`),r}let a=F(t);e.write(`let ${a};`);for(let c=0;c<i.length;c++){let u=i[c];c===0?e.write(`${a} = (() => {`):e.write(`if (${a} === INVALID) ${a} = (() => {`),e.indented(l=>{let d=ke(l,t,u,r);l.write(`return ${d};`)}),e.write("})();")}return e.write(`if (${a} === INVALID) return INVALID;`),a}function Wx(e,t,n,r){if(n.unionFallback)throw new Q("discriminated union with unionFallback");if(n.options.length===0)return e.write("return INVALID;"),r;let o=F(t),i=F(t);e.write(`const ${o} = ${r}?.[${Xe(n.discriminator)}];`),e.write(`let ${i};`);let s=!0,a=new Set;for(let c of n.options){let u=c._zod.propValues?.[n.discriminator];if(!u||u.size===0)throw new Q("discriminated union option without static discriminator values");for(let m of u){if(a.has(m))throw new Q(`duplicate discriminator value ${String(m)}`);a.add(m)}let l=Array.from(u,m=>Fx(t,o,m)),d=s?"if":"else if";e.write(`${d} (${l.join(" || ")}) {`),e.indented(m=>{let f=ke(m,t,c,r);m.write(`${i} = ${f};`)}),e.write("}"),s=!1}return e.write("else { return INVALID; }"),i}function Fx(e,t,n){if(typeof n=="string")return`${t} === ${Xe(n)}`;if(typeof n=="number")return Number.isNaN(n)?`Number.isNaN(${t})`:`${t} === ${n}`;if(typeof n=="boolean")return`${t} === ${n}`;if(n===null)return`${t} === null`;if(n===void 0)return`${t} === undefined`;if(typeof n=="bigint")return`${t} === ${n}n`;if(typeof n=="symbol"){let r=U(e,n);return`${t} === ${r}`}throw new Q(`literal discriminator value ${String(n)}`)}function Vx(e,t,n,r){let o=n._zod.def;t.definite=!1;let i=Ue(e,t,o.left,r),s=Ue(e,t,o.right,r),a=U(t,Er),c=F(t);return e.write(`const ${c} = ${a}(${i}, ${s});`),e.write(`if (!${c}.valid) return INVALID;`),`${c}.data`}function Hx(e,t,n,r){let o=n._zod.def,i=U(t,yt);e.write(`if (!${i}(${r})) return INVALID;`);let s=F(t),a=F(t),c=F(t);e.write(`const ${s} = {};`);let u=o,l=u.partial?void 0:o.keyType._zod.values;if(l){let f=[];for(let g of l){if(!(typeof g=="string"||typeof g=="number"||typeof g=="symbol"))throw new Q(`record key value ${String(g)}`);let k=typeof g=="number"?g.toString():g;if(k==="__proto__")throw new Q('record key "__proto__"');f.push(k);let v=U(t,g),y=ke(e,t,o.keyType,v),w=F(t);e.write(`const ${w} = ${r}[${Bx(t,k)}];`);let T=Ue(e,t,o.valueType,w);e.write(`${s}[${y}] = ${T};`)}let h=U(t,new Set(f));return e.write(`for (const ${a} in ${r}) {`),e.indented(g=>{g.write(`if (${h}.has(${a})) continue;`),u.mode==="loose"?g.write(`if (${a} !== "__proto__") ${s}[${a}] = ${r}[${a}];`):g.write("return INVALID;")}),e.write("}"),s}let d=o.keyType._zod.def;if(!(d.type==="string"&&d.format===void 0&&!d.coerce&&(d.checks?.length??0)===0)){let f=o.mode==="loose",h=ja(o.keyType);h.definite===!1&&(t.definite=!1);let g=U(t,h),k=U(t,Qt),v=F(t);return I0(e,t,r,a,y=>{y.write(`let ${v} = ${g}(${a});`),y.write(`if (${v} === INVALID && typeof ${a} === "string" && ${k}.test(${a})) ${v} = ${g}(Number(${a}));`),f?y.write(`if (${v} === INVALID) { ${s}[${a}] = ${r}[${a}]; continue; }`):y.write(`if (${v} === INVALID) return INVALID;`),y.write(`if (${v} === "__proto__") continue;`);let w=F(t);y.write(`const ${w} = ${r}[${a}];`);let T=Ue(y,t,o.valueType,w);y.write(`${s}[${v}] = ${T};`)}),s}return I0(e,t,r,a,f=>{f.write(`const ${c} = ${r}[${a}];`);let h=Ue(f,t,o.valueType,c);f.write(`${s}[${a}] = ${h};`)},"return INVALID;"),s}function I0(e,t,n,r,o,i){let s=U(t,Object.prototype.propertyIsEnumerable),a=F(t),c=F(t),u=F(t);e.write(`const ${a} = Object.getOwnPropertySymbols(${n});`),e.write(`const ${c} = Object.getOwnPropertyNames(${n});`),e.write(`for (let ${u} = 0; ${u} < ${c}.length; ${u}++) {`),e.indented(l=>{l.write(`const ${r} = ${c}[${u}];`),l.write(`if (${r} === "__proto__" || !${s}.call(${n}, ${r})) continue;`),o(l)}),e.write("}"),e.write(`for (let ${u} = 0; ${u} < ${a}.length; ${u}++) {`),e.indented(l=>{l.write(`const ${r} = ${a}[${u}];`),l.write(`if (!${s}.call(${n}, ${r})) continue;`),i?l.write(i):o(l)}),e.write("}")}function Bx(e,t){return typeof t=="string"?Xe(t):U(e,t)}function Ux(e,t,n,r){let o=n._zod.def;e.write(`if (!(${r} instanceof Map)) return INVALID;`);let i=F(t),s=F(t),a=F(t);return e.write(`const ${i} = new Map();`),e.write(`for (const [${s}, ${a}] of ${r}) {`),e.indented(c=>{let u=ke(c,t,o.keyType,s),l=ke(c,t,o.valueType,a);c.write(`${i}.set(${u}, ${l});`)}),e.write("}"),i}function Gx(e,t,n,r){let o=n._zod.def;e.write(`if (!(${r} instanceof Set)) return INVALID;`);let i=F(t),s=F(t);return e.write(`const ${i} = new Set();`),e.write(`for (const ${s} of ${r}) {`),e.indented(a=>{let c=ke(a,t,o.valueType,s);a.write(`${i}.add(${c});`)}),e.write("}"),i}function Kx(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function qx(e,t,n,r){e.write(`if (typeof ${r} !== "string") return INVALID;`);let o=n._zod.pattern;if(o){let i=U(t,o);e.write(`${i}.lastIndex = 0;`),e.write(`if (!${i}.test(${r})) return INVALID;`)}return r}function Jx(e,t,n,r){let o=n._zod.def,i=Qn(t,o.getter),s=U(t,{parser:null});e.write(`if (!${s}.parser) {`),e.indented(c=>{c.write(`const inner = ${i}();`),c.write(`${s}.parser = function(input) {`),c.indented(u=>{u.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),u.write("return result.issues.length === 0 ? result.value : INVALID;")}),c.write("};")}),e.write("}");let a=F(t);return e.write(`const ${a} = ${s}.parser(${r});`),e.write(`if (${a} === INVALID) return INVALID;`),a}function Yx(e,t,n,r){let o=n._zod.def,i=ke(e,t,o.in,r);if(o.transform){if(er(o.transform))throw new Tt("z.compile: async transforms in pipes are not supported");let s=o.transform,c=Qn(t,l=>{let d={value:l,issues:[],addIssue:tp},m=s(l,d);return m instanceof Promise?et:d.issues.length===0?m:et}),u=F(t);return e.write(`const ${u} = ${c}(${i});`),e.write(`if (${u} === INVALID) return INVALID;`),ke(e,t,o.out,u)}else return ke(e,t,o.out,i)}function er(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function Xx(e,t,n,r){let o=n._zod.def;if(o.fn){if(er(o.fn))throw new Tt("z.compile: async custom predicates are not supported");let i=Qn(t,o.fn),s=U(t,X1),a=F(t);e.write(`const ${a} = ${i}(${r});`),e.write(`if (${a} instanceof Promise) ${s}();`),e.write(`if (!${a}) return INVALID;`)}else throw new Q("custom schema without a predicate function");return r}function Qx(e,t,n){let r=e._zod.run({value:n,issues:[]},{});if(r&&typeof r.then=="function")return et;let o=r;return o.issues.length===0?o.value:t()}function eI(e,t,n,r){let o=n._zod.def;if(!o.catchValue[Gs])throw new Q("catch with a callback (only a constant catch value compiles)",!1);let i=F(t);e.write(`let ${i} = (() => {`),e.indented(u=>{let l=Ue(u,t,o.innerType,r);u.write(`return ${l};`)}),e.write("})();");let s=U(t,o.innerType),a=Qn(t,o.catchValue),c=U(t,Qx);return e.write(`if (${i} === INVALID) {`),e.indented(u=>{u.write(`${i} = ${c}(${s}, ${a}, ${r});`),u.write(`if (${i} === INVALID) return INVALID;`)}),e.write("}"),i}function tI(e,t,n,r){let o=n._zod.def;if(o.transform){if(er(o.transform))throw new Tt("z.compile: async transforms are not supported");let i=o.transform,a=Qn(t,u=>{let l={value:u,issues:[],addIssue:tp},d=i(u,l);return d instanceof Promise?et:l.issues.length===0?d:et}),c=F(t);return e.write(`const ${c} = ${a}(${r});`),e.write(`if (${c} === INVALID) return INVALID;`),c}return r}function Wa(e){return e.checks&&(e.checks=[...e.checks]),e}function np(e,t){return new e(Wa({type:"string",...R(t)}))}function rp(e,t){return new e(Wa({type:"string",coerce:!0,...R(t)}))}function Fa(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...R(t)})}function Va(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...R(t)})}function Ha(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...R(t)})}function Ba(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...R(t)})}function Ua(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...R(t)})}function Ga(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...R(t)})}function Ci(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...R(t)})}function Ka(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...R(t)})}function qa(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...R(t)})}function Ja(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...R(t)})}function Ya(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...R(t)})}function Xa(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...R(t)})}function Qa(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...R(t)})}function ec(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...R(t)})}function tc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...R(t)})}function nc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...R(t)})}function op(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...R(t)})}function rc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...R(t)})}function oc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...R(t)})}function ic(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...R(t)})}function sc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...R(t)})}function ac(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...R(t)})}function ip(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...R(t)})}function sp(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...R(t)})}function cc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...R(t)})}var ap={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function ki(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...R(t)})}function yi(e,t){return new e({type:"string",format:"date",check:"string_format",...R(t)})}function bi(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...R(t)})}function vi(e,t){return new e({type:"string",format:"duration",check:"string_format",...R(t)})}function cp(e,t){return new e(Wa({type:"number",checks:[],...R(t)}))}function up(e,t){return new e(Wa({type:"number",coerce:!0,checks:[],...R(t)}))}function lp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...R(t)})}function dp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...R(t)})}function pp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...R(t)})}function fp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...R(t)})}function mp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...R(t)})}function hp(e,t){return new e({type:"boolean",...R(t)})}function gp(e,t){return new e({type:"boolean",coerce:!0,...R(t)})}function Cp(e,t){return new e({type:"bigint",...R(t)})}function kp(e,t){return new e({type:"bigint",coerce:!0,...R(t)})}function yp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...R(t)})}function bp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...R(t)})}function vp(e,t){return new e({type:"symbol",...R(t)})}function wp(e,t){return new e({type:"undefined",...R(t)})}function xp(e,t){return new e({type:"null",...R(t)})}function Ip(e){return new e({type:"any"})}function _p(e){return new e({type:"unknown"})}function Sp(e,t){return new e({type:"never",...R(t)})}function Lp(e,t){return new e({type:"void",...R(t)})}function Pp(e,t){return new e({type:"date",...R(t)})}function Mp(e,t){return new e({type:"date",coerce:!0,...R(t)})}function Rp(e,t){return new e({type:"nan",...R(t)})}function Wt(e,t){return new ua({check:"less_than",...R(t),value:e,inclusive:!1})}function mt(e,t){return new ua({check:"less_than",...R(t),value:e,inclusive:!0})}function Ft(e,t){return new la({check:"greater_than",...R(t),value:e,inclusive:!1})}function ht(e,t){return new la({check:"greater_than",...R(t),value:e,inclusive:!0})}function uc(e){return Ft(0,e)}function lc(e){return Wt(0,e)}function dc(e){return mt(0,e)}function pc(e){return ht(0,e)}function In(e,t){return new md({check:"multiple_of",...R(t),value:e})}function _n(e,t){return new Cd({check:"max_size",...R(t),maximum:e})}function Vt(e,t){return new kd({check:"min_size",...R(t),minimum:e})}function tr(e,t){return new yd({check:"size_equals",...R(t),size:e})}function nr(e,t){return new bd({check:"max_length",...R(t),maximum:e})}function en(e,t){return new vd({check:"min_length",...R(t),minimum:e})}function rr(e,t){return new wd({check:"length_equals",...R(t),length:e})}function zr(e,t){return new xd({check:"string_format",format:"regex",...R(t),pattern:e})}function Zr(e){return new Id({check:"string_format",format:"lowercase",...R(e)})}function jr(e){return new _d({check:"string_format",format:"uppercase",...R(e)})}function Wr(e,t){return new Sd({check:"string_format",format:"includes",...R(t),includes:e})}function Fr(e,t){return new Ld({check:"string_format",format:"starts_with",...R(t),prefix:e})}function Vr(e,t){return new Pd({check:"string_format",format:"ends_with",...R(t),suffix:e})}function fc(e,t,n){return new Md({check:"property",property:e,schema:t,...R(n)})}function Hr(e,t){return new Rd({check:"properties",shape:e,...R(t)})}function Br(e,t){return new Td({check:"mime_type",mime:e,...R(t)})}function $t(e){return new $d({check:"overwrite",tx:e})}function Ur(e){return $t(t=>t.normalize(e))}function Gr(){return $t(e=>e.trim())}function Kr(){return $t(e=>e.toLowerCase())}function qr(){return $t(e=>e.toUpperCase())}function Jr(){return $t(e=>hl(e))}function Tp(e,t,n){return new e({type:"array",element:t,...R(n)})}function nI(e,t,n){return new e({type:"union",options:t,...R(n)})}function rI(e,t,n){return new e({type:"union",options:t,inclusive:!1,...R(n)})}function oI(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...R(r)})}function iI(e,t,n){return new e({type:"intersection",left:t,right:n})}function sI(e,t,n,r){let o=n instanceof K,i=o?r:n,s=o?n:null;return new e({type:"tuple",items:t,rest:s,...R(i)})}function aI(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...R(r)})}function cI(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...R(r)})}function uI(e,t,n){return new e({type:"set",valueType:t,...R(n)})}function lI(e,t,n){let r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new e({type:"enum",entries:r,...R(n)})}function dI(e,t,n){return new e({type:"enum",entries:t,...R(n)})}function pI(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...R(n)})}function $p(e,t){return new e({type:"file",...R(t)})}function fI(e,t){return new e({type:"transform",transform:t})}function mI(e,t){return new e({type:"optional",innerType:t})}function hI(e,t){return new e({type:"nullable",innerType:t})}function gI(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Vo(n)}})}function CI(e,t,n){return new e({type:"nonoptional",innerType:t,...R(n)})}function kI(e,t){return new e({type:"success",innerType:t})}function yI(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:wl(n)})}function bI(e,t,n){return new e({type:"pipe",in:t,out:n})}function vI(e,t){return new e({type:"readonly",innerType:t})}function wI(e,t,n){return new e({type:"template_literal",parts:t,...R(n)})}function xI(e,t){return new e({type:"lazy",getter:t})}function II(e,t){return new e({type:"promise",innerType:t})}function Ap(e,t,n){let r=R(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function Dp(e,t,n){return new e({type:"custom",check:"custom",fn:t,...R(n)})}function Ep(e,t){let n=P0(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Mr(o,r.value,n._zod.def));else{let i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=r.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),r.issues.push(Mr(i))}},e(r.value,r)),t);return n}function P0(e,t){let n=new pe({check:"custom",...R(t)});return n._zod.check=e,n}function Np(e){let t=new pe({check:"describe"});return t._zod.onattach=[n=>{let r=Fe.get(n)??{};Fe.add(n,{...r,description:e})}],t._zod.check=()=>{},t}function Op(e){let t=new pe({check:"meta"});return t._zod.onattach=[n=>{let r=Fe.get(n)??{};Fe.add(n,{...r,...e})}],t._zod.check=()=>{},t}function zp(e,t){let n=R(t),r=n.truthy??["true","1","yes","on","y","enabled"],o=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(r=r.map(f=>typeof f=="string"?f.toLowerCase():f),o=o.map(f=>typeof f=="string"?f.toLowerCase():f));let i=new Set(r),s=new Set(o),a=e.Codec??di,c=e.Boolean??ui,u=e.String??Jn,l=new u({type:"string",error:n.error}),d=new c({type:"boolean",error:n.error}),m=new a({type:"pipe",in:l,out:d,transform:((f,h)=>{let g=f;return n.case!=="sensitive"&&(g=g.toLowerCase()),i.has(g)?!0:s.has(g)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:h.value,inst:m,continue:!1}),{})}),reverseTransform:((f,h)=>f===!0?r[0]||"true":o[0]||"false"),error:n.error});return m._zod.bag.truthy=r,m._zod.bag.falsy=o,m._zod.bag.case=n.case??"insensitive",m}function or(e,t,n,r={}){let o=R(r),i={check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:a=>n.test(a),...o};return n instanceof RegExp&&(i.pattern=n),new e(i)}function wi(e,...t){for(let n of t)for(let r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&We(e,r,n[r]);return e}function Sn(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Fe,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Me(e,t,n,r,o){let i=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:o}):t.unrepresentable;if(i==="any")return!1;if(i===void 0||i==="throw")throw new Error(o);return Object.assign(n,i),!0}function le(e,t,n={path:[],schemaPath:[]}){var r;let o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let l={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,l);else{let m=s.schema,f=t.processors[o.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);f(e,t,m,l)}let d=e._zod.parent;d&&(s.ref||(s.ref=d),le(d,t,l),t.seen.get(d).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&wi(s.schema,c),t.io==="input"&&tt(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function M0(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Ln(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let s of e.seen.entries()){let a=e.metadataRegistry.get(s[0])?.id;if(a){let c=r.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(a,s[0])}}let o=s=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(s[0])?.id,m=e.external.uri??(h=>h);if(d)return{ref:m(d)};let f=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=f,{defId:f,ref:`${m("__shared")}#/${a}/${M0(f)}`}}let c="#",u=`${c}/${a}/`;if(s[1]===n&&!s[1].schema.id)return{ref:c};let l=s[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+M0(l)}},i=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:c,defId:u}=o(s);a.def={...a.schema},u&&(a.defId=u);let l=a.schema;for(let d in l)delete l[d];l.$ref=c};if(e.cycles==="throw")for(let s of e.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
64
+ }`,m;try{m=new l(...s,d)(...a)}catch(f){throw new Q(`this schema (generated code failed to evaluate: ${f.message})`)}return t?.debug&&(m.code=u),m.definite=r.definite,m}function U(e,t){for(let[r,o]of e.constants)if(o===t)return r;let n=`c${e.constantCounter++}`;return e.constants.set(n,t),n}function Qn(e,t){return e.definite=!1,U(e,t)}function F(e){return`v${e.varCounter++}`}function sx(e,t){let n=e._zod.run({value:t,issues:[]},{});if(n&&typeof n.then=="function")return et;let r=n;return r.issues.length===0?r.value:et}function Ue(e,t,n,r,o=!0){let i=e.content.length,s=t.constants.size,a=t.constantCounter,c=t.varCounter;try{return ke(e,t,n,r,o)}catch(u){if(!(u instanceof Q)||!u.islandable)throw u;if(e.content.length=i,t.constants.size>s){let l=Array.from(t.constants.keys()).slice(s);for(let d of l)t.constants.delete(d)}return t.constantCounter=a,t.varCounter=c,ax(e,t,n,r)}}function ax(e,t,n,r){t.definite=!1;let o=U(t,n),i=U(t,sx),s=F(t);return e.write(`const ${s} = ${i}(${o}, ${r});`),e.write(`if (${s} === INVALID) return INVALID;`),s}var cx=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function ux(e,t,n,r){let o=n._zod.def.checks;if(!o||o.length===0)return r;let i=r;for(let s of o){let a=s._zod.def;if(a.when&&!cx.has(a.check))throw new Q('check with a custom "when" condition');switch(a.check){case"greater_than":lx(e,t,a,i);break;case"less_than":dx(e,t,a,i);break;case"multiple_of":px(e,t,a,i);break;case"number_format":L0(e,a,i);break;case"min_length":{let c=Yn(a.minimum,"min_length"),u=X1(e,t,i,`${i}.length >= ${c} && ${i}.length < ${a.minimum*2}`);e.write(`if (${u} < ${c}) return INVALID;`);break}case"max_length":{let c=Yn(a.maximum,"max_length"),u=X1(e,t,i,`${i}.length > ${c}`);e.write(`if (${u} > ${c}) return INVALID;`);break}case"length_equals":{let c=Yn(a.length,"length_equals"),u=X1(e,t,i,`${i}.length >= ${c} && ${i}.length <= ${a.length*2}`);e.write(`if (${u} !== ${c}) return INVALID;`);break}case"min_size":e.write(`if (${i}.size < ${Yn(a.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${i}.size > ${Yn(a.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${i}.size !== ${Yn(a.size,"size_equals")}) return INVALID;`);break;case"string_format":i=P0(e,t,a,i);break;case"custom":i=kx(e,t,s,i);break;case"bigint_format":fx(e,a,i);break;case"mime_type":mx(e,t,a,i);break;case"property":gx(e,t,a,i);break;case"properties":hx(e,t,a,i);break;case"overwrite":{let c=F(t);Cx(e,t,s,i,c),i=c;break}default:throw new Q(`check type ${a.check}`)}}return i}function X1(e,t,n,r){let o=U(t,Gn),i=F(t);return e.write(`const ${i} = typeof ${n} === "string" && ${r} ? ${o}(${n}) : ${n}.length;`),i}function Yn(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new Q(`${t} bound of type ${typeof e}`);return`${e}`}function S0(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new Q("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new Q("comparison check with Invalid Date bound");return U(e,t)}throw new Q(`comparison check bound of type ${typeof t}`)}function lx(e,t,n,r){let o=n.inclusive?"<":"<=";e.write(`if (${r} ${o} ${S0(t,n.value)}) return INVALID;`)}function dx(e,t,n,r){let o=n.inclusive?">":">=";e.write(`if (${r} ${o} ${S0(t,n.value)}) return INVALID;`)}function px(e,t,n,r){if(typeof n.value=="bigint"){if(n.value===BigInt(0))throw new Q("multiple_of check with a zero divisor");e.write(`if (${r} % ${n.value}n !== 0n) return INVALID;`)}else{let o=U(t,Fo);e.write(`if (${o}(${r}, ${Yn(n.value,"multiple_of")}) !== 0) return INVALID;`)}}function L0(e,t,n){let r=t.format;switch(r){case"safeint":e.write(`if (!Number.isSafeInteger(${n})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${n}) || ${n} < -2147483648 || ${n} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${n}) || ${n} < 0 || ${n} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${n}) || ${n} < -3.4028234663852886e38 || ${n} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${n})) return INVALID;`);break;default:throw new Q(`number format ${r}`)}}function fx(e,t,n){let r=t.format;if(r)switch(r){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break;default:throw new Q(`bigint format ${r}`)}}function mx(e,t,n,r){let o=n.mime;if(o&&o.length>0){let i=U(t,new Set(o));e.write(`if (!${i}.has(${r}.type)) return INVALID;`)}}function hx(e,t,n,r){if(n.when)throw new Q('check with a custom "when" condition');e.write(`if (${r} == null) return INVALID;`);let o=n.shape;for(let i of Reflect.ownKeys(o)){let s=typeof i=="symbol"?U(t,i):Xe(i),a=F(t);e.write(`const ${a} = ${r}[${s}];`),Ue(e,t,o[i],a,!1)}}function gx(e,t,n,r){let o=`${r}[${JSON.stringify(n.property)}]`;ke(e,t,n.schema,o)}function Cx(e,t,n,r,o){let i=n._zod.def.tx;if(!i)throw new Q("overwrite check without a transform function");if(er(i))throw new Tt("z.compile: async overwrite transforms are not supported");let s=U(t,i);e.write(`const ${o} = ${s}(${r});`)}function Q1(){throw new ut}function np(e){this.issues.push(e)}function kx(e,t,n,r){let o=n._zod.def;if(o.fn){if(er(o.fn))throw new Tt("z.compile: async .refine() predicates are not supported");let i=Qn(t,o.fn),s=U(t,Q1),a=F(t);return e.write(`const ${a} = ${i}(${r});`),e.write(`if (${a} instanceof Promise) ${s}();`),e.write(`if (!${a}) return INVALID;`),r}if(n._zod.check){if(er(n._zod.check))throw new Tt("z.compile: async .superRefine() / check functions are not supported");let i=n._zod.check,a=Qn(t,u=>{let l={value:u,issues:[],addIssue:np};return i(l)instanceof Promise&&Q1(),l.issues.length===0?l.value:et}),c=F(t);return e.write(`const ${c} = ${a}(${r});`),e.write(`if (${c} === INVALID) return INVALID;`),c}throw new Q("custom check without a predicate or check function")}var yx=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function P0(e,t,n,r,o=!0){let i=n.format;if(i==="base64"){let u=U(t,ai);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="base64url"){let u=U(t,wa);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="jwt"){let u=U(t,_a),l=U(t,n.alg??null);return e.write(`if (!${u}(${r}, ${l})) return INVALID;`),r}if(i==="ipv6"){let u=U(t,si);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="cidrv6"){let u=U(t,ba);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="credit_card"){let u=U(t,xa);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="iban"){let u=U(t,Ia);return e.write(`if (!${u}(${r})) return INVALID;`),r}let s=n;if(i==="url"||i==="httpurl"||s.normalize||s.hostname!==void 0||s.protocol!==void 0){let u=U(t,Ca),l=U(t,n),d=F(t),m=F(t);if(e.write(`const ${d} = ${r}.trim();`),e.write(`const ${m} = ${u}(${d}, ${l});`),e.write(`if (typeof ${m} === "number") return INVALID;`),s.hostname!==void 0){let g=U(t,ka);e.write(`if (!${g}(${m}, ${l}.hostname)) return INVALID;`)}if(s.protocol!==void 0){let g=U(t,ya);e.write(`if (!${g}(${m}, ${l}.protocol)) return INVALID;`)}if(!o)return null;let f=F(t),h=s.normalize?`${m}.href`:`${U(t,ii)}(${d})`;return e.write(`const ${f} = ${h};`),f}let a=n.fn;if(a){if(er(a))throw new Q(`async string format ${i}`);let u=U(t,a);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(yx.has(i)&&n.pattern){let u=U(t,n.pattern);return e.write(`${u}.lastIndex = 0;`),e.write(`if (!${u}.test(${r})) return INVALID;`),r}let c=n.format;switch(c){case"regex":throw new Q("regex format without a pattern");case"lowercase":e.write(`if (${r} !== ${r}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${r} !== ${r}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${r}.includes(${Xe(n.includes)})) return INVALID;`);break;case"starts_with":{let u=n.prefix;e.write(`if (${r}.slice(0, ${u.length}) !== ${Xe(u)}) return INVALID;`);break}case"ends_with":{let u=n.suffix;e.write(`if (${r}.slice(-${u.length}) !== ${Xe(u)}) return INVALID;`);break}default:throw new Q(`string format ${c}`)}return r}function ke(e,t,n,r,o=!0){let i=n._zod.def,s=i.type;if(i.coerce)throw new Q(`coercion (z.coerce.${s}())`);let a=o||!!i.checks?.length,c;switch(s){case"string":c=bx(e,t,n,r,a);break;case"number":c=vx(e,n,r);break;case"boolean":c=wx(e,r);break;case"bigint":c=xx(e,n,r);break;case"symbol":c=Ix(e,r);break;case"undefined":c=_x(e,r);break;case"null":c=Sx(e,r);break;case"any":case"unknown":c=r;break;case"never":e.write("return INVALID;"),c=r;break;case"void":c=Lx(e,r);break;case"nan":c=Px(e,r);break;case"date":c=Mx(e,r);break;case"object":c=Rx(e,t,n,r,a);break;case"optional":c=Tx(e,t,n,r,a);break;case"nullable":c=Dx(e,t,n,r,a);break;case"array":c=Ex(e,t,n,r,a);break;case"literal":c=Nx(e,t,n,r);break;case"enum":c=Ox(e,t,n,r);break;case"readonly":{let u=x0(e,t,n,r),l=F(t);e.write(`const ${l} = Object.freeze(${u});`),c=l;break}case"success":x0(e,t,n,r),c="true";break;case"default":case"prefault":c=zx(e,t,n,r);break;case"nonoptional":c=Zx(e,t,n,r);break;case"tuple":c=jx(e,t,n,r);break;case"union":c=Wx(e,t,n,r);break;case"intersection":c=Hx(e,t,n,r);break;case"record":c=Bx(e,t,n,r);break;case"map":c=Gx(e,t,n,r);break;case"set":c=Kx(e,t,n,r);break;case"file":c=qx(e,r);break;case"template_literal":c=Jx(e,t,n,r);break;case"lazy":c=Yx(e,t,n,r);break;case"pipe":c=Xx(e,t,n,r);break;case"custom":c=Qx(e,t,n,r);break;case"transform":c=nI(e,t,n,r);break;case"catch":c=tI(e,t,n,r);break;default:throw new Q(`schema type ${s}`)}return c===null?null:ux(e,t,n,c)}function bx(e,t,n,r,o=!0){e.write(`if (typeof ${r} !== "string") return INVALID;`);let i=n._zod.def;return i.format===void 0?r:P0(e,t,i,r,o)}function vx(e,t,n){e.write(`if (typeof ${n} !== "number" || !Number.isFinite(${n})) return INVALID;`);let r=t._zod.def;return r.check==="number_format"&&r.format&&L0(e,{format:r.format},n),n}function wx(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function xx(e,t,n){e.write(`if (typeof ${n} !== "bigint") return INVALID;`);let r=t._zod.def;if(r.format)switch(r.format){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break}return n}function Ix(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function _x(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function Sx(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function Lx(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function Px(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function Mx(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function Rx(e,t,n,r,o=!0){let i=n._zod.def;e.write(`if (typeof ${r} !== "object" || ${r} === null || Array.isArray(${r})) return INVALID;`);let s=i.shape,a=Object.keys(s),c=Object.getOwnPropertySymbols(s),u=c.length?[...a,...c]:a,l=y=>typeof y=="symbol"?U(t,y):Xe(y),d=y=>typeof y=="symbol"?`[${l(y)}]`:Xe(y),m=s;if(a.includes("__proto__"))throw new Q('object shape key "__proto__"');let f=new Map;for(let y of u){let w=m[y],T=l(y),M=F(t);if(e.write(`const ${M} = ${r}[${T}];`),w._zod.optin!==void 0){let x=F(t);e.write(`let ${x} = (() => {`),e.indented(A=>{let V=Ue(A,t,w,M);A.write(`return ${V};`)}),e.write("})();"),w._zod.optout==="optional"?(e.write(`if (${x} === INVALID) {`),e.indented(A=>{A.write(`if (${T} in ${r}) return INVALID;`),A.write(`${x} = undefined;`)}),e.write("}")):e.write(`if (${x} === INVALID) return INVALID;`),f.set(y,x)}else{Ax(w)&&e.write(`if (!(${T} in ${r})) return INVALID;`);let x=Ue(e,t,w,M,o);x!==null&&f.set(y,x)}}let h=i.catchall,g="none";if(h){let y=h._zod.def.type;if(y==="never"){let w=a.map(T=>`k !== ${Xe(T)}`).join(" && ")||"true";e.write(`for (const k in ${r}) {`),e.indented(T=>{T.write(`if (${w}) return INVALID;`)}),e.write("}")}else(y==="unknown"||y==="any")&&!h._zod.def.checks?.length?g="passthrough":g="schema"}let k=F(t),v=u.some(y=>w0(m[y])||ep(m[y]));if(!o){if(g==="schema"){let y=a.length>0?U(t,new Set(a)):null;e.write(`for (const k in ${r}) {`),e.indented(w=>{w.write('if (k === "__proto__") continue;'),y&&w.write(`if (${y}.has(k)) continue;`);let T=F(t);w.write(`const ${T} = ${r}[k];`),Ue(w,t,h,T,!1)}),e.write("}")}return null}if(v){e.write(`const ${k} = {};`);for(let y of u){let w=l(y),T=f.get(y);ep(m[y])?e.write(`if (${w} in ${r}) ${k}[${w}] = ${T};`):w0(m[y])?e.write(`if (${T} !== undefined || ${w} in ${r}) ${k}[${w}] = ${T};`):e.write(`${k}[${w}] = ${T};`)}}else{let y=u.map(w=>`${d(w)}: ${f.get(w)}`).join(", ");e.write(`const ${k} = { ${y} };`)}if(g!=="none"){let y=a.length>0?U(t,new Set(a)):null;e.write(`for (const k in ${r}) {`),e.indented(w=>{if(w.write('if (k === "__proto__") continue;'),y&&w.write(`if (${y}.has(k)) continue;`),g==="passthrough")w.write(`${k}[k] = ${r}[k];`);else{let T=F(t);w.write(`const ${T} = ${r}[k];`);let M=Ue(w,t,h,T);w.write(`${k}[k] = ${M};`)}}),e.write("}")}return k}function Tx(e,t,n,r,o=!0){let i=n._zod.def;if($x(n))return ke(e,t,i.innerType,r,o);if(i.innerType._zod.optin==="defaulted"){let a=F(t),c=F(t);return e.write(`let ${a};`),e.write(`if (${r} === undefined) {`),e.indented(u=>{u.write(`const ${c} = (() => {`),u.indented(l=>{let d=ke(l,t,i.innerType,r);l.write(`return ${d};`)}),u.write("})();"),u.write(`if (${c} !== INVALID) ${a} = ${c};`)}),e.write("} else {"),e.indented(u=>{let l=ke(u,t,i.innerType,r);u.write(`${a} = ${l};`)}),e.write("}"),a}let s=o?F(t):null;return s&&e.write(`let ${s};`),e.write(`if (${r} !== undefined) {`),e.indented(a=>{let c=ke(a,t,i.innerType,r,o);s&&c!==null&&a.write(`${s} = ${c};`)}),e.write("}"),s}function $x(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function Ax(e){return e._zod.optin===void 0&&Xn(e)}function Xn(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return t.innerType?Xn(t.innerType):!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return t.innerType?Xn(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some(Xn):!0;case"intersection":return!t.left||!t.right?!0:Xn(t.left)&&Xn(t.right);case"pipe":return t.in?Xn(t.in):!0;default:return!0}}function ep(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function w0(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&Or(e)}function Or(e){let t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return t.innerType?Or(t.innerType):!0;case"union":return t.options?t.options.some(Or):!0;case"intersection":return!t.left||!t.right||Or(t.left)||Or(t.right);case"pipe":return t.out?Or(t.out):!0;default:return!0}}function Dx(e,t,n,r,o=!0){let i=n._zod.def,s=o?F(t):null;return s&&e.write(`let ${s} = null;`),e.write(`if (${r} !== null) {`),e.indented(a=>{let c=ke(a,t,i.innerType,r,o);s&&c!==null&&a.write(`${s} = ${c};`)}),e.write("}"),s}function Ex(e,t,n,r,o=!0){let i=n._zod.def;e.write(`if (!Array.isArray(${r})) return INVALID;`);let s=o?F(t):null,a=F(t),c=F(t);return s&&e.write(`const ${s} = new Array(${r}.length);`),e.write(`for (let ${a} = 0; ${a} < ${r}.length; ${a}++) {`),e.indented(u=>{u.write(`const ${c} = ${r}[${a}];`);let l=Ue(u,t,i.element,c,o);s&&l!==null&&u.write(`${s}[${a}] = ${l};`)}),e.write("}"),s}function Nx(e,t,n,r){let i=n._zod.def.values;if(i.length!==1){let a=U(t,new Set(i));return e.write(`if (!${a}.has(${r})) return INVALID;`),r}let s=i[0];if(typeof s=="number"&&Number.isNaN(s)){let a=U(t,new Set(i));return e.write(`if (!${a}.has(${r})) return INVALID;`),r}if(typeof s=="string")e.write(`if (${r} !== ${Xe(s)}) return INVALID;`);else if(typeof s=="number"||typeof s=="boolean")e.write(`if (${r} !== ${s}) return INVALID;`);else if(s===null)e.write(`if (${r} !== null) return INVALID;`);else if(s===void 0)e.write(`if (${r} !== undefined) return INVALID;`);else if(typeof s=="bigint")e.write(`if (${r} !== ${s}n) return INVALID;`);else throw new Q(`literal type ${typeof s}`);return r}function Ox(e,t,n,r){let o=n._zod.values;if(!o)throw new Q("enum schema without enumerated values");let i=U(t,o);return e.write(`if (!${i}.has(${r})) return INVALID;`),r}function x0(e,t,n,r){let o=n._zod.def;return ke(e,t,o.innerType,r)}function zx(e,t,n,r){let o=n._zod.def,s=Object.getOwnPropertyDescriptor(n._zod.def,"defaultValue")?()=>n._zod.def.defaultValue:void 0;if(n._zod.def.type==="prefault"){if(!s)return ke(e,t,o.innerType,r);let c=U(t,s),u=F(t);return e.write(`let ${u} = ${r};`),e.write(`if (${r} === undefined) ${u} = ${c}();`),ke(e,t,o.innerType,u)}let a=F(t);if(s){let c=U(t,s),u=U(t,Vo);e.write(`let ${a};`),e.write(`if (${r} === undefined) {`),e.indented(l=>{l.write(`${a} = ${u}(${c}());`)}),e.write("} else {"),e.indented(l=>{let d=ke(l,t,o.innerType,r);l.write(`${a} = ${d} === undefined ? ${u}(${c}()) : ${d};`)}),e.write("}")}else e.write(`let ${a};`),e.write(`if (${r} !== undefined) {`),e.indented(c=>{let u=ke(c,t,o.innerType,r);c.write(`${a} = ${u};`)}),e.write("}");return a}function Zx(e,t,n,r){let o=n._zod.def,i=ke(e,t,o.innerType,r),s=F(t);return e.write(`const ${s} = ${i};`),e.write(`if (${s} === undefined) return INVALID;`),s}function jx(e,t,n,r){let o=n._zod.def,i=o.items,s=o.rest;e.write(`if (!Array.isArray(${r})) return INVALID;`);let a=I0(i,"optin"),c=I0(i,"optout");s?e.write(`if (${r}.length < ${a}) return INVALID;`):e.write(`if (${r}.length < ${a} || ${r}.length > ${i.length}) return INVALID;`);let u=F(t);e.write(`const ${u} = [];`);for(let l=0;l<i.length;l++){let d=i[l];if(l>=c)e.write(`if (${u}.length === ${l}) {`),e.indented(m=>{m.write(`if (${l} < ${r}.length) {`),m.indented(f=>{let h=F(t);f.write(`const ${h} = ${r}[${l}];`);let g=Ue(f,t,d,h);f.write(`${u}[${l}] = ${g};`)}),m.write("} else {"),m.indented(f=>{if(ep(d)){f.write(`${u}.length = ${l};`);return}let h=F(t),g=F(t);f.write(`const ${h} = undefined;`),f.write(`const ${g} = (() => {`),f.indented(k=>{let v=Ue(k,t,d,h);k.write(`return ${v};`)}),f.write("})();"),f.write(`if (${g} === INVALID || ${g} === undefined) ${u}.length = ${l};`),f.write(`else ${u}[${l}] = ${g};`)}),m.write("}")}),e.write("}");else{let m=F(t);e.write(`const ${m} = ${r}[${l}];`);let f=Ue(e,t,d,m);e.write(`${u}[${l}] = ${f};`)}}if(s){let l=F(t),d=F(t);e.write(`for (let ${l} = ${i.length}; ${l} < ${r}.length; ${l}++) {`),e.indented(m=>{m.write(`const ${d} = ${r}[${l}];`);let f=Ue(m,t,s,d);m.write(`${u}[${l}] = ${f};`)}),e.write("}")}return u}function I0(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function Wx(e,t,n,r){let o=n._zod.def,i=o.options;if(o.discriminator)return Fx(e,t,o,r);if(o.inclusive===!1)throw new Q("exclusive unions (z.xor)");if(i.length===0)return e.write("return INVALID;"),r;if(i.length===1)return ke(e,t,i[0],r);if(i.every(c=>c._zod.def.type==="literal"&&!c._zod.def.checks?.length)){let c=new Set(i.flatMap(l=>l._zod.def.values)),u=U(t,c);return e.write(`if (!${u}.has(${r})) return INVALID;`),r}let a=F(t);e.write(`let ${a};`);for(let c=0;c<i.length;c++){let u=i[c];c===0?e.write(`${a} = (() => {`):e.write(`if (${a} === INVALID) ${a} = (() => {`),e.indented(l=>{let d=ke(l,t,u,r);l.write(`return ${d};`)}),e.write("})();")}return e.write(`if (${a} === INVALID) return INVALID;`),a}function Fx(e,t,n,r){if(n.unionFallback)throw new Q("discriminated union with unionFallback");if(n.options.length===0)return e.write("return INVALID;"),r;let o=F(t),i=F(t);e.write(`const ${o} = ${r}?.[${Xe(n.discriminator)}];`),e.write(`let ${i};`);let s=!0,a=new Set;for(let c of n.options){let u=c._zod.propValues?.[n.discriminator];if(!u||u.size===0)throw new Q("discriminated union option without static discriminator values");for(let m of u){if(a.has(m))throw new Q(`duplicate discriminator value ${String(m)}`);a.add(m)}let l=Array.from(u,m=>Vx(t,o,m)),d=s?"if":"else if";e.write(`${d} (${l.join(" || ")}) {`),e.indented(m=>{let f=ke(m,t,c,r);m.write(`${i} = ${f};`)}),e.write("}"),s=!1}return e.write("else { return INVALID; }"),i}function Vx(e,t,n){if(typeof n=="string")return`${t} === ${Xe(n)}`;if(typeof n=="number")return Number.isNaN(n)?`Number.isNaN(${t})`:`${t} === ${n}`;if(typeof n=="boolean")return`${t} === ${n}`;if(n===null)return`${t} === null`;if(n===void 0)return`${t} === undefined`;if(typeof n=="bigint")return`${t} === ${n}n`;if(typeof n=="symbol"){let r=U(e,n);return`${t} === ${r}`}throw new Q(`literal discriminator value ${String(n)}`)}function Hx(e,t,n,r){let o=n._zod.def;t.definite=!1;let i=Ue(e,t,o.left,r),s=Ue(e,t,o.right,r),a=U(t,Er),c=F(t);return e.write(`const ${c} = ${a}(${i}, ${s});`),e.write(`if (!${c}.valid) return INVALID;`),`${c}.data`}function Bx(e,t,n,r){let o=n._zod.def,i=U(t,yt);e.write(`if (!${i}(${r})) return INVALID;`);let s=F(t),a=F(t),c=F(t);e.write(`const ${s} = {};`);let u=o,l=u.partial?void 0:o.keyType._zod.values;if(l){let f=[];for(let g of l){if(!(typeof g=="string"||typeof g=="number"||typeof g=="symbol"))throw new Q(`record key value ${String(g)}`);let k=typeof g=="number"?g.toString():g;if(k==="__proto__")throw new Q('record key "__proto__"');f.push(k);let v=U(t,g),y=ke(e,t,o.keyType,v),w=F(t);e.write(`const ${w} = ${r}[${Ux(t,k)}];`);let T=Ue(e,t,o.valueType,w);e.write(`${s}[${y}] = ${T};`)}let h=U(t,new Set(f));return e.write(`for (const ${a} in ${r}) {`),e.indented(g=>{g.write(`if (${h}.has(${a})) continue;`),u.mode==="loose"?g.write(`if (${a} !== "__proto__") ${s}[${a}] = ${r}[${a}];`):g.write("return INVALID;")}),e.write("}"),s}let d=o.keyType._zod.def;if(!(d.type==="string"&&d.format===void 0&&!d.coerce&&(d.checks?.length??0)===0)){let f=o.mode==="loose",h=Wa(o.keyType);h.definite===!1&&(t.definite=!1);let g=U(t,h),k=U(t,Qt),v=F(t);return _0(e,t,r,a,y=>{y.write(`let ${v} = ${g}(${a});`),y.write(`if (${v} === INVALID && typeof ${a} === "string" && ${k}.test(${a})) ${v} = ${g}(Number(${a}));`),f?y.write(`if (${v} === INVALID) { ${s}[${a}] = ${r}[${a}]; continue; }`):y.write(`if (${v} === INVALID) return INVALID;`),y.write(`if (${v} === "__proto__") continue;`);let w=F(t);y.write(`const ${w} = ${r}[${a}];`);let T=Ue(y,t,o.valueType,w);y.write(`${s}[${v}] = ${T};`)}),s}return _0(e,t,r,a,f=>{f.write(`const ${c} = ${r}[${a}];`);let h=Ue(f,t,o.valueType,c);f.write(`${s}[${a}] = ${h};`)},"return INVALID;"),s}function _0(e,t,n,r,o,i){let s=U(t,Object.prototype.propertyIsEnumerable),a=F(t),c=F(t),u=F(t);e.write(`const ${a} = Object.getOwnPropertySymbols(${n});`),e.write(`const ${c} = Object.getOwnPropertyNames(${n});`),e.write(`for (let ${u} = 0; ${u} < ${c}.length; ${u}++) {`),e.indented(l=>{l.write(`const ${r} = ${c}[${u}];`),l.write(`if (${r} === "__proto__" || !${s}.call(${n}, ${r})) continue;`),o(l)}),e.write("}"),e.write(`for (let ${u} = 0; ${u} < ${a}.length; ${u}++) {`),e.indented(l=>{l.write(`const ${r} = ${a}[${u}];`),l.write(`if (!${s}.call(${n}, ${r})) continue;`),i?l.write(i):o(l)}),e.write("}")}function Ux(e,t){return typeof t=="string"?Xe(t):U(e,t)}function Gx(e,t,n,r){let o=n._zod.def;e.write(`if (!(${r} instanceof Map)) return INVALID;`);let i=F(t),s=F(t),a=F(t);return e.write(`const ${i} = new Map();`),e.write(`for (const [${s}, ${a}] of ${r}) {`),e.indented(c=>{let u=ke(c,t,o.keyType,s),l=ke(c,t,o.valueType,a);c.write(`${i}.set(${u}, ${l});`)}),e.write("}"),i}function Kx(e,t,n,r){let o=n._zod.def;e.write(`if (!(${r} instanceof Set)) return INVALID;`);let i=F(t),s=F(t);return e.write(`const ${i} = new Set();`),e.write(`for (const ${s} of ${r}) {`),e.indented(a=>{let c=ke(a,t,o.valueType,s);a.write(`${i}.add(${c});`)}),e.write("}"),i}function qx(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function Jx(e,t,n,r){e.write(`if (typeof ${r} !== "string") return INVALID;`);let o=n._zod.pattern;if(o){let i=U(t,o);e.write(`${i}.lastIndex = 0;`),e.write(`if (!${i}.test(${r})) return INVALID;`)}return r}function Yx(e,t,n,r){let o=n._zod.def,i=Qn(t,o.getter),s=U(t,{parser:null});e.write(`if (!${s}.parser) {`),e.indented(c=>{c.write(`const inner = ${i}();`),c.write(`${s}.parser = function(input) {`),c.indented(u=>{u.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),u.write("return result.issues.length === 0 ? result.value : INVALID;")}),c.write("};")}),e.write("}");let a=F(t);return e.write(`const ${a} = ${s}.parser(${r});`),e.write(`if (${a} === INVALID) return INVALID;`),a}function Xx(e,t,n,r){let o=n._zod.def,i=ke(e,t,o.in,r);if(o.transform){if(er(o.transform))throw new Tt("z.compile: async transforms in pipes are not supported");let s=o.transform,c=Qn(t,l=>{let d={value:l,issues:[],addIssue:np},m=s(l,d);return m instanceof Promise?et:d.issues.length===0?m:et}),u=F(t);return e.write(`const ${u} = ${c}(${i});`),e.write(`if (${u} === INVALID) return INVALID;`),ke(e,t,o.out,u)}else return ke(e,t,o.out,i)}function er(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function Qx(e,t,n,r){let o=n._zod.def;if(o.fn){if(er(o.fn))throw new Tt("z.compile: async custom predicates are not supported");let i=Qn(t,o.fn),s=U(t,Q1),a=F(t);e.write(`const ${a} = ${i}(${r});`),e.write(`if (${a} instanceof Promise) ${s}();`),e.write(`if (!${a}) return INVALID;`)}else throw new Q("custom schema without a predicate function");return r}function eI(e,t,n){let r=e._zod.run({value:n,issues:[]},{});if(r&&typeof r.then=="function")return et;let o=r;return o.issues.length===0?o.value:t()}function tI(e,t,n,r){let o=n._zod.def;if(!o.catchValue[Ks])throw new Q("catch with a callback (only a constant catch value compiles)",!1);let i=F(t);e.write(`let ${i} = (() => {`),e.indented(u=>{let l=Ue(u,t,o.innerType,r);u.write(`return ${l};`)}),e.write("})();");let s=U(t,o.innerType),a=Qn(t,o.catchValue),c=U(t,eI);return e.write(`if (${i} === INVALID) {`),e.indented(u=>{u.write(`${i} = ${c}(${s}, ${a}, ${r});`),u.write(`if (${i} === INVALID) return INVALID;`)}),e.write("}"),i}function nI(e,t,n,r){let o=n._zod.def;if(o.transform){if(er(o.transform))throw new Tt("z.compile: async transforms are not supported");let i=o.transform,a=Qn(t,u=>{let l={value:u,issues:[],addIssue:np},d=i(u,l);return d instanceof Promise?et:l.issues.length===0?d:et}),c=F(t);return e.write(`const ${c} = ${a}(${r});`),e.write(`if (${c} === INVALID) return INVALID;`),c}return r}function Fa(e){return e.checks&&(e.checks=[...e.checks]),e}function rp(e,t){return new e(Fa({type:"string",...R(t)}))}function op(e,t){return new e(Fa({type:"string",coerce:!0,...R(t)}))}function Va(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...R(t)})}function Ha(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...R(t)})}function Ba(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...R(t)})}function Ua(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...R(t)})}function Ga(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...R(t)})}function Ka(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...R(t)})}function Ci(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...R(t)})}function qa(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...R(t)})}function Ja(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...R(t)})}function Ya(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...R(t)})}function Xa(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...R(t)})}function Qa(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...R(t)})}function ec(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...R(t)})}function tc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...R(t)})}function nc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...R(t)})}function rc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...R(t)})}function ip(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...R(t)})}function oc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...R(t)})}function ic(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...R(t)})}function sc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...R(t)})}function ac(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...R(t)})}function cc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...R(t)})}function sp(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...R(t)})}function ap(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...R(t)})}function uc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...R(t)})}var cp={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function ki(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...R(t)})}function yi(e,t){return new e({type:"string",format:"date",check:"string_format",...R(t)})}function bi(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...R(t)})}function vi(e,t){return new e({type:"string",format:"duration",check:"string_format",...R(t)})}function up(e,t){return new e(Fa({type:"number",checks:[],...R(t)}))}function lp(e,t){return new e(Fa({type:"number",coerce:!0,checks:[],...R(t)}))}function dp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...R(t)})}function pp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...R(t)})}function fp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...R(t)})}function mp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...R(t)})}function hp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...R(t)})}function gp(e,t){return new e({type:"boolean",...R(t)})}function Cp(e,t){return new e({type:"boolean",coerce:!0,...R(t)})}function kp(e,t){return new e({type:"bigint",...R(t)})}function yp(e,t){return new e({type:"bigint",coerce:!0,...R(t)})}function bp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...R(t)})}function vp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...R(t)})}function wp(e,t){return new e({type:"symbol",...R(t)})}function xp(e,t){return new e({type:"undefined",...R(t)})}function Ip(e,t){return new e({type:"null",...R(t)})}function _p(e){return new e({type:"any"})}function Sp(e){return new e({type:"unknown"})}function Lp(e,t){return new e({type:"never",...R(t)})}function Pp(e,t){return new e({type:"void",...R(t)})}function Mp(e,t){return new e({type:"date",...R(t)})}function Rp(e,t){return new e({type:"date",coerce:!0,...R(t)})}function Tp(e,t){return new e({type:"nan",...R(t)})}function Wt(e,t){return new la({check:"less_than",...R(t),value:e,inclusive:!1})}function mt(e,t){return new la({check:"less_than",...R(t),value:e,inclusive:!0})}function Ft(e,t){return new da({check:"greater_than",...R(t),value:e,inclusive:!1})}function ht(e,t){return new da({check:"greater_than",...R(t),value:e,inclusive:!0})}function lc(e){return Ft(0,e)}function dc(e){return Wt(0,e)}function pc(e){return mt(0,e)}function fc(e){return ht(0,e)}function In(e,t){return new hd({check:"multiple_of",...R(t),value:e})}function _n(e,t){return new kd({check:"max_size",...R(t),maximum:e})}function Vt(e,t){return new yd({check:"min_size",...R(t),minimum:e})}function tr(e,t){return new bd({check:"size_equals",...R(t),size:e})}function nr(e,t){return new vd({check:"max_length",...R(t),maximum:e})}function en(e,t){return new wd({check:"min_length",...R(t),minimum:e})}function rr(e,t){return new xd({check:"length_equals",...R(t),length:e})}function zr(e,t){return new Id({check:"string_format",format:"regex",...R(t),pattern:e})}function Zr(e){return new _d({check:"string_format",format:"lowercase",...R(e)})}function jr(e){return new Sd({check:"string_format",format:"uppercase",...R(e)})}function Wr(e,t){return new Ld({check:"string_format",format:"includes",...R(t),includes:e})}function Fr(e,t){return new Pd({check:"string_format",format:"starts_with",...R(t),prefix:e})}function Vr(e,t){return new Md({check:"string_format",format:"ends_with",...R(t),suffix:e})}function mc(e,t,n){return new Rd({check:"property",property:e,schema:t,...R(n)})}function Hr(e,t){return new Td({check:"properties",shape:e,...R(t)})}function Br(e,t){return new $d({check:"mime_type",mime:e,...R(t)})}function $t(e){return new Ad({check:"overwrite",tx:e})}function Ur(e){return $t(t=>t.normalize(e))}function Gr(){return $t(e=>e.trim())}function Kr(){return $t(e=>e.toLowerCase())}function qr(){return $t(e=>e.toUpperCase())}function Jr(){return $t(e=>gl(e))}function $p(e,t,n){return new e({type:"array",element:t,...R(n)})}function rI(e,t,n){return new e({type:"union",options:t,...R(n)})}function oI(e,t,n){return new e({type:"union",options:t,inclusive:!1,...R(n)})}function iI(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...R(r)})}function sI(e,t,n){return new e({type:"intersection",left:t,right:n})}function aI(e,t,n,r){let o=n instanceof K,i=o?r:n,s=o?n:null;return new e({type:"tuple",items:t,rest:s,...R(i)})}function cI(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...R(r)})}function uI(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...R(r)})}function lI(e,t,n){return new e({type:"set",valueType:t,...R(n)})}function dI(e,t,n){let r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new e({type:"enum",entries:r,...R(n)})}function pI(e,t,n){return new e({type:"enum",entries:t,...R(n)})}function fI(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...R(n)})}function Ap(e,t){return new e({type:"file",...R(t)})}function mI(e,t){return new e({type:"transform",transform:t})}function hI(e,t){return new e({type:"optional",innerType:t})}function gI(e,t){return new e({type:"nullable",innerType:t})}function CI(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Vo(n)}})}function kI(e,t,n){return new e({type:"nonoptional",innerType:t,...R(n)})}function yI(e,t){return new e({type:"success",innerType:t})}function bI(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:xl(n)})}function vI(e,t,n){return new e({type:"pipe",in:t,out:n})}function wI(e,t){return new e({type:"readonly",innerType:t})}function xI(e,t,n){return new e({type:"template_literal",parts:t,...R(n)})}function II(e,t){return new e({type:"lazy",getter:t})}function _I(e,t){return new e({type:"promise",innerType:t})}function Dp(e,t,n){let r=R(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function Ep(e,t,n){return new e({type:"custom",check:"custom",fn:t,...R(n)})}function Np(e,t){let n=M0(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Mr(o,r.value,n._zod.def));else{let i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=r.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),r.issues.push(Mr(i))}},e(r.value,r)),t);return n}function M0(e,t){let n=new pe({check:"custom",...R(t)});return n._zod.check=e,n}function Op(e){let t=new pe({check:"describe"});return t._zod.onattach=[n=>{let r=Fe.get(n)??{};Fe.add(n,{...r,description:e})}],t._zod.check=()=>{},t}function zp(e){let t=new pe({check:"meta"});return t._zod.onattach=[n=>{let r=Fe.get(n)??{};Fe.add(n,{...r,...e})}],t._zod.check=()=>{},t}function Zp(e,t){let n=R(t),r=n.truthy??["true","1","yes","on","y","enabled"],o=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(r=r.map(f=>typeof f=="string"?f.toLowerCase():f),o=o.map(f=>typeof f=="string"?f.toLowerCase():f));let i=new Set(r),s=new Set(o),a=e.Codec??di,c=e.Boolean??ui,u=e.String??Jn,l=new u({type:"string",error:n.error}),d=new c({type:"boolean",error:n.error}),m=new a({type:"pipe",in:l,out:d,transform:((f,h)=>{let g=f;return n.case!=="sensitive"&&(g=g.toLowerCase()),i.has(g)?!0:s.has(g)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:h.value,inst:m,continue:!1}),{})}),reverseTransform:((f,h)=>f===!0?r[0]||"true":o[0]||"false"),error:n.error});return m._zod.bag.truthy=r,m._zod.bag.falsy=o,m._zod.bag.case=n.case??"insensitive",m}function or(e,t,n,r={}){let o=R(r),i={check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:a=>n.test(a),...o};return n instanceof RegExp&&(i.pattern=n),new e(i)}function wi(e,...t){for(let n of t)for(let r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&We(e,r,n[r]);return e}function Sn(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Fe,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Me(e,t,n,r,o){let i=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:o}):t.unrepresentable;if(i==="any")return!1;if(i===void 0||i==="throw")throw new Error(o);return Object.assign(n,i),!0}function le(e,t,n={path:[],schemaPath:[]}){var r;let o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let l={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,l);else{let m=s.schema,f=t.processors[o.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);f(e,t,m,l)}let d=e._zod.parent;d&&(s.ref||(s.ref=d),le(d,t,l),t.seen.get(d).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&wi(s.schema,c),t.io==="input"&&tt(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function R0(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Ln(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let s of e.seen.entries()){let a=e.metadataRegistry.get(s[0])?.id;if(a){let c=r.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(a,s[0])}}let o=s=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(s[0])?.id,m=e.external.uri??(h=>h);if(d)return{ref:m(d)};let f=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=f,{defId:f,ref:`${m("__shared")}#/${a}/${R0(f)}`}}let c="#",u=`${c}/${a}/`;if(s[1]===n&&!s[1].schema.id)return{ref:c};let l=s[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+R0(l)}},i=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:c,defId:u}=o(s);a.def={...a.schema},u&&(a.defId=u);let l=a.schema;for(let d in l)delete l[d];l.$ref=c};if(e.cycles==="throw")for(let s of e.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
65
65
 
66
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(t===s[0]){i(s);continue}if(e.external){let u=e.external.registry.get(s[0])?.id;if(t!==s[0]&&u){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(a.cycle){i(s);continue}a.count>1&&e.reused==="ref"&&i(s)}e.external&&(e.sharedDefsExtractedFor=e.external)}function $0(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let r of t){if(!r||typeof r!="object")return;$0(r);let o=Object.keys(r);if(o.length!==1||o[0]!=="type")return;let i=r.type;for(let s of Array.isArray(i)?i:[i]){if(typeof s!="string")return;n.includes(s)||n.push(s)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var A0=new Set(["type","properties","required","additionalProperties"]),R0=["oneOf","anyOf"];function T0(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function Zp(e){let t=[];for(let i of e){if(typeof i!="object"||i.type!=="object")return null;for(let s in i)if(!A0.has(s))return null;t.push(i)}let n={},r=new Set;for(let i of t){for(let s in i.properties){if(Object.prototype.hasOwnProperty.call(n,s))continue;let a=[];for(let u of t){let l=u.properties?.[s]??T0(u);l!=null&&(a.some(d=>JSON.stringify(d)===JSON.stringify(l))||a.push(l))}let c=a.length===1?a[0]:Zp(a)??{allOf:a};We(n,s,c)}for(let s of i.required??[])r.add(s)}let o={type:"object",properties:n};if(r.size&&(o.required=[...r]),t.every(i=>i.additionalProperties===!1))o.additionalProperties=!1;else{let i=[];for(let s of t){let a=T0(s);a&&!i.some(c=>JSON.stringify(c)===JSON.stringify(a))&&i.push(a)}i.length===1?o.additionalProperties=i[0]:i.length>1&&(o.additionalProperties={allOf:i})}return o}function _I(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let o of A0)if(o in e)return;let n=t.filter(o=>R0.some(i=>Array.isArray(o[i]))),r=null;if(!n.length)r=Zp(t);else{let o=n[0],i=R0.find(c=>Array.isArray(o[c]));if(Object.keys(o).length!==1)return;let s=t.filter(c=>c!==o),a=o[i].map(c=>Zp([...s,c]));if(a.some(c=>!c))return;r={[i]:a}}r&&(delete e.allOf,wi(e,r))}function Pn(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=a=>{let c=e.seen.get(a);if(c.ref===null)return;let u=c.def??c.schema,l={...u},d=c.ref;if(c.ref=null,d){r(d);let f=e.seen.get(d),h=f.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(h)):wi(u,h),wi(u,l),a._zod.parent===d)for(let k in u)k==="$ref"||k==="allOf"||k in l||delete u[k];if(h.$ref&&f.def)for(let k in u)k==="$ref"||k==="allOf"||k in f.def&&JSON.stringify(u[k])===JSON.stringify(f.def[k])&&delete u[k]}let m=a._zod.parent;if(m&&m!==d){r(m);let f=e.seen.get(m);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(let h in u)h==="$ref"||h==="allOf"||h in f.def&&JSON.stringify(u[h])===JSON.stringify(f.def[h])&&delete u[h]}e.override({zodSchema:a,jsonSchema:u,path:c.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let a of[...e.seen.entries()].reverse())r(a[0]);if(e.target!=="openapi-3.0")for(let a of e.seen.entries())$0(a[1].def??a[1].schema);for(let a of e.deferred)a();if(e.intersections.length){let a=new Map;for(let c of e.seen.values())for(let u of[c.schema,c.def]){let l=u?.allOf;if(!Array.isArray(l))continue;let d=a.get(l);d?d.push(u):a.set(l,[u])}for(let c of e.intersections)for(let u of a.get(c)??[])_I(u)}}let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a)}wi(o,n.defId?n.schema:n.def??n.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&o.id===i&&delete o.id;let s=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let a of e.seen.entries()){let c=a[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,We(s,c.defId,c.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{let a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Yr(t,"input",e.processors),output:Yr(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function tt(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return tt(r.element,n);if(r.type==="set")return tt(r.valueType,n);if(r.type==="lazy")return tt(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return tt(r.innerType,n);if(r.type==="intersection")return tt(r.left,n)||tt(r.right,n);if(r.type==="record"||r.type==="map")return tt(r.keyType,n)||tt(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:tt(r.in,n)||tt(r.out,n);if(r.type==="object"){for(let o in r.shape)if(tt(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(let o of r.options)if(tt(o,n))return!0;return!1}if(r.type==="tuple"){for(let o of r.items)if(tt(o,n))return!0;return!!(r.rest&&tt(r.rest,n))}return!1}var jp=(e,t={})=>n=>{let r=Sn({...n,processors:t});return le(e,r),Ln(r,e),Pn(r,e)},Yr=(e,t,n={})=>r=>{let{libraryOptions:o,target:i}=r??{},s=Sn({...o??{},target:i,io:t,processors:n});return le(e,s),Ln(s,e),Pn(s,e)};var Xr=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},Qr=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},D0=(e,t)=>{Xr(e,"minimum",t),Qr(e,"maximum",t)},z0=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},Z0=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},j0=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},W0=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},E0=(e,t)=>Xr(e,"minimum",t.minimum),N0=(e,t)=>Qr(e,"maximum",t.maximum),O0=e=>(t,n)=>{W0(t,n.format);let[r,o]=e[n.format];Xr(t,"minimum",r),Qr(t,"maximum",o)},SI={greater_than:(e,t)=>Xr(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>Qr(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>z0(e,t.value),number_format:O0(Bo),bigint_format:O0(Uo),min_length:E0,max_length:N0,length_equals:(e,t)=>D0(e,t.length),min_size:E0,max_size:N0,size_equals:(e,t)=>D0(e,t.size),string_format:(e,t)=>{W0(e,t.format),t.pattern&&Z0(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>j0(e,t.mime)};function Re(e){let t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(let i of r)SI[i._zod.def.check]?.(t,i._zod.def);let o=e._zod.bag;o.minimum!==void 0&&Xr(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&Xr(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&Qr(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&Qr(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&z0(t,o.multipleOf),o.format!==void 0&&(t.format??(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&j0(t,o.mime);for(let i of o.patterns??[])Z0(t,i);return t}var LI={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},PI=new Map([[ba,Kl],[ci,ql]]),F0=e=>PI.get(e)??e,Vp=(e,t,n,r)=>{let o=n;o.type="string";let{minimum:i,maximum:s,format:a,patterns:c,contentEncoding:u,laxFormat:l}=Re(e);if(typeof i=="number"&&(o.minLength=i),typeof s=="number"&&(o.maxLength=s),a&&(o.format=LI[a]??a,o.format===""&&delete o.format,(a==="time"||l)&&delete o.format),u&&(o.contentEncoding=u),c&&c.size>0){let d=[...c].map(F0);d.length===1?o.pattern=d[0].source:d.length>1&&(o.allOf=[...d.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},Hp=(e,t,n,r)=>{let o=n,{minimum:i,maximum:s,multipleOf:a,exclusiveMaximum:c,exclusiveMinimum:u,isInt:l}=Re(e);o.type=l?"integer":"number";let d=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),m=typeof c=="number"&&c<=(s??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";if(d?f?(o.minimum=u,o.exclusiveMinimum=!0):o.exclusiveMinimum=u:typeof i=="number"&&(o.minimum=i),m?f?(o.maximum=c,o.exclusiveMaximum=!0):o.exclusiveMaximum=c:typeof s=="number"&&(o.maximum=s),a){let h=new Set;for(let v of a)Number.isFinite(v)&&v!==0?h.add(Math.abs(v)):Me(e,t,o,r,`A multipleOf divisor of ${v} cannot be represented in JSON Schema`);let[g,...k]=h;g!==void 0&&(o.multipleOf=g),k.length&&(o.allOf=[...o.allOf??[],...k.map(v=>({multipleOf:v}))])}},Bp=(e,t,n,r)=>{n.type="boolean"},Up=(e,t,n,r)=>{Me(e,t,n,r,"BigInt cannot be represented in JSON Schema")},Gp=(e,t,n,r)=>{Me(e,t,n,r,"Symbols cannot be represented in JSON Schema")},Kp=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},qp=(e,t,n,r)=>{Me(e,t,n,r,"Undefined cannot be represented in JSON Schema")},Jp=(e,t,n,r)=>{Me(e,t,n,r,"Void cannot be represented in JSON Schema")},Yp=(e,t,n,r)=>{n.not={}},Xp=(e,t,n,r)=>{},Qp=(e,t,n,r)=>{},ef=(e,t,n,r)=>{Me(e,t,n,r,"Date cannot be represented in JSON Schema")},tf=(e,t,n,r)=>{let o=e._zod.def,i=_r(o.entries);if(i.length===0){n.not={};return}i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},nf=(e,t,n,r)=>{let o=e._zod.def;if(o.values.length===0){n.not={};return}let i=[];for(let s of o.values)if(s===void 0){if(Me(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(Me(e,t,n,r,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},rf=(e,t,n,r)=>{Me(e,t,n,r,"NaN cannot be represented in JSON Schema")},of=(e,t,n,r)=>{let o=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=i.source},sf=(e,t,n,r)=>{let o=n;o.type="string",o.format="binary",o.contentEncoding="binary";let{minimum:i,maximum:s,mime:a}=Re(e);i!==void 0&&(o.minLength=i),s!==void 0&&(o.maxLength=s),a&&(a.length===0?o.not={}:a.length===1?o.contentMediaType=a[0]:o.anyOf=a.map(c=>({contentMediaType:c})))},af=(e,t,n,r)=>{n.type="boolean"},cf=(e,t,n,r)=>{Me(e,t,n,r,"Custom types cannot be represented in JSON Schema")},uf=(e,t,n,r)=>{Me(e,t,n,r,"Function types cannot be represented in JSON Schema")},lf=(e,t,n,r)=>{Me(e,t,n,r,"Transforms cannot be represented in JSON Schema")},df=(e,t,n,r)=>{Me(e,t,n,r,"Map cannot be represented in JSON Schema")},pf=(e,t,n,r)=>{Me(e,t,n,r,"Set cannot be represented in JSON Schema")},ff=(e,t,n,r)=>{let o=n,i=e._zod.def,{minimum:s,maximum:a}=Re(e);typeof s=="number"&&(o.minItems=s),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=le(i.element,t,{...r,path:[...r.path,"items"]})};function xi(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?xi(t.out):t.type==="catch"?xi(t.innerType):e._zod.optin}var mf=(e,t,n,r)=>{let o=n,i=e._zod.def,s=i.shape;if(Object.getOwnPropertySymbols(s).length&&Me(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(let u in s)We(o.properties,u,le(s[u],t,{...r,path:[...r.path,"properties",u]}));let c=[];for(let u of Object.keys(s)){let l=i.shape[u];(t.io==="input"?xi(l)===void 0:l._zod.optout===void 0)&&c.push(u)}c.length>0&&(o.required=c),i.catchall?._zod.def.type==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=le(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},hc=(e,t,n,r)=>{let o=e._zod.def,i=o.inclusive===!1,s=o.options.map((a,c)=>le(a,t,{...r,path:[...r.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=s:n.anyOf=s},hf=(e,t,n,r)=>{let o=e._zod.def,i=le(o.left,t,{...r,path:[...r.path,"allOf",0]}),s=le(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=c,t.intersections.push(c)},gf=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((g,k)=>le(g,t,{...r,path:[...r.path,s,k]})),u=i.rest?le(i.rest,t,{...r,path:[...r.path,a,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null,l=i.items.length;for(;l>0;){let g=i.items[l-1];if(!(t.io==="input"?xi(g)!==void 0:g._zod.optout==="optional"))break;l--}let d=i.items.length,m=!i.rest;t.target==="draft-2020-12"?(o.prefixItems=c,m?o.items=!1:u&&(o.items=u),l>0&&(o.minItems=l),m&&(o.maxItems=d)):t.target==="openapi-3.0"?(o.items={anyOf:c},u&&o.items.anyOf.push(u),l>0&&(o.minItems=l),m&&(o.maxItems=d)):(o.items=c,m?o.additionalItems=!1:u&&(o.additionalItems=u),l>0&&(o.minItems=l),m&&(o.maxItems=d));let{minimum:f,maximum:h}=Re(e);typeof f=="number"&&(o.minItems=f),typeof h=="number"&&(o.maxItems=h)};function Wp(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let h=e.get(t)?.def;if(!h)return t;let g=Wp(e,h,n);return g===h?t:g}for(let h of["anyOf","oneOf"]){let g=t[h];if(!Array.isArray(g))continue;let k=g.map(v=>Wp(e,v,n));k.some((v,y)=>v!==g[y])&&(t={...t,[h]:k})}let r=Array.isArray(t.type)?t.type:[t.type],o=!r.includes("string")&&r.some(h=>h==="number"||h==="integer"),i=t.enum??(t.const!==void 0?[t.const]:void 0);if(!o&&!i?.some(h=>typeof h=="number"))return t;let{minimum:s,maximum:a,exclusiveMinimum:c,exclusiveMaximum:u,multipleOf:l,format:d,id:m,...f}=t;return f.enum?f.enum=f.enum.map(h=>typeof h=="number"?String(h):h):typeof f.const=="number"&&(f.const=String(f.const)),o&&(f.type="string",i||(f.pattern=(r.includes("number")?Qt:ti).source)),f}var Fp=new WeakMap;function MI(e){let t=new Map;for(let r of e.seen.values())r.def&&!t.has(r.schema)&&t.set(r.schema,r);let n=new Map;for(let r of Fp.get(e)??[]){let o=e.seen.get(r),i=(o?.def??o?.schema)?.propertyNames;if(!i||i===!0||n.has(i))continue;let s=Wp(t,i,new Set);s!==i&&n.set(i,s)}if(n.size)for(let r of e.seen.values())for(let o of[r.schema,r.def]){let i=o&&n.get(o.propertyNames);i&&(o.propertyNames=i)}}var Cf=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="object";let s=i.keyType,a=Re(s).patterns;if(i.mode==="loose"&&a&&a.size>0){let l=le(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(let d of a)We(o.patternProperties,F0(d).source,l)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){o.propertyNames=le(i.keyType,t,{...r,path:[...r.path,"propertyNames"]});let l=Fp.get(t);l||(l=[],Fp.set(t,l),t.deferred.push(()=>MI(t))),l.push(e)}o.additionalProperties=le(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]})}let c=s._zod.values,u=t.io==="input"&&xi(i.valueType)!==void 0;if(c&&!i.partial&&!u){let l=[...c].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(o.required=l.map(String))}},kf=(e,t,n,r)=>{let o=e._zod.def,i=le(o.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=o.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},yf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},bf=Symbol();function V0(e,t,n,r,o){let i=!1,s=JSON.stringify(e,(a,c)=>typeof c!="bigint"?c:(i=!0,null));return i?(Me(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),bf):JSON.parse(s)}var vf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s=V0(o.defaultValue,e,t,n,r);s!==bf&&(n.default=s)},wf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);if(i.ref=o.innerType,t.io!=="input")return;let s=V0(o.defaultValue,e,t,n,r);s!==bf&&(n._prefault=s)},xf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s;try{s=o.catchValue(void 0)}catch{Me(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},If=(e,t,n,r)=>{let o=e._zod.def,i=o.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?i?o.out:o.in:o.out;le(s,t,r);let a=t.seen.get(e);a.ref=s},_f=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType,n.readOnly=!0},Sf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},gc=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},Lf=(e,t,n,r)=>{let o=e._zod.innerType;le(o,t,r);let i=t.seen.get(e);i.ref=o},mc={string:Vp,number:Hp,boolean:Bp,bigint:Up,symbol:Gp,null:Kp,undefined:qp,void:Jp,never:Yp,any:Xp,unknown:Qp,date:ef,enum:tf,literal:nf,nan:rf,template_literal:of,file:sf,success:af,custom:cf,function:uf,transform:lf,map:df,set:pf,array:ff,object:mf,union:hc,intersection:hf,tuple:gf,record:Cf,nullable:kf,nonoptional:yf,default:vf,prefault:wf,catch:xf,pipe:If,readonly:_f,promise:Sf,optional:gc,lazy:Lf};function Cc(e,t){if("_idmap"in e){let r=e,o=Sn({...t,processors:mc}),i={};for(let c of r._idmap.entries()){let[u,l]=c;le(l,o)}let s={},a={registry:r,uri:t?.uri,defs:i};o.external=a;for(let c of r._idmap.entries()){let[u,l]=c;Ln(o,l),We(s,u,Pn(o,l))}if(Object.keys(i).length>0){let c=o.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:i}}return{schemas:s}}let n=Sn({...t,processors:mc});return le(e,n),Ln(n,e),Pn(n,e)}var kc=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Sn({processors:mc,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return le(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,Ln(this.ctx,t);let r=Pn(this.ctx,t),{"~standard":o,...i}=r;return i}};var H0={};var ao={};Lt(ao,{ZodAny:()=>qf,ZodArray:()=>Qf,ZodBase64:()=>Oc,ZodBase64URL:()=>zc,ZodBigInt:()=>io,ZodBigIntFormat:()=>Wc,ZodBoolean:()=>oo,ZodCIDRv4:()=>Ec,ZodCIDRv6:()=>Nc,ZodCUID:()=>Pc,ZodCUID2:()=>Mc,ZodCatch:()=>b2,ZodCodec:()=>Ai,ZodCreditCard:()=>Wf,ZodCustom:()=>Di,ZodCustomStringFormat:()=>cr,ZodDate:()=>Li,ZodDefault:()=>m2,ZodDiscriminatedUnion:()=>t2,ZodE164:()=>Zc,ZodEmail:()=>Ic,ZodEmoji:()=>Sc,ZodEnum:()=>to,ZodExactOptional:()=>Bc,ZodFile:()=>l2,ZodFunction:()=>R2,ZodGUID:()=>_c,ZodIBAN:()=>Ff,ZodIPv4:()=>Ac,ZodIPv6:()=>Dc,ZodISODate:()=>Rn,ZodISODateTime:()=>Mn,ZodISODuration:()=>$n,ZodISOTime:()=>Tn,ZodInstanceOf:()=>A2,ZodIntersection:()=>n2,ZodJWT:()=>jc,ZodKSUID:()=>$c,ZodLazy:()=>L2,ZodLiteral:()=>u2,ZodMAC:()=>jf,ZodMap:()=>a2,ZodNaN:()=>w2,ZodNanoID:()=>Lc,ZodNever:()=>Yf,ZodNonOptional:()=>Uc,ZodNull:()=>Gf,ZodNullable:()=>f2,ZodNumber:()=>ro,ZodNumberFormat:()=>ur,ZodObject:()=>Mi,ZodOptional:()=>Ti,ZodPipe:()=>$i,ZodPrefault:()=>g2,ZodPreprocess:()=>x2,ZodPromise:()=>M2,ZodReadonly:()=>I2,ZodRecord:()=>eo,ZodSet:()=>c2,ZodString:()=>no,ZodStringFormat:()=>de,ZodSuccess:()=>y2,ZodSymbol:()=>Bf,ZodTemplateLiteral:()=>S2,ZodTransform:()=>d2,ZodTuple:()=>o2,ZodType:()=>J,ZodULID:()=>Rc,ZodURL:()=>Si,ZodUUID:()=>Ht,ZodUndefined:()=>Uf,ZodUnion:()=>Ri,ZodUnknown:()=>Jf,ZodVoid:()=>Xf,ZodXID:()=>Tc,ZodXor:()=>e2,_ZodString:()=>xc,_default:()=>h2,_function:()=>n4,any:()=>A9,array:()=>Pi,base64:()=>f9,base64url:()=>m9,bigint:()=>P9,boolean:()=>Hf,catch:()=>v2,check:()=>r4,cidrv4:()=>d9,cidrv6:()=>p9,codec:()=>X9,creditCard:()=>g9,cuid:()=>r9,cuid2:()=>o9,currencyCode:()=>w9,custom:()=>o4,date:()=>E9,describe:()=>i4,discriminatedUnion:()=>W9,e164:()=>h9,email:()=>G0,emoji:()=>t9,enum:()=>Vc,exactOptional:()=>p2,file:()=>K9,float32:()=>I9,float64:()=>_9,function:()=>n4,guid:()=>K0,hash:()=>x9,hex:()=>v9,hostname:()=>b9,httpUrl:()=>e9,iban:()=>C9,instanceof:()=>a4,int:()=>vc,int32:()=>S9,int64:()=>M9,intersection:()=>r2,invertCodec:()=>Q9,ipv4:()=>c9,ipv6:()=>l9,json:()=>u4,jwt:()=>k9,keyof:()=>N9,ksuid:()=>a9,lazy:()=>P2,literal:()=>G9,looseObject:()=>Z9,looseRecord:()=>V9,mac:()=>u9,map:()=>H9,meta:()=>s4,nan:()=>Y9,nanoid:()=>n9,nativeEnum:()=>U9,never:()=>Fc,nonoptional:()=>k2,null:()=>Kf,nullable:()=>_i,nullish:()=>q9,number:()=>Vf,object:()=>O9,optional:()=>sr,partialRecord:()=>F9,pipe:()=>wc,prefault:()=>C2,preprocess:()=>l4,promise:()=>t4,readonly:()=>_2,record:()=>s2,refine:()=>T2,set:()=>B9,strictObject:()=>z9,string:()=>Ii,stringFormat:()=>y9,stringbool:()=>c4,success:()=>J9,superRefine:()=>$2,symbol:()=>T9,templateLiteral:()=>e4,transform:()=>Hc,tuple:()=>i2,uint32:()=>L9,uint64:()=>R9,ulid:()=>i9,undefined:()=>$9,union:()=>so,unknown:()=>ir,url:()=>Q0,uuid:()=>q0,uuidv4:()=>J0,uuidv6:()=>Y0,uuidv7:()=>X0,void:()=>D9,xid:()=>s9,xor:()=>j9});var yc={};Lt(yc,{endsWith:()=>Vr,gt:()=>Ft,gte:()=>ht,includes:()=>Wr,length:()=>rr,lowercase:()=>Zr,lt:()=>Wt,lte:()=>mt,maxLength:()=>nr,maxSize:()=>_n,mime:()=>Br,minLength:()=>en,minSize:()=>Vt,multipleOf:()=>In,negative:()=>lc,nonnegative:()=>pc,nonpositive:()=>dc,normalize:()=>Ur,overwrite:()=>$t,positive:()=>uc,properties:()=>Hr,property:()=>fc,regex:()=>zr,size:()=>tr,slugify:()=>Jr,startsWith:()=>Fr,toLowerCase:()=>Kr,toUpperCase:()=>qr,trim:()=>Gr,uppercase:()=>jr});var B0=new WeakSet([Object.prototype,Error.prototype]);function bc(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}var U0=(e,t)=>{Pl.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);B0.has(n)||(B0.add(n),bc(n,"format",r=>o=>Yo(r,o)),bc(n,"flatten",r=>o=>Jo(r,o)),bc(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,Sr,2)}),bc(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,Sr,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},TI=C("ZodError",U0),dt=C("ZodError",U0,void 0,{Parent:Error});var Pf=Rr(dt),Mf=Tr(dt),Rf=$r(dt),Tf=Ar(dt),$f=Ys(dt),Af=Xs(dt),Df=Qs(dt),Ef=ea(dt),Nf=ta(dt),Of=na(dt),zf=ra(dt),Zf=oa(dt);function AI(){Ne.localeError||ye(Na())}function ar(){Ne.memoizer||ye({memoizer:hi()})}var J=C("ZodType",(e,t)=>(AI(),K.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(O.mergeDefs(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ce(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(T2(e,t))},superRefine(e,t){return this.check($2(e,t))},overwrite(e){return this.check($t(e))},optional(){return sr(this)},exactOptional(){return p2(this)},nullable(){return _i(this)},nullish(){return sr(_i(this))},nonoptional(e){return k2(this,e)},array(){return Pi(this)},or(e){return so([this,e])},and(e){return r2(this,e)},transform(e){return wc(this,Hc(e))},default(e){return h2(this,e)},prefault(e){return C2(this,e)},catch(e){return v2(this,e)},pipe(e){return wc(this,e)},readonly(){return _2(this)},describe(e){let t=this.clone();return Fe.add(t,{description:e}),t},meta(...e){if(e.length===0)return Fe.get(this);let t=this.clone();return Fe.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return O.hide(this,"~standard",{...ha(this),jsonSchema:{input:Yr(this,"input"),output:Yr(this,"output")}})},set"~standard"(e){O.own(this,"~standard",e)},parse:function e(t,n){return Pf(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Mf(this,t,n,{callee:e})},safeParse(e,t){return Rf(this,e,t)},async safeParseAsync(e,t){return Tf(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){O.own(this,"spa",e)},validate(e,t){return Xo(this,e,t)},validateAsync(e,t){return Qo(this,e,t)},encode:function e(t,n){return $f(this,t,n,{callee:e})},decode:function e(t,n){return Af(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Df(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Ef(this,t,n,{callee:e})},safeEncode(e,t){return Nf(this,e,t)},safeDecode(e,t){return Of(this,e,t)},async safeEncodeAsync(e,t){return zf(this,e,t)},async safeDecodeAsync(e,t){return Zf(this,e,t)},toJSONSchema(e){return jp(this,{})(e)},get description(){return Fe.get(this)?.description},get _def(){return this._zod.def}}),xc=C("_ZodString",(e,t)=>{Jn.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Vp(e,n,r,o)},O.derived({format:e=>Re(e).format??null,minLength:e=>Re(e).minimum??null,maxLength:e=>Re(e).maximum??null},{regex(...e){return this.check(zr(...e))},includes(...e){return this.check(Wr(...e))},startsWith(...e){return this.check(Fr(...e))},endsWith(...e){return this.check(Vr(...e))},min(...e){return this.check(en(...e))},max(...e){return this.check(nr(...e))},length(...e){return this.check(rr(...e))},nonempty(...e){return this.check(en(1,...e))},lowercase(e){return this.check(Zr(e))},uppercase(e){return this.check(jr(e))},trim(){return this.check(Gr())},normalize(...e){return this.check(Ur(...e))},toLowerCase(){return this.check(Kr())},toUpperCase(){return this.check(qr())},slugify(){return this.check(Jr())}})),no=C("ZodString",(e,t)=>{Jn.init(e,t),xc.init(e,t)},{email(e){return this.check(Fa(Ic,e))},url(e){return this.check(Ci(Si,e))},jwt(e){return this.check(cc(jc,e))},emoji(e){return this.check(Ka(Sc,e))},guid(e){return this.check(Va(_c,e))},uuid(e){return this.check(Ha(Ht,e))},uuidv4(e){return this.check(Ba(Ht,e))},uuidv6(e){return this.check(Ua(Ht,e))},uuidv7(e){return this.check(Ga(Ht,e))},nanoid(e){return this.check(qa(Lc,e))},cuid(e){return this.check(Ja(Pc,e))},cuid2(e){return this.check(Ya(Mc,e))},ulid(e){return this.check(Xa(Rc,e))},base64(e){return this.check(ic(Oc,e))},base64url(e){return this.check(sc(zc,e))},xid(e){return this.check(Qa(Tc,e))},ksuid(e){return this.check(ec($c,e))},ipv4(e){return this.check(tc(Ac,e))},ipv6(e){return this.check(nc(Dc,e))},cidrv4(e){return this.check(rc(Ec,e))},cidrv6(e){return this.check(oc(Nc,e))},e164(e){return this.check(ac(Zc,e))},datetime(e){return this.check(ki(Mn,e))},date(e){return this.check(yi(Rn,e))},time(e){return this.check(bi(Tn,e))},duration(e){return this.check(vi($n,e))}});function Ii(e){return np(no,e)}var de=C("ZodStringFormat",(e,t)=>{ue.init(e,t),xc.init(e,t)}),Mn=C("ZodISODateTime",(e,t)=>{Kd.init(e,t),de.init(e,t)}),Rn=C("ZodISODate",(e,t)=>{qd.init(e,t),de.init(e,t)}),Tn=C("ZodISOTime",(e,t)=>{Jd.init(e,t),de.init(e,t)}),$n=C("ZodISODuration",(e,t)=>{Yd.init(e,t),de.init(e,t)}),Ic=C("ZodEmail",(e,t)=>{Od.init(e,t),de.init(e,t)});function G0(e){return Fa(Ic,e)}var _c=C("ZodGUID",(e,t)=>{Ed.init(e,t),de.init(e,t)});function K0(e){return Va(_c,e)}var Ht=C("ZodUUID",(e,t)=>{Nd.init(e,t),de.init(e,t)});function q0(e){return Ha(Ht,e)}function J0(e){return Ba(Ht,e)}function Y0(e){return Ua(Ht,e)}function X0(e){return Ga(Ht,e)}var Si=C("ZodURL",(e,t)=>{jd.init(e,t),de.init(e,t)});function Q0(e){return Ci(Si,e)}function e9(e){return Ci(Si,{protocol:ei,hostname:Yl,...O.normalizeParams(e)})}var Sc=C("ZodEmoji",(e,t)=>{Wd.init(e,t),de.init(e,t)});function t9(e){return Ka(Sc,e)}var Lc=C("ZodNanoID",(e,t)=>{Fd.init(e,t),de.init(e,t)});function n9(e){return qa(Lc,e)}var Pc=C("ZodCUID",(e,t)=>{Vd.init(e,t),de.init(e,t)});function r9(e){return Ja(Pc,e)}var Mc=C("ZodCUID2",(e,t)=>{Hd.init(e,t),de.init(e,t)});function o9(e){return Ya(Mc,e)}var Rc=C("ZodULID",(e,t)=>{Bd.init(e,t),de.init(e,t)});function i9(e){return Xa(Rc,e)}var Tc=C("ZodXID",(e,t)=>{Ud.init(e,t),de.init(e,t)});function s9(e){return Qa(Tc,e)}var $c=C("ZodKSUID",(e,t)=>{Gd.init(e,t),de.init(e,t)});function a9(e){return ec($c,e)}var Ac=C("ZodIPv4",(e,t)=>{Xd.init(e,t),de.init(e,t)});function c9(e){return tc(Ac,e)}var jf=C("ZodMAC",(e,t)=>{e1.init(e,t),de.init(e,t)});function u9(e){return op(jf,e)}var Dc=C("ZodIPv6",(e,t)=>{Qd.init(e,t),de.init(e,t)});function l9(e){return nc(Dc,e)}var Ec=C("ZodCIDRv4",(e,t)=>{t1.init(e,t),de.init(e,t)});function d9(e){return rc(Ec,e)}var Nc=C("ZodCIDRv6",(e,t)=>{n1.init(e,t),de.init(e,t)});function p9(e){return oc(Nc,e)}var Oc=C("ZodBase64",(e,t)=>{r1.init(e,t),de.init(e,t)});function f9(e){return ic(Oc,e)}var zc=C("ZodBase64URL",(e,t)=>{o1.init(e,t),de.init(e,t)});function m9(e){return sc(zc,e)}var Zc=C("ZodE164",(e,t)=>{i1.init(e,t),de.init(e,t)});function h9(e){return ac(Zc,e)}var Wf=C("ZodCreditCard",(e,t)=>{s1.init(e,t),de.init(e,t)});function g9(e){return ip(Wf,e)}var Ff=C("ZodIBAN",(e,t)=>{a1.init(e,t),de.init(e,t)});function C9(e){return sp(Ff,e)}var jc=C("ZodJWT",(e,t)=>{c1.init(e,t),de.init(e,t)});function k9(e){return cc(jc,e)}var cr=C("ZodCustomStringFormat",(e,t)=>{u1.init(e,t),de.init(e,t)});function y9(e,t,n={}){return or(cr,e,t,n)}function b9(e){return or(cr,"hostname",Jl,e)}function v9(e){return or(cr,"hex",dd,e)}function w9(e){return or(cr,"currency_code",Ql,e)}function x9(e,t){let n=t?.enc??"hex",r=`${e}_${n}`,o=vt[r];if(!o)throw new Error(`Unrecognized hash format: ${r}`);return or(cr,r,o,t)}var ro=C("ZodNumber",(e,t)=>{_a.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Hp(e,n,r,o),e.isFinite=!0},O.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=Re(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=Re(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:n}=Re(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>Re(e).format??null},{gt(e,t){return this.check(Ft(e,t))},gte(e,t){return this.check(ht(e,t))},min(e,t){return this.check(ht(e,t))},lt(e,t){return this.check(Wt(e,t))},lte(e,t){return this.check(mt(e,t))},max(e,t){return this.check(mt(e,t))},int(e){return this.check(vc(e))},safe(e){return this.check(vc(e))},positive(e){return this.check(Ft(0,e))},nonnegative(e){return this.check(ht(0,e))},negative(e){return this.check(Wt(0,e))},nonpositive(e){return this.check(mt(0,e))},multipleOf(e,t){return this.check(In(e,t))},step(e,t){return this.check(In(e,t))},finite(){return this}}));function Vf(e){return cp(ro,e)}var ur=C("ZodNumberFormat",(e,t)=>{l1.init(e,t),ro.init(e,t)});function vc(e){return lp(ur,e)}function I9(e){return dp(ur,e)}function _9(e){return pp(ur,e)}function S9(e){return fp(ur,e)}function L9(e){return mp(ur,e)}var oo=C("ZodBoolean",(e,t)=>{ui.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Bp(e,n,r,o)});function Hf(e){return hp(oo,e)}var io=C("ZodBigInt",(e,t)=>{Sa.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Up(e,n,r,o)},O.derived({minValue:e=>Re(e).minimum??null,maxValue:e=>Re(e).maximum??null,format:e=>Re(e).format??null},{gte(e,t){return this.check(ht(e,t))},min(e,t){return this.check(ht(e,t))},gt(e,t){return this.check(Ft(e,t))},lt(e,t){return this.check(Wt(e,t))},lte(e,t){return this.check(mt(e,t))},max(e,t){return this.check(mt(e,t))},positive(e){return this.check(Ft(BigInt(0),e))},negative(e){return this.check(Wt(BigInt(0),e))},nonpositive(e){return this.check(mt(BigInt(0),e))},nonnegative(e){return this.check(ht(BigInt(0),e))},multipleOf(e,t){return this.check(In(e,t))}}));function P9(e){return Cp(io,e)}var Wc=C("ZodBigIntFormat",(e,t)=>{d1.init(e,t),io.init(e,t)});function M9(e){return yp(Wc,e)}function R9(e){return bp(Wc,e)}var Bf=C("ZodSymbol",(e,t)=>{p1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Gp(e,n,r,o)});function T9(e){return vp(Bf,e)}var Uf=C("ZodUndefined",(e,t)=>{f1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qp(e,n,r,o)});function $9(e){return wp(Uf,e)}var Gf=C("ZodNull",(e,t)=>{m1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kp(e,n,r,o)});function Kf(e){return xp(Gf,e)}var qf=C("ZodAny",(e,t)=>{h1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xp(e,n,r,o)});function A9(){return Ip(qf)}var Jf=C("ZodUnknown",(e,t)=>{g1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Qp(e,n,r,o)});function ir(){return _p(Jf)}var Yf=C("ZodNever",(e,t)=>{C1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yp(e,n,r,o)});function Fc(e){return Sp(Yf,e)}var Xf=C("ZodVoid",(e,t)=>{k1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jp(e,n,r,o)});function D9(e){return Lp(Xf,e)}var Li=C("ZodDate",(e,t)=>{y1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ef(e,n,r,o),e.min=(n,r)=>e.check(ht(n,r)),e.max=(n,r)=>e.check(mt(n,r))},O.derived({minDate:e=>{let{minimum:t}=Re(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=Re(e);return t?new Date(t):null}},{}));function E9(e){return Pp(Li,e)}var Qf=C("ZodArray",(e,t)=>{ar(),b1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ff(e,n,r,o),e.element=t.element},{min(e,t){return this.check(en(e,t))},nonempty(e){return this.check(en(1,e))},max(e,t){return this.check(nr(e,t))},length(e,t){return this.check(rr(e,t))},unwrap(){return this.element}});function Pi(e,t){return Tp(Qf,e,t)}function N9(e){let t=e._zod.def.shape;return Vc(Object.keys(t))}var Mi=C("ZodObject",(e,t)=>{ar(),v1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>mf(e,n,r,o),O.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return Vc(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(O.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(O.mergeDefs(this._zod.def,{catchall:ir()}))},loose(){return this.clone(O.mergeDefs(this._zod.def,{catchall:ir()}))},strict(){return this.clone(O.mergeDefs(this._zod.def,{catchall:Fc()}))},strip(){return this.clone(O.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return O.extend(this,e)},safeExtend(e){return O.safeExtend(this,e)},merge(e){return O.merge(this,e)},pick(e){return O.pick(this,e)},omit(e){return O.omit(this,e)},partial(...e){return O.partial(Ti,this,e[0])},exactPartial(...e){return O.partial(Bc,this,e[0],"exactPartial")},required(...e){return O.required(Uc,this,e[0])}});function O9(e,t){let n={type:"object",shape:e??{},...O.normalizeParams(t)};return new Mi(n)}function z9(e,t){return new Mi({type:"object",shape:e,catchall:Fc(),...O.normalizeParams(t)})}function Z9(e,t){return new Mi({type:"object",shape:e,catchall:ir(),...O.normalizeParams(t)})}var Ri=C("ZodUnion",(e,t)=>{li.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hc(e,n,r,o),e.options=t.options});function so(e,t){return new Ri({type:"union",options:e,...O.normalizeParams(t)})}var e2=C("ZodXor",(e,t)=>{Ri.init(e,t),w1.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hc(e,n,r,o),e.options=t.options});function j9(e,t){return new e2({type:"union",options:e,inclusive:!1,...O.normalizeParams(t)})}var t2=C("ZodDiscriminatedUnion",(e,t)=>{Ri.init(e,t),I1.init(e,t)});function W9(e,t,n){return new t2({type:"union",options:t,discriminator:e,...O.normalizeParams(n)})}var n2=C("ZodIntersection",(e,t)=>{_1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hf(e,n,r,o)});function r2(e,t){return new n2({type:"intersection",left:e,right:t})}var o2=C("ZodTuple",(e,t)=>{ar(),La.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gf(e,n,r,o)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new Ti({type:"optional",innerType:t}))})}});function i2(e,t,n){let r=t instanceof K,o=r?n:t,i=r?t:null;return new o2({type:"tuple",items:e,rest:i,...O.normalizeParams(o)})}var eo=C("ZodRecord",(e,t)=>{ar(),S1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Cf(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function s2(e,t,n){return!t||!t._zod?new eo({type:"record",keyType:Ii(),valueType:e,...O.normalizeParams(t)}):new eo({type:"record",keyType:e,valueType:t,...O.normalizeParams(n)})}function F9(e,t,n){return new eo({type:"record",keyType:e,valueType:t,...O.normalizeParams(n),partial:!0})}function V9(e,t,n){return new eo({type:"record",keyType:e,valueType:t,mode:"loose",...O.normalizeParams(n)})}var a2=C("ZodMap",(e,t)=>{ar(),L1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>df(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Vt(...n)),e.nonempty=n=>e.check(Vt(1,n)),e.max=(...n)=>e.check(_n(...n)),e.size=(...n)=>e.check(tr(...n))});function H9(e,t,n){return new a2({type:"map",keyType:e,valueType:t,...O.normalizeParams(n)})}var c2=C("ZodSet",(e,t)=>{ar(),P1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pf(e,n,r,o),e.min=(...n)=>e.check(Vt(...n)),e.nonempty=n=>e.check(Vt(1,n)),e.max=(...n)=>e.check(_n(...n)),e.size=(...n)=>e.check(tr(...n))});function B9(e,t){return new c2({type:"set",valueType:e,...O.normalizeParams(t)})}var to=C("ZodEnum",(e,t)=>{M1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(r,o,i)=>tf(e,r,o,i),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{let i={};for(let s of r)if(n.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new to({...t,checks:[],...O.normalizeParams(o),entries:i})},e.exclude=(r,o)=>{let i={...t.entries};for(let s of r)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new to({...t,checks:[],...O.normalizeParams(o),entries:i})}});function Vc(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new to({type:"enum",entries:n,...O.normalizeParams(t)})}function U9(e,t){return new to({type:"enum",entries:e,...O.normalizeParams(t)})}var u2=C("ZodLiteral",(e,t)=>{R1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>nf(e,n,r,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function G9(e,t){return new u2({type:"literal",values:Array.isArray(e)?e:[e],...O.normalizeParams(t)})}var l2=C("ZodFile",(e,t)=>{T1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sf(e,n,r,o),e.min=(n,r)=>e.check(Vt(n,r)),e.max=(n,r)=>e.check(_n(n,r)),e.mime=(n,r)=>e.check(Br(Array.isArray(n)?n:[n],r))});function K9(e){return $p(l2,e)}var d2=C("ZodTransform",(e,t)=>{ar(),$1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lf(e,n,r,o),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new xn(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(O.issue(i,n.value,t));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=n.value),s.inst??(s.inst=e),n.issues.push(O.issue(s))}};let o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});function Hc(e){return new d2({type:"transform",transform:e})}var Ti=C("ZodOptional",(e,t)=>{Pa.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function sr(e){return new Ti({type:"optional",innerType:e})}var Bc=C("ZodExactOptional",(e,t)=>{A1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function p2(e){return new Bc({type:"optional",innerType:e})}var f2=C("ZodNullable",(e,t)=>{D1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>kf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function _i(e){return new f2({type:"nullable",innerType:e})}function q9(e){return sr(_i(e))}var m2=C("ZodDefault",(e,t)=>{E1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>vf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function h2(e,t){return new m2({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():O.shallowClone(t)}})}var g2=C("ZodPrefault",(e,t)=>{N1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>wf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function C2(e,t){return new g2({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():O.shallowClone(t)}})}var Uc=C("ZodNonOptional",(e,t)=>{O1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>yf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function k2(e,t){return new Uc({type:"nonoptional",innerType:e,...O.normalizeParams(t)})}var y2=C("ZodSuccess",(e,t)=>{z1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>af(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function J9(e){return new y2({type:"success",innerType:e})}var b2=C("ZodCatch",(e,t)=>{Z1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>xf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function v2(e,t){return new b2({type:"catch",innerType:e,catchValue:typeof t=="function"?t:O.constantCatch(t)})}var w2=C("ZodNaN",(e,t)=>{j1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>rf(e,n,r,o)});function Y9(e){return Rp(w2,e)}var $i=C("ZodPipe",(e,t)=>{Ma.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>If(e,n,r,o),e.in=t.in,e.out=t.out});function wc(e,t){return new $i({type:"pipe",in:e,out:t})}var Ai=C("ZodCodec",(e,t)=>{$i.init(e,t),di.init(e,t)});function X9(e,t,n){return new Ai({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Q9(e){let t=e._zod.def;return new Ai({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var x2=C("ZodPreprocess",(e,t)=>{$i.init(e,t),W1.init(e,t)}),I2=C("ZodReadonly",(e,t)=>{F1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>_f(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function _2(e){return new I2({type:"readonly",innerType:e})}var S2=C("ZodTemplateLiteral",(e,t)=>{V1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>of(e,n,r,o)});function e4(e,t){return new S2({type:"template_literal",parts:e,...O.normalizeParams(t)})}var L2=C("ZodLazy",(e,t)=>{pi.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Lf(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function P2(e){return new L2({type:"lazy",getter:e})}var M2=C("ZodPromise",(e,t)=>{B1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Sf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function t4(e){return new M2({type:"promise",innerType:e})}var R2=C("ZodFunction",(e,t)=>{H1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>uf(e,n,r,o)});function n4(e){return new R2({type:"function",input:Array.isArray(e?.input)?i2(e?.input):e?.input??Pi(ir()),output:e?.output??ir()})}var Di=C("ZodCustom",(e,t)=>{U1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cf(e,n,r,o)});function r4(e){let t=new pe({check:"custom"});return t._zod.check=e,t}function o4(e,t){return Ap(Di,e??(()=>!0),t)}function T2(e,t={}){return Dp(Di,e,t)}function $2(e,t){return Ep(e,t)}var i4=Np,s4=Op,A2=C("ZodInstanceOf",(e,t)=>{Di.init(e,t)},{properties(e,t){return this.check(Hr(e,t))}});function a4(e,t={}){let n=new A2({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...O.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:n,path:[...n._zod.def.path??[]]})},n}var c4=(...e)=>zp({Codec:Ai,Boolean:oo,String:no},...e);function u4(e){let t=P2(()=>so([Ii(e),Vf(),Hf(),Kf(),Pi(t),s2(Ii(),t)]));return t}function l4(e,t){return new x2({type:"pipe",in:Hc(e),out:t})}var DI={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function EI(e){ye({customError:e})}function NI(){return ye().customError}var D2;D2||(D2={});var Ei={};Lt(Ei,{ZodISODate:()=>Rn,ZodISODateTime:()=>Mn,ZodISODuration:()=>$n,ZodISOTime:()=>Tn,date:()=>zI,datetime:()=>OI,duration:()=>jI,time:()=>ZI});function OI(e){return ki(Mn,e)}function zI(e){return yi(Rn,e)}function ZI(e){return bi(Tn,e)}function jI(e){return vi($n,e)}var D={...ao,...yc,iso:Ei},WI=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function FI(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function d4(e,t){return e.map((n,r)=>r<t?n:n.optional())}function VI(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function HI(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===r){let o=n[1]===void 0?void 0:VI(n[1]);if(!o||!t.defs[o])throw new Error(`Reference not found: ${e}`);return t.defs[o]}throw new Error(`Reference not found: ${e}`)}function BI(e,t){return D.transform(r=>r).check(r=>{let o=r.value;if(typeof o!="object"||o===null||Array.isArray(o))return;let i=Object.getOwnPropertyNames(o);if(t.minProperties!==void 0&&i.length<t.minProperties&&r.issues.push({origin:"object",code:"too_small",minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:o,inst:e,continue:!0}),t.maxProperties!==void 0&&i.length>t.maxProperties&&r.issues.push({origin:"object",code:"too_big",maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:o,inst:e,continue:!0}),t.keySchema)for(let s of i){let a=t.keySchema.safeParse(s);a.success||r.issues.push({code:"invalid_key",origin:"record",issues:a.error.issues,input:s,path:[s],continue:!0})}}).pipe(e)}function E2(e,t){if(e===null)return"z";let n=typeof e;if(n!=="object"){if(n==="number"&&Number.isNaN(e))return null;let r=String(e);return`${n[0]}${r.length}:${r}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let i=[];for(let s of e){let a=E2(s,t);if(a===null)return null;i.push(a)}return`a${i.length}:[${i.join(",")}]`}let r=Object.keys(e).sort(),o=[];for(let i of r){let s=E2(e[i],t);if(s===null)return null;o.push(`${i.length}:${i}=${s}`)}return`o${o.length}:{${o.join(",")}}`}finally{t.delete(e)}}var UI=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),GI=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function Ni(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(Ni):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,n])=>UI.has(t)?Ni(n):!GI.has(t)||typeof n!="object"||n===null?!1:Object.values(n).some(Ni))}function p4(e){return e===1?"element":"elements"}function KI(e,t){return D.transform(r=>r).check(r=>{let o=r.value;if(Array.isArray(o)){if(t.uniqueItems===!0){let i=new Map;for(let s=0;s<o.length;s++){let a=E2(o[s],new Set);if(a===null)continue;let c=i.get(a);if(c===void 0){i.set(a,s);continue}r.issues.push({code:"custom",message:`Array items must be unique: element at index ${s} duplicates the one at index ${c}`,input:o,path:[s],continue:!0})}}if(t.containsSchema){let i=t.minContains??1,s=t.maxContains!==void 0?t.maxContains+1:Number.POSITIVE_INFINITY,a=0;for(let c of o)if(t.containsSchema.safeParse(c).success&&++a>=s)break;a<i&&r.issues.push({code:"custom",message:`Array must contain at least ${i} matching ${p4(i)}; found ${a}`,input:o,continue:!0}),t.maxContains!==void 0&&a>t.maxContains&&r.issues.push({code:"custom",message:`Array must contain at most ${t.maxContains} matching ${p4(t.maxContains)}`,input:o,continue:!0})}}}).pipe(e)}function f4(e,t){if(e!==!1)return e===void 0||e===!0?D.any():nt(e,t)}var qI=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function m4(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return D.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let o=e.$ref;if(t.refs.has(o))return t.refs.get(o);if(t.processing.has(o))return D.lazy(()=>{if(!t.refs.has(o))throw new Error(`Circular reference not resolved: ${o}`);return t.refs.get(o)});t.processing.add(o);let i=HI(o,t),s=nt(i,t);return t.refs.set(o,s),t.processing.delete(o),s}if(e.enum!==void 0){let o=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&o.length===1&&o[0]===null)return D.null();if(o.length===0)return D.never();if(o.length===1)return D.literal(o[0]);if(o.every(s=>typeof s=="string"))return D.enum(o);let i=o.map(s=>D.literal(s));return i.length<2?i[0]:D.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return D.literal(e.const);let n=e.type;if(Array.isArray(n)){let o=n.map(i=>{let s={...e,type:i};return m4(s,t)});return o.length===0?D.never():o.length===1?o[0]:D.union(o)}if(!n)return D.any();let r;switch(n){case"string":{let o=D.string();if(e.format){let i=e.format;i==="email"?o=o.check(D.email()):i==="uri"||i==="uri-reference"?o=o.check(D.url()):i==="uuid"||i==="guid"?o=o.check(D.uuid()):i==="date-time"?o=o.check(D.iso.datetime({offset:!0})):i==="date"?o=o.check(D.iso.date()):i==="time"?o=o.check(D.regex(qI)):i==="duration"?o=o.check(D.iso.duration()):i==="hostname"?o=o.check(D.hostname()):i==="ipv4"?o=o.check(D.ipv4()):i==="ipv6"?o=o.check(D.ipv6()):i==="mac"?o=o.check(D.mac()):i==="cidr"?o=o.check(D.cidrv4()):i==="cidr-v6"?o=o.check(D.cidrv6()):i==="base64"?o=o.check(D.base64()):i==="base64url"?o=o.check(D.base64url()):i==="e164"?o=o.check(D.e164()):i==="credit_card"?o=o.check(D.creditCard()):i==="iban"?o=o.check(D.iban()):i==="jwt"?o=o.check(D.jwt()):i==="emoji"?o=o.check(D.emoji()):i==="nanoid"?o=o.check(D.nanoid()):i==="cuid"?o=o.check(D.cuid()):i==="cuid2"?o=o.check(D.cuid2()):i==="ulid"?o=o.check(D.ulid()):i==="xid"?o=o.check(D.xid()):i==="ksuid"&&(o=o.check(D.ksuid()))}typeof e.minLength=="number"&&(o=o.min(e.minLength)),typeof e.maxLength=="number"&&(o=o.max(e.maxLength)),e.pattern&&(o=o.regex(new RegExp(e.pattern))),r=o;break}case"number":case"integer":{let o=n==="integer"?D.number().int():D.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(o=o.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(o=o.max(e.maximum)),typeof e.exclusiveMinimum=="number"?o=o.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(o=o.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?o=o.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(o=o.lt(e.maximum)),typeof e.multipleOf=="number"&&(o=o.multipleOf(e.multipleOf)),r=o;break}case"boolean":{r=D.boolean();break}case"null":{r=D.null();break}case"object":{let o={},i=e.properties||{},s=new Set(e.required||[]),a=typeof e.additionalProperties=="object"?nt(e.additionalProperties,t):void 0;for(let[d,m]of Object.entries(i)){let f=nt(m,t);We(o,d,s.has(d)?f:f.optional())}if(e.patternProperties){let d=e.patternProperties,m=Object.keys(d),f=[];for(let g of m){let k=nt(d[g],t),v=D.string().regex(new RegExp(g));f.push(D.looseRecord(v,k))}let h=[];if(Object.keys(o).length>0&&h.push(D.object(o).passthrough()),h.push(...f),h.length===0)r=D.object({}).passthrough();else if(h.length===1)r=h[0];else{let g=D.intersection(h[0],h[1]);for(let k=2;k<h.length;k++)g=D.intersection(g,h[k]);r=g}if(e.additionalProperties===!1){let g=Object.keys(o),k=m.map(y=>new RegExp(y)),v=r;r=r.check(y=>{if(!yt(y.value))return;let w=[];for(let T of Object.keys(y.value))g.includes(T)||k.some(M=>M.test(T))||w.push(T);w.length&&y.issues.push({code:"unrecognized_keys",keys:w,input:y.value,inst:v})})}}else{let d=D.object(o);e.additionalProperties===!1?r=d.strict():a?r=d.catchall(a):r=d.passthrough()}let c=e.propertyNames!==void 0&&e.propertyNames!==!0,u=typeof e.minProperties=="number"?e.minProperties:void 0,l=typeof e.maxProperties=="number"?e.maxProperties:void 0;if(c||u!==void 0||l!==void 0){let d;if(c){let m=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;d=nt(m,t)}r=BI(r,{keySchema:d,minProperties:u,maxProperties:l})}break}case"array":{let o=e.prefixItems,i=e.items;if(o&&Array.isArray(o)){let s=typeof e.minItems=="number"?e.minItems:0,a=o.map(d=>nt(d,t)),c=d4(a,s),u=Array.isArray(i)?void 0:f4(i,t),l=D.tuple(c);r=u?l.rest(u):l,typeof e.minItems=="number"&&(r=r.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(D.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=typeof e.minItems=="number"?e.minItems:0,a=i.map(d=>nt(d,t)),c=d4(a,s),u=f4(e.additionalItems,t),l=D.tuple(c);r=u?l.rest(u):l,typeof e.minItems=="number"&&(r=r.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(D.maxLength(e.maxItems)))}else if(i!==void 0){let s=nt(i,t),a=D.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),r=a}else r=D.array(D.any());(e.uniqueItems===!0||e.contains!==void 0)&&(r=KI(r,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?nt(e.contains,t):void 0,minContains:typeof e.minContains=="number"?e.minContains:void 0,maxContains:typeof e.maxContains=="number"?e.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${n}`)}return r}function nt(e,t){if(typeof e=="boolean")return e?D.any():D.never();let n=m4(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let a=e.anyOf.map(u=>nt(u,t)),c=D.union(a);n=r?D.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(u=>nt(u,t)),c=D.xor(a);n=r?D.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:D.any();else{let a=r?n:nt(e.allOf[0],t),c=r?0:1;for(let u=c;u<e.allOf.length;u++)a=D.intersection(a,nt(e.allOf[u],t));n=a}e.nullable===!0&&t.version==="openapi-3.0"&&(n=D.nullable(n)),e.readOnly===!0&&(n=D.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let o={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of i)a in e&&(o[a]=e[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in e&&(o[a]=e[a]);if(e.type==="object"&&e.$ref===void 0){e.propertyNames!==void 0&&!Ni(e.propertyNames)&&(o.propertyNames=e.propertyNames);for(let a of["minProperties","maxProperties"])e[a]!==void 0&&(o[a]=e[a])}if(e.type==="array"&&e.$ref===void 0){e.contains!==void 0&&!Ni(e.contains)&&(o.contains=e.contains);for(let a of["uniqueItems","minContains","maxContains"])e[a]!==void 0&&(o[a]=e[a])}for(let a of Object.keys(e))WI.has(a)||We(o,a,e[a]);return Object.keys(o).length>0&&t.registry.add(n,o),e.description&&(n=n.describe(e.description)),n}function h4(e,t){if(typeof e=="boolean")return e?D.any():D.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let r=FI(n,t?.defaultTarget),o=n.$defs||n.definitions||{},i={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Fe};return nt(n,i)}var g4=Symbol("z.visit/resolving");function Oi(e,t){let n=typeof t=="function"?t:(s,a)=>{let c=t[s._zod.def.type];return c?c(s,a):s},r=new Map;function o(s){let a=r.get(s);if(a===g4)return new pi({type:"lazy",getter:()=>r.get(s)});if(a!==void 0)return a;r.set(s,g4);let c=i(s),u=n(c,c!==s);return r.set(s,u),u}function i(s){let a=s._zod.def,c=a.type;switch(c){case"object":{let u=a.shape,l=Object.keys(u),d=!1,m={};for(let h of l){let g=o(u[h]);g!==u[h]&&(d=!0),m[h]=g}let f=a.catchall;return a.catchall&&(f=o(a.catchall),f!==a.catchall&&(d=!0)),d?ce(s,{...a,shape:m,catchall:f}):s}case"array":{let u=o(a.element);return u===a.element?s:ce(s,{...a,element:u})}case"tuple":{let u=a.items,l=!1,d=[];for(let f of u){let h=o(f);h!==f&&(l=!0),d.push(h)}let m=a.rest;return a.rest&&(m=o(a.rest),m!==a.rest&&(l=!0)),l?ce(s,{...a,items:d,rest:m}):s}case"record":case"map":{let u=o(a.keyType),l=o(a.valueType);return u===a.keyType&&l===a.valueType?s:ce(s,{...a,keyType:u,valueType:l})}case"set":{let u=o(a.valueType);return u===a.valueType?s:ce(s,{...a,valueType:u})}case"union":{let u=a.options,l=!1,d=[];for(let m of u){let f=o(m);f!==m&&(l=!0),d.push(f)}return l?ce(s,{...a,options:d}):s}case"intersection":{let u=o(a.left),l=o(a.right);return u===a.left&&l===a.right?s:ce(s,{...a,left:u,right:l})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let u=o(a.innerType);return u===a.innerType?s:ce(s,{...a,innerType:u})}case"pipe":{let u=o(a.in),l=o(a.out);return u===a.in&&l===a.out?s:ce(s,{...a,in:u,out:l})}case"function":{let u=o(a.input),l=o(a.output);return u===a.input&&l===a.output?s:ce(s,{...a,input:u,output:l})}case"lazy":{let u=a.getter,{_cachedInner:l,...d}=a;return ce(s,{...d,getter:()=>o(u())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return s;default:return s}}return o(e)}function C4(e){return Oi(e,{object:t=>t.partial(),union:t=>{let n=t._zod.def;return n.discriminator===void 0?t:so(n.options)}})}function JI(e,t){if(!t?.length)return e;let n=e._zod.def;return ce(e,Rt(n,{checks:[...n.checks??[],...t]}),{parent:!0})}function k4(e){return JI(e.out,e.checks)}function YI(e){return e.in._zod.traits.has("$ZodTransform")?k4(e):e.in}function y4(e){return Oi(e,{pipe:t=>YI(t._zod.def),default:(t,n)=>n?sr(t._zod.def.innerType):t,catch:(t,n)=>n?t._zod.def.innerType:t})}function b4(e){return Oi(e,{pipe:t=>k4(t._zod.def),prefault:(t,n)=>n?t._zod.def.innerType:t})}var N2={};Lt(N2,{bigint:()=>t_,boolean:()=>e_,date:()=>n_,number:()=>QI,string:()=>XI});function XI(e){return rp(no,e)}function QI(e){return up(ro,e)}function e_(e){return gp(oo,e)}function t_(e){return kp(io,e)}function n_(e){return Mp(Li,e)}var O2=1e4,v4=se.string().min(1).max(1024),nn=se.array(v4).max(O2),r_=se.enum(["project","chronological","machine"]),o_=se.enum(["updated","created","alpha","none"]),i_=se.enum(["default","ascending","descending"]),s_=se.enum(["active","archived"]),a_=se.enum(["muted","colour","hidden"]),c_=se.enum(["blocked","everything"]),u_=se.array(se.union([se.literal("threads"),v4.regex(/^(project|section|machine):\S+$/)])).max(O2).transform(e=>[...new Set(e)]);function Ie(e,t,n){return{schema:e,defaultValue:t,description:n}}var Gc={threadLifecycles:Ie(se.array(s_).min(1).max(2).refine(e=>new Set(e).size===e.length,"Lifecycles must be unique"),["active"],'Threads shown: ["active"], ["archived"] or both. At least one is required.'),organizationMode:Ie(r_,"project","How top-level groups are formed: project, chronological (custom sections) or machine."),environmentGrouping:Ie(se.boolean(),!1,"Worktrees as folders: whether sibling threads sharing a worktree environment fold into a folder row."),chronologicalSort:Ie(o_,"updated","Sort field inside a group: updated, created or alpha. none is read as updated."),sortDirection:Ie(i_,"default","Sort direction: ascending or descending. A saved default reads as the field's own direction (descending for dates, ascending for alpha)."),sectionOrder:Ie(nn,["pinned","projects","threads"],"Top-level group order when organized by project."),manualSectionOrder:Ie(nn,["pinned","sections","threads"],"Top-level group order when organized chronologically."),machineSectionOrder:Ie(nn,["pinned","machines","threads"],"Top-level group order when organized by machine."),hiddenGroups:Ie(u_,[],"Groups moved into More: threads, project:<id>, section:<id> or machine:<id>."),collapsedSections:Ie(se.array(se.enum(["pinned","threads"])).max(O2),[],"Built-in groups (pinned, threads) that are collapsed."),collapsedProjects:Ie(nn,[],"Project ids whose group is collapsed."),collapsedThreadSections:Ie(nn,[],"Custom section keys (section:<id>) whose group is collapsed."),collapsedMachines:Ie(nn,[],"Machine ids whose group is collapsed."),collapsedEnvironments:Ie(nn,[],"Environment ids whose folder row is collapsed."),foldOlder:Ie(se.boolean(),!0,"Collapse older threads: whether each group's quiet roots past its 5 newest fold behind an N older row."),workingFirst:Ie(se.boolean(),!1,"Working threads first: whether working threads sort first under Updated, as bb's list does."),expandedOlder:Ie(nn,[],"Group ids and parent thread ids whose N older fold the user opened."),expandedChildren:Ie(nn,[],"Parent thread ids whose chip the user opened."),showPullRequests:Ie(se.boolean(),!0,"Whether rows show a pull request badge."),childAttention:Ie(c_,"blocked","Needs attention counts every child: blocked counts a child thread that waits on you, is offline or has an orphaned failure; everything also counts every failed or finished-unread child. The same children stay out of a family's older fold, as running ones do."),harnessIcon:Ie(a_,"muted","How rows draw the harness logo: muted (monochrome), colour (the provider's tint) or hidden.")},w4=Object.keys(Gc);function z2(e){return Object.hasOwn(Gc,e)}function l_(e){return structuredClone(Gc[e].defaultValue)}function d_(){return Object.fromEntries(w4.map(e=>[e,l_(e)]))}function Z2(e,t){let n=Gc[e].schema.safeParse(t);return n.success?{success:!0,value:n.data}:{success:!1,message:n.error.issues.map(r=>r.message).join("; ")}}function j2(e){let t=d_();if(e===null||typeof e!="object")return t;let n=e;for(let r of w4){if(!(r in n))continue;let o=Z2(r,n[r]);o.success&&(t[r]=o.value)}return t}var p_=se.object({density:se.enum(["compact","comfortable"]).catch("compact")}),W2="bb.thread-glance.client.v1",zi="bb.thread-glance.preferences.v1",x4="bb.thread-list.preferences.v1";function I4(e){let t=p_.safeParse(e??{});return t.success?t.data:{density:"compact"}}function Zi(e){try{let t=globalThis.localStorage?.getItem(e);return t==null?null:JSON.parse(t)}catch{return null}}function co(e,t){try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch{}}function _4(){let[e,t]=E(()=>I4(Zi(W2))),n=Z(r=>{t(o=>{let i={...o,...r};return co(W2,i),i})},[]);return[e,n]}function S4(e,t){let n=$(ll),r=$(null),o=$(void 0);return e!==null&&(e!==r.current||t!==o.current)&&(n.current=L5(n.current,t===null?void 0:e.familyOf.get(t)),r.current=e,o.current=t),n.current.heldRootId}function L4(e){let[t,n]=E(()=>Date.now());return z(()=>{let r=setInterval(()=>n(Date.now()),6e4);return()=>clearInterval(r)},[]),z(()=>{if(e===null)return;let r=e-Date.now();if(r<=0||r>2**31-1)return;let o=setTimeout(()=>n(Date.now()),r+50);return()=>clearTimeout(o)},[e]),t}var Kc=se.record(se.string(),se.number()),pT=se.object({startedAt:Kc,finishedAt:Kc,pendingAt:Kc,seenAt:Kc}),f_=140,F2=se.object({kind:se.enum(["question","approval","plan","input","failed","done"]),text:se.string().max(f_),at:se.number()}),P4=se.object({pending:F2.optional(),failed:F2.optional(),done:F2.optional()}),An={preferences:"preferences",stamps:"stamps",scheduled:"scheduled",notes:"notes"};var m_=150;function M4(){let e=hn(),[t,n]=E(()=>j2(Zi(zi))),[r,o]=E(!1),i=$(new Map),s=$(null),a=mn(),c=$(!1),u=Z(async()=>{try{let{preferences:m}=await e.call("listPreferences",null),f=j2(m);for(let[h,g]of i.current)f[h]=g;n(f),co(zi,f)}finally{o(!0)}},[e]);z(()=>{let m=!1;return(async()=>{try{await e.call("importPreferences",{bbMirror:Zi(x4)})}catch{}m||await u().catch(()=>{})})(),()=>{m=!0}},[e,u]),z(()=>{a==="connected"&&(c.current&&u().catch(()=>{}),c.current=!0)},[a,u]),fn(An.preferences,m=>{let f=m;if(!z2(f?.key)||i.current.has(f.key))return;let h=Z2(f.key,f.value);h.success&&n(g=>{let k={...g,[f.key]:h.value};return co(zi,k),k})});let l=Z(()=>{let m=[...i.current];i.current.clear();for(let[f,h]of m)e.call("setPreference",{key:f,value:h}).catch(g=>{st.error(`Couldn't save the ${f} setting`,{description:g instanceof Error?g.message:String(g)})})},[e]);z(()=>()=>{s.current!==null&&clearTimeout(s.current),l()},[l]);let d=Z(m=>{n(f=>{let h={...f,...m};return co(zi,h),h});for(let[f,h]of Object.entries(m))z2(f)&&i.current.set(f,h);s.current!==null&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,l()},m_)},[l]);return{prefs:t,hydrated:r,update:d}}var V2={};function R4(){let e=hn(),[t,n]=E(V2),r=mn(),o=$(!1),[i,s]=E(0);return z(()=>{let a=!1;return e.call("listScheduled",null).then(c=>{a||n(c.status==="ready"?c.scheduled:V2)},()=>{}),()=>{a=!0}},[e,i]),z(()=>{r==="connected"&&(o.current&&s(a=>a+1),o.current=!0)},[r]),fn(An.scheduled,a=>{let c=a;c===null||typeof c!="object"||n(c.status==="ready"&&c.scheduled?c.scheduled:V2)}),t}var T4={startedAt:{},finishedAt:{},pendingAt:{},seenAt:{}},h_=new Set(Object.keys(T4));function $4(){let e=hn(),[t,n]=E(T4),r=mn(),o=$(!1),i=Z(()=>{e.call("listStamps",null).then(u=>n(u.stamps),()=>{})},[e]);z(i,[i]),z(()=>{r==="connected"&&(o.current&&i(),o.current=!0)},[r,i]);let s=Z(u=>{!h_.has(u.kind)||!Array.isArray(u.threadIds)||n(l=>{let d={...l[u.kind]};for(let m of u.threadIds)u.value===null?delete d[m]:d[m]=u.value;return{...l,[u.kind]:d}})},[]);fn(An.stamps,u=>s(u));let a=Z(u=>{u.length!==0&&(s({kind:"seenAt",threadIds:u,value:Date.now()}),e.call("markSeen",{threadIds:u}).catch(()=>{}))},[s,e]),c=Z(u=>{u.length!==0&&(s({kind:"seenAt",threadIds:u,value:null}),e.call("clearSeen",{threadIds:u}).catch(()=>{}))},[s,e]);return{stamps:t,markSeen:a,clearSeen:c}}function H2(e,t,n){let r=new Set,o=e;for(;o!==null&&!r.has(o);){if(o===t)return!0;r.add(o),o=n(o)}return!1}function A4(e,t,n){if(t==="pinned")return e.pinned?{type:"unchanged"}:{type:"pin",threadId:e.threadId};if(e.pinned)return{type:"unpin",threadId:e.threadId};if(n.mode==="chronological"&&(t==="threads"||t.startsWith("section:"))){let r=t==="threads"?null:t.slice(8);return r===e.sectionId&&e.parentThreadId===null?{type:"unchanged"}:{type:"move",threadId:e.threadId,sectionId:r,detach:e.parentThreadId!==null}}return e.parentThreadId!==null?{type:"detach",threadId:e.threadId}:{type:"unchanged"}}function B2(e,t,n){if(t.kind==="group")return A4(e,t.groupId,n);if(t.threadId===e.threadId)return{type:"unchanged"};if(t.zone==="middle")return H2(t.threadId,e.threadId,n.parentOf)?{type:"blocked"}:e.parentThreadId===t.threadId?{type:"unchanged"}:{type:"nest",threadId:e.threadId,parentThreadId:t.threadId,unpinFirst:e.pinned};if(t.inPinned&&n.pinnedOrder.includes(t.threadId)){if(!e.pinned)return{type:"pin",threadId:e.threadId};let r=n.pinnedOrder.filter(u=>u!==e.threadId),o=r.indexOf(t.threadId),i=t.zone==="before"?o:o+1,s=r[i-1]??null,a=r[i]??null,c=n.pinnedOrder.indexOf(e.threadId);return(n.pinnedOrder[c-1]??null)===s&&(n.pinnedOrder[c+1]??null)===a?{type:"unchanged"}:{type:"reorder-pinned",threadId:e.threadId,previousThreadId:s,nextThreadId:a}}return A4(e,n.groupOfThread(t.threadId),n)}var g_=["waits-on-you","unread-failed","queue-failed","offline","working","unread"],D4={question:{icon:"CircleQuestion",label:"Asks a question"},approval:{icon:"SecurityCheck",label:"Needs approval"},plan:{icon:"ListTodo",label:"Plan to review"},input:{icon:"MessageQuestion",label:"Needs your input"}},E4=new Set(["pending","starting","active","stopping","idle","error"]),U2=new Set(["provisioning","starting","active","stopping","host-reconnecting"]),C_=new Set([...E4,...U2,"waiting-for-host"]);function lr(e){return E4.has(e.status)?e.status:"idle"}function G2(e){return C_.has(e.runtimeStatus)?e.runtimeStatus:lr(e)}function qc(e){return e.queuedWork==="waiting"||e.queuedWork==="failed"?e.queuedWork:"none"}function k_(e){return U2.has(G2(e))}function y_(e){return G2(e)==="waiting-for-host"}function N4(e,t){let n=lr(e),r=e.lastReadAt??0;return(n==="idle"||n==="error")&&r<e.latestAttentionAt?!0:ji(e,t)}function ji(e,t){if(e.parentThreadId===null||lr(e)!=="idle"||e.id===t.activeThreadId)return!1;let n=t.finishedAt[e.id];return n===void 0?!1:n>Math.max(e.lastReadAt??0,t.seenAt[e.id]??0)}var b_=[["planMode","ListTodo","Plan mode active"],["goals","Target","Goal active"],["workflows","Workflow","Workflow running"],["backgroundAgents","UserRoundPlus","Background agent running"],["backgroundCommands","Terminal","Background command running"]];function _e(e,t,n=!1,r=!1){return{icon:e,tone:t,spin:n,shine:r}}function v_(e){switch(e){case"provisioning":return"Setting up";case"host-reconnecting":return"Reconnecting";case"stopping":return"Stopping";default:return"Working"}}function O4(e,t){let n=lr(e),r=G2(e),o=qc(e),i={sendAt:null};if(e.hasPendingInteraction){let s=D4[t.needsKind??"input"]??D4.input,a=t.needsKind?s.icon:"CircleQuestion";return{kind:"waits-on-you",label:s.label,glyph:_e(a,"attention"),...i}}if(n==="error")return{kind:"failed",label:"Failed",glyph:_e("CircleX","destructive"),...i};if(o==="failed")return{kind:"queue-failed",label:"Queued message failed to send",glyph:_e("AlertTriangle","destructive"),...i};if(r==="waiting-for-host")return{kind:"offline",label:"Machine offline",glyph:_e("CloudOff","attention"),...i};if(U2.has(r)){let s=v_(r);return t.hasDraft?{kind:"working",label:`${s}, unsubmitted draft`,glyph:_e("Edit","working",!1,!0),...i}:e.activity.planMode>0?{kind:"working",label:`${s}, plan mode`,glyph:_e("ListTodo","working",!1,!0),...i}:e.activity.goals>0?{kind:"working",label:`${s}, goal active`,glyph:_e("Target","working",!1,!0),...i}:{kind:"working",label:s,glyph:_e("Loading","working",!0),...i}}for(let[s,a,c]of b_)if(e.activity[s]>0)return{kind:"background",label:c,glyph:_e(a,"background",!1,!0),...i};return o==="waiting"?t.scheduledAt!==null&&t.scheduledAt>t.now?{kind:"scheduled",label:"Scheduled message",glyph:_e("Calendar","muted-strong"),sendAt:t.scheduledAt}:{kind:"queued",label:"Message waiting to send",glyph:_e("Clock","muted-strong"),...i}:t.unread?{kind:"unread",label:"Unread",glyph:_e("dot","none"),...i}:t.hasDraft?{kind:"draft",label:"Unsubmitted draft",glyph:_e("Edit","muted"),...i}:{kind:"idle",label:"Idle",glyph:_e(null,"none"),...i}}function z4(e,t){return!(t===null||e.kind==="waits-on-you"||e.kind==="failed"||e.kind==="working"&&e.glyph.spin)}function Z4(e,t){let n=new Set;return e.hasPendingInteraction&&n.add("waits-on-you"),lr(e)==="error"&&t&&n.add("unread-failed"),qc(e)==="failed"&&n.add("queue-failed"),y_(e)&&n.add("offline"),k_(e)&&n.add("working"),t&&n.add("unread"),n}function j4(e){let t=new Set;return e.has("waits-on-you")&&t.add("waits-on-you"),e.has("unread-failed")&&t.add("unread-failed"),t}function K2(e){return g_.find(t=>e.has(t))??null}function q2(e){switch(e){case"waits-on-you":return"attention";case"unread-failed":case"queue-failed":return"destructive";case"working":return"working";default:return"neutral"}}var Jc={"waits-on-you":{..._e("CircleQuestion","attention"),label:"needs your input"},"unread-failed":{..._e("CircleX","destructive"),label:"failed"},"queue-failed":{..._e("AlertTriangle","destructive"),label:"queued message failed"},offline:{..._e("CloudOff","attention"),label:"machine offline"},working:{..._e("Loading","working",!0),label:"working"},unread:{..._e("dot","none"),label:"unread"}};function Yc(e,t,n){return t||n?!1:e.kind==="idle"||e.kind==="draft"||e.kind==="failed"}function W4(e,t){let n=t.thread.createdAt-e.thread.createdAt;return n!==0?n:e.thread.id<t.thread.id?-1:e.thread.id>t.thread.id?1:0}function w_(e,t){let n=e.thread.displayTitle.localeCompare(t.thread.displayTitle);return n!==0?n:e.thread.id.localeCompare(t.thread.id)}function x_(e,t){let n=t.familyAttention-e.familyAttention;return n!==0?n:W4(e,t)}function rn(e){return e==="none"?"updated":e}function Xc(e){return rn(e)==="alpha"?"ascending":"descending"}function J2(e,t){return t==="default"?Xc(e):t}function Y2(e){let t=rn(e.field),n=J2(t,e.direction)===Xc(t)?1:-1,r=t==="alpha"?w_:t==="created"?W4:x_;return(o,i)=>{if(t==="updated"&&e.workingFirst){let s=o.thread.status==="active",a=i.thread.status==="active";if(s!==a)return s?-1:1}return n*r(o,i)}}function F4(e,t){if(e.pinSortKey!==null&&t.pinSortKey!==null&&e.pinSortKey!==t.pinSortKey)return e.pinSortKey<t.pinSortKey?-1:1;let n=(t.pinnedAt??0)-(e.pinnedAt??0);if(n!==0)return n;let r=t.createdAt-e.createdAt;return r!==0?r:e.id<t.id?-1:e.id>t.id?1:0}function V4(e,t){let n=e.createdAt-t.createdAt;return n!==0?n:e.id<t.id?-1:e.id>t.id?1:0}var H4={question:"Asks",approval:"Approve",plan:"Plan",input:"Needs"};function Qc(e){let t=e?.pending?.kind;return t==="question"||t==="approval"||t==="plan"||t==="input"?t:null}function B4(e,t){if(e.hasPendingInteraction){let n=Qc(t),r=t?.pending?.text.trim();return n===null||!r?null:{prefix:H4[n],text:r,tone:"attention"}}if(lr(e)==="error"){let n=t?.failed?.text.trim();return n&&n.toLowerCase()!=="failed"?{prefix:"Failed",text:n,tone:"destructive"}:null}return qc(e)==="failed"?{prefix:"Failed",text:"queued message wasn't sent",tone:"destructive"}:null}function U4(e,t,n){if(n.has("waits-on-you"))return{prefix:H4[Qc(t)??"input"],text:t?.pending?.text.trim()??"",tone:"attention"};if(n.has("unread-failed")){let r=t?.failed?.text.trim()??"";return{prefix:"Failed",text:r.toLowerCase()==="failed"?"":r,tone:"destructive"}}return n.has("queue-failed")?{prefix:"Failed",text:"queued message wasn't sent",tone:"destructive"}:n.has("offline")?{prefix:"Offline",text:e.host?.name.trim()??"",tone:"attention"}:n.has("unread")?{prefix:"Finished",text:X2(t)?.text.trim()??"",tone:"muted"}:null}function G4(e){return e.text===""?e.prefix:`${e.prefix}: ${e.text}`}function X2(e){return e?.done??null}var I_=new Set(["working","background"]);function K4(e){return e.pinnedAt!==null||e.isPinned}function __(e,t){let n=new Set([e.id]),r=e.parentThreadId,o=null,i=!1;for(;r!==null;){if(n.has(r))return null;n.add(r);let s=t.get(r);if(s===void 0)break;s.isHidden||(o??=s.id,K4(s)&&(i=!0)),r=s.parentThreadId}return!e.isHidden&&K4(e)&&!i?null:o}function q4(e){let t=new Map(e.threads.map(l=>[l.id,l])),n=new Map;for(let l of e.threads){let d=N4(l,e),m=O4(l,{unread:d,hasDraft:e.draftIds.has(l.id),scheduledAt:e.scheduled[l.id]??null,now:e.now,needsKind:Qc(e.notes?.[l.id])}),f=Z4(l,d),h=l.id===e.activeThreadId;n.set(l.id,{thread:l,state:m,unread:d,flags:l.isHidden?j4(f):f,attentionFlags:new Set,quiet:Yc(m,d,h),quietIgnoringOpen:!1,isActive:h,parentId:__(l,t),note:B4(l,e.notes?.[l.id]),attentionNote:null})}let r=e.childAttention??"blocked";for(let l of n.values()){let d=l.parentId===null?void 0:n.get(l.parentId);l.attentionFlags=I5(l.flags,{isRoot:d===void 0,mode:r,orphaned:d!==void 0&&x5(l.thread,l.flags,{...d,finishedAt:e.finishedAt[d.thread.id]})}),l.attentionNote=U4(l.thread,e.notes?.[l.thread.id],l.attentionFlags),l.quietIgnoringOpen=d===void 0||r==="everything"?Yc(l.state,l.unread,!1):l.thread.isArchived||!I_.has(l.state.kind)&&l.attentionFlags.size===0}let o=new Map,i=[];for(let l of n.values()){if(l.parentId===null){l.thread.isHidden||i.push(l);continue}let d=o.get(l.parentId)??[];d.push(l.thread.id),o.set(l.parentId,d)}for(let l of o.values())l.sort((d,m)=>V4(t.get(d),t.get(m)));let s=new Map,a=(l,d)=>{let m=s.get(l);if(m!==void 0)return m;let f=[],h=new Set,g=0,k=!0;d.add(l);for(let y of o.get(l)??[]){if(d.has(y))continue;let w=n.get(y),T=a(y,d);if(f.push(w,...T.descendants),!w.thread.isArchived){for(let M of w.attentionFlags)h.add(M);w.flags.has("working")&&h.add("working")}for(let M of T.flags)h.add(M);(w.thread.isHidden?w.attentionFlags.size>0:!w.quietIgnoringOpen)&&(k=!1),w.thread.isHidden||(g+=1),g+=T.visibleCount,T.quietIgnoringOpen||(k=!1)}d.delete(l);let v={descendants:f,flags:h,visibleCount:g,quietIgnoringOpen:k};return s.set(l,v),v};for(let l of n.keys())a(l,new Set);let c=[],u=new Map;for(let l of i){let{descendants:d,flags:m,visibleCount:f}=s.get(l.thread.id),h=l.thread.latestAttentionAt,g=l.quiet,k=Yc(l.state,l.unread,!1),v=l.isActive,y=new Set;for(let M of d){if(!M.thread.isArchived)for(let x of M.attentionFlags)y.add(x);h=Math.max(h,M.thread.latestAttentionAt),M.isActive&&(v=!0),M.thread.isHidden?M.attentionFlags.size>0&&(g=k=!1):(M.quiet||(g=!1),M.quietIgnoringOpen||(k=!1))}let w=new Set(m);if(!l.thread.isArchived){for(let M of l.attentionFlags)w.add(M),y.add(M);l.flags.has("working")&&w.add("working")}let T={root:l,descendants:d,descendantFlags:m,flags:w,attentionFlags:y,visibleDescendantCount:f,latestAttentionAt:h,quiet:g&&!v,quietIgnoringOpen:k,containsActive:v};c.push(T),u.set(l.thread.id,T);for(let M of d)u.set(M.thread.id,T)}return{infos:n,children:o,families:c,familyOf:u,subtrees:s}}function uo(e,t,n=null){let r=[],o=new Set([e]),i=t.get(e)?.parentId??null;for(;i!==null&&i!==n&&!o.has(i);)r.push(i),o.add(i),i=t.get(i)?.parentId??null;return r}var At="pinned",wt="threads";function S_(e){return e.pinnedAt!==null||e.isPinned}function J4(e){return e.find(t=>t.isPersonal)??null}function eu(e,t){if(S_(e)&&!e.isHidden)return At;switch(t.mode){case"project":{let n=t.projects.find(r=>r.id===e.projectId);return n===void 0||n.isPersonal?wt:`project:${n.id}`}case"chronological":return e.sectionId===null?wt:`section:${e.sectionId}`;case"machine":return e.host===null?wt:`machine:${e.host.id}`}}function Y4(e,t){let n=J4(e.projects);switch(e.mode){case"project":return e.projects.filter(r=>!r.isPersonal).map(r=>({id:`project:${r.id}`,kind:"project",label:r.name,entityId:r.id,newThreadProjectId:r.id,newThreadSectionId:null}));case"chronological":{let r=new Set(e.sections.map(s=>s.id)),o=[...e.sections];t&&o.sort((s,a)=>s.name.localeCompare(a.name));let i=o.map(s=>({id:`section:${s.id}`,kind:"section",label:s.name,entityId:s.id,newThreadProjectId:n?.id??null,newThreadSectionId:s.id}));for(let s of e.threads)s.sectionId===null||r.has(s.sectionId)||(r.add(s.sectionId),i.push({id:`section:${s.sectionId}`,kind:"section",label:"Section",entityId:s.sectionId,newThreadProjectId:n?.id??null,newThreadSectionId:s.sectionId}));return i}case"machine":{let r=new Map;for(let o of e.threads)o.host!==null&&!r.has(o.host.id)&&r.set(o.host.id,o.host.name);return[...r].map(([o,i])=>({id:`machine:${o}`,kind:"machine",label:i||"Unknown machine",entityId:o,newThreadProjectId:null,newThreadSectionId:null}))}}}function Q2(e,t){return e===At?{id:e,kind:"pinned",label:"Pinned",entityId:null,newThreadProjectId:null,newThreadSectionId:null}:{id:e,kind:"threads",label:"Threads",entityId:null,newThreadProjectId:J4(t)?.id??null,newThreadSectionId:null}}var L_={project:"projects",chronological:"sections",machine:"machines"},Wi={project:"sectionOrder",chronological:"manualSectionOrder",machine:"machineSectionOrder"};function X4(e,t,n){let r=L_[e],o=new Set(n),i=new Set(t),s=[],a=u=>{s.includes(u)||s.push(u)};for(let u of t)if(u===r)for(let l of n)i.has(l)||a(l);else(u===At||u===wt||o.has(u))&&a(u);let c=n.filter(u=>!s.includes(u));if(c.length>0){let u=-1;s.forEach((d,m)=>{o.has(d)&&(u=m)});let l=u>=0?u+1:s.includes(wt)?s.indexOf(wt):s.length;s.splice(l,0,...c)}return s.includes(At)||s.unshift(At),s.includes(wt)||s.push(wt),s}function em(e,t,n,r){if(t===n)return[...e];let o=e.filter(s=>s!==t),i=o.indexOf(n);return i<0?[...e]:(o.splice(r==="before"?i:i+1,0,t),o)}function tu(e,t){switch(e.kind){case"pinned":case"threads":return t.collapsedSections.includes(e.kind);case"project":return t.collapsedProjects.includes(e.entityId);case"section":return t.collapsedThreadSections.includes(e.id);case"machine":return t.collapsedMachines.includes(e.entityId)}}function tm(e,t){let n=(r,o)=>r.includes(o)?r.filter(i=>i!==o):[...r,o];switch(e.kind){case"pinned":case"threads":return{collapsedSections:n(t.collapsedSections,e.kind)};case"project":return{collapsedProjects:n(t.collapsedProjects,e.entityId)};case"section":return{collapsedThreadSections:n(t.collapsedThreadSections,e.id)};case"machine":return{collapsedMachines:n(t.collapsedMachines,e.entityId)}}}var N={archive:"Archive",unarchive:"ArchiveRestore",more:"MoreHorizontal",openInSplit:"Columns2",copy:"Copy",link:"ExternalLink",markRead:"MailOpen",markUnread:"Mail",pin:"Pin",unpin:"PinOff",moveToSection:"SectionMove",rename:"Edit",remove:"Trash2",details:"Info",crossGroup:"FolderExport",hidden:"EyeOff",show:"Eye",expand:"ChevronRight",collapse:"ChevronDown",moveUp:"ChevronUp",newThread:"Plus",newSection:"SectionAdd",settings:"Settings",customize:"SlidersHorizontal",check:"Check",pullRequest:"GitPullRequest",branch:"GitBranch",worktree:"FolderGit",machine:"Laptop",environmentFallback:"Zap",filter:"FilterHorizontal",drag:"DragDropVertical",move:"MoveTo",open:"ArrowUpRight"},jT=Object.values(N);function Q4(e){let{thread:t}=e,n=t.archivedAt!==null||t.isArchived,r=t.pinnedAt!==null||t.isPinned,o=[];return o.push({action:"details",label:"Details",icon:N.details}),e.splitAvailable&&o.push({action:"open-in-split",label:"Open in split",icon:N.openInSplit}),o.push({action:"copy-link",label:"Copy thread link",icon:N.link}),o.push({action:"copy-id",label:"Copy thread ID",icon:N.copy}),o.push(e.unread?{action:"mark-read",label:"Mark read",icon:N.markRead}:{action:"mark-unread",label:"Mark unread",icon:N.markUnread}),o.push(r?{action:"unpin",label:"Unpin",icon:N.unpin}:{action:"pin",label:"Pin",icon:N.pin}),e.isRoot&&!n&&e.hasSections&&o.push({action:"move-to-section",label:"Move to section",icon:N.moveToSection}),n||o.push({action:"move",label:"Move\u2026",icon:N.move}),o.push({action:"rename",label:"Rename",icon:N.rename}),o.push(n?{action:"unarchive",label:"Unarchive",icon:N.unarchive,separated:!0}:{action:"archive",label:"Archive",icon:N.archive,separated:!0}),o.push({action:"delete",label:"Delete",icon:N.remove,destructive:!0}),o}var e8=20;function t8(e){return e.split(/[^\p{L}\p{N}]+/u).map(t=>t.trim()).filter(t=>t.length>0)}function n8(e){let t=e.displayName?.trim()||e.id,n=t8(t),r=t8(e.id),o=(n[0]??e.id)[0]??"?",i=[],s=a=>{if(a===void 0)return;let c=(o+a).toUpperCase();i.includes(c)||i.push(c)};s((n[0]??"")[1]);for(let a of n.slice(1))s(a[0]);for(let a of r)for(let c of a)s(c);for(let a of(n[0]??"").slice(2))s(a);return i.length===0&&i.push(o.toUpperCase()),i}function r8(e){let t=new Map,n=new Set;for(let r of e){let o=n8(r),i=o.find(s=>!n.has(s))??o[0];n.add(i),t.set(r.id,i)}return t}function o8(e,t){return t.get(e)??n8({id:e})[0]}function nu(e,t){return e.filter(n=>n!==t)}function i8(e,t){return n=>uo(n,e.infos).includes(t)}function s8(e,t,n){let r=e.info.thread.id;return e.chip?.expanded??!1?{patch:{expandedChildren:nu(t.expandedChildren,r)},drop:i8(n,r)}:ru(r,t)}function ru(e,t){return{patch:{expandedChildren:[...nu(t.expandedChildren,e),e]},drop:null}}function a8(e,t,n,r){if(e.scope==="reveal")return ru(e.scopeId,t);if(!e.expanded)return{patch:{expandedOlder:[...nu(t.expandedOlder,e.scopeId),e.scopeId]},drop:null};let o={expandedOlder:nu(t.expandedOlder,e.scopeId)};if(e.scope==="family")return{patch:o,drop:i8(r,e.scopeId)};let i=new Set;for(let a of r.families)a.quietIgnoringOpen&&i.add(a.root.thread.id);let s=new Set(n?.rootIds??[]);return{patch:o,drop:a=>{let c=r.familyOf.get(a);return c!==void 0&&i.has(c.root.thread.id)&&s.has(c.root.thread.id)}}}function c8(e,t,n){let r=new Set(e.rootIds),o=i=>{let s=n.familyOf.get(i);return s!==void 0&&r.has(s.root.thread.id)};return e.collapsed?{patch:tu(e.descriptor,t)?tm(e.descriptor,t):{},drop:null}:e.userCollapsed?{patch:{},drop:o}:{patch:tm(e.descriptor,t),drop:o}}function u8(e,t){let n=[],r=[];for(let o of e)for(let i of[o.root,...o.descendants])!i.unread||i.thread.isArchived||(n.push(i.thread.id),ji(i.thread,t)&&r.push(i.thread.id));return{read:n,seen:r}}var nm={waitsOnYou:0,failed:0,offline:0,working:0,unread:0};function l8(e){let t={...nm};for(let n of e)for(let r of[n.root,...n.descendants]){if(r.thread.isArchived)continue;let o=r.attentionFlags;o.has("waits-on-you")&&(t.waitsOnYou+=1),(o.has("unread-failed")||o.has("queue-failed"))&&(t.failed+=1),o.has("offline")&&(t.offline+=1),r.flags.has("working")&&(t.working+=1),o.has("unread")&&(t.unread+=1)}return t}function d8(e,t){return{waitsOnYou:e.waitsOnYou+t.waitsOnYou,failed:e.failed+t.failed,offline:e.offline+t.offline,working:e.working+t.working,unread:e.unread+t.unread}}function p8(e,t){return{waitsOnYou:e.waitsOnYou,failed:e.failed,offline:e.offline,working:t.collapsed||t.more?e.working:0,unread:t.more?e.unread:0}}var P_=5,M_=3,m8="attention";function R_(e,t){return t===null?null:e.forest.infos.get(t)?.thread.displayTitle??null}function T_(e,t,n){let r=t.thread,o=n.thread;if(t===n)return null;switch(e.prefs.organizationMode){case"project":return r.projectId===o.projectId?null:`In project ${e.projectNames.get(r.projectId)??"another project"}`;case"chronological":return r.sectionId===o.sectionId?null:r.sectionId===null?"In Threads":`In section ${e.sectionNames.get(r.sectionId)??"another section"}`;case"machine":return(r.host?.id??null)===(o.host?.id??null)?null:r.host===null?"On no machine":`On machine ${r.host.name}`}}function $_(e,t,n){return t.parentId===null&&n!==null?e.forest.familyOf.get(t.thread.id)?.quiet??t.quiet:t.quiet}function ou(e,t,n,r){let o=!t.thread.isArchived&&t.attentionFlags.size>0;return{type:"thread",key:`thread:${t.thread.id}`,info:t,depth:r.depth,nested:r.nested,parentTitle:R_(e,t.parentId),chip:r.chip,note:e.drawnInAttention&&o?t.attentionNote:t.note,dimmed:$_(e,t,r.chip),hiddenBadge:t.thread.isHidden,crossGroupLabel:T_(e,t,n),homeGroupLabel:null,projectId:t.thread.projectId}}function A_(e,t){return(e.forest.children.get(t)??[]).map(n=>e.forest.infos.get(n)).filter(n=>!n.thread.isHidden||n.attentionFlags.size>0)}function rm(e,t){return e.forest.subtrees.get(t)}function D_(e,t,n){let r=t.thread.id,o=A_(e,r),i=h=>e.revealIds.has(h.thread.id)||e.revealPath.has(h.thread.id),s=(h,g,k)=>g>0?{type:"older",key:`older:${h}:${r}`,scopeId:r,scope:h,count:g,expanded:k,depth:n}:null;if(!e.expandedChildren.has(r)){let h=o.filter(i),g=o.filter(k=>!i(k)&&!k.thread.isHidden).length;return{shown:h,older:h.length>0?s("reveal",g,!1):null}}let a=h=>h.quietIgnoringOpen&&rm(e,h.thread.id).quietIgnoringOpen,c=new Set;for(let h of o)(h.thread.isHidden||!a(h))&&c.add(h.thread.id);let u=o.filter(h=>!c.has(h.thread.id)&&!h.thread.isHidden).sort((h,g)=>g.thread.createdAt-h.thread.createdAt).slice(0,M_);for(let h of u)c.add(h.thread.id);let l=e.expandedOlder.has(r),d=h=>c.has(h.thread.id)||i(h)||e.activePath.has(h.thread.id),m=o.filter(h=>!d(h)).length;return{shown:l?o:o.filter(d),older:s("family",m,l)}}function E_(e){let t=e.environment;return t===null?"Environment":t.name?t.name:t.branchName?t.branchName:t.path?t.path.split(/[\\/]/).filter(Boolean).pop()??"Environment":"Environment"}function h8(e,t,n){if(!e.prefs.environmentGrouping)return t.flatMap(s=>s.rows);let r=new Map;for(let s of t){let a=s.info.thread.environment;a?.isWorktree===!0&&a.id!==null&&r.set(a.id,(r.get(a.id)??0)+1)}let o=[],i=new Set;for(let s of t){let a=s.info.thread.environment,c=a?.isWorktree===!0?a.id:null;if(c===null||(r.get(c)??0)<2){o.push(...s.rows);continue}if(i.has(c))continue;i.add(c);let u=t.filter(m=>m.info.thread.environment?.id===c),l=e.collapsedEnvironments.has(c),d=new Set;for(let m of u)for(let f of m.flags)d.add(f);if(o.push({type:"environment",key:`environment:${c}:${s.info.thread.id}`,environmentId:c,label:E_(s.info.thread),environmentProviderId:a?.providerId??null,projectId:s.info.thread.projectId,sectionId:s.info.thread.sectionId,threadIds:u.map(m=>m.info.thread.id),collapsed:l,flag:l?K2(d):null,depth:n}),!l)for(let m of u)for(let f of m.rows)o.push({...f,depth:f.depth+1})}return o}function N_(e,t){let n=[];for(let r of t){let o=r.thread.providerId;if(!(r.thread.isHidden||o===e.thread.providerId||n.includes(o))&&(n.push(o),n.length===3))break}return n}function om(e,t,n){let r=rm(e,t.thread.id);return r.visibleCount>0||r.descendants.some(i=>i.thread.isHidden&&i.attentionFlags.size>0)?{count:r.visibleCount,flag:K2(r.flags),expanded:n,providerIds:N_(t,r.descendants)}:null}function O_(e,t){let n=new Set([...t.attentionFlags,...rm(e,t.thread.id).flags]);return t.flags.has("working")&&n.add("working"),n}function g8(e,t,n,r){let{shown:o,older:i}=D_(e,n,r),s=o.map(c=>({info:c,flags:O_(e,c),rows:[ou(e,c,t.root,{depth:r,nested:r>1,chip:om(e,c,e.expandedChildren.has(c.thread.id))}),...g8(e,t,c,r+1)]})),a=h8(e,s,r);return i!==null&&a.push(i),a}function C8(e,t){let n=t.root,r=om(e,n,e.expandedChildren.has(n.thread.id));return[ou(e,n,n,{depth:0,nested:!1,chip:r}),...g8(e,t,n,1)]}function z_(e,t){return{info:t.root,rows:C8(e,t),flags:t.flags}}function f8(e){let t=e.attentionFlags;return t.has("waits-on-you")?0:t.has("unread-failed")||t.has("queue-failed")?1:t.has("offline")?2:t.has("unread")?3:4}function Z_(e,t,n){let r={...e,drawnInAttention:!0},o=t.root,i=new Set([o.thread.id]);for(let d of t.descendants)if(!(!(!d.thread.isArchived&&d.attentionFlags.size>0)&&!d.isActive)){i.add(d.thread.id);for(let f of uo(d.thread.id,r.forest.infos,o.thread.id))i.add(f)}if(r.expandedChildren.has(o.thread.id)){let d={...r,revealIds:new Set([...r.revealIds,...i])},[m,...f]=C8(d,t);return[{...m,homeGroupLabel:n},...f]}let a=om(r,o,!1),c=[{...ou(r,o,o,{depth:0,nested:!1,chip:a}),homeGroupLabel:n}],u=(d,m)=>{for(let f of r.forest.children.get(d)??[])i.has(f)&&(c.push(ou(r,r.forest.infos.get(f),o,{depth:m,nested:m>1,chip:null})),u(f,m+1))};u(o.thread.id,1);let l=t.descendants.filter(d=>!d.thread.isHidden&&!i.has(d.thread.id)).length;return l>0&&c.push({type:"left-out",key:`left-out:${o.thread.id}`,scopeId:o.thread.id,count:l,depth:1}),c}function j_(e,t,n){if(t.length===0)return null;let r=Y2({field:e.prefs.chronologicalSort,direction:"default",workingFirst:e.prefs.workingFirst}),o=[...t].sort((a,c)=>f8(a)-f8(c)||r({thread:a.root.thread,familyAttention:a.latestAttentionAt},{thread:c.root.thread,familyAttention:c.latestAttentionAt})),i={},s=o.flatMap(a=>{let c=n(a),u=Z_(e,a,c.label);for(let l of u)l.type==="thread"&&(i[l.info.thread.id]=c.id);return u});return{familyCount:o.length,rows:s,homeGroupIds:i}}function W_(e,t,n,r,o){let i=l8(n),s=tu(t,e.prefs),a=r.some(k=>e.targets.has(k.root.thread.id)||k.descendants.some(v=>e.targets.has(v.thread.id))),c=s&&!a,u=t.id===At,l=[...r];u?l.sort((k,v)=>F4(k.root.thread,v.root.thread)):l.sort((k,v)=>e.compare({thread:k.root.thread,familyAttention:k.latestAttentionAt},{thread:v.root.thread,familyAttention:v.latestAttentionAt}));let d=l,m=null;if(!u&&e.prefs.foldOlder){let k=l.filter(M=>M.quietIgnoringOpen&&!M.root.thread.isArchived),v=rn(e.prefs.chronologicalSort)==="created",y=M=>v?M.root.thread.createdAt:M.latestAttentionAt,w=new Set([...k].sort((M,x)=>y(x)-y(M)).slice(0,P_)),T=k.filter(M=>!w.has(M)&&!M.containsActive);if(T.length>0){let M=e.expandedOlder.has(t.id)||T.some(A=>e.targets.has(A.root.thread.id)||A.descendants.some(V=>e.targets.has(V.thread.id))),x=new Set(T);M||(d=l.filter(A=>!x.has(A))),m={type:"older",key:`older:group:${t.id}`,scopeId:t.id,scope:"group",count:T.length,expanded:M,depth:0}}}let h=d.map(k=>z_(e,k)),g=h8(e,h,0);return m!==null&&g.push(m),{descriptor:t,counters:i,userCollapsed:s,collapsed:c,hidden:o,rows:g,rootIds:n.map(k=>k.root.thread.id)}}function k8(e){let{forest:t,prefs:n}=e,r=new Set,o=new Set;for(let[x,A]of e.targets)if(!(A!=="reveal"||!t.infos.has(x))){r.add(x);for(let V of uo(x,t.infos))o.add(V)}let i=new Set;if(e.activeThreadId!==null&&t.infos.has(e.activeThreadId)){i.add(e.activeThreadId);for(let x of uo(e.activeThreadId,t.infos))i.add(x)}let s={...e,compare:Y2({field:n.chronologicalSort,direction:n.sortDirection,workingFirst:n.workingFirst}),expandedChildren:new Set(n.expandedChildren),expandedOlder:new Set(n.expandedOlder),collapsedEnvironments:new Set(n.collapsedEnvironments),revealIds:r,revealPath:o,activePath:i,projectNames:new Map(e.projects.map(x=>[x.id,x.name])),sectionNames:new Map(e.sections.map(x=>[x.id,x.name])),drawnInAttention:!1},a=new Map,c=new Map,u=[],l=e.activeThreadId===null?null:t.familyOf.get(e.activeThreadId)?.root.thread.id??null;for(let x of t.families){let A=eu(x.root.thread,{mode:n.organizationMode,projects:e.projects}),V=a.get(A)??[];V.push(x),a.set(A,V),c.set(x,A),S5(x,e.heldRootId,l)&&u.push(x)}let d=new Set(u),m=rn(n.chronologicalSort)==="alpha",f=Y4({mode:n.organizationMode,projects:e.projects,sections:e.sections,threads:e.threads},m),h=new Map(f.map(x=>[x.id,x]));h.set(At,Q2(At,e.projects)),h.set(wt,Q2(wt,e.projects));let g=X4(n.organizationMode,n[Wi[n.organizationMode]],f.map(x=>x.id)),k=new Set(n.hiddenGroups),v=[],y=[],w=nm;for(let x of g){let A=h.get(x);if(A===void 0)continue;let V=a.get(x)??[],X=V.filter(W=>!d.has(W));if(X.length===0&&(x===At||x===wt&&n.organizationMode!=="chronological"))continue;let ie=x!==At&&k.has(x),re=W_(s,A,V,X,ie);ie?(y.push(re),w=d8(w,re.counters)):v.push(re)}let T=new Set;for(let x of e.threads)x.host!==null&&T.add(x.host.id);return{attention:j_(s,u,x=>h.get(c.get(x))),groups:v,more:y,moreCounters:w,order:g,multiHost:T.size>1}}function y8(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function F_(e,t){if(e.size!==t.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function iu(e,t){if(Object.is(e,t))return e;if(Array.isArray(e)&&Array.isArray(t)){let n=e.length===t.length,r=t.map((o,i)=>{let s=i<e.length?iu(e[i],o):o;return s!==e[i]&&(n=!1),s});return n?e:r}if(e instanceof Set&&t instanceof Set)return F_(e,t)?e:t;if(y8(e)&&y8(t)){let n=Object.keys(t),r=n.length===Object.keys(e).length,o={};for(let i of n){i in e||(r=!1);let s=i in e?iu(e[i],t[i]):t[i];s!==e[i]&&(r=!1),o[i]=s}return r?e:o}return t}function v8(e,t){let n=new Map(e.map(i=>[i.key,i])),r=e.length===t.length,o=t.map((i,s)=>{let a=n.get(i.key),c=a===void 0?i:iu(a,i);return c!==e[s]&&(r=!1),c});return r?e:o}function im(e,t,n){let r={...t},o=e,i=Object.keys(r).length===Object.keys(o).length;for(let s of Object.keys(r))s in o||(i=!1),r[s]=s in n?n[s]:iu(o[s],r[s]),r[s]!==o[s]&&(i=!1);return i?e:r}function V_(e,t){return e.length===t.length&&t.every((n,r)=>n===e[r])}function b8(e,t,n){let r=n.map(o=>{let i=t.get(o.descriptor.id);return i===void 0?o:im(i,o,{rows:v8(i.rows,o.rows)})});return V_(e,r)?e:r}function H_(e,t){return e===null||t===null?t:im(e,t,{rows:v8(e.rows,t.rows)})}function w8(e,t){if(e===null)return t;let n=new Map([...e.groups,...e.more].map(r=>[r.descriptor.id,r]));return im(e,t,{attention:H_(e.attention,t.attention),groups:b8(e.groups,n,t.groups),more:b8(e.more,n,t.more)})}var su=we({now:0,stamps:{startedAt:{},finishedAt:{},pendingAt:{},seenAt:{}},notes:{},familyOf:()=>{}});var sm=globalThis.__bbPluginRuntime;if(sm==null||sm.radixAlertDialog==null)throw new Error('Cannot load "@radix-ui/react-alert-dialog": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var au=sm.radixAlertDialog,s$="default"in au?au.default:au,{Action:am,AlertDialog:a$,AlertDialogAction:c$,AlertDialogCancel:u$,AlertDialogContent:l$,AlertDialogDescription:d$,AlertDialogOverlay:p$,AlertDialogPortal:f$,AlertDialogTitle:m$,AlertDialogTrigger:h$,Cancel:cm,Content:um,Description:lm,Overlay:dm,Portal:x8,Root:I8,Title:pm,Trigger:B_,createAlertDialogScope:g$}=au;var _8=I8;var G_=x8,S8=H(({className:e,...t},n)=>p(dm,{className:I("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n,...Ee()}));S8.displayName=dm.displayName;var fm=H(({className:e,...t},n)=>S(G_,{children:[p(S8,{}),p(um,{ref:n,...Ee(),className:I("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));fm.displayName=um.displayName;var mm=({className:e,...t})=>p("div",{className:I("flex flex-col space-y-2 text-center sm:text-left",e),...t});mm.displayName="AlertDialogHeader";var hm=({className:e,...t})=>p("div",{className:I("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});hm.displayName="AlertDialogFooter";var gm=H(({className:e,...t},n)=>p(pm,{ref:n,className:I("text-lg font-semibold",e),...t}));gm.displayName=pm.displayName;var Cm=H(({className:e,...t},n)=>p(lm,{ref:n,className:I("text-sm text-muted-foreground",e),...t}));Cm.displayName=lm.displayName;var km=H(({className:e,...t},n)=>p(am,{ref:n,className:I($s(),e),...t}));km.displayName=am.displayName;var ym=H(({className:e,...t},n)=>p(cm,{ref:n,className:I($s({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));ym.displayName=cm.displayName;var bm=globalThis.__bbPluginRuntime;if(bm==null||bm.radixDialog==null)throw new Error('Cannot load "@radix-ui/react-dialog": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var cu=bm.radixDialog,w$="default"in cu?cu.default:cu,{Close:vm,Content:L8,Description:wm,Dialog:x$,DialogClose:I$,DialogContent:_$,DialogDescription:S$,DialogOverlay:L$,DialogPortal:P$,DialogTitle:M$,DialogTrigger:R$,Overlay:xm,Portal:P8,Root:M8,Title:R8,Trigger:T8,WarningProvider:T$,createDialogScope:$$}=cu;var q_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},Fi=H(({color:e="currentColor",size:t=24,strokeWidth:n,absoluteStrokeWidth:r=!1,className:o="",altIcon:i,showAlt:s=!1,icon:a,primaryColor:c,secondaryColor:u,disableSecondaryOpacity:l=!1,...d},m)=>{let f=n!==void 0?r?Number(n)*24/Number(t):n:void 0,h=f!==void 0?{strokeWidth:f,stroke:"currentColor"}:{},g={ref:m,...q_,width:t,height:t,color:c||e,className:o,...h,...d},v=[...s&&i?i:a].sort(([,y],[,w])=>{let T=y.opacity!==void 0;return w.opacity!==void 0?1:T?-1:0}).map(([y,w])=>{let T=w.opacity!==void 0,M=T&&!l?w.opacity:void 0,x=u?{...w.stroke!==void 0?{stroke:T?u:c||e}:{fill:T?u:c||e}}:{};return _o(y,{...w,...h,...x,opacity:M,key:w.key})});return _o("svg",g,v)});Fi.displayName="HugeiconsIcon";var $8=[["path",{d:"M13.9248 21H10.0752C5.44476 21 3.12955 21 2.27636 19.4939C1.42317 17.9879 2.60736 15.9914 4.97574 11.9985L6.90057 8.75333C9.17559 4.91778 10.3131 3 12 3C13.6869 3 14.8244 4.91777 17.0994 8.75332L19.0243 11.9985C21.3926 15.9914 22.5768 17.9879 21.7236 19.4939C20.8704 21 18.5552 21 13.9248 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 9V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var A8=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var D8=[["path",{d:"M21 7H3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H13C16.7712 21 18.6569 21 19.8284 19.8284C21 18.6569 21 16.7712 21 13V7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 7H3L4.2 5.4C5.08328 4.22229 5.52492 3.63344 6.15836 3.31672C6.7918 3 7.52786 3 9 3H15C16.4721 3 17.2082 3 17.8416 3.31672C18.4751 3.63344 18.9167 4.22229 19.8 5.4L21 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 17L12 10.5M9 14.5C9.58984 15.1068 11.1597 17.5 12 17.5C12.8403 17.5 14.4102 15.1068 15 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var E8=[["path",{d:"M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var N8=[["path",{d:"M15 6C15 6 9.00001 10.4189 9 12C8.99999 13.5812 15 18 15 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var O8=[["path",{d:"M9.00005 6C9.00005 6 15 10.4189 15 12C15 13.5812 9 18 9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var z8=[["path",{d:"M13 7H11C8.19108 7 6.78661 7 5.77772 7.67412C5.34096 7.96596 4.96596 8.34096 4.67412 8.77772C4 9.78661 4 11.1911 4 14C4 16.8089 4 18.2134 4.67412 19.2223C4.96596 19.659 5.34096 20.034 5.77772 20.3259C6.78661 21 8.19108 21 11 21H13C15.8089 21 17.2134 21 18.2223 20.3259C18.659 20.034 19.034 19.659 19.3259 19.2223C20 18.2134 20 16.8089 20 14C20 11.1911 20 9.78661 19.3259 8.77772C19.034 8.34096 18.659 7.96596 18.2223 7.67412C17.2134 7 15.8089 7 13 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 14H2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 17H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M22 14H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M15 11V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M9 11V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M12 7C12 5.11438 12 4.17157 11.4142 3.58579C10.8284 3 9.88562 3 8 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]];var Im=[["path",{d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C10.3719 21.5 8.8394 21.0904 7.5 20.3687C5.63177 19.362 4.37462 20.2979 3.26592 20.4658C3.09774 20.4913 2.93024 20.4302 2.80997 20.31C2.62741 20.1274 2.59266 19.8451 2.6935 19.6074C3.12865 18.5818 3.5282 16.6382 2.98341 15C2.6698 14.057 2.5 13.0483 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5 12H8.5M12 8.5V15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var Z8=[["path",{d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C10.3719 21.5 8.8394 21.0904 7.5 20.3687C5.63177 19.362 4.37462 20.2979 3.26592 20.4658C3.09774 20.4913 2.93024 20.4302 2.80997 20.31C2.62741 20.1274 2.59266 19.8451 2.6935 19.6074C3.12865 18.5818 3.5282 16.6382 2.98341 15C2.6698 14.057 2.5 13.0483 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.1257 12H12.0007M8.125 12H8M16.125 12H16M12.2507 12C12.2507 12.1381 12.1388 12.25 12.0007 12.25C11.8627 12.25 11.7507 12.1381 11.7507 12C11.7507 11.8619 11.8627 11.75 12.0007 11.75C12.1388 11.75 12.2507 11.8619 12.2507 12ZM8.25 12C8.25 12.1381 8.13807 12.25 8 12.25C7.86193 12.25 7.75 12.1381 7.75 12C7.75 11.8619 7.86193 11.75 8 11.75C8.13807 11.75 8.25 11.8619 8.25 12ZM16.25 12C16.25 12.1381 16.1381 12.25 16 12.25C15.8619 12.25 15.75 12.1381 15.75 12C15.75 11.8619 15.8619 11.75 16 11.75C16.1381 11.75 16.25 11.8619 16.25 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var j8=[["path",{d:"M3.01309 4.99084C2.89323 6.05084 3.55249 8.42285 6.48923 8.42285",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.5951 8.38081C18.8357 8.57881 21.1132 7.49881 20.9957 5.00281",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.9928 20.9989C21.0528 19.9429 20.1777 17.5549 17.599 17.4229",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M6.45163 17.4708C5.65013 17.2308 3.01306 18.3348 3.01306 20.9988",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M9.3299 6.11884C9.35388 5.09884 9.84533 2.99884 12.0029 2.99884C13.9208 2.99884 14.5861 4.61884 14.676 6.11884M6.26131 9.41884C6.38118 8.63884 7.29216 6.81484 9.36586 6.63484C11.4635 6.55564 14.3403 6.58684 14.8797 6.67084C15.5869 6.73377 17.2951 7.43884 17.7506 9.41884C17.9124 10.4388 17.8285 11.8788 17.8524 12.7188C17.8165 13.5588 17.9207 15.2623 17.7565 16.1388C17.6367 17.0988 16.9894 18.4668 16.1024 19.3068C14.7838 20.7228 11.1639 22.2108 8.03534 19.4508C6.41713 17.8908 6.30925 16.3788 6.18939 15.7788C6.15725 15.4571 6.15875 13.8763 6.16541 12.3588C6.14144 11.046 6.17235 9.78063 6.26131 9.41884Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M3.01306 12.8988H5.9498",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M20.9929 12.8988L18.1161 12.8988",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M12.0033 16.4988L12.0033 20.2788",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}]];var uu=[["path",{d:"M18 6L6.00081 17.9992M17.9992 18L6 6.00085",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var W8=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.9994 15L9 9M9.00064 15L15 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var F8=[["path",{d:"M11 6L21 6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 18L21 18",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 7.39286C3 7.39286 4 8.04466 4.5 9C4.5 9 6 5.25 8 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M3 18.3929C3 18.3929 4 19.0447 4.5 20C4.5 20 6 16.25 8 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];var V8=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12.5L10.5 15L16 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var H8=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var _m=[["path",{d:"M7.5 7.5L8.72654 8.55719C9.24218 9.00163 9.5 9.22386 9.5 9.5C9.5 9.77614 9.24218 9.99836 8.72654 10.4428L7.5 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.5 12.5H15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 21C15.7497 21 17.6246 21 18.9389 20.0451C19.3634 19.7367 19.7367 19.3634 20.0451 18.9389C21 17.6246 21 15.7497 21 12C21 8.25027 21 6.3754 20.0451 5.06107C19.7367 4.6366 19.3634 4.26331 18.9389 3.95491C17.6246 3 15.7497 3 12 3C8.25027 3 6.3754 3 5.06107 3.95491C4.6366 4.26331 4.26331 4.6366 3.95491 5.06107C3 6.3754 3 8.25027 3 12C3 15.7497 3 17.6246 3.95491 18.9389C4.26331 19.3634 4.6366 19.7367 5.06107 20.0451C6.3754 21 8.25027 21 12 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var B8=[["path",{d:"M7.5 14.5C7.5 11.2002 7.5 9.55025 8.52513 8.52513C9.55025 7.5 11.2002 7.5 14.5 7.5C17.7998 7.5 19.4497 7.5 20.4749 8.52513C21.5 9.55025 21.5 11.2002 21.5 14.5C21.5 17.7998 21.5 19.4497 20.4749 20.4749C19.4497 21.5 17.7998 21.5 14.5 21.5C11.2002 21.5 9.55025 21.5 8.52513 20.4749C7.5 19.4497 7.5 17.7998 7.5 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 16.5C6.10355 16.5 5.40533 16.5 4.84402 16.3036C3.83866 15.9518 3.0482 15.1613 2.69641 14.156C2.5 13.5947 2.5 12.8964 2.5 11.5V9.5C2.5 6.20017 2.5 4.55025 3.52513 3.52513C4.55025 2.5 6.20017 2.5 9.5 2.5H11.5C12.8964 2.5 13.5947 2.5 14.156 2.69641C15.1613 3.0482 15.9518 3.83866 16.3036 4.84402C16.5 5.40533 16.5 6.10355 16.5 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var U8=[["path",{d:"M14 2.20004C13.3538 2.06886 12.6849 2 12 2C11.3151 2 10.6462 2.06886 10 2.20004M21.8 10C21.9311 10.6462 22 11.3151 22 12C22 12.6849 21.9311 13.3538 21.8 14M14 21.8C13.3538 21.9311 12.6849 22 12 22C11.3151 22 10.6462 21.9311 10 21.8M2.20004 14C2.06886 13.3538 2 12.6849 2 12C2 11.3151 2.06886 10.6462 2.20004 10M17.5 3.64702C18.6332 4.39469 19.6053 5.36678 20.353 6.5M20.353 17.5C19.6053 18.6332 18.6332 19.6053 17.5 20.353M6.5 20.353C5.36678 19.6053 4.39469 18.6332 3.64702 17.5M3.64702 6.5C4.39469 5.36678 5.36678 4.39469 6.5 3.64702",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var G8=[["path",{d:"M19.5 5.5L18.8803 15.5251C18.7219 18.0864 18.6428 19.3671 18.0008 20.2879C17.6833 20.7431 17.2747 21.1273 16.8007 21.416C15.8421 22 14.559 22 11.9927 22C9.42312 22 8.1383 22 7.17905 21.4149C6.7048 21.1257 6.296 20.7408 5.97868 20.2848C5.33688 19.3626 5.25945 18.0801 5.10461 15.5152L4.5 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 5.5H21M16.0557 5.5L15.3731 4.09173C14.9196 3.15626 14.6928 2.68852 14.3017 2.39681C14.215 2.3321 14.1231 2.27454 14.027 2.2247C13.5939 2 13.0741 2 12.0345 2C10.9688 2 10.436 2 9.99568 2.23412C9.8981 2.28601 9.80498 2.3459 9.71729 2.41317C9.32164 2.7167 9.10063 3.20155 8.65861 4.17126L8.05292 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M9.5 16.5L9.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14.5 16.5L14.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]];var K8=[["path",{d:"M2.99969 17.0002C2.99969 17.9302 2.99969 18.3952 3.10192 18.7767C3.37932 19.8119 4.18796 20.6206 5.22324 20.898C5.60474 21.0002 6.06972 21.0002 6.99969 21.0002L16.9997 21.0002C17.9297 21.0002 18.3947 21.0002 18.7762 20.898C19.8114 20.6206 20.6201 19.8119 20.8975 18.7767C20.9997 18.3952 20.9997 17.9302 20.9997 17.0002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.4998 11.5002C16.4998 11.5002 13.1856 16.0002 11.9997 16.0002C10.8139 16.0002 7.49976 11.5002 7.49976 11.5002M11.9997 15.0002V3.00016",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var q8=[["path",{d:"M14.0737 3.88545C14.8189 3.07808 15.1915 2.6744 15.5874 2.43893C16.5427 1.87076 17.7191 1.85309 18.6904 2.39232C19.0929 2.6158 19.4769 3.00812 20.245 3.79276C21.0131 4.5774 21.3972 4.96972 21.6159 5.38093C22.1438 6.37312 22.1265 7.57479 21.5703 8.5507C21.3398 8.95516 20.9446 9.33578 20.1543 10.097L10.7506 19.1543C9.25288 20.5969 8.504 21.3182 7.56806 21.6837C6.63212 22.0493 5.6032 22.0224 3.54536 21.9686L3.26538 21.9613C2.63891 21.9449 2.32567 21.9367 2.14359 21.73C1.9615 21.5234 1.98636 21.2043 2.03608 20.5662L2.06308 20.2197C2.20301 18.4235 2.27297 17.5255 2.62371 16.7182C2.97444 15.9109 3.57944 15.2555 4.78943 13.9445L14.0737 3.88545Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4L20 11",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14 22L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var J8=[["path",{d:"M3 7H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 17H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 17L21 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15 7L21 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M6 7C6 6.06812 6 5.60218 6.15224 5.23463C6.35523 4.74458 6.74458 4.35523 7.23463 4.15224C7.60218 4 8.06812 4 9 4C9.93188 4 10.3978 4 10.7654 4.15224C11.2554 4.35523 11.6448 4.74458 11.8478 5.23463C12 5.60218 12 6.06812 12 7C12 7.93188 12 8.39782 11.8478 8.76537C11.6448 9.25542 11.2554 9.64477 10.7654 9.84776C10.3978 10 9.93188 10 9 10C8.06812 10 7.60218 10 7.23463 9.84776C6.74458 9.64477 6.35523 9.25542 6.15224 8.76537C6 8.39782 6 7.93188 6 7Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M12 17C12 16.0681 12 15.6022 12.1522 15.2346C12.3552 14.7446 12.7446 14.3552 13.2346 14.1522C13.6022 14 14.0681 14 15 14C15.9319 14 16.3978 14 16.7654 14.1522C17.2554 14.3552 17.6448 14.7446 17.8478 15.2346C18 15.6022 18 16.0681 18 17C18 17.9319 18 18.3978 17.8478 18.7654C17.6448 19.2554 17.2554 19.6448 16.7654 19.8478C16.3978 20 15.9319 20 15 20C14.0681 20 13.6022 20 13.2346 19.8478C12.7446 19.6448 12.3552 19.2554 12.1522 18.7654C12 18.3978 12 17.9319 12 17Z",stroke:"currentColor",strokeWidth:"1.5",key:"5"}]];var Y8=[["path",{d:"M13 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 13V21M22 17H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var X8=[["path",{d:"M19 21C19.6068 20.4102 22 18.8403 22 18C22 17.1597 19.6068 15.5898 19 15M21 18H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 21C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12V13",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]];var Q8=[["path",{d:"M8 6.50116H16.75C18.8567 6.50116 19.91 6.50116 20.6667 7.0069C20.9943 7.22584 21.2755 7.50717 21.4944 7.83484C22 8.59173 22 9.64538 22 11.7527C22 12.0122 22 12.2621 21.9997 12.5029M12 6.50116L11.3666 5.23392C10.8418 4.18406 10.3622 3.1273 9.19926 2.69106C8.6899 2.5 8.10802 2.5 6.94427 2.5C5.1278 2.5 4.21956 2.5 3.53806 2.88043C3.05227 3.15161 2.65142 3.55257 2.38032 4.03851C2 4.72021 2 5.62871 2 7.44571V10.5023C2 15.2177 2 17.5754 3.46447 19.0403C4.70529 20.2815 6.58687 20.4711 10 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"14",cy:"12.5",r:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"20",cy:"18.5",r:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18 18.5C15.7909 18.5 14 16.7091 14 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14 14.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];Sm();var eg=[["path",{d:"M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C22 9.08996 22 10.1433 22 12.25C22 15.7612 22 17.5167 21.1573 18.7779C20.7926 19.3238 20.3238 19.7926 19.7779 20.1573C18.5167 21 16.7612 21 13.25 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}]];var tg=[["path",{d:"M8.00164 6.50013H16.754C18.8613 6.50013 19.9149 6.50013 20.6718 7.00574C20.9995 7.22462 21.2808 7.50588 21.4997 7.83346C21.8937 8.42301 21.9808 9.19265 22 10.5003M12.0027 6.50013L11.3691 5.23321C10.8442 4.18363 10.3645 3.12714 9.20122 2.69101C8.69172 2.5 8.10969 2.5 6.94562 2.5C5.12865 2.5 4.22017 2.5 3.53848 2.88033C3.05255 3.15144 2.6516 3.5523 2.38042 4.03811C2 4.71963 2 5.6279 2 7.44443V10.5003C2 15.2145 2 17.5716 3.46487 19.0361C4.82227 20.3931 6.94628 20.4927 11.0025 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.4649 15C20.7733 13.8044 19.4806 13 18 13C16.4726 13 15.1451 13.8561 14.4713 15.1147M14.5351 19C15.2267 20.1956 16.5194 21 18 21C19.5227 21 20.8467 20.1492 21.5224 18.897M17 15.5H16C15.0572 15.5 14.5858 15.5 14.2929 15.2071C14 14.9142 14 14.4428 14 13.5V12.5M19 18.5H20C20.9428 18.5 21.4142 18.5 21.7071 18.7929C22 19.0858 22 19.5572 22 20.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var ng=[["path",{d:"M15.0244 21H12.0222C7.29769 21 4.93543 21 3.46772 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38116 4.53806C2.65287 4.05227 3.0546 3.65142 3.54148 3.38032C4.22449 3 5.13474 3 6.95525 3C8.12158 3 8.70475 3 9.21524 3.19101C10.3808 3.62712 10.8614 4.68358 11.3874 5.73313L12.0222 7M8.01332 7H16.7827C18.8941 7 19.9498 7 20.7081 7.50559C21.0364 7.72447 21.3183 8.00572 21.5377 8.33329C21.8193 8.75388 21.9444 9.26614 22 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.9961 14C15.9961 12.6193 17.1159 11.5 18.4973 11.5C19.8786 11.5 20.9984 12.6193 20.9984 14C20.9984 14.8571 20.5668 15.6135 19.9091 16.0639C19.2259 16.5317 18.4985 17.172 18.5 18M18.625 20.75H18.5M18.75 20.75C18.75 20.8881 18.6381 21 18.5 21C18.3619 21 18.25 20.8881 18.25 20.75C18.25 20.6119 18.3619 20.5 18.5 20.5C18.6381 20.5 18.75 20.6119 18.75 20.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var rg=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.5 9.5C9.5 8.11929 10.6193 7 12 7C13.3807 7 14.5 8.11929 14.5 9.5C14.5 10.3569 14.0689 11.1131 13.4117 11.5636C12.7283 12.0319 12 12.6716 12 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var og=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 16V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 8.25H12M12.25 8.25C12.25 8.11193 12.1381 8 12 8C11.8619 8 11.75 8.11193 11.75 8.25C11.75 8.38807 11.8619 8.5 12 8.5C12.1381 8.5 12.25 8.38807 12.25 8.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var ig=[["path",{d:"M12 3V6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 18V21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 12L18 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M6 12L3 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M18.3635 5.63672L16.2422 7.75804",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M7.75804 16.2422L5.63672 18.3635",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M18.3635 18.3635L16.2422 16.2422",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M7.75804 7.75804L5.63672 5.63672",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}]];var sg=[["path",{d:"M12 20.5C19.1328 20.5 22 16.4706 22 11.5C22 6.52944 20.1328 2.5 12 2.5C4.13281 2.5 2 6.52944 2 11.5C2 13.5712 2.37034 15.4791 3.37161 17C4.63281 19 3.99253 20.8333 3 21.5C4.61547 21.5 5.70211 20.9858 6.39239 20.4766C6.88252 20.115 7.50688 19.9364 8.0984 20.0815C9.20689 20.3533 10.4991 20.5 12 20.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 9C10 7.89543 10.8954 7 12 7C13.1046 7 14 7.89543 14 9C14 9.57777 13.755 10.0983 13.3632 10.4634C12.7572 11.0282 12 11.6716 12 12.5M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var ag=[["path",{d:"M6.00449 12.5V12M18.0045 12.5V12M12.0045 12.5V12M7.00449 12.5C7.00449 11.9477 6.55677 11.5 6.00449 11.5C5.4522 11.5 5.00449 11.9477 5.00449 12.5C5.00449 13.0523 5.4522 13.5 6.00449 13.5C6.55677 13.5 7.00449 13.0523 7.00449 12.5ZM19.0045 12.5C19.0045 11.9477 18.5568 11.5 18.0045 11.5C17.4522 11.5 17.0045 11.9477 17.0045 12.5C17.0045 13.0523 17.4522 13.5 18.0045 13.5C18.5568 13.5 19.0045 13.0523 19.0045 12.5ZM13.0045 12.5C13.0045 11.9477 12.5568 11.5 12.0045 11.5C11.4522 11.5 11.0045 11.9477 11.0045 12.5C11.0045 13.0523 11.4522 13.5 12.0045 13.5C12.5568 13.5 13.0045 13.0523 13.0045 12.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var cg=[["path",{d:"M17 17L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C15.4183 19 19 15.4183 19 11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var ug=[["path",{d:"M21.3175 7.14139L20.8239 6.28479C20.4506 5.63696 20.264 5.31305 19.9464 5.18388C19.6288 5.05472 19.2696 5.15664 18.5513 5.36048L17.3311 5.70418C16.8725 5.80994 16.3913 5.74994 15.9726 5.53479L15.6357 5.34042C15.2766 5.11043 15.0004 4.77133 14.8475 4.37274L14.5136 3.37536C14.294 2.71534 14.1842 2.38533 13.9228 2.19657C13.6615 2.00781 13.3143 2.00781 12.6199 2.00781H11.5051C10.8108 2.00781 10.4636 2.00781 10.2022 2.19657C9.94085 2.38533 9.83106 2.71534 9.61149 3.37536L9.27753 4.37274C9.12465 4.77133 8.84845 5.11043 8.48937 5.34042L8.15249 5.53479C7.73374 5.74994 7.25259 5.80994 6.79398 5.70418L5.57375 5.36048C4.85541 5.15664 4.49625 5.05472 4.17867 5.18388C3.86109 5.31305 3.67445 5.63696 3.30115 6.28479L2.80757 7.14139C2.45766 7.74864 2.2827 8.05227 2.31666 8.37549C2.35061 8.69871 2.58483 8.95918 3.05326 9.48012L4.0843 10.6328C4.3363 10.9518 4.51521 11.5078 4.51521 12.0077C4.51521 12.5078 4.33636 13.0636 4.08433 13.3827L3.05326 14.5354C2.58483 15.0564 2.35062 15.3168 2.31666 15.6401C2.2827 15.9633 2.45766 16.2669 2.80757 16.8741L3.30114 17.7307C3.67443 18.3785 3.86109 18.7025 4.17867 18.8316C4.49625 18.9608 4.85542 18.8589 5.57377 18.655L6.79394 18.3113C7.25263 18.2055 7.73387 18.2656 8.15267 18.4808L8.4895 18.6752C8.84851 18.9052 9.12464 19.2442 9.2775 19.6428L9.61149 20.6403C9.83106 21.3003 9.94085 21.6303 10.2022 21.8191C10.4636 22.0078 10.8108 22.0078 11.5051 22.0078H12.6199C13.3143 22.0078 13.6615 22.0078 13.9228 21.8191C14.1842 21.6303 14.294 21.3003 14.5136 20.6403L14.8476 19.6428C15.0004 19.2442 15.2765 18.9052 15.6356 18.6752L15.9724 18.4808C16.3912 18.2656 16.8724 18.2055 17.3311 18.3113L18.5513 18.655C19.2696 18.8589 19.6288 18.9608 19.9464 18.8316C20.264 18.7025 20.4506 18.3785 20.8239 17.7307L21.3175 16.8741C21.6674 16.2669 21.8423 15.9633 21.8084 15.6401C21.7744 15.3168 21.5402 15.0564 21.0718 14.5354L20.0407 13.3827C19.7887 13.0636 19.6098 12.5078 19.6098 12.0077C19.6098 11.5078 19.7888 10.9518 20.0407 10.6328L21.0718 9.48012C21.5402 8.95918 21.7744 8.69871 21.8084 8.37549C21.8423 8.05227 21.6674 7.74864 21.3175 7.14139Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5195 12C15.5195 13.933 13.9525 15.5 12.0195 15.5C10.0865 15.5 8.51953 13.933 8.51953 12C8.51953 10.067 10.0865 8.5 12.0195 8.5C13.9525 8.5 15.5195 10.067 15.5195 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]];var lg=[["path",{d:"M2 12C2 8.31087 2 6.4663 2.81382 5.15877C3.1149 4.67502 3.48891 4.25427 3.91891 3.91554C5.08116 3 6.72077 3 10 3H14C17.2792 3 18.9188 3 20.0811 3.91554C20.5111 4.25427 20.8851 4.67502 21.1862 5.15877C22 6.4663 22 8.31087 22 12C22 15.6891 22 17.5337 21.1862 18.8412C20.8851 19.325 20.5111 19.7457 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7457 3.1149 19.325 2.81382 18.8412C2 17.5337 2 15.6891 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.5 3L9.5 21",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5 7H6M5 10H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var dg=[["path",{d:"M3.99963 5.00055L9.99963 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.9996 5.00031L19.9996 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.9996 9.00031L15.9996 15.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M9.99963 2.00031L9.99963 8.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11.9996 16.0003L11.9996 22.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M15.9996 12.0001L19.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M3.99963 12.0005L12.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M11.9996 19.0003L19.9996 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}],["path",{d:"M3.99963 19.0005L8.99963 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"8"}]];var pg=[["path",{d:"M17 8L18.8398 9.85008C19.6133 10.6279 20 11.0168 20 11.5C20 11.9832 19.6133 12.3721 18.8398 13.1499L17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8L5.16019 9.85008C4.38673 10.6279 4 11.0168 4 11.5C4 11.9832 4.38673 12.3721 5.16019 13.1499L7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 4L9.5 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var fg=[["path",{d:"M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 2.20004C13.3538 2.06886 12.6849 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 11.3151 21.9311 10.6462 21.8 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.0303 11.9625L16.5832 7.4096M19.7404 4.34462L19.1872 2.35748C19.0853 2.03011 18.6914 1.89965 18.4259 2.11662C16.9898 3.29018 15.4254 4.87091 16.703 7.36419C19.2771 8.56455 20.7466 6.94584 21.8733 5.5853C22.0975 5.3146 21.9623 4.90767 21.6247 4.81005L19.7404 4.34462Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var mg=[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var hg=[["path",{d:"M3 15V14H21V15C21 17.8284 21 19.2426 20.1213 20.1213C19.2426 21 17.8284 21 15 21H9C6.17157 21 4.75736 21 3.87868 20.1213C3 19.2426 3 17.8284 3 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 14L3.00001 12.9999C3.00003 11.5278 3.00004 10.7918 3.31675 10.1584C3.63347 9.52493 4.22231 9.08329 5.39999 8.20002C6.19297 7.60528 6.58946 7.30791 7.05132 7.15395C7.51317 7 8.00879 7 9.00002 7H15C15.9912 7 16.4868 7 16.9487 7.15395C17.4105 7.3079 17.807 7.60527 18.6 8.2C19.7777 9.08328 20.3666 9.52492 20.6833 10.1584C21 10.7918 21 11.5279 21 13V14H3Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 12V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8 12V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M8.49997 7.00006V6.50006C8.49997 5.0956 8.49997 4.39337 8.83703 3.88892C8.98295 3.67054 9.17045 3.48304 9.38883 3.33712C9.89328 3.00006 10.5955 3.00006 12 3.00006C13.4044 3.00006 14.1067 3.00006 14.6111 3.33712C14.8295 3.48304 15.017 3.67054 15.1629 3.88892C15.5 4.39337 15.5 5.0956 15.5 6.50006V7.00006",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];var gg=[["path",{d:"M20.0004 10.9826C20.6281 10.1316 21 9.07385 21 7.92761C21 5.11556 18.7614 2.83594 16 2.83594C14.0209 2.83594 12.3104 4.00687 11.5 5.70554",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.6364 21.1658H9.36364C6.67794 21.1658 5.33509 21.1658 4.40253 20.4549C4.13533 20.2512 3.89812 20.0096 3.69811 19.7375C3 18.7879 3 17.4204 3 14.6855C3 13.1226 3 12.3412 3.39892 11.7986C3.51321 11.6431 3.64876 11.505 3.80144 11.3887C4.33434 10.9824 5.10168 10.9824 6.63636 10.9824H17.3636C18.8983 10.9824 19.6657 10.9824 20.1986 11.3887C20.3512 11.505 20.4868 11.6431 20.6011 11.7986C21 12.3412 21 13.1226 21 14.6855C21 17.4204 21 18.7879 20.3019 19.7375C20.1019 20.0096 19.8647 20.2512 19.5975 20.4549C18.6649 21.1658 17.3221 21.1658 14.6364 21.1658Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 15.0547H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M13.6858 10.9826L13.335 10.1564C13.2474 9.94999 13.2565 9.71349 13.3595 9.51989L14.9144 6.59747C15.1776 6.10273 14.7982 5.48558 14.2636 5.53902L11.1099 5.85432C10.9004 5.87526 10.692 5.78776 10.5492 5.6189L8.39732 3.07491C8.03241 2.64349 7.37203 2.82539 7.26584 3.38656L6.63969 6.69573C6.59813 6.91538 6.46021 7.09827 6.26863 7.18779L3.38401 8.53572C2.89509 8.76418 2.86669 9.49366 3.33529 9.78682L5.24666 10.9826",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]];var Cg=[["path",{d:"M3 20.5002C3.28417 16.8058 6.3 13.7193 10.0008 13.5379C10.3134 13.5226 10.6446 13.5097 11 13.5L11.995 13.5663C12.6939 13.6129 13.3665 13.7543 14 13.9777",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 15.5V21.5M21 18.5L15 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"11",cy:"6.5",r:"4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var kg=[["path",{d:"M5.25 5L19.25 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22.25 12C22.25 6.47715 17.7728 2 12.25 2C6.72715 2 2.25 6.47715 2.25 12C2.25 17.5228 6.72715 22 12.25 22C17.7728 22 22.25 17.5228 22.25 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]];var yg=[["path",{d:"M15 5C15 6.65685 13.6569 8 12 8C10.3431 8 9 6.65685 9 5C9 3.34315 10.3431 2 12 2C13.6569 2 15 3.34315 15 5Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V9M12 9C12 9.93188 12 10.3978 12.1776 10.7654C12.4144 11.2554 12.8687 11.6448 13.4404 11.8478C13.8692 12 14.4128 12 15.5 12C16.5872 12 17.1308 12 17.5596 12.1522C18.1313 12.3552 18.5856 12.7446 18.8224 13.2346C19 13.6022 19 14.0681 19 15V16M12 9C12 9.93188 12 10.3978 11.8224 10.7654C11.5856 11.2554 11.1313 11.6448 10.5596 11.8478C10.1308 12 9.5872 12 8.5 12C7.4128 12 6.8692 12 6.44041 12.1522C5.86867 12.3552 5.41443 12.7446 5.17761 13.2346C5 13.6022 5 14.0681 5 15V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M8 19C8 20.6569 6.65685 22 5 22C3.34315 22 2 20.6569 2 19C2 17.3431 3.34315 16 5 16C6.65685 16 8 17.3431 8 19Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M22 19C22 20.6569 20.6569 22 19 22C17.3431 22 16 20.6569 16 19C16 17.3431 17.3431 16 19 16C20.6569 16 22 17.3431 22 19Z",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]];var bg=[["path",{d:"M8.62814 12.6736H8.16918C6.68545 12.6736 5.94358 12.6736 5.62736 12.1844C5.31114 11.6953 5.61244 11.0138 6.21504 9.65083L8.02668 5.55323C8.57457 4.314 8.84852 3.69438 9.37997 3.34719C9.91142 3 10.5859 3 11.935 3H14.0244C15.6632 3 16.4826 3 16.7916 3.53535C17.1007 4.0707 16.6942 4.78588 15.8811 6.21623L14.8092 8.10188C14.405 8.81295 14.2029 9.16849 14.2057 9.45952C14.2094 9.83775 14.4105 10.1862 14.7354 10.377C14.9854 10.5239 15.3927 10.5239 16.2074 10.5239C17.2373 10.5239 17.7523 10.5239 18.0205 10.7022C18.3689 10.9338 18.5513 11.3482 18.4874 11.7632C18.4382 12.0826 18.0918 12.4656 17.399 13.2317L11.8639 19.3523C10.7767 20.5545 10.2331 21.1556 9.86807 20.9654C9.50303 20.7751 9.67833 19.9822 10.0289 18.3962L10.7157 15.2896C10.9826 14.082 11.1161 13.4782 10.7951 13.0759C10.4741 12.6736 9.85877 12.6736 8.62814 12.6736Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];Tm();var tS=[["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H10.6C11.7583 10 12 10.2417 12 11.4V12.6C12 13.7583 11.7583 14 10.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H10.6C11.7583 18 12 18.2417 12 19.4V20.6C12 21.7583 11.7583 22 10.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18 13V21M22 17H14",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]],nS=[["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H10.6C11.7583 10 12 10.2417 12 11.4V12.6C12 13.7583 11.7583 14 10.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H10.6C11.7583 18 12 18.2417 12 19.4V20.6C12 21.7583 11.7583 22 10.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14 17H22M19 14L22 17L19 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],_C={AlertCircle:A8,AlertTriangle:$8,Archive:D8,Bot:z8,Bug:j8,Check:mg,ChevronDown:E8,ChevronLeft:N8,ChevronRight:O8,Circle:H8,CircleCheck:V8,CircleQuestion:rg,CircleX:W8,ClosePluginPane:uu,CloseThreadPane:uu,Code:pg,ComputerTerminal01:_m,Copy:B8,Download:K8,Edit:q8,FilterHorizontal:J8,Folder:eg,FolderExport:X8,FolderGit:Q8,FolderPlus:Y8,FolderSync:tg,FolderUnknown:ng,Folder02:lu,Info:og,ListTodo:F8,Loading:ig,MessageQuestion:sg,MessageCirclePlus:Im,MessageSquarePlus:Im,MessageSquare:Z8,MoreHorizontal:ag,PanelLeft:lg,Search:cg,SectionAdd:tS,SectionMove:nS,Settings:ug,SlidersHorizontal:dg,Spinner:U8,Target:fg,Terminal:_m,Toolbox:hg,ToolCase:gg,Trash2:G8,Unavailable:kg,UserRoundPlus:Cg,Workflow:yg,X:uu,Zap:bg},rS=Object.keys(_C),oS=[...rS,...xg],iS=_C,Dm=null;function sS(){return du()!==null?Promise.resolve():(Dm??=Promise.resolve().then(()=>(xC(),wC)).then(()=>{},e=>{throw Dm=null,e}),Dm)}var aS=[],cS=new Set(oS),IC=we([]);function Em(e){return cS.has(e)}var Om=class extends Ou{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};function Dt({name:e,fallback:t="Zap",...n}){let r=xe(IC),o=Kt(Mm,()=>Vi(e),()=>Vi(e)),i=Kt(Mm,()=>Vi(t),()=>Vi(t)),s=Kt(Rm,()=>Hi(e),()=>Hi(e)),a=Kt(Rm,()=>Hi(t),()=>Hi(t)),c=o!==void 0||Em(e)||s!==void 0,u=c?e:t,l=c?o:i,d=c?s:a,m=l?.component;return r.includes(u)?p(Nm,{name:Em(u)?u:"Zap",...n}):m!==void 0&&l!==void 0?p(IC.Provider,{value:[...r,u],children:p(Om,{fallback:p(Nm,{name:"Zap",...n}),children:p("span",{className:I("inline-flex size-6 shrink-0",n.className),style:n.style,"aria-hidden":n["aria-hidden"],"aria-label":n["aria-label"],role:n["aria-label"]?"img":void 0,"data-icon":u,"data-icon-root":"",children:p(m,{className:"size-full"})})},l.key)}):m===void 0&&d!==void 0?p(uS,{url:d,resolved:u,...n}):p(Nm,{name:Em(u)?u:"Zap",...n})}function uS({url:e,resolved:t,className:n,style:r,"aria-hidden":o,"aria-label":i}){let s=`url("${e.replace(/["\\]/gu,"\\$&")}")`;return p("span",{className:I("inline-block size-6 shrink-0",n),style:{...r,backgroundColor:"currentColor",maskImage:s,maskPosition:"center",maskRepeat:"no-repeat",maskSize:"contain",WebkitMaskImage:s,WebkitMaskPosition:"center",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"contain"},"aria-hidden":o,"aria-label":i,role:i?"img":void 0,"data-icon":t,"data-icon-root":"","data-plugin-icon-asset":e})}function Nm({name:e,className:t,style:n,"aria-hidden":r,"aria-label":o}){let i=iS[e];return i!==void 0?p(Fi,{icon:i,className:I(t),style:n,"aria-hidden":r,"aria-label":o,"data-icon":e,"data-icon-root":""}):p(lS,{name:e,className:t,style:n,"aria-hidden":r,"aria-label":o})}function lS({name:e,className:t,style:n,"aria-hidden":r,"aria-label":o}){let s=Kt(_g,du,du)?.[e];return s===void 0&&sS().catch(()=>{}),p(Fi,{icon:s??aS,className:I(t),style:n,"aria-hidden":r,"aria-label":o,"data-icon":e,"data-icon-root":"","data-icon-pending":s===void 0?"":void 0})}var SC=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{},titleId:"",descriptionId:"",registerTitleId:()=>()=>{},registerDescriptionId:()=>()=>{}});function Bi(){return xe(SC)}function Ui({children:e,open:t,onOpenChange:n,...r}){let o=vr(t,n),i=gn(),s=gn(),[a,c]=E(i),[u,l]=E(s),d=Z(g=>(c(g),()=>c(i)),[i]),m=Z(g=>(l(g),()=>l(s)),[s]),f=q(()=>({...o,titleId:a,descriptionId:u,registerTitleId:d,registerDescriptionId:m}),[u,m,d,o,a]),h=f.isCompactViewport?e:p(M8,{open:f.open,onOpenChange:f.onOpenChange,...r,children:e});return p(SC.Provider,{value:f,children:h})}var dS=H(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=Bi();return i?p(Hn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"dialog",className:n,...r,children:t}):p(T8,{ref:o,asChild:e,className:yn(n),onMouseDown:c=>{s||bn(),Jt(c)},...r,children:t})});dS.displayName="DialogTrigger";var pS=H(({asChild:e,onClick:t,children:n,...r},o)=>{let{isCompactViewport:i,onOpenChange:s}=Bi();return i?p(e?kn:"button",{ref:o,onClick:u=>{t?.(u),u.defaultPrevented||s(!1)},...r,children:n}):p(vm,{ref:o,asChild:e,onClick:t,...r,children:n})});pS.displayName="DialogClose";var LC=H(({className:e,...t},n)=>p(xm,{ref:n,...Ee(),className:I("fixed inset-0 z-50 bg-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));LC.displayName=xm.displayName;var lo=H(({className:e,children:t,hideCloseButton:n=!1,onAfterCloseAutoFocus:r,onCloseAutoFocus:o,...i},s)=>{let{isCompactViewport:a,open:c,onOpenChange:u,titleId:l,descriptionId:d}=Bi();let m=Ee();if(a){let f=wr(i);return p(xr,{open:c,onOpenChange:u,onAfterCloseAutoFocus:r,labelledBy:l,describedBy:d,children:p("div",{ref:s,className:I("grid grid-cols-[minmax(0,1fr)] gap-4 overflow-y-auto px-4 pt-2 pb-[max(1rem,env(safe-area-inset-bottom))]",e,"max-w-none"),...f,children:t})})}return S(P8,{children:[p(LC,{}),S(L8,{ref:s,...m,onCloseAutoFocus:f=>{o?.(f),queueMicrotask(()=>r?.())},className:I("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg grid-cols-[minmax(0,1fr)] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-sm duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",e),...i,children:[t,n?null:S(vm,{className:"absolute right-4 top-4 cursor-pointer rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-state-active data-[state=open]:text-foreground",children:[p(Dt,{name:"X",className:"h-4 w-4"}),p("span",{className:"sr-only",children:"Close"})]})]})]})});lo.displayName="DialogContent";var po=({className:e,...t})=>p("div",{className:I("flex flex-col space-y-1.5 text-left",e),...t});po.displayName="DialogHeader";var fu=({className:e,...t})=>p("div",{className:I("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});fu.displayName="DialogFooter";var fo=H(({asChild:e,className:t,id:n,children:r,...o},i)=>{let{isCompactViewport:s,titleId:a,registerTitleId:c}=Bi(),u=n??a;if(ot(()=>{if(s)return c(u)},[s,c,u]),s){let l={id:u,className:I("text-base font-semibold leading-none tracking-tight",t),...o};return e?p(kn,{ref:i,...l,children:r}):p("h2",{ref:i,...l,children:r})}return p(R8,{ref:i,asChild:e,...n===void 0?{}:{id:n},className:I("text-base font-semibold leading-none tracking-tight",t),...o,children:r})});fo.displayName="DialogTitle";var mu=H(({asChild:e,className:t,id:n,children:r,...o},i)=>{let{isCompactViewport:s,descriptionId:a,registerDescriptionId:c}=Bi(),u=n??a;if(ot(()=>{if(s)return c(u)},[s,c,u]),s){let l={id:u,className:I("text-sm text-muted-foreground",t),...o};return e?p(kn,{ref:i,...l,children:r}):p("p",{ref:i,...l,children:r})}return p(wm,{ref:i,asChild:e,...n===void 0?{}:{id:n},className:I("text-sm text-muted-foreground",t),...o,children:r})});mu.displayName=wm.displayName;var PC="text-sm max-md:pointer-coarse:text-base";var Dn="h-3.5 w-3.5 max-md:pointer-coarse:h-5 max-md:pointer-coarse:w-5",MC="h-[28px] w-[28px] rounded-md p-0 max-md:pointer-coarse:h-[36px] max-md:pointer-coarse:w-[36px]",Vz=`${MC} [&_[data-icon-root]]:size-[16px] max-md:pointer-coarse:[&_[data-icon-root]]:size-[20px]`,Hz=`${MC} [&_[data-icon-root]]:size-[13px] max-md:pointer-coarse:[&_[data-icon-root]]:size-[16px]`;var RC="h-9 max-md:pointer-coarse:h-10";var hu=H(({className:e,type:t,...n},r)=>p("input",{type:t,autoComplete:"off",className:I(`flex w-full rounded-md border border-input bg-transparent pl-3 pr-3 py-1 ${Rs} file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,RC,PC,e),ref:r,...n}));hu.displayName="Input";function TC({open:e,items:t,onOpenChange:n,onToggleHidden:r,onMove:o}){return p(Ui,{open:e,onOpenChange:n,children:S(lo,{className:"max-w-sm",children:[S(po,{children:[p(fo,{children:"Customize list"}),p(mu,{children:"Hidden groups move into More. Their counters still show there."})]}),p("ul",{className:"flex flex-col gap-0.5","aria-label":"Groups",children:t.map((i,s)=>S("li",{"data-sidebar-customize-item":i.id,className:"flex items-center gap-1 rounded-md py-0.5 pl-2 pr-1 text-sm hover:bg-accent",children:[p("span",{className:I("min-w-0 flex-1 truncate",i.hidden&&"text-muted-foreground"),children:i.label}),p(Ye,{variant:"ghost",size:"icon",className:"size-7","aria-label":`Move ${i.label} up`,disabled:s===0,onClick:()=>o(i.id,-1),children:p(B,{name:N.moveUp,"aria-hidden":!0})}),p(Ye,{variant:"ghost",size:"icon",className:"size-7","aria-label":`Move ${i.label} down`,disabled:s===t.length-1,onClick:()=>o(i.id,1),children:p(B,{name:N.collapse,"aria-hidden":!0})}),p(Ye,{variant:"ghost",size:"icon",className:"size-7","aria-pressed":!i.hidden,"aria-label":i.hidden?`Show ${i.label}`:`Hide ${i.label}`,disabled:!i.hideable,onClick:()=>r(i.id),children:p(B,{name:i.hidden?N.hidden:N.show,"aria-hidden":!0})})]},i.id))}),p(fu,{children:p(Ye,{onClick:()=>n(!1),children:"Done"})})]})})}function $C({open:e,onOpenChange:t,onCreate:n}){let[r,o]=E(""),[i,s]=E(!1);return z(()=>{e&&o("")},[e]),p(Ui,{open:e,onOpenChange:t,children:p(lo,{className:"max-w-sm",children:S("form",{className:"flex flex-col gap-4",onSubmit:async a=>{a.preventDefault();let c=r.trim();if(c!==""){s(!0);try{await n(c),t(!1)}finally{s(!1)}}},children:[p(po,{children:p(fo,{children:"New section"})}),p(hu,{autoFocus:!0,"aria-label":"Section name",value:r,onChange:a=>o(a.target.value)}),S(fu,{children:[p(Ye,{type:"button",variant:"ghost",onClick:()=>t(!1),children:"Cancel"}),p(Ye,{type:"submit",disabled:i||r.trim()==="",children:"Create"})]})]})})})}function AC({open:e,title:t,description:n,confirmLabel:r,destructive:o,onOpenChange:i,onConfirm:s}){return p(_8,{open:e,onOpenChange:i,children:S(fm,{children:[S(mm,{children:[p(gm,{children:t}),p(Cm,{children:n})]}),S(hm,{children:[p(ym,{children:"Cancel"}),p(km,{className:I(o&&"bg-destructive text-destructive-foreground hover:bg-destructive/90"),onClick:s,children:r})]})]})})}function DC({open:e,title:t,onOpenChange:n,children:r}){return p(Ui,{open:e,onOpenChange:n,children:S(lo,{className:"max-w-sm",children:[p(po,{children:p(fo,{className:"sr-only",children:t})}),r]})})}function EC({open:e,title:t,targets:n,query:r,onQueryChange:o,onOpenChange:i,onMove:s}){let[a,c]=E(0);z(()=>c(0),[r,e]);let u=l=>{l!==void 0&&(s(l.parentThreadId),i(!1))};return p(Ui,{open:e,onOpenChange:i,children:S(lo,{className:"max-w-sm",children:[S(po,{children:[S(fo,{children:["Move \u201C",t,"\u201D"]}),p(mu,{children:"Nest it under another thread, or move it to the top level."})]}),p(hu,{autoFocus:!0,role:"combobox","aria-expanded":!0,"aria-controls":"thread-glance-move-targets","aria-activedescendant":n[a]?`thread-glance-move-${a}`:void 0,"aria-label":"Find a thread",placeholder:"Find a thread",value:r,onChange:l=>o(l.target.value),onKeyDown:l=>{l.key==="ArrowDown"?(l.preventDefault(),c(d=>Math.min(d+1,n.length-1))):l.key==="ArrowUp"?(l.preventDefault(),c(d=>Math.max(d-1,0))):l.key==="Enter"&&(l.preventDefault(),u(n[a]))}}),S("ul",{id:"thread-glance-move-targets",role:"listbox","aria-label":"Move to",className:"flex max-h-72 flex-col gap-0.5 overflow-y-auto",children:[n.length===0?p("li",{className:"px-2 py-1.5 text-sm text-muted-foreground",children:"No matching threads"}):null,n.map((l,d)=>S("li",{id:`thread-glance-move-${d}`,role:"option","aria-selected":d===a,onMouseEnter:()=>c(d),onClick:()=>u(l),className:I("flex cursor-pointer flex-col rounded-md px-2 py-1.5 text-sm",d===a&&"bg-accent"),children:[p("span",{className:"truncate",children:l.label}),l.detail?p("span",{className:"truncate text-xs text-muted-foreground",children:l.detail}):null]},l.parentThreadId??"top"))]})]})})}function NC(){let e=hn(),[t,n]=E({}),r=mn(),o=$(!1),i=Z(()=>{e.call("listNotes",null).then(s=>n(s.notes),()=>{})},[e]);return z(i,[i]),z(()=>{r==="connected"&&(o.current&&i(),o.current=!0)},[r,i]),fn(An.notes,s=>{let a=s;if(a===null||typeof a!="object"||typeof a.threadId!="string")return;let c=a.notes===null?null:P4.safeParse(a.notes);c!==null&&!c.success||n(u=>{let l={...u};return c===null?delete l[a.threadId]:l[a.threadId]=c.data,l})}),t}function OC(e,t,n="",r=50){let o=t.infos.get(e);if(o===void 0)return[];let i=u=>t.infos.get(u)?.thread.parentThreadId??null,s=n.trim().toLowerCase(),a=[];o.thread.parentThreadId!==null&&(s===""||"top level".includes(s))&&a.push({parentThreadId:null,label:"Top level",detail:"No parent thread"});let c=[...t.infos.values()].filter(u=>{let l=u.thread;return l.isHidden||l.isArchived||l.id===o.thread.parentThreadId||H2(l.id,e,i)?!1:s===""||l.displayTitle.toLowerCase().includes(s)}).sort((u,l)=>l.thread.latestAttentionAt-u.thread.latestAttentionAt);for(let u of c.slice(0,r)){let l=u.parentId===null?null:t.infos.get(u.parentId);a.push({parentThreadId:u.thread.id,label:u.thread.displayTitle,detail:l?`in ${l.thread.displayTitle}`:null})}return a}var fS=[["waits-on-you","needing you"],["failed","failed"],["queue-failed","queue failed"],["offline","offline"],["working","working"],["background","in background"],["scheduled","scheduled"],["queued","queued"],["unread","unread"],["draft","drafts"],["idle","idle"]];function zC(e){let t=new Map;for(let r of e)r.thread.isHidden||t.set(r.state.kind,(t.get(r.state.kind)??0)+1);let n=fS.filter(([r])=>t.has(r)).map(([r,o])=>`${t.get(r)} ${o}`);return n.length>0?n.join(", "):null}function ZC(e,t){if(e===void 0)return[];if(e.root.thread.id===t)return e.descendants;let n=[],r=new Set([t]);for(let o of e.descendants)o.parentId!==null&&r.has(o.parentId)&&(r.add(o.thread.id),n.push(o));return n}function mo(e){return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function jC(e,t){if(t===null)return null;let n=t==="now"?"just now":`${t} ago`;switch(e){case"working":case"background":return`started ${n}`;case"waits-on-you":return`waiting since ${n}`;case"failed":return`failed ${n}`;default:return`finished ${n}`}}function WC(e,t){return t.find(n=>n.model===e||n.id===e)?.displayName??e}var mS={attention:"text-attention",destructive:"text-destructive",working:"text-[var(--timeline-accent)]",background:"text-muted-foreground/50","muted-strong":"text-muted-foreground/75",muted:"text-muted-foreground",none:""},FC={attention:"border-[color:color-mix(in_oklch,var(--attention)_45%,transparent)] bg-[color-mix(in_oklch,var(--attention)_10%,transparent)] text-[color:color-mix(in_oklch,var(--attention),var(--foreground)_55%)] hover:bg-[color-mix(in_oklch,var(--attention)_20%,transparent)]",destructive:"border-[color:color-mix(in_oklch,var(--destructive-text)_45%,transparent)] bg-[color-mix(in_oklch,var(--destructive-text)_10%,transparent)] text-[color:color-mix(in_oklch,var(--destructive-text),var(--foreground)_55%)] hover:bg-[color-mix(in_oklch,var(--destructive-text)_20%,transparent)]",working:"border-[color:color-mix(in_oklch,var(--timeline-accent)_45%,transparent)] bg-[color-mix(in_oklch,var(--timeline-accent)_10%,transparent)] text-[color:color-mix(in_oklch,var(--timeline-accent),var(--foreground)_55%)] hover:bg-[color-mix(in_oklch,var(--timeline-accent)_20%,transparent)]",neutral:"border-border/70 text-muted-foreground hover:bg-state-hover hover:text-foreground"},VC="animate-shine-icon motion-reduce:animate-none",hS="animate-spin motion-reduce:animate-none";function gS({label:e,className:t}){return p("span",{role:e?"img":void 0,"aria-label":e,"aria-hidden":e?void 0:!0,className:I("inline-block size-[6px] shrink-0 rounded-full bg-[var(--timeline-accent)]",t)})}function Gi({glyph:e,label:t,className:n}){return e.icon===null?null:e.icon==="dot"?p(gS,{label:t}):p(B,{name:e.icon,"aria-label":t,"aria-hidden":t?void 0:!0,className:I("size-4 shrink-0",mS[e.tone],e.spin&&hS,e.shine&&VC,n)})}function HC({status:e}){let t=e.tone==="error"?"text-destructive":e.tone==="success"?"text-success-foreground":e.tone==="running"?"text-success motion-safe:animate-pulse":"text-muted-foreground";return p(B,{name:e.icon,"aria-label":e.label,className:I("size-4 shrink-0",t,e.tone==="running"&&VC)})}var CS={attention:"text-attention",destructive:"text-destructive",muted:"text-muted-foreground"};function gu({note:e}){return S(kt,{children:[p("span",{className:CS[e.tone],children:e.text===""?e.prefix:`${e.prefix}:`}),e.text===""?null:` ${e.text}`]})}function Ki({flag:e,className:t}){return p(Gi,{glyph:Jc[e],className:t})}var kS=[{key:"waitsOnYou",flag:"waits-on-you",label:e=>`${e} waiting on you`},{key:"failed",flag:"unread-failed",label:e=>`${e} failed`},{key:"offline",flag:"offline",label:e=>`${e} waiting for an offline machine`},{key:"working",flag:"working",label:e=>`${e} working`},{key:"unread",flag:"unread",label:e=>`${e} unread`}];function Cu({counters:e,className:t}){let n=kS.filter(r=>e[r.key]>0);return n.length===0?null:p("span",{role:"group","aria-label":n.map(r=>r.label(e[r.key])).join(", "),className:I("inline-flex shrink-0 items-center gap-1.5 text-xs tabular-nums",t),children:n.map(r=>S("span",{"aria-hidden":!0,className:"inline-flex items-center gap-0.5 text-muted-foreground",children:[p(Ki,{flag:r.flag,className:"size-3.5"}),e[r.key]]},r.key))})}var yS=500,bS=new Set(["Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]),qi=!1,ku=0,BC=0;function UC(e){qi=bS.has(e.key)}function GC(){qi=!1,ku+=1}function KC(){ku+=1}function qC(e,t){let[n,r]=E(!1),o=$(null),i=$(null),s=$(!1),a=()=>{o.current!==null&&clearTimeout(o.current),o.current=null},c=()=>{if(o.current!==null||!t||s.current)return;let u=ku;o.current=setTimeout(()=>{o.current=null,ku===u&&r(!0)},yS)};return z(()=>(BC++===0&&(qi=!1,document.addEventListener("keydown",UC,!0),document.addEventListener("pointerdown",GC,!0)),()=>{a(),--BC===0&&(document.removeEventListener("keydown",UC,!0),document.removeEventListener("pointerdown",GC,!0))}),[]),z(()=>{a(),r(!1)},[e,t]),{open:n&&t&&!e,onOpenChange:u=>{u||(a(),r(!1))},rowProps:{onPointerEnter:u=>{i.current={x:u.clientX,y:u.clientY}},onPointerMove:u=>{if(u.pointerType==="touch")return;let l=i.current;l!==null&&l.x===u.clientX&&l.y===u.clientY||(i.current=null,c())},onPointerLeave:()=>{a(),i.current=null,s.current=!1},onPointerDown:()=>{s.current=!0,a(),r(!1)},onFocus:()=>{qi&&(qi=!1,c())},onBlur:a}}}var zm=globalThis.__bbPluginRuntime;if(zm==null||zm.radixDropdownMenu==null)throw new Error('Cannot load "@radix-ui/react-dropdown-menu": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var yu=zm.radixDropdownMenu,vZ="default"in yu?yu.default:yu,{Arrow:wZ,CheckboxItem:JC,Content:YC,DropdownMenu:xZ,DropdownMenuArrow:IZ,DropdownMenuCheckboxItem:_Z,DropdownMenuContent:SZ,DropdownMenuGroup:LZ,DropdownMenuItem:PZ,DropdownMenuItemIndicator:MZ,DropdownMenuLabel:RZ,DropdownMenuPortal:TZ,DropdownMenuRadioGroup:$Z,DropdownMenuRadioItem:AZ,DropdownMenuSeparator:DZ,DropdownMenuSub:EZ,DropdownMenuSubContent:NZ,DropdownMenuSubTrigger:OZ,DropdownMenuTrigger:zZ,Group:XC,Item:QC,ItemIndicator:Zm,Label:ek,Portal:tk,RadioGroup:vS,RadioItem:jm,Root:nk,Separator:rk,Sub:ok,SubContent:Wm,SubTrigger:Fm,Trigger:ik,createDropdownMenuScope:ZZ}=yu;var xS=new Set(["ArrowDown","ArrowUp","Home","End","PageDown","PageUp"]),on="data-[last-hovered]:bg-state-hover data-[last-hovered]:text-foreground",sk=we({lastHoveredId:null,setLastHovered:()=>{},clearLastHovered:()=>{}});function bu({children:e}){let[t,n]=E(null),r=q(()=>({lastHoveredId:t,setLastHovered:n,clearLastHovered:()=>n(null)}),[t]);return p(sk.Provider,{value:r,children:e})}function Bt(e){let t=gn(),{lastHoveredId:n,setLastHovered:r,clearLastHovered:o}=xe(sk),i=n===t,s=$(e);s.current=e;let a=Z(u=>{s.current?.onPointerEnter?.(u),r(t)},[t,r]),c=Z(u=>{s.current?.onKeyDown?.(u),xS.has(u.key)&&o()},[o]);return{isLastHovered:i,hoverProps:{"data-last-hovered":i?"":void 0,onPointerEnter:a,onKeyDown:c}}}var IS="focus:bg-state-hover focus:text-foreground data-[last-hovered]:bg-state-hover data-[last-hovered]:text-foreground",_S="text-destructive focus:bg-destructive/15 focus:text-destructive data-[last-hovered]:bg-destructive/15",SS="text-destructive focus:bg-destructive/15 focus:text-destructive active:bg-destructive/20 active:text-destructive",Vm=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function En(){return xe(Vm)}function ho({children:e,open:t,onOpenChange:n,defaultOpen:r,...o}){let i=vr(t,n,r);return i.isCompactViewport?p(Vm.Provider,{value:i,children:e}):p(nk,{open:i.open,onOpenChange:i.onOpenChange,...o,children:p(Vm.Provider,{value:i,children:e})})}var dr=H(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=En();return i?p(Hn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"menu",className:n,...r,children:t}):p(ik,{ref:o,asChild:e,className:yn(n),onMouseDown:c=>{s||bn(),Jt(c)},...r,children:t})});dr.displayName="DropdownMenuTrigger";var pr=H(({className:e,sideOffset:t=4,children:n,mobileTitle:r,onCloseAutoFocus:o,...i},s)=>{let{isCompactViewport:a,open:c,onOpenChange:u}=En(),l=Ee();if(a){let{style:d,...m}=wr(i);return p(xr,{open:c,onOpenChange:u,srLabel:r??"Menu",children:p("div",{ref:s,className:I("flex flex-col gap-0.5 overflow-y-auto p-2 pb-[max(0.5rem,env(safe-area-inset-bottom))]",e),...m,style:{...d,...Zs},children:n})})}return p(tk,{children:p(YC,{ref:s,...l,sideOffset:t,onCloseAutoFocus:d=>{b5()||d.preventDefault(),o?.(d)},className:I("z-50 min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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",e),...i,children:p(bu,{children:n})})})});pr.displayName="DropdownMenuContent";function ak(){return new Event("select",{cancelable:!0})}var Oe=H(({className:e,inset:t,variant:n="default",onSelect:r,disabled:o,role:i="menuitem","aria-checked":s,textValue:a,children:c,onPointerEnter:u,onKeyDown:l,onFocus:d,onBlur:m,...f},h)=>{let{isCompactViewport:g,onOpenChange:k}=En(),{hoverProps:v}=Bt({onPointerEnter:u,onKeyDown:l});return g?p("button",{ref:h,type:"button",role:i,disabled:o,"aria-disabled":o||void 0,"aria-checked":s,className:I("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-2 text-left text-xs outline-none transition-colors focus:bg-state-hover focus:text-foreground active:bg-state-active active:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",t&&"pl-8",n==="destructive"&&SS,e),"data-disabled":o?"":void 0,onFocus:d,onBlur:m,onClick:()=>{if(o)return;let y=ak();r?.(y),y.defaultPrevented||k(!1)},children:c}):p(QC,{ref:h,className:I("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",jt,n==="destructive"?_S:IS,t&&"pl-8",e),disabled:o,role:i,"aria-checked":s,onSelect:r,textValue:a,onFocus:d,onBlur:m,...f,...v,children:c})});Oe.displayName="DropdownMenuItem";var LS=H(({className:e,children:t,checked:n,onSelect:r,onCheckedChange:o,disabled:i,textValue:s,onPointerEnter:a,onKeyDown:c,...u},l)=>{let{isCompactViewport:d,onOpenChange:m}=En(),{hoverProps:f}=Bt({onPointerEnter:a,onKeyDown:c});return d?S("button",{ref:l,type:"button",role:"menuitemcheckbox","aria-checked":n==="indeterminate"?"mixed":n===!0,disabled:i,"aria-disabled":i||void 0,className:I("relative flex w-full cursor-default select-none items-center rounded-sm py-2 pl-2 pr-8 text-left text-xs outline-none transition-colors focus:bg-state-hover focus:text-foreground active:bg-state-active active:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),"data-disabled":i?"":void 0,onClick:()=>{if(i)return;let h=ak();r?.(h),o?.(n==="indeterminate"?!0:!n),h.defaultPrevented||m(!1)},children:[p("span",{className:I("absolute right-2 flex items-center justify-center",Dn),children:(n===!0||n==="indeterminate")&&p(Dt,{name:"Check",className:Dn})}),t]}):S(JC,{ref:l,className:I("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-2 pr-8 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",jt,on,e),checked:n,onSelect:r,onCheckedChange:o,disabled:i,textValue:s,...u,...f,children:[p("span",{className:I("absolute right-2 flex items-center justify-center",Dn),children:p(Zm,{children:p(Dt,{name:"Check",className:Dn})})}),t]})});LS.displayName="DropdownMenuCheckboxItem";var PS=H(({className:e,children:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{isCompactViewport:s}=En(),{hoverProps:a}=Bt({onPointerEnter:n,onKeyDown:r});return s?null:S(jm,{ref:i,className:I("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-8 pr-2 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",jt,on,e),...o,...a,children:[p("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p(Zm,{children:p(Dt,{name:"Circle",className:"h-2 w-2 fill-current"})})}),t]})});PS.displayName=jm.displayName;var MS=H(({className:e,inset:t,children:n,...r},o)=>{let{isCompactViewport:i}=En();return i?p("div",{ref:o,className:I("px-2 py-1.5 text-xs font-medium text-muted-foreground",t&&"pl-8",e),children:n}):p(ek,{ref:o,className:I("px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground",t&&"pl-8",e),...r,children:n})});MS.displayName="DropdownMenuLabel";var Ji=H(({className:e,...t},n)=>{let{isCompactViewport:r}=En();return r?p("hr",{ref:n,className:I("-mx-1 my-1 h-px border-0 bg-muted",e)}):p(rk,{ref:n,className:I("-mx-1 my-1 h-px bg-muted",e),...t})});Ji.displayName="DropdownMenuSeparator";var RS=H(({children:e,...t},n)=>{let{isCompactViewport:r}=En();return r?p("div",{ref:n,role:"group",...t,children:e}):p(XC,{ref:n,...t,children:e})});RS.displayName="DropdownMenuGroup";var ck=ok,Hm=H(({className:e,inset:t,children:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Bt({onPointerEnter:r,onKeyDown:o});return S(Fm,{ref:s,className:I("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[state=open]:bg-state-active data-[state=open]:text-foreground [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0",jt,on,t&&"pl-8",e),...i,...a,children:[n,p(Dt,{name:"ChevronRight",className:"ml-auto"})]})});Hm.displayName=Fm.displayName;var Bm=H(({className:e,...t},n)=>p(Wm,{ref:n,...Ee(),className:I("z-50 min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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",e),...t}));Bm.displayName=Wm.displayName;var TS=({className:e,...t})=>p("span",{className:I("ml-auto text-xs tracking-widest opacity-60",e),...t});TS.displayName="DropdownMenuShortcut";function uk(e){return e.map(t=>`${t.threadId}:${t.projectId}`).join(" ")}var $S=25;function lk(e,t=$S){let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function AS(e,t){let n=e.info.state,r=t??n.label;return n.kind==="scheduled"&&n.sendAt!==null?`${r}, sends ${mo(n.sendAt)}`:r}function dk(e,t){let n=[AS(e,t.pluginLabel),t.providerName];return e.parentTitle!==null&&e.depth>0&&n.push(`child of ${e.parentTitle}`),e.crossGroupLabel!==null&&n.push(e.crossGroupLabel.toLowerCase()),e.homeGroupLabel!==null&&n.push(`in ${e.homeGroupLabel}`),e.hiddenBadge&&n.push("hidden thread"),e.info.unread&&e.info.state.kind!=="unread"&&n.push("unread"),t.hasDraft&&e.info.state.kind!=="draft"&&n.push("unsubmitted draft"),`Open ${e.info.thread.displayTitle} \u2014 ${n.join("; ")}`}function Um(e,t,n,r){let o=t===1?"child thread":"child threads",i=n===null?"":`, ${Jc[n].label}`;return`${r?"Collapse":"Show"} ${t} ${o} of ${e}${i}`}function pk(e){let t=e.count===1?"thread":"threads";if(e.scope==="group")return{label:e.expanded?"Show fewer":`${e.count} older`,ariaLabel:`${e.expanded?"Hide":"Show"} ${e.count} older ${t}`};let n=e.count===1?"child thread":"child threads";return e.expanded?{label:"Show fewer",ariaLabel:`Hide ${e.count} older ${n}`}:{label:`${e.count} more ${n}`,ariaLabel:`Show ${e.count} more ${n}`}}function go(e){return 8+e*12}var DS=600;function ES(e){return e instanceof HTMLElement?e.isContentEditable||e.tagName==="TEXTAREA"||e.tagName==="INPUT":!1}function Co({initial:e,label:t,onSave:n,onDone:r,className:o}){let[i,s]=E(e),[a,c]=E(!1),u=$(null),l=$(!1),d=$(!1),m=$(!1);z(()=>{let h=g=>{g.target!==u.current&&(m.current=!0)};return window.addEventListener("pointerdown",h,!0),()=>window.removeEventListener("pointerdown",h,!0)},[]),z(()=>{u.current?.focus(),u.current?.select();let h=setTimeout(()=>{d.current=!0},DS);return()=>clearTimeout(h)},[]);let f=async h=>{if(l.current)return;l.current=!0;let g=i.trim();if(!h||g===""||g===e){r();return}c(!0);try{await n(g)}catch(k){st.error("Couldn't rename",{description:k instanceof Error?k.message:String(k)})}finally{r()}};return S(kt,{children:[p("input",{ref:u,"aria-label":t,value:i,disabled:a,onChange:h=>s(h.target.value),onKeyDown:h=>{h.stopPropagation(),!h.nativeEvent.isComposing&&(h.key==="Enter"?(h.preventDefault(),f(!0)):h.key==="Escape"&&(h.preventDefault(),f(!1)))},onBlur:h=>{if(!d.current&&!m.current&&ES(h.relatedTarget)){setTimeout(()=>{u.current?.focus(),u.current?.select()},0);return}f(!0)},onClick:h=>h.stopPropagation(),onPointerDown:h=>h.stopPropagation(),className:I("pointer-events-auto relative z-10 h-6 min-w-0 flex-1 rounded-sm border border-input bg-background px-1.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring",o)}),a?p("span",{role:"status",className:"sr-only",children:"Saving name"}):null]})}var Gm=globalThis.__bbPluginRuntime;if(Gm==null||Gm.radixContextMenu==null)throw new Error('Cannot load "@radix-ui/react-context-menu": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var vu=Gm.radixContextMenu,cj="default"in vu?vu.default:vu,{Arrow:uj,CheckboxItem:Km,Content:qm,ContextMenu:lj,ContextMenuArrow:dj,ContextMenuCheckboxItem:pj,ContextMenuContent:fj,ContextMenuGroup:mj,ContextMenuItem:hj,ContextMenuItemIndicator:gj,ContextMenuLabel:Cj,ContextMenuPortal:kj,ContextMenuRadioGroup:yj,ContextMenuRadioItem:bj,ContextMenuSeparator:vj,ContextMenuSub:wj,ContextMenuSubContent:xj,ContextMenuSubTrigger:Ij,ContextMenuTrigger:_j,Group:NS,Item:Jm,ItemIndicator:Ym,Label:Xm,Portal:fk,RadioGroup:OS,RadioItem:Qm,Root:mk,Separator:eh,Sub:hk,SubContent:th,SubTrigger:nh,Trigger:gk,createContextMenuScope:Sj}=vu;var Ck="z-[70]",kk=mk,yk=gk;var bk=hk;var rh=H(({className:e,inset:t,children:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Bt({onPointerEnter:r,onKeyDown:o});return S(nh,{ref:s,className:I("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[state=open]:bg-state-active data-[state=open]:text-foreground [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0",jt,on,t&&"pl-8",e),...i,...a,children:[n,p(Dt,{name:"ChevronRight",className:"ml-auto"})]})});rh.displayName=nh.displayName;var oh=H(({className:e,...t},n)=>p(th,{ref:n,...Ee(),className:I(Ck,"min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));oh.displayName=th.displayName;var ih=H(({className:e,children:t,...n},r)=>p(fk,{children:p(qm,{ref:r,...Ee(),className:I(Ck,"min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n,children:p(bu,{children:t})})}));ih.displayName=qm.displayName;var wu=H(({className:e,inset:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{hoverProps:s}=Bt({onPointerEnter:n,onKeyDown:r});return p(Jm,{ref:i,className:I("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",jt,on,t&&"pl-8",e),...o,...s})});wu.displayName=Jm.displayName;var ZS=H(({className:e,children:t,checked:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Bt({onPointerEnter:r,onKeyDown:o});return S(Km,{ref:s,className:I("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-2 pr-8 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",jt,on,e),checked:n,...i,...a,children:[p("span",{className:I("absolute right-2 flex items-center justify-center",Dn),children:p(Ym,{children:p(Dt,{name:"Check",className:Dn})})}),t]})});ZS.displayName=Km.displayName;var jS=H(({className:e,children:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{hoverProps:s}=Bt({onPointerEnter:n,onKeyDown:r});return S(Qm,{ref:i,className:I("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-8 pr-2 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",jt,on,e),...o,...s,children:[p("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p(Ym,{children:p(Dt,{name:"Circle",className:"h-2 w-2 fill-current"})})}),t]})});jS.displayName=Qm.displayName;var WS=H(({className:e,inset:t,...n},r)=>p(Xm,{ref:r,className:I("px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground",t&&"pl-8",e),...n}));WS.displayName=Xm.displayName;var sh=H(({className:e,...t},n)=>p(eh,{ref:n,className:I("-mx-1 my-1 h-px bg-muted",e),...t}));sh.displayName=eh.displayName;function FS({className:e,...t}){return p("span",{className:I("ml-auto text-xs tracking-widest opacity-60",e),...t})}FS.displayName="ContextMenuShortcut";var ah=globalThis.__bbPluginRuntime;if(ah==null||ah.radixHoverCard==null)throw new Error('Cannot load "@radix-ui/react-hover-card": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var xu=ah.radixHoverCard,Ej="default"in xu?xu.default:xu,{Arrow:Nj,Content:ch,HoverCard:Oj,HoverCardArrow:zj,HoverCardContent:Zj,HoverCardPortal:jj,HoverCardTrigger:Wj,Portal:vk,Root:wk,Trigger:xk,createHoverCardScope:Fj}=xu;var Ik=wk,_k=xk,uh=H(({className:e,align:t="center",sideOffset:n=4,...r},o)=>{let i=Ee();return p(vk,{children:p(ch,{ref:o,align:t,sideOffset:n,...i,className:I("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md 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 origin-[--radix-hover-card-content-transform-origin]",e),...r})})});uh.displayName=ch.displayName;function Iu(e){let t=Math.max(0,e);return t<6e4?"now":t<36e5?`${Math.floor(t/6e4)}m`:t<864e5?`${Math.floor(t/36e5)}h`:t<6048e5?`${Math.floor(t/864e5)}d`:`${Math.floor(t/6048e5)}w`}function HS(e,t){return Math.max(e.latestAttentionAt,t[e.id]??e.createdAt)}function Sk(e,t,n,r,o){if(o!==void 0){if(o===null)return null;let s=Iu(r-o),a=s==="now"?"<1m":s;return{text:a,label:`Waiting on you for ${a==="<1m"?"less than a minute":a}`,kind:"waiting"}}if(t){let s=n.startedAt[e.id];if(s===void 0)return null;let a=Iu(r-s),c=a==="now"?"<1m":a;return{text:c,label:`Working for ${c==="<1m"?"less than a minute":c}`,kind:"timer"}}let i=Iu(r-HS(e,n.finishedAt));return{text:i,label:i==="now"?"Finished just now":`Finished ${i} ago`,kind:"age"}}function Lk(e,t){if(e.status!=="idle"&&e.status!=="error"||e.hasPendingInteraction)return null;let n=t[e.id];return n!==void 0?Math.max(n,e.latestAttentionAt):e.latestAttentionAt>e.createdAt&&(e.parentThreadId===null||e.status==="error")?e.latestAttentionAt:null}function Pk(e,t,n,r){let o=e==="working"?n.startedAt[t]:e==="waits-on-you"?n.pendingAt[t]:e==="idle"||e==="unread"||e==="failed"?n.finishedAt[t]:void 0;return o===void 0?null:Iu(r-o)}function Yi({display:e,mode:t="muted",className:n}){if(t==="hidden")return null;let r=t==="muted";if(e.provider!==null){let o=r?{id:e.provider.id,logoUrl:e.provider.logoUrl,icon:e.provider.icon}:e.provider;return p("span",{title:e.name,className:I("inline-flex size-3.5 shrink-0 text-muted-foreground",r&&"opacity-60",n),children:p(is,{providerKind:"agent",provider:o,"aria-label":e.name,className:"size-3.5"})})}return p("span",{role:"img","aria-label":e.name,title:e.name,className:I("inline-flex h-3.5 min-w-3.5 shrink-0 items-center justify-center rounded-[3px] border border-border px-px text-[8px] font-semibold leading-none tracking-tight text-muted-foreground",r&&"opacity-60",n),children:e.mark})}function lh(e){switch(e){case"checks_failed":case"conflicts":case"changes_requested":return"text-destructive";case"ready_to_merge":return"text-success";default:return"text-muted-foreground"}}var BS={checks_failed:"checks failed",conflicts:"has conflicts",changes_requested:"changes requested",ready_to_merge:"ready to merge",checks_pending:"checks pending",review_requested:"review requested",draft:"draft",merged:"merged",closed:"closed",blocked:"blocked"};function _u(e){let t=BS[e.attention];return`Pull request #${e.number}${t?`, ${t}`:""}: ${e.title}`}function Mk({threadId:e}){let{pullRequest:t}=ss(e);return t===null?null:S("span",{title:_u(t),"aria-label":_u(t),className:I("shrink-0 text-[11px] tabular-nums",lh(t.attention)),children:["#",t.number]})}function Su({item:e}){return S(kt,{children:[p(B,{name:e.icon,"aria-hidden":!0,className:"size-4"}),p("span",{children:e.label})]})}function Rk(e){return[{id:null,name:"Threads"},...e.map(t=>({id:t.id,name:t.name}))]}function Tk({items:e,sections:t,currentSectionId:n,onAction:r,onCloseAutoFocus:o,input:i}){let s=a=>c=>{if(!i.current.pressed&&!i.current.keyed){c.preventDefault();return}a()};return p(ih,{className:"min-w-48",onCloseAutoFocus:o,onPointerDown:()=>{i.current.pressed=!0},onKeyDown:()=>{i.current.keyed=!0},children:e.map(a=>S(mr,{children:[a.separated?p(sh,{}):null,a.action==="move-to-section"?S(bk,{children:[p(rh,{children:p(Su,{item:a})}),p(oh,{children:Rk(t).map(c=>S(wu,{disabled:c.id===n,onSelect:s(()=>r("move-to-section",c.id)),children:[c.id===n?p(B,{name:N.check,"aria-hidden":!0,className:"size-4"}):p("span",{className:"size-4"}),c.name]},c.id??"threads"))})]}):p(wu,{className:I(a.destructive&&"text-destructive focus:text-destructive"),onSelect:s(()=>r(a.action)),children:p(Su,{item:a})})]},a.action))})}function $k({items:e,sections:t,currentSectionId:n,onAction:r,onCloseAutoFocus:o}){return p(pr,{align:"end",className:"min-w-48",onCloseAutoFocus:o,children:e.map(i=>S(mr,{children:[i.separated?p(Ji,{}):null,i.action==="move-to-section"?S(ck,{children:[p(Hm,{children:p(Su,{item:i})}),p(Bm,{children:Rk(t).map(s=>S(Oe,{disabled:s.id===n,onSelect:()=>r("move-to-section",s.id),children:[s.id===n?p(B,{name:N.check,"aria-hidden":!0,className:"size-4"}):p("span",{className:"size-4"}),s.name]},s.id??"threads"))})]}):p(Oe,{className:I(i.destructive&&"text-destructive focus:text-destructive"),onSelect:()=>r(i.action),children:p(Su,{item:i})})]},i.action))})}function Ak({panes:e,label:t,working:n}){let r=e.some(o=>o.isMe&&o.isFocused);return p("svg",{role:"img","aria-label":t,viewBox:"0 0 14 14",width:14,height:14,shapeRendering:"crispEdges",className:I("pointer-events-none size-3.5 shrink-0",!r&&"opacity-60",n&&"animate-shine-icon motion-reduce:animate-none"),children:e.map(o=>{let i=o.isMe?0:.5;return p("rect",{x:1+o.rect.x*12+i,y:1+o.rect.y*12+i,width:Math.max(o.rect.width*12-2*i,0),height:Math.max(o.rect.height*12-2*i,0),strokeWidth:o.isMe?0:1,className:o.isMe?o.isFocused?"fill-primary/70 stroke-none":"fill-muted-foreground/45 stroke-none":"fill-none stroke-muted-foreground/30"},o.paneId)})})}function sn({label:e,title:t,children:n}){return S("div",{className:"flex min-w-0 gap-2",title:t,children:[p("dt",{className:"w-20 shrink-0 text-muted-foreground",children:e}),p("dd",{className:"min-w-0 flex-1 break-words",children:n})]})}function US(e,t){let[n,r]=E("loading"),{id:o,status:i}=t.thread;return z(()=>{let s=!1;return r("loading"),e.loadModel(o,i).then(a=>!s&&r(a),()=>!s&&r(null)),()=>{s=!0}},[e,o,i]),n}function GS({threadId:e}){let{pullRequest:t}=ss(e);return t===null?null:p(sn,{label:"Pull request",children:p("span",{className:lh(t.attention),children:_u(t)})})}function Lu({info:e,controller:t,showPullRequest:n,actions:r}){let o=e.thread,i=t.provider(o.providerId),s=US(t,e),a=xe(su),c=jC(e.state.kind,Pk(e.state.kind,o.id,a.stamps,a.now)),u=zC(ZC(a.familyOf(o.id),o.id)),l=o.environment,d=Lk(o,a.stamps.finishedAt),m=X2(a.notes[o.id]);return S("div",{className:"flex flex-col gap-2 text-xs",children:[p("p",{className:"text-sm font-medium leading-snug break-words",children:o.displayTitle}),S("div",{className:"flex items-center gap-1.5",children:[p(Gi,{glyph:e.state.glyph,className:"size-3.5"}),S("span",{children:[e.state.label,c!==null?` \xB7 ${c}`:"",e.state.sendAt!==null?` \xB7 sends ${mo(e.state.sendAt)}`:""]})]}),e.note!==null?p("p",{className:"break-words leading-snug",children:p(gu,{note:e.note})}):null,S("dl",{className:"flex flex-col gap-1",children:[p(sn,{label:"Harness",children:S("span",{className:"inline-flex items-center gap-1.5",children:[p(Yi,{display:i,mode:t.harnessIcon==="hidden"?"muted":t.harnessIcon}),i.name]})}),p(sn,{label:"Model",title:"The model and reasoning level the next message will use",children:s==="loading"?"\u2026":s===null?"Unknown":`${s.model} \xB7 ${s.reasoningLevel}`}),l?.branchName?p(sn,{label:"Branch",children:S("span",{className:"inline-flex items-center gap-1",children:[p(B,{name:l.isWorktree?N.worktree:N.branch,"aria-hidden":!0,className:"size-3.5"}),l.branchName,l.isWorktree?" (worktree)":""]})}):null,o.host!==null?p(sn,{label:"Machine",children:o.host.name}):null,u!==null?p(sn,{label:"Children",children:u}):null,n?p(GS,{threadId:o.id}):null,m!==null&&e.note===null?p(sn,{label:"Last reply",children:p("span",{className:"line-clamp-2",children:m.text})}):null,p(sn,{label:"Created",children:mo(o.createdAt)}),d!==null?p(sn,{label:"Finished",children:mo(d)}):null]}),r?S("div",{className:"flex gap-2 pt-1",children:[S(Ye,{size:"sm",onClick:r.open,children:[p(B,{name:N.open,"aria-hidden":!0}),"Open"]}),S(Ye,{size:"sm",variant:"outline",onClick:r.toggleRead,children:[p(B,{name:e.unread?N.markRead:N.markUnread,"aria-hidden":!0}),e.unread?"Mark read":"Mark unread"]})]}):null]})}var KS=400,qS=700,JS=10,Xi=null;function YS(){let e=t=>{t.preventDefault(),t.stopPropagation(),window.removeEventListener("click",e,!0)};window.addEventListener("click",e,!0),window.addEventListener("touchend",()=>setTimeout(()=>window.removeEventListener("click",e,!0),400),{capture:!0,once:!0})}var Dk="text-[color:color-mix(in_oklch,var(--foreground)_var(--tg-quiet,68%),var(--tg-surface,var(--sidebar)))]",an="pointer-events-auto relative z-10 inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground outline-none hover:bg-state-hover hover:text-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring data-[state=open]:bg-state-active";function XS(e){let t=vh();return q(()=>{if(t===null)return null;let n=t.panes.map(r=>({paneId:r.paneId,rect:r.rect,isMe:r.threadId===e,isFocused:r.isFocused}));return n.some(r=>r.isMe)?n:null},[t,e])}var Ek=ft(function({row:t,controller:n,groupId:r,inPinned:o,dropState:i,active:s,editing:a,now:c,startedAt:u,finishedAt:l,pendingAt:d}){let{info:m}=t,f=m.thread,h=f.archivedAt!==null||f.isArchived,g=n.compact,k=_h(f.id),v=Ih(f.id),{hasUnsubmittedDraft:y}=wh(f.id),w=Ch(f.id),T=XS(f.id),[M,x]=E(!1),[A,V]=E(!1),X=qC(s,!g&&!a&&!M&&!A),ie=$({pressed:!1,keyed:!1}),re=$(null),W=$(null),ae={threadId:f.id,parentThreadId:f.parentThreadId,sectionId:f.sectionId,pinned:f.pinnedAt!==null||f.isPinned},ne=xs({id:`thread:${f.id}:${r}`,data:{kind:"thread",thread:ae,groupId:r},disabled:a||g}),ze=Is({id:`drop-thread:${f.id}:${r}`,data:{kind:"thread",threadId:f.id,inPinned:o,groupId:r}}),xt=Z(j=>{ne.setNodeRef(j),ze.setNodeRef(j)},[ne.setNodeRef,ze.setNodeRef]),Ge=n.provider(f.providerId),Nn=z4(m.state,v),gt=dk(t,{providerName:Ge.name,pluginLabel:Nn?v.label:null,hasDraft:y}),Ve=h?null:Sk(f,m.flags.has("working"),{startedAt:u===void 0?{}:{[f.id]:u},finishedAt:l===void 0?{}:{[f.id]:l}},c,m.state.kind==="waits-on-you"?d??null:void 0),Et=Q4({thread:f,unread:m.unread,splitAvailable:w.isAvailable,isRoot:f.parentThreadId===null,hasSections:n.mode==="chronological"||n.sections.length>0,compact:g}),Te=$(!1),Ze=$(!1),Nt=(j,Se)=>{if(j==="rename"){Te.current=!0,Ze.current=!0,setTimeout(()=>{Ze.current=!1},1500);return}n.onMenuAction(j,f,Se)};z(()=>{if(M||A||!Te.current)return;let j=setTimeout(()=>{Te.current&&(Te.current=!1,n.setEditingId(f.id))},60);return()=>clearTimeout(j)},[M,A,n,f.id]);let Ot=j=>{Ze.current&&(Ze.current=!1,j.preventDefault(),Te.current&&(Te.current=!1,n.setEditingId(f.id)))},$e=n.showPullRequests&&t.depth===0?n.defaultBranchOf(f):void 0,cn=f.environment?.branchName??null,un=n.showPullRequests&&t.depth===0&&cn!==null&&$e!==void 0&&cn!==$e,On=T?p(Ak,{panes:T,label:`${f.displayTitle} \u2014 open in split; ${m.state.label}`,working:m.flags.has("working")}):Nn?p(HC,{status:v}):p("span",{title:m.state.label,className:"inline-flex",children:p(Gi,{glyph:m.state.glyph,label:m.state.label})}),He=j=>{if(a){j.preventDefault();return}if(w.isAvailable&&(j.metaKey||j.ctrlKey)){j.preventDefault(),n.onMenuAction("open-in-split",f);return}let Se=Date.now();if(Xi!==null&&Xi.threadId===f.id&&Se-Xi.at<KS){Xi=null,j.preventDefault(),n.setEditingId(f.id);return}Xi={threadId:f.id,at:Se},n.onNavigate()},Be=()=>{W.current!==null&&clearTimeout(W.current.timer),W.current=null},Ae=$(!1),Ce=g?{onTouchStart:j=>{let Se=j.touches[0];Se!==void 0&&(Be(),Ae.current=!1,W.current={x:Se.clientX,y:Se.clientY,timer:setTimeout(()=>{W.current=null,Ae.current=!0,YS(),x(!0)},qS)})},onTouchMove:j=>{let Se=j.touches[0];W.current===null||Se===void 0||Math.hypot(Se.clientX-W.current.x,Se.clientY-W.current.y)>JS&&Be()},onTouchEnd:j=>{Be(),Ae.current&&j.preventDefault()},onTouchCancel:Be,onContextMenu:j=>j.preventDefault(),style:{WebkitTouchCallout:"none"}}:{},me=t.chip,Ut=go(t.depth),rt=t.note,ln=n.comfortable||rt!==null,ee=t.dimmed&&!a,zt=M||A,Ke=g?"":zt?"opacity-0":"group-hover/row:opacity-0 group-focus-within/row:opacity-0",Zt=S("div",{ref:xt,"data-sidebar-rename-row":"","data-sidebar-nest-target":i==="valid"||i==="blocked"||i==="unchanged"?i:void 0,"data-sidebar-reorder-placement":i==="before"||i==="after"?i:void 0,...ne.attributes,...ne.listeners,role:void 0,tabIndex:void 0,"aria-roledescription":void 0,onPointerEnter:X.rowProps.onPointerEnter,onPointerMove:X.rowProps.onPointerMove,onPointerDown:j=>{X.rowProps.onPointerDown(),a||w.splitProps.onPointerDown?.(j)},onPointerLeave:X.rowProps.onPointerLeave,onFocus:X.rowProps.onFocus,onBlur:X.rowProps.onBlur,...Ce,className:I("group/row relative flex w-full items-center gap-1.5 rounded-md pr-1 text-sm transition-colors",ln?"h-11 max-md:pointer-coarse:h-12":"h-7 max-md:pointer-coarse:h-9",s?"bg-state-active text-sidebar-foreground":"cursor-pointer text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",!s&&zt&&"bg-sidebar-accent",T&&!s&&"bb-sidebar-open-in-split-row",ne.isDragging&&"opacity-50",i==="valid"&&"ring-1 ring-inset ring-sidebar-ring/80 bg-sidebar-accent/45",i==="blocked"&&"ring-1 ring-inset ring-destructive/60",i==="before"&&"shadow-[inset_0_2px_0_0_var(--sidebar-ring)]",i==="after"&&"shadow-[inset_0_-2px_0_0_var(--sidebar-ring)]"),style:{paddingLeft:Ut},children:[p("a",{ref:re,href:f.href,"data-sidebar-thread-shortcut-target":"","data-sidebar-thread-id":f.id,"data-sidebar-rename-anchor":"","aria-label":gt,"aria-keyshortcuts":k?.ariaKeyshortcuts,"aria-current":s?"page":void 0,onClick:He,onDoubleClick:j=>{j.preventDefault(),n.setEditingId(f.id)},className:"absolute inset-0 rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring"}),p("span",{className:"pointer-events-none relative flex size-4 shrink-0 items-center justify-center",children:On}),t.nested?p("span",{"aria-hidden":!0,title:`Child of ${t.parentTitle??"a thread"}`,className:I("pointer-events-none relative -ml-[3px] -mr-px w-1.5 shrink-0 text-center text-[10px] leading-none text-muted-foreground",ln&&"mt-[9px] self-start"),children:"\u21B3"}):null,t.crossGroupLabel!==null?p("span",{role:"img","aria-label":t.crossGroupLabel,title:t.crossGroupLabel,"data-sidebar-thread-cross-project":"",className:"pointer-events-none relative inline-flex size-4 shrink-0 items-center justify-center text-muted-foreground",children:p(B,{name:N.crossGroup,"aria-hidden":!0,className:"size-3.5"})}):null,S("span",{className:"pointer-events-none relative flex min-w-0 flex-1 flex-col justify-center",children:[a?p(Co,{initial:f.displayTitle,label:"Thread name",onSave:j=>n.onRename(f.id,j),onDone:()=>{n.setEditingId(null),re.current?.focus()}}):p("span",{title:f.displayTitle,className:I("min-w-0 truncate",m.unread?"font-semibold":"font-normal",t.depth>0&&"text-xs",ee&&`${Dk} group-hover/row:text-foreground`),children:f.displayTitle}),!a&&rt!==null?p("span",{className:"min-w-0 truncate text-xs leading-4 text-muted-foreground",title:G4(rt),children:p(gu,{note:rt})}):n.comfortable&&!a?p(QS,{row:t,multiHost:n.multiHost,defaultBranch:n.defaultBranchOf(f)}):null]}),t.hiddenBadge?p("span",{role:"img","aria-label":"Hidden thread",title:"Hidden thread",className:"pointer-events-none relative shrink-0 text-muted-foreground",children:p(B,{name:N.hidden,"aria-hidden":!0,className:"size-3.5"})}):null,un&&!a?p("span",{className:"pointer-events-none relative",children:p(Mk,{threadId:f.id})}):null,me!==null&&!a?S("button",{type:"button","aria-expanded":me.expanded,"aria-label":Um(f.displayTitle,me.count,me.flag,me.expanded),title:Um(f.displayTitle,me.count,me.flag,me.expanded),onClick:j=>{j.preventDefault(),j.stopPropagation(),n.onToggleChip(t)},onPointerDown:j=>j.stopPropagation(),onKeyDown:j=>j.stopPropagation(),"data-tone":q2(me.flag),className:I("pointer-events-auto relative z-10 inline-flex h-5 shrink-0 items-center gap-0.5 rounded-md border px-1 text-[11px] leading-none tabular-nums outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",FC[q2(me.flag)],ee&&Dk),children:[me.count,me.flag!==null?p(Ki,{flag:me.flag,className:"size-3"}):null,n.harnessIcon!=="hidden"?me.providerIds.map(j=>p(Yi,{display:n.provider(j),className:"size-3 [&_*]:size-3"},j)):null,p(B,{name:N.expand,"aria-hidden":!0,className:I("size-3 transition-transform duration-150",me.expanded&&"rotate-90")})]}):null,a?null:p("span",{className:I("pointer-events-none relative inline-flex shrink-0 transition-opacity",k===null&&Ke),children:p(Yi,{display:Ge,mode:n.harnessIcon})}),a?null:p("span",{className:"relative flex h-6 min-w-8 shrink-0 items-center justify-end gap-1",children:k!==null?p("kbd",{"aria-hidden":!0,className:"pointer-events-none rounded border border-border px-1 font-sans text-[10px] leading-4 text-muted-foreground",children:k.label}):S(kt,{children:[t.homeGroupLabel!==null?p("span",{title:`In ${t.homeGroupLabel}`,className:I("pointer-events-none max-w-24 truncate text-[11px] text-muted-foreground transition-opacity",Ke),children:t.homeGroupLabel}):Ve!==null?p("span",{title:Ve.label,"aria-label":Ve.label,className:I("pointer-events-none text-[11px] tabular-nums transition-opacity",Ve.kind==="timer"?"font-medium text-[var(--timeline-accent)]":"text-muted-foreground",Ke),children:Ve.text}):null,S("span",{className:I("flex items-center gap-0.5 transition-opacity",g?"relative":zt?"absolute right-0 opacity-100":"absolute right-0 opacity-0 group-hover/row:opacity-100 group-focus-within/row:opacity-100"),children:[g?null:p("button",{type:"button","aria-label":h?"Unarchive thread":"Archive thread",title:h?"Unarchive":"Archive",className:an,onPointerDown:j=>j.stopPropagation(),onClick:j=>{j.preventDefault(),j.stopPropagation(),n.onMenuAction(h?"unarchive":"archive",f)},children:p(B,{name:h?N.unarchive:N.archive,"aria-hidden":!0,className:"size-4"})}),S(ho,{open:M,onOpenChange:x,children:[p(dr,{asChild:!0,children:p("button",{type:"button","aria-label":"Thread actions",className:g?"sr-only":an,onPointerDown:j=>j.stopPropagation(),onClick:j=>j.stopPropagation(),children:p(B,{name:N.more,"aria-hidden":!0,className:"size-4"})})}),p($k,{items:Et,sections:n.sections,currentSectionId:f.sectionId,onAction:Nt,onCloseAutoFocus:Ot})]})]})]})})]});return g?Zt:S(kk,{onOpenChange:j=>{j&&(ie.current={pressed:!1,keyed:!1}),V(j)},children:[S(Ik,{closeDelay:100,open:X.open,onOpenChange:X.onOpenChange,children:[p(yk,{asChild:!0,disabled:a,children:p(_k,{asChild:!0,children:Zt})}),!a&&!M&&!A?p(uh,{side:"right",align:"start",collisionPadding:8,className:"z-[100] w-72 p-3",children:p(Lu,{info:m,controller:n,showPullRequest:un})}):null]}),p(Tk,{items:Et,sections:n.sections,currentSectionId:f.sectionId,onAction:Nt,onCloseAutoFocus:Ot,input:ie})]})});function QS({row:e,multiHost:t,defaultBranch:n}){let r=e.info.thread,o=r.environment,i=[],s=o?.branchName??null;return s!==null&&s!==n&&i.push(S("span",{className:"inline-flex min-w-0 items-center gap-0.5",children:[p(B,{name:o?.isWorktree?N.worktree:N.branch,"aria-hidden":!0,className:"size-3 shrink-0"}),p("span",{className:"truncate",children:s}),o?.isWorktree?p("span",{className:"sr-only",children:" (worktree)"}):null]},"branch")),t&&r.host!==null&&i.push(S("span",{className:"inline-flex shrink-0 items-center gap-0.5",children:[p(B,{name:N.machine,"aria-hidden":!0,className:"size-3"}),r.host.name]},"host")),i.length===0?null:p("span",{className:"flex min-w-0 items-center gap-2 text-xs leading-4 text-muted-foreground",children:i})}var Nk=ft(function({row:t,controller:n}){let{label:r,ariaLabel:o}=pk(t),i=t.scope!=="group";return S("button",{type:"button","aria-expanded":t.expanded,"aria-label":o,onClick:()=>n.onToggleOlder(t),className:I("relative flex w-full items-center rounded-md pr-2 text-left text-xs text-muted-foreground outline-none hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring",i?"h-7 gap-1.5 max-md:pointer-coarse:h-9":"h-6 gap-1"),style:{paddingLeft:go(t.depth)+(i?0:2)},children:[i?p("span",{"aria-hidden":!0,className:"inline-flex size-4 shrink-0 items-center justify-center",children:p(B,{name:N.more,className:"size-3.5"})}):p(B,{name:N.expand,"aria-hidden":!0,className:I("size-3 transition-transform",t.expanded&&"-rotate-90")}),r]})}),Ok=ft(function({row:t,controller:n}){let r=t.count===1?"child thread":"child threads";return S("button",{type:"button","aria-expanded":!1,"aria-label":`Show ${t.count} more ${r}`,title:`Show ${t.count} more ${r}`,onClick:()=>n.onOpenChildren(t.scopeId),className:"relative flex h-6 w-full items-center gap-1.5 rounded-md pr-2 text-left text-xs text-muted-foreground outline-none hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring",style:{paddingLeft:go(t.depth)},children:[p("span",{"aria-hidden":!0,className:"size-4 shrink-0"}),"+",t.count," more"]})}),zk=ft(function({row:t,controller:n,environmentProviders:r}){let[o,i]=E(!1),s=t.environmentProviderId===null?null:r.find(a=>a.id===t.environmentProviderId)??null;return S("div",{className:"group/row relative flex h-7 w-full items-center gap-1.5 rounded-md pr-1 text-sm text-muted-foreground hover:bg-sidebar-accent",style:{paddingLeft:go(t.depth)},children:[p("button",{type:"button","aria-expanded":!t.collapsed,"aria-label":`${t.collapsed?"Expand":"Collapse"} ${t.label} environment, ${t.threadIds.length} threads`,onClick:()=>n.onToggleEnvironment(t.environmentId),className:"absolute inset-0 rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring"}),p("span",{className:"pointer-events-none relative inline-flex size-4 shrink-0 items-center justify-center",children:s!==null?p(is,{providerKind:"environment",provider:s,className:"size-3.5"}):p(B,{name:t.environmentProviderId===null?N.machine:N.environmentFallback,"aria-hidden":!0,className:"size-3.5"})}),o?p(Co,{initial:t.label,label:"Environment name",onSave:a=>n.onRenameEnvironment(t.environmentId,a),onDone:()=>i(!1)}):p("span",{className:"pointer-events-none relative min-w-0 flex-1 truncate",children:t.label}),t.flag!==null?p(Ki,{flag:t.flag,className:"pointer-events-none relative size-3.5"}):null,p("span",{className:"pointer-events-none relative text-[11px] tabular-nums",children:t.threadIds.length}),p(B,{name:N.expand,"aria-hidden":!0,className:I("pointer-events-none relative size-3 transition-transform",!t.collapsed&&"rotate-90")}),S(ho,{children:[p(dr,{asChild:!0,children:p("button",{type:"button","aria-label":"Environment actions",className:I(an,!n.compact&&"opacity-0 group-hover/row:opacity-100 focus-visible:opacity-100 data-[state=open]:opacity-100"),children:p(B,{name:N.more,"aria-hidden":!0,className:"size-4"})})}),S(pr,{align:"end",children:[S(Oe,{onSelect:()=>n.onNewThreadInEnvironment(t.environmentId,t.projectId,t.sectionId),children:[p(B,{name:N.newThread,"aria-hidden":!0,className:"size-4"}),"New thread in environment"]}),S(Oe,{onSelect:()=>i(!0),children:[p(B,{name:N.rename,"aria-hidden":!0,className:"size-4"}),"Rename"]}),S(Oe,{onSelect:()=>n.onArchiveEnvironment(t.environmentId),children:[p(B,{name:N.archive,"aria-hidden":!0,className:"size-4"}),"Archive"]})]})]})]})});var Pu=28,Zk={compact:28,comfortable:44};function jk(e){return e.descriptor.kind==="section"||e.descriptor.kind==="machine"}var eL=ft(function({group:t,controller:n,inOverflow:r,dropActive:o}){let[i,s]=E(!1),[a,c]=E(!1),u=t.descriptor.label,l=xs({id:`group:${t.descriptor.id}`,data:{kind:"group",groupId:t.descriptor.id},disabled:n.compact||r||i}),d=n.compact,m=d?"":a?"opacity-0":"group-hover/header:opacity-0 group-focus-within/header:opacity-0",f=d?"":I("absolute top-1/2 right-0 -translate-y-1/2 pl-1",o?"bg-sidebar-accent":"bg-sidebar",a?"opacity-100":"pointer-events-none opacity-0 group-hover/header:pointer-events-auto group-hover/header:opacity-100 group-focus-within/header:pointer-events-auto group-focus-within/header:opacity-100");return S("div",{ref:l.setNodeRef,...l.attributes,...l.listeners,role:void 0,tabIndex:void 0,"data-sidebar":"group-label",style:{top:r?0:Pu},className:I("group/header sticky z-20 flex h-7 items-center gap-1 rounded-md bg-sidebar pl-2 pr-1 text-xs text-muted-foreground max-md:pointer-coarse:h-9",o&&"bg-sidebar-accent",l.isDragging&&"opacity-50",!n.compact&&!r&&"select-none"),children:[i?p(Co,{initial:u,label:t.descriptor.kind==="section"?"Section name":"Machine name",onSave:h=>n.onRename(t,h),onDone:()=>s(!1),className:"text-xs"}):S("button",{type:"button","aria-expanded":!t.collapsed,"aria-label":`${t.collapsed?"Expand":"Collapse"} ${u} section`,onClick:()=>n.onToggleCollapse(t),onPointerDown:h=>h.stopPropagation(),onDoubleClick:()=>jk(t)&&s(!0),className:"flex min-w-0 flex-1 items-center gap-1 rounded-md py-1 text-left font-medium outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",children:[p("span",{className:"min-w-0 truncate",title:u,children:u}),p(B,{name:N.expand,"aria-hidden":!0,className:I("size-3 shrink-0 transition-transform duration-150",!t.collapsed&&"rotate-90")})]}),i?null:S("span",{className:"relative ml-auto flex shrink-0 items-center",children:[p(Cu,{counters:p8(t.counters,{collapsed:t.collapsed,more:!1}),className:I("transition-opacity",m)}),S("span",{className:I("flex items-center transition-opacity",f),children:[t.descriptor.kind!=="pinned"&&(t.descriptor.newThreadProjectId!==null||t.descriptor.kind==="machine")&&(!n.compact||n.activeGroupId===t.descriptor.id)?p("button",{type:"button","aria-label":`New thread in ${u}`,title:`New thread in ${u}`,"data-sidebar-hover-actions-mobile":n.compact?"always":void 0,className:an,onPointerDown:h=>h.stopPropagation(),onClick:()=>n.onNewThread(t),children:p(B,{name:N.newThread,"aria-hidden":!0,className:"size-4"})}):null,S(ho,{open:a,onOpenChange:c,children:[p(dr,{asChild:!0,children:p("button",{type:"button","aria-label":`${u} actions`,className:an,onPointerDown:h=>h.stopPropagation(),children:p(B,{name:N.more,"aria-hidden":!0,className:"size-4"})})}),S(pr,{align:"end",className:"min-w-48",children:[S(Oe,{onSelect:()=>n.onMarkAllRead(t),children:[p(B,{name:N.markRead,"aria-hidden":!0,className:"size-4"}),"Mark all read"]}),t.descriptor.kind!=="pinned"&&t.descriptor.newThreadProjectId!==null?S(Oe,{onSelect:()=>n.onNewThread(t),children:[p(B,{name:N.newThread,"aria-hidden":!0,className:"size-4"}),"New thread"]}):null,n.canCreateSections?S(Oe,{onSelect:()=>n.onNewSection(),children:[p(B,{name:N.newSection,"aria-hidden":!0,className:"size-4"}),"New section"]}):null,jk(t)?S(Oe,{onSelect:()=>s(!0),children:[p(B,{name:N.rename,"aria-hidden":!0,className:"size-4"}),"Rename"]}):null,p(Ji,{}),t.descriptor.kind!=="pinned"?t.hidden?S(Oe,{onSelect:()=>n.onShow(t),children:[p(B,{name:N.show,"aria-hidden":!0,className:"size-4"}),"Show in list"]}):S(Oe,{onSelect:()=>n.onHide(t),children:[p(B,{name:N.hidden,"aria-hidden":!0,className:"size-4"}),"Hide from list"]}):null,S(Oe,{onSelect:()=>n.onToggleArchived(),children:[p(B,{name:n.showArchived?N.check:N.archive,"aria-hidden":!0,className:"size-4"}),"Show archived threads"]}),S(Oe,{onSelect:()=>n.onCustomize(),children:[p(B,{name:N.customize,"aria-hidden":!0,className:"size-4"}),"Customize list"]}),t.descriptor.kind==="section"?S(Oe,{className:"text-destructive focus:text-destructive",onSelect:()=>n.onRemove(t),children:[p(B,{name:N.remove,"aria-hidden":!0,className:"size-4"}),"Remove section"]}):null]})]})]})]})]})});function tL(e){return e.key}function nL({rows:e,forceMount:t,rowHeight:n,children:r}){let o=$(null),[i,s]=E(!0),a=$(null);z(()=>{let l=o.current;if(l===null||typeof IntersectionObserver>"u")return;let d=new IntersectionObserver(m=>{for(let f of m)f.isIntersecting===!1&&l.firstElementChild!==null&&i&&(a.current=l.getBoundingClientRect().height),s(f.isIntersecting)},{rootMargin:"240px 0px"});return d.observe(l),()=>d.disconnect()},[i]);let c=i||t,u=e.filter(l=>l.type==="thread").map(l=>({threadId:l.info.thread.id,projectId:l.projectId}));return p("div",{ref:o,"data-sidebar-windowed-item":"","data-sidebar-windowed-nav":c||u.length===0?void 0:uk(u),style:c?void 0:{height:a.current??e.length*n},children:c?r:null})}function Wk({rows:e,groupId:t,inPinned:n,forceMount:r,rowController:o,environmentProviders:i,dropStates:s,activeThreadId:a,editingId:c,now:u,stamps:l}){let d=o.comfortable?Zk.comfortable:Zk.compact;return p("div",{"data-sidebar":"group-content",className:"flex w-full flex-col text-sm",children:lk(e).map(m=>p(nL,{rows:m,rowHeight:d,forceMount:r||m.some(f=>f.type==="thread"&&(f.info.thread.id===a||f.info.thread.id===c)),children:m.map(f=>f.type==="thread"?p(Ek,{row:f,controller:o,groupId:t,inPinned:n,dropState:s.get(f.info.thread.id)??null,active:f.info.thread.id===a,editing:f.info.thread.id===c,now:u,startedAt:l.startedAt[f.info.thread.id],finishedAt:l.finishedAt[f.info.thread.id],pendingAt:l.pendingAt[f.info.thread.id]},f.key):f.type==="older"?p(Nk,{row:f,controller:o},f.key):f.type==="left-out"?p(Ok,{row:f,controller:o},f.key):p(zk,{row:f,controller:o,environmentProviders:i},f.key))},tL(m[0])))})}var dh=ft(function({group:t,groupController:n,dropTargetGroupId:r,inOverflow:o=!1,...i}){let s=Is({id:`drop-group:${t.descriptor.id}`,data:{kind:"group",groupId:t.descriptor.id}});return S("section",{ref:s.setNodeRef,"aria-label":t.descriptor.label,"data-sidebar-visibility-group":t.descriptor.id,"data-sidebar-section-id":t.descriptor.kind==="section"?t.descriptor.entityId??void 0:void 0,className:"relative flex w-full min-w-0 flex-col",children:[p(eL,{group:t,controller:n,inOverflow:o,dropActive:r===t.descriptor.id}),t.collapsed?null:t.rows.length===0?t.rootIds.length===0?p("p",{className:"py-1 pl-8 text-xs text-muted-foreground",children:"No threads"}):null:p(Wk,{...i,rows:t.rows,groupId:t.descriptor.id,inPinned:t.descriptor.id==="pinned",forceMount:o})]})}),rL="[--tg-surface:color-mix(in_oklab,var(--attention)_8%,var(--sidebar))] [--tg-quiet:70%] bg-[var(--tg-surface)]",oL="bg-[color-mix(in_oklab,var(--attention)_20%,transparent)] text-[color:color-mix(in_oklab,var(--attention),var(--foreground)_55%)]",Fk=ft(function({view:t,...n}){return S("section",{"aria-label":"Needs attention",className:I("relative mb-1 flex w-full min-w-0 flex-col rounded-md pb-0.5",rL),children:[S("h2",{style:{top:Pu},className:"sticky z-20 flex h-7 items-center gap-1 rounded-t-md bg-[var(--tg-surface)] pl-2 pr-1 text-xs font-medium text-muted-foreground max-md:pointer-coarse:h-9",children:[p("span",{className:"min-w-0 flex-1 truncate",children:"Needs attention"}),p("span",{className:I("rounded-full px-1.5 text-[11px] leading-4 tabular-nums",oL),"aria-label":`${t.familyCount} ${t.familyCount===1?"family":"families"}`,children:t.familyCount})]}),p(Wk,{...n,rows:t.rows,groupId:m8,inPinned:!1,forceMount:!1})]})});function Vk(e){let t=e.includes("active"),n=e.includes("archived");return t&&n?"both":n?"archived":"active"}function Hk(e){return e==="both"?["active","archived"]:[e]}function Bk(e){return e==="everything"}function Uk(e){return e?"everything":"blocked"}function Gk(e){return{chronologicalSort:e,sortDirection:Xc(e)}}function Kk(e){let t=rn(e.chronologicalSort),r=J2(t,e.sortDirection)==="descending";return{glyph:r?"\u2193":"\u2191",label:t==="alpha"?r?"Z\u2013A":"A\u2013Z":r?"Newest first":"Oldest first",patch:{sortDirection:r?"ascending":"descending"}}}var iL="flex min-w-0 flex-1 gap-0.5 rounded-md bg-surface-recessed p-0.5",sL="flex min-w-0 flex-1 items-center justify-center whitespace-nowrap rounded-sm px-1 py-0.5 text-xs outline-none focus-visible:ring-2 focus-visible:ring-ring";function aL(e){return I(sL,e?"bg-state-active text-foreground":"text-muted-foreground hover:bg-state-hover hover:text-foreground")}function Qi({label:e,children:t}){return S("div",{className:"flex items-center gap-2 px-2 py-1",children:[p("span",{className:"w-[5.5rem] shrink-0 text-sm",children:e}),t]})}function es({label:e,options:t,current:n,onSelect:r}){return p("div",{role:"radiogroup","aria-label":e,className:iL,children:t.map(([o,i])=>p("button",{type:"button",role:"radio","aria-checked":o===n,onClick:()=>r(o),className:aL(o===n),children:i},o))})}function ts({label:e,checked:t,onChange:n,description:r}){return S("button",{type:"button",role:"checkbox","aria-checked":t,onClick:()=>n(!t),className:"flex w-full items-start gap-2 rounded-md px-2 py-1.5 text-left text-sm outline-none hover:bg-accent focus-visible:bg-accent",children:[p("span",{"aria-hidden":!0,className:I("mt-0.5 inline-flex size-4 shrink-0 items-center justify-center rounded-sm border border-input",t&&"border-primary bg-primary text-primary-foreground"),children:t?p(B,{name:N.check,"aria-hidden":!0,className:"size-3"}):null}),S("span",{className:"flex min-w-0 flex-col",children:[p("span",{children:e}),r?p("span",{className:"text-xs text-muted-foreground",children:r}):null]})]})}function ph({children:e}){return p("h3",{className:"px-2 pb-0.5 pt-3 text-xs font-medium text-muted-foreground first:pt-0",children:e})}function cL({prefs:e,client:t,onPrefs:n,onClient:r}){let o=Kk(e);return S("div",{className:"flex flex-col",children:[p(ph,{children:"List"}),p(Qi,{label:"Group by",children:p(es,{label:"Group by",options:[["project","Project"],["chronological","Custom"],["machine","Machine"]],current:e.organizationMode,onSelect:i=>n({organizationMode:i})})}),S(Qi,{label:"Sort by",children:[p(es,{label:"Sort by",options:[["updated","Updated"],["created","Created"],["alpha","A\u2013Z"]],current:rn(e.chronologicalSort),onSelect:i=>n(Gk(i))}),p("button",{type:"button","aria-label":`Sort order: ${o.label}. Reverse`,title:o.label,onClick:()=>n(o.patch),className:"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-surface-recessed text-xs outline-none hover:bg-state-hover focus-visible:ring-2 focus-visible:ring-ring",children:o.glyph})]}),p(ts,{label:"Working threads first",checked:e.workingFirst,onChange:i=>n({workingFirst:i})}),p(ts,{label:"Worktrees as folders",description:"Threads sharing a worktree fold into one row",checked:e.environmentGrouping,onChange:i=>n({environmentGrouping:i})}),p(ts,{label:"Collapse older threads",checked:e.foldOlder,onChange:i=>n({foldOlder:i})}),p(ph,{children:"Rows"}),p(Qi,{label:"Density",children:p(es,{label:"Density",options:[["compact","Compact"],["comfortable","Comfortable"]],current:t.density,onSelect:i=>r({density:i})})}),p(Qi,{label:"Harness icon",children:p(es,{label:"Harness icon",options:[["muted","Muted"],["colour","Colour"],["hidden","Hidden"]],current:e.harnessIcon,onSelect:i=>n({harnessIcon:i})})}),p(ts,{label:"Pull request badge",checked:e.showPullRequests,onChange:i=>n({showPullRequests:i})}),p(ph,{children:"Show"}),p(Qi,{label:"Threads",children:p(es,{label:"Threads",options:[["active","Active"],["archived","Archived"],["both","Both"]],current:Vk(e.threadLifecycles),onSelect:i=>n({threadLifecycles:Hk(i)})})}),p(ts,{label:"Needs attention counts every child",description:"Every unread or failed child thread; otherwise only those blocked on you.",checked:Bk(e.childAttention),onChange:i=>n({childAttention:Uk(i)})})]})}function qk({prefs:e,client:t,onPrefs:n,onClient:r}){return p("div",{style:{height:Pu},className:"sticky top-0 z-30 flex items-center justify-end bg-sidebar",children:S(js,{children:[p(Zo,{asChild:!0,children:p("button",{type:"button","aria-label":"Thread Glance settings",title:"List settings",className:an,children:p(B,{name:N.settings,"aria-hidden":!0,className:"size-4"})})}),p(jo,{align:"end",className:"w-80 p-2",children:p(cL,{prefs:e,client:t,onPrefs:n,onClient:r})})]})})}var uL="thread-glance";function fr(e){return e instanceof Error?e.message:String(e)}async function Jk(e,t){try{await navigator.clipboard.writeText(e),st.success(t)}catch(n){st.error("Couldn't copy",{description:fr(n)})}}var lL={activationConstraint:{distance:4}},dL={activationConstraint:{delay:200,tolerance:6}},pL=e=>{let t=e.active.data.current?.kind,n=Bh(e);if(t==="group")return n.filter(o=>String(o.id).startsWith("drop-group:"));let r=n.filter(o=>String(o.id).startsWith("drop-thread:"));return r.length>0?r:n};function Yk(e){let t=e.activatorEvent,n=null;return t instanceof MouseEvent?n=t.clientY:typeof TouchEvent<"u"&&t instanceof TouchEvent&&(n=t.touches[0]?.clientY??null),n===null?null:n+e.delta.y}function fh(e){let[t,n]=E(0);return p(fL,{...e,attempt:t,onRetry:()=>n(r=>r+1)},t)}function fL({activeThreadId:e,isCompactViewport:t,onNavigate:n,attempt:r,onRetry:o}){let{prefs:i,hydrated:s,update:a}=M4(),[c,u]=_4(),l=kh({experimental_lifecycles:i.threadLifecycles}),d=gh(),m=bh(),{providers:f}=hh(),{providers:h}=yh(),g=xh(),{stamps:k,markSeen:v,clearSeen:y}=$4(),w=R4(),T=NC(),M=q(()=>{let b=Object.values(w).filter(_=>_>Date.now());return b.length>0?Math.min(...b):null},[w]),x=L4(M),[A,V]=E(null),[X,ie]=E(null),[re,W]=E(null),[ae,ne]=E(""),ze=$(new Map),[xt,Ge]=E(!1),[Nn,gt]=E(!1),[Ve,Et]=E(null),[Te,Ze]=E(()=>new Map),[Nt,Ot]=E(null),[$e,cn]=E(()=>new Map),un=$(new Set),On=$(new Map),He=l.status==="ready",Be=l.threads,Ae=q(()=>new Map(Be.map(b=>[b.id,b])),[Be]),Ce=q(()=>He?q4({threads:Be,activeThreadId:e,finishedAt:k.finishedAt,seenAt:k.seenAt,draftIds:g,scheduled:w,now:x,notes:T,childAttention:i.childAttention}):null,[He,Be,e,k.finishedAt,k.seenAt,g,w,x,T,i.childAttention]),{targets:me,prune:Ut}=$5(s?Ce:null,e),rt=S4(Ce,e),ln=$(null),ee=q(()=>Ce===null?null:w8(ln.current,k8({forest:Ce,threads:Be,projects:l.projects,sections:l.sections,prefs:i,activeThreadId:e,heldRootId:rt,targets:me})),[Ce,Be,l.projects,l.sections,i,e,rt,me]);ot(()=>{ln.current=ee},[ee]);let zt=$(null);z(()=>{let b=[zt.current,e].filter(_=>_!==null&&Ae.get(_)?.parentThreadId!=null);zt.current=e,KC(),b.length>0&&v([...new Set(b)])},[e]),z(()=>{if(!(!i.showPullRequests||Ce===null))for(let b of Ce.families){let _=b.root.thread,P=_.projectId;_.environment?.branchName==null||_.host===null||un.current.has(P)||(un.current.add(P),m.projects.branches({projectId:P,hostId:_.host.id,limit:"1"}).then(G=>cn(te=>new Map(te).set(P,G.defaultBranch)),()=>cn(G=>new Map(G).set(P,null))))}},[i.showPullRequests,Ce,m]);let Ke=q(()=>r8(f),[f]),Zt=q(()=>{let b=new Map,_=new Map(f.map(P=>[P.id,P]));return P=>{let G=b.get(P);if(G===void 0){let te=_.get(P);G={id:P,name:te?.displayName??P,provider:te?.logoUrl?te:null,mark:o8(P,Ke)},b.set(P,G)}return G}},[f,Ke]),j=Z(b=>{Object.keys(b.patch).length>0&&a(b.patch),b.drop!==null&&Ut(b.drop)},[a,Ut]),Se=Z((b,_,P)=>{let G={activeThreadId:e,finishedAt:k.finishedAt,seenAt:k.seenAt},te=oe=>ge=>st.error(oe,{description:fr(ge)});switch(b){case"open-in-split":d.open(_.id,{split:!0}),n();return;case"copy-link":Jk(new URL(_.href,window.location.origin).toString(),"Thread link copied");return;case"copy-id":Jk(_.id,"Thread ID copied");return;case"mark-read":ji(_,G)&&v([_.id]),d.setRead(_.id,!0).catch(te("Couldn't mark read"));return;case"mark-unread":y([_.id]),d.setRead(_.id,!1).catch(te("Couldn't mark unread"));return;case"pin":case"unpin":d.setPinned(_.id,b==="pin").catch(te("Couldn't change the pin"));return;case"move-to-section":m.threads.update({threadId:_.id,sectionId:P??null}).catch(te("Couldn't move the thread"));return;case"rename":V(_.id);return;case"details":ie(_.id);return;case"move":ne(""),W(_.id);return;case"archive":d.archive(_.id);return;case"unarchive":m.threads.unarchive({threadId:_.id}).catch(te("Couldn't unarchive"));return;case"delete":setTimeout(()=>d.requestDelete(_.id),0);return}},[d,e,y,v,n,m,k.finishedAt,k.seenAt]),ko=$(Se);ot(()=>{ko.current=Se});let pt=$({forest:Ce,view:ee,prefs:i,byId:Ae,activeThreadId:e,stamps:k});ot(()=>{pt.current={forest:Ce,view:ee,prefs:i,byId:Ae,activeThreadId:e,stamps:k}});let ns=Z((b,_)=>{let P=`${b}:${_}`,G=On.current.get(P);if(G===void 0){let te=pt.current.byId.get(b),oe=te?.providerId??"",ge=ze.current.get(oe);ge===void 0&&(ge=m.providers.models(te?.host?{providerId:oe,hostId:te.host.id}:{providerId:oe}).then(Le=>Le.models,()=>[]),ze.current.set(oe,ge));let je=ge;G=m.threads.defaultExecutionOptions({threadId:b}).then(async Le=>Le===null?null:{model:WC(Le.model,await je),reasoningLevel:Le.reasoningLevel},()=>null),On.current.set(P,G)}return G},[m]),Gt=ee?.multiHost??!1,It=Ce!==null&&ee!==null,_t=q(()=>It?{compact:t,comfortable:c.density==="comfortable",setEditingId:V,showPullRequests:i.showPullRequests,harnessIcon:i.harnessIcon,defaultBranchOf:b=>$e.has(b.projectId)?$e.get(b.projectId)??null:void 0,multiHost:Gt,provider:Zt,sections:l.sections,mode:i.organizationMode,onNavigate:n,onToggleChip:b=>{let{prefs:_,forest:P}=pt.current;j(s8(b,_,P))},onToggleOlder:b=>{let{prefs:_,forest:P,view:G}=pt.current,te=G.groups.find(oe=>oe.descriptor.id===b.scopeId)??null;j(a8(b,_,te,P))},onOpenChildren:b=>j(ru(b,pt.current.prefs)),onToggleEnvironment:b=>{let{collapsedEnvironments:_}=pt.current.prefs;a({collapsedEnvironments:_.includes(b)?_.filter(P=>P!==b):[..._,b]})},onMenuAction:(b,_,P)=>ko.current(b,_,P),onRename:(b,_)=>d.rename(b,_),loadModel:ns,openDetails:ie,onNewThreadInEnvironment:(b,_,P)=>{d.openNewThread({projectId:_,environmentId:b,...P?{sectionId:P}:{},focusPrompt:!0}),n()},onRenameEnvironment:async(b,_)=>{await m.environments.update({environmentId:b,name:_})},onArchiveEnvironment:b=>{m.environments.archiveThreads({environmentId:b}).catch(_=>st.error("Couldn't archive the environment",{description:fr(_)}))}}:null,[It,t,c.density,i.showPullRequests,i.harnessIcon,i.organizationMode,$e,Gt,Zt,l.sections,n,j,a,d,m,ns]),rs=q(()=>({now:x,stamps:k,notes:T,familyOf:b=>Ce?.familyOf.get(b)}),[x,k,T,Ce]),St=q(()=>{let b=e===null||Ce===null?void 0:Ce.familyOf.get(e);return b===void 0?null:eu(b.root.thread,{mode:i.organizationMode,projects:l.projects})},[e,Ce,i.organizationMode,l.projects]),yo=i.threadLifecycles.includes("archived"),bo=q(()=>{if(!It)return null;let b=_=>{let{forest:P,activeThreadId:G,stamps:te}=pt.current,oe=_.rootIds.flatMap(Le=>P.familyOf.get(Le)??[]),ge=u8(oe,{activeThreadId:G,finishedAt:te.finishedAt,seenAt:te.seenAt}),je=()=>{ge.seen.length>0&&v(ge.seen);for(let Le of ge.read)d.setRead(Le,!0).catch(()=>{})};ge.read.length===0?st(`Nothing unread in ${_.descriptor.label}`):ge.read.length>e8?Et({title:`Mark ${ge.read.length} threads read?`,description:`Every unread thread in ${_.descriptor.label}, child threads included, will be marked read.`,confirmLabel:"Mark all read",run:je}):je()};return{compact:t,activeGroupId:St,showArchived:yo,onToggleArchived:()=>a({threadLifecycles:pt.current.prefs.threadLifecycles.includes("archived")?["active"]:["active","archived"]}),canCreateSections:i.organizationMode==="chronological",onToggleCollapse:_=>{let{prefs:P,forest:G}=pt.current;j(c8(_,P,G))},onNewThread:_=>{let P=_.descriptor;d.openNewThread({...P.newThreadProjectId?{projectId:P.newThreadProjectId}:{},...P.newThreadSectionId?{sectionId:P.newThreadSectionId}:{},focusPrompt:!0}),n()},onHide:_=>a({hiddenGroups:[...pt.current.prefs.hiddenGroups,_.descriptor.id]}),onShow:_=>a({hiddenGroups:pt.current.prefs.hiddenGroups.filter(P=>P!==_.descriptor.id)}),onCustomize:()=>Ge(!0),onRename:async(_,P)=>{_.descriptor.kind==="section"?await m.threadSections.update({id:_.descriptor.entityId,name:P}):_.descriptor.kind==="machine"&&await m.hosts.update({hostId:_.descriptor.entityId,name:P})},onRemove:_=>Et({title:"Remove section?",description:"Threads in this section will move back to Threads.",confirmLabel:"Remove",destructive:!0,run:()=>{m.threadSections.delete({id:_.descriptor.entityId}).catch(P=>st.error("Couldn't remove the section",{description:fr(P)}))}}),onMarkAllRead:b,onNewSection:()=>gt(!0)}},[It,t,St,yo,i.organizationMode,j,d,n,a,m,v]),Mu=Hh(bs(Do,lL),bs(Eo,dL),bs(br)),dn=Z(b=>{let _=b.over;if(_===null)return null;let P=_.data.current;if(P===void 0)return null;if(P.kind==="group")return{kind:"group",groupId:P.groupId};let G=Yk(b),te=_.rect,oe=G===null?.5:(G-te.top)/Math.max(te.height,1),ge=oe<.25?"before":oe>.75?"after":"middle";return{kind:"thread",threadId:P.threadId,zone:ge,inPinned:P.inPinned??!1}},[]),zn=q(()=>{let b=new Map(Object.entries(ee?.attention?.homeGroupIds??{}));for(let P of[...ee?.groups??[],...ee?.more??[]])for(let G of P.rows)G.type==="thread"&&b.set(G.info.thread.id,P.descriptor.id);let _=ee?.groups.find(P=>P.descriptor.id==="pinned");return{mode:i.organizationMode,parentOf:P=>Ae.get(P)?.parentThreadId??null,pinnedOrder:(_?.rows??[]).flatMap(P=>P.type==="thread"&&P.depth===0?[P.info.thread.id]:[]),groupOfThread:P=>b.get(P)??"threads"}},[ee,i.organizationMode,Ae]),Ru=Z(b=>{let _=b.active.data.current,P=dn(b);if(_?.kind!=="thread"||P===null){Ze(new Map),Ot(_?.kind==="group"&&P?.kind==="group"?P.groupId:null);return}if(P.kind==="group"){Ze(new Map),Ot(P.groupId);return}Ot(null);let G=B2(_.thread,P,zn),te=G.type==="blocked"?"blocked":G.type==="unchanged"?"unchanged":P.zone==="middle"?"valid":P.zone;Ze(new Map([[P.threadId,te]]))},[dn,zn]),vo=Z(async b=>{switch(b.type){case"nest":b.unpinFirst&&await m.threads.unpin({threadId:b.threadId}),await m.threads.update({threadId:b.threadId,parentThreadId:b.parentThreadId});return;case"move":await m.threads.update({threadId:b.threadId,sectionId:b.sectionId,...b.detach?{parentThreadId:null}:{}});return;case"detach":await m.threads.update({threadId:b.threadId,parentThreadId:null});return;case"pin":await d.setPinned(b.threadId,!0);return;case"unpin":await d.setPinned(b.threadId,!1);return;case"reorder-pinned":await m.threads.reorderPinned({threadId:b.threadId,previousThreadId:b.previousThreadId,nextThreadId:b.nextThreadId});return;case"blocked":case"unchanged":return}},[m,d]),Tu=Z(b=>{Ze(new Map),Ot(null);let _=b.active.data.current,P=dn(b);if(_===void 0||P===null||ee===null)return;if(_.kind==="group"){if(P.kind!=="group"||P.groupId===_.groupId)return;let te=b.over.rect,oe=Yk(b),ge=oe!==null&&oe>te.top+te.height/2?"after":"before",je=Wi[i.organizationMode];a({[je]:em(ee.order,_.groupId,P.groupId,ge)});return}let G=B2(_.thread,P,zn);vo(G).catch(te=>st.error("Failed to move thread.",{description:fr(te)}))},[dn,ee,i.organizationMode,a,zn,vo]),$u=Z(()=>Ze(new Map),[]),Au=q(()=>{if(ee===null)return[];let b=new Map([...ee.groups,...ee.more].map(_=>[_.descriptor.id,_]));return ee.order.flatMap(_=>{let P=b.get(_);return P===void 0?[]:[{id:_,label:P.descriptor.label,hidden:P.hidden,hideable:_!=="pinned"}]})},[ee]);if(l.status==="error")return S("div",{role:"alert",className:"flex flex-col items-start gap-2 px-3 py-2 text-sm",children:[p("p",{className:"text-muted-foreground",children:"Threads couldn't load."}),r===0?p(Ye,{size:"sm",variant:"outline",onClick:o,children:"Retry"}):p(Ye,{size:"sm",variant:"outline",onClick:()=>{m.plugins.reload({pluginId:uL}).catch(()=>window.location.reload())},children:"Reload plugin"})]});if(l.status==="loading"||!s||ee===null||_t===null||bo===null)return p("div",{role:"status","aria-label":"Loading threads",className:"flex flex-col gap-1 px-2 py-1",children:[0,1,2].map(b=>p("div",{"data-sidebar":"navigation-loading-row",className:"h-7 animate-pulse rounded-md bg-muted/60"},b))});let he=l.experimental_archived,be=X===null?null:Ce?.infos.get(X)??null,ve=re===null?null:Ae.get(re)??null;return p(su.Provider,{value:rs,children:S("div",{className:"flex w-full min-w-0 flex-col px-1.5 pb-2",children:[p(qk,{prefs:i,client:c,onPrefs:a,onClient:u}),Be.length===0?p("p",{className:"px-3 py-4 text-sm text-muted-foreground",children:"No threads yet."}):S(r5,{sensors:Mu,collisionDetection:pL,onDragMove:Ru,onDragEnd:Tu,onDragCancel:$u,children:[ee.attention!==null?p(Fk,{view:ee.attention,rowController:_t,environmentProviders:h,dropStates:Te,activeThreadId:e,editingId:A,now:x,stamps:k}):null,ee.groups.map(b=>p(dh,{group:b,rowController:_t,groupController:bo,environmentProviders:h,dropStates:Te,dropTargetGroupId:Nt,activeThreadId:e,editingId:A,now:x,stamps:k},b.descriptor.id)),ee.more.length>0?S(js,{children:[p(Zo,{asChild:!0,children:S("button",{type:"button","data-testid":"sidebar-thread-list-more-trigger","aria-label":`More: ${ee.more.length} hidden ${ee.more.length===1?"group":"groups"}`,className:"mt-1 flex h-7 w-full items-center gap-1 rounded-md pl-2 pr-1 text-left text-xs text-muted-foreground outline-none hover:bg-sidebar-accent focus-visible:ring-2 focus-visible:ring-sidebar-ring",children:[p("span",{className:"flex-1 font-medium",children:"More"}),p(Cu,{counters:ee.moreCounters}),p(B,{name:"ChevronRight","aria-hidden":!0,className:"size-3"})]})}),p(jo,{side:"right",align:"end",className:"max-h-[70vh] w-72 overflow-y-auto p-1",children:p("div",{"data-sidebar-overflow":"true",className:"flex flex-col",children:ee.more.map(b=>p(dh,{group:b,rowController:_t,groupController:bo,environmentProviders:h,dropStates:Te,dropTargetGroupId:Nt,activeThreadId:e,editingId:A,now:x,stamps:k,inOverflow:!0},b.descriptor.id))})})]}):null]}),he!==null?S("div",{className:"flex flex-col items-start gap-1 px-2 pt-2",children:[he.status==="loading"?p("p",{role:"status",className:"text-xs text-muted-foreground",children:"Loading archived threads\u2026"}):he.status==="error"?p("p",{role:"status",className:"text-xs text-muted-foreground",children:"Archived threads unavailable"}):null,he.hasNextPage||he.isFetchNextPageError?p(Ye,{size:"sm",variant:"ghost","aria-label":"Load more archived threads",disabled:he.isFetchingNextPage,className:I("h-7 text-xs text-muted-foreground"),onClick:()=>{he.fetchNextPage()},children:he.isFetchingNextPage?"Loading\u2026":he.isFetchNextPageError?"Retry loading":"Show more"}):null]}):null,p(TC,{open:xt,items:Au,onOpenChange:Ge,onToggleHidden:b=>a({hiddenGroups:i.hiddenGroups.includes(b)?i.hiddenGroups.filter(_=>_!==b):[...i.hiddenGroups,b]}),onMove:(b,_)=>{let P=ee.order.indexOf(b),G=ee.order[P+_];G!==void 0&&a({[Wi[i.organizationMode]]:em(ee.order,b,G,_<0?"before":"after")})}}),p($C,{open:Nn,onOpenChange:gt,onCreate:async b=>{try{await m.threadSections.create({name:b})}catch(_){throw st.error("Couldn't create the section",{description:fr(_)}),_}}}),p(AC,{open:Ve!==null,title:Ve?.title??"",description:Ve?.description??"",confirmLabel:Ve?.confirmLabel??"OK",destructive:Ve?.destructive,onOpenChange:b=>!b&&Et(null),onConfirm:()=>{Ve?.run(),Et(null)}}),be!=null?p(DC,{open:!0,title:be.thread.displayTitle,onOpenChange:b=>!b&&ie(null),children:p(Lu,{info:be,controller:_t,showPullRequest:i.showPullRequests,actions:{open:()=>{ie(null),d.open(be.thread.id),n()},toggleRead:()=>Se(be.unread?"mark-read":"mark-unread",be.thread)}})}):null,ve!==null&&Ce!==null?p(EC,{open:!0,title:ve.displayTitle,targets:OC(ve.id,Ce,ae),query:ae,onQueryChange:ne,onOpenChange:b=>!b&&W(null),onMove:b=>{(async()=>{b!==null&&(ve.pinnedAt!==null||ve.isPinned)&&await m.threads.unpin({threadId:ve.id}),await m.threads.update({threadId:ve.id,parentThreadId:b})})().catch(P=>st.error("Failed to move thread.",{description:fr(P)}))}}):null]})})}var vV=mh(e=>{e.slots.experimental_threadList({id:"thread-glance",title:"Thread Glance",description:"Every thread's state, harness and child threads at a glance.",component:fh})});export{vV as default};
66
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(t===s[0]){i(s);continue}if(e.external){let u=e.external.registry.get(s[0])?.id;if(t!==s[0]&&u){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(a.cycle){i(s);continue}a.count>1&&e.reused==="ref"&&i(s)}e.external&&(e.sharedDefsExtractedFor=e.external)}function A0(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let r of t){if(!r||typeof r!="object")return;A0(r);let o=Object.keys(r);if(o.length!==1||o[0]!=="type")return;let i=r.type;for(let s of Array.isArray(i)?i:[i]){if(typeof s!="string")return;n.includes(s)||n.push(s)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var D0=new Set(["type","properties","required","additionalProperties"]),T0=["oneOf","anyOf"];function $0(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function jp(e){let t=[];for(let i of e){if(typeof i!="object"||i.type!=="object")return null;for(let s in i)if(!D0.has(s))return null;t.push(i)}let n={},r=new Set;for(let i of t){for(let s in i.properties){if(Object.prototype.hasOwnProperty.call(n,s))continue;let a=[];for(let u of t){let l=u.properties?.[s]??$0(u);l!=null&&(a.some(d=>JSON.stringify(d)===JSON.stringify(l))||a.push(l))}let c=a.length===1?a[0]:jp(a)??{allOf:a};We(n,s,c)}for(let s of i.required??[])r.add(s)}let o={type:"object",properties:n};if(r.size&&(o.required=[...r]),t.every(i=>i.additionalProperties===!1))o.additionalProperties=!1;else{let i=[];for(let s of t){let a=$0(s);a&&!i.some(c=>JSON.stringify(c)===JSON.stringify(a))&&i.push(a)}i.length===1?o.additionalProperties=i[0]:i.length>1&&(o.additionalProperties={allOf:i})}return o}function SI(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let o of D0)if(o in e)return;let n=t.filter(o=>T0.some(i=>Array.isArray(o[i]))),r=null;if(!n.length)r=jp(t);else{let o=n[0],i=T0.find(c=>Array.isArray(o[c]));if(Object.keys(o).length!==1)return;let s=t.filter(c=>c!==o),a=o[i].map(c=>jp([...s,c]));if(a.some(c=>!c))return;r={[i]:a}}r&&(delete e.allOf,wi(e,r))}function Pn(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=a=>{let c=e.seen.get(a);if(c.ref===null)return;let u=c.def??c.schema,l={...u},d=c.ref;if(c.ref=null,d){r(d);let f=e.seen.get(d),h=f.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(h)):wi(u,h),wi(u,l),a._zod.parent===d)for(let k in u)k==="$ref"||k==="allOf"||k in l||delete u[k];if(h.$ref&&f.def)for(let k in u)k==="$ref"||k==="allOf"||k in f.def&&JSON.stringify(u[k])===JSON.stringify(f.def[k])&&delete u[k]}let m=a._zod.parent;if(m&&m!==d){r(m);let f=e.seen.get(m);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(let h in u)h==="$ref"||h==="allOf"||h in f.def&&JSON.stringify(u[h])===JSON.stringify(f.def[h])&&delete u[h]}e.override({zodSchema:a,jsonSchema:u,path:c.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let a of[...e.seen.entries()].reverse())r(a[0]);if(e.target!=="openapi-3.0")for(let a of e.seen.entries())A0(a[1].def??a[1].schema);for(let a of e.deferred)a();if(e.intersections.length){let a=new Map;for(let c of e.seen.values())for(let u of[c.schema,c.def]){let l=u?.allOf;if(!Array.isArray(l))continue;let d=a.get(l);d?d.push(u):a.set(l,[u])}for(let c of e.intersections)for(let u of a.get(c)??[])SI(u)}}let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a)}wi(o,n.defId?n.schema:n.def??n.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&o.id===i&&delete o.id;let s=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let a of e.seen.entries()){let c=a[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,We(s,c.defId,c.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{let a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Yr(t,"input",e.processors),output:Yr(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function tt(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return tt(r.element,n);if(r.type==="set")return tt(r.valueType,n);if(r.type==="lazy")return tt(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return tt(r.innerType,n);if(r.type==="intersection")return tt(r.left,n)||tt(r.right,n);if(r.type==="record"||r.type==="map")return tt(r.keyType,n)||tt(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:tt(r.in,n)||tt(r.out,n);if(r.type==="object"){for(let o in r.shape)if(tt(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(let o of r.options)if(tt(o,n))return!0;return!1}if(r.type==="tuple"){for(let o of r.items)if(tt(o,n))return!0;return!!(r.rest&&tt(r.rest,n))}return!1}var Wp=(e,t={})=>n=>{let r=Sn({...n,processors:t});return le(e,r),Ln(r,e),Pn(r,e)},Yr=(e,t,n={})=>r=>{let{libraryOptions:o,target:i}=r??{},s=Sn({...o??{},target:i,io:t,processors:n});return le(e,s),Ln(s,e),Pn(s,e)};var Xr=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},Qr=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},E0=(e,t)=>{Xr(e,"minimum",t),Qr(e,"maximum",t)},Z0=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},j0=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},W0=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},F0=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},N0=(e,t)=>Xr(e,"minimum",t.minimum),O0=(e,t)=>Qr(e,"maximum",t.maximum),z0=e=>(t,n)=>{F0(t,n.format);let[r,o]=e[n.format];Xr(t,"minimum",r),Qr(t,"maximum",o)},LI={greater_than:(e,t)=>Xr(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>Qr(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>Z0(e,t.value),number_format:z0(Bo),bigint_format:z0(Uo),min_length:N0,max_length:O0,length_equals:(e,t)=>E0(e,t.length),min_size:N0,max_size:O0,size_equals:(e,t)=>E0(e,t.size),string_format:(e,t)=>{F0(e,t.format),t.pattern&&j0(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>W0(e,t.mime)};function Re(e){let t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(let i of r)LI[i._zod.def.check]?.(t,i._zod.def);let o=e._zod.bag;o.minimum!==void 0&&Xr(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&Xr(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&Qr(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&Qr(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&Z0(t,o.multipleOf),o.format!==void 0&&(t.format??(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&W0(t,o.mime);for(let i of o.patterns??[])j0(t,i);return t}var PI={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},MI=new Map([[va,ql],[ci,Jl]]),V0=e=>MI.get(e)??e,Hp=(e,t,n,r)=>{let o=n;o.type="string";let{minimum:i,maximum:s,format:a,patterns:c,contentEncoding:u,laxFormat:l}=Re(e);if(typeof i=="number"&&(o.minLength=i),typeof s=="number"&&(o.maxLength=s),a&&(o.format=PI[a]??a,o.format===""&&delete o.format,(a==="time"||l)&&delete o.format),u&&(o.contentEncoding=u),c&&c.size>0){let d=[...c].map(V0);d.length===1?o.pattern=d[0].source:d.length>1&&(o.allOf=[...d.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},Bp=(e,t,n,r)=>{let o=n,{minimum:i,maximum:s,multipleOf:a,exclusiveMaximum:c,exclusiveMinimum:u,isInt:l}=Re(e);o.type=l?"integer":"number";let d=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),m=typeof c=="number"&&c<=(s??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";if(d?f?(o.minimum=u,o.exclusiveMinimum=!0):o.exclusiveMinimum=u:typeof i=="number"&&(o.minimum=i),m?f?(o.maximum=c,o.exclusiveMaximum=!0):o.exclusiveMaximum=c:typeof s=="number"&&(o.maximum=s),a){let h=new Set;for(let v of a)Number.isFinite(v)&&v!==0?h.add(Math.abs(v)):Me(e,t,o,r,`A multipleOf divisor of ${v} cannot be represented in JSON Schema`);let[g,...k]=h;g!==void 0&&(o.multipleOf=g),k.length&&(o.allOf=[...o.allOf??[],...k.map(v=>({multipleOf:v}))])}},Up=(e,t,n,r)=>{n.type="boolean"},Gp=(e,t,n,r)=>{Me(e,t,n,r,"BigInt cannot be represented in JSON Schema")},Kp=(e,t,n,r)=>{Me(e,t,n,r,"Symbols cannot be represented in JSON Schema")},qp=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Jp=(e,t,n,r)=>{Me(e,t,n,r,"Undefined cannot be represented in JSON Schema")},Yp=(e,t,n,r)=>{Me(e,t,n,r,"Void cannot be represented in JSON Schema")},Xp=(e,t,n,r)=>{n.not={}},Qp=(e,t,n,r)=>{},ef=(e,t,n,r)=>{},tf=(e,t,n,r)=>{Me(e,t,n,r,"Date cannot be represented in JSON Schema")},nf=(e,t,n,r)=>{let o=e._zod.def,i=_r(o.entries);if(i.length===0){n.not={};return}i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},rf=(e,t,n,r)=>{let o=e._zod.def;if(o.values.length===0){n.not={};return}let i=[];for(let s of o.values)if(s===void 0){if(Me(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(Me(e,t,n,r,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},of=(e,t,n,r)=>{Me(e,t,n,r,"NaN cannot be represented in JSON Schema")},sf=(e,t,n,r)=>{let o=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=i.source},af=(e,t,n,r)=>{let o=n;o.type="string",o.format="binary",o.contentEncoding="binary";let{minimum:i,maximum:s,mime:a}=Re(e);i!==void 0&&(o.minLength=i),s!==void 0&&(o.maxLength=s),a&&(a.length===0?o.not={}:a.length===1?o.contentMediaType=a[0]:o.anyOf=a.map(c=>({contentMediaType:c})))},cf=(e,t,n,r)=>{n.type="boolean"},uf=(e,t,n,r)=>{Me(e,t,n,r,"Custom types cannot be represented in JSON Schema")},lf=(e,t,n,r)=>{Me(e,t,n,r,"Function types cannot be represented in JSON Schema")},df=(e,t,n,r)=>{Me(e,t,n,r,"Transforms cannot be represented in JSON Schema")},pf=(e,t,n,r)=>{Me(e,t,n,r,"Map cannot be represented in JSON Schema")},ff=(e,t,n,r)=>{Me(e,t,n,r,"Set cannot be represented in JSON Schema")},mf=(e,t,n,r)=>{let o=n,i=e._zod.def,{minimum:s,maximum:a}=Re(e);typeof s=="number"&&(o.minItems=s),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=le(i.element,t,{...r,path:[...r.path,"items"]})};function xi(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?xi(t.out):t.type==="catch"?xi(t.innerType):e._zod.optin}var hf=(e,t,n,r)=>{let o=n,i=e._zod.def,s=i.shape;if(Object.getOwnPropertySymbols(s).length&&Me(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(let u in s)We(o.properties,u,le(s[u],t,{...r,path:[...r.path,"properties",u]}));let c=[];for(let u of Object.keys(s)){let l=i.shape[u];(t.io==="input"?xi(l)===void 0:l._zod.optout===void 0)&&c.push(u)}c.length>0&&(o.required=c),i.catchall?._zod.def.type==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=le(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},gc=(e,t,n,r)=>{let o=e._zod.def,i=o.inclusive===!1,s=o.options.map((a,c)=>le(a,t,{...r,path:[...r.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=s:n.anyOf=s},gf=(e,t,n,r)=>{let o=e._zod.def,i=le(o.left,t,{...r,path:[...r.path,"allOf",0]}),s=le(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=c,t.intersections.push(c)},Cf=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((g,k)=>le(g,t,{...r,path:[...r.path,s,k]})),u=i.rest?le(i.rest,t,{...r,path:[...r.path,a,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null,l=i.items.length;for(;l>0;){let g=i.items[l-1];if(!(t.io==="input"?xi(g)!==void 0:g._zod.optout==="optional"))break;l--}let d=i.items.length,m=!i.rest;t.target==="draft-2020-12"?(o.prefixItems=c,m?o.items=!1:u&&(o.items=u),l>0&&(o.minItems=l),m&&(o.maxItems=d)):t.target==="openapi-3.0"?(o.items={anyOf:c},u&&o.items.anyOf.push(u),l>0&&(o.minItems=l),m&&(o.maxItems=d)):(o.items=c,m?o.additionalItems=!1:u&&(o.additionalItems=u),l>0&&(o.minItems=l),m&&(o.maxItems=d));let{minimum:f,maximum:h}=Re(e);typeof f=="number"&&(o.minItems=f),typeof h=="number"&&(o.maxItems=h)};function Fp(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let h=e.get(t)?.def;if(!h)return t;let g=Fp(e,h,n);return g===h?t:g}for(let h of["anyOf","oneOf"]){let g=t[h];if(!Array.isArray(g))continue;let k=g.map(v=>Fp(e,v,n));k.some((v,y)=>v!==g[y])&&(t={...t,[h]:k})}let r=Array.isArray(t.type)?t.type:[t.type],o=!r.includes("string")&&r.some(h=>h==="number"||h==="integer"),i=t.enum??(t.const!==void 0?[t.const]:void 0);if(!o&&!i?.some(h=>typeof h=="number"))return t;let{minimum:s,maximum:a,exclusiveMinimum:c,exclusiveMaximum:u,multipleOf:l,format:d,id:m,...f}=t;return f.enum?f.enum=f.enum.map(h=>typeof h=="number"?String(h):h):typeof f.const=="number"&&(f.const=String(f.const)),o&&(f.type="string",i||(f.pattern=(r.includes("number")?Qt:ti).source)),f}var Vp=new WeakMap;function RI(e){let t=new Map;for(let r of e.seen.values())r.def&&!t.has(r.schema)&&t.set(r.schema,r);let n=new Map;for(let r of Vp.get(e)??[]){let o=e.seen.get(r),i=(o?.def??o?.schema)?.propertyNames;if(!i||i===!0||n.has(i))continue;let s=Fp(t,i,new Set);s!==i&&n.set(i,s)}if(n.size)for(let r of e.seen.values())for(let o of[r.schema,r.def]){let i=o&&n.get(o.propertyNames);i&&(o.propertyNames=i)}}var kf=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="object";let s=i.keyType,a=Re(s).patterns;if(i.mode==="loose"&&a&&a.size>0){let l=le(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(let d of a)We(o.patternProperties,V0(d).source,l)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){o.propertyNames=le(i.keyType,t,{...r,path:[...r.path,"propertyNames"]});let l=Vp.get(t);l||(l=[],Vp.set(t,l),t.deferred.push(()=>RI(t))),l.push(e)}o.additionalProperties=le(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]})}let c=s._zod.values,u=t.io==="input"&&xi(i.valueType)!==void 0;if(c&&!i.partial&&!u){let l=[...c].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(o.required=l.map(String))}},yf=(e,t,n,r)=>{let o=e._zod.def,i=le(o.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=o.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},bf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},vf=Symbol();function H0(e,t,n,r,o){let i=!1,s=JSON.stringify(e,(a,c)=>typeof c!="bigint"?c:(i=!0,null));return i?(Me(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),vf):JSON.parse(s)}var wf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s=H0(o.defaultValue,e,t,n,r);s!==vf&&(n.default=s)},xf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);if(i.ref=o.innerType,t.io!=="input")return;let s=H0(o.defaultValue,e,t,n,r);s!==vf&&(n._prefault=s)},If=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s;try{s=o.catchValue(void 0)}catch{Me(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},_f=(e,t,n,r)=>{let o=e._zod.def,i=o.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?i?o.out:o.in:o.out;le(s,t,r);let a=t.seen.get(e);a.ref=s},Sf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType,n.readOnly=!0},Lf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},Cc=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},Pf=(e,t,n,r)=>{let o=e._zod.innerType;le(o,t,r);let i=t.seen.get(e);i.ref=o},hc={string:Hp,number:Bp,boolean:Up,bigint:Gp,symbol:Kp,null:qp,undefined:Jp,void:Yp,never:Xp,any:Qp,unknown:ef,date:tf,enum:nf,literal:rf,nan:of,template_literal:sf,file:af,success:cf,custom:uf,function:lf,transform:df,map:pf,set:ff,array:mf,object:hf,union:gc,intersection:gf,tuple:Cf,record:kf,nullable:yf,nonoptional:bf,default:wf,prefault:xf,catch:If,pipe:_f,readonly:Sf,promise:Lf,optional:Cc,lazy:Pf};function kc(e,t){if("_idmap"in e){let r=e,o=Sn({...t,processors:hc}),i={};for(let c of r._idmap.entries()){let[u,l]=c;le(l,o)}let s={},a={registry:r,uri:t?.uri,defs:i};o.external=a;for(let c of r._idmap.entries()){let[u,l]=c;Ln(o,l),We(s,u,Pn(o,l))}if(Object.keys(i).length>0){let c=o.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:i}}return{schemas:s}}let n=Sn({...t,processors:hc});return le(e,n),Ln(n,e),Pn(n,e)}var yc=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Sn({processors:hc,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return le(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,Ln(this.ctx,t);let r=Pn(this.ctx,t),{"~standard":o,...i}=r;return i}};var B0={};var ao={};Lt(ao,{ZodAny:()=>Jf,ZodArray:()=>e2,ZodBase64:()=>zc,ZodBase64URL:()=>Zc,ZodBigInt:()=>io,ZodBigIntFormat:()=>Fc,ZodBoolean:()=>oo,ZodCIDRv4:()=>Nc,ZodCIDRv6:()=>Oc,ZodCUID:()=>Mc,ZodCUID2:()=>Rc,ZodCatch:()=>v2,ZodCodec:()=>Ai,ZodCreditCard:()=>Ff,ZodCustom:()=>Di,ZodCustomStringFormat:()=>cr,ZodDate:()=>Li,ZodDefault:()=>h2,ZodDiscriminatedUnion:()=>n2,ZodE164:()=>jc,ZodEmail:()=>_c,ZodEmoji:()=>Lc,ZodEnum:()=>to,ZodExactOptional:()=>Uc,ZodFile:()=>d2,ZodFunction:()=>T2,ZodGUID:()=>Sc,ZodIBAN:()=>Vf,ZodIPv4:()=>Dc,ZodIPv6:()=>Ec,ZodISODate:()=>Rn,ZodISODateTime:()=>Mn,ZodISODuration:()=>$n,ZodISOTime:()=>Tn,ZodInstanceOf:()=>D2,ZodIntersection:()=>r2,ZodJWT:()=>Wc,ZodKSUID:()=>Ac,ZodLazy:()=>P2,ZodLiteral:()=>l2,ZodMAC:()=>Wf,ZodMap:()=>c2,ZodNaN:()=>x2,ZodNanoID:()=>Pc,ZodNever:()=>Xf,ZodNonOptional:()=>Gc,ZodNull:()=>Kf,ZodNullable:()=>m2,ZodNumber:()=>ro,ZodNumberFormat:()=>ur,ZodObject:()=>Mi,ZodOptional:()=>Ti,ZodPipe:()=>$i,ZodPrefault:()=>C2,ZodPreprocess:()=>I2,ZodPromise:()=>R2,ZodReadonly:()=>_2,ZodRecord:()=>eo,ZodSet:()=>u2,ZodString:()=>no,ZodStringFormat:()=>de,ZodSuccess:()=>b2,ZodSymbol:()=>Uf,ZodTemplateLiteral:()=>L2,ZodTransform:()=>p2,ZodTuple:()=>i2,ZodType:()=>J,ZodULID:()=>Tc,ZodURL:()=>Si,ZodUUID:()=>Ht,ZodUndefined:()=>Gf,ZodUnion:()=>Ri,ZodUnknown:()=>Yf,ZodVoid:()=>Qf,ZodXID:()=>$c,ZodXor:()=>t2,_ZodString:()=>Ic,_default:()=>g2,_function:()=>r4,any:()=>D9,array:()=>Pi,base64:()=>m9,base64url:()=>h9,bigint:()=>M9,boolean:()=>Bf,catch:()=>w2,check:()=>o4,cidrv4:()=>p9,cidrv6:()=>f9,codec:()=>Q9,creditCard:()=>C9,cuid:()=>o9,cuid2:()=>i9,currencyCode:()=>x9,custom:()=>i4,date:()=>N9,describe:()=>s4,discriminatedUnion:()=>F9,e164:()=>g9,email:()=>K0,emoji:()=>n9,enum:()=>Hc,exactOptional:()=>f2,file:()=>q9,float32:()=>_9,float64:()=>S9,function:()=>r4,guid:()=>q0,hash:()=>I9,hex:()=>w9,hostname:()=>v9,httpUrl:()=>t9,iban:()=>k9,instanceof:()=>c4,int:()=>wc,int32:()=>L9,int64:()=>R9,intersection:()=>o2,invertCodec:()=>e4,ipv4:()=>u9,ipv6:()=>d9,json:()=>l4,jwt:()=>y9,keyof:()=>O9,ksuid:()=>c9,lazy:()=>M2,literal:()=>K9,looseObject:()=>j9,looseRecord:()=>H9,mac:()=>l9,map:()=>B9,meta:()=>a4,nan:()=>X9,nanoid:()=>r9,nativeEnum:()=>G9,never:()=>Vc,nonoptional:()=>y2,null:()=>qf,nullable:()=>_i,nullish:()=>J9,number:()=>Hf,object:()=>z9,optional:()=>sr,partialRecord:()=>V9,pipe:()=>xc,prefault:()=>k2,preprocess:()=>d4,promise:()=>n4,readonly:()=>S2,record:()=>a2,refine:()=>$2,set:()=>U9,strictObject:()=>Z9,string:()=>Ii,stringFormat:()=>b9,stringbool:()=>u4,success:()=>Y9,superRefine:()=>A2,symbol:()=>$9,templateLiteral:()=>t4,transform:()=>Bc,tuple:()=>s2,uint32:()=>P9,uint64:()=>T9,ulid:()=>s9,undefined:()=>A9,union:()=>so,unknown:()=>ir,url:()=>e9,uuid:()=>J0,uuidv4:()=>Y0,uuidv6:()=>X0,uuidv7:()=>Q0,void:()=>E9,xid:()=>a9,xor:()=>W9});var bc={};Lt(bc,{endsWith:()=>Vr,gt:()=>Ft,gte:()=>ht,includes:()=>Wr,length:()=>rr,lowercase:()=>Zr,lt:()=>Wt,lte:()=>mt,maxLength:()=>nr,maxSize:()=>_n,mime:()=>Br,minLength:()=>en,minSize:()=>Vt,multipleOf:()=>In,negative:()=>dc,nonnegative:()=>fc,nonpositive:()=>pc,normalize:()=>Ur,overwrite:()=>$t,positive:()=>lc,properties:()=>Hr,property:()=>mc,regex:()=>zr,size:()=>tr,slugify:()=>Jr,startsWith:()=>Fr,toLowerCase:()=>Kr,toUpperCase:()=>qr,trim:()=>Gr,uppercase:()=>jr});var U0=new WeakSet([Object.prototype,Error.prototype]);function vc(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}var G0=(e,t)=>{Ml.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);U0.has(n)||(U0.add(n),vc(n,"format",r=>o=>Yo(r,o)),vc(n,"flatten",r=>o=>Jo(r,o)),vc(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,Sr,2)}),vc(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,Sr,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},$I=C("ZodError",G0),dt=C("ZodError",G0,void 0,{Parent:Error});var Mf=Rr(dt),Rf=Tr(dt),Tf=$r(dt),$f=Ar(dt),Af=Xs(dt),Df=Qs(dt),Ef=ea(dt),Nf=ta(dt),Of=na(dt),zf=ra(dt),Zf=oa(dt),jf=ia(dt);function DI(){Ne.localeError||ye(Oa())}function ar(){Ne.memoizer||ye({memoizer:hi()})}var J=C("ZodType",(e,t)=>(DI(),K.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(O.mergeDefs(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ce(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check($2(e,t))},superRefine(e,t){return this.check(A2(e,t))},overwrite(e){return this.check($t(e))},optional(){return sr(this)},exactOptional(){return f2(this)},nullable(){return _i(this)},nullish(){return sr(_i(this))},nonoptional(e){return y2(this,e)},array(){return Pi(this)},or(e){return so([this,e])},and(e){return o2(this,e)},transform(e){return xc(this,Bc(e))},default(e){return g2(this,e)},prefault(e){return k2(this,e)},catch(e){return w2(this,e)},pipe(e){return xc(this,e)},readonly(){return S2(this)},describe(e){let t=this.clone();return Fe.add(t,{description:e}),t},meta(...e){if(e.length===0)return Fe.get(this);let t=this.clone();return Fe.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return O.hide(this,"~standard",{...ga(this),jsonSchema:{input:Yr(this,"input"),output:Yr(this,"output")}})},set"~standard"(e){O.own(this,"~standard",e)},parse:function e(t,n){return Mf(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Rf(this,t,n,{callee:e})},safeParse(e,t){return Tf(this,e,t)},async safeParseAsync(e,t){return $f(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){O.own(this,"spa",e)},validate(e,t){return Xo(this,e,t)},validateAsync(e,t){return Qo(this,e,t)},encode:function e(t,n){return Af(this,t,n,{callee:e})},decode:function e(t,n){return Df(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Ef(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Nf(this,t,n,{callee:e})},safeEncode(e,t){return Of(this,e,t)},safeDecode(e,t){return zf(this,e,t)},async safeEncodeAsync(e,t){return Zf(this,e,t)},async safeDecodeAsync(e,t){return jf(this,e,t)},toJSONSchema(e){return Wp(this,{})(e)},get description(){return Fe.get(this)?.description},get _def(){return this._zod.def}}),Ic=C("_ZodString",(e,t)=>{Jn.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Hp(e,n,r,o)},O.derived({format:e=>Re(e).format??null,minLength:e=>Re(e).minimum??null,maxLength:e=>Re(e).maximum??null},{regex(...e){return this.check(zr(...e))},includes(...e){return this.check(Wr(...e))},startsWith(...e){return this.check(Fr(...e))},endsWith(...e){return this.check(Vr(...e))},min(...e){return this.check(en(...e))},max(...e){return this.check(nr(...e))},length(...e){return this.check(rr(...e))},nonempty(...e){return this.check(en(1,...e))},lowercase(e){return this.check(Zr(e))},uppercase(e){return this.check(jr(e))},trim(){return this.check(Gr())},normalize(...e){return this.check(Ur(...e))},toLowerCase(){return this.check(Kr())},toUpperCase(){return this.check(qr())},slugify(){return this.check(Jr())}})),no=C("ZodString",(e,t)=>{Jn.init(e,t),Ic.init(e,t)},{email(e){return this.check(Va(_c,e))},url(e){return this.check(Ci(Si,e))},jwt(e){return this.check(uc(Wc,e))},emoji(e){return this.check(qa(Lc,e))},guid(e){return this.check(Ha(Sc,e))},uuid(e){return this.check(Ba(Ht,e))},uuidv4(e){return this.check(Ua(Ht,e))},uuidv6(e){return this.check(Ga(Ht,e))},uuidv7(e){return this.check(Ka(Ht,e))},nanoid(e){return this.check(Ja(Pc,e))},cuid(e){return this.check(Ya(Mc,e))},cuid2(e){return this.check(Xa(Rc,e))},ulid(e){return this.check(Qa(Tc,e))},base64(e){return this.check(sc(zc,e))},base64url(e){return this.check(ac(Zc,e))},xid(e){return this.check(ec($c,e))},ksuid(e){return this.check(tc(Ac,e))},ipv4(e){return this.check(nc(Dc,e))},ipv6(e){return this.check(rc(Ec,e))},cidrv4(e){return this.check(oc(Nc,e))},cidrv6(e){return this.check(ic(Oc,e))},e164(e){return this.check(cc(jc,e))},datetime(e){return this.check(ki(Mn,e))},date(e){return this.check(yi(Rn,e))},time(e){return this.check(bi(Tn,e))},duration(e){return this.check(vi($n,e))}});function Ii(e){return rp(no,e)}var de=C("ZodStringFormat",(e,t)=>{ue.init(e,t),Ic.init(e,t)}),Mn=C("ZodISODateTime",(e,t)=>{qd.init(e,t),de.init(e,t)}),Rn=C("ZodISODate",(e,t)=>{Jd.init(e,t),de.init(e,t)}),Tn=C("ZodISOTime",(e,t)=>{Yd.init(e,t),de.init(e,t)}),$n=C("ZodISODuration",(e,t)=>{Xd.init(e,t),de.init(e,t)}),_c=C("ZodEmail",(e,t)=>{zd.init(e,t),de.init(e,t)});function K0(e){return Va(_c,e)}var Sc=C("ZodGUID",(e,t)=>{Nd.init(e,t),de.init(e,t)});function q0(e){return Ha(Sc,e)}var Ht=C("ZodUUID",(e,t)=>{Od.init(e,t),de.init(e,t)});function J0(e){return Ba(Ht,e)}function Y0(e){return Ua(Ht,e)}function X0(e){return Ga(Ht,e)}function Q0(e){return Ka(Ht,e)}var Si=C("ZodURL",(e,t)=>{Wd.init(e,t),de.init(e,t)});function e9(e){return Ci(Si,e)}function t9(e){return Ci(Si,{protocol:ei,hostname:Xl,...O.normalizeParams(e)})}var Lc=C("ZodEmoji",(e,t)=>{Fd.init(e,t),de.init(e,t)});function n9(e){return qa(Lc,e)}var Pc=C("ZodNanoID",(e,t)=>{Vd.init(e,t),de.init(e,t)});function r9(e){return Ja(Pc,e)}var Mc=C("ZodCUID",(e,t)=>{Hd.init(e,t),de.init(e,t)});function o9(e){return Ya(Mc,e)}var Rc=C("ZodCUID2",(e,t)=>{Bd.init(e,t),de.init(e,t)});function i9(e){return Xa(Rc,e)}var Tc=C("ZodULID",(e,t)=>{Ud.init(e,t),de.init(e,t)});function s9(e){return Qa(Tc,e)}var $c=C("ZodXID",(e,t)=>{Gd.init(e,t),de.init(e,t)});function a9(e){return ec($c,e)}var Ac=C("ZodKSUID",(e,t)=>{Kd.init(e,t),de.init(e,t)});function c9(e){return tc(Ac,e)}var Dc=C("ZodIPv4",(e,t)=>{Qd.init(e,t),de.init(e,t)});function u9(e){return nc(Dc,e)}var Wf=C("ZodMAC",(e,t)=>{t1.init(e,t),de.init(e,t)});function l9(e){return ip(Wf,e)}var Ec=C("ZodIPv6",(e,t)=>{e1.init(e,t),de.init(e,t)});function d9(e){return rc(Ec,e)}var Nc=C("ZodCIDRv4",(e,t)=>{n1.init(e,t),de.init(e,t)});function p9(e){return oc(Nc,e)}var Oc=C("ZodCIDRv6",(e,t)=>{r1.init(e,t),de.init(e,t)});function f9(e){return ic(Oc,e)}var zc=C("ZodBase64",(e,t)=>{o1.init(e,t),de.init(e,t)});function m9(e){return sc(zc,e)}var Zc=C("ZodBase64URL",(e,t)=>{i1.init(e,t),de.init(e,t)});function h9(e){return ac(Zc,e)}var jc=C("ZodE164",(e,t)=>{s1.init(e,t),de.init(e,t)});function g9(e){return cc(jc,e)}var Ff=C("ZodCreditCard",(e,t)=>{a1.init(e,t),de.init(e,t)});function C9(e){return sp(Ff,e)}var Vf=C("ZodIBAN",(e,t)=>{c1.init(e,t),de.init(e,t)});function k9(e){return ap(Vf,e)}var Wc=C("ZodJWT",(e,t)=>{u1.init(e,t),de.init(e,t)});function y9(e){return uc(Wc,e)}var cr=C("ZodCustomStringFormat",(e,t)=>{l1.init(e,t),de.init(e,t)});function b9(e,t,n={}){return or(cr,e,t,n)}function v9(e){return or(cr,"hostname",Yl,e)}function w9(e){return or(cr,"hex",pd,e)}function x9(e){return or(cr,"currency_code",ed,e)}function I9(e,t){let n=t?.enc??"hex",r=`${e}_${n}`,o=vt[r];if(!o)throw new Error(`Unrecognized hash format: ${r}`);return or(cr,r,o,t)}var ro=C("ZodNumber",(e,t)=>{Sa.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Bp(e,n,r,o),e.isFinite=!0},O.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=Re(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=Re(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:n}=Re(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>Re(e).format??null},{gt(e,t){return this.check(Ft(e,t))},gte(e,t){return this.check(ht(e,t))},min(e,t){return this.check(ht(e,t))},lt(e,t){return this.check(Wt(e,t))},lte(e,t){return this.check(mt(e,t))},max(e,t){return this.check(mt(e,t))},int(e){return this.check(wc(e))},safe(e){return this.check(wc(e))},positive(e){return this.check(Ft(0,e))},nonnegative(e){return this.check(ht(0,e))},negative(e){return this.check(Wt(0,e))},nonpositive(e){return this.check(mt(0,e))},multipleOf(e,t){return this.check(In(e,t))},step(e,t){return this.check(In(e,t))},finite(){return this}}));function Hf(e){return up(ro,e)}var ur=C("ZodNumberFormat",(e,t)=>{d1.init(e,t),ro.init(e,t)});function wc(e){return dp(ur,e)}function _9(e){return pp(ur,e)}function S9(e){return fp(ur,e)}function L9(e){return mp(ur,e)}function P9(e){return hp(ur,e)}var oo=C("ZodBoolean",(e,t)=>{ui.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Up(e,n,r,o)});function Bf(e){return gp(oo,e)}var io=C("ZodBigInt",(e,t)=>{La.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Gp(e,n,r,o)},O.derived({minValue:e=>Re(e).minimum??null,maxValue:e=>Re(e).maximum??null,format:e=>Re(e).format??null},{gte(e,t){return this.check(ht(e,t))},min(e,t){return this.check(ht(e,t))},gt(e,t){return this.check(Ft(e,t))},lt(e,t){return this.check(Wt(e,t))},lte(e,t){return this.check(mt(e,t))},max(e,t){return this.check(mt(e,t))},positive(e){return this.check(Ft(BigInt(0),e))},negative(e){return this.check(Wt(BigInt(0),e))},nonpositive(e){return this.check(mt(BigInt(0),e))},nonnegative(e){return this.check(ht(BigInt(0),e))},multipleOf(e,t){return this.check(In(e,t))}}));function M9(e){return kp(io,e)}var Fc=C("ZodBigIntFormat",(e,t)=>{p1.init(e,t),io.init(e,t)});function R9(e){return bp(Fc,e)}function T9(e){return vp(Fc,e)}var Uf=C("ZodSymbol",(e,t)=>{f1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kp(e,n,r,o)});function $9(e){return wp(Uf,e)}var Gf=C("ZodUndefined",(e,t)=>{m1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jp(e,n,r,o)});function A9(e){return xp(Gf,e)}var Kf=C("ZodNull",(e,t)=>{h1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qp(e,n,r,o)});function qf(e){return Ip(Kf,e)}var Jf=C("ZodAny",(e,t)=>{g1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Qp(e,n,r,o)});function D9(){return _p(Jf)}var Yf=C("ZodUnknown",(e,t)=>{C1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ef(e,n,r,o)});function ir(){return Sp(Yf)}var Xf=C("ZodNever",(e,t)=>{k1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xp(e,n,r,o)});function Vc(e){return Lp(Xf,e)}var Qf=C("ZodVoid",(e,t)=>{y1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yp(e,n,r,o)});function E9(e){return Pp(Qf,e)}var Li=C("ZodDate",(e,t)=>{b1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>tf(e,n,r,o),e.min=(n,r)=>e.check(ht(n,r)),e.max=(n,r)=>e.check(mt(n,r))},O.derived({minDate:e=>{let{minimum:t}=Re(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=Re(e);return t?new Date(t):null}},{}));function N9(e){return Mp(Li,e)}var e2=C("ZodArray",(e,t)=>{ar(),v1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>mf(e,n,r,o),e.element=t.element},{min(e,t){return this.check(en(e,t))},nonempty(e){return this.check(en(1,e))},max(e,t){return this.check(nr(e,t))},length(e,t){return this.check(rr(e,t))},unwrap(){return this.element}});function Pi(e,t){return $p(e2,e,t)}function O9(e){let t=e._zod.def.shape;return Hc(Object.keys(t))}var Mi=C("ZodObject",(e,t)=>{ar(),w1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hf(e,n,r,o),O.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return Hc(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(O.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(O.mergeDefs(this._zod.def,{catchall:ir()}))},loose(){return this.clone(O.mergeDefs(this._zod.def,{catchall:ir()}))},strict(){return this.clone(O.mergeDefs(this._zod.def,{catchall:Vc()}))},strip(){return this.clone(O.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return O.extend(this,e)},safeExtend(e){return O.safeExtend(this,e)},merge(e){return O.merge(this,e)},pick(e){return O.pick(this,e)},omit(e){return O.omit(this,e)},partial(...e){return O.partial(Ti,this,e[0])},exactPartial(...e){return O.partial(Uc,this,e[0],"exactPartial")},required(...e){return O.required(Gc,this,e[0])}});function z9(e,t){let n={type:"object",shape:e??{},...O.normalizeParams(t)};return new Mi(n)}function Z9(e,t){return new Mi({type:"object",shape:e,catchall:Vc(),...O.normalizeParams(t)})}function j9(e,t){return new Mi({type:"object",shape:e,catchall:ir(),...O.normalizeParams(t)})}var Ri=C("ZodUnion",(e,t)=>{li.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gc(e,n,r,o),e.options=t.options});function so(e,t){return new Ri({type:"union",options:e,...O.normalizeParams(t)})}var t2=C("ZodXor",(e,t)=>{Ri.init(e,t),x1.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gc(e,n,r,o),e.options=t.options});function W9(e,t){return new t2({type:"union",options:e,inclusive:!1,...O.normalizeParams(t)})}var n2=C("ZodDiscriminatedUnion",(e,t)=>{Ri.init(e,t),_1.init(e,t)});function F9(e,t,n){return new n2({type:"union",options:t,discriminator:e,...O.normalizeParams(n)})}var r2=C("ZodIntersection",(e,t)=>{S1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gf(e,n,r,o)});function o2(e,t){return new r2({type:"intersection",left:e,right:t})}var i2=C("ZodTuple",(e,t)=>{ar(),Pa.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Cf(e,n,r,o)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new Ti({type:"optional",innerType:t}))})}});function s2(e,t,n){let r=t instanceof K,o=r?n:t,i=r?t:null;return new i2({type:"tuple",items:e,rest:i,...O.normalizeParams(o)})}var eo=C("ZodRecord",(e,t)=>{ar(),L1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>kf(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function a2(e,t,n){return!t||!t._zod?new eo({type:"record",keyType:Ii(),valueType:e,...O.normalizeParams(t)}):new eo({type:"record",keyType:e,valueType:t,...O.normalizeParams(n)})}function V9(e,t,n){return new eo({type:"record",keyType:e,valueType:t,...O.normalizeParams(n),partial:!0})}function H9(e,t,n){return new eo({type:"record",keyType:e,valueType:t,mode:"loose",...O.normalizeParams(n)})}var c2=C("ZodMap",(e,t)=>{ar(),P1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pf(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Vt(...n)),e.nonempty=n=>e.check(Vt(1,n)),e.max=(...n)=>e.check(_n(...n)),e.size=(...n)=>e.check(tr(...n))});function B9(e,t,n){return new c2({type:"map",keyType:e,valueType:t,...O.normalizeParams(n)})}var u2=C("ZodSet",(e,t)=>{ar(),M1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ff(e,n,r,o),e.min=(...n)=>e.check(Vt(...n)),e.nonempty=n=>e.check(Vt(1,n)),e.max=(...n)=>e.check(_n(...n)),e.size=(...n)=>e.check(tr(...n))});function U9(e,t){return new u2({type:"set",valueType:e,...O.normalizeParams(t)})}var to=C("ZodEnum",(e,t)=>{R1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(r,o,i)=>nf(e,r,o,i),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{let i={};for(let s of r)if(n.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new to({...t,checks:[],...O.normalizeParams(o),entries:i})},e.exclude=(r,o)=>{let i={...t.entries};for(let s of r)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new to({...t,checks:[],...O.normalizeParams(o),entries:i})}});function Hc(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new to({type:"enum",entries:n,...O.normalizeParams(t)})}function G9(e,t){return new to({type:"enum",entries:e,...O.normalizeParams(t)})}var l2=C("ZodLiteral",(e,t)=>{T1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>rf(e,n,r,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function K9(e,t){return new l2({type:"literal",values:Array.isArray(e)?e:[e],...O.normalizeParams(t)})}var d2=C("ZodFile",(e,t)=>{$1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>af(e,n,r,o),e.min=(n,r)=>e.check(Vt(n,r)),e.max=(n,r)=>e.check(_n(n,r)),e.mime=(n,r)=>e.check(Br(Array.isArray(n)?n:[n],r))});function q9(e){return Ap(d2,e)}var p2=C("ZodTransform",(e,t)=>{ar(),A1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>df(e,n,r,o),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new xn(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(O.issue(i,n.value,t));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=n.value),s.inst??(s.inst=e),n.issues.push(O.issue(s))}};let o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});function Bc(e){return new p2({type:"transform",transform:e})}var Ti=C("ZodOptional",(e,t)=>{Ma.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Cc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function sr(e){return new Ti({type:"optional",innerType:e})}var Uc=C("ZodExactOptional",(e,t)=>{D1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Cc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function f2(e){return new Uc({type:"optional",innerType:e})}var m2=C("ZodNullable",(e,t)=>{E1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>yf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function _i(e){return new m2({type:"nullable",innerType:e})}function J9(e){return sr(_i(e))}var h2=C("ZodDefault",(e,t)=>{N1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>wf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function g2(e,t){return new h2({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():O.shallowClone(t)}})}var C2=C("ZodPrefault",(e,t)=>{O1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>xf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function k2(e,t){return new C2({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():O.shallowClone(t)}})}var Gc=C("ZodNonOptional",(e,t)=>{z1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>bf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function y2(e,t){return new Gc({type:"nonoptional",innerType:e,...O.normalizeParams(t)})}var b2=C("ZodSuccess",(e,t)=>{Z1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Y9(e){return new b2({type:"success",innerType:e})}var v2=C("ZodCatch",(e,t)=>{j1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>If(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function w2(e,t){return new v2({type:"catch",innerType:e,catchValue:typeof t=="function"?t:O.constantCatch(t)})}var x2=C("ZodNaN",(e,t)=>{W1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>of(e,n,r,o)});function X9(e){return Tp(x2,e)}var $i=C("ZodPipe",(e,t)=>{Ra.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>_f(e,n,r,o),e.in=t.in,e.out=t.out});function xc(e,t){return new $i({type:"pipe",in:e,out:t})}var Ai=C("ZodCodec",(e,t)=>{$i.init(e,t),di.init(e,t)});function Q9(e,t,n){return new Ai({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function e4(e){let t=e._zod.def;return new Ai({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var I2=C("ZodPreprocess",(e,t)=>{$i.init(e,t),F1.init(e,t)}),_2=C("ZodReadonly",(e,t)=>{V1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Sf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function S2(e){return new _2({type:"readonly",innerType:e})}var L2=C("ZodTemplateLiteral",(e,t)=>{H1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sf(e,n,r,o)});function t4(e,t){return new L2({type:"template_literal",parts:e,...O.normalizeParams(t)})}var P2=C("ZodLazy",(e,t)=>{pi.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Pf(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function M2(e){return new P2({type:"lazy",getter:e})}var R2=C("ZodPromise",(e,t)=>{U1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Lf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function n4(e){return new R2({type:"promise",innerType:e})}var T2=C("ZodFunction",(e,t)=>{B1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lf(e,n,r,o)});function r4(e){return new T2({type:"function",input:Array.isArray(e?.input)?s2(e?.input):e?.input??Pi(ir()),output:e?.output??ir()})}var Di=C("ZodCustom",(e,t)=>{G1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>uf(e,n,r,o)});function o4(e){let t=new pe({check:"custom"});return t._zod.check=e,t}function i4(e,t){return Dp(Di,e??(()=>!0),t)}function $2(e,t={}){return Ep(Di,e,t)}function A2(e,t){return Np(e,t)}var s4=Op,a4=zp,D2=C("ZodInstanceOf",(e,t)=>{Di.init(e,t)},{properties(e,t){return this.check(Hr(e,t))}});function c4(e,t={}){let n=new D2({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...O.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:n,path:[...n._zod.def.path??[]]})},n}var u4=(...e)=>Zp({Codec:Ai,Boolean:oo,String:no},...e);function l4(e){let t=M2(()=>so([Ii(e),Hf(),Bf(),qf(),Pi(t),a2(Ii(),t)]));return t}function d4(e,t){return new I2({type:"pipe",in:Bc(e),out:t})}var EI={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function NI(e){ye({customError:e})}function OI(){return ye().customError}var E2;E2||(E2={});var Ei={};Lt(Ei,{ZodISODate:()=>Rn,ZodISODateTime:()=>Mn,ZodISODuration:()=>$n,ZodISOTime:()=>Tn,date:()=>ZI,datetime:()=>zI,duration:()=>WI,time:()=>jI});function zI(e){return ki(Mn,e)}function ZI(e){return yi(Rn,e)}function jI(e){return bi(Tn,e)}function WI(e){return vi($n,e)}var D={...ao,...bc,iso:Ei},FI=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function VI(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function p4(e,t){return e.map((n,r)=>r<t?n:n.optional())}function HI(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function BI(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===r){let o=n[1]===void 0?void 0:HI(n[1]);if(!o||!t.defs[o])throw new Error(`Reference not found: ${e}`);return t.defs[o]}throw new Error(`Reference not found: ${e}`)}function UI(e,t){return D.transform(r=>r).check(r=>{let o=r.value;if(typeof o!="object"||o===null||Array.isArray(o))return;let i=Object.getOwnPropertyNames(o);if(t.minProperties!==void 0&&i.length<t.minProperties&&r.issues.push({origin:"object",code:"too_small",minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:o,inst:e,continue:!0}),t.maxProperties!==void 0&&i.length>t.maxProperties&&r.issues.push({origin:"object",code:"too_big",maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:o,inst:e,continue:!0}),t.keySchema)for(let s of i){let a=t.keySchema.safeParse(s);a.success||r.issues.push({code:"invalid_key",origin:"record",issues:a.error.issues,input:s,path:[s],continue:!0})}}).pipe(e)}function N2(e,t){if(e===null)return"z";let n=typeof e;if(n!=="object"){if(n==="number"&&Number.isNaN(e))return null;let r=String(e);return`${n[0]}${r.length}:${r}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let i=[];for(let s of e){let a=N2(s,t);if(a===null)return null;i.push(a)}return`a${i.length}:[${i.join(",")}]`}let r=Object.keys(e).sort(),o=[];for(let i of r){let s=N2(e[i],t);if(s===null)return null;o.push(`${i.length}:${i}=${s}`)}return`o${o.length}:{${o.join(",")}}`}finally{t.delete(e)}}var GI=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),KI=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function Ni(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(Ni):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,n])=>GI.has(t)?Ni(n):!KI.has(t)||typeof n!="object"||n===null?!1:Object.values(n).some(Ni))}function f4(e){return e===1?"element":"elements"}function qI(e,t){return D.transform(r=>r).check(r=>{let o=r.value;if(Array.isArray(o)){if(t.uniqueItems===!0){let i=new Map;for(let s=0;s<o.length;s++){let a=N2(o[s],new Set);if(a===null)continue;let c=i.get(a);if(c===void 0){i.set(a,s);continue}r.issues.push({code:"custom",message:`Array items must be unique: element at index ${s} duplicates the one at index ${c}`,input:o,path:[s],continue:!0})}}if(t.containsSchema){let i=t.minContains??1,s=t.maxContains!==void 0?t.maxContains+1:Number.POSITIVE_INFINITY,a=0;for(let c of o)if(t.containsSchema.safeParse(c).success&&++a>=s)break;a<i&&r.issues.push({code:"custom",message:`Array must contain at least ${i} matching ${f4(i)}; found ${a}`,input:o,continue:!0}),t.maxContains!==void 0&&a>t.maxContains&&r.issues.push({code:"custom",message:`Array must contain at most ${t.maxContains} matching ${f4(t.maxContains)}`,input:o,continue:!0})}}}).pipe(e)}function m4(e,t){if(e!==!1)return e===void 0||e===!0?D.any():nt(e,t)}var JI=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function h4(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return D.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let o=e.$ref;if(t.refs.has(o))return t.refs.get(o);if(t.processing.has(o))return D.lazy(()=>{if(!t.refs.has(o))throw new Error(`Circular reference not resolved: ${o}`);return t.refs.get(o)});t.processing.add(o);let i=BI(o,t),s=nt(i,t);return t.refs.set(o,s),t.processing.delete(o),s}if(e.enum!==void 0){let o=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&o.length===1&&o[0]===null)return D.null();if(o.length===0)return D.never();if(o.length===1)return D.literal(o[0]);if(o.every(s=>typeof s=="string"))return D.enum(o);let i=o.map(s=>D.literal(s));return i.length<2?i[0]:D.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return D.literal(e.const);let n=e.type;if(Array.isArray(n)){let o=n.map(i=>{let s={...e,type:i};return h4(s,t)});return o.length===0?D.never():o.length===1?o[0]:D.union(o)}if(!n)return D.any();let r;switch(n){case"string":{let o=D.string();if(e.format){let i=e.format;i==="email"?o=o.check(D.email()):i==="uri"||i==="uri-reference"?o=o.check(D.url()):i==="uuid"||i==="guid"?o=o.check(D.uuid()):i==="date-time"?o=o.check(D.iso.datetime({offset:!0})):i==="date"?o=o.check(D.iso.date()):i==="time"?o=o.check(D.regex(JI)):i==="duration"?o=o.check(D.iso.duration()):i==="hostname"?o=o.check(D.hostname()):i==="ipv4"?o=o.check(D.ipv4()):i==="ipv6"?o=o.check(D.ipv6()):i==="mac"?o=o.check(D.mac()):i==="cidr"?o=o.check(D.cidrv4()):i==="cidr-v6"?o=o.check(D.cidrv6()):i==="base64"?o=o.check(D.base64()):i==="base64url"?o=o.check(D.base64url()):i==="e164"?o=o.check(D.e164()):i==="credit_card"?o=o.check(D.creditCard()):i==="iban"?o=o.check(D.iban()):i==="jwt"?o=o.check(D.jwt()):i==="emoji"?o=o.check(D.emoji()):i==="nanoid"?o=o.check(D.nanoid()):i==="cuid"?o=o.check(D.cuid()):i==="cuid2"?o=o.check(D.cuid2()):i==="ulid"?o=o.check(D.ulid()):i==="xid"?o=o.check(D.xid()):i==="ksuid"&&(o=o.check(D.ksuid()))}typeof e.minLength=="number"&&(o=o.min(e.minLength)),typeof e.maxLength=="number"&&(o=o.max(e.maxLength)),e.pattern&&(o=o.regex(new RegExp(e.pattern))),r=o;break}case"number":case"integer":{let o=n==="integer"?D.number().int():D.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(o=o.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(o=o.max(e.maximum)),typeof e.exclusiveMinimum=="number"?o=o.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(o=o.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?o=o.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(o=o.lt(e.maximum)),typeof e.multipleOf=="number"&&(o=o.multipleOf(e.multipleOf)),r=o;break}case"boolean":{r=D.boolean();break}case"null":{r=D.null();break}case"object":{let o={},i=e.properties||{},s=new Set(e.required||[]),a=typeof e.additionalProperties=="object"?nt(e.additionalProperties,t):void 0;for(let[d,m]of Object.entries(i)){let f=nt(m,t);We(o,d,s.has(d)?f:f.optional())}if(e.patternProperties){let d=e.patternProperties,m=Object.keys(d),f=[];for(let g of m){let k=nt(d[g],t),v=D.string().regex(new RegExp(g));f.push(D.looseRecord(v,k))}let h=[];if(Object.keys(o).length>0&&h.push(D.object(o).passthrough()),h.push(...f),h.length===0)r=D.object({}).passthrough();else if(h.length===1)r=h[0];else{let g=D.intersection(h[0],h[1]);for(let k=2;k<h.length;k++)g=D.intersection(g,h[k]);r=g}if(e.additionalProperties===!1){let g=Object.keys(o),k=m.map(y=>new RegExp(y)),v=r;r=r.check(y=>{if(!yt(y.value))return;let w=[];for(let T of Object.keys(y.value))g.includes(T)||k.some(M=>M.test(T))||w.push(T);w.length&&y.issues.push({code:"unrecognized_keys",keys:w,input:y.value,inst:v})})}}else{let d=D.object(o);e.additionalProperties===!1?r=d.strict():a?r=d.catchall(a):r=d.passthrough()}let c=e.propertyNames!==void 0&&e.propertyNames!==!0,u=typeof e.minProperties=="number"?e.minProperties:void 0,l=typeof e.maxProperties=="number"?e.maxProperties:void 0;if(c||u!==void 0||l!==void 0){let d;if(c){let m=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;d=nt(m,t)}r=UI(r,{keySchema:d,minProperties:u,maxProperties:l})}break}case"array":{let o=e.prefixItems,i=e.items;if(o&&Array.isArray(o)){let s=typeof e.minItems=="number"?e.minItems:0,a=o.map(d=>nt(d,t)),c=p4(a,s),u=Array.isArray(i)?void 0:m4(i,t),l=D.tuple(c);r=u?l.rest(u):l,typeof e.minItems=="number"&&(r=r.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(D.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=typeof e.minItems=="number"?e.minItems:0,a=i.map(d=>nt(d,t)),c=p4(a,s),u=m4(e.additionalItems,t),l=D.tuple(c);r=u?l.rest(u):l,typeof e.minItems=="number"&&(r=r.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(D.maxLength(e.maxItems)))}else if(i!==void 0){let s=nt(i,t),a=D.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),r=a}else r=D.array(D.any());(e.uniqueItems===!0||e.contains!==void 0)&&(r=qI(r,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?nt(e.contains,t):void 0,minContains:typeof e.minContains=="number"?e.minContains:void 0,maxContains:typeof e.maxContains=="number"?e.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${n}`)}return r}function nt(e,t){if(typeof e=="boolean")return e?D.any():D.never();let n=h4(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let a=e.anyOf.map(u=>nt(u,t)),c=D.union(a);n=r?D.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(u=>nt(u,t)),c=D.xor(a);n=r?D.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:D.any();else{let a=r?n:nt(e.allOf[0],t),c=r?0:1;for(let u=c;u<e.allOf.length;u++)a=D.intersection(a,nt(e.allOf[u],t));n=a}e.nullable===!0&&t.version==="openapi-3.0"&&(n=D.nullable(n)),e.readOnly===!0&&(n=D.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let o={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of i)a in e&&(o[a]=e[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in e&&(o[a]=e[a]);if(e.type==="object"&&e.$ref===void 0){e.propertyNames!==void 0&&!Ni(e.propertyNames)&&(o.propertyNames=e.propertyNames);for(let a of["minProperties","maxProperties"])e[a]!==void 0&&(o[a]=e[a])}if(e.type==="array"&&e.$ref===void 0){e.contains!==void 0&&!Ni(e.contains)&&(o.contains=e.contains);for(let a of["uniqueItems","minContains","maxContains"])e[a]!==void 0&&(o[a]=e[a])}for(let a of Object.keys(e))FI.has(a)||We(o,a,e[a]);return Object.keys(o).length>0&&t.registry.add(n,o),e.description&&(n=n.describe(e.description)),n}function g4(e,t){if(typeof e=="boolean")return e?D.any():D.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let r=VI(n,t?.defaultTarget),o=n.$defs||n.definitions||{},i={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Fe};return nt(n,i)}var C4=Symbol("z.visit/resolving");function Oi(e,t){let n=typeof t=="function"?t:(s,a)=>{let c=t[s._zod.def.type];return c?c(s,a):s},r=new Map;function o(s){let a=r.get(s);if(a===C4)return new pi({type:"lazy",getter:()=>r.get(s)});if(a!==void 0)return a;r.set(s,C4);let c=i(s),u=n(c,c!==s);return r.set(s,u),u}function i(s){let a=s._zod.def,c=a.type;switch(c){case"object":{let u=a.shape,l=Object.keys(u),d=!1,m={};for(let h of l){let g=o(u[h]);g!==u[h]&&(d=!0),m[h]=g}let f=a.catchall;return a.catchall&&(f=o(a.catchall),f!==a.catchall&&(d=!0)),d?ce(s,{...a,shape:m,catchall:f}):s}case"array":{let u=o(a.element);return u===a.element?s:ce(s,{...a,element:u})}case"tuple":{let u=a.items,l=!1,d=[];for(let f of u){let h=o(f);h!==f&&(l=!0),d.push(h)}let m=a.rest;return a.rest&&(m=o(a.rest),m!==a.rest&&(l=!0)),l?ce(s,{...a,items:d,rest:m}):s}case"record":case"map":{let u=o(a.keyType),l=o(a.valueType);return u===a.keyType&&l===a.valueType?s:ce(s,{...a,keyType:u,valueType:l})}case"set":{let u=o(a.valueType);return u===a.valueType?s:ce(s,{...a,valueType:u})}case"union":{let u=a.options,l=!1,d=[];for(let m of u){let f=o(m);f!==m&&(l=!0),d.push(f)}return l?ce(s,{...a,options:d}):s}case"intersection":{let u=o(a.left),l=o(a.right);return u===a.left&&l===a.right?s:ce(s,{...a,left:u,right:l})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let u=o(a.innerType);return u===a.innerType?s:ce(s,{...a,innerType:u})}case"pipe":{let u=o(a.in),l=o(a.out);return u===a.in&&l===a.out?s:ce(s,{...a,in:u,out:l})}case"function":{let u=o(a.input),l=o(a.output);return u===a.input&&l===a.output?s:ce(s,{...a,input:u,output:l})}case"lazy":{let u=a.getter,{_cachedInner:l,...d}=a;return ce(s,{...d,getter:()=>o(u())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return s;default:return s}}return o(e)}function k4(e){return Oi(e,{object:t=>t.partial(),union:t=>{let n=t._zod.def;return n.discriminator===void 0?t:so(n.options)}})}function YI(e,t){if(!t?.length)return e;let n=e._zod.def;return ce(e,Rt(n,{checks:[...n.checks??[],...t]}),{parent:!0})}function y4(e){return YI(e.out,e.checks)}function XI(e){return e.in._zod.traits.has("$ZodTransform")?y4(e):e.in}function b4(e){return Oi(e,{pipe:t=>XI(t._zod.def),default:(t,n)=>n?sr(t._zod.def.innerType):t,catch:(t,n)=>n?t._zod.def.innerType:t})}function v4(e){return Oi(e,{pipe:t=>y4(t._zod.def),prefault:(t,n)=>n?t._zod.def.innerType:t})}var O2={};Lt(O2,{bigint:()=>n_,boolean:()=>t_,date:()=>r_,number:()=>e_,string:()=>QI});function QI(e){return op(no,e)}function e_(e){return lp(ro,e)}function t_(e){return Cp(oo,e)}function n_(e){return yp(io,e)}function r_(e){return Rp(Li,e)}var z2=1e4,w4=se.string().min(1).max(1024),nn=se.array(w4).max(z2),o_=se.enum(["project","chronological","machine"]),i_=se.enum(["updated","created","alpha","none"]),s_=se.enum(["default","ascending","descending"]),a_=se.enum(["active","archived"]),c_=se.enum(["muted","colour","hidden"]),u_=se.enum(["blocked","everything"]),l_=se.array(se.union([se.literal("threads"),w4.regex(/^(project|section|machine):\S+$/)])).max(z2).transform(e=>[...new Set(e)]);function Ie(e,t,n){return{schema:e,defaultValue:t,description:n}}var Kc={threadLifecycles:Ie(se.array(a_).min(1).max(2).refine(e=>new Set(e).size===e.length,"Lifecycles must be unique"),["active"],'Threads shown: ["active"], ["archived"] or both. At least one is required.'),organizationMode:Ie(o_,"project","How top-level groups are formed: project, chronological (custom sections) or machine."),environmentGrouping:Ie(se.boolean(),!1,"Worktrees as folders: whether sibling threads sharing a worktree environment fold into a folder row."),chronologicalSort:Ie(i_,"updated","Sort field inside a group: updated, created or alpha. none is read as updated."),sortDirection:Ie(s_,"default","Sort direction: ascending or descending. A saved default reads as the field's own direction (descending for dates, ascending for alpha)."),sectionOrder:Ie(nn,["pinned","projects","threads"],"Top-level group order when organized by project."),manualSectionOrder:Ie(nn,["pinned","sections","threads"],"Top-level group order when organized chronologically."),machineSectionOrder:Ie(nn,["pinned","machines","threads"],"Top-level group order when organized by machine."),hiddenGroups:Ie(l_,[],"Groups moved into More: threads, project:<id>, section:<id> or machine:<id>."),collapsedSections:Ie(se.array(se.enum(["pinned","threads"])).max(z2),[],"Built-in groups (pinned, threads) that are collapsed."),collapsedProjects:Ie(nn,[],"Project ids whose group is collapsed."),collapsedThreadSections:Ie(nn,[],"Custom section keys (section:<id>) whose group is collapsed."),collapsedMachines:Ie(nn,[],"Machine ids whose group is collapsed."),collapsedEnvironments:Ie(nn,[],"Environment ids whose folder row is collapsed."),foldOlder:Ie(se.boolean(),!0,"Collapse older threads: whether each group's quiet roots past its 5 newest fold behind an N older row."),workingFirst:Ie(se.boolean(),!1,"Working threads first: whether working threads sort first under Updated, as bb's list does."),expandedOlder:Ie(nn,[],"Group ids and parent thread ids whose N older fold the user opened."),expandedChildren:Ie(nn,[],"Parent thread ids whose chip the user opened."),showPullRequests:Ie(se.boolean(),!0,"Whether rows show a pull request badge."),childAttention:Ie(u_,"blocked","Needs attention counts every child: blocked counts a child thread that waits on you, is offline or has an orphaned failure; everything also counts every failed or finished-unread child. The same children stay out of a family's older fold, as running ones do."),harnessIcon:Ie(c_,"muted","How rows draw the harness logo: muted (monochrome), colour (the provider's tint) or hidden.")},x4=Object.keys(Kc);function Z2(e){return Object.hasOwn(Kc,e)}function d_(e){return structuredClone(Kc[e].defaultValue)}function p_(){return Object.fromEntries(x4.map(e=>[e,d_(e)]))}function j2(e,t){let n=Kc[e].schema.safeParse(t);return n.success?{success:!0,value:n.data}:{success:!1,message:n.error.issues.map(r=>r.message).join("; ")}}function W2(e){let t=p_();if(e===null||typeof e!="object")return t;let n=e;for(let r of x4){if(!(r in n))continue;let o=j2(r,n[r]);o.success&&(t[r]=o.value)}return t}var f_=se.object({density:se.enum(["compact","comfortable"]).catch("compact")}),F2="bb.thread-glance.client.v1",zi="bb.thread-glance.preferences.v1",I4="bb.thread-list.preferences.v1";function _4(e){let t=f_.safeParse(e??{});return t.success?t.data:{density:"compact"}}function Zi(e){try{let t=globalThis.localStorage?.getItem(e);return t==null?null:JSON.parse(t)}catch{return null}}function co(e,t){try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch{}}function S4(){let[e,t]=E(()=>_4(Zi(F2))),n=Z(r=>{t(o=>{let i={...o,...r};return co(F2,i),i})},[]);return[e,n]}function L4(e,t){let n=$(Ws),r=$(null),o=$(void 0);return e!==null&&(e!==r.current||t!==o.current)&&(n.current=P5(n.current,e,t),r.current=e,o.current=t),n.current.held}function P4(e){let[t,n]=E(()=>Date.now());return z(()=>{let r=setInterval(()=>n(Date.now()),6e4);return()=>clearInterval(r)},[]),z(()=>{if(e===null)return;let r=e-Date.now();if(r<=0||r>2**31-1)return;let o=setTimeout(()=>n(Date.now()),r+50);return()=>clearTimeout(o)},[e]),t}var qc=se.record(se.string(),se.number()),fT=se.object({startedAt:qc,finishedAt:qc,pendingAt:qc,seenAt:qc}),m_=140,V2=se.object({kind:se.enum(["question","approval","plan","input","failed","done"]),text:se.string().max(m_),at:se.number()}),M4=se.object({pending:V2.optional(),failed:V2.optional(),done:V2.optional()}),An={preferences:"preferences",stamps:"stamps",scheduled:"scheduled",notes:"notes"};var h_=150;function R4(){let e=hn(),[t,n]=E(()=>W2(Zi(zi))),[r,o]=E(!1),i=$(new Map),s=$(null),a=mn(),c=$(!1),u=Z(async()=>{try{let{preferences:m}=await e.call("listPreferences",null),f=W2(m);for(let[h,g]of i.current)f[h]=g;n(f),co(zi,f)}finally{o(!0)}},[e]);z(()=>{let m=!1;return(async()=>{try{await e.call("importPreferences",{bbMirror:Zi(I4)})}catch{}m||await u().catch(()=>{})})(),()=>{m=!0}},[e,u]),z(()=>{a==="connected"&&(c.current&&u().catch(()=>{}),c.current=!0)},[a,u]),fn(An.preferences,m=>{let f=m;if(!Z2(f?.key)||i.current.has(f.key))return;let h=j2(f.key,f.value);h.success&&n(g=>{let k={...g,[f.key]:h.value};return co(zi,k),k})});let l=Z(()=>{let m=[...i.current];i.current.clear();for(let[f,h]of m)e.call("setPreference",{key:f,value:h}).catch(g=>{st.error(`Couldn't save the ${f} setting`,{description:g instanceof Error?g.message:String(g)})})},[e]);z(()=>()=>{s.current!==null&&clearTimeout(s.current),l()},[l]);let d=Z(m=>{n(f=>{let h={...f,...m};return co(zi,h),h});for(let[f,h]of Object.entries(m))Z2(f)&&i.current.set(f,h);s.current!==null&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,l()},h_)},[l]);return{prefs:t,hydrated:r,update:d}}var H2={};function T4(){let e=hn(),[t,n]=E(H2),r=mn(),o=$(!1),[i,s]=E(0);return z(()=>{let a=!1;return e.call("listScheduled",null).then(c=>{a||n(c.status==="ready"?c.scheduled:H2)},()=>{}),()=>{a=!0}},[e,i]),z(()=>{r==="connected"&&(o.current&&s(a=>a+1),o.current=!0)},[r]),fn(An.scheduled,a=>{let c=a;c===null||typeof c!="object"||n(c.status==="ready"&&c.scheduled?c.scheduled:H2)}),t}var $4={startedAt:{},finishedAt:{},pendingAt:{},seenAt:{}},g_=new Set(Object.keys($4));function A4(){let e=hn(),[t,n]=E($4),r=mn(),o=$(!1),i=Z(()=>{e.call("listStamps",null).then(u=>n(u.stamps),()=>{})},[e]);z(i,[i]),z(()=>{r==="connected"&&(o.current&&i(),o.current=!0)},[r,i]);let s=Z(u=>{!g_.has(u.kind)||!Array.isArray(u.threadIds)||n(l=>{let d={...l[u.kind]};for(let m of u.threadIds)u.value===null?delete d[m]:d[m]=u.value;return{...l,[u.kind]:d}})},[]);fn(An.stamps,u=>s(u));let a=Z(u=>{u.length!==0&&(s({kind:"seenAt",threadIds:u,value:Date.now()}),e.call("markSeen",{threadIds:u}).catch(()=>{}))},[s,e]),c=Z(u=>{u.length!==0&&(s({kind:"seenAt",threadIds:u,value:null}),e.call("clearSeen",{threadIds:u}).catch(()=>{}))},[s,e]);return{stamps:t,markSeen:a,clearSeen:c}}function B2(e,t,n){let r=new Set,o=e;for(;o!==null&&!r.has(o);){if(o===t)return!0;r.add(o),o=n(o)}return!1}function D4(e,t,n){if(t==="pinned")return e.pinned?{type:"unchanged"}:{type:"pin",threadId:e.threadId};if(e.pinned)return{type:"unpin",threadId:e.threadId};if(n.mode==="chronological"&&(t==="threads"||t.startsWith("section:"))){let r=t==="threads"?null:t.slice(8);return r===e.sectionId&&e.parentThreadId===null?{type:"unchanged"}:{type:"move",threadId:e.threadId,sectionId:r,detach:e.parentThreadId!==null}}return e.parentThreadId!==null?{type:"detach",threadId:e.threadId}:{type:"unchanged"}}function U2(e,t,n){if(t.kind==="group")return D4(e,t.groupId,n);if(t.threadId===e.threadId)return{type:"unchanged"};if(t.zone==="middle")return B2(t.threadId,e.threadId,n.parentOf)?{type:"blocked"}:e.parentThreadId===t.threadId?{type:"unchanged"}:{type:"nest",threadId:e.threadId,parentThreadId:t.threadId,unpinFirst:e.pinned};if(t.inPinned&&n.pinnedOrder.includes(t.threadId)){if(!e.pinned)return{type:"pin",threadId:e.threadId};let r=n.pinnedOrder.filter(u=>u!==e.threadId),o=r.indexOf(t.threadId),i=t.zone==="before"?o:o+1,s=r[i-1]??null,a=r[i]??null,c=n.pinnedOrder.indexOf(e.threadId);return(n.pinnedOrder[c-1]??null)===s&&(n.pinnedOrder[c+1]??null)===a?{type:"unchanged"}:{type:"reorder-pinned",threadId:e.threadId,previousThreadId:s,nextThreadId:a}}return D4(e,n.groupOfThread(t.threadId),n)}var C_=["waits-on-you","unread-failed","queue-failed","offline","working","unread"],E4={question:{icon:"CircleQuestion",label:"Asks a question"},approval:{icon:"SecurityCheck",label:"Needs approval"},plan:{icon:"ListTodo",label:"Plan to review"},input:{icon:"MessageQuestion",label:"Needs your input"}},N4=new Set(["pending","starting","active","stopping","idle","error"]),G2=new Set(["provisioning","starting","active","stopping","host-reconnecting"]),k_=new Set([...N4,...G2,"waiting-for-host"]);function lr(e){return N4.has(e.status)?e.status:"idle"}function K2(e){return k_.has(e.runtimeStatus)?e.runtimeStatus:lr(e)}function Jc(e){return e.queuedWork==="waiting"||e.queuedWork==="failed"?e.queuedWork:"none"}function y_(e){return G2.has(K2(e))}function b_(e){return K2(e)==="waiting-for-host"}function O4(e,t){let n=lr(e),r=e.lastReadAt??0;return(n==="idle"||n==="error")&&r<e.latestAttentionAt?!0:ji(e,t)}function ji(e,t){if(e.parentThreadId===null||lr(e)!=="idle"||e.id===t.activeThreadId)return!1;let n=t.finishedAt[e.id];return n===void 0?!1:n>Math.max(e.lastReadAt??0,t.seenAt[e.id]??0)}var v_=[["planMode","ListTodo","Plan mode active"],["goals","Target","Goal active"],["workflows","Workflow","Workflow running"],["backgroundAgents","UserRoundPlus","Background agent running"],["backgroundCommands","Terminal","Background command running"]];function _e(e,t,n=!1,r=!1){return{icon:e,tone:t,spin:n,shine:r}}function w_(e){switch(e){case"provisioning":return"Setting up";case"host-reconnecting":return"Reconnecting";case"stopping":return"Stopping";default:return"Working"}}function z4(e,t){let n=lr(e),r=K2(e),o=Jc(e),i={sendAt:null};if(e.hasPendingInteraction){let s=E4[t.needsKind??"input"]??E4.input,a=t.needsKind?s.icon:"CircleQuestion";return{kind:"waits-on-you",label:s.label,glyph:_e(a,"attention"),...i}}if(n==="error")return{kind:"failed",label:"Failed",glyph:_e("CircleX","destructive"),...i};if(o==="failed")return{kind:"queue-failed",label:"Queued message failed to send",glyph:_e("AlertTriangle","destructive"),...i};if(r==="waiting-for-host")return{kind:"offline",label:"Machine offline",glyph:_e("CloudOff","attention"),...i};if(G2.has(r)){let s=w_(r);return t.hasDraft?{kind:"working",label:`${s}, unsubmitted draft`,glyph:_e("Edit","working",!1,!0),...i}:e.activity.planMode>0?{kind:"working",label:`${s}, plan mode`,glyph:_e("ListTodo","working",!1,!0),...i}:e.activity.goals>0?{kind:"working",label:`${s}, goal active`,glyph:_e("Target","working",!1,!0),...i}:{kind:"working",label:s,glyph:_e("Loading","working",!0),...i}}for(let[s,a,c]of v_)if(e.activity[s]>0)return{kind:"background",label:c,glyph:_e(a,"background",!1,!0),...i};return o==="waiting"?t.scheduledAt!==null&&t.scheduledAt>t.now?{kind:"scheduled",label:"Scheduled message",glyph:_e("Calendar","muted-strong"),sendAt:t.scheduledAt}:{kind:"queued",label:"Message waiting to send",glyph:_e("Clock","muted-strong"),...i}:t.unread?{kind:"unread",label:"Unread",glyph:_e("dot","none"),...i}:t.hasDraft?{kind:"draft",label:"Unsubmitted draft",glyph:_e("Edit","muted"),...i}:{kind:"idle",label:"Idle",glyph:_e(null,"none"),...i}}function Z4(e,t){return!(t===null||e.kind==="waits-on-you"||e.kind==="failed"||e.kind==="working"&&e.glyph.spin)}function j4(e,t){let n=new Set;return e.hasPendingInteraction&&n.add("waits-on-you"),lr(e)==="error"&&t&&n.add("unread-failed"),Jc(e)==="failed"&&n.add("queue-failed"),b_(e)&&n.add("offline"),y_(e)&&n.add("working"),t&&n.add("unread"),n}function W4(e){let t=new Set;return e.has("waits-on-you")&&t.add("waits-on-you"),e.has("unread-failed")&&t.add("unread-failed"),t}function q2(e){return C_.find(t=>e.has(t))??null}function J2(e){switch(e){case"waits-on-you":return"attention";case"unread-failed":case"queue-failed":return"destructive";case"working":return"working";default:return"neutral"}}var Yc={"waits-on-you":{..._e("CircleQuestion","attention"),label:"needs your input"},"unread-failed":{..._e("CircleX","destructive"),label:"failed"},"queue-failed":{..._e("AlertTriangle","destructive"),label:"queued message failed"},offline:{..._e("CloudOff","attention"),label:"machine offline"},working:{..._e("Loading","working",!0),label:"working"},unread:{..._e("dot","none"),label:"unread"}};function Xc(e,t,n){return t||n?!1:e.kind==="idle"||e.kind==="draft"||e.kind==="failed"}function F4(e,t){let n=t.thread.createdAt-e.thread.createdAt;return n!==0?n:e.thread.id<t.thread.id?-1:e.thread.id>t.thread.id?1:0}function x_(e,t){let n=e.thread.displayTitle.localeCompare(t.thread.displayTitle);return n!==0?n:e.thread.id.localeCompare(t.thread.id)}function I_(e,t){let n=t.familyAttention-e.familyAttention;return n!==0?n:F4(e,t)}function rn(e){return e==="none"?"updated":e}function Qc(e){return rn(e)==="alpha"?"ascending":"descending"}function Y2(e,t){return t==="default"?Qc(e):t}function X2(e){let t=rn(e.field),n=Y2(t,e.direction)===Qc(t)?1:-1,r=t==="alpha"?x_:t==="created"?F4:I_;return(o,i)=>{if(t==="updated"&&e.workingFirst){let s=o.thread.status==="active",a=i.thread.status==="active";if(s!==a)return s?-1:1}return n*r(o,i)}}function V4(e,t){if(e.pinSortKey!==null&&t.pinSortKey!==null&&e.pinSortKey!==t.pinSortKey)return e.pinSortKey<t.pinSortKey?-1:1;let n=(t.pinnedAt??0)-(e.pinnedAt??0);if(n!==0)return n;let r=t.createdAt-e.createdAt;return r!==0?r:e.id<t.id?-1:e.id>t.id?1:0}function H4(e,t){let n=e.createdAt-t.createdAt;return n!==0?n:e.id<t.id?-1:e.id>t.id?1:0}var B4={question:"Asks",approval:"Approve",plan:"Plan",input:"Needs"};function eu(e){let t=e?.pending?.kind;return t==="question"||t==="approval"||t==="plan"||t==="input"?t:null}function U4(e,t){if(e.hasPendingInteraction){let n=eu(t),r=t?.pending?.text.trim();return n===null||!r?null:{prefix:B4[n],text:r,tone:"attention"}}if(lr(e)==="error"){let n=t?.failed?.text.trim();return n&&n.toLowerCase()!=="failed"?{prefix:"Failed",text:n,tone:"destructive"}:null}return Jc(e)==="failed"?{prefix:"Failed",text:"queued message wasn't sent",tone:"destructive"}:null}function G4(e,t,n){if(n.has("waits-on-you"))return{prefix:B4[eu(t)??"input"],text:t?.pending?.text.trim()??"",tone:"attention"};if(n.has("unread-failed")){let r=t?.failed?.text.trim()??"";return{prefix:"Failed",text:r.toLowerCase()==="failed"?"":r,tone:"destructive"}}return n.has("queue-failed")?{prefix:"Failed",text:"queued message wasn't sent",tone:"destructive"}:n.has("offline")?{prefix:"Offline",text:e.host?.name.trim()??"",tone:"attention"}:n.has("unread")?{prefix:"Finished",text:Q2(t)?.text.trim()??"",tone:"muted"}:null}function K4(e){return e.text===""?e.prefix:`${e.prefix}: ${e.text}`}function Q2(e){return e?.done??null}var __=new Set(["working","background"]);function q4(e){return e.pinnedAt!==null||e.isPinned}function S_(e,t){let n=new Set([e.id]),r=e.parentThreadId,o=null,i=!1;for(;r!==null;){if(n.has(r))return null;n.add(r);let s=t.get(r);if(s===void 0)break;s.isHidden||(o??=s.id,q4(s)&&(i=!0)),r=s.parentThreadId}return!e.isHidden&&q4(e)&&!i?null:o}function J4(e){let t=new Map(e.threads.map(l=>[l.id,l])),n=new Map;for(let l of e.threads){let d=O4(l,e),m=z4(l,{unread:d,hasDraft:e.draftIds.has(l.id),scheduledAt:e.scheduled[l.id]??null,now:e.now,needsKind:eu(e.notes?.[l.id])}),f=j4(l,d),h=l.id===e.activeThreadId;n.set(l.id,{thread:l,state:m,unread:d,flags:l.isHidden?W4(f):f,attentionFlags:new Set,quiet:Xc(m,d,h),quietIgnoringOpen:!1,isActive:h,parentId:S_(l,t),note:U4(l,e.notes?.[l.id]),attentionNote:null})}let r=e.childAttention??"blocked";for(let l of n.values()){let d=l.parentId===null?void 0:n.get(l.parentId);l.attentionFlags=_5(l.flags,{isRoot:d===void 0,mode:r,orphaned:d!==void 0&&I5(l.thread,l.flags,{...d,finishedAt:e.finishedAt[d.thread.id]})}),l.attentionNote=G4(l.thread,e.notes?.[l.thread.id],l.attentionFlags),l.quietIgnoringOpen=d===void 0||r==="everything"?Xc(l.state,l.unread,!1):l.thread.isArchived||!__.has(l.state.kind)&&l.attentionFlags.size===0}let o=new Map,i=[];for(let l of n.values()){if(l.parentId===null){l.thread.isHidden||i.push(l);continue}let d=o.get(l.parentId)??[];d.push(l.thread.id),o.set(l.parentId,d)}for(let l of o.values())l.sort((d,m)=>H4(t.get(d),t.get(m)));let s=new Map,a=(l,d)=>{let m=s.get(l);if(m!==void 0)return m;let f=[],h=new Set,g=0,k=!0;d.add(l);for(let y of o.get(l)??[]){if(d.has(y))continue;let w=n.get(y),T=a(y,d);if(f.push(w,...T.descendants),!w.thread.isArchived){for(let M of w.attentionFlags)h.add(M);w.flags.has("working")&&h.add("working")}for(let M of T.flags)h.add(M);(w.thread.isHidden?w.attentionFlags.size>0:!w.quietIgnoringOpen)&&(k=!1),w.thread.isHidden||(g+=1),g+=T.visibleCount,T.quietIgnoringOpen||(k=!1)}d.delete(l);let v={descendants:f,flags:h,visibleCount:g,quietIgnoringOpen:k};return s.set(l,v),v};for(let l of n.keys())a(l,new Set);let c=[],u=new Map;for(let l of i){let{descendants:d,flags:m,visibleCount:f}=s.get(l.thread.id),h=l.thread.latestAttentionAt,g=l.quiet,k=Xc(l.state,l.unread,!1),v=l.isActive,y=new Set;for(let M of d){if(!M.thread.isArchived)for(let x of M.attentionFlags)y.add(x);h=Math.max(h,M.thread.latestAttentionAt),M.isActive&&(v=!0),M.thread.isHidden?M.attentionFlags.size>0&&(g=k=!1):(M.quiet||(g=!1),M.quietIgnoringOpen||(k=!1))}let w=new Set(m);if(!l.thread.isArchived){for(let M of l.attentionFlags)w.add(M),y.add(M);l.flags.has("working")&&w.add("working")}let T={root:l,descendants:d,descendantFlags:m,flags:w,attentionFlags:y,visibleDescendantCount:f,latestAttentionAt:h,quiet:g&&!v,quietIgnoringOpen:k,containsActive:v};c.push(T),u.set(l.thread.id,T);for(let M of d)u.set(M.thread.id,T)}return{infos:n,children:o,families:c,familyOf:u,subtrees:s}}function uo(e,t,n=null){let r=[],o=new Set([e]),i=t.get(e)?.parentId??null;for(;i!==null&&i!==n&&!o.has(i);)r.push(i),o.add(i),i=t.get(i)?.parentId??null;return r}var At="pinned",wt="threads";function L_(e){return e.pinnedAt!==null||e.isPinned}function Y4(e){return e.find(t=>t.isPersonal)??null}function tu(e,t){if(L_(e)&&!e.isHidden)return At;switch(t.mode){case"project":{let n=t.projects.find(r=>r.id===e.projectId);return n===void 0||n.isPersonal?wt:`project:${n.id}`}case"chronological":return e.sectionId===null?wt:`section:${e.sectionId}`;case"machine":return e.host===null?wt:`machine:${e.host.id}`}}function X4(e,t){let n=Y4(e.projects);switch(e.mode){case"project":return e.projects.filter(r=>!r.isPersonal).map(r=>({id:`project:${r.id}`,kind:"project",label:r.name,entityId:r.id,newThreadProjectId:r.id,newThreadSectionId:null}));case"chronological":{let r=new Set(e.sections.map(s=>s.id)),o=[...e.sections];t&&o.sort((s,a)=>s.name.localeCompare(a.name));let i=o.map(s=>({id:`section:${s.id}`,kind:"section",label:s.name,entityId:s.id,newThreadProjectId:n?.id??null,newThreadSectionId:s.id}));for(let s of e.threads)s.sectionId===null||r.has(s.sectionId)||(r.add(s.sectionId),i.push({id:`section:${s.sectionId}`,kind:"section",label:"Section",entityId:s.sectionId,newThreadProjectId:n?.id??null,newThreadSectionId:s.sectionId}));return i}case"machine":{let r=new Map;for(let o of e.threads)o.host!==null&&!r.has(o.host.id)&&r.set(o.host.id,o.host.name);return[...r].map(([o,i])=>({id:`machine:${o}`,kind:"machine",label:i||"Unknown machine",entityId:o,newThreadProjectId:null,newThreadSectionId:null}))}}}function em(e,t){return e===At?{id:e,kind:"pinned",label:"Pinned",entityId:null,newThreadProjectId:null,newThreadSectionId:null}:{id:e,kind:"threads",label:"Threads",entityId:null,newThreadProjectId:Y4(t)?.id??null,newThreadSectionId:null}}var P_={project:"projects",chronological:"sections",machine:"machines"},Wi={project:"sectionOrder",chronological:"manualSectionOrder",machine:"machineSectionOrder"};function Q4(e,t,n){let r=P_[e],o=new Set(n),i=new Set(t),s=[],a=u=>{s.includes(u)||s.push(u)};for(let u of t)if(u===r)for(let l of n)i.has(l)||a(l);else(u===At||u===wt||o.has(u))&&a(u);let c=n.filter(u=>!s.includes(u));if(c.length>0){let u=-1;s.forEach((d,m)=>{o.has(d)&&(u=m)});let l=u>=0?u+1:s.includes(wt)?s.indexOf(wt):s.length;s.splice(l,0,...c)}return s.includes(At)||s.unshift(At),s.includes(wt)||s.push(wt),s}function tm(e,t,n,r){if(t===n)return[...e];let o=e.filter(s=>s!==t),i=o.indexOf(n);return i<0?[...e]:(o.splice(r==="before"?i:i+1,0,t),o)}function nu(e,t){switch(e.kind){case"pinned":case"threads":return t.collapsedSections.includes(e.kind);case"project":return t.collapsedProjects.includes(e.entityId);case"section":return t.collapsedThreadSections.includes(e.id);case"machine":return t.collapsedMachines.includes(e.entityId)}}function nm(e,t){let n=(r,o)=>r.includes(o)?r.filter(i=>i!==o):[...r,o];switch(e.kind){case"pinned":case"threads":return{collapsedSections:n(t.collapsedSections,e.kind)};case"project":return{collapsedProjects:n(t.collapsedProjects,e.entityId)};case"section":return{collapsedThreadSections:n(t.collapsedThreadSections,e.id)};case"machine":return{collapsedMachines:n(t.collapsedMachines,e.entityId)}}}var N={archive:"Archive",unarchive:"ArchiveRestore",more:"MoreHorizontal",openInSplit:"Columns2",copy:"Copy",link:"ExternalLink",markRead:"MailOpen",markUnread:"Mail",pin:"Pin",unpin:"PinOff",moveToSection:"SectionMove",rename:"Edit",remove:"Trash2",details:"Info",crossGroup:"FolderExport",hidden:"EyeOff",show:"Eye",expand:"ChevronRight",collapse:"ChevronDown",moveUp:"ChevronUp",newThread:"Plus",newSection:"SectionAdd",settings:"Settings",customize:"SlidersHorizontal",check:"Check",pullRequest:"GitPullRequest",branch:"GitBranch",worktree:"FolderGit",machine:"Laptop",environmentFallback:"Zap",filter:"FilterHorizontal",drag:"DragDropVertical",move:"MoveTo",open:"ArrowUpRight"},WT=Object.values(N);function e8(e){let{thread:t}=e,n=t.archivedAt!==null||t.isArchived,r=t.pinnedAt!==null||t.isPinned,o=[];return o.push({action:"details",label:"Details",icon:N.details}),e.splitAvailable&&o.push({action:"open-in-split",label:"Open in split",icon:N.openInSplit}),o.push({action:"copy-link",label:"Copy thread link",icon:N.link}),o.push({action:"copy-id",label:"Copy thread ID",icon:N.copy}),o.push(e.unread?{action:"mark-read",label:"Mark read",icon:N.markRead}:{action:"mark-unread",label:"Mark unread",icon:N.markUnread}),o.push(r?{action:"unpin",label:"Unpin",icon:N.unpin}:{action:"pin",label:"Pin",icon:N.pin}),e.isRoot&&!n&&e.hasSections&&o.push({action:"move-to-section",label:"Move to section",icon:N.moveToSection}),n||o.push({action:"move",label:"Move\u2026",icon:N.move}),o.push({action:"rename",label:"Rename",icon:N.rename}),o.push(n?{action:"unarchive",label:"Unarchive",icon:N.unarchive,separated:!0}:{action:"archive",label:"Archive",icon:N.archive,separated:!0}),o.push({action:"delete",label:"Delete",icon:N.remove,destructive:!0}),o}var t8=20;function n8(e){return e.split(/[^\p{L}\p{N}]+/u).map(t=>t.trim()).filter(t=>t.length>0)}function r8(e){let t=e.displayName?.trim()||e.id,n=n8(t),r=n8(e.id),o=(n[0]??e.id)[0]??"?",i=[],s=a=>{if(a===void 0)return;let c=(o+a).toUpperCase();i.includes(c)||i.push(c)};s((n[0]??"")[1]);for(let a of n.slice(1))s(a[0]);for(let a of r)for(let c of a)s(c);for(let a of(n[0]??"").slice(2))s(a);return i.length===0&&i.push(o.toUpperCase()),i}function o8(e){let t=new Map,n=new Set;for(let r of e){let o=r8(r),i=o.find(s=>!n.has(s))??o[0];n.add(i),t.set(r.id,i)}return t}function i8(e,t){return t.get(e)??r8({id:e})[0]}function ru(e,t){return e.filter(n=>n!==t)}function s8(e,t){return n=>uo(n,e.infos).includes(t)}function a8(e,t,n){let r=e.info.thread.id;return e.chip?.expanded??!1?{patch:{expandedChildren:ru(t.expandedChildren,r)},drop:s8(n,r)}:ou(r,t)}function ou(e,t){return{patch:{expandedChildren:[...ru(t.expandedChildren,e),e]},drop:null}}function c8(e,t,n,r){if(e.scope==="reveal")return ou(e.scopeId,t);if(!e.expanded)return{patch:{expandedOlder:[...ru(t.expandedOlder,e.scopeId),e.scopeId]},drop:null};let o={expandedOlder:ru(t.expandedOlder,e.scopeId)};if(e.scope==="family")return{patch:o,drop:s8(r,e.scopeId)};let i=new Set;for(let a of r.families)a.quietIgnoringOpen&&i.add(a.root.thread.id);let s=new Set(n?.rootIds??[]);return{patch:o,drop:a=>{let c=r.familyOf.get(a);return c!==void 0&&i.has(c.root.thread.id)&&s.has(c.root.thread.id)}}}function u8(e,t,n){let r=new Set(e.rootIds),o=i=>{let s=n.familyOf.get(i);return s!==void 0&&r.has(s.root.thread.id)};return e.collapsed?{patch:nu(e.descriptor,t)?nm(e.descriptor,t):{},drop:null}:e.userCollapsed?{patch:{},drop:o}:{patch:nm(e.descriptor,t),drop:o}}function l8(e,t){let n=[],r=[];for(let o of e)for(let i of[o.root,...o.descendants])!i.unread||i.thread.isArchived||(n.push(i.thread.id),ji(i.thread,t)&&r.push(i.thread.id));return{read:n,seen:r}}var rm={waitsOnYou:0,failed:0,offline:0,working:0,unread:0};function d8(e){let t={...rm};for(let n of e)for(let r of[n.root,...n.descendants]){if(r.thread.isArchived)continue;let o=r.attentionFlags;o.has("waits-on-you")&&(t.waitsOnYou+=1),(o.has("unread-failed")||o.has("queue-failed"))&&(t.failed+=1),o.has("offline")&&(t.offline+=1),r.flags.has("working")&&(t.working+=1),o.has("unread")&&(t.unread+=1)}return t}function p8(e,t){return{waitsOnYou:e.waitsOnYou+t.waitsOnYou,failed:e.failed+t.failed,offline:e.offline+t.offline,working:e.working+t.working,unread:e.unread+t.unread}}function f8(e,t){return{waitsOnYou:e.waitsOnYou,failed:e.failed,offline:e.offline,working:t.collapsed||t.more?e.working:0,unread:t.more?e.unread:0}}var M_=5,R_=3,h8="attention";function T_(e,t){return t===null?null:e.forest.infos.get(t)?.thread.displayTitle??null}function $_(e,t,n){let r=t.thread,o=n.thread;if(t===n)return null;switch(e.prefs.organizationMode){case"project":return r.projectId===o.projectId?null:`In project ${e.projectNames.get(r.projectId)??"another project"}`;case"chronological":return r.sectionId===o.sectionId?null:r.sectionId===null?"In Threads":`In section ${e.sectionNames.get(r.sectionId)??"another section"}`;case"machine":return(r.host?.id??null)===(o.host?.id??null)?null:r.host===null?"On no machine":`On machine ${r.host.name}`}}function A_(e,t,n){return t.parentId===null&&n!==null?e.forest.familyOf.get(t.thread.id)?.quiet??t.quiet:t.quiet}function iu(e,t,n,r){let o=!t.thread.isArchived&&t.attentionFlags.size>0;return{type:"thread",key:`thread:${t.thread.id}`,info:t,depth:r.depth,nested:r.nested,parentTitle:T_(e,t.parentId),chip:r.chip,bold:t.unread&&!e.attended,note:e.attended?null:e.drawnInAttention&&o?t.attentionNote:t.note,dimmed:A_(e,t,r.chip),hiddenBadge:t.thread.isHidden,crossGroupLabel:$_(e,t,n),homeGroupLabel:null,projectId:t.thread.projectId}}function D_(e,t){return(e.forest.children.get(t)??[]).map(n=>e.forest.infos.get(n)).filter(n=>!n.thread.isHidden||n.attentionFlags.size>0)}function om(e,t){return e.forest.subtrees.get(t)}function E_(e,t,n){let r=t.thread.id,o=D_(e,r),i=h=>e.revealIds.has(h.thread.id)||e.revealPath.has(h.thread.id),s=(h,g,k)=>g>0?{type:"older",key:`older:${h}:${r}`,scopeId:r,scope:h,count:g,expanded:k,depth:n}:null;if(!e.expandedChildren.has(r)){let h=o.filter(i),g=o.filter(k=>!i(k)&&!k.thread.isHidden).length;return{shown:h,older:h.length>0?s("reveal",g,!1):null}}let a=h=>h.quietIgnoringOpen&&om(e,h.thread.id).quietIgnoringOpen,c=new Set;for(let h of o)(h.thread.isHidden||!a(h))&&c.add(h.thread.id);let u=o.filter(h=>!c.has(h.thread.id)&&!h.thread.isHidden).sort((h,g)=>g.thread.createdAt-h.thread.createdAt).slice(0,R_);for(let h of u)c.add(h.thread.id);let l=e.expandedOlder.has(r),d=h=>c.has(h.thread.id)||i(h)||e.activePath.has(h.thread.id),m=o.filter(h=>!d(h)).length;return{shown:l?o:o.filter(d),older:s("family",m,l)}}function N_(e){let t=e.environment;return t===null?"Environment":t.name?t.name:t.branchName?t.branchName:t.path?t.path.split(/[\\/]/).filter(Boolean).pop()??"Environment":"Environment"}function g8(e,t,n){if(!e.prefs.environmentGrouping)return t.flatMap(s=>s.rows);let r=new Map;for(let s of t){let a=s.info.thread.environment;a?.isWorktree===!0&&a.id!==null&&r.set(a.id,(r.get(a.id)??0)+1)}let o=[],i=new Set;for(let s of t){let a=s.info.thread.environment,c=a?.isWorktree===!0?a.id:null;if(c===null||(r.get(c)??0)<2){o.push(...s.rows);continue}if(i.has(c))continue;i.add(c);let u=t.filter(m=>m.info.thread.environment?.id===c),l=e.collapsedEnvironments.has(c),d=new Set;for(let m of u)for(let f of m.flags)d.add(f);if(o.push({type:"environment",key:`environment:${c}:${s.info.thread.id}`,environmentId:c,label:N_(s.info.thread),environmentProviderId:a?.providerId??null,projectId:s.info.thread.projectId,sectionId:s.info.thread.sectionId,threadIds:u.map(m=>m.info.thread.id),collapsed:l,flag:l?q2(d):null,depth:n}),!l)for(let m of u)for(let f of m.rows)o.push({...f,depth:f.depth+1})}return o}function O_(e,t){let n=[];for(let r of t){let o=r.thread.providerId;if(!(r.thread.isHidden||o===e.thread.providerId||n.includes(o))&&(n.push(o),n.length===3))break}return n}function im(e,t,n){let r=om(e,t.thread.id);return r.visibleCount>0||r.descendants.some(i=>i.thread.isHidden&&i.attentionFlags.size>0)?{count:r.visibleCount,flag:q2(r.flags),expanded:n,providerIds:O_(t,r.descendants)}:null}function z_(e,t){let n=new Set([...t.attentionFlags,...om(e,t.thread.id).flags]);return t.flags.has("working")&&n.add("working"),n}function C8(e,t,n,r){let{shown:o,older:i}=E_(e,n,r),s=o.map(c=>({info:c,flags:z_(e,c),rows:[iu(e,c,t.root,{depth:r,nested:r>1,chip:im(e,c,e.expandedChildren.has(c.thread.id))}),...C8(e,t,c,r+1)]})),a=g8(e,s,r);return i!==null&&a.push(i),a}function k8(e,t){let n=t.root,r=im(e,n,e.expandedChildren.has(n.thread.id));return[iu(e,n,n,{depth:0,nested:!1,chip:r}),...C8(e,t,n,1)]}function Z_(e,t){return{info:t.root,rows:k8(e,t),flags:t.flags}}function m8(e){let t=e.attentionFlags;return t.has("waits-on-you")?0:t.has("unread-failed")||t.has("queue-failed")?1:t.has("offline")?2:t.has("unread")?3:4}function j_(e,t,n){let r={...e,drawnInAttention:!0,attended:dl(t,e.heldRootId)},o=t.root,i=new Set([o.thread.id]);for(let d of t.descendants)if(!(!(!d.thread.isArchived&&d.attentionFlags.size>0)&&!d.isActive)){i.add(d.thread.id);for(let f of uo(d.thread.id,r.forest.infos,o.thread.id))i.add(f)}if(r.expandedChildren.has(o.thread.id)){let d={...r,revealIds:new Set([...r.revealIds,...i])},[m,...f]=k8(d,t);return[{...m,homeGroupLabel:n},...f]}let a=im(r,o,!1),c=[{...iu(r,o,o,{depth:0,nested:!1,chip:a}),homeGroupLabel:n}],u=(d,m)=>{for(let f of r.forest.children.get(d)??[])i.has(f)&&(c.push(iu(r,r.forest.infos.get(f),o,{depth:m,nested:m>1,chip:null})),u(f,m+1))};u(o.thread.id,1);let l=t.descendants.filter(d=>!d.thread.isHidden&&!i.has(d.thread.id)).length;return l>0&&c.push({type:"left-out",key:`left-out:${o.thread.id}`,scopeId:o.thread.id,count:l,depth:1}),c}function W_(e,t,n){if(t.length===0)return null;let r=X2({field:e.prefs.chronologicalSort,direction:"default",workingFirst:e.prefs.workingFirst}),o=c=>e.held!==null&&c.root.thread.id===e.heldRootId?e.held:c,i=[...t].sort((c,u)=>{let l=o(c),d=o(u);return m8(l)-m8(d)||r({thread:l.root.thread,familyAttention:l.latestAttentionAt},{thread:d.root.thread,familyAttention:d.latestAttentionAt})}),s={},a=i.flatMap(c=>{let u=n(c),l=j_(e,c,u.label);for(let d of l)d.type==="thread"&&(s[d.info.thread.id]=u.id);return l});return{familyCount:i.filter(c=>!dl(c,e.heldRootId)).length,rows:a,homeGroupIds:s}}function F_(e,t,n,r,o){let i=d8(n),s=nu(t,e.prefs),a=r.some(k=>e.targets.has(k.root.thread.id)||k.descendants.some(v=>e.targets.has(v.thread.id))),c=s&&!a,u=t.id===At,l=[...r];u?l.sort((k,v)=>V4(k.root.thread,v.root.thread)):l.sort((k,v)=>e.compare({thread:k.root.thread,familyAttention:k.latestAttentionAt},{thread:v.root.thread,familyAttention:v.latestAttentionAt}));let d=l,m=null;if(!u&&e.prefs.foldOlder){let k=l.filter(M=>M.quietIgnoringOpen&&!M.root.thread.isArchived),v=rn(e.prefs.chronologicalSort)==="created",y=M=>v?M.root.thread.createdAt:M.latestAttentionAt,w=new Set([...k].sort((M,x)=>y(x)-y(M)).slice(0,M_)),T=k.filter(M=>!w.has(M)&&!M.containsActive);if(T.length>0){let M=e.expandedOlder.has(t.id)||T.some(A=>e.targets.has(A.root.thread.id)||A.descendants.some(V=>e.targets.has(V.thread.id))),x=new Set(T);M||(d=l.filter(A=>!x.has(A))),m={type:"older",key:`older:group:${t.id}`,scopeId:t.id,scope:"group",count:T.length,expanded:M,depth:0}}}let h=d.map(k=>Z_(e,k)),g=g8(e,h,0);return m!==null&&g.push(m),{descriptor:t,counters:i,userCollapsed:s,collapsed:c,hidden:o,rows:g,rootIds:n.map(k=>k.root.thread.id)}}function y8(e){let{forest:t,prefs:n}=e,r=new Set,o=new Set;for(let[x,A]of e.targets)if(!(A!=="reveal"||!t.infos.has(x))){r.add(x);for(let V of uo(x,t.infos))o.add(V)}let i=new Set;if(e.activeThreadId!==null&&t.infos.has(e.activeThreadId)){i.add(e.activeThreadId);for(let x of uo(e.activeThreadId,t.infos))i.add(x)}let s={...e,heldRootId:e.held?.root.thread.id??null,compare:X2({field:n.chronologicalSort,direction:n.sortDirection,workingFirst:n.workingFirst}),expandedChildren:new Set(n.expandedChildren),expandedOlder:new Set(n.expandedOlder),collapsedEnvironments:new Set(n.collapsedEnvironments),revealIds:r,revealPath:o,activePath:i,projectNames:new Map(e.projects.map(x=>[x.id,x.name])),sectionNames:new Map(e.sections.map(x=>[x.id,x.name])),drawnInAttention:!1,attended:!1},a=new Map,c=new Map,u=[],l=e.activeThreadId===null?null:t.familyOf.get(e.activeThreadId)?.root.thread.id??null;for(let x of t.families){let A=tu(x.root.thread,{mode:n.organizationMode,projects:e.projects}),V=a.get(A)??[];V.push(x),a.set(A,V),c.set(x,A),L5(x,s.heldRootId,l)&&u.push(x)}let d=new Set(u),m=rn(n.chronologicalSort)==="alpha",f=X4({mode:n.organizationMode,projects:e.projects,sections:e.sections,threads:e.threads},m),h=new Map(f.map(x=>[x.id,x]));h.set(At,em(At,e.projects)),h.set(wt,em(wt,e.projects));let g=Q4(n.organizationMode,n[Wi[n.organizationMode]],f.map(x=>x.id)),k=new Set(n.hiddenGroups),v=[],y=[],w=rm;for(let x of g){let A=h.get(x);if(A===void 0)continue;let V=a.get(x)??[],X=V.filter(W=>!d.has(W));if(X.length===0&&(x===At||x===wt&&n.organizationMode!=="chronological"))continue;let ie=x!==At&&k.has(x),re=F_(s,A,V,X,ie);ie?(y.push(re),w=p8(w,re.counters)):v.push(re)}let T=new Set;for(let x of e.threads)x.host!==null&&T.add(x.host.id);return{attention:W_(s,u,x=>h.get(c.get(x))),groups:v,more:y,moreCounters:w,order:g,multiHost:T.size>1}}function b8(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function V_(e,t){if(e.size!==t.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function su(e,t){if(Object.is(e,t))return e;if(Array.isArray(e)&&Array.isArray(t)){let n=e.length===t.length,r=t.map((o,i)=>{let s=i<e.length?su(e[i],o):o;return s!==e[i]&&(n=!1),s});return n?e:r}if(e instanceof Set&&t instanceof Set)return V_(e,t)?e:t;if(b8(e)&&b8(t)){let n=Object.keys(t),r=n.length===Object.keys(e).length,o={};for(let i of n){i in e||(r=!1);let s=i in e?su(e[i],t[i]):t[i];s!==e[i]&&(r=!1),o[i]=s}return r?e:o}return t}function w8(e,t){let n=new Map(e.map(i=>[i.key,i])),r=e.length===t.length,o=t.map((i,s)=>{let a=n.get(i.key),c=a===void 0?i:su(a,i);return c!==e[s]&&(r=!1),c});return r?e:o}function sm(e,t,n){let r={...t},o=e,i=Object.keys(r).length===Object.keys(o).length;for(let s of Object.keys(r))s in o||(i=!1),r[s]=s in n?n[s]:su(o[s],r[s]),r[s]!==o[s]&&(i=!1);return i?e:r}function H_(e,t){return e.length===t.length&&t.every((n,r)=>n===e[r])}function v8(e,t,n){let r=n.map(o=>{let i=t.get(o.descriptor.id);return i===void 0?o:sm(i,o,{rows:w8(i.rows,o.rows)})});return H_(e,r)?e:r}function B_(e,t){return e===null||t===null?t:sm(e,t,{rows:w8(e.rows,t.rows)})}function x8(e,t){if(e===null)return t;let n=new Map([...e.groups,...e.more].map(r=>[r.descriptor.id,r]));return sm(e,t,{attention:B_(e.attention,t.attention),groups:v8(e.groups,n,t.groups),more:v8(e.more,n,t.more)})}var au=we({now:0,stamps:{startedAt:{},finishedAt:{},pendingAt:{},seenAt:{}},notes:{},familyOf:()=>{}});var am=globalThis.__bbPluginRuntime;if(am==null||am.radixAlertDialog==null)throw new Error('Cannot load "@radix-ui/react-alert-dialog": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var cu=am.radixAlertDialog,a$="default"in cu?cu.default:cu,{Action:cm,AlertDialog:c$,AlertDialogAction:u$,AlertDialogCancel:l$,AlertDialogContent:d$,AlertDialogDescription:p$,AlertDialogOverlay:f$,AlertDialogPortal:m$,AlertDialogTitle:h$,AlertDialogTrigger:g$,Cancel:um,Content:lm,Description:dm,Overlay:pm,Portal:I8,Root:_8,Title:fm,Trigger:U_,createAlertDialogScope:C$}=cu;var S8=_8;var K_=I8,L8=H(({className:e,...t},n)=>p(pm,{className:I("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n,...Ee()}));L8.displayName=pm.displayName;var mm=H(({className:e,...t},n)=>S(K_,{children:[p(L8,{}),p(lm,{ref:n,...Ee(),className:I("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));mm.displayName=lm.displayName;var hm=({className:e,...t})=>p("div",{className:I("flex flex-col space-y-2 text-center sm:text-left",e),...t});hm.displayName="AlertDialogHeader";var gm=({className:e,...t})=>p("div",{className:I("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});gm.displayName="AlertDialogFooter";var Cm=H(({className:e,...t},n)=>p(fm,{ref:n,className:I("text-lg font-semibold",e),...t}));Cm.displayName=fm.displayName;var km=H(({className:e,...t},n)=>p(dm,{ref:n,className:I("text-sm text-muted-foreground",e),...t}));km.displayName=dm.displayName;var ym=H(({className:e,...t},n)=>p(cm,{ref:n,className:I($s(),e),...t}));ym.displayName=cm.displayName;var bm=H(({className:e,...t},n)=>p(um,{ref:n,className:I($s({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));bm.displayName=um.displayName;var vm=globalThis.__bbPluginRuntime;if(vm==null||vm.radixDialog==null)throw new Error('Cannot load "@radix-ui/react-dialog": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var uu=vm.radixDialog,x$="default"in uu?uu.default:uu,{Close:wm,Content:P8,Description:xm,Dialog:I$,DialogClose:_$,DialogContent:S$,DialogDescription:L$,DialogOverlay:P$,DialogPortal:M$,DialogTitle:R$,DialogTrigger:T$,Overlay:Im,Portal:M8,Root:R8,Title:T8,Trigger:$8,WarningProvider:$$,createDialogScope:A$}=uu;var J_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},Fi=H(({color:e="currentColor",size:t=24,strokeWidth:n,absoluteStrokeWidth:r=!1,className:o="",altIcon:i,showAlt:s=!1,icon:a,primaryColor:c,secondaryColor:u,disableSecondaryOpacity:l=!1,...d},m)=>{let f=n!==void 0?r?Number(n)*24/Number(t):n:void 0,h=f!==void 0?{strokeWidth:f,stroke:"currentColor"}:{},g={ref:m,...J_,width:t,height:t,color:c||e,className:o,...h,...d},v=[...s&&i?i:a].sort(([,y],[,w])=>{let T=y.opacity!==void 0;return w.opacity!==void 0?1:T?-1:0}).map(([y,w])=>{let T=w.opacity!==void 0,M=T&&!l?w.opacity:void 0,x=u?{...w.stroke!==void 0?{stroke:T?u:c||e}:{fill:T?u:c||e}}:{};return _o(y,{...w,...h,...x,opacity:M,key:w.key})});return _o("svg",g,v)});Fi.displayName="HugeiconsIcon";var A8=[["path",{d:"M13.9248 21H10.0752C5.44476 21 3.12955 21 2.27636 19.4939C1.42317 17.9879 2.60736 15.9914 4.97574 11.9985L6.90057 8.75333C9.17559 4.91778 10.3131 3 12 3C13.6869 3 14.8244 4.91777 17.0994 8.75332L19.0243 11.9985C21.3926 15.9914 22.5768 17.9879 21.7236 19.4939C20.8704 21 18.5552 21 13.9248 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 9V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var D8=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var E8=[["path",{d:"M21 7H3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H13C16.7712 21 18.6569 21 19.8284 19.8284C21 18.6569 21 16.7712 21 13V7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 7H3L4.2 5.4C5.08328 4.22229 5.52492 3.63344 6.15836 3.31672C6.7918 3 7.52786 3 9 3H15C16.4721 3 17.2082 3 17.8416 3.31672C18.4751 3.63344 18.9167 4.22229 19.8 5.4L21 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 17L12 10.5M9 14.5C9.58984 15.1068 11.1597 17.5 12 17.5C12.8403 17.5 14.4102 15.1068 15 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var N8=[["path",{d:"M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var O8=[["path",{d:"M15 6C15 6 9.00001 10.4189 9 12C8.99999 13.5812 15 18 15 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var z8=[["path",{d:"M9.00005 6C9.00005 6 15 10.4189 15 12C15 13.5812 9 18 9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var Z8=[["path",{d:"M13 7H11C8.19108 7 6.78661 7 5.77772 7.67412C5.34096 7.96596 4.96596 8.34096 4.67412 8.77772C4 9.78661 4 11.1911 4 14C4 16.8089 4 18.2134 4.67412 19.2223C4.96596 19.659 5.34096 20.034 5.77772 20.3259C6.78661 21 8.19108 21 11 21H13C15.8089 21 17.2134 21 18.2223 20.3259C18.659 20.034 19.034 19.659 19.3259 19.2223C20 18.2134 20 16.8089 20 14C20 11.1911 20 9.78661 19.3259 8.77772C19.034 8.34096 18.659 7.96596 18.2223 7.67412C17.2134 7 15.8089 7 13 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 14H2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 17H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M22 14H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M15 11V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M9 11V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M12 7C12 5.11438 12 4.17157 11.4142 3.58579C10.8284 3 9.88562 3 8 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]];var _m=[["path",{d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C10.3719 21.5 8.8394 21.0904 7.5 20.3687C5.63177 19.362 4.37462 20.2979 3.26592 20.4658C3.09774 20.4913 2.93024 20.4302 2.80997 20.31C2.62741 20.1274 2.59266 19.8451 2.6935 19.6074C3.12865 18.5818 3.5282 16.6382 2.98341 15C2.6698 14.057 2.5 13.0483 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5 12H8.5M12 8.5V15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var j8=[["path",{d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C10.3719 21.5 8.8394 21.0904 7.5 20.3687C5.63177 19.362 4.37462 20.2979 3.26592 20.4658C3.09774 20.4913 2.93024 20.4302 2.80997 20.31C2.62741 20.1274 2.59266 19.8451 2.6935 19.6074C3.12865 18.5818 3.5282 16.6382 2.98341 15C2.6698 14.057 2.5 13.0483 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.1257 12H12.0007M8.125 12H8M16.125 12H16M12.2507 12C12.2507 12.1381 12.1388 12.25 12.0007 12.25C11.8627 12.25 11.7507 12.1381 11.7507 12C11.7507 11.8619 11.8627 11.75 12.0007 11.75C12.1388 11.75 12.2507 11.8619 12.2507 12ZM8.25 12C8.25 12.1381 8.13807 12.25 8 12.25C7.86193 12.25 7.75 12.1381 7.75 12C7.75 11.8619 7.86193 11.75 8 11.75C8.13807 11.75 8.25 11.8619 8.25 12ZM16.25 12C16.25 12.1381 16.1381 12.25 16 12.25C15.8619 12.25 15.75 12.1381 15.75 12C15.75 11.8619 15.8619 11.75 16 11.75C16.1381 11.75 16.25 11.8619 16.25 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var W8=[["path",{d:"M3.01309 4.99084C2.89323 6.05084 3.55249 8.42285 6.48923 8.42285",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.5951 8.38081C18.8357 8.57881 21.1132 7.49881 20.9957 5.00281",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.9928 20.9989C21.0528 19.9429 20.1777 17.5549 17.599 17.4229",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M6.45163 17.4708C5.65013 17.2308 3.01306 18.3348 3.01306 20.9988",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M9.3299 6.11884C9.35388 5.09884 9.84533 2.99884 12.0029 2.99884C13.9208 2.99884 14.5861 4.61884 14.676 6.11884M6.26131 9.41884C6.38118 8.63884 7.29216 6.81484 9.36586 6.63484C11.4635 6.55564 14.3403 6.58684 14.8797 6.67084C15.5869 6.73377 17.2951 7.43884 17.7506 9.41884C17.9124 10.4388 17.8285 11.8788 17.8524 12.7188C17.8165 13.5588 17.9207 15.2623 17.7565 16.1388C17.6367 17.0988 16.9894 18.4668 16.1024 19.3068C14.7838 20.7228 11.1639 22.2108 8.03534 19.4508C6.41713 17.8908 6.30925 16.3788 6.18939 15.7788C6.15725 15.4571 6.15875 13.8763 6.16541 12.3588C6.14144 11.046 6.17235 9.78063 6.26131 9.41884Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M3.01306 12.8988H5.9498",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M20.9929 12.8988L18.1161 12.8988",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M12.0033 16.4988L12.0033 20.2788",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}]];var lu=[["path",{d:"M18 6L6.00081 17.9992M17.9992 18L6 6.00085",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var F8=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.9994 15L9 9M9.00064 15L15 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var V8=[["path",{d:"M11 6L21 6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 18L21 18",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 7.39286C3 7.39286 4 8.04466 4.5 9C4.5 9 6 5.25 8 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M3 18.3929C3 18.3929 4 19.0447 4.5 20C4.5 20 6 16.25 8 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];var H8=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12.5L10.5 15L16 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var B8=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var Sm=[["path",{d:"M7.5 7.5L8.72654 8.55719C9.24218 9.00163 9.5 9.22386 9.5 9.5C9.5 9.77614 9.24218 9.99836 8.72654 10.4428L7.5 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.5 12.5H15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 21C15.7497 21 17.6246 21 18.9389 20.0451C19.3634 19.7367 19.7367 19.3634 20.0451 18.9389C21 17.6246 21 15.7497 21 12C21 8.25027 21 6.3754 20.0451 5.06107C19.7367 4.6366 19.3634 4.26331 18.9389 3.95491C17.6246 3 15.7497 3 12 3C8.25027 3 6.3754 3 5.06107 3.95491C4.6366 4.26331 4.26331 4.6366 3.95491 5.06107C3 6.3754 3 8.25027 3 12C3 15.7497 3 17.6246 3.95491 18.9389C4.26331 19.3634 4.6366 19.7367 5.06107 20.0451C6.3754 21 8.25027 21 12 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var U8=[["path",{d:"M7.5 14.5C7.5 11.2002 7.5 9.55025 8.52513 8.52513C9.55025 7.5 11.2002 7.5 14.5 7.5C17.7998 7.5 19.4497 7.5 20.4749 8.52513C21.5 9.55025 21.5 11.2002 21.5 14.5C21.5 17.7998 21.5 19.4497 20.4749 20.4749C19.4497 21.5 17.7998 21.5 14.5 21.5C11.2002 21.5 9.55025 21.5 8.52513 20.4749C7.5 19.4497 7.5 17.7998 7.5 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 16.5C6.10355 16.5 5.40533 16.5 4.84402 16.3036C3.83866 15.9518 3.0482 15.1613 2.69641 14.156C2.5 13.5947 2.5 12.8964 2.5 11.5V9.5C2.5 6.20017 2.5 4.55025 3.52513 3.52513C4.55025 2.5 6.20017 2.5 9.5 2.5H11.5C12.8964 2.5 13.5947 2.5 14.156 2.69641C15.1613 3.0482 15.9518 3.83866 16.3036 4.84402C16.5 5.40533 16.5 6.10355 16.5 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var G8=[["path",{d:"M14 2.20004C13.3538 2.06886 12.6849 2 12 2C11.3151 2 10.6462 2.06886 10 2.20004M21.8 10C21.9311 10.6462 22 11.3151 22 12C22 12.6849 21.9311 13.3538 21.8 14M14 21.8C13.3538 21.9311 12.6849 22 12 22C11.3151 22 10.6462 21.9311 10 21.8M2.20004 14C2.06886 13.3538 2 12.6849 2 12C2 11.3151 2.06886 10.6462 2.20004 10M17.5 3.64702C18.6332 4.39469 19.6053 5.36678 20.353 6.5M20.353 17.5C19.6053 18.6332 18.6332 19.6053 17.5 20.353M6.5 20.353C5.36678 19.6053 4.39469 18.6332 3.64702 17.5M3.64702 6.5C4.39469 5.36678 5.36678 4.39469 6.5 3.64702",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var K8=[["path",{d:"M19.5 5.5L18.8803 15.5251C18.7219 18.0864 18.6428 19.3671 18.0008 20.2879C17.6833 20.7431 17.2747 21.1273 16.8007 21.416C15.8421 22 14.559 22 11.9927 22C9.42312 22 8.1383 22 7.17905 21.4149C6.7048 21.1257 6.296 20.7408 5.97868 20.2848C5.33688 19.3626 5.25945 18.0801 5.10461 15.5152L4.5 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 5.5H21M16.0557 5.5L15.3731 4.09173C14.9196 3.15626 14.6928 2.68852 14.3017 2.39681C14.215 2.3321 14.1231 2.27454 14.027 2.2247C13.5939 2 13.0741 2 12.0345 2C10.9688 2 10.436 2 9.99568 2.23412C9.8981 2.28601 9.80498 2.3459 9.71729 2.41317C9.32164 2.7167 9.10063 3.20155 8.65861 4.17126L8.05292 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M9.5 16.5L9.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14.5 16.5L14.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]];var q8=[["path",{d:"M2.99969 17.0002C2.99969 17.9302 2.99969 18.3952 3.10192 18.7767C3.37932 19.8119 4.18796 20.6206 5.22324 20.898C5.60474 21.0002 6.06972 21.0002 6.99969 21.0002L16.9997 21.0002C17.9297 21.0002 18.3947 21.0002 18.7762 20.898C19.8114 20.6206 20.6201 19.8119 20.8975 18.7767C20.9997 18.3952 20.9997 17.9302 20.9997 17.0002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.4998 11.5002C16.4998 11.5002 13.1856 16.0002 11.9997 16.0002C10.8139 16.0002 7.49976 11.5002 7.49976 11.5002M11.9997 15.0002V3.00016",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var J8=[["path",{d:"M14.0737 3.88545C14.8189 3.07808 15.1915 2.6744 15.5874 2.43893C16.5427 1.87076 17.7191 1.85309 18.6904 2.39232C19.0929 2.6158 19.4769 3.00812 20.245 3.79276C21.0131 4.5774 21.3972 4.96972 21.6159 5.38093C22.1438 6.37312 22.1265 7.57479 21.5703 8.5507C21.3398 8.95516 20.9446 9.33578 20.1543 10.097L10.7506 19.1543C9.25288 20.5969 8.504 21.3182 7.56806 21.6837C6.63212 22.0493 5.6032 22.0224 3.54536 21.9686L3.26538 21.9613C2.63891 21.9449 2.32567 21.9367 2.14359 21.73C1.9615 21.5234 1.98636 21.2043 2.03608 20.5662L2.06308 20.2197C2.20301 18.4235 2.27297 17.5255 2.62371 16.7182C2.97444 15.9109 3.57944 15.2555 4.78943 13.9445L14.0737 3.88545Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4L20 11",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14 22L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var Y8=[["path",{d:"M3 7H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 17H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 17L21 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15 7L21 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M6 7C6 6.06812 6 5.60218 6.15224 5.23463C6.35523 4.74458 6.74458 4.35523 7.23463 4.15224C7.60218 4 8.06812 4 9 4C9.93188 4 10.3978 4 10.7654 4.15224C11.2554 4.35523 11.6448 4.74458 11.8478 5.23463C12 5.60218 12 6.06812 12 7C12 7.93188 12 8.39782 11.8478 8.76537C11.6448 9.25542 11.2554 9.64477 10.7654 9.84776C10.3978 10 9.93188 10 9 10C8.06812 10 7.60218 10 7.23463 9.84776C6.74458 9.64477 6.35523 9.25542 6.15224 8.76537C6 8.39782 6 7.93188 6 7Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M12 17C12 16.0681 12 15.6022 12.1522 15.2346C12.3552 14.7446 12.7446 14.3552 13.2346 14.1522C13.6022 14 14.0681 14 15 14C15.9319 14 16.3978 14 16.7654 14.1522C17.2554 14.3552 17.6448 14.7446 17.8478 15.2346C18 15.6022 18 16.0681 18 17C18 17.9319 18 18.3978 17.8478 18.7654C17.6448 19.2554 17.2554 19.6448 16.7654 19.8478C16.3978 20 15.9319 20 15 20C14.0681 20 13.6022 20 13.2346 19.8478C12.7446 19.6448 12.3552 19.2554 12.1522 18.7654C12 18.3978 12 17.9319 12 17Z",stroke:"currentColor",strokeWidth:"1.5",key:"5"}]];var X8=[["path",{d:"M13 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 13V21M22 17H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var Q8=[["path",{d:"M19 21C19.6068 20.4102 22 18.8403 22 18C22 17.1597 19.6068 15.5898 19 15M21 18H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 21C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12V13",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]];var eg=[["path",{d:"M8 6.50116H16.75C18.8567 6.50116 19.91 6.50116 20.6667 7.0069C20.9943 7.22584 21.2755 7.50717 21.4944 7.83484C22 8.59173 22 9.64538 22 11.7527C22 12.0122 22 12.2621 21.9997 12.5029M12 6.50116L11.3666 5.23392C10.8418 4.18406 10.3622 3.1273 9.19926 2.69106C8.6899 2.5 8.10802 2.5 6.94427 2.5C5.1278 2.5 4.21956 2.5 3.53806 2.88043C3.05227 3.15161 2.65142 3.55257 2.38032 4.03851C2 4.72021 2 5.62871 2 7.44571V10.5023C2 15.2177 2 17.5754 3.46447 19.0403C4.70529 20.2815 6.58687 20.4711 10 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"14",cy:"12.5",r:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"20",cy:"18.5",r:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18 18.5C15.7909 18.5 14 16.7091 14 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14 14.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];Lm();var tg=[["path",{d:"M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C22 9.08996 22 10.1433 22 12.25C22 15.7612 22 17.5167 21.1573 18.7779C20.7926 19.3238 20.3238 19.7926 19.7779 20.1573C18.5167 21 16.7612 21 13.25 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}]];var ng=[["path",{d:"M8.00164 6.50013H16.754C18.8613 6.50013 19.9149 6.50013 20.6718 7.00574C20.9995 7.22462 21.2808 7.50588 21.4997 7.83346C21.8937 8.42301 21.9808 9.19265 22 10.5003M12.0027 6.50013L11.3691 5.23321C10.8442 4.18363 10.3645 3.12714 9.20122 2.69101C8.69172 2.5 8.10969 2.5 6.94562 2.5C5.12865 2.5 4.22017 2.5 3.53848 2.88033C3.05255 3.15144 2.6516 3.5523 2.38042 4.03811C2 4.71963 2 5.6279 2 7.44443V10.5003C2 15.2145 2 17.5716 3.46487 19.0361C4.82227 20.3931 6.94628 20.4927 11.0025 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.4649 15C20.7733 13.8044 19.4806 13 18 13C16.4726 13 15.1451 13.8561 14.4713 15.1147M14.5351 19C15.2267 20.1956 16.5194 21 18 21C19.5227 21 20.8467 20.1492 21.5224 18.897M17 15.5H16C15.0572 15.5 14.5858 15.5 14.2929 15.2071C14 14.9142 14 14.4428 14 13.5V12.5M19 18.5H20C20.9428 18.5 21.4142 18.5 21.7071 18.7929C22 19.0858 22 19.5572 22 20.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var rg=[["path",{d:"M15.0244 21H12.0222C7.29769 21 4.93543 21 3.46772 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38116 4.53806C2.65287 4.05227 3.0546 3.65142 3.54148 3.38032C4.22449 3 5.13474 3 6.95525 3C8.12158 3 8.70475 3 9.21524 3.19101C10.3808 3.62712 10.8614 4.68358 11.3874 5.73313L12.0222 7M8.01332 7H16.7827C18.8941 7 19.9498 7 20.7081 7.50559C21.0364 7.72447 21.3183 8.00572 21.5377 8.33329C21.8193 8.75388 21.9444 9.26614 22 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.9961 14C15.9961 12.6193 17.1159 11.5 18.4973 11.5C19.8786 11.5 20.9984 12.6193 20.9984 14C20.9984 14.8571 20.5668 15.6135 19.9091 16.0639C19.2259 16.5317 18.4985 17.172 18.5 18M18.625 20.75H18.5M18.75 20.75C18.75 20.8881 18.6381 21 18.5 21C18.3619 21 18.25 20.8881 18.25 20.75C18.25 20.6119 18.3619 20.5 18.5 20.5C18.6381 20.5 18.75 20.6119 18.75 20.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var og=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.5 9.5C9.5 8.11929 10.6193 7 12 7C13.3807 7 14.5 8.11929 14.5 9.5C14.5 10.3569 14.0689 11.1131 13.4117 11.5636C12.7283 12.0319 12 12.6716 12 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var ig=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 16V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 8.25H12M12.25 8.25C12.25 8.11193 12.1381 8 12 8C11.8619 8 11.75 8.11193 11.75 8.25C11.75 8.38807 11.8619 8.5 12 8.5C12.1381 8.5 12.25 8.38807 12.25 8.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var sg=[["path",{d:"M12 3V6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 18V21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 12L18 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M6 12L3 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M18.3635 5.63672L16.2422 7.75804",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M7.75804 16.2422L5.63672 18.3635",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M18.3635 18.3635L16.2422 16.2422",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M7.75804 7.75804L5.63672 5.63672",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}]];var ag=[["path",{d:"M12 20.5C19.1328 20.5 22 16.4706 22 11.5C22 6.52944 20.1328 2.5 12 2.5C4.13281 2.5 2 6.52944 2 11.5C2 13.5712 2.37034 15.4791 3.37161 17C4.63281 19 3.99253 20.8333 3 21.5C4.61547 21.5 5.70211 20.9858 6.39239 20.4766C6.88252 20.115 7.50688 19.9364 8.0984 20.0815C9.20689 20.3533 10.4991 20.5 12 20.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 9C10 7.89543 10.8954 7 12 7C13.1046 7 14 7.89543 14 9C14 9.57777 13.755 10.0983 13.3632 10.4634C12.7572 11.0282 12 11.6716 12 12.5M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var cg=[["path",{d:"M6.00449 12.5V12M18.0045 12.5V12M12.0045 12.5V12M7.00449 12.5C7.00449 11.9477 6.55677 11.5 6.00449 11.5C5.4522 11.5 5.00449 11.9477 5.00449 12.5C5.00449 13.0523 5.4522 13.5 6.00449 13.5C6.55677 13.5 7.00449 13.0523 7.00449 12.5ZM19.0045 12.5C19.0045 11.9477 18.5568 11.5 18.0045 11.5C17.4522 11.5 17.0045 11.9477 17.0045 12.5C17.0045 13.0523 17.4522 13.5 18.0045 13.5C18.5568 13.5 19.0045 13.0523 19.0045 12.5ZM13.0045 12.5C13.0045 11.9477 12.5568 11.5 12.0045 11.5C11.4522 11.5 11.0045 11.9477 11.0045 12.5C11.0045 13.0523 11.4522 13.5 12.0045 13.5C12.5568 13.5 13.0045 13.0523 13.0045 12.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var ug=[["path",{d:"M17 17L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C15.4183 19 19 15.4183 19 11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var lg=[["path",{d:"M21.3175 7.14139L20.8239 6.28479C20.4506 5.63696 20.264 5.31305 19.9464 5.18388C19.6288 5.05472 19.2696 5.15664 18.5513 5.36048L17.3311 5.70418C16.8725 5.80994 16.3913 5.74994 15.9726 5.53479L15.6357 5.34042C15.2766 5.11043 15.0004 4.77133 14.8475 4.37274L14.5136 3.37536C14.294 2.71534 14.1842 2.38533 13.9228 2.19657C13.6615 2.00781 13.3143 2.00781 12.6199 2.00781H11.5051C10.8108 2.00781 10.4636 2.00781 10.2022 2.19657C9.94085 2.38533 9.83106 2.71534 9.61149 3.37536L9.27753 4.37274C9.12465 4.77133 8.84845 5.11043 8.48937 5.34042L8.15249 5.53479C7.73374 5.74994 7.25259 5.80994 6.79398 5.70418L5.57375 5.36048C4.85541 5.15664 4.49625 5.05472 4.17867 5.18388C3.86109 5.31305 3.67445 5.63696 3.30115 6.28479L2.80757 7.14139C2.45766 7.74864 2.2827 8.05227 2.31666 8.37549C2.35061 8.69871 2.58483 8.95918 3.05326 9.48012L4.0843 10.6328C4.3363 10.9518 4.51521 11.5078 4.51521 12.0077C4.51521 12.5078 4.33636 13.0636 4.08433 13.3827L3.05326 14.5354C2.58483 15.0564 2.35062 15.3168 2.31666 15.6401C2.2827 15.9633 2.45766 16.2669 2.80757 16.8741L3.30114 17.7307C3.67443 18.3785 3.86109 18.7025 4.17867 18.8316C4.49625 18.9608 4.85542 18.8589 5.57377 18.655L6.79394 18.3113C7.25263 18.2055 7.73387 18.2656 8.15267 18.4808L8.4895 18.6752C8.84851 18.9052 9.12464 19.2442 9.2775 19.6428L9.61149 20.6403C9.83106 21.3003 9.94085 21.6303 10.2022 21.8191C10.4636 22.0078 10.8108 22.0078 11.5051 22.0078H12.6199C13.3143 22.0078 13.6615 22.0078 13.9228 21.8191C14.1842 21.6303 14.294 21.3003 14.5136 20.6403L14.8476 19.6428C15.0004 19.2442 15.2765 18.9052 15.6356 18.6752L15.9724 18.4808C16.3912 18.2656 16.8724 18.2055 17.3311 18.3113L18.5513 18.655C19.2696 18.8589 19.6288 18.9608 19.9464 18.8316C20.264 18.7025 20.4506 18.3785 20.8239 17.7307L21.3175 16.8741C21.6674 16.2669 21.8423 15.9633 21.8084 15.6401C21.7744 15.3168 21.5402 15.0564 21.0718 14.5354L20.0407 13.3827C19.7887 13.0636 19.6098 12.5078 19.6098 12.0077C19.6098 11.5078 19.7888 10.9518 20.0407 10.6328L21.0718 9.48012C21.5402 8.95918 21.7744 8.69871 21.8084 8.37549C21.8423 8.05227 21.6674 7.74864 21.3175 7.14139Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5195 12C15.5195 13.933 13.9525 15.5 12.0195 15.5C10.0865 15.5 8.51953 13.933 8.51953 12C8.51953 10.067 10.0865 8.5 12.0195 8.5C13.9525 8.5 15.5195 10.067 15.5195 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]];var dg=[["path",{d:"M2 12C2 8.31087 2 6.4663 2.81382 5.15877C3.1149 4.67502 3.48891 4.25427 3.91891 3.91554C5.08116 3 6.72077 3 10 3H14C17.2792 3 18.9188 3 20.0811 3.91554C20.5111 4.25427 20.8851 4.67502 21.1862 5.15877C22 6.4663 22 8.31087 22 12C22 15.6891 22 17.5337 21.1862 18.8412C20.8851 19.325 20.5111 19.7457 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7457 3.1149 19.325 2.81382 18.8412C2 17.5337 2 15.6891 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.5 3L9.5 21",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5 7H6M5 10H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var pg=[["path",{d:"M3.99963 5.00055L9.99963 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.9996 5.00031L19.9996 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.9996 9.00031L15.9996 15.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M9.99963 2.00031L9.99963 8.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11.9996 16.0003L11.9996 22.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M15.9996 12.0001L19.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M3.99963 12.0005L12.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M11.9996 19.0003L19.9996 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}],["path",{d:"M3.99963 19.0005L8.99963 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"8"}]];var fg=[["path",{d:"M17 8L18.8398 9.85008C19.6133 10.6279 20 11.0168 20 11.5C20 11.9832 19.6133 12.3721 18.8398 13.1499L17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8L5.16019 9.85008C4.38673 10.6279 4 11.0168 4 11.5C4 11.9832 4.38673 12.3721 5.16019 13.1499L7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 4L9.5 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var mg=[["path",{d:"M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 2.20004C13.3538 2.06886 12.6849 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 11.3151 21.9311 10.6462 21.8 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.0303 11.9625L16.5832 7.4096M19.7404 4.34462L19.1872 2.35748C19.0853 2.03011 18.6914 1.89965 18.4259 2.11662C16.9898 3.29018 15.4254 4.87091 16.703 7.36419C19.2771 8.56455 20.7466 6.94584 21.8733 5.5853C22.0975 5.3146 21.9623 4.90767 21.6247 4.81005L19.7404 4.34462Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var hg=[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var gg=[["path",{d:"M3 15V14H21V15C21 17.8284 21 19.2426 20.1213 20.1213C19.2426 21 17.8284 21 15 21H9C6.17157 21 4.75736 21 3.87868 20.1213C3 19.2426 3 17.8284 3 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 14L3.00001 12.9999C3.00003 11.5278 3.00004 10.7918 3.31675 10.1584C3.63347 9.52493 4.22231 9.08329 5.39999 8.20002C6.19297 7.60528 6.58946 7.30791 7.05132 7.15395C7.51317 7 8.00879 7 9.00002 7H15C15.9912 7 16.4868 7 16.9487 7.15395C17.4105 7.3079 17.807 7.60527 18.6 8.2C19.7777 9.08328 20.3666 9.52492 20.6833 10.1584C21 10.7918 21 11.5279 21 13V14H3Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 12V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8 12V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M8.49997 7.00006V6.50006C8.49997 5.0956 8.49997 4.39337 8.83703 3.88892C8.98295 3.67054 9.17045 3.48304 9.38883 3.33712C9.89328 3.00006 10.5955 3.00006 12 3.00006C13.4044 3.00006 14.1067 3.00006 14.6111 3.33712C14.8295 3.48304 15.017 3.67054 15.1629 3.88892C15.5 4.39337 15.5 5.0956 15.5 6.50006V7.00006",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];var Cg=[["path",{d:"M20.0004 10.9826C20.6281 10.1316 21 9.07385 21 7.92761C21 5.11556 18.7614 2.83594 16 2.83594C14.0209 2.83594 12.3104 4.00687 11.5 5.70554",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.6364 21.1658H9.36364C6.67794 21.1658 5.33509 21.1658 4.40253 20.4549C4.13533 20.2512 3.89812 20.0096 3.69811 19.7375C3 18.7879 3 17.4204 3 14.6855C3 13.1226 3 12.3412 3.39892 11.7986C3.51321 11.6431 3.64876 11.505 3.80144 11.3887C4.33434 10.9824 5.10168 10.9824 6.63636 10.9824H17.3636C18.8983 10.9824 19.6657 10.9824 20.1986 11.3887C20.3512 11.505 20.4868 11.6431 20.6011 11.7986C21 12.3412 21 13.1226 21 14.6855C21 17.4204 21 18.7879 20.3019 19.7375C20.1019 20.0096 19.8647 20.2512 19.5975 20.4549C18.6649 21.1658 17.3221 21.1658 14.6364 21.1658Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 15.0547H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M13.6858 10.9826L13.335 10.1564C13.2474 9.94999 13.2565 9.71349 13.3595 9.51989L14.9144 6.59747C15.1776 6.10273 14.7982 5.48558 14.2636 5.53902L11.1099 5.85432C10.9004 5.87526 10.692 5.78776 10.5492 5.6189L8.39732 3.07491C8.03241 2.64349 7.37203 2.82539 7.26584 3.38656L6.63969 6.69573C6.59813 6.91538 6.46021 7.09827 6.26863 7.18779L3.38401 8.53572C2.89509 8.76418 2.86669 9.49366 3.33529 9.78682L5.24666 10.9826",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]];var kg=[["path",{d:"M3 20.5002C3.28417 16.8058 6.3 13.7193 10.0008 13.5379C10.3134 13.5226 10.6446 13.5097 11 13.5L11.995 13.5663C12.6939 13.6129 13.3665 13.7543 14 13.9777",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 15.5V21.5M21 18.5L15 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"11",cy:"6.5",r:"4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var yg=[["path",{d:"M5.25 5L19.25 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22.25 12C22.25 6.47715 17.7728 2 12.25 2C6.72715 2 2.25 6.47715 2.25 12C2.25 17.5228 6.72715 22 12.25 22C17.7728 22 22.25 17.5228 22.25 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]];var bg=[["path",{d:"M15 5C15 6.65685 13.6569 8 12 8C10.3431 8 9 6.65685 9 5C9 3.34315 10.3431 2 12 2C13.6569 2 15 3.34315 15 5Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V9M12 9C12 9.93188 12 10.3978 12.1776 10.7654C12.4144 11.2554 12.8687 11.6448 13.4404 11.8478C13.8692 12 14.4128 12 15.5 12C16.5872 12 17.1308 12 17.5596 12.1522C18.1313 12.3552 18.5856 12.7446 18.8224 13.2346C19 13.6022 19 14.0681 19 15V16M12 9C12 9.93188 12 10.3978 11.8224 10.7654C11.5856 11.2554 11.1313 11.6448 10.5596 11.8478C10.1308 12 9.5872 12 8.5 12C7.4128 12 6.8692 12 6.44041 12.1522C5.86867 12.3552 5.41443 12.7446 5.17761 13.2346C5 13.6022 5 14.0681 5 15V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M8 19C8 20.6569 6.65685 22 5 22C3.34315 22 2 20.6569 2 19C2 17.3431 3.34315 16 5 16C6.65685 16 8 17.3431 8 19Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M22 19C22 20.6569 20.6569 22 19 22C17.3431 22 16 20.6569 16 19C16 17.3431 17.3431 16 19 16C20.6569 16 22 17.3431 22 19Z",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]];var vg=[["path",{d:"M8.62814 12.6736H8.16918C6.68545 12.6736 5.94358 12.6736 5.62736 12.1844C5.31114 11.6953 5.61244 11.0138 6.21504 9.65083L8.02668 5.55323C8.57457 4.314 8.84852 3.69438 9.37997 3.34719C9.91142 3 10.5859 3 11.935 3H14.0244C15.6632 3 16.4826 3 16.7916 3.53535C17.1007 4.0707 16.6942 4.78588 15.8811 6.21623L14.8092 8.10188C14.405 8.81295 14.2029 9.16849 14.2057 9.45952C14.2094 9.83775 14.4105 10.1862 14.7354 10.377C14.9854 10.5239 15.3927 10.5239 16.2074 10.5239C17.2373 10.5239 17.7523 10.5239 18.0205 10.7022C18.3689 10.9338 18.5513 11.3482 18.4874 11.7632C18.4382 12.0826 18.0918 12.4656 17.399 13.2317L11.8639 19.3523C10.7767 20.5545 10.2331 21.1556 9.86807 20.9654C9.50303 20.7751 9.67833 19.9822 10.0289 18.3962L10.7157 15.2896C10.9826 14.082 11.1161 13.4782 10.7951 13.0759C10.4741 12.6736 9.85877 12.6736 8.62814 12.6736Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];$m();var nS=[["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H10.6C11.7583 10 12 10.2417 12 11.4V12.6C12 13.7583 11.7583 14 10.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H10.6C11.7583 18 12 18.2417 12 19.4V20.6C12 21.7583 11.7583 22 10.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18 13V21M22 17H14",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]],rS=[["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H10.6C11.7583 10 12 10.2417 12 11.4V12.6C12 13.7583 11.7583 14 10.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H10.6C11.7583 18 12 18.2417 12 19.4V20.6C12 21.7583 11.7583 22 10.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14 17H22M19 14L22 17L19 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],SC={AlertCircle:D8,AlertTriangle:A8,Archive:E8,Bot:Z8,Bug:W8,Check:hg,ChevronDown:N8,ChevronLeft:O8,ChevronRight:z8,Circle:B8,CircleCheck:H8,CircleQuestion:og,CircleX:F8,ClosePluginPane:lu,CloseThreadPane:lu,Code:fg,ComputerTerminal01:Sm,Copy:U8,Download:q8,Edit:J8,FilterHorizontal:Y8,Folder:tg,FolderExport:Q8,FolderGit:eg,FolderPlus:X8,FolderSync:ng,FolderUnknown:rg,Folder02:du,Info:ig,ListTodo:V8,Loading:sg,MessageQuestion:ag,MessageCirclePlus:_m,MessageSquarePlus:_m,MessageSquare:j8,MoreHorizontal:cg,PanelLeft:dg,Search:ug,SectionAdd:nS,SectionMove:rS,Settings:lg,SlidersHorizontal:pg,Spinner:G8,Target:mg,Terminal:Sm,Toolbox:gg,ToolCase:Cg,Trash2:K8,Unavailable:yg,UserRoundPlus:kg,Workflow:bg,X:lu,Zap:vg},oS=Object.keys(SC),iS=[...oS,...Ig],sS=SC,Em=null;function aS(){return pu()!==null?Promise.resolve():(Em??=Promise.resolve().then(()=>(IC(),xC)).then(()=>{},e=>{throw Em=null,e}),Em)}var cS=[],uS=new Set(iS),_C=we([]);function Nm(e){return uS.has(e)}var zm=class extends zu{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};function Dt({name:e,fallback:t="Zap",...n}){let r=xe(_C),o=Kt(Rm,()=>Vi(e),()=>Vi(e)),i=Kt(Rm,()=>Vi(t),()=>Vi(t)),s=Kt(Tm,()=>Hi(e),()=>Hi(e)),a=Kt(Tm,()=>Hi(t),()=>Hi(t)),c=o!==void 0||Nm(e)||s!==void 0,u=c?e:t,l=c?o:i,d=c?s:a,m=l?.component;return r.includes(u)?p(Om,{name:Nm(u)?u:"Zap",...n}):m!==void 0&&l!==void 0?p(_C.Provider,{value:[...r,u],children:p(zm,{fallback:p(Om,{name:"Zap",...n}),children:p("span",{className:I("inline-flex size-6 shrink-0",n.className),style:n.style,"aria-hidden":n["aria-hidden"],"aria-label":n["aria-label"],role:n["aria-label"]?"img":void 0,"data-icon":u,"data-icon-root":"",children:p(m,{className:"size-full"})})},l.key)}):m===void 0&&d!==void 0?p(lS,{url:d,resolved:u,...n}):p(Om,{name:Nm(u)?u:"Zap",...n})}function lS({url:e,resolved:t,className:n,style:r,"aria-hidden":o,"aria-label":i}){let s=`url("${e.replace(/["\\]/gu,"\\$&")}")`;return p("span",{className:I("inline-block size-6 shrink-0",n),style:{...r,backgroundColor:"currentColor",maskImage:s,maskPosition:"center",maskRepeat:"no-repeat",maskSize:"contain",WebkitMaskImage:s,WebkitMaskPosition:"center",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"contain"},"aria-hidden":o,"aria-label":i,role:i?"img":void 0,"data-icon":t,"data-icon-root":"","data-plugin-icon-asset":e})}function Om({name:e,className:t,style:n,"aria-hidden":r,"aria-label":o}){let i=sS[e];return i!==void 0?p(Fi,{icon:i,className:I(t),style:n,"aria-hidden":r,"aria-label":o,"data-icon":e,"data-icon-root":""}):p(dS,{name:e,className:t,style:n,"aria-hidden":r,"aria-label":o})}function dS({name:e,className:t,style:n,"aria-hidden":r,"aria-label":o}){let s=Kt(Sg,pu,pu)?.[e];return s===void 0&&aS().catch(()=>{}),p(Fi,{icon:s??cS,className:I(t),style:n,"aria-hidden":r,"aria-label":o,"data-icon":e,"data-icon-root":"","data-icon-pending":s===void 0?"":void 0})}var LC=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{},titleId:"",descriptionId:"",registerTitleId:()=>()=>{},registerDescriptionId:()=>()=>{}});function Bi(){return xe(LC)}function Ui({children:e,open:t,onOpenChange:n,...r}){let o=vr(t,n),i=gn(),s=gn(),[a,c]=E(i),[u,l]=E(s),d=Z(g=>(c(g),()=>c(i)),[i]),m=Z(g=>(l(g),()=>l(s)),[s]),f=q(()=>({...o,titleId:a,descriptionId:u,registerTitleId:d,registerDescriptionId:m}),[u,m,d,o,a]),h=f.isCompactViewport?e:p(R8,{open:f.open,onOpenChange:f.onOpenChange,...r,children:e});return p(LC.Provider,{value:f,children:h})}var pS=H(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=Bi();return i?p(Hn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"dialog",className:n,...r,children:t}):p($8,{ref:o,asChild:e,className:yn(n),onMouseDown:c=>{s||bn(),Jt(c)},...r,children:t})});pS.displayName="DialogTrigger";var fS=H(({asChild:e,onClick:t,children:n,...r},o)=>{let{isCompactViewport:i,onOpenChange:s}=Bi();return i?p(e?kn:"button",{ref:o,onClick:u=>{t?.(u),u.defaultPrevented||s(!1)},...r,children:n}):p(wm,{ref:o,asChild:e,onClick:t,...r,children:n})});fS.displayName="DialogClose";var PC=H(({className:e,...t},n)=>p(Im,{ref:n,...Ee(),className:I("fixed inset-0 z-50 bg-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));PC.displayName=Im.displayName;var lo=H(({className:e,children:t,hideCloseButton:n=!1,onAfterCloseAutoFocus:r,onCloseAutoFocus:o,...i},s)=>{let{isCompactViewport:a,open:c,onOpenChange:u,titleId:l,descriptionId:d}=Bi();let m=Ee();if(a){let f=wr(i);return p(xr,{open:c,onOpenChange:u,onAfterCloseAutoFocus:r,labelledBy:l,describedBy:d,children:p("div",{ref:s,className:I("grid grid-cols-[minmax(0,1fr)] gap-4 overflow-y-auto px-4 pt-2 pb-[max(1rem,env(safe-area-inset-bottom))]",e,"max-w-none"),...f,children:t})})}return S(M8,{children:[p(PC,{}),S(P8,{ref:s,...m,onCloseAutoFocus:f=>{o?.(f),queueMicrotask(()=>r?.())},className:I("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg grid-cols-[minmax(0,1fr)] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-sm duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",e),...i,children:[t,n?null:S(wm,{className:"absolute right-4 top-4 cursor-pointer rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-state-active data-[state=open]:text-foreground",children:[p(Dt,{name:"X",className:"h-4 w-4"}),p("span",{className:"sr-only",children:"Close"})]})]})]})});lo.displayName="DialogContent";var po=({className:e,...t})=>p("div",{className:I("flex flex-col space-y-1.5 text-left",e),...t});po.displayName="DialogHeader";var mu=({className:e,...t})=>p("div",{className:I("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});mu.displayName="DialogFooter";var fo=H(({asChild:e,className:t,id:n,children:r,...o},i)=>{let{isCompactViewport:s,titleId:a,registerTitleId:c}=Bi(),u=n??a;if(ot(()=>{if(s)return c(u)},[s,c,u]),s){let l={id:u,className:I("text-base font-semibold leading-none tracking-tight",t),...o};return e?p(kn,{ref:i,...l,children:r}):p("h2",{ref:i,...l,children:r})}return p(T8,{ref:i,asChild:e,...n===void 0?{}:{id:n},className:I("text-base font-semibold leading-none tracking-tight",t),...o,children:r})});fo.displayName="DialogTitle";var hu=H(({asChild:e,className:t,id:n,children:r,...o},i)=>{let{isCompactViewport:s,descriptionId:a,registerDescriptionId:c}=Bi(),u=n??a;if(ot(()=>{if(s)return c(u)},[s,c,u]),s){let l={id:u,className:I("text-sm text-muted-foreground",t),...o};return e?p(kn,{ref:i,...l,children:r}):p("p",{ref:i,...l,children:r})}return p(xm,{ref:i,asChild:e,...n===void 0?{}:{id:n},className:I("text-sm text-muted-foreground",t),...o,children:r})});hu.displayName=xm.displayName;var MC="text-sm max-md:pointer-coarse:text-base";var Dn="h-3.5 w-3.5 max-md:pointer-coarse:h-5 max-md:pointer-coarse:w-5",RC="h-[28px] w-[28px] rounded-md p-0 max-md:pointer-coarse:h-[36px] max-md:pointer-coarse:w-[36px]",Hz=`${RC} [&_[data-icon-root]]:size-[16px] max-md:pointer-coarse:[&_[data-icon-root]]:size-[20px]`,Bz=`${RC} [&_[data-icon-root]]:size-[13px] max-md:pointer-coarse:[&_[data-icon-root]]:size-[16px]`;var TC="h-9 max-md:pointer-coarse:h-10";var gu=H(({className:e,type:t,...n},r)=>p("input",{type:t,autoComplete:"off",className:I(`flex w-full rounded-md border border-input bg-transparent pl-3 pr-3 py-1 ${Rs} file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,TC,MC,e),ref:r,...n}));gu.displayName="Input";function $C({open:e,items:t,onOpenChange:n,onToggleHidden:r,onMove:o}){return p(Ui,{open:e,onOpenChange:n,children:S(lo,{className:"max-w-sm",children:[S(po,{children:[p(fo,{children:"Customize list"}),p(hu,{children:"Hidden groups move into More. Their counters still show there."})]}),p("ul",{className:"flex flex-col gap-0.5","aria-label":"Groups",children:t.map((i,s)=>S("li",{"data-sidebar-customize-item":i.id,className:"flex items-center gap-1 rounded-md py-0.5 pl-2 pr-1 text-sm hover:bg-accent",children:[p("span",{className:I("min-w-0 flex-1 truncate",i.hidden&&"text-muted-foreground"),children:i.label}),p(Ye,{variant:"ghost",size:"icon",className:"size-7","aria-label":`Move ${i.label} up`,disabled:s===0,onClick:()=>o(i.id,-1),children:p(B,{name:N.moveUp,"aria-hidden":!0})}),p(Ye,{variant:"ghost",size:"icon",className:"size-7","aria-label":`Move ${i.label} down`,disabled:s===t.length-1,onClick:()=>o(i.id,1),children:p(B,{name:N.collapse,"aria-hidden":!0})}),p(Ye,{variant:"ghost",size:"icon",className:"size-7","aria-pressed":!i.hidden,"aria-label":i.hidden?`Show ${i.label}`:`Hide ${i.label}`,disabled:!i.hideable,onClick:()=>r(i.id),children:p(B,{name:i.hidden?N.hidden:N.show,"aria-hidden":!0})})]},i.id))}),p(mu,{children:p(Ye,{onClick:()=>n(!1),children:"Done"})})]})})}function AC({open:e,onOpenChange:t,onCreate:n}){let[r,o]=E(""),[i,s]=E(!1);return z(()=>{e&&o("")},[e]),p(Ui,{open:e,onOpenChange:t,children:p(lo,{className:"max-w-sm",children:S("form",{className:"flex flex-col gap-4",onSubmit:async a=>{a.preventDefault();let c=r.trim();if(c!==""){s(!0);try{await n(c),t(!1)}finally{s(!1)}}},children:[p(po,{children:p(fo,{children:"New section"})}),p(gu,{autoFocus:!0,"aria-label":"Section name",value:r,onChange:a=>o(a.target.value)}),S(mu,{children:[p(Ye,{type:"button",variant:"ghost",onClick:()=>t(!1),children:"Cancel"}),p(Ye,{type:"submit",disabled:i||r.trim()==="",children:"Create"})]})]})})})}function DC({open:e,title:t,description:n,confirmLabel:r,destructive:o,onOpenChange:i,onConfirm:s}){return p(S8,{open:e,onOpenChange:i,children:S(mm,{children:[S(hm,{children:[p(Cm,{children:t}),p(km,{children:n})]}),S(gm,{children:[p(bm,{children:"Cancel"}),p(ym,{className:I(o&&"bg-destructive text-destructive-foreground hover:bg-destructive/90"),onClick:s,children:r})]})]})})}function EC({open:e,title:t,onOpenChange:n,children:r}){return p(Ui,{open:e,onOpenChange:n,children:S(lo,{className:"max-w-sm",children:[p(po,{children:p(fo,{className:"sr-only",children:t})}),r]})})}function NC({open:e,title:t,targets:n,query:r,onQueryChange:o,onOpenChange:i,onMove:s}){let[a,c]=E(0);z(()=>c(0),[r,e]);let u=l=>{l!==void 0&&(s(l.parentThreadId),i(!1))};return p(Ui,{open:e,onOpenChange:i,children:S(lo,{className:"max-w-sm",children:[S(po,{children:[S(fo,{children:["Move \u201C",t,"\u201D"]}),p(hu,{children:"Nest it under another thread, or move it to the top level."})]}),p(gu,{autoFocus:!0,role:"combobox","aria-expanded":!0,"aria-controls":"thread-glance-move-targets","aria-activedescendant":n[a]?`thread-glance-move-${a}`:void 0,"aria-label":"Find a thread",placeholder:"Find a thread",value:r,onChange:l=>o(l.target.value),onKeyDown:l=>{l.key==="ArrowDown"?(l.preventDefault(),c(d=>Math.min(d+1,n.length-1))):l.key==="ArrowUp"?(l.preventDefault(),c(d=>Math.max(d-1,0))):l.key==="Enter"&&(l.preventDefault(),u(n[a]))}}),S("ul",{id:"thread-glance-move-targets",role:"listbox","aria-label":"Move to",className:"flex max-h-72 flex-col gap-0.5 overflow-y-auto",children:[n.length===0?p("li",{className:"px-2 py-1.5 text-sm text-muted-foreground",children:"No matching threads"}):null,n.map((l,d)=>S("li",{id:`thread-glance-move-${d}`,role:"option","aria-selected":d===a,onMouseEnter:()=>c(d),onClick:()=>u(l),className:I("flex cursor-pointer flex-col rounded-md px-2 py-1.5 text-sm",d===a&&"bg-accent"),children:[p("span",{className:"truncate",children:l.label}),l.detail?p("span",{className:"truncate text-xs text-muted-foreground",children:l.detail}):null]},l.parentThreadId??"top"))]})]})})}function OC(){let e=hn(),[t,n]=E({}),r=mn(),o=$(!1),i=Z(()=>{e.call("listNotes",null).then(s=>n(s.notes),()=>{})},[e]);return z(i,[i]),z(()=>{r==="connected"&&(o.current&&i(),o.current=!0)},[r,i]),fn(An.notes,s=>{let a=s;if(a===null||typeof a!="object"||typeof a.threadId!="string")return;let c=a.notes===null?null:M4.safeParse(a.notes);c!==null&&!c.success||n(u=>{let l={...u};return c===null?delete l[a.threadId]:l[a.threadId]=c.data,l})}),t}function zC(e,t,n="",r=50){let o=t.infos.get(e);if(o===void 0)return[];let i=u=>t.infos.get(u)?.thread.parentThreadId??null,s=n.trim().toLowerCase(),a=[];o.thread.parentThreadId!==null&&(s===""||"top level".includes(s))&&a.push({parentThreadId:null,label:"Top level",detail:"No parent thread"});let c=[...t.infos.values()].filter(u=>{let l=u.thread;return l.isHidden||l.isArchived||l.id===o.thread.parentThreadId||B2(l.id,e,i)?!1:s===""||l.displayTitle.toLowerCase().includes(s)}).sort((u,l)=>l.thread.latestAttentionAt-u.thread.latestAttentionAt);for(let u of c.slice(0,r)){let l=u.parentId===null?null:t.infos.get(u.parentId);a.push({parentThreadId:u.thread.id,label:u.thread.displayTitle,detail:l?`in ${l.thread.displayTitle}`:null})}return a}var mS=[["waits-on-you","needing you"],["failed","failed"],["queue-failed","queue failed"],["offline","offline"],["working","working"],["background","in background"],["scheduled","scheduled"],["queued","queued"],["unread","unread"],["draft","drafts"],["idle","idle"]];function ZC(e){let t=new Map;for(let r of e)r.thread.isHidden||t.set(r.state.kind,(t.get(r.state.kind)??0)+1);let n=mS.filter(([r])=>t.has(r)).map(([r,o])=>`${t.get(r)} ${o}`);return n.length>0?n.join(", "):null}function jC(e,t){if(e===void 0)return[];if(e.root.thread.id===t)return e.descendants;let n=[],r=new Set([t]);for(let o of e.descendants)o.parentId!==null&&r.has(o.parentId)&&(r.add(o.thread.id),n.push(o));return n}function mo(e){return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function WC(e,t){if(t===null)return null;let n=t==="now"?"just now":`${t} ago`;switch(e){case"working":case"background":return`started ${n}`;case"waits-on-you":return`waiting since ${n}`;case"failed":return`failed ${n}`;default:return`finished ${n}`}}function FC(e,t){return t.find(n=>n.model===e||n.id===e)?.displayName??e}var hS={attention:"text-attention",destructive:"text-destructive",working:"text-[var(--timeline-accent)]",background:"text-muted-foreground/50","muted-strong":"text-muted-foreground/75",muted:"text-muted-foreground",none:""},VC={attention:"border-[color:color-mix(in_oklch,var(--attention)_45%,transparent)] bg-[color-mix(in_oklch,var(--attention)_10%,transparent)] text-[color:color-mix(in_oklch,var(--attention),var(--foreground)_55%)] hover:bg-[color-mix(in_oklch,var(--attention)_20%,transparent)]",destructive:"border-[color:color-mix(in_oklch,var(--destructive-text)_45%,transparent)] bg-[color-mix(in_oklch,var(--destructive-text)_10%,transparent)] text-[color:color-mix(in_oklch,var(--destructive-text),var(--foreground)_55%)] hover:bg-[color-mix(in_oklch,var(--destructive-text)_20%,transparent)]",working:"border-[color:color-mix(in_oklch,var(--timeline-accent)_45%,transparent)] bg-[color-mix(in_oklch,var(--timeline-accent)_10%,transparent)] text-[color:color-mix(in_oklch,var(--timeline-accent),var(--foreground)_55%)] hover:bg-[color-mix(in_oklch,var(--timeline-accent)_20%,transparent)]",neutral:"border-border/70 text-muted-foreground hover:bg-state-hover hover:text-foreground"},HC="animate-shine-icon motion-reduce:animate-none",gS="animate-spin motion-reduce:animate-none";function CS({label:e,className:t}){return p("span",{role:e?"img":void 0,"aria-label":e,"aria-hidden":e?void 0:!0,className:I("inline-block size-[6px] shrink-0 rounded-full bg-[var(--timeline-accent)]",t)})}function Gi({glyph:e,label:t,className:n}){return e.icon===null?null:e.icon==="dot"?p(CS,{label:t}):p(B,{name:e.icon,"aria-label":t,"aria-hidden":t?void 0:!0,className:I("size-4 shrink-0",hS[e.tone],e.spin&&gS,e.shine&&HC,n)})}function BC({status:e}){let t=e.tone==="error"?"text-destructive":e.tone==="success"?"text-success-foreground":e.tone==="running"?"text-success motion-safe:animate-pulse":"text-muted-foreground";return p(B,{name:e.icon,"aria-label":e.label,className:I("size-4 shrink-0",t,e.tone==="running"&&HC)})}var kS={attention:"text-attention",destructive:"text-destructive",muted:"text-muted-foreground"};function Cu({note:e}){return S(kt,{children:[p("span",{className:kS[e.tone],children:e.text===""?e.prefix:`${e.prefix}:`}),e.text===""?null:` ${e.text}`]})}function Ki({flag:e,className:t}){return p(Gi,{glyph:Yc[e],className:t})}var yS=[{key:"waitsOnYou",flag:"waits-on-you",label:e=>`${e} waiting on you`},{key:"failed",flag:"unread-failed",label:e=>`${e} failed`},{key:"offline",flag:"offline",label:e=>`${e} waiting for an offline machine`},{key:"working",flag:"working",label:e=>`${e} working`},{key:"unread",flag:"unread",label:e=>`${e} unread`}];function ku({counters:e,className:t}){let n=yS.filter(r=>e[r.key]>0);return n.length===0?null:p("span",{role:"group","aria-label":n.map(r=>r.label(e[r.key])).join(", "),className:I("inline-flex shrink-0 items-center gap-1.5 text-xs tabular-nums",t),children:n.map(r=>S("span",{"aria-hidden":!0,className:"inline-flex items-center gap-0.5 text-muted-foreground",children:[p(Ki,{flag:r.flag,className:"size-3.5"}),e[r.key]]},r.key))})}var bS=500,vS=new Set(["Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]),qi=!1,yu=0,UC=0;function GC(e){qi=vS.has(e.key)}function KC(){qi=!1,yu+=1}function qC(){yu+=1}function JC(e,t){let[n,r]=E(!1),o=$(null),i=$(null),s=$(!1),a=()=>{o.current!==null&&clearTimeout(o.current),o.current=null},c=()=>{if(o.current!==null||!t||s.current)return;let u=yu;o.current=setTimeout(()=>{o.current=null,yu===u&&r(!0)},bS)};return z(()=>(UC++===0&&(qi=!1,document.addEventListener("keydown",GC,!0),document.addEventListener("pointerdown",KC,!0)),()=>{a(),--UC===0&&(document.removeEventListener("keydown",GC,!0),document.removeEventListener("pointerdown",KC,!0))}),[]),z(()=>{a(),r(!1)},[e,t]),{open:n&&t&&!e,onOpenChange:u=>{u||(a(),r(!1))},rowProps:{onPointerEnter:u=>{i.current={x:u.clientX,y:u.clientY}},onPointerMove:u=>{if(u.pointerType==="touch")return;let l=i.current;l!==null&&l.x===u.clientX&&l.y===u.clientY||(i.current=null,c())},onPointerLeave:()=>{a(),i.current=null,s.current=!1},onPointerDown:()=>{s.current=!0,a(),r(!1)},onFocus:()=>{qi&&(qi=!1,c())},onBlur:a}}}var Zm=globalThis.__bbPluginRuntime;if(Zm==null||Zm.radixDropdownMenu==null)throw new Error('Cannot load "@radix-ui/react-dropdown-menu": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var bu=Zm.radixDropdownMenu,wZ="default"in bu?bu.default:bu,{Arrow:xZ,CheckboxItem:YC,Content:XC,DropdownMenu:IZ,DropdownMenuArrow:_Z,DropdownMenuCheckboxItem:SZ,DropdownMenuContent:LZ,DropdownMenuGroup:PZ,DropdownMenuItem:MZ,DropdownMenuItemIndicator:RZ,DropdownMenuLabel:TZ,DropdownMenuPortal:$Z,DropdownMenuRadioGroup:AZ,DropdownMenuRadioItem:DZ,DropdownMenuSeparator:EZ,DropdownMenuSub:NZ,DropdownMenuSubContent:OZ,DropdownMenuSubTrigger:zZ,DropdownMenuTrigger:ZZ,Group:QC,Item:ek,ItemIndicator:jm,Label:tk,Portal:nk,RadioGroup:wS,RadioItem:Wm,Root:rk,Separator:ok,Sub:ik,SubContent:Fm,SubTrigger:Vm,Trigger:sk,createDropdownMenuScope:jZ}=bu;var IS=new Set(["ArrowDown","ArrowUp","Home","End","PageDown","PageUp"]),on="data-[last-hovered]:bg-state-hover data-[last-hovered]:text-foreground",ak=we({lastHoveredId:null,setLastHovered:()=>{},clearLastHovered:()=>{}});function vu({children:e}){let[t,n]=E(null),r=q(()=>({lastHoveredId:t,setLastHovered:n,clearLastHovered:()=>n(null)}),[t]);return p(ak.Provider,{value:r,children:e})}function Bt(e){let t=gn(),{lastHoveredId:n,setLastHovered:r,clearLastHovered:o}=xe(ak),i=n===t,s=$(e);s.current=e;let a=Z(u=>{s.current?.onPointerEnter?.(u),r(t)},[t,r]),c=Z(u=>{s.current?.onKeyDown?.(u),IS.has(u.key)&&o()},[o]);return{isLastHovered:i,hoverProps:{"data-last-hovered":i?"":void 0,onPointerEnter:a,onKeyDown:c}}}var _S="focus:bg-state-hover focus:text-foreground data-[last-hovered]:bg-state-hover data-[last-hovered]:text-foreground",SS="text-destructive focus:bg-destructive/15 focus:text-destructive data-[last-hovered]:bg-destructive/15",LS="text-destructive focus:bg-destructive/15 focus:text-destructive active:bg-destructive/20 active:text-destructive",Hm=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function En(){return xe(Hm)}function ho({children:e,open:t,onOpenChange:n,defaultOpen:r,...o}){let i=vr(t,n,r);return i.isCompactViewport?p(Hm.Provider,{value:i,children:e}):p(rk,{open:i.open,onOpenChange:i.onOpenChange,...o,children:p(Hm.Provider,{value:i,children:e})})}var dr=H(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=En();return i?p(Hn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"menu",className:n,...r,children:t}):p(sk,{ref:o,asChild:e,className:yn(n),onMouseDown:c=>{s||bn(),Jt(c)},...r,children:t})});dr.displayName="DropdownMenuTrigger";var pr=H(({className:e,sideOffset:t=4,children:n,mobileTitle:r,onCloseAutoFocus:o,...i},s)=>{let{isCompactViewport:a,open:c,onOpenChange:u}=En(),l=Ee();if(a){let{style:d,...m}=wr(i);return p(xr,{open:c,onOpenChange:u,srLabel:r??"Menu",children:p("div",{ref:s,className:I("flex flex-col gap-0.5 overflow-y-auto p-2 pb-[max(0.5rem,env(safe-area-inset-bottom))]",e),...m,style:{...d,...Zs},children:n})})}return p(nk,{children:p(XC,{ref:s,...l,sideOffset:t,onCloseAutoFocus:d=>{v5()||d.preventDefault(),o?.(d)},className:I("z-50 min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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",e),...i,children:p(vu,{children:n})})})});pr.displayName="DropdownMenuContent";function ck(){return new Event("select",{cancelable:!0})}var Oe=H(({className:e,inset:t,variant:n="default",onSelect:r,disabled:o,role:i="menuitem","aria-checked":s,textValue:a,children:c,onPointerEnter:u,onKeyDown:l,onFocus:d,onBlur:m,...f},h)=>{let{isCompactViewport:g,onOpenChange:k}=En(),{hoverProps:v}=Bt({onPointerEnter:u,onKeyDown:l});return g?p("button",{ref:h,type:"button",role:i,disabled:o,"aria-disabled":o||void 0,"aria-checked":s,className:I("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-2 text-left text-xs outline-none transition-colors focus:bg-state-hover focus:text-foreground active:bg-state-active active:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",t&&"pl-8",n==="destructive"&&LS,e),"data-disabled":o?"":void 0,onFocus:d,onBlur:m,onClick:()=>{if(o)return;let y=ck();r?.(y),y.defaultPrevented||k(!1)},children:c}):p(ek,{ref:h,className:I("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",jt,n==="destructive"?SS:_S,t&&"pl-8",e),disabled:o,role:i,"aria-checked":s,onSelect:r,textValue:a,onFocus:d,onBlur:m,...f,...v,children:c})});Oe.displayName="DropdownMenuItem";var PS=H(({className:e,children:t,checked:n,onSelect:r,onCheckedChange:o,disabled:i,textValue:s,onPointerEnter:a,onKeyDown:c,...u},l)=>{let{isCompactViewport:d,onOpenChange:m}=En(),{hoverProps:f}=Bt({onPointerEnter:a,onKeyDown:c});return d?S("button",{ref:l,type:"button",role:"menuitemcheckbox","aria-checked":n==="indeterminate"?"mixed":n===!0,disabled:i,"aria-disabled":i||void 0,className:I("relative flex w-full cursor-default select-none items-center rounded-sm py-2 pl-2 pr-8 text-left text-xs outline-none transition-colors focus:bg-state-hover focus:text-foreground active:bg-state-active active:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),"data-disabled":i?"":void 0,onClick:()=>{if(i)return;let h=ck();r?.(h),o?.(n==="indeterminate"?!0:!n),h.defaultPrevented||m(!1)},children:[p("span",{className:I("absolute right-2 flex items-center justify-center",Dn),children:(n===!0||n==="indeterminate")&&p(Dt,{name:"Check",className:Dn})}),t]}):S(YC,{ref:l,className:I("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-2 pr-8 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",jt,on,e),checked:n,onSelect:r,onCheckedChange:o,disabled:i,textValue:s,...u,...f,children:[p("span",{className:I("absolute right-2 flex items-center justify-center",Dn),children:p(jm,{children:p(Dt,{name:"Check",className:Dn})})}),t]})});PS.displayName="DropdownMenuCheckboxItem";var MS=H(({className:e,children:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{isCompactViewport:s}=En(),{hoverProps:a}=Bt({onPointerEnter:n,onKeyDown:r});return s?null:S(Wm,{ref:i,className:I("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-8 pr-2 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",jt,on,e),...o,...a,children:[p("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p(jm,{children:p(Dt,{name:"Circle",className:"h-2 w-2 fill-current"})})}),t]})});MS.displayName=Wm.displayName;var RS=H(({className:e,inset:t,children:n,...r},o)=>{let{isCompactViewport:i}=En();return i?p("div",{ref:o,className:I("px-2 py-1.5 text-xs font-medium text-muted-foreground",t&&"pl-8",e),children:n}):p(tk,{ref:o,className:I("px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground",t&&"pl-8",e),...r,children:n})});RS.displayName="DropdownMenuLabel";var Ji=H(({className:e,...t},n)=>{let{isCompactViewport:r}=En();return r?p("hr",{ref:n,className:I("-mx-1 my-1 h-px border-0 bg-muted",e)}):p(ok,{ref:n,className:I("-mx-1 my-1 h-px bg-muted",e),...t})});Ji.displayName="DropdownMenuSeparator";var TS=H(({children:e,...t},n)=>{let{isCompactViewport:r}=En();return r?p("div",{ref:n,role:"group",...t,children:e}):p(QC,{ref:n,...t,children:e})});TS.displayName="DropdownMenuGroup";var uk=ik,Bm=H(({className:e,inset:t,children:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Bt({onPointerEnter:r,onKeyDown:o});return S(Vm,{ref:s,className:I("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[state=open]:bg-state-active data-[state=open]:text-foreground [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0",jt,on,t&&"pl-8",e),...i,...a,children:[n,p(Dt,{name:"ChevronRight",className:"ml-auto"})]})});Bm.displayName=Vm.displayName;var Um=H(({className:e,...t},n)=>p(Fm,{ref:n,...Ee(),className:I("z-50 min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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",e),...t}));Um.displayName=Fm.displayName;var $S=({className:e,...t})=>p("span",{className:I("ml-auto text-xs tracking-widest opacity-60",e),...t});$S.displayName="DropdownMenuShortcut";function lk(e){return e.map(t=>`${t.threadId}:${t.projectId}`).join(" ")}var AS=25;function dk(e,t=AS){let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function DS(e,t){let n=e.info.state,r=t??n.label;return n.kind==="scheduled"&&n.sendAt!==null?`${r}, sends ${mo(n.sendAt)}`:r}function pk(e,t){let n=[DS(e,t.pluginLabel),t.providerName];return e.parentTitle!==null&&e.depth>0&&n.push(`child of ${e.parentTitle}`),e.crossGroupLabel!==null&&n.push(e.crossGroupLabel.toLowerCase()),e.homeGroupLabel!==null&&n.push(`in ${e.homeGroupLabel}`),e.hiddenBadge&&n.push("hidden thread"),e.info.unread&&e.info.state.kind!=="unread"&&n.push("unread"),t.hasDraft&&e.info.state.kind!=="draft"&&n.push("unsubmitted draft"),`Open ${e.info.thread.displayTitle} \u2014 ${n.join("; ")}`}function Gm(e,t,n,r){let o=t===1?"child thread":"child threads",i=n===null?"":`, ${Yc[n].label}`;return`${r?"Collapse":"Show"} ${t} ${o} of ${e}${i}`}function fk(e){let t=e.count===1?"thread":"threads";if(e.scope==="group")return{label:e.expanded?"Show fewer":`${e.count} older`,ariaLabel:`${e.expanded?"Hide":"Show"} ${e.count} older ${t}`};let n=e.count===1?"child thread":"child threads";return e.expanded?{label:"Show fewer",ariaLabel:`Hide ${e.count} older ${n}`}:{label:`${e.count} more ${n}`,ariaLabel:`Show ${e.count} more ${n}`}}function go(e){return 8+e*12}var ES=600;function NS(e){return e instanceof HTMLElement?e.isContentEditable||e.tagName==="TEXTAREA"||e.tagName==="INPUT":!1}function Co({initial:e,label:t,onSave:n,onDone:r,className:o}){let[i,s]=E(e),[a,c]=E(!1),u=$(null),l=$(!1),d=$(!1),m=$(!1);z(()=>{let h=g=>{g.target!==u.current&&(m.current=!0)};return window.addEventListener("pointerdown",h,!0),()=>window.removeEventListener("pointerdown",h,!0)},[]),z(()=>{u.current?.focus(),u.current?.select();let h=setTimeout(()=>{d.current=!0},ES);return()=>clearTimeout(h)},[]);let f=async h=>{if(l.current)return;l.current=!0;let g=i.trim();if(!h||g===""||g===e){r();return}c(!0);try{await n(g)}catch(k){st.error("Couldn't rename",{description:k instanceof Error?k.message:String(k)})}finally{r()}};return S(kt,{children:[p("input",{ref:u,"aria-label":t,value:i,disabled:a,onChange:h=>s(h.target.value),onKeyDown:h=>{h.stopPropagation(),!h.nativeEvent.isComposing&&(h.key==="Enter"?(h.preventDefault(),f(!0)):h.key==="Escape"&&(h.preventDefault(),f(!1)))},onBlur:h=>{if(!d.current&&!m.current&&NS(h.relatedTarget)){setTimeout(()=>{u.current?.focus(),u.current?.select()},0);return}f(!0)},onClick:h=>h.stopPropagation(),onPointerDown:h=>h.stopPropagation(),className:I("pointer-events-auto relative z-10 h-6 min-w-0 flex-1 rounded-sm border border-input bg-background px-1.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring",o)}),a?p("span",{role:"status",className:"sr-only",children:"Saving name"}):null]})}var Km=globalThis.__bbPluginRuntime;if(Km==null||Km.radixContextMenu==null)throw new Error('Cannot load "@radix-ui/react-context-menu": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var wu=Km.radixContextMenu,uj="default"in wu?wu.default:wu,{Arrow:lj,CheckboxItem:qm,Content:Jm,ContextMenu:dj,ContextMenuArrow:pj,ContextMenuCheckboxItem:fj,ContextMenuContent:mj,ContextMenuGroup:hj,ContextMenuItem:gj,ContextMenuItemIndicator:Cj,ContextMenuLabel:kj,ContextMenuPortal:yj,ContextMenuRadioGroup:bj,ContextMenuRadioItem:vj,ContextMenuSeparator:wj,ContextMenuSub:xj,ContextMenuSubContent:Ij,ContextMenuSubTrigger:_j,ContextMenuTrigger:Sj,Group:OS,Item:Ym,ItemIndicator:Xm,Label:Qm,Portal:mk,RadioGroup:zS,RadioItem:eh,Root:hk,Separator:th,Sub:gk,SubContent:nh,SubTrigger:rh,Trigger:Ck,createContextMenuScope:Lj}=wu;var kk="z-[70]",yk=hk,bk=Ck;var vk=gk;var oh=H(({className:e,inset:t,children:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Bt({onPointerEnter:r,onKeyDown:o});return S(rh,{ref:s,className:I("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[state=open]:bg-state-active data-[state=open]:text-foreground [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0",jt,on,t&&"pl-8",e),...i,...a,children:[n,p(Dt,{name:"ChevronRight",className:"ml-auto"})]})});oh.displayName=rh.displayName;var ih=H(({className:e,...t},n)=>p(nh,{ref:n,...Ee(),className:I(kk,"min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));ih.displayName=nh.displayName;var sh=H(({className:e,children:t,...n},r)=>p(mk,{children:p(Jm,{ref:r,...Ee(),className:I(kk,"min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n,children:p(vu,{children:t})})}));sh.displayName=Jm.displayName;var xu=H(({className:e,inset:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{hoverProps:s}=Bt({onPointerEnter:n,onKeyDown:r});return p(Ym,{ref:i,className:I("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",jt,on,t&&"pl-8",e),...o,...s})});xu.displayName=Ym.displayName;var jS=H(({className:e,children:t,checked:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Bt({onPointerEnter:r,onKeyDown:o});return S(qm,{ref:s,className:I("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-2 pr-8 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",jt,on,e),checked:n,...i,...a,children:[p("span",{className:I("absolute right-2 flex items-center justify-center",Dn),children:p(Xm,{children:p(Dt,{name:"Check",className:Dn})})}),t]})});jS.displayName=qm.displayName;var WS=H(({className:e,children:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{hoverProps:s}=Bt({onPointerEnter:n,onKeyDown:r});return S(eh,{ref:i,className:I("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-8 pr-2 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",jt,on,e),...o,...s,children:[p("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p(Xm,{children:p(Dt,{name:"Circle",className:"h-2 w-2 fill-current"})})}),t]})});WS.displayName=eh.displayName;var FS=H(({className:e,inset:t,...n},r)=>p(Qm,{ref:r,className:I("px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground",t&&"pl-8",e),...n}));FS.displayName=Qm.displayName;var ah=H(({className:e,...t},n)=>p(th,{ref:n,className:I("-mx-1 my-1 h-px bg-muted",e),...t}));ah.displayName=th.displayName;function VS({className:e,...t}){return p("span",{className:I("ml-auto text-xs tracking-widest opacity-60",e),...t})}VS.displayName="ContextMenuShortcut";var ch=globalThis.__bbPluginRuntime;if(ch==null||ch.radixHoverCard==null)throw new Error('Cannot load "@radix-ui/react-hover-card": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Iu=ch.radixHoverCard,Nj="default"in Iu?Iu.default:Iu,{Arrow:Oj,Content:uh,HoverCard:zj,HoverCardArrow:Zj,HoverCardContent:jj,HoverCardPortal:Wj,HoverCardTrigger:Fj,Portal:wk,Root:xk,Trigger:Ik,createHoverCardScope:Vj}=Iu;var _k=xk,Sk=Ik,lh=H(({className:e,align:t="center",sideOffset:n=4,...r},o)=>{let i=Ee();return p(wk,{children:p(uh,{ref:o,align:t,sideOffset:n,...i,className:I("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md 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 origin-[--radix-hover-card-content-transform-origin]",e),...r})})});lh.displayName=uh.displayName;function _u(e){let t=Math.max(0,e);return t<6e4?"now":t<36e5?`${Math.floor(t/6e4)}m`:t<864e5?`${Math.floor(t/36e5)}h`:t<6048e5?`${Math.floor(t/864e5)}d`:`${Math.floor(t/6048e5)}w`}function BS(e,t){return Math.max(e.latestAttentionAt,t[e.id]??e.createdAt)}function Lk(e,t,n,r,o){if(o!==void 0){if(o===null)return null;let s=_u(r-o),a=s==="now"?"<1m":s;return{text:a,label:`Waiting on you for ${a==="<1m"?"less than a minute":a}`,kind:"waiting"}}if(t){let s=n.startedAt[e.id];if(s===void 0)return null;let a=_u(r-s),c=a==="now"?"<1m":a;return{text:c,label:`Working for ${c==="<1m"?"less than a minute":c}`,kind:"timer"}}let i=_u(r-BS(e,n.finishedAt));return{text:i,label:i==="now"?"Finished just now":`Finished ${i} ago`,kind:"age"}}function Pk(e,t){if(e.status!=="idle"&&e.status!=="error"||e.hasPendingInteraction)return null;let n=t[e.id];return n!==void 0?Math.max(n,e.latestAttentionAt):e.latestAttentionAt>e.createdAt&&(e.parentThreadId===null||e.status==="error")?e.latestAttentionAt:null}function Mk(e,t,n,r){let o=e==="working"?n.startedAt[t]:e==="waits-on-you"?n.pendingAt[t]:e==="idle"||e==="unread"||e==="failed"?n.finishedAt[t]:void 0;return o===void 0?null:_u(r-o)}function Yi({display:e,mode:t="muted",className:n}){if(t==="hidden")return null;let r=t==="muted";if(e.provider!==null){let o=r?{id:e.provider.id,logoUrl:e.provider.logoUrl,icon:e.provider.icon}:e.provider;return p("span",{title:e.name,className:I("inline-flex size-3.5 shrink-0 text-muted-foreground",r&&"opacity-60",n),children:p(is,{providerKind:"agent",provider:o,"aria-label":e.name,className:"size-3.5"})})}return p("span",{role:"img","aria-label":e.name,title:e.name,className:I("inline-flex h-3.5 min-w-3.5 shrink-0 items-center justify-center rounded-[3px] border border-border px-px text-[8px] font-semibold leading-none tracking-tight text-muted-foreground",r&&"opacity-60",n),children:e.mark})}function dh(e){switch(e){case"checks_failed":case"conflicts":case"changes_requested":return"text-destructive";case"ready_to_merge":return"text-success";default:return"text-muted-foreground"}}var US={checks_failed:"checks failed",conflicts:"has conflicts",changes_requested:"changes requested",ready_to_merge:"ready to merge",checks_pending:"checks pending",review_requested:"review requested",draft:"draft",merged:"merged",closed:"closed",blocked:"blocked"};function Su(e){let t=US[e.attention];return`Pull request #${e.number}${t?`, ${t}`:""}: ${e.title}`}function Rk({threadId:e}){let{pullRequest:t}=ss(e);return t===null?null:S("span",{title:Su(t),"aria-label":Su(t),className:I("shrink-0 text-[11px] tabular-nums",dh(t.attention)),children:["#",t.number]})}function Lu({item:e}){return S(kt,{children:[p(B,{name:e.icon,"aria-hidden":!0,className:"size-4"}),p("span",{children:e.label})]})}function Tk(e){return[{id:null,name:"Threads"},...e.map(t=>({id:t.id,name:t.name}))]}function $k({items:e,sections:t,currentSectionId:n,onAction:r,onCloseAutoFocus:o,input:i}){let s=a=>c=>{if(!i.current.pressed&&!i.current.keyed){c.preventDefault();return}a()};return p(sh,{className:"min-w-48",onCloseAutoFocus:o,onPointerDown:()=>{i.current.pressed=!0},onKeyDown:()=>{i.current.keyed=!0},children:e.map(a=>S(mr,{children:[a.separated?p(ah,{}):null,a.action==="move-to-section"?S(vk,{children:[p(oh,{children:p(Lu,{item:a})}),p(ih,{children:Tk(t).map(c=>S(xu,{disabled:c.id===n,onSelect:s(()=>r("move-to-section",c.id)),children:[c.id===n?p(B,{name:N.check,"aria-hidden":!0,className:"size-4"}):p("span",{className:"size-4"}),c.name]},c.id??"threads"))})]}):p(xu,{className:I(a.destructive&&"text-destructive focus:text-destructive"),onSelect:s(()=>r(a.action)),children:p(Lu,{item:a})})]},a.action))})}function Ak({items:e,sections:t,currentSectionId:n,onAction:r,onCloseAutoFocus:o}){return p(pr,{align:"end",className:"min-w-48",onCloseAutoFocus:o,children:e.map(i=>S(mr,{children:[i.separated?p(Ji,{}):null,i.action==="move-to-section"?S(uk,{children:[p(Bm,{children:p(Lu,{item:i})}),p(Um,{children:Tk(t).map(s=>S(Oe,{disabled:s.id===n,onSelect:()=>r("move-to-section",s.id),children:[s.id===n?p(B,{name:N.check,"aria-hidden":!0,className:"size-4"}):p("span",{className:"size-4"}),s.name]},s.id??"threads"))})]}):p(Oe,{className:I(i.destructive&&"text-destructive focus:text-destructive"),onSelect:()=>r(i.action),children:p(Lu,{item:i})})]},i.action))})}function Dk({panes:e,label:t,working:n}){let r=e.some(o=>o.isMe&&o.isFocused);return p("svg",{role:"img","aria-label":t,viewBox:"0 0 14 14",width:14,height:14,shapeRendering:"crispEdges",className:I("pointer-events-none size-3.5 shrink-0",!r&&"opacity-60",n&&"animate-shine-icon motion-reduce:animate-none"),children:e.map(o=>{let i=o.isMe?0:.5;return p("rect",{x:1+o.rect.x*12+i,y:1+o.rect.y*12+i,width:Math.max(o.rect.width*12-2*i,0),height:Math.max(o.rect.height*12-2*i,0),strokeWidth:o.isMe?0:1,className:o.isMe?o.isFocused?"fill-primary/70 stroke-none":"fill-muted-foreground/45 stroke-none":"fill-none stroke-muted-foreground/30"},o.paneId)})})}function sn({label:e,title:t,children:n}){return S("div",{className:"flex min-w-0 gap-2",title:t,children:[p("dt",{className:"w-20 shrink-0 text-muted-foreground",children:e}),p("dd",{className:"min-w-0 flex-1 break-words",children:n})]})}function GS(e,t){let[n,r]=E("loading"),{id:o,status:i}=t.thread;return z(()=>{let s=!1;return r("loading"),e.loadModel(o,i).then(a=>!s&&r(a),()=>!s&&r(null)),()=>{s=!0}},[e,o,i]),n}function KS({threadId:e}){let{pullRequest:t}=ss(e);return t===null?null:p(sn,{label:"Pull request",children:p("span",{className:dh(t.attention),children:Su(t)})})}function Pu({info:e,controller:t,showPullRequest:n,actions:r}){let o=e.thread,i=t.provider(o.providerId),s=GS(t,e),a=xe(au),c=WC(e.state.kind,Mk(e.state.kind,o.id,a.stamps,a.now)),u=ZC(jC(a.familyOf(o.id),o.id)),l=o.environment,d=Pk(o,a.stamps.finishedAt),m=Q2(a.notes[o.id]);return S("div",{className:"flex flex-col gap-2 text-xs",children:[p("p",{className:"text-sm font-medium leading-snug break-words",children:o.displayTitle}),S("div",{className:"flex items-center gap-1.5",children:[p(Gi,{glyph:e.state.glyph,className:"size-3.5"}),S("span",{children:[e.state.label,c!==null?` \xB7 ${c}`:"",e.state.sendAt!==null?` \xB7 sends ${mo(e.state.sendAt)}`:""]})]}),e.note!==null?p("p",{className:"break-words leading-snug",children:p(Cu,{note:e.note})}):null,S("dl",{className:"flex flex-col gap-1",children:[p(sn,{label:"Harness",children:S("span",{className:"inline-flex items-center gap-1.5",children:[p(Yi,{display:i,mode:t.harnessIcon==="hidden"?"muted":t.harnessIcon}),i.name]})}),p(sn,{label:"Model",title:"The model and reasoning level the next message will use",children:s==="loading"?"\u2026":s===null?"Unknown":`${s.model} \xB7 ${s.reasoningLevel}`}),l?.branchName?p(sn,{label:"Branch",children:S("span",{className:"inline-flex items-center gap-1",children:[p(B,{name:l.isWorktree?N.worktree:N.branch,"aria-hidden":!0,className:"size-3.5"}),l.branchName,l.isWorktree?" (worktree)":""]})}):null,o.host!==null?p(sn,{label:"Machine",children:o.host.name}):null,u!==null?p(sn,{label:"Children",children:u}):null,n?p(KS,{threadId:o.id}):null,m!==null&&e.note===null?p(sn,{label:"Last reply",children:p("span",{className:"line-clamp-2",children:m.text})}):null,p(sn,{label:"Created",children:mo(o.createdAt)}),d!==null?p(sn,{label:"Finished",children:mo(d)}):null]}),r?S("div",{className:"flex gap-2 pt-1",children:[S(Ye,{size:"sm",onClick:r.open,children:[p(B,{name:N.open,"aria-hidden":!0}),"Open"]}),S(Ye,{size:"sm",variant:"outline",onClick:r.toggleRead,children:[p(B,{name:e.unread?N.markRead:N.markUnread,"aria-hidden":!0}),e.unread?"Mark read":"Mark unread"]})]}):null]})}var qS=400,JS=700,YS=10,Xi=null;function XS(){let e=t=>{t.preventDefault(),t.stopPropagation(),window.removeEventListener("click",e,!0)};window.addEventListener("click",e,!0),window.addEventListener("touchend",()=>setTimeout(()=>window.removeEventListener("click",e,!0),400),{capture:!0,once:!0})}var Ek="text-[color:color-mix(in_oklch,var(--foreground)_var(--tg-quiet,68%),var(--tg-surface,var(--sidebar)))]",an="pointer-events-auto relative z-10 inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground outline-none hover:bg-state-hover hover:text-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring data-[state=open]:bg-state-active";function QS(e){let t=wh();return q(()=>{if(t===null)return null;let n=t.panes.map(r=>({paneId:r.paneId,rect:r.rect,isMe:r.threadId===e,isFocused:r.isFocused}));return n.some(r=>r.isMe)?n:null},[t,e])}var Nk=ft(function({row:t,controller:n,groupId:r,inPinned:o,dropState:i,active:s,editing:a,now:c,startedAt:u,finishedAt:l,pendingAt:d}){let{info:m}=t,f=m.thread,h=f.archivedAt!==null||f.isArchived,g=n.compact,k=Sh(f.id),v=_h(f.id),{hasUnsubmittedDraft:y}=xh(f.id),w=kh(f.id),T=QS(f.id),[M,x]=E(!1),[A,V]=E(!1),X=JC(s,!g&&!a&&!M&&!A),ie=$({pressed:!1,keyed:!1}),re=$(null),W=$(null),ae={threadId:f.id,parentThreadId:f.parentThreadId,sectionId:f.sectionId,pinned:f.pinnedAt!==null||f.isPinned},ne=xs({id:`thread:${f.id}:${r}`,data:{kind:"thread",thread:ae,groupId:r},disabled:a||g}),ze=Is({id:`drop-thread:${f.id}:${r}`,data:{kind:"thread",threadId:f.id,inPinned:o,groupId:r}}),xt=Z(j=>{ne.setNodeRef(j),ze.setNodeRef(j)},[ne.setNodeRef,ze.setNodeRef]),Ge=n.provider(f.providerId),Nn=Z4(m.state,v),gt=pk(t,{providerName:Ge.name,pluginLabel:Nn?v.label:null,hasDraft:y}),Ve=h?null:Lk(f,m.flags.has("working"),{startedAt:u===void 0?{}:{[f.id]:u},finishedAt:l===void 0?{}:{[f.id]:l}},c,m.state.kind==="waits-on-you"?d??null:void 0),Et=e8({thread:f,unread:m.unread,splitAvailable:w.isAvailable,isRoot:f.parentThreadId===null,hasSections:n.mode==="chronological"||n.sections.length>0,compact:g}),Te=$(!1),Ze=$(!1),Nt=(j,Se)=>{if(j==="rename"){Te.current=!0,Ze.current=!0,setTimeout(()=>{Ze.current=!1},1500);return}n.onMenuAction(j,f,Se)};z(()=>{if(M||A||!Te.current)return;let j=setTimeout(()=>{Te.current&&(Te.current=!1,n.setEditingId(f.id))},60);return()=>clearTimeout(j)},[M,A,n,f.id]);let Ot=j=>{Ze.current&&(Ze.current=!1,j.preventDefault(),Te.current&&(Te.current=!1,n.setEditingId(f.id)))},$e=n.showPullRequests&&t.depth===0?n.defaultBranchOf(f):void 0,cn=f.environment?.branchName??null,un=n.showPullRequests&&t.depth===0&&cn!==null&&$e!==void 0&&cn!==$e,On=T?p(Dk,{panes:T,label:`${f.displayTitle} \u2014 open in split; ${m.state.label}`,working:m.flags.has("working")}):Nn?p(BC,{status:v}):p("span",{title:m.state.label,className:"inline-flex",children:p(Gi,{glyph:m.state.glyph,label:m.state.label})}),He=j=>{if(a){j.preventDefault();return}if(w.isAvailable&&(j.metaKey||j.ctrlKey)){j.preventDefault(),n.onMenuAction("open-in-split",f);return}let Se=Date.now();if(Xi!==null&&Xi.threadId===f.id&&Se-Xi.at<qS){Xi=null,j.preventDefault(),n.setEditingId(f.id);return}Xi={threadId:f.id,at:Se},n.onNavigate()},Be=()=>{W.current!==null&&clearTimeout(W.current.timer),W.current=null},Ae=$(!1),Ce=g?{onTouchStart:j=>{let Se=j.touches[0];Se!==void 0&&(Be(),Ae.current=!1,W.current={x:Se.clientX,y:Se.clientY,timer:setTimeout(()=>{W.current=null,Ae.current=!0,XS(),x(!0)},JS)})},onTouchMove:j=>{let Se=j.touches[0];W.current===null||Se===void 0||Math.hypot(Se.clientX-W.current.x,Se.clientY-W.current.y)>YS&&Be()},onTouchEnd:j=>{Be(),Ae.current&&j.preventDefault()},onTouchCancel:Be,onContextMenu:j=>j.preventDefault(),style:{WebkitTouchCallout:"none"}}:{},me=t.chip,Ut=go(t.depth),rt=t.note,ln=n.comfortable||rt!==null,ee=t.dimmed&&!a,zt=M||A,Ke=g?"":zt?"opacity-0":"group-hover/row:opacity-0 group-focus-within/row:opacity-0",Zt=S("div",{ref:xt,"data-sidebar-rename-row":"","data-sidebar-nest-target":i==="valid"||i==="blocked"||i==="unchanged"?i:void 0,"data-sidebar-reorder-placement":i==="before"||i==="after"?i:void 0,...ne.attributes,...ne.listeners,role:void 0,tabIndex:void 0,"aria-roledescription":void 0,onPointerEnter:X.rowProps.onPointerEnter,onPointerMove:X.rowProps.onPointerMove,onPointerDown:j=>{X.rowProps.onPointerDown(),a||w.splitProps.onPointerDown?.(j)},onPointerLeave:X.rowProps.onPointerLeave,onFocus:X.rowProps.onFocus,onBlur:X.rowProps.onBlur,...Ce,className:I("group/row relative flex w-full items-center gap-1.5 rounded-md pr-1 text-sm transition-colors",ln?"h-11 max-md:pointer-coarse:h-12":"h-7 max-md:pointer-coarse:h-9",s?"bg-state-active text-sidebar-foreground":"cursor-pointer text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",!s&&zt&&"bg-sidebar-accent",T&&!s&&"bb-sidebar-open-in-split-row",ne.isDragging&&"opacity-50",i==="valid"&&"ring-1 ring-inset ring-sidebar-ring/80 bg-sidebar-accent/45",i==="blocked"&&"ring-1 ring-inset ring-destructive/60",i==="before"&&"shadow-[inset_0_2px_0_0_var(--sidebar-ring)]",i==="after"&&"shadow-[inset_0_-2px_0_0_var(--sidebar-ring)]"),style:{paddingLeft:Ut},children:[p("a",{ref:re,href:f.href,"data-sidebar-thread-shortcut-target":"","data-sidebar-thread-id":f.id,"data-sidebar-rename-anchor":"","aria-label":gt,"aria-keyshortcuts":k?.ariaKeyshortcuts,"aria-current":s?"page":void 0,onClick:He,onDoubleClick:j=>{j.preventDefault(),n.setEditingId(f.id)},className:"absolute inset-0 rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring"}),p("span",{className:"pointer-events-none relative flex size-4 shrink-0 items-center justify-center",children:On}),t.nested?p("span",{"aria-hidden":!0,title:`Child of ${t.parentTitle??"a thread"}`,className:I("pointer-events-none relative -ml-[3px] -mr-px w-1.5 shrink-0 text-center text-[10px] leading-none text-muted-foreground",ln&&"mt-[9px] self-start"),children:"\u21B3"}):null,t.crossGroupLabel!==null?p("span",{role:"img","aria-label":t.crossGroupLabel,title:t.crossGroupLabel,"data-sidebar-thread-cross-project":"",className:"pointer-events-none relative inline-flex size-4 shrink-0 items-center justify-center text-muted-foreground",children:p(B,{name:N.crossGroup,"aria-hidden":!0,className:"size-3.5"})}):null,S("span",{className:"pointer-events-none relative flex min-w-0 flex-1 flex-col justify-center",children:[a?p(Co,{initial:f.displayTitle,label:"Thread name",onSave:j=>n.onRename(f.id,j),onDone:()=>{n.setEditingId(null),re.current?.focus()}}):p("span",{title:f.displayTitle,className:I("min-w-0 truncate",t.bold?"font-semibold":"font-normal",t.depth>0&&"text-xs",ee&&`${Ek} group-hover/row:text-foreground`),children:f.displayTitle}),!a&&rt!==null?p("span",{className:"min-w-0 truncate text-xs leading-4 text-muted-foreground",title:K4(rt),children:p(Cu,{note:rt})}):n.comfortable&&!a?p(eL,{row:t,multiHost:n.multiHost,defaultBranch:n.defaultBranchOf(f)}):null]}),t.hiddenBadge?p("span",{role:"img","aria-label":"Hidden thread",title:"Hidden thread",className:"pointer-events-none relative shrink-0 text-muted-foreground",children:p(B,{name:N.hidden,"aria-hidden":!0,className:"size-3.5"})}):null,un&&!a?p("span",{className:"pointer-events-none relative",children:p(Rk,{threadId:f.id})}):null,me!==null&&!a?S("button",{type:"button","aria-expanded":me.expanded,"aria-label":Gm(f.displayTitle,me.count,me.flag,me.expanded),title:Gm(f.displayTitle,me.count,me.flag,me.expanded),onClick:j=>{j.preventDefault(),j.stopPropagation(),n.onToggleChip(t)},onPointerDown:j=>j.stopPropagation(),onKeyDown:j=>j.stopPropagation(),"data-tone":J2(me.flag),className:I("pointer-events-auto relative z-10 inline-flex h-5 shrink-0 items-center gap-0.5 rounded-md border px-1 text-[11px] leading-none tabular-nums outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",VC[J2(me.flag)],ee&&Ek),children:[me.count,me.flag!==null?p(Ki,{flag:me.flag,className:"size-3"}):null,n.harnessIcon!=="hidden"?me.providerIds.map(j=>p(Yi,{display:n.provider(j),className:"size-3 [&_*]:size-3"},j)):null,p(B,{name:N.expand,"aria-hidden":!0,className:I("size-3 transition-transform duration-150",me.expanded&&"rotate-90")})]}):null,a?null:p("span",{className:I("pointer-events-none relative inline-flex shrink-0 transition-opacity",k===null&&Ke),children:p(Yi,{display:Ge,mode:n.harnessIcon})}),a?null:p("span",{className:"relative flex h-6 min-w-8 shrink-0 items-center justify-end gap-1",children:k!==null?p("kbd",{"aria-hidden":!0,className:"pointer-events-none rounded border border-border px-1 font-sans text-[10px] leading-4 text-muted-foreground",children:k.label}):S(kt,{children:[t.homeGroupLabel!==null?p("span",{title:`In ${t.homeGroupLabel}`,className:I("pointer-events-none max-w-24 truncate text-[11px] text-muted-foreground transition-opacity",Ke),children:t.homeGroupLabel}):Ve!==null?p("span",{title:Ve.label,"aria-label":Ve.label,className:I("pointer-events-none text-[11px] tabular-nums transition-opacity",Ve.kind==="timer"?"font-medium text-[var(--timeline-accent)]":"text-muted-foreground",Ke),children:Ve.text}):null,S("span",{className:I("flex items-center gap-0.5 transition-opacity",g?"relative":zt?"absolute right-0 opacity-100":"absolute right-0 opacity-0 group-hover/row:opacity-100 group-focus-within/row:opacity-100"),children:[g?null:p("button",{type:"button","aria-label":h?"Unarchive thread":"Archive thread",title:h?"Unarchive":"Archive",className:an,onPointerDown:j=>j.stopPropagation(),onClick:j=>{j.preventDefault(),j.stopPropagation(),n.onMenuAction(h?"unarchive":"archive",f)},children:p(B,{name:h?N.unarchive:N.archive,"aria-hidden":!0,className:"size-4"})}),S(ho,{open:M,onOpenChange:x,children:[p(dr,{asChild:!0,children:p("button",{type:"button","aria-label":"Thread actions",className:g?"sr-only":an,onPointerDown:j=>j.stopPropagation(),onClick:j=>j.stopPropagation(),children:p(B,{name:N.more,"aria-hidden":!0,className:"size-4"})})}),p(Ak,{items:Et,sections:n.sections,currentSectionId:f.sectionId,onAction:Nt,onCloseAutoFocus:Ot})]})]})]})})]});return g?Zt:S(yk,{onOpenChange:j=>{j&&(ie.current={pressed:!1,keyed:!1}),V(j)},children:[S(_k,{closeDelay:100,open:X.open,onOpenChange:X.onOpenChange,children:[p(bk,{asChild:!0,disabled:a,children:p(Sk,{asChild:!0,children:Zt})}),!a&&!M&&!A?p(lh,{side:"right",align:"start",collisionPadding:8,className:"z-[100] w-72 p-3",children:p(Pu,{info:m,controller:n,showPullRequest:un})}):null]}),p($k,{items:Et,sections:n.sections,currentSectionId:f.sectionId,onAction:Nt,onCloseAutoFocus:Ot,input:ie})]})});function eL({row:e,multiHost:t,defaultBranch:n}){let r=e.info.thread,o=r.environment,i=[],s=o?.branchName??null;return s!==null&&s!==n&&i.push(S("span",{className:"inline-flex min-w-0 items-center gap-0.5",children:[p(B,{name:o?.isWorktree?N.worktree:N.branch,"aria-hidden":!0,className:"size-3 shrink-0"}),p("span",{className:"truncate",children:s}),o?.isWorktree?p("span",{className:"sr-only",children:" (worktree)"}):null]},"branch")),t&&r.host!==null&&i.push(S("span",{className:"inline-flex shrink-0 items-center gap-0.5",children:[p(B,{name:N.machine,"aria-hidden":!0,className:"size-3"}),r.host.name]},"host")),i.length===0?null:p("span",{className:"flex min-w-0 items-center gap-2 text-xs leading-4 text-muted-foreground",children:i})}var Ok=ft(function({row:t,controller:n}){let{label:r,ariaLabel:o}=fk(t),i=t.scope!=="group";return S("button",{type:"button","aria-expanded":t.expanded,"aria-label":o,onClick:()=>n.onToggleOlder(t),className:I("relative flex w-full items-center rounded-md pr-2 text-left text-xs text-muted-foreground outline-none hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring",i?"h-7 gap-1.5 max-md:pointer-coarse:h-9":"h-6 gap-1"),style:{paddingLeft:go(t.depth)+(i?0:2)},children:[i?p("span",{"aria-hidden":!0,className:"inline-flex size-4 shrink-0 items-center justify-center",children:p(B,{name:N.more,className:"size-3.5"})}):p(B,{name:N.expand,"aria-hidden":!0,className:I("size-3 transition-transform",t.expanded&&"-rotate-90")}),r]})}),zk=ft(function({row:t,controller:n}){let r=t.count===1?"child thread":"child threads";return S("button",{type:"button","aria-expanded":!1,"aria-label":`Show ${t.count} more ${r}`,title:`Show ${t.count} more ${r}`,onClick:()=>n.onOpenChildren(t.scopeId),className:"relative flex h-6 w-full items-center gap-1.5 rounded-md pr-2 text-left text-xs text-muted-foreground outline-none hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring",style:{paddingLeft:go(t.depth)},children:[p("span",{"aria-hidden":!0,className:"size-4 shrink-0"}),"+",t.count," more"]})}),Zk=ft(function({row:t,controller:n,environmentProviders:r}){let[o,i]=E(!1),s=t.environmentProviderId===null?null:r.find(a=>a.id===t.environmentProviderId)??null;return S("div",{className:"group/row relative flex h-7 w-full items-center gap-1.5 rounded-md pr-1 text-sm text-muted-foreground hover:bg-sidebar-accent",style:{paddingLeft:go(t.depth)},children:[p("button",{type:"button","aria-expanded":!t.collapsed,"aria-label":`${t.collapsed?"Expand":"Collapse"} ${t.label} environment, ${t.threadIds.length} threads`,onClick:()=>n.onToggleEnvironment(t.environmentId),className:"absolute inset-0 rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring"}),p("span",{className:"pointer-events-none relative inline-flex size-4 shrink-0 items-center justify-center",children:s!==null?p(is,{providerKind:"environment",provider:s,className:"size-3.5"}):p(B,{name:t.environmentProviderId===null?N.machine:N.environmentFallback,"aria-hidden":!0,className:"size-3.5"})}),o?p(Co,{initial:t.label,label:"Environment name",onSave:a=>n.onRenameEnvironment(t.environmentId,a),onDone:()=>i(!1)}):p("span",{className:"pointer-events-none relative min-w-0 flex-1 truncate",children:t.label}),t.flag!==null?p(Ki,{flag:t.flag,className:"pointer-events-none relative size-3.5"}):null,p("span",{className:"pointer-events-none relative text-[11px] tabular-nums",children:t.threadIds.length}),p(B,{name:N.expand,"aria-hidden":!0,className:I("pointer-events-none relative size-3 transition-transform",!t.collapsed&&"rotate-90")}),S(ho,{children:[p(dr,{asChild:!0,children:p("button",{type:"button","aria-label":"Environment actions",className:I(an,!n.compact&&"opacity-0 group-hover/row:opacity-100 focus-visible:opacity-100 data-[state=open]:opacity-100"),children:p(B,{name:N.more,"aria-hidden":!0,className:"size-4"})})}),S(pr,{align:"end",children:[S(Oe,{onSelect:()=>n.onNewThreadInEnvironment(t.environmentId,t.projectId,t.sectionId),children:[p(B,{name:N.newThread,"aria-hidden":!0,className:"size-4"}),"New thread in environment"]}),S(Oe,{onSelect:()=>i(!0),children:[p(B,{name:N.rename,"aria-hidden":!0,className:"size-4"}),"Rename"]}),S(Oe,{onSelect:()=>n.onArchiveEnvironment(t.environmentId),children:[p(B,{name:N.archive,"aria-hidden":!0,className:"size-4"}),"Archive"]})]})]})]})});var Mu=28,jk={compact:28,comfortable:44};function Wk(e){return e.descriptor.kind==="section"||e.descriptor.kind==="machine"}var tL=ft(function({group:t,controller:n,inOverflow:r,dropActive:o}){let[i,s]=E(!1),[a,c]=E(!1),u=t.descriptor.label,l=xs({id:`group:${t.descriptor.id}`,data:{kind:"group",groupId:t.descriptor.id},disabled:n.compact||r||i}),d=n.compact,m=d?"":a?"opacity-0":"group-hover/header:opacity-0 group-focus-within/header:opacity-0",f=d?"":I("absolute top-1/2 right-0 -translate-y-1/2 pl-1",o?"bg-sidebar-accent":"bg-sidebar",a?"opacity-100":"pointer-events-none opacity-0 group-hover/header:pointer-events-auto group-hover/header:opacity-100 group-focus-within/header:pointer-events-auto group-focus-within/header:opacity-100");return S("div",{ref:l.setNodeRef,...l.attributes,...l.listeners,role:void 0,tabIndex:void 0,"data-sidebar":"group-label",style:{top:r?0:Mu},className:I("group/header sticky z-20 flex h-7 items-center gap-1 rounded-md bg-sidebar pl-2 pr-1 text-xs text-muted-foreground max-md:pointer-coarse:h-9",o&&"bg-sidebar-accent",l.isDragging&&"opacity-50",!n.compact&&!r&&"select-none"),children:[i?p(Co,{initial:u,label:t.descriptor.kind==="section"?"Section name":"Machine name",onSave:h=>n.onRename(t,h),onDone:()=>s(!1),className:"text-xs"}):S("button",{type:"button","aria-expanded":!t.collapsed,"aria-label":`${t.collapsed?"Expand":"Collapse"} ${u} section`,onClick:()=>n.onToggleCollapse(t),onPointerDown:h=>h.stopPropagation(),onDoubleClick:()=>Wk(t)&&s(!0),className:"flex min-w-0 flex-1 items-center gap-1 rounded-md py-1 text-left font-medium outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",children:[p("span",{className:"min-w-0 truncate",title:u,children:u}),p(B,{name:N.expand,"aria-hidden":!0,className:I("size-3 shrink-0 transition-transform duration-150",!t.collapsed&&"rotate-90")})]}),i?null:S("span",{className:"relative ml-auto flex shrink-0 items-center",children:[p(ku,{counters:f8(t.counters,{collapsed:t.collapsed,more:!1}),className:I("transition-opacity",m)}),S("span",{className:I("flex items-center transition-opacity",f),children:[t.descriptor.kind!=="pinned"&&(t.descriptor.newThreadProjectId!==null||t.descriptor.kind==="machine")&&(!n.compact||n.activeGroupId===t.descriptor.id)?p("button",{type:"button","aria-label":`New thread in ${u}`,title:`New thread in ${u}`,"data-sidebar-hover-actions-mobile":n.compact?"always":void 0,className:an,onPointerDown:h=>h.stopPropagation(),onClick:()=>n.onNewThread(t),children:p(B,{name:N.newThread,"aria-hidden":!0,className:"size-4"})}):null,S(ho,{open:a,onOpenChange:c,children:[p(dr,{asChild:!0,children:p("button",{type:"button","aria-label":`${u} actions`,className:an,onPointerDown:h=>h.stopPropagation(),children:p(B,{name:N.more,"aria-hidden":!0,className:"size-4"})})}),S(pr,{align:"end",className:"min-w-48",children:[S(Oe,{onSelect:()=>n.onMarkAllRead(t),children:[p(B,{name:N.markRead,"aria-hidden":!0,className:"size-4"}),"Mark all read"]}),t.descriptor.kind!=="pinned"&&t.descriptor.newThreadProjectId!==null?S(Oe,{onSelect:()=>n.onNewThread(t),children:[p(B,{name:N.newThread,"aria-hidden":!0,className:"size-4"}),"New thread"]}):null,n.canCreateSections?S(Oe,{onSelect:()=>n.onNewSection(),children:[p(B,{name:N.newSection,"aria-hidden":!0,className:"size-4"}),"New section"]}):null,Wk(t)?S(Oe,{onSelect:()=>s(!0),children:[p(B,{name:N.rename,"aria-hidden":!0,className:"size-4"}),"Rename"]}):null,p(Ji,{}),t.descriptor.kind!=="pinned"?t.hidden?S(Oe,{onSelect:()=>n.onShow(t),children:[p(B,{name:N.show,"aria-hidden":!0,className:"size-4"}),"Show in list"]}):S(Oe,{onSelect:()=>n.onHide(t),children:[p(B,{name:N.hidden,"aria-hidden":!0,className:"size-4"}),"Hide from list"]}):null,S(Oe,{onSelect:()=>n.onToggleArchived(),children:[p(B,{name:n.showArchived?N.check:N.archive,"aria-hidden":!0,className:"size-4"}),"Show archived threads"]}),S(Oe,{onSelect:()=>n.onCustomize(),children:[p(B,{name:N.customize,"aria-hidden":!0,className:"size-4"}),"Customize list"]}),t.descriptor.kind==="section"?S(Oe,{className:"text-destructive focus:text-destructive",onSelect:()=>n.onRemove(t),children:[p(B,{name:N.remove,"aria-hidden":!0,className:"size-4"}),"Remove section"]}):null]})]})]})]})]})});function nL(e){return e.key}function rL({rows:e,forceMount:t,rowHeight:n,children:r}){let o=$(null),[i,s]=E(!0),a=$(null);z(()=>{let l=o.current;if(l===null||typeof IntersectionObserver>"u")return;let d=new IntersectionObserver(m=>{for(let f of m)f.isIntersecting===!1&&l.firstElementChild!==null&&i&&(a.current=l.getBoundingClientRect().height),s(f.isIntersecting)},{rootMargin:"240px 0px"});return d.observe(l),()=>d.disconnect()},[i]);let c=i||t,u=e.filter(l=>l.type==="thread").map(l=>({threadId:l.info.thread.id,projectId:l.projectId}));return p("div",{ref:o,"data-sidebar-windowed-item":"","data-sidebar-windowed-nav":c||u.length===0?void 0:lk(u),style:c?void 0:{height:a.current??e.length*n},children:c?r:null})}function Fk({rows:e,groupId:t,inPinned:n,forceMount:r,rowController:o,environmentProviders:i,dropStates:s,activeThreadId:a,editingId:c,now:u,stamps:l}){let d=o.comfortable?jk.comfortable:jk.compact;return p("div",{"data-sidebar":"group-content",className:"flex w-full flex-col text-sm",children:dk(e).map(m=>p(rL,{rows:m,rowHeight:d,forceMount:r||m.some(f=>f.type==="thread"&&(f.info.thread.id===a||f.info.thread.id===c)),children:m.map(f=>f.type==="thread"?p(Nk,{row:f,controller:o,groupId:t,inPinned:n,dropState:s.get(f.info.thread.id)??null,active:f.info.thread.id===a,editing:f.info.thread.id===c,now:u,startedAt:l.startedAt[f.info.thread.id],finishedAt:l.finishedAt[f.info.thread.id],pendingAt:l.pendingAt[f.info.thread.id]},f.key):f.type==="older"?p(Ok,{row:f,controller:o},f.key):f.type==="left-out"?p(zk,{row:f,controller:o},f.key):p(Zk,{row:f,controller:o,environmentProviders:i},f.key))},nL(m[0])))})}var ph=ft(function({group:t,groupController:n,dropTargetGroupId:r,inOverflow:o=!1,...i}){let s=Is({id:`drop-group:${t.descriptor.id}`,data:{kind:"group",groupId:t.descriptor.id}});return S("section",{ref:s.setNodeRef,"aria-label":t.descriptor.label,"data-sidebar-visibility-group":t.descriptor.id,"data-sidebar-section-id":t.descriptor.kind==="section"?t.descriptor.entityId??void 0:void 0,className:"relative flex w-full min-w-0 flex-col",children:[p(tL,{group:t,controller:n,inOverflow:o,dropActive:r===t.descriptor.id}),t.collapsed?null:t.rows.length===0?t.rootIds.length===0?p("p",{className:"py-1 pl-8 text-xs text-muted-foreground",children:"No threads"}):null:p(Fk,{...i,rows:t.rows,groupId:t.descriptor.id,inPinned:t.descriptor.id==="pinned",forceMount:o})]})}),oL="[--tg-surface:color-mix(in_oklab,var(--attention)_8%,var(--sidebar))] [--tg-quiet:70%] bg-[var(--tg-surface)]",iL="bg-[color-mix(in_oklab,var(--attention)_20%,transparent)] text-[color:color-mix(in_oklab,var(--attention),var(--foreground)_55%)]",Vk=ft(function({view:t,...n}){return S("section",{"aria-label":"Needs attention",className:I("relative mb-1 flex w-full min-w-0 flex-col rounded-md pb-0.5",oL),children:[S("h2",{style:{top:Mu},className:"sticky z-20 flex h-7 items-center gap-1 rounded-t-md bg-[var(--tg-surface)] pl-2 pr-1 text-xs font-medium text-muted-foreground max-md:pointer-coarse:h-9",children:[p("span",{className:"min-w-0 flex-1 truncate",children:"Needs attention"}),t.familyCount>0?p("span",{className:I("rounded-full px-1.5 text-[11px] leading-4 tabular-nums",iL),"aria-label":`${t.familyCount} ${t.familyCount===1?"family":"families"}`,children:t.familyCount}):null]}),p(Fk,{...n,rows:t.rows,groupId:h8,inPinned:!1,forceMount:!1})]})});function Hk(e){let t=e.includes("active"),n=e.includes("archived");return t&&n?"both":n?"archived":"active"}function Bk(e){return e==="both"?["active","archived"]:[e]}function Uk(e){return e==="everything"}function Gk(e){return e?"everything":"blocked"}function Kk(e){return{chronologicalSort:e,sortDirection:Qc(e)}}function qk(e){let t=rn(e.chronologicalSort),r=Y2(t,e.sortDirection)==="descending";return{glyph:r?"\u2193":"\u2191",label:t==="alpha"?r?"Z\u2013A":"A\u2013Z":r?"Newest first":"Oldest first",patch:{sortDirection:r?"ascending":"descending"}}}var sL="flex min-w-0 flex-1 gap-0.5 rounded-md bg-surface-recessed p-0.5",aL="flex min-w-0 flex-1 items-center justify-center whitespace-nowrap rounded-sm px-1 py-0.5 text-xs outline-none focus-visible:ring-2 focus-visible:ring-ring";function cL(e){return I(aL,e?"bg-state-active text-foreground":"text-muted-foreground hover:bg-state-hover hover:text-foreground")}function Qi({label:e,children:t}){return S("div",{className:"flex items-center gap-2 px-2 py-1",children:[p("span",{className:"w-[5.5rem] shrink-0 text-sm",children:e}),t]})}function es({label:e,options:t,current:n,onSelect:r}){return p("div",{role:"radiogroup","aria-label":e,className:sL,children:t.map(([o,i])=>p("button",{type:"button",role:"radio","aria-checked":o===n,onClick:()=>r(o),className:cL(o===n),children:i},o))})}function ts({label:e,checked:t,onChange:n,description:r}){return S("button",{type:"button",role:"checkbox","aria-checked":t,onClick:()=>n(!t),className:"flex w-full items-start gap-2 rounded-md px-2 py-1.5 text-left text-sm outline-none hover:bg-accent focus-visible:bg-accent",children:[p("span",{"aria-hidden":!0,className:I("mt-0.5 inline-flex size-4 shrink-0 items-center justify-center rounded-sm border border-input",t&&"border-primary bg-primary text-primary-foreground"),children:t?p(B,{name:N.check,"aria-hidden":!0,className:"size-3"}):null}),S("span",{className:"flex min-w-0 flex-col",children:[p("span",{children:e}),r?p("span",{className:"text-xs text-muted-foreground",children:r}):null]})]})}function fh({children:e}){return p("h3",{className:"px-2 pb-0.5 pt-3 text-xs font-medium text-muted-foreground first:pt-0",children:e})}function uL({prefs:e,client:t,onPrefs:n,onClient:r}){let o=qk(e);return S("div",{className:"flex flex-col",children:[p(fh,{children:"List"}),p(Qi,{label:"Group by",children:p(es,{label:"Group by",options:[["project","Project"],["chronological","Custom"],["machine","Machine"]],current:e.organizationMode,onSelect:i=>n({organizationMode:i})})}),S(Qi,{label:"Sort by",children:[p(es,{label:"Sort by",options:[["updated","Updated"],["created","Created"],["alpha","A\u2013Z"]],current:rn(e.chronologicalSort),onSelect:i=>n(Kk(i))}),p("button",{type:"button","aria-label":`Sort order: ${o.label}. Reverse`,title:o.label,onClick:()=>n(o.patch),className:"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-surface-recessed text-xs outline-none hover:bg-state-hover focus-visible:ring-2 focus-visible:ring-ring",children:o.glyph})]}),p(ts,{label:"Working threads first",checked:e.workingFirst,onChange:i=>n({workingFirst:i})}),p(ts,{label:"Worktrees as folders",description:"Threads sharing a worktree fold into one row",checked:e.environmentGrouping,onChange:i=>n({environmentGrouping:i})}),p(ts,{label:"Collapse older threads",checked:e.foldOlder,onChange:i=>n({foldOlder:i})}),p(fh,{children:"Rows"}),p(Qi,{label:"Density",children:p(es,{label:"Density",options:[["compact","Compact"],["comfortable","Comfortable"]],current:t.density,onSelect:i=>r({density:i})})}),p(Qi,{label:"Harness icon",children:p(es,{label:"Harness icon",options:[["muted","Muted"],["colour","Colour"],["hidden","Hidden"]],current:e.harnessIcon,onSelect:i=>n({harnessIcon:i})})}),p(ts,{label:"Pull request badge",checked:e.showPullRequests,onChange:i=>n({showPullRequests:i})}),p(fh,{children:"Show"}),p(Qi,{label:"Threads",children:p(es,{label:"Threads",options:[["active","Active"],["archived","Archived"],["both","Both"]],current:Hk(e.threadLifecycles),onSelect:i=>n({threadLifecycles:Bk(i)})})}),p(ts,{label:"Needs attention counts every child",description:"Every unread or failed child thread; otherwise only those blocked on you.",checked:Uk(e.childAttention),onChange:i=>n({childAttention:Gk(i)})})]})}function Jk({prefs:e,client:t,onPrefs:n,onClient:r}){return p("div",{style:{height:Mu},className:"sticky top-0 z-30 flex items-center justify-end bg-sidebar",children:S(js,{children:[p(Zo,{asChild:!0,children:p("button",{type:"button","aria-label":"Thread Glance settings",title:"List settings",className:an,children:p(B,{name:N.settings,"aria-hidden":!0,className:"size-4"})})}),p(jo,{align:"end",className:"w-80 p-2",children:p(uL,{prefs:e,client:t,onPrefs:n,onClient:r})})]})})}var lL="thread-glance";function fr(e){return e instanceof Error?e.message:String(e)}async function Yk(e,t){try{await navigator.clipboard.writeText(e),st.success(t)}catch(n){st.error("Couldn't copy",{description:fr(n)})}}var dL={activationConstraint:{distance:4}},pL={activationConstraint:{delay:200,tolerance:6}},fL=e=>{let t=e.active.data.current?.kind,n=Uh(e);if(t==="group")return n.filter(o=>String(o.id).startsWith("drop-group:"));let r=n.filter(o=>String(o.id).startsWith("drop-thread:"));return r.length>0?r:n};function Xk(e){let t=e.activatorEvent,n=null;return t instanceof MouseEvent?n=t.clientY:typeof TouchEvent<"u"&&t instanceof TouchEvent&&(n=t.touches[0]?.clientY??null),n===null?null:n+e.delta.y}function mh(e){let[t,n]=E(0);return p(mL,{...e,attempt:t,onRetry:()=>n(r=>r+1)},t)}function mL({activeThreadId:e,isCompactViewport:t,onNavigate:n,attempt:r,onRetry:o}){let{prefs:i,hydrated:s,update:a}=R4(),[c,u]=S4(),l=yh({experimental_lifecycles:i.threadLifecycles}),d=Ch(),m=vh(),{providers:f}=gh(),{providers:h}=bh(),g=Ih(),{stamps:k,markSeen:v,clearSeen:y}=A4(),w=T4(),T=OC(),M=q(()=>{let b=Object.values(w).filter(_=>_>Date.now());return b.length>0?Math.min(...b):null},[w]),x=P4(M),[A,V]=E(null),[X,ie]=E(null),[re,W]=E(null),[ae,ne]=E(""),ze=$(new Map),[xt,Ge]=E(!1),[Nn,gt]=E(!1),[Ve,Et]=E(null),[Te,Ze]=E(()=>new Map),[Nt,Ot]=E(null),[$e,cn]=E(()=>new Map),un=$(new Set),On=$(new Map),He=l.status==="ready",Be=l.threads,Ae=q(()=>new Map(Be.map(b=>[b.id,b])),[Be]),Ce=q(()=>He?J4({threads:Be,activeThreadId:e,finishedAt:k.finishedAt,seenAt:k.seenAt,draftIds:g,scheduled:w,now:x,notes:T,childAttention:i.childAttention}):null,[He,Be,e,k.finishedAt,k.seenAt,g,w,x,T,i.childAttention]),{targets:me,prune:Ut}=A5(s?Ce:null,e),rt=L4(Ce,e),ln=$(null),ee=q(()=>Ce===null?null:x8(ln.current,y8({forest:Ce,threads:Be,projects:l.projects,sections:l.sections,prefs:i,activeThreadId:e,held:rt,targets:me})),[Ce,Be,l.projects,l.sections,i,e,rt,me]);ot(()=>{ln.current=ee},[ee]);let zt=$(null);z(()=>{let b=[zt.current,e].filter(_=>_!==null&&Ae.get(_)?.parentThreadId!=null);zt.current=e,qC(),b.length>0&&v([...new Set(b)])},[e]),z(()=>{if(!(!i.showPullRequests||Ce===null))for(let b of Ce.families){let _=b.root.thread,P=_.projectId;_.environment?.branchName==null||_.host===null||un.current.has(P)||(un.current.add(P),m.projects.branches({projectId:P,hostId:_.host.id,limit:"1"}).then(G=>cn(te=>new Map(te).set(P,G.defaultBranch)),()=>cn(G=>new Map(G).set(P,null))))}},[i.showPullRequests,Ce,m]);let Ke=q(()=>o8(f),[f]),Zt=q(()=>{let b=new Map,_=new Map(f.map(P=>[P.id,P]));return P=>{let G=b.get(P);if(G===void 0){let te=_.get(P);G={id:P,name:te?.displayName??P,provider:te?.logoUrl?te:null,mark:i8(P,Ke)},b.set(P,G)}return G}},[f,Ke]),j=Z(b=>{Object.keys(b.patch).length>0&&a(b.patch),b.drop!==null&&Ut(b.drop)},[a,Ut]),Se=Z((b,_,P)=>{let G={activeThreadId:e,finishedAt:k.finishedAt,seenAt:k.seenAt},te=oe=>ge=>st.error(oe,{description:fr(ge)});switch(b){case"open-in-split":d.open(_.id,{split:!0}),n();return;case"copy-link":Yk(new URL(_.href,window.location.origin).toString(),"Thread link copied");return;case"copy-id":Yk(_.id,"Thread ID copied");return;case"mark-read":ji(_,G)&&v([_.id]),d.setRead(_.id,!0).catch(te("Couldn't mark read"));return;case"mark-unread":y([_.id]),d.setRead(_.id,!1).catch(te("Couldn't mark unread"));return;case"pin":case"unpin":d.setPinned(_.id,b==="pin").catch(te("Couldn't change the pin"));return;case"move-to-section":m.threads.update({threadId:_.id,sectionId:P??null}).catch(te("Couldn't move the thread"));return;case"rename":V(_.id);return;case"details":ie(_.id);return;case"move":ne(""),W(_.id);return;case"archive":d.archive(_.id);return;case"unarchive":m.threads.unarchive({threadId:_.id}).catch(te("Couldn't unarchive"));return;case"delete":setTimeout(()=>d.requestDelete(_.id),0);return}},[d,e,y,v,n,m,k.finishedAt,k.seenAt]),ko=$(Se);ot(()=>{ko.current=Se});let pt=$({forest:Ce,view:ee,prefs:i,byId:Ae,activeThreadId:e,stamps:k});ot(()=>{pt.current={forest:Ce,view:ee,prefs:i,byId:Ae,activeThreadId:e,stamps:k}});let ns=Z((b,_)=>{let P=`${b}:${_}`,G=On.current.get(P);if(G===void 0){let te=pt.current.byId.get(b),oe=te?.providerId??"",ge=ze.current.get(oe);ge===void 0&&(ge=m.providers.models(te?.host?{providerId:oe,hostId:te.host.id}:{providerId:oe}).then(Le=>Le.models,()=>[]),ze.current.set(oe,ge));let je=ge;G=m.threads.defaultExecutionOptions({threadId:b}).then(async Le=>Le===null?null:{model:FC(Le.model,await je),reasoningLevel:Le.reasoningLevel},()=>null),On.current.set(P,G)}return G},[m]),Gt=ee?.multiHost??!1,It=Ce!==null&&ee!==null,_t=q(()=>It?{compact:t,comfortable:c.density==="comfortable",setEditingId:V,showPullRequests:i.showPullRequests,harnessIcon:i.harnessIcon,defaultBranchOf:b=>$e.has(b.projectId)?$e.get(b.projectId)??null:void 0,multiHost:Gt,provider:Zt,sections:l.sections,mode:i.organizationMode,onNavigate:n,onToggleChip:b=>{let{prefs:_,forest:P}=pt.current;j(a8(b,_,P))},onToggleOlder:b=>{let{prefs:_,forest:P,view:G}=pt.current,te=G.groups.find(oe=>oe.descriptor.id===b.scopeId)??null;j(c8(b,_,te,P))},onOpenChildren:b=>j(ou(b,pt.current.prefs)),onToggleEnvironment:b=>{let{collapsedEnvironments:_}=pt.current.prefs;a({collapsedEnvironments:_.includes(b)?_.filter(P=>P!==b):[..._,b]})},onMenuAction:(b,_,P)=>ko.current(b,_,P),onRename:(b,_)=>d.rename(b,_),loadModel:ns,openDetails:ie,onNewThreadInEnvironment:(b,_,P)=>{d.openNewThread({projectId:_,environmentId:b,...P?{sectionId:P}:{},focusPrompt:!0}),n()},onRenameEnvironment:async(b,_)=>{await m.environments.update({environmentId:b,name:_})},onArchiveEnvironment:b=>{m.environments.archiveThreads({environmentId:b}).catch(_=>st.error("Couldn't archive the environment",{description:fr(_)}))}}:null,[It,t,c.density,i.showPullRequests,i.harnessIcon,i.organizationMode,$e,Gt,Zt,l.sections,n,j,a,d,m,ns]),rs=q(()=>({now:x,stamps:k,notes:T,familyOf:b=>Ce?.familyOf.get(b)}),[x,k,T,Ce]),St=q(()=>{let b=e===null||Ce===null?void 0:Ce.familyOf.get(e);return b===void 0?null:tu(b.root.thread,{mode:i.organizationMode,projects:l.projects})},[e,Ce,i.organizationMode,l.projects]),yo=i.threadLifecycles.includes("archived"),bo=q(()=>{if(!It)return null;let b=_=>{let{forest:P,activeThreadId:G,stamps:te}=pt.current,oe=_.rootIds.flatMap(Le=>P.familyOf.get(Le)??[]),ge=l8(oe,{activeThreadId:G,finishedAt:te.finishedAt,seenAt:te.seenAt}),je=()=>{ge.seen.length>0&&v(ge.seen);for(let Le of ge.read)d.setRead(Le,!0).catch(()=>{})};ge.read.length===0?st(`Nothing unread in ${_.descriptor.label}`):ge.read.length>t8?Et({title:`Mark ${ge.read.length} threads read?`,description:`Every unread thread in ${_.descriptor.label}, child threads included, will be marked read.`,confirmLabel:"Mark all read",run:je}):je()};return{compact:t,activeGroupId:St,showArchived:yo,onToggleArchived:()=>a({threadLifecycles:pt.current.prefs.threadLifecycles.includes("archived")?["active"]:["active","archived"]}),canCreateSections:i.organizationMode==="chronological",onToggleCollapse:_=>{let{prefs:P,forest:G}=pt.current;j(u8(_,P,G))},onNewThread:_=>{let P=_.descriptor;d.openNewThread({...P.newThreadProjectId?{projectId:P.newThreadProjectId}:{},...P.newThreadSectionId?{sectionId:P.newThreadSectionId}:{},focusPrompt:!0}),n()},onHide:_=>a({hiddenGroups:[...pt.current.prefs.hiddenGroups,_.descriptor.id]}),onShow:_=>a({hiddenGroups:pt.current.prefs.hiddenGroups.filter(P=>P!==_.descriptor.id)}),onCustomize:()=>Ge(!0),onRename:async(_,P)=>{_.descriptor.kind==="section"?await m.threadSections.update({id:_.descriptor.entityId,name:P}):_.descriptor.kind==="machine"&&await m.hosts.update({hostId:_.descriptor.entityId,name:P})},onRemove:_=>Et({title:"Remove section?",description:"Threads in this section will move back to Threads.",confirmLabel:"Remove",destructive:!0,run:()=>{m.threadSections.delete({id:_.descriptor.entityId}).catch(P=>st.error("Couldn't remove the section",{description:fr(P)}))}}),onMarkAllRead:b,onNewSection:()=>gt(!0)}},[It,t,St,yo,i.organizationMode,j,d,n,a,m,v]),Ru=Bh(bs(Do,dL),bs(Eo,pL),bs(br)),dn=Z(b=>{let _=b.over;if(_===null)return null;let P=_.data.current;if(P===void 0)return null;if(P.kind==="group")return{kind:"group",groupId:P.groupId};let G=Xk(b),te=_.rect,oe=G===null?.5:(G-te.top)/Math.max(te.height,1),ge=oe<.25?"before":oe>.75?"after":"middle";return{kind:"thread",threadId:P.threadId,zone:ge,inPinned:P.inPinned??!1}},[]),zn=q(()=>{let b=new Map(Object.entries(ee?.attention?.homeGroupIds??{}));for(let P of[...ee?.groups??[],...ee?.more??[]])for(let G of P.rows)G.type==="thread"&&b.set(G.info.thread.id,P.descriptor.id);let _=ee?.groups.find(P=>P.descriptor.id==="pinned");return{mode:i.organizationMode,parentOf:P=>Ae.get(P)?.parentThreadId??null,pinnedOrder:(_?.rows??[]).flatMap(P=>P.type==="thread"&&P.depth===0?[P.info.thread.id]:[]),groupOfThread:P=>b.get(P)??"threads"}},[ee,i.organizationMode,Ae]),Tu=Z(b=>{let _=b.active.data.current,P=dn(b);if(_?.kind!=="thread"||P===null){Ze(new Map),Ot(_?.kind==="group"&&P?.kind==="group"?P.groupId:null);return}if(P.kind==="group"){Ze(new Map),Ot(P.groupId);return}Ot(null);let G=U2(_.thread,P,zn),te=G.type==="blocked"?"blocked":G.type==="unchanged"?"unchanged":P.zone==="middle"?"valid":P.zone;Ze(new Map([[P.threadId,te]]))},[dn,zn]),vo=Z(async b=>{switch(b.type){case"nest":b.unpinFirst&&await m.threads.unpin({threadId:b.threadId}),await m.threads.update({threadId:b.threadId,parentThreadId:b.parentThreadId});return;case"move":await m.threads.update({threadId:b.threadId,sectionId:b.sectionId,...b.detach?{parentThreadId:null}:{}});return;case"detach":await m.threads.update({threadId:b.threadId,parentThreadId:null});return;case"pin":await d.setPinned(b.threadId,!0);return;case"unpin":await d.setPinned(b.threadId,!1);return;case"reorder-pinned":await m.threads.reorderPinned({threadId:b.threadId,previousThreadId:b.previousThreadId,nextThreadId:b.nextThreadId});return;case"blocked":case"unchanged":return}},[m,d]),$u=Z(b=>{Ze(new Map),Ot(null);let _=b.active.data.current,P=dn(b);if(_===void 0||P===null||ee===null)return;if(_.kind==="group"){if(P.kind!=="group"||P.groupId===_.groupId)return;let te=b.over.rect,oe=Xk(b),ge=oe!==null&&oe>te.top+te.height/2?"after":"before",je=Wi[i.organizationMode];a({[je]:tm(ee.order,_.groupId,P.groupId,ge)});return}let G=U2(_.thread,P,zn);vo(G).catch(te=>st.error("Failed to move thread.",{description:fr(te)}))},[dn,ee,i.organizationMode,a,zn,vo]),Au=Z(()=>Ze(new Map),[]),Du=q(()=>{if(ee===null)return[];let b=new Map([...ee.groups,...ee.more].map(_=>[_.descriptor.id,_]));return ee.order.flatMap(_=>{let P=b.get(_);return P===void 0?[]:[{id:_,label:P.descriptor.label,hidden:P.hidden,hideable:_!=="pinned"}]})},[ee]);if(l.status==="error")return S("div",{role:"alert",className:"flex flex-col items-start gap-2 px-3 py-2 text-sm",children:[p("p",{className:"text-muted-foreground",children:"Threads couldn't load."}),r===0?p(Ye,{size:"sm",variant:"outline",onClick:o,children:"Retry"}):p(Ye,{size:"sm",variant:"outline",onClick:()=>{m.plugins.reload({pluginId:lL}).catch(()=>window.location.reload())},children:"Reload plugin"})]});if(l.status==="loading"||!s||ee===null||_t===null||bo===null)return p("div",{role:"status","aria-label":"Loading threads",className:"flex flex-col gap-1 px-2 py-1",children:[0,1,2].map(b=>p("div",{"data-sidebar":"navigation-loading-row",className:"h-7 animate-pulse rounded-md bg-muted/60"},b))});let he=l.experimental_archived,be=X===null?null:Ce?.infos.get(X)??null,ve=re===null?null:Ae.get(re)??null;return p(au.Provider,{value:rs,children:S("div",{className:"flex w-full min-w-0 flex-col px-1.5 pb-2",children:[p(Jk,{prefs:i,client:c,onPrefs:a,onClient:u}),Be.length===0?p("p",{className:"px-3 py-4 text-sm text-muted-foreground",children:"No threads yet."}):S(o5,{sensors:Ru,collisionDetection:fL,onDragMove:Tu,onDragEnd:$u,onDragCancel:Au,children:[ee.attention!==null?p(Vk,{view:ee.attention,rowController:_t,environmentProviders:h,dropStates:Te,activeThreadId:e,editingId:A,now:x,stamps:k}):null,ee.groups.map(b=>p(ph,{group:b,rowController:_t,groupController:bo,environmentProviders:h,dropStates:Te,dropTargetGroupId:Nt,activeThreadId:e,editingId:A,now:x,stamps:k},b.descriptor.id)),ee.more.length>0?S(js,{children:[p(Zo,{asChild:!0,children:S("button",{type:"button","data-testid":"sidebar-thread-list-more-trigger","aria-label":`More: ${ee.more.length} hidden ${ee.more.length===1?"group":"groups"}`,className:"mt-1 flex h-7 w-full items-center gap-1 rounded-md pl-2 pr-1 text-left text-xs text-muted-foreground outline-none hover:bg-sidebar-accent focus-visible:ring-2 focus-visible:ring-sidebar-ring",children:[p("span",{className:"flex-1 font-medium",children:"More"}),p(ku,{counters:ee.moreCounters}),p(B,{name:"ChevronRight","aria-hidden":!0,className:"size-3"})]})}),p(jo,{side:"right",align:"end",className:"max-h-[70vh] w-72 overflow-y-auto p-1",children:p("div",{"data-sidebar-overflow":"true",className:"flex flex-col",children:ee.more.map(b=>p(ph,{group:b,rowController:_t,groupController:bo,environmentProviders:h,dropStates:Te,dropTargetGroupId:Nt,activeThreadId:e,editingId:A,now:x,stamps:k,inOverflow:!0},b.descriptor.id))})})]}):null]}),he!==null?S("div",{className:"flex flex-col items-start gap-1 px-2 pt-2",children:[he.status==="loading"?p("p",{role:"status",className:"text-xs text-muted-foreground",children:"Loading archived threads\u2026"}):he.status==="error"?p("p",{role:"status",className:"text-xs text-muted-foreground",children:"Archived threads unavailable"}):null,he.hasNextPage||he.isFetchNextPageError?p(Ye,{size:"sm",variant:"ghost","aria-label":"Load more archived threads",disabled:he.isFetchingNextPage,className:I("h-7 text-xs text-muted-foreground"),onClick:()=>{he.fetchNextPage()},children:he.isFetchingNextPage?"Loading\u2026":he.isFetchNextPageError?"Retry loading":"Show more"}):null]}):null,p($C,{open:xt,items:Du,onOpenChange:Ge,onToggleHidden:b=>a({hiddenGroups:i.hiddenGroups.includes(b)?i.hiddenGroups.filter(_=>_!==b):[...i.hiddenGroups,b]}),onMove:(b,_)=>{let P=ee.order.indexOf(b),G=ee.order[P+_];G!==void 0&&a({[Wi[i.organizationMode]]:tm(ee.order,b,G,_<0?"before":"after")})}}),p(AC,{open:Nn,onOpenChange:gt,onCreate:async b=>{try{await m.threadSections.create({name:b})}catch(_){throw st.error("Couldn't create the section",{description:fr(_)}),_}}}),p(DC,{open:Ve!==null,title:Ve?.title??"",description:Ve?.description??"",confirmLabel:Ve?.confirmLabel??"OK",destructive:Ve?.destructive,onOpenChange:b=>!b&&Et(null),onConfirm:()=>{Ve?.run(),Et(null)}}),be!=null?p(EC,{open:!0,title:be.thread.displayTitle,onOpenChange:b=>!b&&ie(null),children:p(Pu,{info:be,controller:_t,showPullRequest:i.showPullRequests,actions:{open:()=>{ie(null),d.open(be.thread.id),n()},toggleRead:()=>Se(be.unread?"mark-read":"mark-unread",be.thread)}})}):null,ve!==null&&Ce!==null?p(NC,{open:!0,title:ve.displayTitle,targets:zC(ve.id,Ce,ae),query:ae,onQueryChange:ne,onOpenChange:b=>!b&&W(null),onMove:b=>{(async()=>{b!==null&&(ve.pinnedAt!==null||ve.isPinned)&&await m.threads.unpin({threadId:ve.id}),await m.threads.update({threadId:ve.id,parentThreadId:b})})().catch(P=>st.error("Failed to move thread.",{description:fr(P)}))}}):null]})})}var wV=hh(e=>{e.slots.experimental_threadList({id:"thread-glance",title:"Thread Glance",description:"Every thread's state, harness and child threads at a glance.",component:mh})});export{wV as default};